cosmoim-852 fix 原材料退料增加退料人校验

master
hou 3 years ago
parent f1a0420cc7
commit 40a93046f2

@ -482,5 +482,6 @@ export default {
POPlan: 'PO计划', POPlan: 'PO计划',
WPMInformation: 'WPM信息', WPMInformation: 'WPM信息',
Container: '容器码', Container: '容器码',
returner: '退料人必须等于登录人',
}, },
}; };

@ -487,5 +487,6 @@ export default {
POPlan: 'PO-Plan', POPlan: 'PO-Plan',
WPMInformation: 'WPM-Information', WPMInformation: 'WPM-Information',
Container: 'Container Code', Container: 'Container Code',
returner: 'The returner must be equal to the login',
}, },
}; };

@ -352,7 +352,7 @@ export default class RawReceiptDetail extends BasePage {
this.business(); this.business();
} }
} }
deleteItem(e: any) { deleteItem(e: any): void {
uni.showModal({ uni.showModal({
content: this.$t('message.product_Delete') as string, content: this.$t('message.product_Delete') as string,
cancelText: this.$t('message.Cancel') as string, cancelText: this.$t('message.Cancel') as string,

@ -217,6 +217,10 @@ export default class returningDom extends BasePage {
} else { } else {
this.$form.validate(async (valid: boolean) => { this.$form.validate(async (valid: boolean) => {
if (!valid) return; if (!valid) return;
if (this.form.operator != session.loginName) {
this.customToast(this.$t('message.returner') as string);
return;
}
(this.form.sapFactoryCode as any) = this.model.orderInInfo.sapFactoryCode; (this.form.sapFactoryCode as any) = this.model.orderInInfo.sapFactoryCode;
this.form.wlCode = this.wlCode.label; this.form.wlCode = this.wlCode.label;
await this.model.tluSubmit(this.form); await this.model.tluSubmit(this.form);

Loading…
Cancel
Save