Merge remote-tracking branch 'origin/dev-tmp1' into dev-tmp1
commit
1b69c4938a
|
|
@ -5,6 +5,7 @@ import {
|
||||||
REGISTER_ENGINEER_CATEGORY_MAP,
|
REGISTER_ENGINEER_CATEGORY_MAP,
|
||||||
ABILITY_SOURCE_MAP,
|
ABILITY_SOURCE_MAP,
|
||||||
TITLE_LEVEL_MAP,
|
TITLE_LEVEL_MAP,
|
||||||
|
QUALIFICATION_INDUSTRY_OPTIONS_MAP,
|
||||||
} from "~/enumerate/enterpriseOptions";
|
} from "~/enumerate/enterpriseOptions";
|
||||||
import {
|
import {
|
||||||
CERT_LEVEL_LABEL_BY_TYPE,
|
CERT_LEVEL_LABEL_BY_TYPE,
|
||||||
|
|
@ -88,6 +89,7 @@ export default function StaffViewModal({
|
||||||
|
|
||||||
const capabilityList = Array.isArray(info.capabilityAssessment)
|
const capabilityList = Array.isArray(info.capabilityAssessment)
|
||||||
? info.capabilityAssessment.map((item) => ({
|
? info.capabilityAssessment.map((item) => ({
|
||||||
|
industryCode: item.industryCode,
|
||||||
capabilityName:
|
capabilityName:
|
||||||
CAPABILITY_MAP[item.professionalCapabilityCode] ||
|
CAPABILITY_MAP[item.professionalCapabilityCode] ||
|
||||||
item.professionalCapabilityCode ||
|
item.professionalCapabilityCode ||
|
||||||
|
|
@ -264,7 +266,20 @@ export default function StaffViewModal({
|
||||||
dataSource={capabilityList}
|
dataSource={capabilityList}
|
||||||
locale={{ emptyText: "暂无专业能力信息" }}
|
locale={{ emptyText: "暂无专业能力信息" }}
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "专业能力", dataIndex: "capabilityName" },
|
{
|
||||||
|
title: "行业",
|
||||||
|
dataIndex: "industryCode",
|
||||||
|
width: 220,
|
||||||
|
ellipsis: true,
|
||||||
|
render: (code) =>
|
||||||
|
QUALIFICATION_INDUSTRY_OPTIONS_MAP[code] || code || "-",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "专业能力",
|
||||||
|
dataIndex: "capabilityName",
|
||||||
|
width: 80,
|
||||||
|
ellipsis: true,
|
||||||
|
},
|
||||||
{ title: "来源", dataIndex: "sourceName", width: 280 },
|
{ title: "来源", dataIndex: "sourceName", width: 280 },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,8 @@ import {
|
||||||
ABILITY_SOURCE_OPTIONS,
|
ABILITY_SOURCE_OPTIONS,
|
||||||
EVALUATOR_OPTIONS,
|
EVALUATOR_OPTIONS,
|
||||||
TITLE_LEVEL_OPTIONS,
|
TITLE_LEVEL_OPTIONS,
|
||||||
TITLE_LEVEL_MAP
|
TITLE_LEVEL_MAP,
|
||||||
|
QUALIFICATION_INDUSTRY_OPTIONS,
|
||||||
} from "~/enumerate/enterpriseOptions";
|
} from "~/enumerate/enterpriseOptions";
|
||||||
import {
|
import {
|
||||||
CERT_LEVEL_OPTIONS_BY_TYPE,
|
CERT_LEVEL_OPTIONS_BY_TYPE,
|
||||||
|
|
@ -322,6 +323,8 @@ function PersonnelInfoPage(props) {
|
||||||
{
|
{
|
||||||
title: "专业能力",
|
title: "专业能力",
|
||||||
dataIndex: "capabilityAssessment",
|
dataIndex: "capabilityAssessment",
|
||||||
|
|
||||||
|
ellipsis: true,
|
||||||
render: renderCapabilityList,
|
render: renderCapabilityList,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -501,6 +504,28 @@ function StaffFormModal({
|
||||||
const watchedEvaluatorFlag = Form.useWatch("evaluatorFlag", form);
|
const watchedEvaluatorFlag = Form.useWatch("evaluatorFlag", form);
|
||||||
const wasOpenRef = useRef(false);
|
const wasOpenRef = useRef(false);
|
||||||
const inflightDeptRef = useRef(null);
|
const inflightDeptRef = useRef(null);
|
||||||
|
const [capOptionsCache, setCapOptionsCache] = useState({});
|
||||||
|
const watchedCapList = Form.useWatch("capabilityAssessment", form);
|
||||||
|
|
||||||
|
const loadCapOptions = async (code) => {
|
||||||
|
if (!code || capOptionsCache[code]) return;
|
||||||
|
try {
|
||||||
|
const res = await Get("/safetyEval/industry-professional-standards", {
|
||||||
|
industryCode: code,
|
||||||
|
pageSize: 999,
|
||||||
|
});
|
||||||
|
const list = res?.data || [];
|
||||||
|
setCapOptionsCache((prev) => ({
|
||||||
|
...prev,
|
||||||
|
[code]: list.map((item) => ({
|
||||||
|
label: item.professionalCapabilityName,
|
||||||
|
value: item.professionalCapabilityCode,
|
||||||
|
})),
|
||||||
|
}));
|
||||||
|
} catch {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const loadPositionsByDept = async (deptId) => {
|
const loadPositionsByDept = async (deptId) => {
|
||||||
const id = deptId;
|
const id = deptId;
|
||||||
|
|
@ -543,6 +568,7 @@ function StaffFormModal({
|
||||||
if (!currentId) {
|
if (!currentId) {
|
||||||
form.resetFields();
|
form.resetFields();
|
||||||
setDeptPositionOptions([]);
|
setDeptPositionOptions([]);
|
||||||
|
setCapOptionsCache({});
|
||||||
form.setFieldsValue({
|
form.setFieldsValue({
|
||||||
registerEngineerFlag: 2,
|
registerEngineerFlag: 2,
|
||||||
});
|
});
|
||||||
|
|
@ -550,6 +576,7 @@ function StaffFormModal({
|
||||||
}
|
}
|
||||||
if (!open) {
|
if (!open) {
|
||||||
setDeptPositionOptions([]);
|
setDeptPositionOptions([]);
|
||||||
|
setCapOptionsCache({});
|
||||||
}
|
}
|
||||||
wasOpenRef.current = open;
|
wasOpenRef.current = open;
|
||||||
}, [open, currentId, form]);
|
}, [open, currentId, form]);
|
||||||
|
|
@ -610,6 +637,18 @@ function StaffFormModal({
|
||||||
}
|
}
|
||||||
|
|
||||||
form.setFieldsValue(setFields);
|
form.setFieldsValue(setFields);
|
||||||
|
|
||||||
|
// 从已有的专业能力数据中恢复各行的行业选项
|
||||||
|
if (Array.isArray(setFields.capabilityAssessment)) {
|
||||||
|
const codes = [
|
||||||
|
...new Set(
|
||||||
|
setFields.capabilityAssessment
|
||||||
|
.map((item) => item.industryCode)
|
||||||
|
.filter(Boolean),
|
||||||
|
),
|
||||||
|
];
|
||||||
|
codes.forEach((code) => loadCapOptions(code));
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
if (!cancelled) setDetailLoading(false);
|
if (!cancelled) setDetailLoading(false);
|
||||||
|
|
@ -1159,22 +1198,54 @@ function StaffFormModal({
|
||||||
bordered
|
bordered
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
title: "专业能力",
|
title: "行业",
|
||||||
|
width: 200,
|
||||||
render: (_, field) => (
|
render: (_, field) => (
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name={[field.name, "professionalCapabilityCode"]}
|
name={[field.name, "industryCode"]}
|
||||||
style={{ marginBottom: 0 }}
|
style={{ marginBottom: 0 }}
|
||||||
>
|
>
|
||||||
<Select
|
<Select
|
||||||
placeholder="请选择专业能力"
|
placeholder="请选择行业"
|
||||||
|
allowClear
|
||||||
showSearch
|
showSearch
|
||||||
optionFilterProp="label"
|
optionFilterProp="label"
|
||||||
allowClear
|
options={QUALIFICATION_INDUSTRY_OPTIONS}
|
||||||
options={CAPABILITY_OPTIONS}
|
onChange={(code) => {
|
||||||
|
if (code) loadCapOptions(code);
|
||||||
|
form.setFieldValue(
|
||||||
|
["capabilityAssessment", field.name, "professionalCapabilityCode"],
|
||||||
|
undefined,
|
||||||
|
);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "专业能力",
|
||||||
|
render: (_, field) => {
|
||||||
|
const rowIndustryCode =
|
||||||
|
watchedCapList?.[field.name]?.industryCode;
|
||||||
|
const rowOptions = rowIndustryCode
|
||||||
|
? capOptionsCache[rowIndustryCode] || []
|
||||||
|
: [];
|
||||||
|
return (
|
||||||
|
<Form.Item
|
||||||
|
name={[field.name, "professionalCapabilityCode"]}
|
||||||
|
style={{ marginBottom: 0 }}
|
||||||
|
>
|
||||||
|
<Select
|
||||||
|
placeholder="请选择专业能力"
|
||||||
|
showSearch
|
||||||
|
optionFilterProp="label"
|
||||||
|
allowClear
|
||||||
|
options={rowOptions}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "来源",
|
title: "来源",
|
||||||
width: 280,
|
width: 280,
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import { Button, Form, Input, Modal, Table, Tag, Space } from "antd";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { apiGet } from "~/utils/enterpriseInfo/http";
|
import { apiGet } from "~/utils/enterpriseInfo/http";
|
||||||
import { CAPABILITY_MAP, CERT_TYPE_MAP } from "~/enumerate/constant";
|
import { CAPABILITY_MAP, CERT_TYPE_MAP } from "~/enumerate/constant";
|
||||||
|
import { QUALIFICATION_INDUSTRY_OPTIONS_MAP } from "~/enumerate/enterpriseOptions";
|
||||||
import StaffViewModal from "~/components/StaffViewModal";
|
import StaffViewModal from "~/components/StaffViewModal";
|
||||||
|
|
||||||
export default function OrgPersonnelSelectModal(props) {
|
export default function OrgPersonnelSelectModal(props) {
|
||||||
|
|
@ -121,7 +122,7 @@ export default function OrgPersonnelSelectModal(props) {
|
||||||
showTotal: (t) => `共 ${t} 条`,
|
showTotal: (t) => `共 ${t} 条`,
|
||||||
onChange: (page, pageSize) => getData(page, pageSize),
|
onChange: (page, pageSize) => getData(page, pageSize),
|
||||||
}}
|
}}
|
||||||
scroll={{ x: 800, y: 400 }}
|
scroll={{ x: 1000, y: 400 }}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
title: "姓名",
|
title: "姓名",
|
||||||
|
|
@ -145,15 +146,28 @@ export default function OrgPersonnelSelectModal(props) {
|
||||||
{
|
{
|
||||||
title: "专业能力",
|
title: "专业能力",
|
||||||
dataIndex: "capabilityAssessment",
|
dataIndex: "capabilityAssessment",
|
||||||
|
ellipsis: true,
|
||||||
|
width: 260,
|
||||||
render: (list) => {
|
render: (list) => {
|
||||||
if (!Array.isArray(list) || !list.length) return "-";
|
if (!Array.isArray(list) || !list.length) return "-";
|
||||||
return list.map((item) => CAPABILITY_MAP[item.professionalCapabilityCode] ).join("、");
|
return list
|
||||||
|
.map((item) => {
|
||||||
|
const cap =
|
||||||
|
CAPABILITY_MAP[item.professionalCapabilityCode];
|
||||||
|
if (!cap) return null;
|
||||||
|
const industry = item.industryCode
|
||||||
|
? QUALIFICATION_INDUSTRY_OPTIONS_MAP[item.industryCode]
|
||||||
|
: null;
|
||||||
|
return industry ? `${industry}【${cap}】` : cap;
|
||||||
|
})
|
||||||
|
.filter(Boolean)
|
||||||
|
.join("、");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "证照名称",
|
title: "证照名称",
|
||||||
dataIndex: "personnelCertFilingPageCOList",
|
dataIndex: "personnelCertFilingPageCOList",
|
||||||
width: 200,
|
|
||||||
render: (list) => {
|
render: (list) => {
|
||||||
if (!Array.isArray(list) || !list.length) return "-";
|
if (!Array.isArray(list) || !list.length) return "-";
|
||||||
const colorMap = {
|
const colorMap = {
|
||||||
|
|
@ -161,7 +175,7 @@ export default function OrgPersonnelSelectModal(props) {
|
||||||
evaluator: "green",
|
evaluator: "green",
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<Space size={4}>
|
<Space size={4} wrap>
|
||||||
{list.map((item) => (
|
{list.map((item) => (
|
||||||
<Tag key={item.id} color={colorMap[item.certTypeCode]}>
|
<Tag key={item.id} color={colorMap[item.certTypeCode]}>
|
||||||
{CERT_TYPE_MAP[item.certTypeCode] || item.certTypeCode}
|
{CERT_TYPE_MAP[item.certTypeCode] || item.certTypeCode}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { useState } from "react";
|
||||||
import { CAPABILITY_MAP, CERT_LEVEL_LABEL_BY_TYPE } from "~/enumerate/constant";
|
import { CAPABILITY_MAP, CERT_LEVEL_LABEL_BY_TYPE } from "~/enumerate/constant";
|
||||||
import {
|
import {
|
||||||
TITLE_LEVEL_MAP,
|
TITLE_LEVEL_MAP,
|
||||||
|
QUALIFICATION_INDUSTRY_OPTIONS_MAP,
|
||||||
} from "~/enumerate/enterpriseOptions";
|
} from "~/enumerate/enterpriseOptions";
|
||||||
import StaffViewModal from "~/components/StaffViewModal";
|
import StaffViewModal from "~/components/StaffViewModal";
|
||||||
import OrgPersonnelSelectModal from "./OrgPersonnelSelectModal";
|
import OrgPersonnelSelectModal from "./OrgPersonnelSelectModal";
|
||||||
|
|
@ -113,11 +114,17 @@ const PersonnelStep = ({ personnelList = [], disabled, onAdd, onRemove, manageme
|
||||||
render: (list) => {
|
render: (list) => {
|
||||||
if (!Array.isArray(list) || !list.length) return "-";
|
if (!Array.isArray(list) || !list.length) return "-";
|
||||||
return list
|
return list
|
||||||
.map(
|
.map((item) => {
|
||||||
(item) =>
|
const cap =
|
||||||
CAPABILITY_MAP[item.professionalCapabilityCode] ||
|
CAPABILITY_MAP[item.professionalCapabilityCode] ||
|
||||||
item.professionalCapabilityCode,
|
item.professionalCapabilityCode;
|
||||||
)
|
if (!cap) return null;
|
||||||
|
const industry = item.industryCode
|
||||||
|
? QUALIFICATION_INDUSTRY_OPTIONS_MAP[item.industryCode]
|
||||||
|
: null;
|
||||||
|
return industry ? `${industry}【${cap}】` : cap;
|
||||||
|
})
|
||||||
|
.filter(Boolean)
|
||||||
.join("、");
|
.join("、");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ function FilingFormPage(props) {
|
||||||
const readOnly = query.readOnly;
|
const readOnly = query.readOnly;
|
||||||
|
|
||||||
const saveActionHint =
|
const saveActionHint =
|
||||||
mode === FILING_FORM_MODE.FILED
|
mode === FILING_FORM_MODE.CHANGE
|
||||||
? "请点击提交后保存"
|
? "请点击提交后保存"
|
||||||
: "请点击暂存或提交后保存";
|
: "请点击暂存或提交后保存";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ const SiteReviewNotice = (props) => {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
size="small"
|
size="small"
|
||||||
|
|
||||||
onClick={() => handleViewDetail(record)}
|
onClick={() => handleViewDetail(record)}
|
||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
|
|
@ -138,7 +138,7 @@ const SiteReviewNotice = (props) => {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
size="small"
|
size="small"
|
||||||
|
|
||||||
onClick={() => handleConfirm(record)}
|
onClick={() => handleConfirm(record)}
|
||||||
>
|
>
|
||||||
确认安排
|
确认安排
|
||||||
|
|
@ -151,7 +151,7 @@ const SiteReviewNotice = (props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageLayout title="现场审查通知">
|
<PageLayout title="现场审查通知">
|
||||||
|
|
||||||
|
|
||||||
<SearchForm
|
<SearchForm
|
||||||
form={searchForm}
|
form={searchForm}
|
||||||
|
|
@ -165,12 +165,12 @@ const SiteReviewNotice = (props) => {
|
||||||
allowClear
|
allowClear
|
||||||
/>
|
/>
|
||||||
</Form.Item>,
|
</Form.Item>,
|
||||||
<Form.Item key="bizType" name="bizType">
|
// <Form.Item key="bizType" name="bizType">
|
||||||
<ControlWrapper.Select label="申请事项" placeholder="全部" allowClear style={{ width: "100%" }}>
|
// <ControlWrapper.Select label="申请事项" placeholder="全部" allowClear style={{ width: "100%" }}>
|
||||||
<Select.Option value="add">新申请资质</Select.Option>
|
// <Select.Option value="add">新申请资质</Select.Option>
|
||||||
<Select.Option value="change">资质变更</Select.Option>
|
// <Select.Option value="change">资质变更</Select.Option>
|
||||||
</ControlWrapper.Select>
|
// </ControlWrapper.Select>
|
||||||
</Form.Item>,
|
// </Form.Item>,
|
||||||
<Form.Item key="reviewDateRange" name="reviewDateRange">
|
<Form.Item key="reviewDateRange" name="reviewDateRange">
|
||||||
<ControlWrapper.DatePicker.RangePicker label="审查日期" placeholder={["开始日期", "结束日期"]} />
|
<ControlWrapper.DatePicker.RangePicker label="审查日期" placeholder={["开始日期", "结束日期"]} />
|
||||||
</Form.Item>,
|
</Form.Item>,
|
||||||
|
|
@ -239,4 +239,4 @@ const SiteReviewNotice = (props) => {
|
||||||
export default Connect(
|
export default Connect(
|
||||||
[NS_QUAL_REVIEW],
|
[NS_QUAL_REVIEW],
|
||||||
true,
|
true,
|
||||||
)(AntdTableFuncControl(SiteReviewNotice));
|
)(AntdTableFuncControl(SiteReviewNotice));
|
||||||
|
|
|
||||||
|
|
@ -126,16 +126,10 @@ const FilingTabs = ({
|
||||||
[detail.personnelList],
|
[detail.personnelList],
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
|
||||||
* 管理人员判定:technicalDirectorFlag(技术负责人) 或 processControlLeaderFlag(过程控制负责人) 为 true;
|
|
||||||
* 法定代表人/负责人按岗位名兜底归入管理人员。
|
|
||||||
* 备案变更详情人员 CO(QualFilingPersonnelChangeInfoCO)暂未返回 flag 字段,靠岗位名兜底判断(待后端补充 flag)。
|
|
||||||
* 变更时间:2026-08-10(按后端人员标识字段拆分)
|
|
||||||
*/
|
|
||||||
const isManager = (item) =>
|
const isManager = (item) =>
|
||||||
item.technicalDirectorFlag === true ||
|
item.technicalDirectorFlag === true ||
|
||||||
item.processControlLeaderFlag === true ||
|
item.processControlLeaderFlag === true ;
|
||||||
/法定代表人|负责人/.test(item.positionName || "");
|
|
||||||
|
|
||||||
const managerRows = useMemo(() => {
|
const managerRows = useMemo(() => {
|
||||||
return personnelRows.filter(isManager);
|
return personnelRows.filter(isManager);
|
||||||
|
|
@ -203,12 +197,24 @@ const FilingTabs = ({
|
||||||
capList = [];
|
capList = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const codes =
|
// 优先使用 capabilityAssessment 对象(含行业信息)
|
||||||
r.professionalCapabilityCodeList ||
|
if (Array.isArray(capList) && capList.length) {
|
||||||
(Array.isArray(capList)
|
const labels = capList
|
||||||
? capList.map((c) => (typeof c === "string" ? c : c?.professionalCapabilityCode)).filter(Boolean)
|
.map((c) => {
|
||||||
: []) ||
|
if (typeof c === "string") {
|
||||||
[];
|
return CAPABILITY_MAP[c] || c;
|
||||||
|
}
|
||||||
|
const cap = CAPABILITY_MAP[c?.professionalCapabilityCode] || c?.professionalCapabilityCode;
|
||||||
|
if (!cap) return null;
|
||||||
|
const industry = c?.industryCode
|
||||||
|
? QUALIFICATION_INDUSTRY_OPTIONS_MAP[c.industryCode]
|
||||||
|
: null;
|
||||||
|
return industry ? `${industry}【${cap}】` : cap;
|
||||||
|
})
|
||||||
|
.filter(Boolean);
|
||||||
|
if (labels.length) return labels.join("、");
|
||||||
|
}
|
||||||
|
const codes = r.professionalCapabilityCodeList || [];
|
||||||
return codes.length
|
return codes.length
|
||||||
? codes.map((code) => CAPABILITY_MAP[code] || code).join("、")
|
? codes.map((code) => CAPABILITY_MAP[code] || code).join("、")
|
||||||
: "-";
|
: "-";
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ const SiteReviewNotice = (props) => {
|
||||||
<Row gutter={16}>
|
<Row gutter={16}>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Form.Item name="reviewLocation" label="审查地点" rules={[{ required: true, message: "请输入" }]}>
|
<Form.Item name="reviewLocation" label="审查地点" rules={[{ required: true, message: "请输入" }]}>
|
||||||
<Input placeholder="机构办公场所、档案室及设备存放场所" maxLength={200} />
|
<Input placeholder="机构办公场所、档案室及设备存放场所" maxLength={200} allowClear />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
{/* <Col span={12}>
|
{/* <Col span={12}>
|
||||||
|
|
@ -350,7 +350,7 @@ const SiteReviewNotice = (props) => {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Form.Item name="contactPhone" label="联系电话" rules={[{ pattern: /^(\d{3,4}-?\d{7,8}|\d{11})$/, message: "请输入正确的联系电话" }]}>
|
<Form.Item name="contactPhone" label="联系电话" rules={[{ pattern: /^(1[3-9]\d{9}|0\d{2,3}-?\d{7,8})$/, message: "请输入正确的联系电话(手机11位或座机号)" }]}>
|
||||||
<Input placeholder="请输入联系电话" maxLength={20} />
|
<Input placeholder="请输入联系电话" maxLength={20} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
@ -397,7 +397,7 @@ const SiteReviewNotice = (props) => {
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Form.Item name="reviewLeader" label="审查组长">
|
<Form.Item name="reviewLeader" label="审查组长">
|
||||||
<Input placeholder="请输入" />
|
<Input placeholder="请输入" allowClear maxLength={50} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
@ -409,7 +409,7 @@ const SiteReviewNotice = (props) => {
|
||||||
extra="支持上传审查记录、审查意见或现场审查结果文件,限定pdf和图片,最多10个。"
|
extra="支持上传审查记录、审查意见或现场审查结果文件,限定pdf和图片,最多10个。"
|
||||||
/>
|
/>
|
||||||
<Form.Item name="reviewOpinion" label="审查意见">
|
<Form.Item name="reviewOpinion" label="审查意见">
|
||||||
<Input.TextArea rows={4} placeholder="填写现场审查发现、整改要求和结论依据" />
|
<Input.TextArea rows={4} maxLength={200} allowClear placeholder="填写现场审查发现、整改要求和结论依据" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
|
||||||
|
|
@ -213,7 +213,7 @@ const EvalReportLibrary = (props) => {
|
||||||
uploadForm.setFieldsValue({
|
uploadForm.setFieldsValue({
|
||||||
reportYear: dayjs().year(),
|
reportYear: dayjs().year(),
|
||||||
evalTypeCode: "PRE",
|
evalTypeCode: "PRE",
|
||||||
|
|
||||||
secretLevelCode: "NORMAL",
|
secretLevelCode: "NORMAL",
|
||||||
issueDate: dayjs(),
|
issueDate: dayjs(),
|
||||||
submitToRegulator: 0,
|
submitToRegulator: 0,
|
||||||
|
|
@ -1103,7 +1103,6 @@ const EvalReportLibrary = (props) => {
|
||||||
<span>报告编号不得重复</span>
|
<span>报告编号不得重复</span>
|
||||||
<span>报告须完成签字盖章</span>
|
<span>报告须完成签字盖章</span>
|
||||||
<span>分类信息用于监管抽查检索</span>
|
<span>分类信息用于监管抽查检索</span>
|
||||||
<span>涉密内容须先完成脱密处理</span>
|
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,23 @@
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import { CAPABILITY_MAP } from "~/enumerate/constant";
|
import { CAPABILITY_MAP } from "~/enumerate/constant";
|
||||||
|
import { QUALIFICATION_INDUSTRY_OPTIONS_MAP } from "~/enumerate/enterpriseOptions";
|
||||||
|
|
||||||
/** 渲染专业能力列表,供表格 column render 使用 */
|
/** 渲染专业能力列表,供表格 column render 使用 */
|
||||||
export function renderCapabilityList(list) {
|
export function renderCapabilityList(list) {
|
||||||
if (!Array.isArray(list) || !list.length) return "-";
|
if (!Array.isArray(list) || !list.length) return "-";
|
||||||
return list
|
return (
|
||||||
.map((item) => CAPABILITY_MAP[item.professionalCapabilityCode])
|
list
|
||||||
.filter(Boolean)
|
.map((item) => {
|
||||||
.join("、") || "-";
|
const cap = CAPABILITY_MAP[item.professionalCapabilityCode];
|
||||||
|
if (!cap) return null;
|
||||||
|
const industry = item.industryCode
|
||||||
|
? QUALIFICATION_INDUSTRY_OPTIONS_MAP[item.industryCode]
|
||||||
|
: null;
|
||||||
|
return industry ? `${industry}【${cap}】` : cap;
|
||||||
|
})
|
||||||
|
.filter(Boolean)
|
||||||
|
.join("、") || "-"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue