From 5ccbe03a2d1afe9cb1ed354b53e06129d40c69d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=99=AF=E5=AD=A6?= <5412262+sun_jing_xue@user.noreply.gitee.com> Date: Tue, 15 Jul 2025 13:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyInfo/component/BaseInfoTab.tsx | 77 +++++++++++-------- .../components/SupplierSelector.tsx | 14 ++-- .../components/ViewModal.tsx | 3 +- .../components/ViewModal.tsx | 3 +- .../components/ViewModal.tsx | 3 +- .../components/CreateModal.tsx | 1 + .../components/ReviewerSelector.tsx | 15 +++- .../components/SupplierSelector.tsx | 12 +-- .../components/ViewModal.tsx | 3 +- .../admission/admissionManagement/index.tsx | 4 +- .../components/ViewModal.tsx | 3 +- .../components/CategoryAddModal.tsx | 30 +++++--- .../components/ViewBlacklistModal.tsx | 13 ++-- .../components/CreateBlacklistModal.tsx | 4 +- .../components/SupplierSelectModal.tsx | 26 ++++--- .../components/ViewBlacklistModal.tsx | 13 ++-- 16 files changed, 140 insertions(+), 84 deletions(-) diff --git a/src/components/CompanyInfo/component/BaseInfoTab.tsx b/src/components/CompanyInfo/component/BaseInfoTab.tsx index 4ef2984..dddd517 100644 --- a/src/components/CompanyInfo/component/BaseInfoTab.tsx +++ b/src/components/CompanyInfo/component/BaseInfoTab.tsx @@ -28,10 +28,10 @@ export interface Request { [property: string]: any; } interface changeDataValueProps { - id?:string; - title?:string; - changeDesc?:string; - coscoSupplierSurveyAttachments?:coscoSupplierSurveyAttachments[]; + id?: string; + title?: string; + changeDesc?: string; + coscoSupplierSurveyAttachments?: coscoSupplierSurveyAttachments[]; } interface coscoSupplierSurveyAttachments { attachmentsType: string; @@ -43,13 +43,13 @@ interface coscoSupplierSurveyAttachments { } interface BaseInfoTabProps { - viewType?:boolean; - record?:string; + viewType?: boolean; + record?: string; } const BaseInfoTab: React.FC = (props) => { const userId = sessionStorage.getItem('userId') || ''; - const { viewType = false, record = userId } = props; + const { viewType = false, record = userId } = props; const intl = useIntl(); const [registerInfo, setRegisterInfo] = useState(); //变更说明与附件 @@ -75,11 +75,11 @@ const BaseInfoTab: React.FC = (props) => { fetchData(); }; - + useEffect(() => { - if(record) { - //供应商信息 - fetchData() + if (record) { + //供应商信息 + fetchData() } }, [record]); @@ -87,8 +87,8 @@ const BaseInfoTab: React.FC = (props) => { return (
- - { !viewType && ( + + {!viewType && ( )} = (props) => { {registerInfo.coscoSupplierBase.vat} - + {/* {registerInfo.coscoSupplierBase.taxpayerId} - + */} {registerInfo.coscoSupplierBase.currency} )} - - {registerInfo.coscoSupplierBase.socialCreditCode} - + {registerInfo.coscoSupplierBase.range} - - {registerInfo.coscoSupplierBase.regAddress} - + {registerInfo.coscoSupplierBase.workAddress} @@ -142,24 +138,39 @@ const BaseInfoTab: React.FC = (props) => { {registerInfo.coscoSupplierBase.legalPerson} - - {registerInfo.coscoSupplierBase.idCard} - + {registerInfo.coscoSupplierBase.capital} - - {registerInfo.coscoSupplierBase.enterpriseType} - + + {registerInfo.coscoSupplierBase.supplierType === 'dvs' && ( + <> + + {registerInfo.coscoSupplierBase.socialCreditCode} + + + {registerInfo.coscoSupplierBase.regAddress} + + + {registerInfo.coscoSupplierBase.idCard} + + + {registerInfo.coscoSupplierBase.enterpriseType} + + + {registerInfo.coscoSupplierBase.contactsPhone} + + + + {registerInfo.coscoSupplierBase.contactsType} + + + )} + {registerInfo.coscoSupplierBase.contactsName} - - {registerInfo.coscoSupplierBase.contactsPhone} - - - {registerInfo.coscoSupplierBase.contactsType} - + {registerInfo.coscoSupplierBase.contactsEmail} diff --git a/src/pages/supplier/admission/SupplierCategoryEntry/components/SupplierSelector.tsx b/src/pages/supplier/admission/SupplierCategoryEntry/components/SupplierSelector.tsx index ef67c4e..e538049 100644 --- a/src/pages/supplier/admission/SupplierCategoryEntry/components/SupplierSelector.tsx +++ b/src/pages/supplier/admission/SupplierCategoryEntry/components/SupplierSelector.tsx @@ -71,12 +71,14 @@ const SupplierSelector: React.FC<{ visible: boolean; onCancel: () => void; onSel }, [visible]) //供应商名称 const columns = [ - { title: '供应商名称', dataIndex: 'name', ellipsis: true, width: 160, render: (name: string) => ( - - {name} - - ), }, - { title: '境内/境外', dataIndex: 'supplierType', render: (supplierType: string) => supplierType === 'dvs' ? '境内' : '境外'}, + { title: '供应商名称', dataIndex: 'name', ellipsis: true, width: 160, render: (_: any, record: any) => { + const name = record.supplierType === "ovs"? record.nameEn : record.name; + return( + + {name} + ) + } }, + { title: '统一社会信用代码/税号', ellipsis: true, dataIndex: 'unifiedCode' }, ]; return ( diff --git a/src/pages/supplier/admission/SupplierCategoryEntry/components/ViewModal.tsx b/src/pages/supplier/admission/SupplierCategoryEntry/components/ViewModal.tsx index b7b39b1..692b531 100644 --- a/src/pages/supplier/admission/SupplierCategoryEntry/components/ViewModal.tsx +++ b/src/pages/supplier/admission/SupplierCategoryEntry/components/ViewModal.tsx @@ -21,6 +21,7 @@ interface coscoAccessSupplierLists { interface coscoAccessWorks { deptId: string; reviewStatusText: string; + approveStatusText: string; } const ViewModal: React.FC<{ @@ -62,7 +63,7 @@ const ViewModal: React.FC<{ })} - {data.coscoAccessWork.reviewStatusText} + {data.coscoAccessWork.approveStatusText} )} diff --git a/src/pages/supplier/admission/SupplierCategoryEntryReview/components/ViewModal.tsx b/src/pages/supplier/admission/SupplierCategoryEntryReview/components/ViewModal.tsx index b7b39b1..692b531 100644 --- a/src/pages/supplier/admission/SupplierCategoryEntryReview/components/ViewModal.tsx +++ b/src/pages/supplier/admission/SupplierCategoryEntryReview/components/ViewModal.tsx @@ -21,6 +21,7 @@ interface coscoAccessSupplierLists { interface coscoAccessWorks { deptId: string; reviewStatusText: string; + approveStatusText: string; } const ViewModal: React.FC<{ @@ -62,7 +63,7 @@ const ViewModal: React.FC<{ })} - {data.coscoAccessWork.reviewStatusText} + {data.coscoAccessWork.approveStatusText} )} diff --git a/src/pages/supplier/admission/SupplierEntryReview/components/ViewModal.tsx b/src/pages/supplier/admission/SupplierEntryReview/components/ViewModal.tsx index 13f8b89..07b521f 100644 --- a/src/pages/supplier/admission/SupplierEntryReview/components/ViewModal.tsx +++ b/src/pages/supplier/admission/SupplierEntryReview/components/ViewModal.tsx @@ -35,6 +35,7 @@ interface coscoAccessWorks { reviewStatusText: string; accessType: string; accessDesc: string; + approveStatusText: string; } const ViewModal: React.FC<{ @@ -102,7 +103,7 @@ const ViewModal: React.FC<{ ) })} - {data.coscoAccessWork.reviewStatusText} + {data.coscoAccessWork.approveStatusText} )} diff --git a/src/pages/supplier/admission/admissionManagement/components/CreateModal.tsx b/src/pages/supplier/admission/admissionManagement/components/CreateModal.tsx index 0e93267..7bcb42b 100644 --- a/src/pages/supplier/admission/admissionManagement/components/CreateModal.tsx +++ b/src/pages/supplier/admission/admissionManagement/components/CreateModal.tsx @@ -328,6 +328,7 @@ const CreateModal: React.FC<{ visible: boolean; onCancel: () => void; }> = ({ vi { diff --git a/src/pages/supplier/admission/admissionManagement/components/ReviewerSelector.tsx b/src/pages/supplier/admission/admissionManagement/components/ReviewerSelector.tsx index 8679256..1c4ce7a 100644 --- a/src/pages/supplier/admission/admissionManagement/components/ReviewerSelector.tsx +++ b/src/pages/supplier/admission/admissionManagement/components/ReviewerSelector.tsx @@ -25,6 +25,19 @@ interface ReviewerSelectorProps { leader?: string; // 回显:组长userId } + +function orgIdAndDeptId(data:any) { + const sss = data.map((item:any) => { + return { + ...item, + deptId: item.orgId + } + }) + + return sss + +} + const ReviewerSelector: React.FC = ({ visible, onCancel, @@ -63,7 +76,7 @@ const ReviewerSelector: React.FC = ({ .then((res) => { const { code, data } = res; if(code == 200) { - setData(data.records); + setData(orgIdAndDeptId(data.records)); setTotal(data.total); } }) diff --git a/src/pages/supplier/admission/admissionManagement/components/SupplierSelector.tsx b/src/pages/supplier/admission/admissionManagement/components/SupplierSelector.tsx index f3ea2f9..298efb8 100644 --- a/src/pages/supplier/admission/admissionManagement/components/SupplierSelector.tsx +++ b/src/pages/supplier/admission/admissionManagement/components/SupplierSelector.tsx @@ -70,12 +70,14 @@ const SupplierSelector: React.FC<{ visible: boolean; onCancel: () => void; onSel }, [visible]) //供应商名称 const columns = [ - { title: '供应商名称', dataIndex: 'name', ellipsis: true, width: 160, render: (name: string) => ( + { title: '供应商名称', dataIndex: 'name', ellipsis: true, width: 160, render: (_: any, record: any) => { + const name = record.supplierType === "ovs"? record.nameEn : record.name; + return( {name} - - ), }, - { title: '境内/境外', dataIndex: 'supplierType', render: (supplierType: string) => supplierType === 'dvs' ? '境内' : '境外'}, + ) + } }, + { title: '统一社会信用代码/税号', ellipsis: true, dataIndex: 'unifiedCode' }, ]; return ( @@ -83,7 +85,7 @@ const SupplierSelector: React.FC<{ visible: boolean; onCancel: () => void; onSel
- + + /> rules={[{ required: true, message: '请选择区域' }]} + required */} + = ({ const columns:ColumnsType = [ { title: "供应商名称", dataIndex: "supplierName", align: "center" }, - { title: "准入部门", dataIndex: "unit", align: "center" }, - { title: "准入时间", dataIndex: "accessTime", align: "center" }, - { title: "准入品类", dataIndex: "categoryName", align: "center" }, - { title: "最近一次评价", dataIndex: "lastEval", align: "center" }, - { title: "评价时间", dataIndex: "lastEvalDate", align: "center" }, + { title: "准入部门", dataIndex: "deptId", align: "center" }, + // { title: "准入时间", dataIndex: "accessTime", align: "center" }, + { title: "退出品类", dataIndex: "categoryName", align: "center" }, + // { title: "最近一次评价", dataIndex: "lastEval", align: "center" }, + // { title: "评价时间", dataIndex: "lastEvalDate", align: "center" }, ]; return ( @@ -86,7 +86,6 @@ const ViewBlacklistModal: React.FC = ({ {detail && ( = ({ rowKey="id" bordered pagination={false} + style={{ flex: 1, minHeight: 0 }} + scroll={{ y: 'calc(100vh - 650px)' }} /> diff --git a/src/pages/supplier/supplierExit/supplierExitManage/components/CreateBlacklistModal.tsx b/src/pages/supplier/supplierExit/supplierExitManage/components/CreateBlacklistModal.tsx index a765123..c5031a7 100644 --- a/src/pages/supplier/supplierExit/supplierExitManage/components/CreateBlacklistModal.tsx +++ b/src/pages/supplier/supplierExit/supplierExitManage/components/CreateBlacklistModal.tsx @@ -86,8 +86,8 @@ const CreateBlacklistModal: React.FC = ({ }, [visible]); const columns: ColumnsType = [ { title: "供应商名称", dataIndex: "supplierName", align: "center" }, - { title: "准入部门", dataIndex: "unit", align: "center" }, - { title: "准入时间", dataIndex: "accessTime", align: "center", render: () => "2023-04-20 13:00" }, + { title: "准入部门", dataIndex: "deptId", align: "center" }, + { title: "准入时间", dataIndex: "createTime", align: "center" }, { title: "准入品类", dataIndex: "categoryName", align: "center" }, { title: "最近一次评价", dataIndex: "lastEval", align: "center" }, { title: "评价时间", dataIndex: "lastEvalDate", align: "center" }, diff --git a/src/pages/supplier/supplierExit/supplierExitManage/components/SupplierSelectModal.tsx b/src/pages/supplier/supplierExit/supplierExitManage/components/SupplierSelectModal.tsx index d2298fe..6008d69 100644 --- a/src/pages/supplier/supplierExit/supplierExitManage/components/SupplierSelectModal.tsx +++ b/src/pages/supplier/supplierExit/supplierExitManage/components/SupplierSelectModal.tsx @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react"; import { Modal, Table, Button, Checkbox, Row, Col, Input, Select, Form, Space, message } from "antd"; +import { RightOutlined, LeftOutlined } from '@ant-design/icons'; import { getSupplierCategoryPage } from '../services'; import CategorySelector from '@/components/CategorySelector'; const { Option } = Select; @@ -100,9 +101,9 @@ const SupplierSelectModal: React.FC = ({ onChange={e => { setLeftSelected(e.target.checked ? data.map(i => i.id) : []); }} - >全选, + >, dataIndex: "select", - width: 80, + width: 40, render: (_: any, record: Supplier) => ( = ({ ? [...leftSelected, record.id] : leftSelected.filter(id => id !== record.id)); }} - >选择 + > ) }, { title: "供应商名称", dataIndex: "supplierName" }, @@ -126,9 +127,9 @@ const SupplierSelectModal: React.FC = ({ onChange={e => { setRightSelected(e.target.checked ? rightData.map(i => i.id) : []); }} - >全选, + >, dataIndex: "select", - width: 80, + width: 40, render: (_: any, record: Supplier) => ( = ({ ? [...rightSelected, record.id] : rightSelected.filter(id => id !== record.id)); }} - >选择 + > ) }, { title: "供应商名称", dataIndex: "supplierName" }, @@ -195,10 +196,17 @@ const SupplierSelectModal: React.FC = ({ bordered /> - - - + + +
+
+ +
已选供应商
= ({ const columns:ColumnsType = [ { title: "供应商名称", dataIndex: "supplierName", align: "center" }, - { title: "准入部门", dataIndex: "unit", align: "center" }, - { title: "准入时间", dataIndex: "accessTime", align: "center" }, - { title: "准入品类", dataIndex: "categoryName", align: "center" }, - { title: "最近一次评价", dataIndex: "lastEval", align: "center" }, - { title: "评价时间", dataIndex: "lastEvalDate", align: "center" }, + { title: "准入部门", dataIndex: "deptId", align: "center" }, + // { title: "准入时间", dataIndex: "accessTime", align: "center" }, + { title: "退出品类", dataIndex: "categoryName", align: "center" }, + // { title: "最近一次评价", dataIndex: "lastEval", align: "center" }, + // { title: "评价时间", dataIndex: "lastEvalDate", align: "center" }, ]; return ( @@ -86,7 +86,6 @@ const ViewBlacklistModal: React.FC = ({ {detail && ( = ({ rowKey="id" bordered pagination={false} + style={{ flex: 1, minHeight: 0 }} + scroll={{ y: 'calc(100vh - 650px)' }} />