测试问题修改
This commit is contained in:
@ -142,7 +142,6 @@ const CategoryLibraryManage: React.FC = () => {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
render: (val: number, record: any) => (
|
render: (val: number, record: any) => (
|
||||||
<a
|
<a
|
||||||
style={{ color: '#1677ff' }}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCurrentStoreId(record.id);
|
setCurrentStoreId(record.id);
|
||||||
setSupplierListVisible(true);
|
setSupplierListVisible(true);
|
||||||
@ -158,9 +157,8 @@ const CategoryLibraryManage: React.FC = () => {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
render: (record: any) => (
|
render: (record: any) => (
|
||||||
<>
|
<>
|
||||||
{record.approveStatus === 0 && (
|
|
||||||
<a
|
<a
|
||||||
style={{ color: '#1677ff' }}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCurrentStoreId(record.id);
|
setCurrentStoreId(record.id);
|
||||||
setLockModalVisible(true);
|
setLockModalVisible(true);
|
||||||
@ -168,7 +166,7 @@ const CategoryLibraryManage: React.FC = () => {
|
|||||||
>
|
>
|
||||||
解锁/锁定
|
解锁/锁定
|
||||||
</a>
|
</a>
|
||||||
)}
|
|
||||||
|
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
|
@ -167,12 +167,11 @@ const CategoryLibraryManage: React.FC = () => {
|
|||||||
render: (record: any) => {
|
render: (record: any) => {
|
||||||
const showSubmit = record.approveStatus === 0;
|
const showSubmit = record.approveStatus === 0;
|
||||||
return showSubmit ? (
|
return showSubmit ? (
|
||||||
<a style={{ color: '#1677ff' }} onClick={() => handleApproval(record.id)}>
|
<a onClick={() => handleApproval(record.id)}>
|
||||||
提交审核
|
提交审核
|
||||||
</a>
|
</a>
|
||||||
) : (
|
) : (
|
||||||
<a
|
<a
|
||||||
style={{ color: '#1677ff' }}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCurrentStoreId(record.id);
|
setCurrentStoreId(record.id);
|
||||||
setViewVisible(true);
|
setViewVisible(true);
|
||||||
|
@ -48,13 +48,12 @@ const CategoryManageTable: React.FC = () => {
|
|||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
key: 'action',
|
key: 'action',
|
||||||
width: 280,
|
width: 200,
|
||||||
render: (_:any, record:any) => (
|
render: (_:any, record:any) => (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
type="link"
|
type="link"
|
||||||
icon={<PlusOutlined />}
|
|
||||||
disabled={record.type === '1'}
|
disabled={record.type === '1'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setModalType('add');
|
setModalType('add');
|
||||||
@ -72,7 +71,6 @@ const CategoryManageTable: React.FC = () => {
|
|||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
type="link"
|
type="link"
|
||||||
icon={<EditOutlined />}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setModalType('edit');
|
setModalType('edit');
|
||||||
setCurrentNode(record);
|
setCurrentNode(record);
|
||||||
@ -95,7 +93,6 @@ const CategoryManageTable: React.FC = () => {
|
|||||||
size="small"
|
size="small"
|
||||||
danger
|
danger
|
||||||
type="link"
|
type="link"
|
||||||
icon={<DeleteOutlined />}
|
|
||||||
disabled={!!(record.children && record.children.length > 0)}
|
disabled={!!(record.children && record.children.length > 0)}
|
||||||
>删除</Button>
|
>删除</Button>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
|
@ -142,7 +142,6 @@ const SupplierEntryManage: React.FC = () => {
|
|||||||
<>
|
<>
|
||||||
{record.approveStatus === 1 && (
|
{record.approveStatus === 1 && (
|
||||||
<a
|
<a
|
||||||
style={{ color: '#1677ff' }}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCurrentStoreId(record.id);
|
setCurrentStoreId(record.id);
|
||||||
setAddSupplierVisible(true);
|
setAddSupplierVisible(true);
|
||||||
|
@ -134,8 +134,8 @@ const CategoryLibraryManage: React.FC = () => {
|
|||||||
|
|
||||||
{
|
{
|
||||||
title: '申请时间',
|
title: '申请时间',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'applyTime',
|
||||||
key: 'createTime',
|
key: 'applyTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
@ -152,14 +152,14 @@ const CategoryLibraryManage: React.FC = () => {
|
|||||||
key: 'option',
|
key: 'option',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
render: (record: any) => {
|
render: (record: any) => {
|
||||||
const showSubmit = record.approveStatus === '0';
|
const showSubmit = record.processStatusName === '未开始';
|
||||||
|
|
||||||
return showSubmit ? (
|
return showSubmit ? (
|
||||||
<a style={{ color: '#1677ff' }} onClick={() => handleApproval(record.id)}>
|
<a onClick={() => handleApproval(record.id)}>
|
||||||
提交审核
|
提交审核
|
||||||
</a>
|
</a>
|
||||||
) : (
|
) : (
|
||||||
<a
|
<a
|
||||||
style={{ color: '#1677ff' }}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCurrentStoreId(record.id);
|
setCurrentStoreId(record.id);
|
||||||
setViewVisible(true);
|
setViewVisible(true);
|
||||||
|
Reference in New Issue
Block a user