浏览代码

订单保存

YY 2 年之前
父节点
当前提交
9167bdb443
共有 2 个文件被更改,包括 22 次插入10 次删除
  1. 11 5
      src/views/platmanag/order/detail_orderDetail.vue
  2. 11 5
      src/views/selfShop/order/detail_orderDetail.vue

+ 11 - 5
src/views/platmanag/order/detail_orderDetail.vue

@@ -273,11 +273,17 @@ export default {
           if (form.shop_transport_type) transport.shop_transport_type = form.shop_transport_type;
           form.transport = transport;
           form.status = val;
-          if (form.id) res = await this.update(form);
-          if (this.$checkRes(res)) {
-            this.$message({ type: `success`, message: `维护信息成功` });
-            this.search();
-          }
+          this.$confirm('是否确认保存', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning',
+          }).then(async () => {
+            if (form.id) res = await this.update(form);
+            if (this.$checkRes(res)) {
+              this.$message({ type: `success`, message: `维护信息成功` });
+              this.search();
+            }
+          });
         } else {
           console.log('error submit!!');
           return false;

+ 11 - 5
src/views/selfShop/order/detail_orderDetail.vue

@@ -273,11 +273,17 @@ export default {
           if (form.shop_transport_type) transport.shop_transport_type = form.shop_transport_type;
           form.transport = transport;
           form.status = val;
-          if (form.id) res = await this.update(form);
-          if (this.$checkRes(res)) {
-            this.$message({ type: `success`, message: `维护信息成功` });
-            this.search();
-          }
+          this.$confirm('是否确认保存', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning',
+          }).then(async () => {
+            if (form.id) res = await this.update(form);
+            if (this.$checkRes(res)) {
+              this.$message({ type: `success`, message: `维护信息成功` });
+              this.search();
+            }
+          });
         } else {
           console.log('error submit!!');
           return false;