achao 3 vuotta sitten
vanhempi
commit
65d87c0bb3
1 muutettua tiedostoa jossa 25 lisäystä ja 21 poistoa
  1. 25 21
      src/views/houseSelfCollect/paymentManagement.vue

+ 25 - 21
src/views/houseSelfCollect/paymentManagement.vue

@@ -688,7 +688,7 @@
             if (index === 0) {
               sums[index] = '合计'
             } else if (index === _number[0] || index === _number[1] || index === _number[2] || index === _number[
-              3] || index === _number[4]) {
+                3] || index === _number[4]) {
               const values = data.map((item) => Number(item[column.property]))
               if (!values.every((value) => isNaN(value))) {
                 sums[index] = values.reduce((prev, curr) => {
@@ -1222,16 +1222,18 @@
               })
               .toPromise()
               .then((response) => {
-                workflowcontent({
-                    workflowId: item.workflowId,
-                    businessKey: item.id,
-                    type: '付款管理'
-                  }).toPromise()
-                  .then((response1) => {
-                    console.log(response1)
-                    // this.$message.success('审核成功')
-                    // this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
-                  })
+                if (index == 0) {
+                  workflowcontent({
+                      workflowId: item.workflowId,
+                      businessKey: item.id,
+                      type: '付款管理'
+                    }).toPromise()
+                    .then((response1) => {
+                      console.log(response1)
+                      // this.$message.success('审核成功')
+                      // this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
+                    })
+                }
                 this.audit(
                   this.modification[index + 1],
                   index + 1,
@@ -1249,16 +1251,18 @@
               })
               .toPromise()
               .then((response) => {
-                workflowcontent({
-                    workflowId: item.workflowId,
-                    businessKey: item.id,
-                    type: '付款管理'
-                  }).toPromise()
-                  .then((response1) => {
-                    console.log(response1)
-                    // this.$message.success('审核成功')
-                    // this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
-                  })
+                if (index == 0) {
+                  workflowcontent({
+                      workflowId: item.workflowId,
+                      businessKey: item.id,
+                      type: '付款管理'
+                    }).toPromise()
+                    .then((response1) => {
+                      console.log(response1)
+                      // this.$message.success('审核成功')
+                      // this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
+                    })
+                }
                 // postqueryhandle({workflowId:item.workflowId}).toPromise()
                 // .then((response) => {
                 this.audit(