浏览代码

退款加确认

natasha 3 周之前
父节点
当前提交
87beb3a9f0
共有 2 个文件被更改,包括 31 次插入19 次删除
  1. 15 9
      src/views/finance_manage/FlowManage.vue
  2. 16 10
      src/views/finance_manage/RefundManager.vue

+ 15 - 9
src/views/finance_manage/FlowManage.vue

@@ -1114,15 +1114,21 @@ export default {
     },
     // 确定退款
     sureRefund() {
-      let Mname = "/ShopServer/Manager/FinanceManager/OrderRefund";
-      let data = {
-        id: this.refundId,
-        refund_amount: this.ktje,
-      };
-      getLogin(Mname, data).then((res) => {
-        this.$message.success("操作成功");
-        this.getList();
-        this.dialogVisible = false;
+      this.$confirm("确定要退款吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      }).then(() => {
+        let Mname = "/ShopServer/Manager/FinanceManager/OrderRefund";
+        let data = {
+          id: this.refundId,
+          refund_amount: this.ktje,
+        };
+        getLogin(Mname, data).then((res) => {
+          this.$message.success("操作成功");
+          this.getList();
+          this.dialogVisible = false;
+        });
       });
     },
   },

+ 16 - 10
src/views/finance_manage/RefundManager.vue

@@ -687,16 +687,22 @@ export default {
     },
     // 确定退款
     sureRefund() {
-      let Mname = "/ShopServer/Manager/FinanceManager/AuditOrderRefundApply";
-      let data = {
-        id: this.refundId,
-        is_pass: "true",
-        refund_amount: this.ktje,
-      };
-      getLogin(Mname, data).then((res) => {
-        this.$message.success("操作成功");
-        this.getList();
-        this.dialogVisible = false;
+      this.$confirm("确定要退款吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      }).then(() => {
+        let Mname = "/ShopServer/Manager/FinanceManager/AuditOrderRefundApply";
+        let data = {
+          id: this.refundId,
+          is_pass: "true",
+          refund_amount: this.ktje,
+        };
+        getLogin(Mname, data).then((res) => {
+          this.$message.success("操作成功");
+          this.getList();
+          this.dialogVisible = false;
+        });
       });
     },
     handleSizeChange(val) {