Commit 21a3d234 authored by 仇晓婷's avatar 仇晓婷

排产优化

parent b9a8705f
......@@ -5,9 +5,9 @@
<Col :span="6" class="chan-chi">排产池</Col>
<Col :span="18" class="l-ringht">
<RadioGroup v-model="status" type="button" @on-change="changeStatus" size="small">
<Radio label="-1">全部</Radio>
<Radio label="0">未排产</Radio>
<Radio label="2">已排查</Radio>
<Radio label="-1">全部</Radio>
</RadioGroup>
</Col>
</Row>
......@@ -130,19 +130,17 @@ export default {
},
data() {
return {
// activeindex: 1,
list: [],
status: "-1", //全部排产-1,0为未排产;2为已排查;
status: "0", //全部排产-1,0为未排产;2为已排查;
formItem: {
// resourcesType: 0,
radio: "0",
time: "",
beginTime: "",
endTime: "",
remark: "",
departmentTitle: "",
shopId: "",
userName: ""
shopId: ""
// userName: ""
},
// listGroup: [
// {
......@@ -182,7 +180,7 @@ export default {
};
},
created() {
this.orderlist(-1);
this.orderlist(0);
},
methods: {
// 过滤条件
......@@ -233,13 +231,14 @@ export default {
userIds: this.formItem.userIds,
beginTime: this.formItem.beginTime,
endTime: this.formItem.endTime,
remark: this.formItem.remark,
userName: this.formItem.userName
remark: this.formItem.remark
// userName: this.formItem.userName
};
Api.cmonestepschedule(params1).then(r => {
if (r.success) {
this.$Message.success("下发成功");
this.orderlist(this.status);
this.orderIds = [];
} else {
this.$Message.success("下发失败");
this.formItem = {};
......@@ -259,6 +258,7 @@ export default {
if (r.success) {
this.$Message.success("下发成功");
this.orderlist(this.status);
this.orderIds = [];
this.formItem = {};
this.formItem.radio = 0;
} else {
......
......@@ -5,9 +5,9 @@
<Col :span="6" class="chan-chi">排产池</Col>
<Col :span="18" class="l-ringht">
<RadioGroup v-model="status" type="button" @on-change="changeStatus" size="small">
<Radio label="-1">全部</Radio>
<Radio label="0">未排产</Radio>
<Radio label="2">已排查</Radio>
<Radio label="-1">全部</Radio>
</RadioGroup>
</Col>
</Row>
......@@ -152,7 +152,7 @@ export default {
active: null,
activeindex: 1,
list: [],
status: "-1", //全部排产-1,0为未排产;2为已排查;
status: "0", //全部排产-1,0为未排产;2为已排查;
result: [],
isactive: null,
resourcesType: null,
......@@ -161,13 +161,13 @@ export default {
maxnum: 1,
chaiModal: false,
orderId: 0,
quantity: 0,
routingHeaderId: 0,
detailId: 0
};
},
created() {
this.orderlist(-1);
this.orderlist(0);
},
methods: {
// 排产池过滤条件
......@@ -217,7 +217,6 @@ export default {
u.chai = false;
});
this.result = r.result;
this.quantity = r.result.quantity;
}
});
},
......@@ -303,7 +302,7 @@ export default {
},
//下发
lowerHair() {
if (this.orderId || this.quantity) {
if (this.orderId) {
var items = [];
var obj = {};
if (this.mode == 1) {
......@@ -324,7 +323,7 @@ export default {
items: items
};
Api.flonestepschedule(data).then(r => {
if (r.success) {
if (r.result) {
this.$Message.success("下发成功");
this.orderlist(this.status);
} else {
......@@ -349,7 +348,7 @@ export default {
items: items
};
Api.fltwostepschedule(data).then(r => {
if (r.success) {
if (r.result) {
this.$Message.success("下发成功");
this.orderlist(this.status);
} else {
......
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