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) => {