测试问题修改

This commit is contained in:
孙景学
2025-07-16 14:23:33 +08:00
parent 38a3b80033
commit 6be4e74a2c
5 changed files with 9 additions and 16 deletions

View File

@ -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>
)}
</> </>
), ),

View File

@ -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);

View File

@ -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>

View File

@ -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);

View File

@ -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);