Browse Source

报销文件补充展开数据错位问题修复

徐滕 1 month atrás
parent
commit
d6544f2731

+ 5 - 2
src/views/common/reimbursement/ReimbursementComponentTest.vue

@@ -3226,9 +3226,12 @@ export default {
         handleDefaultExpand() {
             this.handleTableInfo(this.inputForm.sourceType)
             let arr = []
-            console.log(this.tableData)
+			console.log(this.tableData)
+            if (!this.tableData) {
+                return arr
+            }
             this.tableData.forEach((item, index) => {
-                let tempIndex = this.inputForm.invoiceReimbursementFiles.findIndex(temp => {
+                let tempIndex = (this.inputForm.invoiceReimbursementFiles || []).findIndex(temp => {
                     return temp.remarks == item.uniqueId
                 })
                 if (tempIndex !== -1) {

+ 4 - 0
src/views/zs/reimbursement/info/NewReimbursementFileSupplementForm.vue

@@ -388,6 +388,7 @@ export default {
         detailInfoContracts: [],
         detailInfoReports: [],
         detailInfoOthers: [],
+        detailInfoProject: [],
         detailInfoProcured: [],
         amountInfos: [],
         invoiceReimbursements: [],
@@ -514,6 +515,7 @@ export default {
         detailInfoContracts: [],
         detailInfoReports: [],
         detailInfoOthers: [],
+        detailInfoProject: [],
         detailInfoProcured: [],
         amountInfos: [],
         invoiceReimbursements: [],
@@ -757,6 +759,7 @@ export default {
       this.inputForm.detailInfoContracts = []
       this.inputForm.detailInfoReports = []
       this.inputForm.detailInfoOthers = []
+      this.inputForm.detailInfoProject = []
       this.inputForm.detailInfoProcured = []
       this.inputForm.purchaseNo = ''
       this.inputForm.preList = ''
@@ -1439,6 +1442,7 @@ export default {
       this.inputForm.detailInfoContracts = []
       this.inputForm.detailInfoReports = []
       this.inputForm.detailInfoOthers = []
+      this.inputForm.detailInfoProject = []
       this.inputForm.detailInfoProcured = []
       this.inputForm.purchaseNo = ''
       this.inputForm.preList = ''