|
|
@ -13,7 +13,7 @@
|
|
|
|
<view class="single">
|
|
|
|
<view class="single">
|
|
|
|
<view class="single-left">
|
|
|
|
<view class="single-left">
|
|
|
|
<view>{{ $t('message.dn_OddNumbers') }}</view>
|
|
|
|
<view>{{ $t('message.dn_OddNumbers') }}</view>
|
|
|
|
<u-search :placeholder="$t('message.dn_PleaseScan')" v-model.trim="form.documentNo" @search="query" :show-action="false"></u-search>
|
|
|
|
<u-search :placeholder="$t('message.dn_PleaseScan')" v-model.trim="form.documentNo" @search="query" :focus="isfocus" :show-action="false"></u-search>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="single-right">
|
|
|
|
<view class="single-right">
|
|
|
|
<u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button>
|
|
|
|
<u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button>
|
|
|
@ -110,6 +110,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
materialList: any = [];
|
|
|
|
materialList: any = [];
|
|
|
|
// 当前被选择中原材料
|
|
|
|
// 当前被选择中原材料
|
|
|
|
every: any = {};
|
|
|
|
every: any = {};
|
|
|
|
|
|
|
|
isfocus = true;
|
|
|
|
everyIndex: any = '';
|
|
|
|
everyIndex: any = '';
|
|
|
|
value = '';
|
|
|
|
value = '';
|
|
|
|
headers = DNheader;
|
|
|
|
headers = DNheader;
|
|
|
@ -187,6 +188,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as any);
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as any);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
await this.model.subcDnInfo(this.form.documentNo);
|
|
|
|
await this.model.subcDnInfo(this.form.documentNo);
|
|
|
|
if (model.code == '1') {
|
|
|
|
if (model.code == '1') {
|
|
|
|
if (this.model.orderInInfoList.length == 0) {
|
|
|
|
if (this.model.orderInInfoList.length == 0) {
|
|
|
@ -219,6 +221,15 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
pickerName: this.poList.find(() => true),
|
|
|
|
pickerName: this.poList.find(() => true),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
|
|
if (this.poList.length == 0) {
|
|
|
|
|
|
|
|
this.form.documentNo = '';
|
|
|
|
|
|
|
|
this.isfocus = false;
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.isfocus = true;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 去除重复 方法
|
|
|
|
// 去除重复 方法
|
|
|
|
// 传入数组 list 及要去重的属性 valueKey
|
|
|
|
// 传入数组 list 及要去重的属性 valueKey
|
|
|
@ -431,6 +442,10 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
} else if (res.data.code == '0' && res.data.list == null) {
|
|
|
|
} else if (res.data.code == '0' && res.data.list == null) {
|
|
|
|
this.empty();
|
|
|
|
this.empty();
|
|
|
|
this.form.documentNo = '';
|
|
|
|
this.form.documentNo = '';
|
|
|
|
|
|
|
|
this.isfocus = false;
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.isfocus = true;
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|