Kaynağa Gözat

Merge branch 'dev' of http://www.baoxianzhanggui.com:8090/sxzgd/vue-insagent-pc into dev

ChengHongYu 2 yıl önce
ebeveyn
işleme
6e3b246a72
1 değiştirilmiş dosya ile 22 ekleme ve 9 silme
  1. 22 9
      src/views/Task/daikeComponents/KtOrder.vue

+ 22 - 9
src/views/Task/daikeComponents/KtOrder.vue

@@ -1294,16 +1294,29 @@ export default {
     },
     // 撤销二维码
     revokeCode(id) {
-      this.$api.letter.getRevokeQrCode(id).then((res) => {
-        if (res.code == 200) {
-          this.$message({
-            message: res.msg,
-            type: "success",
+      this.$confirm('确定撤销二维码?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }).then(() => {
+          this.$api.letter.getRevokeQrCode(id).then((res) => {
+            if (res.code == 200) {
+              this.$message({
+                message: res.msg,
+                type: "success",
+              });
+              this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
+              this.findPage();
+            }
           });
-          this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
-          this.findPage();
-        }
-      });
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消撤销二维码'
+          });          
+        });
+
+      
     },
     bjdpreview(companyId, userId) {
       let params = {