|
|
|
@ -33,7 +33,8 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 缺陷 -->
|
|
|
|
|
<u-form-item :label="$t('message.defect')">
|
|
|
|
|
<u-input v-model="Some.reason" placeholder="" />
|
|
|
|
|
<u-search placeholder="" v-model.trim="Some.reason" @search="queryreason" :show-action="false"></u-search>
|
|
|
|
|
<!-- <u-input v-model="Some.reason" placeholder="" /> -->
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 责任人 -->
|
|
|
|
|
<u-form-item :label="$t('message.personLiable')">
|
|
|
|
@ -41,7 +42,8 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 责任区域 -->
|
|
|
|
|
<u-form-item :label="$t('message.ResponsibleProcess')">
|
|
|
|
|
<u-input v-model="Some.responsibleProcess" placeholder="" />
|
|
|
|
|
<!-- <u-input v-model="Some.responsibleProcess" placeholder="" /> -->
|
|
|
|
|
<u-search placeholder="" v-model.trim="Some.responsibleProcess" @search="queryProcess" :show-action="false"></u-search>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 备注 -->
|
|
|
|
|
<u-form-item :label="$t('message.Note')">
|
|
|
|
@ -96,6 +98,8 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
aimWl: {} as OptionType,
|
|
|
|
|
};
|
|
|
|
|
dockCode: any = '';
|
|
|
|
|
reasonList: any = {};
|
|
|
|
|
ProcessList: any = {};
|
|
|
|
|
dockName: any = '';
|
|
|
|
|
wl: any = {};
|
|
|
|
|
Some: any = {};
|
|
|
|
@ -124,24 +128,62 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
this.Some = this.model.resdata;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async queryreason() {
|
|
|
|
|
if (this.Some.reason == '' || this.Some.reason.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.Pleasedefects') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.checkDicCode(this.Some.reason);
|
|
|
|
|
if (this.model.code == '0') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.successful') as string,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
this.reasonList = this.model.resdata;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async queryProcess() {
|
|
|
|
|
if (this.Some.responsibleProcess == '' || this.Some.responsibleProcess.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.PleaseResponsibleArea') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.checkDicCode(this.Some.responsibleProcess);
|
|
|
|
|
if (this.model.code == '0') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.successful') as string,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
this.ProcessList = this.model.resdata;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//关闭
|
|
|
|
|
async closure() {
|
|
|
|
|
if (!this.form.order3) {
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!this.Some.reason) {
|
|
|
|
|
this.customToast(this.$t('message.PleaseTwo') as string);
|
|
|
|
|
// if (!this.Some.reason) {
|
|
|
|
|
// this.customToast(this.$t('message.PleaseTwo') as string);
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
if (this.Some.responsibleProcess == '' || this.Some.responsibleProcess.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.PleaseResponsibleArea') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.Some.reason == '' || this.Some.reason.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.Pleasedefects') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// if (!this.Some.responsibleUser) {
|
|
|
|
|
// this.customToast(this.$t('message.PleaseOne') as string);
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
if (!this.Some.responsibleProcess) {
|
|
|
|
|
this.customToast(this.$t('message.PleaseThere') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// if (!this.Some.responsibleProcess) {
|
|
|
|
|
// this.customToast(this.$t('message.PleaseThere') as string);
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
await this.model.scrapSfgOfflineConfirm({
|
|
|
|
|
orderNo: this.Some.proMoveCode,
|
|
|
|
|
productCode: this.Some.materialCode,
|
|
|
|
@ -150,8 +192,10 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
barcode: this.form.order3,
|
|
|
|
|
reason: this.Some.reason,
|
|
|
|
|
reasonDesc: this.reasonList.dicName,
|
|
|
|
|
responsibleUser: this.Some.responsibleUser,
|
|
|
|
|
responsibleProcess: this.Some.responsibleProcess,
|
|
|
|
|
responsibleAreaName: this.ProcessList.dicName,
|
|
|
|
|
add2: this.Some.Note,
|
|
|
|
|
});
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|