cosmoim-852 fix 接收人回车校验修改

master
guoshuang 3 years ago
parent 7e03f8332d
commit 36ae52556a

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

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

@ -104,7 +104,7 @@
</u-button>
</u-col>
<u-col :span="4">
<u-button type="error" @click="uni.navigateBack()">
<u-button type="error" @click="uni.navigateBack({})">
{{ $t('message.po_Return') }}
</u-button>
</u-col>
@ -448,6 +448,7 @@ export default class RawReceiptDetail extends BasePage {
factoryCode: this.session.factoryCode,
loginName: this.session.loginName,
};
console.log(params);
await this.model.saveBlDetailUpload(params).then(() => {
this.qty = '';
this.LocationList = [];

@ -108,7 +108,7 @@ export class FeedingModule extends VuexModule {
async saveBlDetailUpload(params: any) {
await auth.checkPassword({
factoryCode: session.factoryCode as string,
loginName: session.loginName as string,
loginName: params.operatorPass as string,
rfPwd: params.rfPwd,
});
await http.post(url.bl.u, {
@ -226,7 +226,7 @@ export class FeedingModule extends VuexModule {
async saveBlDetailSubmit(params: any) {
await auth.checkPassword({
factoryCode: session.factoryCode as string,
loginName: session.loginName as string,
loginName: params.operatorPass as string,
rfPwd: params.rfPwd,
});
await http.post(url.bl.uRussia, {

@ -225,14 +225,14 @@ export default class VirtualSummary extends BasePage {
this.customToast(this.$t('message.Summary_PleaseInputNumber') as string);
return;
}
if (this.submitForm.receiverName == session.loginName) {
if (this.submitForm.receiver == session.loginName) {
this.customToast(this.$t('message.different') as string);
return;
}
let res = await auth.checkPassword({
rfPwd: this.submitForm.password,
factoryCode: session.factoryCode as string,
loginName: this.submitForm.receiverName,
loginName: this.submitForm.receiver,
});
if (res.code != 1) {
return;

Loading…
Cancel
Save