|
|
|
@ -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);
|
|
|
|
|
//库位为undefined,打印的res信息格式为[[],[]],且里面两个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;
|
|
|
|
|
}
|
|
|
|
|