|
|
@@ -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;
|