Commit fb72273f authored by renjintao's avatar renjintao

send

parent 85dcc6e3
......@@ -41,7 +41,7 @@
<Button type="primary" @click="addModal=true">创建</Button>
</template>
<template slot="batch">
<Button type="primary" class="mr10 ml10">订单派发</Button>
<Button type="primary" class="mr10 ml10" @click="openSendModal">订单派发</Button>
<Button type="primary" class="mr10 ml10">批量删除</Button>
</template>
</DataGrid>
......@@ -61,6 +61,13 @@
<Button type="primary" @click="orderSplitOk">确定分解</Button>
</div>
</Modal>
<Modal v-model="sendModal" title="订单派发" width="1200">
<Send :row="sendList" ref="orderSplit" />
<div slot="footer">
<Button @click="splitModal = false">取消</Button>
<Button type="primary" @click="orderSplitOk">确定分解</Button>
</div>
</Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
<p>确定删除?</p>
</Modal>
......@@ -90,6 +97,7 @@ import Edit from "./edit";
import Detail from "./detail";
import Search from "./search";
import Split from "./split";
import Send from "./send";
export default {
name: "list",
components: {
......@@ -97,7 +105,8 @@ export default {
Edit,
Detail,
Search,
Split
Split,
Send
},
data() {
return {
......@@ -113,7 +122,8 @@ export default {
detailModal: false,
deletelModal: false,
splitModal: false,
ModalInfo:false,
ModalInfo: false,
sendModal: false,
curId: 0,
id: "id",
columns: [
......@@ -689,7 +699,8 @@ export default {
taskTypeList: [], //任务类型
statusList: [], //状态类型
rowData: {}, //编辑、查看的当前行数据
ModalInfoStaut:'',
ModalInfoStaut: "",
sendList:[],
};
},
created() {
......@@ -829,17 +840,21 @@ export default {
// }
// })
// } else {
this.$http.order.orderSplit(this.dataListRetrun).then((res) => {
if (res.result) {
this.$Message.success('订单分解成功!')
this.easySearch('')
this.ModalOrderSplit = false
} else {
this.$Message.error('订单分解失败!')
}
})
//}
this.ModalInfo = false
this.$http.order.orderSplit(this.dataListRetrun).then(res => {
if (res.result) {
this.$Message.success("订单分解成功!");
this.easySearch("");
this.ModalOrderSplit = false;
} else {
this.$Message.error("订单分解失败!");
}
});
//}
this.ModalInfo = false;
},
openSendModal() {
this.sendModal = true;
this.rowData = sendList;
},
remove(id) {
this.deletelModal = true;
......@@ -947,10 +962,11 @@ export default {
//new tree end
//list start
onSelect(a, b) {
alert(JSON.stringify(a));
//alert(JSON.stringify(a));
//批量选择
let selectRows = a;
this.arrPartPkId = [];
this.sendList=a;
// selectRows.forEach(e => {
// this.arrPartPkId.push(e.part_task_pk);
// });
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment