소스 검색

审核通过提醒

zhangyuewww 3 년 전
부모
커밋
e9c81e2f3b

+ 4 - 16
src/views/statisticalReport/autoSettlementList.vue

@@ -1147,25 +1147,13 @@ export default {
             this.$message.warning(req.message)
           })
       } else {
-        if (status) {
+        if (status==true) {
           this.$message.success('通过成功')
           this.getList()
-        } else if (!status) {
-          if (status1 == 2) {
-            postaudit({
-              flag: 2,
-              tranSettlementReportList: this.modification,
-            })
-              .toPromise()
-              .then((response) => {
-                this.$message.success('驳回成功')
-                this.getList()
-              })
-              .catch((req) => {
-                this.$message.success('驳回失败')
-              })
+        } else if (status==false) {
+          this.$message.success('驳回成功')
+          this.getList()
           }
-        }
       }
     },
     handlereject(status) {

+ 5 - 27
src/views/statisticalReport/purchaseClosingCashierList.vue

@@ -521,23 +521,13 @@ export default {
             this.$message.warning(req.message)
           })
       } else {
-        if (status) {
+        if (status==true) {
           this.$message.success('通过成功')
           this.getList()
-        } else if (!status) {
-          closeaudit({
-            flag: 2,
-            purchaseReceiptReportList: this.modification,
-          })
-            .toPromise()
-            .then((response) => {
-              this.$message.success('驳回成功')
-              this.getList()
-            })
-            .catch((req) => {
-              this.$message.success('驳回失败')
-            })
-        }
+        } else if (status==false) {
+          this.$message.success('驳回成功')
+          this.getList()
+          }
       }
     },
     //统计审核
@@ -551,11 +541,6 @@ export default {
           confirmButtonText: '确定',
           type: 'warning',
         }).then(() => {
-          // closeaudit({roleFlag:1,flag:1,purchaseClosingReportList:this.modification}).toPromise()
-          // .then(response => {
-          //   this.$message.success('审核成功')
-          //   this.getList()
-          // })
           that.audit(this.modification[0], 0, true, 1)
         })
       }
@@ -571,13 +556,6 @@ export default {
           confirmButtonText: '确定',
           type: 'warning',
         }).then(() => {
-          // postaudit({roleFlag:status,flag:2,purchaseClosingReportList:this.modification}).toPromise()
-          // .then(response => {
-          //   this.$message.success('驳回成功')
-          //   this.getList()
-          // }).catch(req => {
-          //   this.$message.success('驳回失败')
-          // })
           that.audit(this.modification[0], 0, false, true, '已驳回')
         })
       }

+ 4 - 38
src/views/statisticalReport/purchaseReceiptStatisticsList.vue

@@ -934,15 +934,6 @@ export default {
           confirmButtonText: '确定',
           type: 'warning',
         }).then(() => {
-          // postaudit({
-          //   roleFlag: 1,
-          //   purchaseReceiptReportList: this.modification,
-          // })
-          //   .toPromise()
-          //   .then((response) => {
-          //     this.$message.success('审核成功')
-          //     this.getList()
-          //   })
           that.audit(this.modification[0], 0, true)
         })
       }
@@ -963,25 +954,13 @@ export default {
             this.$message.warning(req.message)
           })
       } else {
-        if (status) {
+        if (status==true) {
           this.$message.success('通过成功')
           this.getList()
-        } else if (!status) {
-          if (status1 == 2) {
-            postaudit({
-              flag: 2,
-              purchaseReceiptReportList: this.modification,
-            })
-              .toPromise()
-              .then((response) => {
-                this.$message.success('驳回成功')
-                this.getList()
-              })
-              .catch((req) => {
-                this.$message.success('驳回失败')
-              })
+        } else if (status==false) {
+          this.$message.success('驳回成功')
+          this.getList()
           }
-        }
       }
     },
     handlereject(status) {
@@ -994,19 +973,6 @@ export default {
           confirmButtonText: '确定',
           type: 'warning',
         }).then(() => {
-          // postaudit({
-          //   roleFlag: status,
-          //   flag: 2,
-          //   purchaseReceiptReportList: this.modification,
-          // })
-          //   .toPromise()
-          //   .then((response) => {
-          //     this.$message.success('驳回成功')
-          //     this.getList()
-          //   })
-          //   .catch((req) => {
-          //     this.$message.success('驳回失败')
-          //   })
           that.audit(this.modification[0], 0, false, true, '已驳回')
         })
       }

