overseamom-252 feat dnReceive根据PO和物料定位库位

master
mabaoyan 2 years ago
parent e3f15089a8
commit 0513a4db35

@ -138,6 +138,8 @@ export default class dnReceiptDom extends BasePage {
async queryLoction() {
this.Location = [];
let sendSpot = JSON.parse(uni.getStorageSync('sendSpot') as any);
let data:any = this.model.orderInInfoList.find((val:any)=>val.poNo==this.poNo&&val.materialCode==this.every.materialCode);
uni.setStorageSync('sendSpot', JSON.stringify(data.sendSpot) as any);
let content = {
loginName: session.loginName,
sendSpot: sendSpot,
@ -161,6 +163,8 @@ export default class dnReceiptDom extends BasePage {
let list: Array<LocationDetail> = [];
let means: any = JSON.parse(uni.getStorageSync('__GWMS_APP_STATE_DATA__') as any);
let sendSpot = JSON.parse(uni.getStorageSync('sendSpot') as any);
let data:any = this.model.orderInInfoList.find((val:any)=>val.poNo==this.poNo&&val.materialCode==this.every.materialCode);
uni.setStorageSync('sendSpot', JSON.stringify(data.sendSpot) as any);
let content = {
loginName: means.session.user.loginName,
sendSpot: sendSpot,
@ -168,7 +172,6 @@ export default class dnReceiptDom extends BasePage {
workArea: session.workareaCode,
};
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
console.log('>>>>>>>>>>>>>>', res);
res.forEach((item: LocationDetail) => {
if (item.sendSpot === condition.sendSpot) {
let pickerName: any = {};
@ -272,6 +275,7 @@ export default class dnReceiptDom extends BasePage {
//
this.Location = await this.initLocation(this.every);
if (this.Location.length == 0) {
await this.queryLoction();
}
//

Loading…
Cancel
Save