Commit b57238d3 by yiyu.li

上料优化

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