fix
parent
c42bc60564
commit
22f4df0fa2
|
|
@ -30,6 +30,7 @@ import {
|
||||||
ORG_ACCOUNT_STATE_OPTIONS,
|
ORG_ACCOUNT_STATE_OPTIONS,
|
||||||
ENTERPRISE_STATUS_OPTIONS,
|
ENTERPRISE_STATUS_OPTIONS,
|
||||||
ENTERPRISE_STATUS_OPTIONS_MAP,
|
ENTERPRISE_STATUS_OPTIONS_MAP,
|
||||||
|
QUALIFICATION_INDUSTRY_OPTIONS_MAP
|
||||||
} from "~/enumerate/enterpriseOptions";
|
} from "~/enumerate/enterpriseOptions";
|
||||||
import { NS_ORG_INFO } from "~/enumerate/namespace";
|
import { NS_ORG_INFO } from "~/enumerate/namespace";
|
||||||
import { safeListRequest, safeRequest } from "~/utils";
|
import { safeListRequest, safeRequest } from "~/utils";
|
||||||
|
|
@ -402,7 +403,9 @@ function OrgAccountPage(props) {
|
||||||
{detail.districtName}
|
{detail.districtName}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label="所属行业">
|
<Descriptions.Item label="所属行业">
|
||||||
{detail.safetyIndustryCategoryName}
|
{(detail.safetyIndustryCategoryCode || [])
|
||||||
|
.map((code) => QUALIFICATION_INDUSTRY_OPTIONS_MAP[code] || code)
|
||||||
|
.join("、") || "-"}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label="经营地址" span={2}>
|
<Descriptions.Item label="经营地址" span={2}>
|
||||||
{detail.businessAddress}
|
{detail.businessAddress}
|
||||||
|
|
@ -476,19 +479,7 @@ function OrgAccountPage(props) {
|
||||||
mode="multiple"
|
mode="multiple"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
allowClear
|
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) => (
|
{QUALIFICATION_INDUSTRY_OPTIONS.map((opt) => (
|
||||||
<Select.Option key={opt.value} value={opt.value}>
|
<Select.Option key={opt.value} value={opt.value}>
|
||||||
|
|
@ -497,7 +488,7 @@ function OrgAccountPage(props) {
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item name="safetyIndustryCategoryName" noStyle />
|
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
<Form.Item name="businessAddress" label="经营地址">
|
<Form.Item name="businessAddress" label="经营地址">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue