From f303fc64ce13ea9a19be0978f5292a8c5160fe62 Mon Sep 17 00:00:00 2001 From: guoshuang Date: Tue, 15 Feb 2022 23:01:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=9F=E6=9D=90=E6=96=99=E6=8A=A5=E5=BA=9F?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E5=BA=93=EF=BC=8C=E9=A2=86=E7=94=A8=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=E6=B8=85=E6=95=B0=E6=8D=AE=E6=9F=A5=E5=8D=95?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/raw/warehouse/rowCollect/index.vue | 2 +- src/pages/raw/warehouse/rowScrap/index.vue | 2 +- src/pages/raw/warehouse/rowTransfer/index.vue | 15 ++++++++++----- src/pages/raw/warehouse/rowTransfer/model.ts | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/pages/raw/warehouse/rowCollect/index.vue b/src/pages/raw/warehouse/rowCollect/index.vue index fb24aef..332d72a 100644 --- a/src/pages/raw/warehouse/rowCollect/index.vue +++ b/src/pages/raw/warehouse/rowCollect/index.vue @@ -131,7 +131,7 @@ export default class KanDanHandOver extends BasePage { this.Some.fileNo = ' '; this.wl = {}; this.MaterialList = []; - this.query() + this.query(); } } } diff --git a/src/pages/raw/warehouse/rowScrap/index.vue b/src/pages/raw/warehouse/rowScrap/index.vue index 73a23f6..0a7ac43 100644 --- a/src/pages/raw/warehouse/rowScrap/index.vue +++ b/src/pages/raw/warehouse/rowScrap/index.vue @@ -135,7 +135,7 @@ export default class KanDanHandOver extends BasePage { this.Some.fileNo = ' '; this.wl = {}; this.MaterialList = []; - this.query() + this.query(); } } } diff --git a/src/pages/raw/warehouse/rowTransfer/index.vue b/src/pages/raw/warehouse/rowTransfer/index.vue index 4ccb338..c993c8c 100644 --- a/src/pages/raw/warehouse/rowTransfer/index.vue +++ b/src/pages/raw/warehouse/rowTransfer/index.vue @@ -116,11 +116,16 @@ export default class KanDanHandOver extends BasePage { arr.push(this.orderlist); await model.onTakeoutConfirm(arr); if (model.code == '1') { - this.customToast(this.$t('message.Warehouse_Tip9') as string); - model.empty(); - setTimeout(() => { - this.toPage(this.page.raw.warehouse.rowTransfer.index); - }, 2000); + //this.customToast(this.$t('message.Warehouse_Tip9') as string); + uni.showToast({ icon: 'success', title: this.$t('message.Warehouse_Tip9') as string }); + //model.empty(); + this.orderlist = {}; + this.model.materielList.length = 0; + this.NEWqty = ''; + // setTimeout(() => { + // this.toPage(this.page.raw.warehouse.rowTransfer.index); + // }, 2000); + this.query(); } } } diff --git a/src/pages/raw/warehouse/rowTransfer/model.ts b/src/pages/raw/warehouse/rowTransfer/model.ts index 26cb7c0..bce6af3 100644 --- a/src/pages/raw/warehouse/rowTransfer/model.ts +++ b/src/pages/raw/warehouse/rowTransfer/model.ts @@ -84,7 +84,7 @@ export class rowTransfer extends VuexModule { //清除数据 @MutationAction async empty() { - const materielList = []; + const materielList = null; return { materielList }; } }