diff --git a/src/pages/Container/Supervision/BasicInfo/OrgAccount/index.js b/src/pages/Container/Supervision/BasicInfo/OrgAccount/index.js index 2666fa2..ce2e515 100644 --- a/src/pages/Container/Supervision/BasicInfo/OrgAccount/index.js +++ b/src/pages/Container/Supervision/BasicInfo/OrgAccount/index.js @@ -30,6 +30,7 @@ import { ORG_ACCOUNT_STATE_OPTIONS, ENTERPRISE_STATUS_OPTIONS, ENTERPRISE_STATUS_OPTIONS_MAP, + QUALIFICATION_INDUSTRY_OPTIONS_MAP } from "~/enumerate/enterpriseOptions"; import { NS_ORG_INFO } from "~/enumerate/namespace"; import { safeListRequest, safeRequest } from "~/utils"; @@ -402,7 +403,9 @@ function OrgAccountPage(props) { {detail.districtName} - {detail.safetyIndustryCategoryName} + {(detail.safetyIndustryCategoryCode || []) + .map((code) => QUALIFICATION_INDUSTRY_OPTIONS_MAP[code] || code) + .join("、") || "-"} {detail.businessAddress} @@ -476,19 +479,7 @@ function OrgAccountPage(props) { mode="multiple" placeholder="请选择" allowClear - onChange={(values) => { - const names = (values || []) - .map( - (v) => - QUALIFICATION_INDUSTRY_OPTIONS.find( - (o) => o.value === v, - )?.label, - ) - .filter(Boolean); - editForm.setFieldsValue({ - safetyIndustryCategoryName: names.join(","), - }); - }} + > {QUALIFICATION_INDUSTRY_OPTIONS.map((opt) => ( @@ -497,7 +488,7 @@ function OrgAccountPage(props) { ))} - +