feat:添加取消按钮
This commit is contained in:
1 parent
461dc7f28b
commit
f5f071f1dc
1 file changed
+11
@@ -112,6 +112,11 @@
|
||||
<Icon icon="ep:printer" />
|
||||
打印
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-if="row.deliveryType === DeliveryTypeEnum.EXPRESS.type &&
|
||||
row.status === TradeOrderStatusEnum.DELIVERED.status" command="cancel">
|
||||
<Icon icon="mingcute:delete-2-line" />
|
||||
取消
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="remark">
|
||||
<Icon icon="ep:chat-line-square" />
|
||||
备注
|
||||
@@ -255,6 +260,12 @@ const handleCommand = (command: string, row: TradeOrderApi.OrderVO) => {
|
||||
ElMessage.warning('该订单暂无物流面单信息')
|
||||
}
|
||||
break
|
||||
case 'cancel':
|
||||
// 取消订单
|
||||
// TradeOrderApi.cancelOrder({ id: row.id }).then(() => {
|
||||
ElMessage.success('订单已取消')
|
||||
// getList()
|
||||
// })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user