|
|
@@ -25,6 +25,38 @@ function F1inStorage() {
|
|
|
value: i.id
|
|
|
}))
|
|
|
}, [allWarehouseList])
|
|
|
+ const SEARCH_DOM = useMemo(
|
|
|
+ () => [
|
|
|
+ {
|
|
|
+ type: 'time',
|
|
|
+ key: ['startTime', 'endTime'],
|
|
|
+ placeholder: `入库日期`
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'select',
|
|
|
+ key: 'storageId',
|
|
|
+ placeholder: `库房名称`,
|
|
|
+ options: warehouseOptions
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'input',
|
|
|
+ key: 'searchKey',
|
|
|
+ placeholder: `请输入申请编号、发起人或藏品编号`
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'time',
|
|
|
+ key: ['businessStartTime', 'businessEndTime'],
|
|
|
+ placeholder: `发起日期`
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'select',
|
|
|
+ key: 'status',
|
|
|
+ placeholder: `申请状态`,
|
|
|
+ options: selectObj['藏品入库申请状态']
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ [warehouseOptions]
|
|
|
+ )
|
|
|
|
|
|
const dataExport = () => {
|
|
|
console.log('数据导出了')
|
|
|
@@ -59,35 +91,7 @@ function F1inStorage() {
|
|
|
columnsTemp={inStorageTableC}
|
|
|
rightBtnWidth={340}
|
|
|
yHeight={585}
|
|
|
- searchDom={[
|
|
|
- {
|
|
|
- type: 'time',
|
|
|
- key: ['startTime', 'endTime'],
|
|
|
- placeholder: `入库日期`
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'select',
|
|
|
- key: 'storageId',
|
|
|
- placeholder: `库房名称`,
|
|
|
- options: warehouseOptions
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'input',
|
|
|
- key: 'searchKey',
|
|
|
- placeholder: `请输入申请编号、发起人或藏品编号`
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'time',
|
|
|
- key: ['businessStartTime', 'businessEndTime'],
|
|
|
- placeholder: `发起日期`
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'select',
|
|
|
- key: 'status',
|
|
|
- placeholder: `申请状态`,
|
|
|
- options: selectObj['藏品入库申请状态']
|
|
|
- }
|
|
|
- ]}
|
|
|
+ searchDom={SEARCH_DOM}
|
|
|
storyTableListToprr={({ clickSearch, resetSelectFu }) => (
|
|
|
<>
|
|
|
<Button type='primary' ghost onClick={() => tableBtnFu(null, '1')}>
|