Selaa lähdekoodia

禅道bug修改

yangjunfeng 5 vuotta sitten
vanhempi
commit
136b2d33ea

+ 9 - 1
CallCenterWeb.UI/src/views/afterSaleManagement/afterSaleOrderList/index.vue

@@ -67,7 +67,7 @@
67 67
       </el-table-column>
68 68
       <el-table-column label="操作" width="240" align="center" class-name="oparate_btn" fixed="right">
69 69
         <template slot-scope="scope">
70
-          <el-button v-permission="'HY_edit'" type="text" @click="btn_edit(scope.row.F_Id)">编辑</el-button>
70
+          <el-button v-permission="'HY_edit'" type="text" v-if="isEdit(scope.row.F_State)" @click="btn_edit(scope.row.F_Id)">编辑</el-button>
71 71
         </template>
72 72
       </el-table-column>
73 73
     </el-table>
@@ -164,6 +164,14 @@ export default {
164 164
     };
165 165
   },
166 166
   methods: {
167
+    // 编辑权限
168
+    isEdit(state){
169
+      if (state == 0 || state == 2) {
170
+        return true
171
+      } else {
172
+        return false
173
+      }
174
+    },
167 175
     getList() {
168 176
       this.loading = true;
169 177
       return new Promise(resolve => {

+ 12 - 12
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerService/index.vue

@@ -126,7 +126,7 @@
126 126
             type="text"
127 127
             @click="btn_through(scope.row.F_Id)"
128 128
           >通过</el-button>
129
-          <el-button v-permission="'HY_label'" type="text" @click="btn_label(scope.row.F_Id)">标签</el-button>
129
+          <!-- <el-button v-permission="'HY_label'" type="text" @click="btn_label(scope.row.F_Id)">标签</el-button> -->
130 130
           <el-button
131 131
             v-permission="'HY_logistics_status'"
132 132
             v-if="authority_logistics_status(scope.row.F_Status,scope.row.F_State)"
@@ -340,17 +340,17 @@ export default {
340 340
       });
341 341
     },
342 342
     //标签订单
343
-    btn_label (orderid) {
344
-      this.$layer.iframe({
345
-        content: {
346
-          content: label, // 传递的组件对象
347
-          parent: this, // 当前的vue对象
348
-          data: { rowid: orderid } // props
349
-        },
350
-        area: ["30%", "30%"],
351
-        title: "标签"
352
-      });
353
-    },
343
+    // btn_label (orderid) {
344
+    //   this.$layer.iframe({
345
+    //     content: {
346
+    //       content: label, // 传递的组件对象
347
+    //       parent: this, // 当前的vue对象
348
+    //       data: { rowid: orderid } // props
349
+    //     },
350
+    //     area: ["30%", "30%"],
351
+    //     title: "标签"
352
+    //   });
353
+    // },
354 354
     //标签订单
355 355
     btn_logistics_status (orderid) {
356 356
       this.$layer.iframe({

+ 28 - 22
CallCenterWeb.UI/src/views/orderManagement/orderList/index.vue

@@ -125,6 +125,7 @@
125 125
             v-if="authority_cancel(scope.row.F_State)"
126 126
             type="text"
127 127
             @click="btn_cancel(scope.row.F_Id)"
128
+            :disabled="isDisable"
128 129
           >撤销</el-button>
129 130
         </template>
130 131
       </el-table-column>
@@ -200,6 +201,7 @@ export default {
200 201
   },
201 202
   data() {
202 203
     return {
204
+      isDisable: false, //防止多次点击
203 205
       loading: false,
204 206
       searchData: {
205 207
         adFrom: "", //消息/广告媒体来源
@@ -334,29 +336,33 @@ export default {
334 336
     },
335 337
     //撤销
336 338
     btn_cancel(orderId) {
337
-      this.$confirm("您确定撤销吗?", "提示", {
338
-        confirmButtonText: "确定",
339
-        cancelButtonText: "取消",
340
-        type: "warning",
341
-      })
342
-        .then(() => {
343
-          const data = {
344
-            orderid: orderId,
345
-            state: 0, //撤销 0
346
-          };
347
-          cancelOrder(data).then((response) => {
348
-            if (response.state.toLowerCase() === "success") {
349
-              this.getList();
350
-              this.$message.success("撤销成功!");
351
-            }
352
-          });
339
+      this.isDisable = true;
340
+      setTimeout(() => {
341
+        this.$confirm("您确定撤销吗?", "提示", {
342
+          confirmButtonText: "确定",
343
+          cancelButtonText: "取消",
344
+          type: "warning",
353 345
         })
354
-        .catch(() => {
355
-          this.$message({
356
-            type: "info",
357
-            message: "已取消撤销",
346
+          .then(() => {
347
+            const data = {
348
+              orderid: orderId,
349
+              state: 0, //撤销 0
350
+            };
351
+            cancelOrder(data).then((response) => {
352
+              if (response.state.toLowerCase() === "success") {
353
+                this.getList();
354
+                this.$message.success("撤销成功!");
355
+              }
356
+            });
357
+          })
358
+          .catch(() => {
359
+            this.$message({
360
+              type: "info",
361
+              message: "已取消撤销",
362
+            });
358 363
           });
359
-        });
364
+        this.isDisable = false;
365
+      }, 1500);
360 366
     },
361 367
     //合并
362 368
     btn_merge() {
@@ -429,7 +435,7 @@ export default {
429 435
     },
430 436
     // 交易权限
431 437
     authority_pay_money(payState, state) {
432
-      if ((payState != 0 ) || (state == 0 || state == 1 || state == 2)) {
438
+      if (payState != 0 || state == 0 || state == 1 || state == 2) {
433 439
         return false;
434 440
       } else {
435 441
         return true;