main
fanfan 4 months ago
parent 7692aec61e
commit c89e75e099
  1. 18
      src/views/order/Detail.vue

@ -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({
title: '您确定要取消该订单吗',
onOk() {
return Api.forceCancel({ orderId: that.orderId })
.then((result) => { .then((result) => {
if (result.status == 200) { if (result.status == 200) {
this.$message.success('强制取消成功', 1.5) 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(() => (this.isLoading = false)) .finally(() => (that.isLoading = false))
},
})
}, },
// //
handleDelivery() { handleDelivery() {

Loading…
Cancel
Save