+ 5 - 33
src/views/statisticalReport/salesClosingCashierList.vue

@@ -382,10 +382,6 @@ export default {
         transactionsNumber: '',
         basis: '',
         submissionDate: '',
-        // delivery: false,
-        // type: [],
-        // resource: '',
-        // desc: ''
       },
       formLabelWidth: '140px',
       isShow: !this.autohide,
@@ -411,13 +407,6 @@ export default {
       enter: {
         closePositionList: [],
       },
-      // taskTypeList:[
-      //   {value:'待审核',type:1},
-      //   {value:'已完成',type:2},
-      //   {value:'已通过',type:3},
-      //   {value:'已成交',type:4},
-      // ],
-
       // 提交类型
       submitType: true,
       multipleSelection: [],
@@ -487,23 +476,13 @@ export default {
             this.$message.warning(req.message)
           })
       } else {
-        if (status) {
+        if (status==true) {
           this.$message.success('通过成功')
           this.getList()
-        } else if (!status) {
-          postsaleaudit({
-            flag: 2,
-            purchaseReceiptReportList: this.multipleSelection,
-          })
-            .toPromise()
-            .then((response) => {
-              this.$message.success('驳回成功')
-              this.getList()
-            })
-            .catch((req) => {
-              this.$message.success('驳回失败')
-            })
-        }
+        } else if (status==false) {
+          this.$message.success('驳回成功')
+          this.getList()
+          }
       }
     },
     dataFilter(val) {
@@ -679,13 +658,6 @@ export default {
             confirmButtonText: '确定',
             type: 'warning',
           }).then(() => {
-            // postsaleaudit({salesClosingReportList:this.multipleSelection,roleFlag:1,flag:1}).toPromise()
-            // .then(response => {
-            //   this.$message.success('通过成功')
-            //   this.getList()
-            // }) .catch(() => {
-            //   this.$message.warning('通过失败')
-            // })
             that.audit(this.multipleSelection[0], 0, true)
           })
         } else {

+ 5 - 29
src/views/statisticalReport/salesDeliveryReportList.vue

@@ -621,23 +621,13 @@ export default {
             this.$message.warning(req.message)
           })
       } else {
-        if (status) {
+       if (status==true) {
           this.$message.success('通过成功')
           this.getList()
-        } else if (!status) {
-          issueapproval({
-            flag: 2,
-            purchaseReceiptReportList: this.modification,
-          })
-            .toPromise()
-            .then((response) => {
-              this.$message.success('驳回成功')
-              this.getList()
-            })
-            .catch((req) => {
-              this.$message.success('驳回失败')
-            })
-        }
+        } else if (status==false) {
+          this.$message.success('驳回成功')
+          this.getList()
+          }
       }
     },
     handlereject(status) {
@@ -651,13 +641,6 @@ export default {
           type: 'warning',
         }).then(() => {
           that.audit(this.modification[0], 0, false, true, '已驳回')
-          // issueapproval({roleFlag:status,flag:2,salesDeliveryReportList:this.modification}).toPromise()
-          // .then(response => {
-          //   this.$message.success('驳回成功')
-          //   this.getList()
-          // }).catch(req => {
-          //   this.$message.success('驳回失败')
-          // })
         })
       }
     },
@@ -671,13 +654,6 @@ export default {
           confirmButtonText: '确定',
           type: 'warning',
         }).then(() => {
-          // issueapproval({roleFlag:2,flag:1,salesDeliveryReportList:this.modification}).toPromise()
-          // .then(response => {
-          //   this.$message.success('通过成功')
-          //   this.getList()
-          // }).catch(req => {
-          //   this.$message.success('通过失败')
-          // })
           that.audit(this.modification[0], 0, true)
         })
       }