dev-tmp1
tangjie 2026-08-13 12:54:53 +08:00
parent c42bc60564
commit 22f4df0fa2
1 changed files with 6 additions and 15 deletions

View File

@ -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}
</Descriptions.Item>
<Descriptions.Item label="所属行业">
{detail.safetyIndustryCategoryName}
{(detail.safetyIndustryCategoryCode || [])
.map((code) => QUALIFICATION_INDUSTRY_OPTIONS_MAP[code] || code)
.join("、") || "-"}
</Descriptions.Item>
<Descriptions.Item label="经营地址" span={2}>
{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) => (
<Select.Option key={opt.value} value={opt.value}>
@ -497,7 +488,7 @@ function OrgAccountPage(props) {
))}
</Select>
</Form.Item>
<Form.Item name="safetyIndustryCategoryName" noStyle />
</Col>
<Col span={24}>
<Form.Item name="businessAddress" label="经营地址">