fix
parent
5b82e5e26a
commit
8aa368af5a
|
|
@ -366,14 +366,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>
|
||||
<Button loading={qualReviewSubmitLoading} onClick={handlePass} color="green" variant="solid" >
|
||||
通过
|
||||
</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