|
@@ -130,8 +130,8 @@
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<vxe-table border show-footer show-overflow :footer-method="footerMethod" ref="detailTable"
|
|
<vxe-table border show-footer show-overflow :footer-method="footerMethod" ref="detailTable"
|
|
|
:key="detailKey" class="vxe-table-element" :data="inputForm.detailInfos"
|
|
:key="detailKey" class="vxe-table-element" :data="inputForm.detailInfos"
|
|
|
- style="margin-left: 5em"
|
|
|
|
|
- :expand-config="{ expandAll: true, accordion: false, toggleMethod: handleExpand }">
|
|
|
|
|
|
|
+ style="margin-left: 5em" :row-config="{ keyField: 'uniqueId' }"
|
|
|
|
|
+ :expand-config="{ expandAll: false, accordion: false, toggleMethod: handleExpand, expandRowKeys: handleDefaultExpand() }">
|
|
|
<vxe-column type="expand" width="80">
|
|
<vxe-column type="expand" width="80">
|
|
|
<template #content="{ row, rowIndex }">
|
|
<template #content="{ row, rowIndex }">
|
|
|
<InvoiceReimbursementUpLoadComponent v-if="row.reimbursementType == 1"
|
|
<InvoiceReimbursementUpLoadComponent v-if="row.reimbursementType == 1"
|
|
@@ -198,8 +198,8 @@
|
|
|
:key="detailKey" class="vxe-table-element" :data="inputForm.detailInfos"
|
|
:key="detailKey" class="vxe-table-element" :data="inputForm.detailInfos"
|
|
|
style="margin-left: 5em" @cell-click="" @edit-closed="" highlight-current-row
|
|
style="margin-left: 5em" @cell-click="" @edit-closed="" highlight-current-row
|
|
|
:edit-config="{ trigger: 'click', mode: 'row', showStatus: true, autoClear: true, icon: '_' }"
|
|
:edit-config="{ trigger: 'click', mode: 'row', showStatus: true, autoClear: true, icon: '_' }"
|
|
|
- :edit-rules="validRules"
|
|
|
|
|
- :expand-config="{ expandAll: true, accordion: false, toggleMethod: handleExpand }">
|
|
|
|
|
|
|
+ :edit-rules="validRules" :row-config="{ keyField: 'uniqueId' }"
|
|
|
|
|
+ :expand-config="{ expandAll: false, accordion: false, toggleMethod: handleExpand, expandRowKeys: handleDefaultExpand() }">
|
|
|
<vxe-column type="expand" width="80">
|
|
<vxe-column type="expand" width="80">
|
|
|
<template #content="{ row, rowIndex }">
|
|
<template #content="{ row, rowIndex }">
|
|
|
<InvoiceReimbursementUpLoadComponent v-if="row.reimbursementType == 1"
|
|
<InvoiceReimbursementUpLoadComponent v-if="row.reimbursementType == 1"
|
|
@@ -491,8 +491,8 @@
|
|
|
style="margin-left: 5em" :key="detailKeyOthers" @cell-click="" @edit-closed=""
|
|
style="margin-left: 5em" :key="detailKeyOthers" @cell-click="" @edit-closed=""
|
|
|
highlight-current-row
|
|
highlight-current-row
|
|
|
:edit-config="{ trigger: 'click', mode: 'row', showStatus: true, autoClear: true, icon: '_' }"
|
|
:edit-config="{ trigger: 'click', mode: 'row', showStatus: true, autoClear: true, icon: '_' }"
|
|
|
- :edit-rules="validRules"
|
|
|
|
|
- :expand-config="{ expandAll: true, accordion: false, toggleMethod: handleExpand }">
|
|
|
|
|
|
|
+ :edit-rules="validRules" :row-config="{ keyField: 'uniqueId' }"
|
|
|
|
|
+ :expand-config="{ expandAll: false, accordion: false, toggleMethod: handleExpand, expandRowKeys: handleDefaultExpand() }">
|
|
|
<vxe-column type="expand" width="80">
|
|
<vxe-column type="expand" width="80">
|
|
|
<template #content="{ row, rowIndex }">
|
|
<template #content="{ row, rowIndex }">
|
|
|
<InvoiceReimbursementUpLoadComponent v-if="row.reimbursementType == 1"
|
|
<InvoiceReimbursementUpLoadComponent v-if="row.reimbursementType == 1"
|
|
@@ -892,6 +892,8 @@ import ProjectListForm from './ProgramForm'
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ tableRef: null,
|
|
|
|
|
+ tableData: [],
|
|
|
currentNodeName: "",
|
|
currentNodeName: "",
|
|
|
confirmStatusList: [],
|
|
confirmStatusList: [],
|
|
|
validRules: {
|
|
validRules: {
|
|
@@ -901,9 +903,12 @@ export default {
|
|
|
deptName: [
|
|
deptName: [
|
|
|
{ required: true, message: '报销部门不能为空' }
|
|
{ required: true, message: '报销部门不能为空' }
|
|
|
],
|
|
],
|
|
|
- typeName: [
|
|
|
|
|
|
|
+ reimbursementType: [
|
|
|
{ required: true, message: '报销类型不能为空' }
|
|
{ required: true, message: '报销类型不能为空' }
|
|
|
],
|
|
],
|
|
|
|
|
+ typeName: [
|
|
|
|
|
+ { required: true, message: '报销类别不能为空' }
|
|
|
|
|
+ ],
|
|
|
projectName: [
|
|
projectName: [
|
|
|
{ required: true, message: '报销项目不能为空' }
|
|
{ required: true, message: '报销项目不能为空' }
|
|
|
],
|
|
],
|
|
@@ -1183,6 +1188,8 @@ export default {
|
|
|
// this.startPur(this.inputForm.purchaseId)
|
|
// this.startPur(this.inputForm.purchaseId)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// 获取当前审核节点
|
|
// 获取当前审核节点
|
|
|
this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then(name => {
|
|
this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then(name => {
|
|
|
this.currentNodeName = name
|
|
this.currentNodeName = name
|
|
@@ -1210,7 +1217,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
this.loading = false
|
|
this.loading = false
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
if (method !== 'edit' && method !== 'view') {
|
|
if (method !== 'edit' && method !== 'view') {
|
|
|
// this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, [], 'reimbursement_ping_gu')
|
|
// this.$refs.invoiceReimbursementUpLoadComponent.newUpload(method, [], 'reimbursement_ping_gu')
|
|
@@ -1636,6 +1645,8 @@ export default {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
this.submitCheck()
|
|
this.submitCheck()
|
|
|
|
|
+ this.handleCheckAmount()
|
|
|
|
|
+
|
|
|
// if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
// if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
// this.loading = false
|
|
// this.loading = false
|
|
|
// return
|
|
// return
|
|
@@ -2662,9 +2673,7 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
handleTableInfo(value) {
|
|
handleTableInfo(value) {
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- if (value === '1') {
|
|
|
|
|
|
|
+ if (value == '1') {
|
|
|
this.tableRef = this.$refs.detailTable
|
|
this.tableRef = this.$refs.detailTable
|
|
|
this.tableData = this.inputForm.detailInfos
|
|
this.tableData = this.inputForm.detailInfos
|
|
|
} else if (value == "3") {
|
|
} else if (value == "3") {
|
|
@@ -2709,7 +2718,6 @@ export default {
|
|
|
let countIndex = 0
|
|
let countIndex = 0
|
|
|
this.handleTableInfo(this.inputForm.sourceType)
|
|
this.handleTableInfo(this.inputForm.sourceType)
|
|
|
this.tableData.forEach((element, index) => {
|
|
this.tableData.forEach((element, index) => {
|
|
|
-
|
|
|
|
|
if (element.reimbursementType == 1) {
|
|
if (element.reimbursementType == 1) {
|
|
|
let files = this.inputForm.invoiceReimbursementFiles.filter(item => {
|
|
let files = this.inputForm.invoiceReimbursementFiles.filter(item => {
|
|
|
return item.remarks == element.uniqueId
|
|
return item.remarks == element.uniqueId
|
|
@@ -2733,6 +2741,17 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.loading = false
|
|
this.loading = false
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ handleDefaultExpand() {
|
|
|
|
|
+ this.handleTableInfo(this.inputForm.sourceType)
|
|
|
|
|
+ let arr = []
|
|
|
|
|
+ this.tableData.forEach((item, index) => {
|
|
|
|
|
+ if (item.reimbursementType) {
|
|
|
|
|
+ arr.push(item.uniqueId)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ return arr
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|