|
|
@ -23,7 +23,7 @@
|
|
|
|
<view class="Purchase-title">
|
|
|
|
<view class="Purchase-title">
|
|
|
|
<view class="Purchase">
|
|
|
|
<view class="Purchase">
|
|
|
|
<view>{{ $t('message.Purchase') }}</view>
|
|
|
|
<view>{{ $t('message.Purchase') }}</view>
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 260rpx" @bindpicker="poListChoice" showKey="value" valKey="value" :val="poNo" class="search" :options="poList" />
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 260rpx" @bindpicker="poListChoice" showKey="value" valKey="value" :val="poNoCode" class="search" :options="poList" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 物料 -->
|
|
|
|
<!-- 物料 -->
|
|
|
@ -132,6 +132,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
wlCode: any = '';
|
|
|
|
wlCode: any = '';
|
|
|
|
//所选择的采购单号
|
|
|
|
//所选择的采购单号
|
|
|
|
poNo: any = '';
|
|
|
|
poNo: any = '';
|
|
|
|
|
|
|
|
poNoCode: any = '';
|
|
|
|
//上传
|
|
|
|
//上传
|
|
|
|
upload: any = [];
|
|
|
|
upload: any = [];
|
|
|
|
//页面初始化
|
|
|
|
//页面初始化
|
|
|
@ -193,6 +194,12 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
poListChoice(e: any) {
|
|
|
|
poListChoice(e: any) {
|
|
|
|
console.log('选择采购单后触发的回调事件::', 'poListChoice:::', e);
|
|
|
|
console.log('选择采购单后触发的回调事件::', 'poListChoice:::', e);
|
|
|
|
// 赋值采购单号
|
|
|
|
// 赋值采购单号
|
|
|
|
|
|
|
|
this.poList.some((item, index) => {
|
|
|
|
|
|
|
|
if (item.poNo === e.pickerName.value) {
|
|
|
|
|
|
|
|
this.poNoCode = index;
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
this.poNo = e.pickerName.value;
|
|
|
|
this.poNo = e.pickerName.value;
|
|
|
|
this.materialList = this.removeDuplicates(this.material);
|
|
|
|
this.materialList = this.removeDuplicates(this.material);
|
|
|
|
this.materialList.forEach((item: any) => {
|
|
|
|
this.materialList.forEach((item: any) => {
|
|
|
@ -205,6 +212,12 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
//选择物料后触发的回调事件 本次数量:receiptAmount 需求数量:requestAmount
|
|
|
|
//选择物料后触发的回调事件 本次数量:receiptAmount 需求数量:requestAmount
|
|
|
|
materialChoice(e: any) {
|
|
|
|
materialChoice(e: any) {
|
|
|
|
this.every = e.pickerName;
|
|
|
|
this.every = e.pickerName;
|
|
|
|
|
|
|
|
this.materialList.some((item, index) => {
|
|
|
|
|
|
|
|
if (item.poNo === e.pickerName.value) {
|
|
|
|
|
|
|
|
this.wlCode = index;
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//选择库位后触发的回调事件
|
|
|
|
//选择库位后触发的回调事件
|
|
|
|
LocationChoice(e: any) {
|
|
|
|
LocationChoice(e: any) {
|
|
|
|