Commit e499a585 authored by 仇晓婷's avatar 仇晓婷

整机排产

parent f3cfc179
......@@ -31,6 +31,7 @@
</Col>
</Row>
<div class="fa">产品名称:{{li.productName}}</div>
<div class="time-s">产品数量:{{li.quantity}}</div>
<div class="time-s">
<span>工序:{{li.drawnNumber}}</span>
</div>
......@@ -38,7 +39,7 @@
</div>
</div>
</div>
<div class="aps-r">
<div class="aps-r" v-show="showSet">
<div class="r-title">排产设置盘</div>
<Form :model="formItem" :label-width="100">
<FormItem label="工时">
......@@ -114,7 +115,7 @@
</FormItem>
<FormItem>
<Button style="margin-left: 8px" @click="closeOk">取消</Button>
<Button type="primary" @click="lowerHair" v-if="showXia">下发</Button>
<Button type="primary" @click="lowerHair">下发</Button>
</FormItem>
</Form>
</div>
......@@ -135,7 +136,7 @@ export default {
data() {
return {
list: [],
showXia: true,
status: "0", //全部排产-1,0为未排产;2为已排查;
formItem: {
radio: "0",
......@@ -144,7 +145,8 @@ export default {
endTime: "",
remark: "",
departmentTitle: "",
shopId: ""
shopId: "",
showSet: false
// userName: ""
},
// listGroup: [
......@@ -192,11 +194,6 @@ export default {
changeStatus(name) {
this.status = name;
this.orderlist(this.status);
if (this.status == 0) {
this.showXia = true;
} else {
this.showXia = false;
}
},
//排产池列表
orderlist(a) {
......@@ -214,11 +211,17 @@ export default {
checkData(li) {
if (li.checked) {
this.orderIds.push(li.id);
if (this.status == 0) {
this.showSet = true;
}
} else {
if (this.orderIds) {
this.orderIds.forEach((e, i) => {
if (this.orderIds[i] == li.id) {
this.orderIds.splice(i, 1);
if (this.orderIds.length == 0) {
this.showSet = false;
}
}
});
}
......@@ -249,6 +252,7 @@ export default {
this.$Message.success("下发成功");
this.orderlist(this.status);
this.orderIds = [];
this.showSet = false;
} else {
this.$Message.success("下发失败");
this.formItem = {};
......
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