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) { 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.receiverName == session.loginName) { if (this.submitForm.receiver == 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.receiverName, loginName: this.submitForm.receiver,
}); });
let submit = false; let submit = false;
let selectsta = true; let selectsta = true;

@ -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.receiverName == session.loginName) { if (this.submitForm.receiver == 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.receiverName, loginName: this.submitForm.receiver,
}); });
let submit = false; let submit = false;
let selectsta = true; let selectsta = true;

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

@ -108,7 +108,7 @@ export class FeedingModule extends VuexModule {
async saveBlDetailUpload(params: any) { async saveBlDetailUpload(params: any) {
await auth.checkPassword({ await auth.checkPassword({
factoryCode: session.factoryCode as string, factoryCode: session.factoryCode as string,
loginName: session.loginName as string, loginName: params.operatorPass as string,
rfPwd: params.rfPwd, rfPwd: params.rfPwd,
}); });
await http.post(url.bl.u, { await http.post(url.bl.u, {
@ -226,7 +226,7 @@ export class FeedingModule extends VuexModule {
async saveBlDetailSubmit(params: any) { async saveBlDetailSubmit(params: any) {
await auth.checkPassword({ await auth.checkPassword({
factoryCode: session.factoryCode as string, factoryCode: session.factoryCode as string,
loginName: session.loginName as string, loginName: params.operatorPass as string,
rfPwd: params.rfPwd, rfPwd: params.rfPwd,
}); });
await http.post(url.bl.uRussia, { 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); this.customToast(this.$t('message.Summary_PleaseInputNumber') as string);
return; return;
} }
if (this.submitForm.receiverName == session.loginName) { if (this.submitForm.receiver == 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.receiverName, loginName: this.submitForm.receiver,
}); });
if (res.code != 1) { if (res.code != 1) {
return; return;

Loading…
Cancel
Save