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

master
hou 3 years ago
parent a3ba3a3c2b
commit e8b1639976

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

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

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

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

Loading…
Cancel
Save