Commit 8e69ae17 authored by renjintao's avatar renjintao

mesplane/delet

parent 8244b431
......@@ -128,7 +128,6 @@ export default {
high: true,
hide: true
},
{
key: "put_into_qty",
title: this.l("put_into_qty"),
......
......@@ -42,7 +42,7 @@
</template>
<template slot="batch">
<Button type="primary" class="mr10 ml10" @click="openSendModal">订单派发</Button>
<Button type="primary" class="mr10 ml10">批量删除</Button>
<Button type="primary" class="mr10 ml10" @click="removeList">批量删除</Button>
</template>
</DataGrid>
<Modal v-model="addModal" title="新增" footer-hide width="1200">
......@@ -65,7 +65,7 @@
<Send :row="rowDataArry" ref="orderSplit" />
<div slot="footer">
<Button @click="sendModal = false">取消</Button>
<!-- <Button type="primary" @click="orderSplitOk">确定分解</Button> -->
<Button type="primary">确定派发</Button>
</div>
</Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
......@@ -285,7 +285,7 @@ export default {
title: "操作",
key: "action",
width: 180,
align: "center",
align: "left",
render: (h, params) => {
return h("div", { class: "action" }, [
h(
......@@ -300,7 +300,8 @@ export default {
"op",
{
attrs: { oprate: "edit" },
on: { click: () => this.edit(params.row) }
on: { click: () => this.edit(params.row) },
style: params.row._disabled ? "display:none" : ""
},
"编辑"
),
......@@ -308,7 +309,8 @@ export default {
"op",
{
attrs: { oprate: "remove" },
on: { click: () => this.remove(params.row.id) }
on: { click: () => this.remove(params.row.id) },
style: params.row._disabled ? "display:none" : ""
},
"删除"
),
......@@ -316,7 +318,8 @@ export default {
"op",
{
attrs: { oprate: "detail" },
on: { click: () => this.split(params.row) }
on: { click: () => this.split(params.row) },
style: params.row._disabled ? "display:none" : ""
},
"分解"
)
......@@ -367,6 +370,7 @@ export default {
urgencyLevel: "1",
_disabled: true,
divideMark: 1,
_showChildren: true,
children: [
{
actualFinishDate: "2020-04-09 18:36:31",
......@@ -396,7 +400,7 @@ export default {
productName: "气源分配器壳体",
projectNumber: "5",
putintDocmentCode: "5",
quantity: 10,
quantity: 1,
remark: "555",
rootCode: "DDBH_20200409_13",
rootId: 540,
......@@ -442,7 +446,7 @@ export default {
productName: "气源分配器壳体",
projectNumber: "5",
putintDocmentCode: "5",
quantity: 10,
quantity: 9,
remark: "555",
rootCode: "DDBH_20200409_13",
rootId: 540,
......@@ -463,6 +467,7 @@ export default {
]
},
{
_showChildren: true,
actualFinishDate: "2020-04-09 18:36:31",
actualStartDate: "2020-04-09 17:52:42",
batchNumber: "5",
......@@ -699,10 +704,10 @@ export default {
taskTypeList: [], //任务类型
statusList: [], //状态类型
rowData: {}, //编辑、查看的当前行数据
rowDataArry:[],
rowDataArry: [],
ModalInfoStaut: "",
sendList: [],
metCodesStrTxt:'',
metCodesStrTxt: ""
};
},
created() {
......@@ -767,8 +772,12 @@ export default {
this.rowData = row;
},
split(row) {
if (row.quantity > 1) {
this.splitModal = true;
this.rowData = row;
} else {
this.$Message.error("数量为1,不能进行分解");
}
},
//确定分解
orderSplitOk() {
......@@ -856,8 +865,6 @@ export default {
},
//打开派发
openSendModal() {
// alert(JSON.stringify(this.sendList))
// alert(this.sendList.length)
if (this.rowDataArry.length > 0) {
this.sendModal = true;
} else {
......@@ -877,6 +884,13 @@ export default {
}
});
},
removeList() {
if (this.rowDataArry.length > 0) {
this.deletelModal = true;
} else {
this.$Message.error("请选择订单");
}
},
removeCancel() {
this.deletelModal = false;
},
......
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