|
@@ -469,10 +469,13 @@ export default {
|
|
handleOrderCancel(row) {
|
|
handleOrderCancel(row) {
|
|
MessageBox.confirm("是否确认撤销该销售订单?").then(async () => {
|
|
MessageBox.confirm("是否确认撤销该销售订单?").then(async () => {
|
|
const { orderCode } = row;
|
|
const { orderCode } = row;
|
|
|
|
+ this.loading = true
|
|
const { code, message } = await asyncRequest.orderCancel({
|
|
const { code, message } = await asyncRequest.orderCancel({
|
|
orderCode: [orderCode],
|
|
orderCode: [orderCode],
|
|
});
|
|
});
|
|
- switch (code) {
|
|
|
|
|
|
+ this.loading = false
|
|
|
|
+
|
|
|
|
+ switch (Number(code)) {
|
|
case 0:
|
|
case 0:
|
|
this.searchList();
|
|
this.searchList();
|
|
break;
|
|
break;
|