Quellcode durchsuchen

中审报销调整

huangguoce vor 3 Monaten
Ursprung
Commit
a7e45c8be7
1 geänderte Dateien mit 14 neuen und 4 gelöschten Zeilen
  1. 14 4
      src/views/zs/reimbursement/info/NewReimbursementForm.vue

+ 14 - 4
src/views/zs/reimbursement/info/NewReimbursementForm.vue

@@ -949,6 +949,8 @@ export default {
   },
   data() {
     return {
+      tableData: [],
+      tableRef: null,
       currentNodeName: "",
       confirmStatusList: [],
       validRules: {
@@ -2252,12 +2254,13 @@ export default {
       this.inputForm.detailInfoContracts[rowIndex].contractName = row.contractName
       this.$forceUpdate()
     },
-    changeSourceType() {
+    changeSourceType(value) {
       this.inputForm.detailInfos = []
       this.inputForm.detailInfoContracts = []
       this.inputForm.detailInfoReports = []
       this.inputForm.detailInfoOthers = []
       this.inputForm.detailInfoProcured = []
+      this.inputForm.detailInfoProject = []
       this.inputForm.purchaseNo = ''
       this.inputForm.preList = ''
       this.inputForm.purchaseId = ''
@@ -2266,9 +2269,7 @@ export default {
       this.detailKeyReport = Math.random()
       this.detailKeyOthers = Math.random()
       this.detailKeyProcured = Math.random()
-      this.$nextTick(() => {
-        this.handleTableInfo(value)
-      })
+      this.detailKeyProject = Math.random()
     },
     submitCheck() {
       if (this.commonJS.isEmpty(this.inputForm.sourceType)) {
@@ -2731,6 +2732,10 @@ export default {
 
     },
     handleTableInfo(value) {
+      console.log(value);
+      console.log(value);
+      console.log(value);
+      console.log(value);
 
       if (value === '1') {
         this.tableRef = this.$refs.detailTable
@@ -2808,6 +2813,11 @@ export default {
     handleDefaultExpand() {
       this.handleTableInfo(this.inputForm.sourceType)
       let arr = []
+      console.log(this.tableData);
+      console.log(this.tableData);
+      console.log(this.tableData);
+      console.log(this.tableData);
+
       this.tableData.forEach((item, index) => {
         if (item.reimbursementType) {
           arr.push(item.uniqueId)