|
|
|
@ -73,6 +73,12 @@ |
|
|
|
|
>发货</a-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div class="action-item" v-if="$auth('/order/list/all.deliver')"> |
|
|
|
|
<a-button |
|
|
|
|
@click="handleForcecancel" |
|
|
|
|
>强制取消</a-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div class="action-item" v-if="$auth('/order/list/all.extract')"> |
|
|
|
|
<a-button |
|
|
|
|
v-if=" |
|
|
|
@ -285,7 +291,11 @@ |
|
|
|
|
</a-tooltip> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="action-item" style="width: 33.33%" v-if="record.delivery_status==DeliveryStatusEnum.DELIVERED.value &&item.delivery_method==10"> |
|
|
|
|
<div |
|
|
|
|
class="action-item" |
|
|
|
|
style="width: 33.33%" |
|
|
|
|
v-if="record.delivery_status == DeliveryStatusEnum.DELIVERED.value && item.delivery_method == 10" |
|
|
|
|
> |
|
|
|
|
<a-button type="primary" @click="onClickEditDelivery(item)">修改物流信息</a-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -578,7 +588,21 @@ export default { |
|
|
|
|
const { record } = this |
|
|
|
|
this.$refs.DeliveryForm.show(record) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
handleForcecancel() { |
|
|
|
|
const { orderId } = this |
|
|
|
|
this.isLoading = true |
|
|
|
|
Api.forceCancel({ orderId }) |
|
|
|
|
.then((result) => { |
|
|
|
|
if (result.status==200) { |
|
|
|
|
this.$message.success('强制取消成功', 1.5) |
|
|
|
|
}else{ |
|
|
|
|
this.$message.fail ('强制取消失败', 1.5) |
|
|
|
|
} |
|
|
|
|
// 初始化数据 |
|
|
|
|
// this.initData() |
|
|
|
|
}) |
|
|
|
|
.finally(() => (this.isLoading = false)) |
|
|
|
|
}, |
|
|
|
|
// 自提核销 |
|
|
|
|
handleExtract() { |
|
|
|
|
const { record } = this |
|
|
|
|