소스 검색

1.仓储业务->入库->明细请核时添加提示弹框

nzf 3 년 전
부모
커밋
3b20391c96
1개의 변경된 파일30개의 추가작업 그리고 18개의 파일을 삭제
  1. 30 18
      src/views/Warehousing/outStock/AddOrUpdate.vue

+ 30 - 18
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -8521,12 +8521,18 @@ export default {
     },
     detailedApproval(command) {
       if (command === 'QH') {
-        deliveryDetails(this.form.fId).then(res => {
-          if (res.code == 200) {
-            this.msgSuccess('请核成功')
-            this.$set(this.form, 'fItemstatus', 4)
-          }
-        })
+        this.$confirm("是否发起明细请核?", "提示", {
+          confirmButtonText: "确认",
+          cancelButtonText: "取消",
+          type: "warning",
+        }).then(() => {
+          deliveryDetails(this.form.fId).then(res => {
+            if (res.code == 200) {
+              this.msgSuccess('请核成功')
+              this.$set(this.form, 'fItemstatus', 4)
+            }
+          })
+        });
       } else if (command === 'CK') {
         this.addOrUpdateVisible = true
         let actId = '180'
@@ -8539,19 +8545,25 @@ export default {
           this.$refs.ApprovalComments.init(this.form.fId, 'f_itemstatus', 180)
         })
       } else if (command === 'CX') {
-        let data = {
-          actId: 180,
-          billId: this.form.fId,
-          id: this.form.fId,
-          fidStatus: 'f_itemstatus'
-        }
-        revokeTwo(data).then((data) => {
-          if (data.code === 200) {
-            this.browseStatus = false
-            this.msgSuccess('撤销成功')
-            this.$set(this.form, 'fItemstatus', 2)
+        this.$confirm("是否撤销审批?", "提示", {
+          confirmButtonText: "确认",
+          cancelButtonText: "取消",
+          type: "warning",
+        }).then(() => {
+          let data = {
+            actId: 180,
+            billId: this.form.fId,
+            id: this.form.fId,
+            fidStatus: 'f_itemstatus'
           }
-        })
+          revokeTwo(data).then((data) => {
+            if (data.code === 200) {
+              this.browseStatus = false
+              this.msgSuccess('撤销成功')
+              this.$set(this.form, 'fItemstatus', 2)
+            }
+          })
+        });
       }
     },
     handleCommand(command) {