|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import { authorityFu } from '@/utils/authority'
|
|
|
import { selectObj, getDictFu } from '@/utils/dataChange'
|
|
|
-import history from '@/utils/history'
|
|
|
+import history, { openLink } from '@/utils/history'
|
|
|
import TableList from '@/pages/Zother/TableList'
|
|
|
import { useSelector } from 'react-redux'
|
|
|
import { RootState } from '@/store'
|
|
|
@@ -107,42 +107,43 @@ function C1ledger() {
|
|
|
{
|
|
|
key: '1',
|
|
|
label: '入库',
|
|
|
- onClick: () => authorityFu(420, '您没有藏品入库权限!', () => history.push(`/inStorage`))
|
|
|
+ onClick: () => authorityFu(1010, '您没有藏品入库权限!', () => history.push(`/inStorage`))
|
|
|
},
|
|
|
{
|
|
|
key: '2',
|
|
|
label: '移库',
|
|
|
onClick: () =>
|
|
|
- authorityFu(421, '您没有藏品移库权限!', () => history.push(`/moveStorage`))
|
|
|
+ authorityFu(1020, '您没有藏品移库权限!', () => history.push(`/moveStorage`))
|
|
|
},
|
|
|
{
|
|
|
key: '3',
|
|
|
label: '出库',
|
|
|
- onClick: () => authorityFu(422, '您没有藏品出库权限!', () => history.push(`/outStorage`))
|
|
|
+ onClick: () =>
|
|
|
+ authorityFu(1030, '您没有藏品出库权限!', () => history.push(`/outStorage`))
|
|
|
}
|
|
|
],
|
|
|
weihu: [
|
|
|
{
|
|
|
key: '1',
|
|
|
label: '鉴定登记',
|
|
|
- onClick: () => authorityFu(440, '您没有藏品鉴定登记权限!', () => history.push(`/auth`))
|
|
|
+ onClick: () => authorityFu(230, '您没有藏品鉴定登记权限!', () => history.push(`/auth`))
|
|
|
},
|
|
|
{
|
|
|
key: '2',
|
|
|
label: '事故登记',
|
|
|
onClick: () =>
|
|
|
- authorityFu(441, '您没有藏品事故登记权限!', () => history.push(`/accident`))
|
|
|
+ authorityFu(510, '您没有藏品事故登记权限!', () => history.push(`/accident`))
|
|
|
},
|
|
|
{
|
|
|
key: '3',
|
|
|
label: '现状登记',
|
|
|
onClick: () =>
|
|
|
- authorityFu(442, '您没有藏品现状登记权限!', () => history.push(`/actuality`))
|
|
|
+ authorityFu(540, '您没有藏品现状登记权限!', () => history.push(`/actuality`))
|
|
|
},
|
|
|
{
|
|
|
key: '4',
|
|
|
label: '修复登记',
|
|
|
- onClick: () => authorityFu(443, '您没有藏品修复登记权限!', () => history.push(`/repair`))
|
|
|
+ onClick: () => authorityFu(550, '您没有藏品修复登记权限!', () => history.push(`/repair`))
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
@@ -191,13 +192,7 @@ function C1ledger() {
|
|
|
{
|
|
|
title: '操作',
|
|
|
render: (item: any) => (
|
|
|
- <Button
|
|
|
- size='small'
|
|
|
- type='text'
|
|
|
- onClick={() =>
|
|
|
- authorityFu(440, '您没有查看藏品信息权限!', () => history.push(`/goodsInfo`))
|
|
|
- }
|
|
|
- >
|
|
|
+ <Button size='small' type='text' onClick={() => openLink(`/goodsLook/${item.id}`)}>
|
|
|
查看
|
|
|
</Button>
|
|
|
)
|
|
|
@@ -217,7 +212,7 @@ function C1ledger() {
|
|
|
columnsTemp={columnsTempAdd}
|
|
|
rightBtnWidth={350}
|
|
|
leftRowWidth={'20%'}
|
|
|
- yHeight={585}
|
|
|
+ yHeight={592}
|
|
|
searchDom={C1topSearch}
|
|
|
storyTableListToprr={storyTableListToprr}
|
|
|
storyTableLastBtn={storyTableLastBtn}
|