From abf72c8f5f0b3e95943381d6f65d3e726e107859 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:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=B4=A7=E7=A1=AE=E8=AE=A4=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/management/receive-confirm_new.vue | 30 ++++++++++-------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/pages/management/receive-confirm_new.vue b/pages/management/receive-confirm_new.vue index 9ee697e..d03726f 100644 --- a/pages/management/receive-confirm_new.vue +++ b/pages/management/receive-confirm_new.vue @@ -186,6 +186,10 @@ }, onLoad () { this.toSearch() + setTimeout(() => { + this._getWarehouseInfo() + this._getOrganizationInfo() + }, 3000) }, methods: { // 组织信息下拉框 @@ -221,7 +225,7 @@ this._receiptPage() }, // 一级表格接口 - async _receiptPage () { + async _receiptPage (e) { let res = await receiptPage(this.val1, this.value1, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '') if (res.code === 1) { res.result.map(el => { @@ -234,14 +238,15 @@ this.totalCount1 = Number(res.totalElements) this.queryParams1.pageSize = Number(res.pageSize) this.queryParams1.pageNum = Number(res.pageNum) + if (e) { + this._receiptBillDetailPage(e) + } } else { uni.showToast({ title: res.desc, icon: 'none' }) } - this._getWarehouseInfo() - this._getOrganizationInfo() }, // 一级表格切换分页 handlePageChange1(page) { @@ -340,7 +345,7 @@ try { let res = await receiptBillDetailSetStor(this.value2, this.popData) if (res.code === 1) { - this._receiptBillDetailPage(this.popObj) + this._receiptPage(this.popObj) } uni.showToast({ title: res.desc, @@ -376,18 +381,9 @@ try { let res = await receiptBillDetailUpdate(el) if (res.code === 1) { - this.dataList.map(ele => { - if (e.id === ele.id) { - e.subData.map(elem => { - if (elem.id === el.id) { - if (type === 'ck') { - elem.ckbm = el.ckbm - elem.ckmc = el.ckmc - } - } - }) - } - }) + setTimeout(() => { + this._receiptPage(e) + }, 1500) } else { this.dataList.map(ele => { if (e.id === ele.id) { @@ -420,7 +416,7 @@ let arr = e.subData.filter(ele => ele.checked === true) let res = await receiptBillConfirm(arr) if (res.code === 1) { - this._receiptBillDetailPage(e) + this._receiptPage(e) } this.disabled1 = false uni.showToast({