退出中退出原因

This commit is contained in:
孙景学
2025-08-12 15:10:18 +08:00
parent b990c38d4c
commit 3b66c7ff87
3 changed files with 25 additions and 4 deletions

View File

@ -99,6 +99,10 @@ const ViewBlacklistModal: React.FC<ViewBlacklistModalProps> = ({
{ title: "发起单位", dataIndex: "orgName", align: "center", ellipsis: true, width: 160 },
{ title: "发起部门", dataIndex: "deptName", align: "center", ellipsis: true, width: 160 },
{ title: "退出品类", dataIndex: "categoryName", align: "center", ellipsis: true, width: 160 },
{
title: "退出原因", dataIndex: "exitReason", align: "center", ellipsis: true, width: 180,
render: (dom, record:any) => <span>{record.exitReason}</span>,
},
{ title: "退出时间", dataIndex: "createTime", align: "center", width: 180 },
];

View File

@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
//第三方UI库/组件
import { Form, Button, Table, Input, Space, Tooltip } from 'antd';
import { Form, Button, Table, Input, Space, Tooltip, Select } from 'antd';
import { SearchOutlined, DeleteOutlined } from '@ant-design/icons';
//类型定义
import type { ColumnsType, TablePaginationConfig } from 'antd/es/table';
@ -10,7 +10,7 @@ import { useIntl, connect } from 'umi';
import SupplierViewModal from './components/SupplierViewModal';
import SupplierDetailModal from './components/SupplierDetailModal';
import RegionTypeSelect from '@/components/CommonSelect/RegionTypeSelect'
import AccessStatusSelect from '@/components/CommonSelect/AccessStatusSelect'
// import AccessStatusSelect from '@/components/CommonSelect/AccessStatusSelect'
//本地服务/接口
import { getRegisterPage } from './services';
import { getDictList } from '@/servers/api/dicts'
@ -26,6 +26,12 @@ interface Data {
regTime: string;
status: string;
}
const accessStatusType = [
{ code: '0', dicName: '未准入' },
{ code: '1', dicName: '已准入' },
{ code: '2', dicName: '已退出' }
]
//准入状态
const statusColor = (status: string) => {
if (status === '已驳回' || status === '已退出') return '#ef6969';
@ -205,7 +211,14 @@ const RegistrationQuery: React.FC<RegistrationQueryProps> = ({ dispatch }) => {
<Form.Item name="supplierType" label="境内/境外">
<RegionTypeSelect />
</Form.Item>
<Form.Item name="accessStatus" label="准入状态">
<Select style={{ width: 160 }} placeholder="请选择" allowClear>
{accessStatusType?.map(item => (
<Select.Option key={item.code} value={item.code}>{item.dicName}</Select.Option>
))}
</Select>
</Form.Item>
<Form.Item>
<Button className="buttonSubmit" type="primary" htmlType="submit" icon={<SearchOutlined />}></Button>
</Form.Item>

View File

@ -93,6 +93,10 @@ const ViewBlacklistModal: React.FC<ViewBlacklistModalProps> = ({
{ title: "发起单位", dataIndex: "orgName", align: "center", ellipsis: true, width: 160 },
{ title: "发起部门", dataIndex: "deptName", align: "center", ellipsis: true, width: 160 },
{ title: "退出品类", dataIndex: "categoryName", align: "center", ellipsis: true, width: 160 },
{
title: "退出原因", dataIndex: "exitReason", align: "center", ellipsis: true, width: 180,
render: (dom, record:any) => <span>{record.exitReason}</span>,
},
{ title: "退出时间", dataIndex: "createTime", align: "center", width: 180 },
];
@ -111,7 +115,7 @@ const ViewBlacklistModal: React.FC<ViewBlacklistModalProps> = ({
<Form.Item name="exitTheme" label="供应商名称">
<Input placeholder="请输入" style={{ width: 150 }} allowClear maxLength={100} />
</Form.Item>
<Form.Item name="time" label="退出时间">
<DatePicker.RangePicker style={{ width: 220 }} allowClear />
</Form.Item>