From 58c351c30720e68b9054d86fd7e679c0d490fc1a 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:32:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8B=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/management/alloc-maintenance_new.vue | 32 ++++++++-------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/pages/management/alloc-maintenance_new.vue b/pages/management/alloc-maintenance_new.vue index d008f38..5b0e6d4 100644 --- a/pages/management/alloc-maintenance_new.vue +++ b/pages/management/alloc-maintenance_new.vue @@ -188,6 +188,10 @@ }, onLoad () { this.toSearch() + setTimeout(() => { + this._getWarehouseInfo() + this._getOrganizationInfo() + }, 3000) }, methods: { // 仓库下拉框 @@ -222,7 +226,7 @@ this._allocationPage() }, // 一级表格接口 - async _allocationPage () { + async _allocationPage (e) { let res = await allocationPage(this.val1, this.value1, this.value2, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '') if (res.code === 1) { res.result.map(el => { @@ -235,14 +239,15 @@ this.totalCount1 = Number(res.totalElements) this.queryParams1.pageSize = Number(res.pageSize) this.queryParams1.pageNum = Number(res.pageNum) + if (e) { + this._allocationBillDetail(e) + } } else { uni.showToast({ title: res.desc, icon: 'none' }) } - this._getWarehouseInfo() - this._getOrganizationInfo() }, // 一级表格切换分页 handlePageChange1(page) { @@ -309,7 +314,7 @@ let arr = e.subData.filter(ele => ele.checked === true) let res = await allocationBillConfirm(arr) if (res.code === 1) { - this._allocationBillDetail(e) + this._allocationPage(e) } this.disabled1 = false uni.showToast({ @@ -333,22 +338,9 @@ try { let res = await allocationBillDetailUpdate(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 === 'dcck') { - elem.dcckbm = el.dcckbm - elem.dcckmc = el.dcckmc - } - if (type === 'drck') { - elem.drckbm = el.drckbm - elem.drckmc = el.drckmc - } - } - }) - } - }) + setTimeout(() => { + this._allocationPage(e) + }, 1500) } else { this.dataList.map(ele => { if (e.id === ele.id) {