|
|
@ -583,20 +583,24 @@ export default { |
|
|
|
return ColorEnum[orderStatus] |
|
|
|
return ColorEnum[orderStatus] |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleForcecancel() { |
|
|
|
handleForcecancel() { |
|
|
|
const { orderId } = this |
|
|
|
let that = this |
|
|
|
this.isLoading = true |
|
|
|
this.isLoading = true |
|
|
|
Api.forceCancel({ orderId }) |
|
|
|
const modal = this.$confirm({ |
|
|
|
.then((result) => { |
|
|
|
title: '您确定要取消该订单吗', |
|
|
|
if (result.status == 200) { |
|
|
|
onOk() { |
|
|
|
this.$message.success('强制取消成功', 1.5) |
|
|
|
return Api.forceCancel({ orderId: that.orderId }) |
|
|
|
|
|
|
|
.then((result) => { |
|
|
|
|
|
|
|
if (result.status == 200) { |
|
|
|
|
|
|
|
that.$message.success(result.message, 1.5) |
|
|
|
// 初始化数据 |
|
|
|
// 初始化数据 |
|
|
|
this.getDetail() |
|
|
|
that.getDetail() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$message.fail('强制取消失败', 1.5) |
|
|
|
that.$message.fail(result.message, 1.5) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
.finally(() => (that.isLoading = false)) |
|
|
|
.finally(() => (this.isLoading = false)) |
|
|
|
}, |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 订单发货 |
|
|
|
// 订单发货 |
|
|
|
handleDelivery() { |
|
|
|
handleDelivery() { |
|
|
|