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

整机排产

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