收货优化

master
hou 3 years ago
parent 1bb8a1a7f3
commit 8e719271dd

@ -158,6 +158,7 @@ export default class dnReceiptDom extends BasePage {
} }
// //
async query() { async query() {
this.empty()
if (!this.form.documentNo) { if (!this.form.documentNo) {
this.customToast(this.$t('message.Commission_tips1') as any); this.customToast(this.$t('message.Commission_tips1') as any);
return; return;

@ -159,6 +159,7 @@ export default class dnReceiptDom extends BasePage {
} }
// //
async query() { async query() {
this.empty()
if (!this.form.documentNo) { if (!this.form.documentNo) {
this.customToast(this.$t('message.Commission_tips1') as any); this.customToast(this.$t('message.Commission_tips1') as any);
return; return;
@ -374,8 +375,10 @@ export default class dnReceiptDom extends BasePage {
return null; return null;
} }
await this.model.submitOrderInEnter(this.DNReceivingList); await this.model.submitOrderInEnter(this.DNReceivingList);
if(this.model.SubmitCode == '1'){
this.resetForm(); this.resetForm();
} }
}
async bill() { async bill() {
if (this.form.documentNo == '') { if (this.form.documentNo == '') {
this.customToast(this.$t('message._tips6') as any); this.customToast(this.$t('message._tips6') as any);

@ -15,6 +15,7 @@ class OrderInInfo {
supplyCode?: string; supplyCode?: string;
poType?: string; poType?: string;
location?: string; location?: string;
SubmitCode?: string;
} }
@Module({ @Module({
@ -32,6 +33,7 @@ export class ReceiptModule extends VuexModule {
/** /**
* *
*/ */
SubmitCode:any = ''
dnNo = ''; dnNo = '';
code = ''; code = '';
DNdetailedList: any; DNdetailedList: any;
@ -189,8 +191,9 @@ export class ReceiptModule extends VuexModule {
icon: 'none', icon: 'none',
title: result.msg, title: result.msg,
}); });
const SubmitCode = result.code
const orderInInfoList = result.list.sort((a: any, b: any) => Number(a.accountingStatus) - Number(b.accountingStatus)); const orderInInfoList = result.list.sort((a: any, b: any) => Number(a.accountingStatus) - Number(b.accountingStatus));
return { orderInInfoList }; return { orderInInfoList ,SubmitCode};
} }
//海外DN提交 //海外DN提交
@MutationAction @MutationAction

Loading…
Cancel
Save