更新部分功能
This commit is contained in:
@ -23,7 +23,7 @@ interface Data {
|
||||
interface SupplierAccessDetailModalProps {
|
||||
visible: boolean;
|
||||
onCancel: () => void;
|
||||
record?: any; // 你可以定义具体类型
|
||||
record?: string; // 你可以定义具体类型
|
||||
}
|
||||
//主体
|
||||
const SupplierAccessDetailModal: React.FC<SupplierAccessDetailModalProps> = ({ visible, onCancel, record, }) => {
|
||||
@ -55,7 +55,7 @@ const SupplierAccessDetailModal: React.FC<SupplierAccessDetailModalProps> = ({ v
|
||||
setLoading(true);
|
||||
try {
|
||||
const values = form.getFieldsValue();
|
||||
const { code, data, message } = await getCategoryPage({ pageNo, pageSize , ...values});
|
||||
const { code, data, message } = await getCategoryPage({ pageNo, pageSize , id:record, ...values});
|
||||
if (code === 200) {
|
||||
setData(data.records);
|
||||
setPagination({ current: pageNo, pageSize, total: data.total });
|
||||
|
@ -7,13 +7,13 @@ import CompanyInfo from '@/components/CompanyInfo';
|
||||
interface SupplierViewModalProps {
|
||||
visible: boolean;
|
||||
onCancel: () => void;
|
||||
record?: any;
|
||||
record?: string;
|
||||
}
|
||||
// 查看主体
|
||||
const SupplierViewModal: React.FC<SupplierViewModalProps> = ({ visible, onCancel, record }) => {
|
||||
return (
|
||||
<Modal visible={visible} title="供应商信息查看" onCancel={onCancel} footer={null} width='80%' destroyOnClose >
|
||||
<CompanyInfo viewType={true} />
|
||||
<CompanyInfo viewType={true} record={record} />
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
@ -39,7 +39,7 @@ const mySupplierInquiry: React.FC = () => {
|
||||
//准入明细是否显示状态
|
||||
const [detailVisible, setDetailVisible] = useState(false);
|
||||
//查看、准入明细 参数传递
|
||||
const [currentRecord, setCurrentRecord] = useState<any>(null);
|
||||
const [currentRecord, setCurrentRecord] = useState('');
|
||||
// 境内/境外下拉数据
|
||||
const [regionOptions, setRegionOptions] = useState<OptionType[]>([]);
|
||||
// 准入状态
|
||||
@ -150,11 +150,11 @@ const mySupplierInquiry: React.FC = () => {
|
||||
<Space>
|
||||
<a
|
||||
style={{ color: '#1677ff' }}
|
||||
onClick={() => { setCurrentRecord(record); setViewVisible(true); }}
|
||||
onClick={() => { setCurrentRecord(record.id); setViewVisible(true); }}
|
||||
>查看</a>
|
||||
<a
|
||||
style={{ color: '#1677ff' }}
|
||||
onClick={() => { setCurrentRecord(record); setDetailVisible(true); }}
|
||||
onClick={() => { setCurrentRecord(record.id); setDetailVisible(true); }}
|
||||
>准入明细</a>
|
||||
</Space>
|
||||
),
|
||||
|
Reference in New Issue
Block a user