From 1bde260d8e19505bbb7910ea66135d755138f6cd Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 10 Sep 2024 16:03:29 +0800 Subject: [PATCH] =?UTF-8?q?HL-5876=E5=89=8D=E7=AB=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/inventoryManage/balance/index.vue | 34 +++++++++++++++---- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/src/views/wms/inventoryManage/balance/index.vue b/src/views/wms/inventoryManage/balance/index.vue index 1779984b0..527bfa512 100644 --- a/src/views/wms/inventoryManage/balance/index.vue +++ b/src/views/wms/inventoryManage/balance/index.vue @@ -54,18 +54,17 @@ @@ -98,6 +97,9 @@ 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 updataTableColumns = (val) => { @@ -259,7 +261,9 @@ const openForm = (type: string, row?: any) => { /** 详情操作 */ const detailRef = ref() +const chooseRow = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + chooseRow.value = row detailRef.value.openDetail(row, titleName, titleValue,'transactionBalance') } @@ -344,7 +348,23 @@ const searchFormClick = (searchData) => { } getList() // 刷新当前列表 } - +const changeTabs = (item) => { + if (item.prop == 'Transaction') { + tabsExtend.value = true + // 当前物料代码作为条件 + tableObjectExtend.value = [{ + key: 'masterId', + value: chooseRow.value.id + }] + apiPage.value = BalanceApi.getTransactionBalancePage + + console.log(988,tableObjectExtend.value) + } else { + tableObjectExtend.value = [] + tabsExtend.value = false + apiPage.value = '' + } +} /** 初始化 **/ onMounted(async() => { getList()