cosmoim-852 fix 原材料报废成本中心必选bug修复

master
guoshuang 3 years ago
parent 4efda6f842
commit 91c617b718

@ -171,7 +171,7 @@ export default class LoginPage extends BasePage {
console.log('......', server.serverAddress); console.log('......', server.serverAddress);
if (server.serverAddress.includes('https://eurmom.haier.net')) { if (server.serverAddress.includes('https://eurmom.haier.net')) {
// //
this.Version = '1.1.31'; this.Version = '1.1.32';
} else { } else {
this.Version = '1.0.49'; this.Version = '1.0.49';
} }

@ -232,6 +232,10 @@ export default class KanDanHandOver extends BasePage {
this.customToast(this.$t('message.Warehouse_Tip5') as string); this.customToast(this.$t('message.Warehouse_Tip5') as string);
return; return;
} }
if (!this.centerlist.value) {
this.customToast(this.$t('message.Pleasecenter') as string);
return;
}
if (this.Some.fileNo == '' || this.Some.fileNo == null || this.Some.fileNo == undefined) { if (this.Some.fileNo == '' || this.Some.fileNo == null || this.Some.fileNo == undefined) {
this.customToast(this.$t('message.fileNumber') as string); this.customToast(this.$t('message.fileNumber') as string);
return; return;
@ -335,10 +339,6 @@ export default class KanDanHandOver extends BasePage {
this.customToast(this.$t('message.Pi_NoData') as string); this.customToast(this.$t('message.Pi_NoData') as string);
return; return;
} }
if (!this.centerlist.value) {
this.customToast(this.$t('message.Pleasecenter') as string);
return;
}
let isTrue = true; let isTrue = true;
this.model.orderInInfoList.forEach((item: any) => { this.model.orderInInfoList.forEach((item: any) => {
if (item.totalqty != 0) { if (item.totalqty != 0) {
@ -359,7 +359,7 @@ export default class KanDanHandOver extends BasePage {
image: '/static/icons/icon-51.png', image: '/static/icons/icon-51.png',
}); });
this.Some = {}; this.Some = {};
this.Some.fileNo = ' '; this.Some.fileNo = '';
this.wl = {}; this.wl = {};
this.MaterialList = []; this.MaterialList = [];
this.qty = 0; this.qty = 0;

Loading…
Cancel
Save