feat
parent
3460e81ea4
commit
1c55fce948
|
|
@ -10,7 +10,7 @@ module.exports = {
|
||||||
javaGitBranch: "dev",
|
javaGitBranch: "dev",
|
||||||
// 本地联调 safetyEval-service(context-path: /safetyEval,默认端口 8095)
|
// 本地联调 safetyEval-service(context-path: /safetyEval,默认端口 8095)
|
||||||
// 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095
|
// 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095
|
||||||
API_HOST: "http://192.168.0.149",
|
API_HOST: "http://192.168.0.152",
|
||||||
},
|
},
|
||||||
production: {
|
production: {
|
||||||
// 应用后端分支名称,部署上线需要
|
// 应用后端分支名称,部署上线需要
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ export default function StaffViewModal({
|
||||||
onCancel={onCancel}
|
onCancel={onCancel}
|
||||||
>
|
>
|
||||||
<Descriptions bordered column={2} labelStyle={{ width: 120 }}>
|
<Descriptions bordered column={2} labelStyle={{ width: 120 }}>
|
||||||
<Descriptions.Item label="姓名">{ info.titleName}</Descriptions.Item>
|
<Descriptions.Item label="姓名">{info.titleName}</Descriptions.Item>
|
||||||
<Descriptions.Item label="性别">
|
<Descriptions.Item label="性别">
|
||||||
{GENDER_MAP[info.genderCode]}
|
{GENDER_MAP[info.genderCode]}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
|
|
@ -183,17 +183,23 @@ export default function StaffViewModal({
|
||||||
<Descriptions.Item label="申报专业能力证明材料" span={2}>
|
<Descriptions.Item label="申报专业能力证明材料" span={2}>
|
||||||
{proofMaterialUrl.length
|
{proofMaterialUrl.length
|
||||||
? proofMaterialUrl.map((item) => {
|
? proofMaterialUrl.map((item) => {
|
||||||
const isImage = /\.(jpg|jpeg|png|gif|webp|bmp|svg)(\?.*)?$/i.test(item.url);
|
const isImage =
|
||||||
|
/\.(jpg|jpeg|png|gif|webp|bmp|svg)(\?.*)?$/i.test(item.url);
|
||||||
return (
|
return (
|
||||||
<div key={item.id}>
|
<div key={item.id}>
|
||||||
{isImage ? (
|
{isImage ? (
|
||||||
<Image
|
<Image
|
||||||
src={item.url}
|
src={item.url}
|
||||||
style={{ maxWidth: 200, cursor: "pointer" }}
|
style={{ maxWidth: 200, cursor: "pointer" }}
|
||||||
preview={{ mask: item.fileName || item.name || "预览" }}
|
preview={{
|
||||||
|
mask: item.fileName || item.name || "预览",
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Button type="link" onClick={() => window.open(item.url)}>
|
<Button
|
||||||
|
type="link"
|
||||||
|
onClick={() => window.open(item.url)}
|
||||||
|
>
|
||||||
{item.fileName || item.name || item.url}
|
{item.fileName || item.name || item.url}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
@ -284,7 +290,7 @@ export default function StaffViewModal({
|
||||||
{certPreviewInfo.certNo}
|
{certPreviewInfo.certNo}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label="证书类别">
|
<Descriptions.Item label="证书类别">
|
||||||
{certPreviewInfo.certCategory || "-"}
|
{certPreviewInfo.certTypeName || "-"}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label="发证机关">
|
<Descriptions.Item label="发证机关">
|
||||||
{certPreviewInfo.issueOrg || "-"}
|
{certPreviewInfo.issueOrg || "-"}
|
||||||
|
|
@ -295,11 +301,17 @@ export default function StaffViewModal({
|
||||||
<Descriptions.Item label="有效结束日期">
|
<Descriptions.Item label="有效结束日期">
|
||||||
{certPreviewInfo.validEndDate || "-"}
|
{certPreviewInfo.validEndDate || "-"}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="查看证书">
|
||||||
|
{certPreviewInfo.certAttachmentUrl &&
|
||||||
|
certPreviewInfo.certAttachmentUrl.split(",").map((item) => (
|
||||||
|
<div>
|
||||||
|
<a key={item} onClick={() => window.open(item)}>
|
||||||
|
{item}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
<FilePreviewContent
|
|
||||||
url={certPreviewUrl}
|
|
||||||
fileName={certPreviewName}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
@ -32,7 +32,7 @@ import {
|
||||||
import { getBirthDateFromIdCard } from "~/utils";
|
import { getBirthDateFromIdCard } from "~/utils";
|
||||||
import { idCardRule, mobileRule } from "~/utils/validators";
|
import { idCardRule, mobileRule } from "~/utils/validators";
|
||||||
import AttachmentUpload from "~/components/AttachmentUpload";
|
import AttachmentUpload from "~/components/AttachmentUpload";
|
||||||
import StaffViewModal from "../StaffViewModal";
|
import StaffViewModal from "~/components/StaffViewModal";
|
||||||
|
|
||||||
const { router } = tools;
|
const { router } = tools;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Form, Input, Modal, Table } from "antd";
|
import { Button, Form, Input, Modal, Table } from "antd";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { NS_STAFF_INFO } from "~/enumerate/namespace";
|
import { NS_STAFF_INFO } from "~/enumerate/namespace";
|
||||||
import StaffViewModal from "~/pages/Container/EnterpriseInfo/PersonnelInfo/StaffViewModal";
|
import StaffViewModal from "~/components/StaffViewModal";
|
||||||
|
|
||||||
function OrgPersonnelSelectModalInner(props) {
|
function OrgPersonnelSelectModalInner(props) {
|
||||||
const { open, onCancel, onConfirm, existingIds = [] } = props;
|
const { open, onCancel, onConfirm, existingIds = [] } = props;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Button, Modal, Space, Table } from "antd";
|
import { Button, Modal, Space, Table } from "antd";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import StaffViewModal from "~/pages/Container/EnterpriseInfo/PersonnelInfo/StaffViewModal";
|
import StaffViewModal from "~/components/StaffViewModal";
|
||||||
|
|
||||||
import OrgPersonnelSelectModal from "./OrgPersonnelSelectModal";
|
import OrgPersonnelSelectModal from "./OrgPersonnelSelectModal";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
|
||||||
import { Button, Descriptions, Table, Tag, Tabs, Select, Modal, Space, Image } from "antd";
|
import { Button, Descriptions, Table, Tag, Tabs, Select, Modal, Space, Image } from "antd";
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
||||||
import StaffViewModal from "~/pages/Container/EnterpriseInfo/PersonnelInfo/StaffViewModal";
|
import StaffViewModal from "~/components/StaffViewModal";
|
||||||
import PreviewUrlButton from "~/components/PreviewUrlButton/index";
|
import PreviewUrlButton from "~/components/PreviewUrlButton/index";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import {
|
||||||
fetchRegisteredOrgQualificationGroups,
|
fetchRegisteredOrgQualificationGroups,
|
||||||
} from "~/utils/regulatorOrgInfo";
|
} from "~/utils/regulatorOrgInfo";
|
||||||
import { buildOrgInfoFormOptions } from "../../../../EnterpriseInfo/OrgInfo/formOptions";
|
import { buildOrgInfoFormOptions } from "../../../../EnterpriseInfo/OrgInfo/formOptions";
|
||||||
import StaffViewModal from "../../../../EnterpriseInfo/PersonnelInfo/StaffViewModal";
|
import StaffViewModal from "~/components/StaffViewModal";
|
||||||
|
|
||||||
const LIST_PATH = "/container/supervision/basicInfo/registeredOrg/list";
|
const LIST_PATH = "/container/supervision/basicInfo/registeredOrg/list";
|
||||||
const ORG_INFO_FORM_OPTIONS = buildOrgInfoFormOptions();
|
const ORG_INFO_FORM_OPTIONS = buildOrgInfoFormOptions();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue