Commit 909c5f5d authored by 仇晓婷's avatar 仇晓婷

流水排产

parent f6b29aad
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
import Set from "./set"; import Set from "./set";
import Api from "./api"; import Api from "./api";
export default { export default {
name: "list", name: "set",
components: { components: {
Set Set
}, },
...@@ -182,11 +182,11 @@ export default { ...@@ -182,11 +182,11 @@ export default {
u.aps = 0; u.aps = 0;
}); });
this.list = r.result; this.list = r.result;
if (r.result[0]) { // if (r.result[0]) {
// this.tagTata(r.result[0].id); // this.tagTata(r.result[0].id);
} else { // } else {
this.result = []; // this.result = [];
} // }
} else { } else {
this.$Message.info("排产池数据请求失败"); this.$Message.info("排产池数据请求失败");
} }
...@@ -298,6 +298,7 @@ export default { ...@@ -298,6 +298,7 @@ export default {
}, },
//下发 //下发
lowerHair() { lowerHair() {
if (this.orderId) {
var items = []; var items = [];
var obj = {}; var obj = {};
if (this.mode == 1) { if (this.mode == 1) {
...@@ -351,6 +352,9 @@ export default { ...@@ -351,6 +352,9 @@ export default {
} }
}); });
} }
} else {
this.$Message.info("请先选择排产订单");
}
}, },
closeOk() { closeOk() {
this.set = false; this.set = false;
...@@ -370,7 +374,6 @@ export default { ...@@ -370,7 +374,6 @@ export default {
let oks = this.result.filter(u => { let oks = this.result.filter(u => {
return u.aps == mode; return u.aps == mode;
}); });
return oks.length == this.result.length; return oks.length == this.result.length;
} }
} }
......
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