|
|
@ -54,18 +54,17 @@ |
|
|
|
<!-- 详情 --> |
|
|
|
<Detail |
|
|
|
ref="detailRef" |
|
|
|
:isBasic="false" |
|
|
|
:isBasic="true" |
|
|
|
:allSchemas="TransactionTab.allSchemas" |
|
|
|
:detailAllSchemas="TransactionTab.allSchemas" |
|
|
|
:detailAllSchemasRules="BalanceRules" |
|
|
|
:apiPage="BalanceApi.getTransactionBalancePage" |
|
|
|
:isShowAddBtn="false" |
|
|
|
:detailButtonIsShow="false" |
|
|
|
:detailButtonIsShowFilter="false" |
|
|
|
:apiPage="apiPage" |
|
|
|
:tabsExtend="tabsExtend" |
|
|
|
:tabs="[{ |
|
|
|
label: '库存事务', |
|
|
|
prop: 'Transaction' |
|
|
|
}]" |
|
|
|
@changeTabs="changeTabs" |
|
|
|
:tableObjectExtend="tableObjectExtend" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -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() |
|
|
|