Merge remote-tracking branch 'origin/dev-tmp1' into dev-tmp1

dev-tmp1
luotaiqian 2026-08-14 14:40:54 +08:00
commit 18b090d488
6 changed files with 23 additions and 31 deletions

View File

@ -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
? "请点击提交后保存" ? "请点击提交后保存"
: "请点击暂存或提交后保存"; : "请点击暂存或提交后保存";

View File

@ -126,16 +126,10 @@ const FilingTabs = ({
[detail.personnelList], [detail.personnelList],
); );
/**
* 管理人员判定technicalDirectorFlag(技术负责人) processControlLeaderFlag(过程控制负责人) true
* 法定代表人/负责人按岗位名兜底归入管理人员
* 备案变更详情人员 COQualFilingPersonnelChangeInfoCO暂未返回 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);
@ -378,14 +372,11 @@ const FilingTabs = ({
<label style={labelStyle}>营业执照</label> <label style={labelStyle}>营业执照</label>
<div style={{ display: "flex", alignItems: "center", gap: "0.5rem" }}> <div style={{ display: "flex", alignItems: "center", gap: "0.5rem" }}>
{attachmentList.length ? ( {attachmentList.length ? (
<> attachmentList.map((file, i) => (
<PreviewUrlButton url={attachmentList[0].url} size="small"> <PreviewUrlButton key={i} url={file.url} size="small">
查看营业执照 {file.name || "营业执照.pdf"}
</PreviewUrlButton> </PreviewUrlButton>
<span style={{ color: "#8b95a5", fontSize: "0.75rem" }}> ))
{attachmentList[0].name || "营业执照.pdf"}
</span>
</>
) : ( ) : (
<span style={{ color: "#8b95a5", fontSize: "0.8rem" }}></span> <span style={{ color: "#8b95a5", fontSize: "0.8rem" }}></span>
)} )}

View File

@ -123,7 +123,7 @@ const QualReview = (props) => {
> >
查看 查看
</Button> </Button>
{Number(record.filingStatusCode) !== 1 && ( {Number(record.filingStatusCode) == 2 && (
<Button <Button
type="link" type="link"
size="small" size="small"

View File

@ -47,6 +47,7 @@ const ReviewModal = (props) => {
const { qualReviewSubmitLoading } = qualReview || {}; const { qualReviewSubmitLoading } = qualReview || {};
const [form] = Form.useForm(); const [form] = Form.useForm();
const reviewResult = Form.useWatch("reviewResult", form);
useEffect(() => { useEffect(() => {
if (open) { if (open) {
@ -116,9 +117,11 @@ const ReviewModal = (props) => {
footer={ footer={
<div style={{ display: "flex", justifyContent: "flex-end", gap: 8 }}> <div style={{ display: "flex", justifyContent: "flex-end", gap: 8 }}>
<Button onClick={onCancel}>取消</Button> <Button onClick={onCancel}>取消</Button>
{reviewResult !== 3 && (
<Button loading={qualReviewSubmitLoading} onClick={handlePass} color="green" variant="solid" > <Button loading={qualReviewSubmitLoading} onClick={handlePass} color="green" variant="solid" >
通过 通过
</Button> </Button>
)}
<Button <Button
loading={qualReviewSubmitLoading} loading={qualReviewSubmitLoading}
onClick={handleSubmit} onClick={handleSubmit}

View File

@ -96,23 +96,18 @@ const getFileExt = (name = "") => {
return parts.length > 1 ? parts.pop().toUpperCase() : "PDF"; return parts.length > 1 ? parts.pop().toUpperCase() : "PDF";
}; };
/** 解析 JSON 文件列表,渲染为可下载链接列表 */ /** 解析 JSON 文件列表,使用 PreviewUrlButton 渲染预览链接 */
const renderFileLinks = (jsonStr) => { const renderFileLinks = (jsonStr) => {
if (!jsonStr) return "-"; if (!jsonStr) return "-";
try { try {
const files = JSON.parse(jsonStr); const files = JSON.parse(jsonStr);
if (!Array.isArray(files) || files.length === 0) return "-"; if (!Array.isArray(files) || files.length === 0) return "-";
return files.map((f, i) => ( return files.map((f, i) => (
<div key={i} className="erl-file-cell" style={{ marginBottom: 4 }}> <div key={i} style={{ marginBottom: 4 }}>
<i>{getFileExt(f.name || f.url)}</i>
<a <PreviewUrlButton url={f.url} >
href={f.url} <a>{f.name || "未命名文件"}</a>
download={f.name} </PreviewUrlButton>
target="_blank"
rel="noopener noreferrer"
>
{f.name || "未命名文件"}
</a>
</div> </div>
)); ));
} catch { } catch {

View File

@ -89,6 +89,9 @@ function RegisteredOrgListPage(props) {
options={QUAL_FILING_STATUS_OPTIONS.filter((item) => item.value !== "")} options={QUAL_FILING_STATUS_OPTIONS.filter((item) => item.value !== "")}
/> />
</Form.Item>, </Form.Item>,
<Form.Item key="creditCode" name="creditCode">
<ControlWrapper.Input label="统一社会信用代码" allowClear placeholder="请输入" />
</Form.Item>,
]} ]}
onFinish={() => { onFinish={() => {
setPageIndex(1); setPageIndex(1);