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()