dev-tmp1
tangjie 2026-08-14 13:42:30 +08:00
parent 5b82e5e26a
commit 8aa368af5a
5 changed files with 20 additions and 22 deletions

View File

@ -366,14 +366,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>
<Button loading={qualReviewSubmitLoading} onClick={handlePass} color="green" variant="solid" > {reviewResult !== 3 && (
通过 <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);