Hdsmesin-48 feat 重复请求问题解决

master
mabaoyan 2 years ago
parent a368b00d5a
commit ee520c9fe0

@ -165,7 +165,7 @@ export default class RawSo extends BasePage {
this.customToast(this.$t('message.Commission_tips1') as any); this.customToast(this.$t('message.Commission_tips1') as any);
return; return;
} }
let res = await this.model.queryOutsourcing(this.form.documentNo); let res = await this.model.queryOutsourcingRaw(this.form.documentNo);
this.material = res.data; this.material = res.data;
this.materialList = []; this.materialList = [];
this.Loc = []; this.Loc = [];
@ -329,7 +329,7 @@ export default class RawSo extends BasePage {
this.customToast(this.$t('message.Pi_NoData') as any); this.customToast(this.$t('message.Pi_NoData') as any);
return; return;
} }
await this.model.submitOutsourcing(this.list); await this.model.submitOutsourcingRaw(this.list);
this.empty(); this.empty();
await this.query(); await this.query();
} }

@ -172,7 +172,7 @@ export class ReturningModule extends VuexModule {
return { LocList }; return { LocList };
} }
@Action @Action
async queryOutsourcing(nxOutCode: any) { async queryOutsourcingRaw(nxOutCode: any) {
const res = await http.post(url.so.soOutbound.findInfoByDN, { const res = await http.post(url.so.soOutbound.findInfoByDN, {
nxOutCode, nxOutCode,
proOutType: 'raw', proOutType: 'raw',
@ -183,7 +183,7 @@ export class ReturningModule extends VuexModule {
} }
@Action @Action
async submitOutsourcing(upload: any) { async submitOutsourcingRaw(upload: any) {
const res = await http.post(url.so.soOutbound.confirm, upload); const res = await http.post(url.so.soOutbound.confirm, upload);
return res; return res;
} }

@ -165,7 +165,7 @@ export default class SpSo extends BasePage {
this.customToast(this.$t('message.Commission_tips1') as any); this.customToast(this.$t('message.Commission_tips1') as any);
return; return;
} }
let res = await this.model.queryOutsourcing(this.form.documentNo); let res = await this.model.queryOutsourcingSp(this.form.documentNo);
this.material = res.data; this.material = res.data;
this.materialList = []; this.materialList = [];
this.Loc = []; this.Loc = [];
@ -325,7 +325,7 @@ export default class SpSo extends BasePage {
this.customToast(this.$t('message.Pi_NoData') as any); this.customToast(this.$t('message.Pi_NoData') as any);
return; return;
} }
await this.model.submitOutsourcing(this.list); await this.model.submitOutsourcingSp(this.list);
this.empty(); this.empty();
await this.query(); await this.query();
} }

@ -172,7 +172,7 @@ export class ReturningModule extends VuexModule {
return { LocList }; return { LocList };
} }
@Action @Action
async queryOutsourcing(nxOutCode: any) { async queryOutsourcingSp(nxOutCode: any) {
const res = await http.post(url.so.soOutbound.findInfoByDN, { const res = await http.post(url.so.soOutbound.findInfoByDN, {
nxOutCode, nxOutCode,
proOutType: 'sp', proOutType: 'sp',
@ -183,7 +183,7 @@ export class ReturningModule extends VuexModule {
} }
@Action @Action
async submitOutsourcing(upload: any) { async submitOutsourcingSp(upload: any) {
const res = await http.post(url.so.soOutbound.confirm, upload); const res = await http.post(url.so.soOutbound.confirm, upload);
return res; return res;
} }

Loading…
Cancel
Save