Sfoglia il codice sorgente

电子渠道-注销工单

bianww 2 anni fa
parent
commit
cac2280a42
1 ha cambiato i file con 22 aggiunte e 12 eliminazioni
  1. 22 12
      src/pages/main/demandDevelop/index.vue

+ 22 - 12
src/pages/main/demandDevelop/index.vue

@@ -1122,17 +1122,28 @@ export default {
     },
     // 注销
     delDetails(id){
-        this.$http({
-            url: "/market/mkOnlineChannel/delDetailsById",
-            method: "post",
-            headers: {
-                "Content-Type": "application/json",
-            },
-            data: {
-                data: id,
-            },
-        }).then((res) => {
-            console.log(res)
+        this.$confirm('确认删除?', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning'
+        }).then(() => {
+            this.$http({
+                url: "/market/mkOnlineChannel/delDetailsById",
+                method: "post",
+                headers: {
+                    "Content-Type": "application/json",
+                },
+                data: {
+                    data: id,
+                },
+            }).then((res) => {
+                console.log(res)
+            });
+        }).catch(() => {
+            this.$message({
+                type: 'info',
+                message: '取消删除'
+            });
         });
     },
     // 查看详情接口封装
@@ -1386,7 +1397,6 @@ export default {
       } else if (type === 4) {
           this.titname = "注销";
           this.visionsts = "2";
-          this.queryDetails(data.woNo);
           this.delDetails(data.woNo);
       }
       // this.$http({