|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<ContentWrap> |
|
|
|
<!-- 搜索工作栏 --> |
|
|
|
<Search :schema="[...ContainerRecordMain.allSchemas.searchSchema,...ContainerRecordDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
|
<Search :schema="[...ContainerRecordMain.allSchemas.searchSchema,...ContainerRecordDetail.allSchemas.searchSchema]" @search="searchList" @reset="searchList" /> |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
@ -86,7 +86,7 @@ routeName.value = route.name |
|
|
|
const businessType = ref() |
|
|
|
const importFileName = ref() |
|
|
|
const tableColumns = ref([...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns]) |
|
|
|
|
|
|
|
const searchType = ref() |
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: ContainerRecordDetailApi.getContainerRecordDetailPage // 分页接口 |
|
|
|
}) |
|
|
@ -99,18 +99,21 @@ const { tableObject, tableMethods } = useTable({ |
|
|
|
tableObject.params = { |
|
|
|
type:'RETURN' |
|
|
|
} |
|
|
|
searchType.value = 'RETURN' |
|
|
|
businessType.value = 'ReturnContainerManage' |
|
|
|
importFileName.value = '器具返回记录' |
|
|
|
} else if ( routeName.value == 'MoveContainerManageRecord') { |
|
|
|
tableObject.params = { |
|
|
|
type:'MOVE' |
|
|
|
} |
|
|
|
searchType.value = 'MOVE' |
|
|
|
businessType.value = 'MoveContainerManage' |
|
|
|
importFileName.value = '器具转移记录' |
|
|
|
} else if ( routeName.value == 'InitialContainerManageRecord') { |
|
|
|
tableObject.params = { |
|
|
|
type:'INITIAL', |
|
|
|
} |
|
|
|
searchType.value = 'INITIAL' |
|
|
|
businessType.value = 'InitialContainerManage' |
|
|
|
importFileName.value = '器具初始化记录' |
|
|
|
} |
|
|
@ -118,12 +121,14 @@ else if ( routeName.value == 'ScrapContainerManageRecord') { |
|
|
|
tableObject.params = { |
|
|
|
type:'SCRAP' |
|
|
|
} |
|
|
|
searchType.value = 'SCRAP' |
|
|
|
businessType.value = 'ScrapContainerManage' |
|
|
|
importFileName.value = '器具报废记录' |
|
|
|
} else if ( routeName.value == 'DeliverContainerManageRecord') { |
|
|
|
tableObject.params = { |
|
|
|
type: 'DELIVER', |
|
|
|
} |
|
|
|
searchType.value = 'DELIVER' |
|
|
|
businessType.value = 'DeliverContainerManage' |
|
|
|
importFileName.value = '器具发运记录' |
|
|
|
} else if( routeName.value == 'ContainerManageRecord'){ |
|
|
@ -157,6 +162,11 @@ const HeadButttondata = [ |
|
|
|
// }, |
|
|
|
] |
|
|
|
|
|
|
|
const searchList = (model)=>{ |
|
|
|
model.type = searchType.value |
|
|
|
setSearchParams(model) |
|
|
|
} |
|
|
|
|
|
|
|
// 头部按钮事件 |
|
|
|
const buttonBaseClick = (val, item) => { |
|
|
|
if (val == 'add') { // 新增 |
|
|
@ -248,7 +258,7 @@ const searchFormClick = (searchData) => { |
|
|
|
const cmd = { |
|
|
|
'column':'type', |
|
|
|
'action':'==', |
|
|
|
'value':'INITIAL' |
|
|
|
'value':searchType.value |
|
|
|
} |
|
|
|
if (!Array.isArray(searchData.filters)) { |
|
|
|
searchData.filters = []; |
|
|
|