Browse Source

HL-5876前端bug

hella_online_20240911
zhang_li 3 months ago
parent
commit
1bde260d8e
  1. 32
      src/views/wms/inventoryManage/balance/index.vue

32
src/views/wms/inventoryManage/balance/index.vue

@ -54,18 +54,17 @@
<!-- 详情 --> <!-- 详情 -->
<Detail <Detail
ref="detailRef" ref="detailRef"
:isBasic="false" :isBasic="true"
:allSchemas="TransactionTab.allSchemas" :allSchemas="TransactionTab.allSchemas"
:detailAllSchemas="TransactionTab.allSchemas" :detailAllSchemas="TransactionTab.allSchemas"
:detailAllSchemasRules="BalanceRules" :apiPage="apiPage"
:apiPage="BalanceApi.getTransactionBalancePage" :tabsExtend="tabsExtend"
:isShowAddBtn="false"
:detailButtonIsShow="false"
:detailButtonIsShowFilter="false"
:tabs="[{ :tabs="[{
label: '库存事务', label: '库存事务',
prop: 'Transaction' prop: 'Transaction'
}]" }]"
@changeTabs="changeTabs"
:tableObjectExtend="tableObjectExtend"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -98,6 +97,9 @@ const route = useRoute() //路由信息
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(Balance.allSchemas.tableColumns) const tableColumns = ref(Balance.allSchemas.tableColumns)
const tabsExtend = ref(false)
const apiPage = ref()
const tableObjectExtend = ref()
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
@ -259,7 +261,9 @@ const openForm = (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const chooseRow = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
chooseRow.value = row
detailRef.value.openDetail(row, titleName, titleValue,'transactionBalance') detailRef.value.openDetail(row, titleName, titleValue,'transactionBalance')
} }
@ -344,7 +348,23 @@ const searchFormClick = (searchData) => {
} }
getList() // 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() => { onMounted(async() => {
getList() getList()

Loading…
Cancel
Save