更新代码
This commit is contained in:
@ -2,16 +2,7 @@ import React, { useEffect, useState } from 'react';
|
||||
import { Modal, Table, Spin, Descriptions } from 'antd';
|
||||
import { supplierChangeApplyById } from '../services';
|
||||
|
||||
interface Qualification {
|
||||
type: string;
|
||||
name: string;
|
||||
level: string;
|
||||
number: string;
|
||||
org: string;
|
||||
issueDate: string;
|
||||
validDate: string;
|
||||
file?: string;
|
||||
}
|
||||
|
||||
interface InfoItem {
|
||||
fieldAnnotation?: string;
|
||||
newValue?: string;
|
||||
@ -23,9 +14,12 @@ interface InfoItem {
|
||||
coscoSupplierChangeHistoryList?: [];
|
||||
}
|
||||
interface DetailData {
|
||||
coscoSupplierChangeApply: InfoItem;
|
||||
fieldAnnotation?: string;
|
||||
title?: string;
|
||||
changeDesc?: string;
|
||||
supplierName?: string;
|
||||
approveStatusText?: string;
|
||||
coscoSupplierChangeHistoryList: InfoItem[];
|
||||
qualifications: Qualification[];
|
||||
}
|
||||
interface DetailViewProps {
|
||||
visible: boolean;
|
||||
@ -87,11 +81,11 @@ const DetailView: React.FC<DetailViewProps> = ({ visible, onClose, detailId }) =
|
||||
<div>
|
||||
{/* 基本信息 */}
|
||||
<Descriptions bordered column={1}>
|
||||
<Descriptions.Item label="变更标题" labelStyle={{width: '140px'}}>{detailData.coscoSupplierChangeApply?.title}</Descriptions.Item>
|
||||
<Descriptions.Item label="变更说明">{detailData.coscoSupplierChangeApply?.changeDesc}</Descriptions.Item>
|
||||
{detailData.coscoSupplierChangeApply?.coscoSupplierChangeHistoryList && (
|
||||
<Descriptions.Item label="附件">{detailData.coscoSupplierChangeApply?.changeDesc}</Descriptions.Item>
|
||||
) }
|
||||
<Descriptions.Item label="变更标题" labelStyle={{width: '140px'}}>{detailData?.title}</Descriptions.Item>
|
||||
<Descriptions.Item label="变更说明">{detailData?.changeDesc}</Descriptions.Item>
|
||||
{/* {detailData?.coscoSupplierChangeHistoryList && (
|
||||
<Descriptions.Item label="附件">{detailData?.changeDesc}</Descriptions.Item>
|
||||
) } */}
|
||||
</Descriptions>
|
||||
{/* 变更内容 */}
|
||||
<div style={{ padding: '16px 0 10px 2px', color: '#333', fontSize: '14px' }}>变更内容:</div>
|
||||
|
@ -125,6 +125,7 @@ const SupplierChangeReviewManage: React.FC<Props> = ({ dispatch }) => {
|
||||
title: '供应商名称',
|
||||
dataIndex: 'supplierName',
|
||||
align: 'left',
|
||||
width: 160,
|
||||
ellipsis: true,
|
||||
render: (dom, record) =>
|
||||
<Tooltip title={record.supplierName}>
|
||||
|
Reference in New Issue
Block a user