Commit 3cf05c0f authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt

parents 19ead9e3 51679675
...@@ -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) {
...@@ -216,11 +213,17 @@ export default { ...@@ -216,11 +213,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;
}
} }
}); });
} }
...@@ -251,6 +254,7 @@ export default { ...@@ -251,6 +254,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 = {};
......
...@@ -268,6 +268,7 @@ export default { ...@@ -268,6 +268,7 @@ export default {
this.indexId = index; this.indexId = index;
this.detailId = item.detailId; this.detailId = item.detailId;
this.active = index; this.active = index;
this.$refs.setObj.formItem={}
// this.group.orderId = item.orderId; // this.group.orderId = item.orderId;
// this.group.routingHeaderId = item.routingHeaderId; // this.group.routingHeaderId = item.routingHeaderId;
// this.$refs.setObj.formItem = {}; // this.$refs.setObj.formItem = {};
......
...@@ -90,6 +90,7 @@ export default { ...@@ -90,6 +90,7 @@ export default {
{ {
required: true, required: true,
message: "请选择人员", message: "请选择人员",
type: "array",
trigger: "change" trigger: "change"
} }
], ],
...@@ -109,23 +110,15 @@ export default { ...@@ -109,23 +110,15 @@ export default {
methods: { methods: {
//确定 //确定
Determine(name) { Determine() {
if (this.formItem.time == "") { this.$refs["formItem"].validate(valid => {
this.$Message.error("工时不能为空"); if (valid) {
return false; this.formItem.detailId = this.detailId;
} else if (this.mode == 1) { this.$emit("on-DetermineOk", this.formItem, this.indexId);
if (!this.formItem.userIds) { } else {
this.$Message.error("人员不能为空"); this.$Message.error("Fail!");
return false;
} }
} else if (this.mode == 2) { });
if (!this.formItem.shopId) {
this.$Message.error("班组不能为空");
return false;
}
}
this.formItem.detailId = this.detailId;
this.$emit("on-DetermineOk", this.formItem, this.indexId);
}, },
closeOk() { closeOk() {
this.$emit("closeOk"); this.$emit("closeOk");
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
.con { .con {
padding: 5px 5px 0px 10px; padding: 5px 5px 0px 10px;
} }
.con_bord{
// margin: 15px 32px;
box-shadow: #c7c7c7 1px 2px 7px 3px;
}
background: rgba(245,246,250,1); background: rgba(245,246,250,1);
} }
.fullWindow { .fullWindow {
...@@ -37,7 +41,7 @@ ...@@ -37,7 +41,7 @@
<Icon type="ios-arrow-forward" size="24" /> <Icon type="ios-arrow-forward" size="24" />
</a> </a>
</div> </div>
<Content class="con"> <Content class="con" :class="!showMenu?'con_bord':''">
<DataGrid :columns="columns" ref="grid" :action="action" class="card_box"> <DataGrid :columns="columns" ref="grid" :action="action" class="card_box">
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
......
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