From e7f5593bc359c6033ca4e9226faf6f79e9335180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Mon, 18 Nov 2024 16:49:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=BA=93=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/management/move-inventory.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pages/management/move-inventory.vue b/pages/management/move-inventory.vue index 905042f..be7ea1f 100644 --- a/pages/management/move-inventory.vue +++ b/pages/management/move-inventory.vue @@ -30,7 +30,7 @@ {{i+1}} - {{e.input_id}} + {{e.bill_code}} {{e.org_name}} {{e.stor_name}} {{e.total_qty}} @@ -138,6 +138,9 @@ }, onLoad () { this.toSearch() + setTimeout(() => { + this._getWarehouseInfo() + }, 3000) }, methods: { // 仓库下拉框 @@ -161,7 +164,7 @@ this._stIvtMoveinvMovePage() }, // 一级表格接口 - async _stIvtMoveinvMovePage () { + async _stIvtMoveinvMovePage (e) { let res = await stIvtMoveinvMovePage(this.val1, this.value1, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '') if (res.code === 200) { res.content.map(el => { @@ -174,13 +177,15 @@ this.totalCount1 = Number(res.totalElements) this.queryParams1.pageSize = Number(this.queryParams1.pageSize + '') this.queryParams1.pageNum = Number(this.queryParams1.pageNum + '') + if (e) { + this._moveDtlByMoveId(e) + } } else { uni.showToast({ title: res.msg, icon: 'none' }) } - this._getWarehouseInfo() }, // 一级表格切换分页 handlePageChange1(page) { @@ -251,7 +256,11 @@ async _stIvtMoveinvUpdateDtl (e, el, type) { try { let res = await stIvtMoveinvUpdateDtl(el) - if (res.code !== 1) { + if (res.code === 1) { + setTimeout(() => { + this._stIvtMoveinvMovePage(e) + }, 1500) + } else { this.dataList.map(ele => { if (e.id === ele.id) { e.subData.map(elem => { @@ -286,7 +295,7 @@ try { let res = await stIvtMoveinvConfirmMove(arr) if (res.code === 1) { - this._moveDtlByMoveId(e) + this._stIvtMoveinvMovePage(e) } this.disabled1 = false uni.showToast({