Procházet zdrojové kódy

Merge branch 'master' of http://git.zthymaoyi.com:3000/gdc/yiliangyiyun-pc

gjy před 3 roky
rodič
revize
50fc63699d

+ 32 - 31
src/views/statisticalReport/stockPurchaseReceiptReportList.vue

@@ -411,6 +411,7 @@ import {
   stockPurchasePayMoney,
 } from '@/model/statisticalReport/index'
 import { downloadFile } from '@/utils/batchDown'
+import { posthandle } from '@/model/purchasingManagement/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
 import { EventBus } from 'base-core-lib'
@@ -810,37 +811,37 @@ export default {
         })
       }
     },
-    // audit(item, index, status, status2, reason) {
-    //   if (index < this.modification.length) {
-    //     posthandle({
-    //       taskId: item.taskId,
-    //       approved: status,
-    //       auditMind: reason != undefined ? '已驳回' : '34',
-    //       needReapply: status2 != undefined ? true : false,
-    //     })
-    //       .toPromise()
-    //       .then((response) => {
-    //         this.audit(
-    //           this.modification[index + 1],
-    //           index + 1,
-    //           status,
-    //           status2,
-    //           reason
-    //         )
-    //       })
-    //       .catch((req) => {
-    //         this.$message.warning(req.message)
-    //       })
-    //   } else {
-    //     if (status == true) {
-    //       this.$message.success('通过成功')
-    //       this.getList()
-    //     } else if (status == false) {
-    //       this.$message.success('驳回成功')
-    //       this.getList()
-    //     }
-    //   }
-    // },
+    audit(item, index, status, status2, reason) {
+      if (index < this.modification.length) {
+        posthandle({
+          taskId: item.taskId,
+          approved: status,
+          auditMind: reason != undefined ? '已驳回' : '34',
+          needReapply: status2 != undefined ? true : false,
+        })
+          .toPromise()
+          .then((response) => {
+            this.audit(
+              this.modification[index + 1],
+              index + 1,
+              status,
+              status2,
+              reason
+            )
+          })
+          .catch((req) => {
+            this.$message.warning(req.message)
+          })
+      } else {
+        if (status == true) {
+          this.$message.success('通过成功')
+          this.getList()
+        } else if (status == false) {
+          this.$message.success('驳回成功')
+          this.getList()
+        }
+      }
+    },
     handlereject(status) {
       var that = this
       if (this.modification.length == 0) {