|
|
@ -58,6 +58,13 @@ |
|
|
|
<a v-if="item.order_status == 20" v-action:edit style="margin-right: 8px" @click="handleDispatch(item.order_id)" |
|
|
|
<a v-if="item.order_status == 20" v-action:edit style="margin-right: 8px" @click="handleDispatch(item.order_id)" |
|
|
|
>派单</a |
|
|
|
>派单</a |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<a |
|
|
|
|
|
|
|
v-if="item.order_status == 10 || item.order_status == 50" |
|
|
|
|
|
|
|
v-action:edit |
|
|
|
|
|
|
|
style="margin-right: 8px" |
|
|
|
|
|
|
|
@click="handleDelete(item.order_id)" |
|
|
|
|
|
|
|
>删除</a |
|
|
|
|
|
|
|
> |
|
|
|
<a |
|
|
|
<a |
|
|
|
v-if="item.order_status == 10 || item.order_status == 20" |
|
|
|
v-if="item.order_status == 10 || item.order_status == 20" |
|
|
|
style="margin-right: 8px" |
|
|
|
style="margin-right: 8px" |
|
|
@ -267,6 +274,22 @@ export default { |
|
|
|
handleDispatch(order_id) { |
|
|
|
handleDispatch(order_id) { |
|
|
|
this.$refs.dispatchRef.add(order_id) |
|
|
|
this.$refs.dispatchRef.add(order_id) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 删除记录 |
|
|
|
|
|
|
|
handleDelete(order_id) { |
|
|
|
|
|
|
|
const self = this |
|
|
|
|
|
|
|
const modal = this.$confirm({ |
|
|
|
|
|
|
|
title: '您确定要删除该记录吗?', |
|
|
|
|
|
|
|
content: '删除后不可恢复', |
|
|
|
|
|
|
|
onOk() { |
|
|
|
|
|
|
|
return Api.delOrder({ order_id }) |
|
|
|
|
|
|
|
.then((result) => { |
|
|
|
|
|
|
|
self.$message.success(result.message, 1.5) |
|
|
|
|
|
|
|
self.handleRefresh() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.finally(() => modal.destroy()) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 刷新列表 |
|
|
|
* 刷新列表 |
|
|
|
* @param Boolean bool 强制刷新到第一页 |
|
|
|
* @param Boolean bool 强制刷新到第一页 |
|
|
|