准入查看与零星采购/应急采购/个人供应商和个人修改
This commit is contained in:
@ -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 }}>
|
||||
|
Reference in New Issue
Block a user