|
|
|
@ -55,7 +55,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="wl.value" class="search" :options="Location" />
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="LocationChoice" showKey="value" valKey="value" :val="wl.value" class="search" :options="newLocation" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="library-right">
|
|
|
|
|
<view class="library-right-title">{{ $t('message.CommissionedThisNumber') }}</view>
|
|
|
|
@ -127,6 +127,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
receiptAmount: any = '';
|
|
|
|
|
//库位
|
|
|
|
|
Location: any = [];
|
|
|
|
|
newLocation: any = [];
|
|
|
|
|
//添加的库位和数量的列表
|
|
|
|
|
LocationList: any = [];
|
|
|
|
|
//所选择的库位对象
|
|
|
|
@ -139,7 +140,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
requestAmount: number = null;
|
|
|
|
|
|
|
|
|
|
async onReady() {
|
|
|
|
|
this.initLocation();
|
|
|
|
|
//this.initLocation();
|
|
|
|
|
}
|
|
|
|
|
// 页面初始化
|
|
|
|
|
// 页面需要清空仓库,因此需要复用该方法
|
|
|
|
@ -161,6 +162,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
|
pickerName.sendSpot = item.sendSpot;
|
|
|
|
|
this.Location.push(pickerName);
|
|
|
|
|
console.log("this.Locaton",this.Location);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//输入单号 查询数据
|
|
|
|
@ -176,6 +178,12 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
this.initLocation();
|
|
|
|
|
await this.model.queryOrderInInfo(this.form.documentNo);
|
|
|
|
|
let list: any = localStorage.getItem('list');
|
|
|
|
|
// if (list) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: 'none',
|
|
|
|
|
// title: this.$t('message.success') as any,
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
localStorage.removeItem('list');
|
|
|
|
|
this.material = JSON.parse(list);
|
|
|
|
|
this.poList = [...this.material]; //结构
|
|
|
|
@ -224,6 +232,10 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
materialChoice(e: any) {
|
|
|
|
|
// 待放入新增中的公共对象
|
|
|
|
|
this.every = { ...e.pickerName };
|
|
|
|
|
console.log("this.every",this.every);
|
|
|
|
|
//guoshuang 修改库位下拉数据为 与选择的物料下SAP相同的所有库位
|
|
|
|
|
this.newLocation = this.Location.filter((item: any) => item.sendSpot === this.every.sendSpot);
|
|
|
|
|
console.log("newLoction",this.newLocation);
|
|
|
|
|
}
|
|
|
|
|
//选择库位后触发的回调事件
|
|
|
|
|
LocationChoice(e: any) {
|
|
|
|
@ -288,6 +300,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
this.LocationList = [];
|
|
|
|
|
// 仓库
|
|
|
|
|
this.Location = [];
|
|
|
|
|
this.newLocation = [];
|
|
|
|
|
this.poNo = '';
|
|
|
|
|
this.poList = [];
|
|
|
|
|
// 清空 当前选择的库位对象
|
|
|
|
@ -442,7 +455,8 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
.material-right-code {
|
|
|
|
|
width: 80%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
// line-height: 100rpx;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|