main
fanfan 3 months ago
parent 7692aec61e
commit c89e75e099
  1. 28
      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({
.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() {

Loading…
Cancel
Save