Commit fb72273f authored by renjintao's avatar renjintao

send

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