cosmoim-852 fix 印尼回车校验问题处理

master
guoshuang 3 years ago
parent fe2200c6d1
commit 4267341f6a

@ -508,7 +508,7 @@ export default {
PleaseOne: 'Введите ответственное лицо', PleaseOne: 'Введите ответственное лицо',
PleaseTwo: 'Введите причину неисправности', PleaseTwo: 'Введите причину неисправности',
rejectsOffline: 'нижняя линия дефекта', rejectsOffline: 'нижняя линия дефекта',
ResponsibleProcess: 'зона ответственности', ResponsibleProcess: 'Ответственный участок',
PleaseThere: 'Введите ответственную операцию', PleaseThere: 'Введите ответственную операцию',
rawWasteJudgment: 'утилизация сырья', rawWasteJudgment: 'утилизация сырья',
reason1: 'причина', reason1: 'причина',
@ -526,7 +526,7 @@ export default {
allocation: 'переброска', allocation: 'переброска',
Relationship: 'производственные вычеты', Relationship: 'производственные вычеты',
Insufficient: 'недостаточная емкость источника', Insufficient: 'недостаточная емкость источника',
defect: 'дефект', defect: 'Дефект',
Note: 'Примечание', Note: 'Примечание',
}, },
}; };

@ -165,7 +165,7 @@ export default class LoginPage extends BasePage {
// //
this.Version = '1.1.3'; this.Version = '1.1.3';
} else { } else {
this.Version = '1.0.36'; this.Version = '1.0.37';
} }
console.log('////', this.Version); console.log('////', this.Version);
} }

@ -200,7 +200,7 @@ export default class AggregatingOrder extends BasePage {
if (model.orderList.length === 0) { if (model.orderList.length === 0) {
this.customToast(this.$t('message.Pi_tip4') as string); this.customToast(this.$t('message.Pi_tip4') as string);
} else { } else {
if (this.submitForm.receiver == session.loginName) { if (this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName == session.loginName) {
this.customToast(this.$t('message.different') as string); this.customToast(this.$t('message.different') as string);
return; return;
} }
@ -208,7 +208,7 @@ export default class AggregatingOrder extends BasePage {
rfPwd: this.submitForm.password, rfPwd: this.submitForm.password,
factoryCode: session.factoryCode as string, factoryCode: session.factoryCode as string,
// loginName: this.submitForm.receiver, // loginName: this.submitForm.receiver,
loginName: this.submitForm.receiver, loginName: this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName,
}); });
let submit = false; let submit = false;
let selectsta = true; let selectsta = true;
@ -252,7 +252,7 @@ export default class AggregatingOrder extends BasePage {
return; return;
} }
await this.model.uploadOrderList({ await this.model.uploadOrderList({
operatorPass: this.submitForm.receiver, operatorPass: this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName,
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
loginName: session.loginName, loginName: session.loginName,
orderOutIdAmountList: List.map((item: any) => ({ orderOutIdAmountList: List.map((item: any) => ({

@ -235,14 +235,14 @@ export default class AggregatingSummary extends BasePage {
if (this.model.aggregateList.length === 0) { if (this.model.aggregateList.length === 0) {
this.customToast(this.$t('message.Pi_tip4') as string); this.customToast(this.$t('message.Pi_tip4') as string);
} else { } else {
if (this.submitForm.receiver == session.loginName) { if (this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName == session.loginName) {
this.customToast(this.$t('message.different') as string); this.customToast(this.$t('message.different') as string);
return; return;
} }
await auth.checkPassword({ await auth.checkPassword({
rfPwd: this.submitForm.password, rfPwd: this.submitForm.password,
factoryCode: session.factoryCode as string, factoryCode: session.factoryCode as string,
loginName: this.submitForm.receiver, loginName: this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName,
}); });
let submit = false; let submit = false;
let selectsta = true; let selectsta = true;
@ -288,7 +288,7 @@ export default class AggregatingSummary extends BasePage {
return; return;
} }
await this.model.uploadAggregateList({ await this.model.uploadAggregateList({
operatorPass: this.submitForm.receiver, operatorPass: this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName,
factoryCode: session.factoryCode as string, factoryCode: session.factoryCode as string,
loginName: session.loginName as string, loginName: session.loginName as string,
dataList: List.map((item: any) => ({ dataList: List.map((item: any) => ({

@ -444,7 +444,9 @@ export default class RawReceiptDetail extends BasePage {
let dataList = this.model.blDetailList; let dataList = this.model.blDetailList;
const params = { const params = {
dataList, dataList,
...this.form2, //...this.form2,
rfPwd: this.form2.rfPwd,
operatorPass: this.form2.operatorPass ? this.form2.operatorPass : this.operatorName,
factoryCode: this.session.factoryCode, factoryCode: this.session.factoryCode,
loginName: this.session.loginName, loginName: this.session.loginName,
}; };

@ -225,14 +225,14 @@ export default class VirtualSummary extends BasePage {
this.customToast(this.$t('message.Summary_PleaseInputNumber') as string); this.customToast(this.$t('message.Summary_PleaseInputNumber') as string);
return; return;
} }
if (this.submitForm.receiver == session.loginName) { if (this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName == session.loginName) {
this.customToast(this.$t('message.different') as string); this.customToast(this.$t('message.different') as string);
return; return;
} }
let res = await auth.checkPassword({ let res = await auth.checkPassword({
rfPwd: this.submitForm.password, rfPwd: this.submitForm.password,
factoryCode: session.factoryCode as string, factoryCode: session.factoryCode as string,
loginName: this.submitForm.receiver, loginName: this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName,
}); });
if (res.code != 1) { if (res.code != 1) {
return; return;
@ -246,7 +246,7 @@ export default class VirtualSummary extends BasePage {
}); });
console.log('数据。。。', list); console.log('数据。。。', list);
await model.uploadSummaryList({ await model.uploadSummaryList({
operatorPass: this.submitForm.receiver, operatorPass: this.submitForm.receiver ? this.submitForm.receiver : this.submitForm.receiverName,
factoryCode: session.factoryCode as string, factoryCode: session.factoryCode as string,
loginName: session.loginName as string, loginName: session.loginName as string,
sapFactoryCode: model.sapFactoryCode, sapFactoryCode: model.sapFactoryCode,

Loading…
Cancel
Save