From a1616b0155e90e492a72ba2e7ec85f9bda937011 Mon Sep 17 00:00:00 2001 From: zhang_li Date: Thu, 26 Jun 2025 09:47:26 +0800 Subject: [PATCH] =?UTF-8?q?YT-2822=E5=B7=AE=E5=BC=82=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E4=BD=99=E9=A2=9D=EF=BC=8C=E7=82=B9=E5=87=BB=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E5=8F=B7=E8=BF=9B=E5=85=A5=E6=98=8E=E7=BB=86=EF=BC=8C=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E5=BA=93=E5=AD=98=E4=BA=8B=E5=8A=A1=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE=EF=BC=8C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E9=A1=B5=E9=9D=A2=E5=9C=A8=E5=88=87=E5=9B=9E?= =?UTF-8?q?=E6=9D=A5=E6=98=BE=E7=A4=BA=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 10 ++++++++++ .../wms/inventoryManage/balanceDifference/index.vue | 9 ++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 1a05e5079..1d4877afe 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -890,6 +890,15 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: // }) // } // buttondata.value = [...detailButtonEdit,...detailButtonDelete,...buttondataTable.value] + // 如果tab第一列就是列表 + if (props.tabsExtend) { + if (props.tableObjectExtend) { + props.tableObjectExtend.forEach(item => { + tableObject.params[item.key] = row[item.value] + }) + } + await getList() + } } finally { detailLoading.value = false @@ -943,6 +952,7 @@ const updateList =async ()=>{ }) } else { await tableMethodsRef.value.getList() + updateKey.value += 1 } } diff --git a/src/views/wms/inventoryManage/balanceDifference/index.vue b/src/views/wms/inventoryManage/balanceDifference/index.vue index 53832e1db..fea37cc79 100644 --- a/src/views/wms/inventoryManage/balanceDifference/index.vue +++ b/src/views/wms/inventoryManage/balanceDifference/index.vue @@ -101,9 +101,12 @@ const route = useRoute() //路由信息 const routeName = ref() routeName.value = route.name const tableColumns = ref(Balance.allSchemas.tableColumns) -const tabsExtend = ref(false) -const apiPage = ref() -const tableObjectExtend = ref() +const tabsExtend = ref(true) +const apiPage = ref( BalanceApi.getTransactionBalancePage) +const tableObjectExtend = ref([{ + key: 'masterId', + value: 'id' + }]) //字段设置 更新主列表字段 const updataTableColumns = (val) => {