Pārlūkot izejas kodu

2021.12.28 正式版

Joe 3 gadi atpakaļ
vecāks
revīzija
67e3c1fa0e
1 mainītis faili ar 10 papildinājumiem un 1 dzēšanām
  1. 10 1
      src/views/order/Order_Approval.vue

+ 10 - 1
src/views/order/Order_Approval.vue

@@ -1,7 +1,7 @@
 <template>
   <PermissionContainer
     :jiBieArr="[1, 2]"
-    :type="4"
+    :type="5"
     :tipArr="[
       ,
       '退款的审核只对集团和站点级别开放',
@@ -174,6 +174,7 @@
                 size="mini"
                 type="text"
                 icon="el-icon-plus"
+                :loading="examinRefundLoading"
                 >审核通过</el-button
               >
             </el-popconfirm>
@@ -248,6 +249,8 @@ export default {
       // 表单校验
       rules: {},
       reprint: false,
+      examinRefundLoading: false,
+
     };
   },
   created() {
@@ -277,9 +280,15 @@ export default {
   methods: {
     // 审批通过
     examinRefundSuccess(row) {
+      if(this.examinRefundLoading){
+        return;
+      }
+      this.examinRefundLoading = true;
       examinRefundSuccess(row).then((res) => {
         this.msgSuccess("退款成功");
         this.getList();
+      }).finally(()=>{
+        this.examinRefundLoading = false;
       });
     },
     // 驳回申请