委外代码混乱问题 显示阴影问题

master
hou 3 years ago
parent a3ba3a3c2b
commit e8b1639976

@ -129,11 +129,10 @@ export default class dnReceiptDom extends BasePage {
factoryCode: session.factoryCode,
workArea: session.workareaCode,
};
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
console.log('res res', res);
await this.model.queryByFactoryCodeAndWorkAreaCode(content);
// undefined
//guoshuang undefiend
res.forEach((item: any) => {
this.model.LoctionList.forEach((item: any) => {
let pickerName: any = {};
pickerName.label = item.locationCode;
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';

@ -37,6 +37,7 @@ export class ReturningModule extends VuexModule {
*/
materielList: any[] = [];
locationCodeList: any[] = [];
LoctionList:any[] = []
//条码扫描的返回的结果
oneMaterielDetail: any = {};
@ -198,13 +199,14 @@ export class ReturningModule extends VuexModule {
const materielList: any = [];
return { code, materielList };
}
@Action({ commit: "updateCheckedOrderInInfoListKw" })
@MutationAction
async queryByFactoryCodeAndWorkAreaCode(content: any) {
let res = await http.post(
let res:any = await http.post(
"/wmspda/fg/queryByFactoryCodeAndWorkAreaCode",
content
);
return res;
const LoctionList = res
return {LoctionList};
}
@Action

@ -47,7 +47,7 @@
<view class="library">
<view class="library-left">
<view>{{ $t('message.CommissionedLocation') }}</view>
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="LocationChoice" showKey="value" valKey="value" :val="wlCode.value" class="search" :options="Location" />
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="LocationChoice" showKey="value" valKey="value" :val="wlCode.value" class="search" :options="Loc" />
</view>
<view class="library-right">
<view class="library-right-title">{{ $t('message.CommissionedThisNumber') }}</view>
@ -107,7 +107,7 @@ export default class dnReceiptDom extends BasePage {
border = true;
nowAmount: any = '';
//
Location: any = [];
Loc: any = [];
//
wlCode: any = '';
materialIndex:any = null
@ -122,16 +122,13 @@ export default class dnReceiptDom extends BasePage {
factoryCode: means.session.user.factoryCode,
workArea: session.workareaCode,
};
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
console.log('////res', res);
//undefinedres[[],[]],arry
//guoshuang undefined
res.forEach((item: any) => {
await this.model.queryCodeAndWorkAreaCode(content);
this.model.LocList.forEach((item: any) => {
let pickerName: any = {};
pickerName.label = item.locationCode;
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
pickerName.sendSpot = item.sendSpot;
this.Location.push(pickerName);
this.Loc.push(pickerName);
});
}
empty() {
@ -140,7 +137,7 @@ export default class dnReceiptDom extends BasePage {
this.nowAmount = '';
this.every = '';
this.materialList = [];
this.Location = [];
this.Loc = [];
}
async close(){
if (this.form.documentNo == '') {
@ -353,7 +350,7 @@ export default class dnReceiptDom extends BasePage {
height: 100%;
display: flex;
view {
width: 110rpx;
width: 130rpx;
height: 100%;
line-height: 100rpx;
}

@ -17,7 +17,7 @@ class OrderInInfo {
namespaced: true,
dynamic: true,
store,
name: 'product.outbound.stoOutbound',
name: 'product.outbound.stoOut',
})
export class ReturningModule extends VuexModule {
/**
@ -30,6 +30,7 @@ export class ReturningModule extends VuexModule {
*/
materielList: any[] = [];
locationCodeList: any[] = [];
LocList:any[] = []
//条码扫描的返回的结果
oneMaterielDetail: any = {};
/**
@ -149,11 +150,14 @@ export class ReturningModule extends VuexModule {
//委外出库 初始化获取库位
@Action({ commit: 'updateCheckedOrderInInfoListKw' })
async queryByFactoryCodeAndWorkAreaCode(content: any) {
let res = await http.post('/wmspda/fg/queryByFactoryCodeAndWorkAreaCode', content);
// @Action({ commit: 'updateCheckedOrderInInfoListKw' })
@MutationAction
async queryCodeAndWorkAreaCode(content: any) {
let res:any = await http.post('/wmspda/fg/queryByFactoryCodeAndWorkAreaCode', content);
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', res);
return res;
const LocList = res
console.log('LocList',LocList)
return {LocList};
}
@Action

Loading…
Cancel
Save