Merge remote-tracking branch 'origin/dev-tmp1' into dev-tmp1
commit
18b090d488
|
|
@ -49,7 +49,7 @@ function FilingFormPage(props) {
|
|||
const readOnly = query.readOnly;
|
||||
|
||||
const saveActionHint =
|
||||
mode === FILING_FORM_MODE.FILED
|
||||
mode === FILING_FORM_MODE.CHANGE
|
||||
? "请点击提交后保存"
|
||||
: "请点击暂存或提交后保存";
|
||||
|
||||
|
|
|
|||
|
|
@ -126,16 +126,10 @@ const FilingTabs = ({
|
|||
[detail.personnelList],
|
||||
);
|
||||
|
||||
/**
|
||||
* 管理人员判定:technicalDirectorFlag(技术负责人) 或 processControlLeaderFlag(过程控制负责人) 为 true;
|
||||
* 法定代表人/负责人按岗位名兜底归入管理人员。
|
||||
* 备案变更详情人员 CO(QualFilingPersonnelChangeInfoCO)暂未返回 flag 字段,靠岗位名兜底判断(待后端补充 flag)。
|
||||
* 变更时间:2026-08-10(按后端人员标识字段拆分)
|
||||
*/
|
||||
|
||||
const isManager = (item) =>
|
||||
item.technicalDirectorFlag === true ||
|
||||
item.processControlLeaderFlag === true ||
|
||||
/法定代表人|负责人/.test(item.positionName || "");
|
||||
item.processControlLeaderFlag === true ;
|
||||
|
||||
const managerRows = useMemo(() => {
|
||||
return personnelRows.filter(isManager);
|
||||
|
|
@ -378,14 +372,11 @@ const FilingTabs = ({
|
|||
<label style={labelStyle}>营业执照</label>
|
||||
<div style={{ display: "flex", alignItems: "center", gap: "0.5rem" }}>
|
||||
{attachmentList.length ? (
|
||||
<>
|
||||
<PreviewUrlButton url={attachmentList[0].url} size="small">
|
||||
查看营业执照
|
||||
attachmentList.map((file, i) => (
|
||||
<PreviewUrlButton key={i} url={file.url} size="small">
|
||||
{file.name || "营业执照.pdf"}
|
||||
</PreviewUrlButton>
|
||||
<span style={{ color: "#8b95a5", fontSize: "0.75rem" }}>
|
||||
{attachmentList[0].name || "营业执照.pdf"}
|
||||
</span>
|
||||
</>
|
||||
))
|
||||
) : (
|
||||
<span style={{ color: "#8b95a5", fontSize: "0.8rem" }}>—</span>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ const QualReview = (props) => {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
{Number(record.filingStatusCode) !== 1 && (
|
||||
{Number(record.filingStatusCode) == 2 && (
|
||||
<Button
|
||||
type="link"
|
||||
size="small"
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ const ReviewModal = (props) => {
|
|||
const { qualReviewSubmitLoading } = qualReview || {};
|
||||
|
||||
const [form] = Form.useForm();
|
||||
const reviewResult = Form.useWatch("reviewResult", form);
|
||||
|
||||
useEffect(() => {
|
||||
if (open) {
|
||||
|
|
@ -116,9 +117,11 @@ const ReviewModal = (props) => {
|
|||
footer={
|
||||
<div style={{ display: "flex", justifyContent: "flex-end", gap: 8 }}>
|
||||
<Button onClick={onCancel}>取消</Button>
|
||||
{reviewResult !== 3 && (
|
||||
<Button loading={qualReviewSubmitLoading} onClick={handlePass} color="green" variant="solid" >
|
||||
通过
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
loading={qualReviewSubmitLoading}
|
||||
onClick={handleSubmit}
|
||||
|
|
|
|||
|
|
@ -96,23 +96,18 @@ const getFileExt = (name = "") => {
|
|||
return parts.length > 1 ? parts.pop().toUpperCase() : "PDF";
|
||||
};
|
||||
|
||||
/** 解析 JSON 文件列表,渲染为可下载链接列表 */
|
||||
/** 解析 JSON 文件列表,使用 PreviewUrlButton 渲染预览链接 */
|
||||
const renderFileLinks = (jsonStr) => {
|
||||
if (!jsonStr) return "-";
|
||||
try {
|
||||
const files = JSON.parse(jsonStr);
|
||||
if (!Array.isArray(files) || files.length === 0) return "-";
|
||||
return files.map((f, i) => (
|
||||
<div key={i} className="erl-file-cell" style={{ marginBottom: 4 }}>
|
||||
<i>{getFileExt(f.name || f.url)}</i>
|
||||
<a
|
||||
href={f.url}
|
||||
download={f.name}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{f.name || "未命名文件"}
|
||||
</a>
|
||||
<div key={i} style={{ marginBottom: 4 }}>
|
||||
|
||||
<PreviewUrlButton url={f.url} >
|
||||
<a>{f.name || "未命名文件"}</a>
|
||||
</PreviewUrlButton>
|
||||
</div>
|
||||
));
|
||||
} catch {
|
||||
|
|
|
|||
|
|
@ -89,6 +89,9 @@ function RegisteredOrgListPage(props) {
|
|||
options={QUAL_FILING_STATUS_OPTIONS.filter((item) => item.value !== "")}
|
||||
/>
|
||||
</Form.Item>,
|
||||
<Form.Item key="creditCode" name="creditCode">
|
||||
<ControlWrapper.Input label="统一社会信用代码" allowClear placeholder="请输入" />
|
||||
</Form.Item>,
|
||||
]}
|
||||
onFinish={() => {
|
||||
setPageIndex(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue