|
|
|
@ -26,13 +26,23 @@
|
|
|
|
|
<u-form-item :required="!isavailable" :label="$t('message.Container')" prop="productCode">
|
|
|
|
|
<u-search :disabled="isavailable" :placeholder="$t('message.po_PleaseInput')" v-model.trim="form.productCode" @search="query" :show-action="false"></u-search>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 原因 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.reason1')">
|
|
|
|
|
<u-input v-model="histroyItem.reason" :required="true" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
|
<!-- 原因编码 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.Reasoncode')">
|
|
|
|
|
<u-search placeholder="" v-model="histroyItem.reason" @search="queryreason" :show-action="false"></u-search>
|
|
|
|
|
<!-- <u-input v-model="histroyItem.reason" :required="true" :placeholder="$t('message.po_PleaseInput')" /> -->
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 原因名称 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.Reasonname')">
|
|
|
|
|
<u-input :disabled="true" v-model="reasonList.dicName" placeholder="" style="overflow: hidden" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 责任人 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.personLiable')">
|
|
|
|
|
<u-input v-model="histroyItem.responsibleUser" :required="true" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
|
<!-- <u-input v-model="histroyItem.responsibleUser" :required="true" :placeholder="$t('message.po_PleaseInput')" /> -->
|
|
|
|
|
<u-search placeholder="" v-model="histroyItem.responsibleUser" @search="querypersonliable" :show-action="false"></u-search>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 责任人名称 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.responsiblepersonname')">
|
|
|
|
|
<u-input :disabled="true" v-model="ProcessList.dicName" placeholder="" style="overflow: hidden" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 供应商 -->
|
|
|
|
|
<u-form-item :label="$t('message.po_Supplier')">
|
|
|
|
@ -114,6 +124,8 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
};
|
|
|
|
|
value = '';
|
|
|
|
|
show = false;
|
|
|
|
|
reasonList: any = {};
|
|
|
|
|
ProcessList: any = {};
|
|
|
|
|
//选择原库位回调函数
|
|
|
|
|
bookTypeChangeold(e: any) {
|
|
|
|
|
console.log('???', e);
|
|
|
|
@ -143,6 +155,36 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
async queryreason() {
|
|
|
|
|
if (this.histroyItem.reason == '' || this.histroyItem.reason.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.Pleasedefects') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.checkDicCode(this.histroyItem.reason);
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.successful') as string,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
this.reasonList = this.model.resdata;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async querypersonliable() {
|
|
|
|
|
if (this.histroyItem.responsibleUser == '' || this.histroyItem.responsibleUser.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.PleaseResponsibleArea') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.checkDicCode(this.histroyItem.responsibleUser);
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.successful') as string,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
this.ProcessList = this.model.resdata;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//扫描条码回车
|
|
|
|
|
async query() {
|
|
|
|
|
if (this.form.productCode == ' ' || this.form.productCode.length == 0) {
|
|
|
|
|