Commit b57238d3 by yiyu.li

上料优化

parent 012a68c2
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
}, },
created() { created() {
this.getProLine(); this.getProLine();
this.getStorages();
}, },
mounted() { mounted() {
// this.getStations() // this.getStations()
...@@ -397,7 +397,9 @@ export default { ...@@ -397,7 +397,9 @@ export default {
}, },
//获取储位 //获取储位
getStorages() { getStorages() {
this.request("/acc/AutomationLocation/GetLocationList?fillsn=1", "", "get") let code = '';
code = this.orderDetail.productCode? this.orderDetail.productCode :'';
this.request("/acc/AutomationLocation/GetLocationList?fillsn=1&code="+code, "", "get")
.then((res) => { .then((res) => {
if (res.data.ret == 1) { if (res.data.ret == 1) {
this.data1 = res.data.data; this.data1 = res.data.data;
...@@ -413,7 +415,6 @@ export default { ...@@ -413,7 +415,6 @@ export default {
let data = { let data = {
code: this.code, code: this.code,
}; };
this.request("/acc/AutomationOperate/ScanCode", data, "get") this.request("/acc/AutomationOperate/ScanCode", data, "get")
.then((res) => { .then((res) => {
if (res.data.ret == 1) { if (res.data.ret == 1) {
...@@ -428,6 +429,7 @@ export default { ...@@ -428,6 +429,7 @@ export default {
this.orderDetail, this.orderDetail,
obj obj
); );
this.getStorages();
} else { } else {
this.$Message.error(this.$t(res.data.msg)); this.$Message.error(this.$t(res.data.msg));
this.orderDetail = {}; this.orderDetail = {};
...@@ -454,6 +456,7 @@ export default { ...@@ -454,6 +456,7 @@ export default {
this.orderDetail, this.orderDetail,
obj obj
); );
this.getStorages();
} else { } else {
this.$Message.error(this.$t(res.data, msg)); this.$Message.error(this.$t(res.data, msg));
} }
......
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