feat dn收货 信息回传修改;

master
zhoulei 4 years ago
parent 64a2f1bf24
commit d6309c5d8f

@ -23,7 +23,7 @@
<view class="Purchase-title">
<view class="Purchase">
<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>
<!-- 物料 -->
@ -132,6 +132,7 @@ export default class dnReceiptDom extends BasePage {
wlCode: any = '';
//
poNo: any = '';
poNoCode: any = '';
//
upload: any = [];
//
@ -193,6 +194,12 @@ export default class dnReceiptDom extends BasePage {
poListChoice(e: any) {
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.materialList = this.removeDuplicates(this.material);
this.materialList.forEach((item: any) => {
@ -205,6 +212,12 @@ export default class dnReceiptDom extends BasePage {
// receiptAmount requestAmount
materialChoice(e: any) {
this.every = e.pickerName;
this.materialList.some((item, index) => {
if (item.poNo === e.pickerName.value) {
this.wlCode = index;
return true;
}
});
}
//
LocationChoice(e: any) {

Loading…
Cancel
Save