Browse Source

YT-2822差异库存余额,点击单据号进入明细,第一次库存事务显示不正确,切换其他页面在切回来显示正确

intex_online20250629
张立 6 days ago
parent
commit
84517be263
  1. 28
      src/components/Detail/src/Detail.vue
  2. 6
      src/views/wms/inventoryManage/balanceDifference/index.vue

28
src/components/Detail/src/Detail.vue

@ -390,6 +390,12 @@ const props = defineProps({
type: Array,
required: false,
default: null
},
// tableObject
tableObjectExtendObj: {
type: Array,
required: false,
default: null
},
// tableObject
extendRowKeyValue: {
@ -892,14 +898,24 @@ 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]
})
}
const { tableObject, tableMethods } = useTable({
getListApi: props.apiPage //
})
tableObject.params.masterId = masterParmas.value.masterId
detailAllSchemasRef.value = props.detailAllSchemas
if (props.extendRowKeyValue) {
// params
props.extendRowKeyValue.forEach(item => {
tableObject.params[item.key] = row[item.value]
masterParmas.value[item.key] =row[item.value]
})
}
tableObjectRef.value = tableObject
tableMethodsRef.value = tableMethods
const { getList } = tableMethods
await getList()
}
} finally {
detailLoading.value = false
}

6
src/views/wms/inventoryManage/balanceDifference/index.vue

@ -66,6 +66,7 @@
}]"
@changeTabs="changeTabs"
:tableObjectExtend="tableObjectExtend"
:extendRowKeyValue="extendRowKeyValue"
/>
<SearchTable ref="searchTableRef" :selection="false" :hiddenSubmitButton="true"/>
<!-- 导入 -->
@ -103,10 +104,11 @@ routeName.value = route.name
const tableColumns = ref(Balance.allSchemas.tableColumns)
const tabsExtend = ref(true)
const apiPage = ref( BalanceApi.getTransactionBalancePage)
const tableObjectExtend = ref([{
const tableObjectExtend = ref([])
const extendRowKeyValue= ref([{
key: 'masterId',
value: 'id'
}])
}])
//
const updataTableColumns = (val) => {

Loading…
Cancel
Save