Commit d00ed736 authored by renjintao's avatar renjintao

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

parents 0835f8a9 26eb1c60
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<Col :span="10" class="chan-chi">整机排产-排产池</Col> <Col :span="10" class="chan-chi">整机排产-排产池</Col>
<Col :span="14" class="l-ringht"> <Col :span="14" class="l-ringht">
<!-- <RadioGroup v-model="status" type="button" @on-change="changeStatus" size="small"> <!-- <RadioGroup v-model="status" type="button" @on-change="changeStatus" size="small">
<Radio label="0">未排产</Radio> --> <Radio label="0">未排产</Radio>-->
<!-- <Radio label="2">已排查</Radio> --> <!-- <Radio label="2">已排查</Radio> -->
<!-- <Radio label="-1">全部</Radio> --> <!-- <Radio label="-1">全部</Radio> -->
<!-- </RadioGroup> --> <!-- </RadioGroup> -->
...@@ -58,19 +58,8 @@ ...@@ -58,19 +58,8 @@
<Radio label="1">班组</Radio> <Radio label="1">班组</Radio>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>
<FormItem label="人员" v-if="formItem.radio==0"> <FormItem v-if="formItem.radio==0">
<UserSelect <UserSelect v-model="user" :multiple="true" theme="list" />
ref="userSelected"
v-model="formItem.userIds"
style="width:300px"
:multiple="true"
/>
<!-- <Dictionary
disabled
code="aps.scheduling.groupingForm"
v-model="formItem.resourcesType"
type="radio"
></Dictionary>-->
</FormItem> </FormItem>
<FormItem label="班组" v-if="formItem.radio==1"> <FormItem label="班组" v-if="formItem.radio==1">
<Select v-model="formItem.shopId" placeholder="请选择" style="width:300px"> <Select v-model="formItem.shopId" placeholder="请选择" style="width:300px">
...@@ -122,14 +111,10 @@ ...@@ -122,14 +111,10 @@
</div> </div>
</template> </template>
<script> <script>
import CheckboxList from "./checkboxList";
import Api from "./api"; import Api from "./api";
export default { export default {
name: "list", name: "list",
components: {
CheckboxList
},
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
...@@ -202,8 +187,8 @@ export default { ...@@ -202,8 +187,8 @@ export default {
if (r.success) { if (r.success) {
r.result.map(e => { r.result.map(e => {
e.checked = false; e.checked = false;
e.demandFinishDate = e.demandFinishDate.substr(0,10) e.demandFinishDate = e.demandFinishDate.substr(0, 10);
e.demandStartDate = e.demandStartDate.substr(0,10) e.demandStartDate = e.demandStartDate.substr(0, 10);
}); });
this.list = r.result; this.list = r.result;
} }
...@@ -243,7 +228,7 @@ export default { ...@@ -243,7 +228,7 @@ export default {
// } // }
let params1 = { let params1 = {
orderIds: this.orderIds, orderIds: this.orderIds,
userIds: this.formItem.userIds, userIds: this.user,
beginTime: this.formItem.beginTime, beginTime: this.formItem.beginTime,
endTime: this.formItem.endTime, endTime: this.formItem.endTime,
remark: this.formItem.remark remark: this.formItem.remark
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<Col :span="9" class="chan-chi">流水排产-排产池</Col> <Col :span="9" class="chan-chi">流水排产-排产池</Col>
<Col :span="15" class="l-ringht"> <Col :span="15" class="l-ringht">
<!-- <RadioGroup v-model="status" type="button" @on-change="changeStatus" size="small"> <!-- <RadioGroup v-model="status" type="button" @on-change="changeStatus" size="small">
<Radio label="0">未排产</Radio> --> <Radio label="0">未排产</Radio>-->
<!-- <Radio label="2">已排查</Radio> --> <!-- <Radio label="2">已排查</Radio> -->
<!-- <Radio label="-1">全部</Radio> --> <!-- <Radio label="-1">全部</Radio> -->
<!-- </RadioGroup> --> <!-- </RadioGroup> -->
...@@ -190,8 +190,8 @@ export default { ...@@ -190,8 +190,8 @@ export default {
if (r.result) { if (r.result) {
r.result.map(u => { r.result.map(u => {
u.aps = 0; u.aps = 0;
u.demandFinishDate = u.demandFinishDate.substr(0,10) u.demandFinishDate = u.demandFinishDate.substr(0, 10);
u.demandStartDate = u.demandStartDate.substr(0,10) u.demandStartDate = u.demandStartDate.substr(0, 10);
}); });
this.list = r.result; this.list = r.result;
// if (r.result[0]) { // if (r.result[0]) {
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +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.$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 = {};
...@@ -335,6 +335,7 @@ export default { ...@@ -335,6 +335,7 @@ export default {
if (r.result) { if (r.result) {
this.$Message.success("下发成功"); this.$Message.success("下发成功");
this.orderlist(this.status); this.orderlist(this.status);
this.result = [];
} else { } else {
this.$Message.info("下发失败"); this.$Message.info("下发失败");
} }
......
...@@ -18,12 +18,13 @@ ...@@ -18,12 +18,13 @@
</RadioGroup> </RadioGroup>
</FormItem>--> </FormItem>-->
<FormItem label="人员" v-if="mode==1" prop="userIds"> <FormItem label="人员" v-if="mode==1" prop="userIds">
<UserSelect <!-- <UserSelect
ref="userSelected" ref="userSelected"
v-model="formItem.userIds" v-model="formItem.userIds"
style="width:300px" style="width:300px"
:multiple="true" :multiple="true"
/> />-->
<UserSelect v-model="formItem.userIds" :multiple="true" theme="list" />
</FormItem> </FormItem>
<FormItem label="班组" v-if="mode==2" prop="shopId"> <FormItem label="班组" v-if="mode==2" prop="shopId">
<Select v-model="formItem.shopId" placeholder="请选择" style="width:300px"> <Select v-model="formItem.shopId" placeholder="请选择" style="width:300px">
...@@ -73,7 +74,8 @@ export default { ...@@ -73,7 +74,8 @@ export default {
remark: "", remark: "",
departmentTitle: "", departmentTitle: "",
shopId: "", shopId: "",
shopName: "" shopName: "",
userIds: []
}, },
workShop: [], workShop: [],
listClass: [], listClass: [],
...@@ -90,14 +92,14 @@ export default { ...@@ -90,14 +92,14 @@ export default {
} }
} }
], ],
userIds: [ // user: [
{ // {
required: true, // required: true,
message: "请选择人员", // message: "请选择人员",
type: "array", // type: "array",
trigger: "change" // trigger: "change"
} // }
], // ],
shopId: [ shopId: [
{ {
required: true, required: true,
...@@ -115,14 +117,18 @@ export default { ...@@ -115,14 +117,18 @@ export default {
methods: { methods: {
//确定 //确定
Determine() { Determine() {
if (this.formItem.userIds.length == 0) {
this.$Message.error("人员不能为空");
} else {
this.$refs["formItem"].validate(valid => { this.$refs["formItem"].validate(valid => {
if (valid) { if (valid) {
this.formItem.detailId = this.detailId; this.formItem.detailId = this.detailId;
this.$emit("on-DetermineOk", this.formItem, this.indexId); this.$emit("on-DetermineOk", this.formItem, this.indexId);
} else { } else {
this.$Message.error("Fail!"); this.$Message.error("请填写完整");
} }
}); });
}
}, },
closeOk() { closeOk() {
this.$emit("closeOk"); this.$emit("closeOk");
...@@ -172,8 +178,7 @@ export default { ...@@ -172,8 +178,7 @@ export default {
this.listClass.push(obj); this.listClass.push(obj);
this.formItem.shopId = this.listClass[0].value; this.formItem.shopId = this.listClass[0].value;
this.formItem.shopName = this.listClass[0].label; this.formItem.shopName = this.listClass[0].label;
}, }
}, },
watch: { watch: {
"formItem.radio"(v) { "formItem.radio"(v) {
......
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