|
|
@@ -8,6 +8,29 @@ import { useSelector } from 'react-redux'
|
|
|
import { RootState } from '@/store'
|
|
|
import { Button } from 'antd'
|
|
|
import { openLink } from '@/utils/history'
|
|
|
+import dayjs from 'dayjs'
|
|
|
+
|
|
|
+const columnsTemp = [
|
|
|
+ ['index', '序号', 100],
|
|
|
+ ['txt2', '编号类型', 'numName', 150],
|
|
|
+ ['txt2', '编号', 'num', 150],
|
|
|
+ ['txt2', '名称', 'name', 150],
|
|
|
+ ['txt', '级别', 'level'],
|
|
|
+ ['txt', '类别', 'type'],
|
|
|
+ ['txt', '盘点状态', 'status'],
|
|
|
+ ['txt', '藏品总登记账具体数量(件)', 'pcsRegister'],
|
|
|
+ ['txt', '相符情况', 'conform'],
|
|
|
+ ['txt', '账物相符(件)', 'pcsConform'],
|
|
|
+ ['txt', '账物不符(件)', 'pcsUnConform'],
|
|
|
+ ['txt', '不符情形', 'unInfo'],
|
|
|
+ ['txt', '不符原因', 'reasonInfo'],
|
|
|
+ ['txt', '备注', 'remark'],
|
|
|
+ ['txt', '最新盘点名称', 'checkName'],
|
|
|
+ ['txt', '盘点时间', 'updateTime'],
|
|
|
+ ['txt', '经办人', 'checkHandler'],
|
|
|
+ ['txt', '负责人', 'checkOwner']
|
|
|
+]
|
|
|
+
|
|
|
function A3result() {
|
|
|
const topDomRef = useRef<any>(null)
|
|
|
|
|
|
@@ -19,6 +42,16 @@ function A3result() {
|
|
|
<>
|
|
|
<AAbtn txt={1} onClick={() => topDomRef.current.clickSearch()} tit='查询' />
|
|
|
<AAbtn txt={2} onClick={() => topDomRef.current.clickReset()} />
|
|
|
+ <AAbtn
|
|
|
+ txt={1}
|
|
|
+ onClick={() =>
|
|
|
+ topDomRef.current.exportXlsx(
|
|
|
+ columnsTemp,
|
|
|
+ '盘库结果' + dayjs(new Date()).format('YYYY-MM-DD HH:mm')
|
|
|
+ )
|
|
|
+ }
|
|
|
+ tit='导出'
|
|
|
+ />
|
|
|
</>
|
|
|
)
|
|
|
}, [])
|
|
|
@@ -32,30 +65,11 @@ function A3result() {
|
|
|
ref={topDomRef}
|
|
|
leftArr={A3topArr}
|
|
|
rightBtn={rightBtn}
|
|
|
- waiWidth={190}
|
|
|
+ waiWidth={280}
|
|
|
sonWidth='9.6%'
|
|
|
getListAPI={A3_APIgetList}
|
|
|
tableInfo={tableInfo}
|
|
|
- columnsTemp={[
|
|
|
- ['index', '序号', 100],
|
|
|
- ['txt2', '编号类型', 'numName', 150],
|
|
|
- ['txt2', '编号', 'num', 150],
|
|
|
- ['txt2', '名称', 'name', 150],
|
|
|
- ['txt', '级别', 'level'],
|
|
|
- ['txt', '类别', 'type'],
|
|
|
- ['txt', '盘点状态', 'status'],
|
|
|
- ['txt', '藏品总登记账具体数量(件)', 'pcsRegister'],
|
|
|
- ['txt', '相符情况', 'conform'],
|
|
|
- ['txt', '账物相符(件)', 'pcsConform'],
|
|
|
- ['txt', '账物不符(件)', 'pcsUnConform'],
|
|
|
- ['txt', '不符情形', 'unInfo'],
|
|
|
- ['txt', '不符原因', 'reasonInfo'],
|
|
|
- ['txt', '备注', 'remark'],
|
|
|
- ['txt', '最新盘点名称', 'checkName'],
|
|
|
- ['txt', '盘点时间', 'updateTime'],
|
|
|
- ['txt', '经办人', 'checkHandler'],
|
|
|
- ['txt', '负责人', 'checkOwner']
|
|
|
- ]}
|
|
|
+ columnsTemp={columnsTemp}
|
|
|
tableLastBtn={[
|
|
|
{
|
|
|
title: '操作',
|