准入查看与零星采购/应急采购/个人供应商和个人修改

This commit is contained in:
孙景学
2025-07-09 15:30:30 +08:00
parent b46b35cd4b
commit 7d1673f42d
11 changed files with 250 additions and 97 deletions

View File

@ -78,13 +78,14 @@ const AccessManagement: React.FC = () => {
{
title: '序号',
dataIndex: 'index',
width: 80,
render: (_: any, __: any, idx: number) => (((pagination.current ?? 1) - 1) * (pagination.pageSize ?? 10)) + idx + 1,
},
{ title: '准入工作', dataIndex: 'accessWorkName' },
{ title: '准入单位', dataIndex: 'deptId' },
{ title: '准入部门', dataIndex: 'deptId' },
{ title: '准入方式', dataIndex: 'accessTypeText' },
{ title: '申请时间', dataIndex: 'createTime' },
{ title: '准入工作', ellipsis: true, dataIndex: 'accessWorkName' },
{ title: '准入单位', ellipsis: true,dataIndex: 'deptId' },
{ title: '准入部门', ellipsis: true,dataIndex: 'deptId' },
{ title: '准入方式', ellipsis: true,dataIndex: 'accessTypeText' },
{ title: '申请时间', ellipsis: true,dataIndex: 'createTime' },
{ title: '状态', dataIndex: 'reviewStatusText' },
{
title: '操作',
@ -92,12 +93,12 @@ const AccessManagement: React.FC = () => {
render: (_: any, record: any) => (
<Space>
<a onClick={() => openModal('view', record)}></a>
{(record.reviewStatus === '3' && !record.approveStatusText) && (
{((record.reviewStatus === '3' && record.accessTypeText === 'online') && !record.approveStatusText) && (
<a onClick={() => handleApproval(record.id)}>
</a>
)}
{record.reviewStatus === '3' && (
{(record.reviewStatus === '3' && record.accessTypeText === 'online') && (
<>
<a onClick={() => openModal('result', record)}></a>
</>
@ -115,7 +116,7 @@ const AccessManagement: React.FC = () => {
<Select style={{ width: 150 }} placeholder="请选择准入方式" allowClear >
<Option value="online">线</Option>
<Option value="offline">线</Option>
<Option value="scattered">/</Option>
<Option value="scattered">//</Option>
</Select>
</Form.Item>
<Form.Item name="deptId" label="准入单位">
@ -137,7 +138,11 @@ const AccessManagement: React.FC = () => {
<Button type="primary" htmlType="submit"></Button>
</Form.Item>
<Form.Item>
<Button onClick={() => form.resetFields()}></Button>
<Button onClick={() => {
form.resetFields()
const values = form.getFieldsValue();
getList(values, 1, 10);
}}></Button>
</Form.Item>
</Form>
<div style={{ marginTop: 16, marginBottom: 16 }}>