|
@@ -54,7 +54,7 @@ const detailColumnsTemp = [
|
|
|
['txt', '类别', 'type'],
|
|
['txt', '类别', 'type'],
|
|
|
['txt', '盘点状态', 'status'],
|
|
['txt', '盘点状态', 'status'],
|
|
|
['txt', '藏品总登记账具体数量(件)', 'pcsRegister'],
|
|
['txt', '藏品总登记账具体数量(件)', 'pcsRegister'],
|
|
|
- ['txt', '相符情况', 'conform'],
|
|
|
|
|
|
|
+ ['txt', '相符状态', 'conform'],
|
|
|
['txt', '账物相符(件)', 'pcsConform'],
|
|
['txt', '账物相符(件)', 'pcsConform'],
|
|
|
['txt', '账物不符(件)', 'pcsUnConform'],
|
|
['txt', '账物不符(件)', 'pcsUnConform'],
|
|
|
['txt', '不符情形', 'unInfo'],
|
|
['txt', '不符情形', 'unInfo'],
|
|
@@ -102,7 +102,7 @@ const detailExportColumnsMap = {
|
|
|
['txt2', '编号', 'num', 150],
|
|
['txt2', '编号', 'num', 150],
|
|
|
['txt2', '名称', 'name', 150],
|
|
['txt2', '名称', 'name', 150],
|
|
|
['txt', '盘点状态', 'status'],
|
|
['txt', '盘点状态', 'status'],
|
|
|
- ['txt', '相符情况', 'conform'],
|
|
|
|
|
|
|
+ ['txt', '相符状态', 'conform'],
|
|
|
['txt', '藏品总登记账具体数量(件)', 'pcsRegister'],
|
|
['txt', '藏品总登记账具体数量(件)', 'pcsRegister'],
|
|
|
['txt', '账物相符(件)', 'pcsConform'],
|
|
['txt', '账物相符(件)', 'pcsConform'],
|
|
|
['txt', '账物不符(件)', 'pcsUnConform'],
|
|
['txt', '账物不符(件)', 'pcsUnConform'],
|
|
@@ -429,7 +429,7 @@ function A4collect() {
|
|
|
|
|
|
|
|
const exportDetailByType = useCallback(
|
|
const exportDetailByType = useCallback(
|
|
|
async (key: keyof typeof detailExportColumnsMap) => {
|
|
async (key: keyof typeof detailExportColumnsMap) => {
|
|
|
- setDetailExportLoading(true)
|
|
|
|
|
|
|
+ setDetailExportLoading(true)
|
|
|
try {
|
|
try {
|
|
|
if (key === 'workSheet') {
|
|
if (key === 'workSheet') {
|
|
|
await downloadDetailExportFile('cms/checkMatch/exportPDQDGZB', '盘点清点工作表')
|
|
await downloadDetailExportFile('cms/checkMatch/exportPDQDGZB', '盘点清点工作表')
|
|
@@ -460,7 +460,8 @@ function A4collect() {
|
|
|
placement='bottomCenter'
|
|
placement='bottomCenter'
|
|
|
menu={{
|
|
menu={{
|
|
|
items: detailExportMenuItems,
|
|
items: detailExportMenuItems,
|
|
|
- onClick: ({ key }) => void exportDetailByType(key as keyof typeof detailExportColumnsMap)
|
|
|
|
|
|
|
+ onClick: ({ key }) =>
|
|
|
|
|
+ void exportDetailByType(key as keyof typeof detailExportColumnsMap)
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|
|
|
<div>
|
|
<div>
|