From 994b24a8c39695f574c8dafbcf7dd825d2f33cce Mon Sep 17 00:00:00 2001
From: tangjie <122778500@qq.com>
Date: Mon, 13 Jul 2026 15:31:49 +0800
Subject: [PATCH] fix
---
.../PersonnelInfo/Certificate/index.js | 4 +-
.../PersonnelInfo/List/index.js | 1 +
.../EnterpriseInfo/QualificationCert/index.js | 10 +-
.../EnterpriseInfo/ResignationApply/index.js | 1 +
.../FilingForm/components/BasicInfoStep.jsx | 29 ++-
.../Supervision/BasicInfo/OrgAccount/index.js | 236 ++++++++++++++----
6 files changed, 219 insertions(+), 62 deletions(-)
diff --git a/src/pages/Container/EnterpriseInfo/PersonnelInfo/Certificate/index.js b/src/pages/Container/EnterpriseInfo/PersonnelInfo/Certificate/index.js
index c5270e3..1706c3b 100644
--- a/src/pages/Container/EnterpriseInfo/PersonnelInfo/Certificate/index.js
+++ b/src/pages/Container/EnterpriseInfo/PersonnelInfo/Certificate/index.js
@@ -375,7 +375,9 @@ function CertModal({
-
+
diff --git a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
index 41181db..ccf37d8 100644
--- a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
+++ b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
@@ -710,6 +710,7 @@ function StaffFormModal({
diff --git a/src/pages/Container/EnterpriseInfo/QualificationCert/index.js b/src/pages/Container/EnterpriseInfo/QualificationCert/index.js
index 5ac6725..d8fd629 100644
--- a/src/pages/Container/EnterpriseInfo/QualificationCert/index.js
+++ b/src/pages/Container/EnterpriseInfo/QualificationCert/index.js
@@ -369,21 +369,21 @@ function CertFormModal({
label="证书名称"
rules={[{ required: true, message: "请输入证书名称" }]}
>
-
+
-
+
-
+
-
+
-
+
);
diff --git a/src/pages/Container/EnterpriseInfo/ResignationApply/index.js b/src/pages/Container/EnterpriseInfo/ResignationApply/index.js
index d7be264..d3f3123 100644
--- a/src/pages/Container/EnterpriseInfo/ResignationApply/index.js
+++ b/src/pages/Container/EnterpriseInfo/ResignationApply/index.js
@@ -297,6 +297,7 @@ function AddModal({ open, staffOptions, requestAdd, onCancel, onSuccess }) {
diff --git a/src/pages/Container/QualApplication/FilingForm/components/BasicInfoStep.jsx b/src/pages/Container/QualApplication/FilingForm/components/BasicInfoStep.jsx
index 8a2fb8e..6ddac7e 100644
--- a/src/pages/Container/QualApplication/FilingForm/components/BasicInfoStep.jsx
+++ b/src/pages/Container/QualApplication/FilingForm/components/BasicInfoStep.jsx
@@ -81,13 +81,33 @@ export default function BasicInfoStep({ form, disabled }) {
-
-
+
+
-
-
+
+
@@ -169,6 +189,7 @@ export default function BasicInfoStep({ form, disabled }) {
name="attachmentUrl"
label="上传附件"
disabled={disabled}
+ extra={'最多上传12个PDF、DOC、DOCX格式文件'}
maxCount={12}
accept=".pdf,.doc,.docx"
/>
diff --git a/src/pages/Container/Supervision/BasicInfo/OrgAccount/index.js b/src/pages/Container/Supervision/BasicInfo/OrgAccount/index.js
index 072e70f..1b983fe 100644
--- a/src/pages/Container/Supervision/BasicInfo/OrgAccount/index.js
+++ b/src/pages/Container/Supervision/BasicInfo/OrgAccount/index.js
@@ -1,7 +1,21 @@
import {
- Button, DatePicker, Descriptions, Form, Input, InputNumber, message, Modal, Row, Col, Select, Space, Tag, Table,
+ Button,
+ DatePicker,
+ Descriptions,
+ Form,
+ Input,
+ InputNumber,
+ message,
+ Modal,
+ Row,
+ Col,
+ Select,
+ Space,
+ Tag,
+ Table,
} from "antd";
import TableAction from "@cqsjjb/jjb-react-admin-component/TableAction";
+import { tools } from "@cqsjjb/jjb-common-lib";
import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { useEffect, useState } from "react";
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
@@ -13,11 +27,13 @@ import {
CHONGQING_DISTRICTS,
ENTERPRISE_SCALE_OPTIONS,
ORG_ACCOUNT_STATE_OPTIONS,
- ENTERPRISE_STATUS_OPTIONS
+ ENTERPRISE_STATUS_OPTIONS,
} from "~/enumerate/enterpriseOptions";
import { NS_ORG_INFO } from "~/enumerate/namespace";
import { safeListRequest, safeRequest } from "~/utils";
+const { router } = tools;
+
function OrgAccountPage(props) {
const [searchForm] = Form.useForm();
const [editForm] = Form.useForm();
@@ -31,14 +47,23 @@ function OrgAccountPage(props) {
const [total, setTotal] = useState(0);
const [loading, setLoading] = useState(false);
+
+
const getData = async () => {
setLoading(true);
try {
const raw = searchForm.getFieldsValue();
const params = {
...raw,
- state: raw.state !== "" && raw.state !== undefined ? Number(raw.state) : undefined,
- ...(Array.isArray(raw.openTimeRange) && raw.openTimeRange[0] && raw.openTimeRange[1]
+ current: router.query.current || 1,
+ pageSize: router.query.pageSize || 10,
+ state:
+ raw.state !== "" && raw.state !== undefined
+ ? Number(raw.state)
+ : undefined,
+ ...(Array.isArray(raw.openTimeRange) &&
+ raw.openTimeRange[0] &&
+ raw.openTimeRange[1]
? {
createTimeStart: raw.openTimeRange[0].format("YYYY-MM-DD"),
createTimeEnd: raw.openTimeRange[1].format("YYYY-MM-DD"),
@@ -46,17 +71,19 @@ function OrgAccountPage(props) {
: {}),
};
delete params.openTimeRange;
- Object.keys(params).forEach((k) => { if (params[k] === undefined) delete params[k]; });
+ Object.keys(params).forEach((k) => {
+ if (params[k] === undefined) delete params[k];
+ });
const res = await safeListRequest(props.orgAccountList)(params);
setDataSource(res?.data || []);
- setTotal(res?.totalCount || 0);
+ setTotal(res?.total || 0);
} finally {
setLoading(false);
}
};
useEffect(() => {
- getData();
+ getData(1, 10);
}, []);
const loadDetail = async (id) => {
@@ -86,17 +113,21 @@ function OrgAccountPage(props) {
const enabled = isOrgAccountEnabled(record);
Modal.confirm({
title: "确认操作",
- content: enabled ? `确认禁用「${record.unitName}」账号?` : `确认启用「${record.unitName}」账号?`,
+ content: enabled
+ ? `确认禁用「${record.unitName}」账号?`
+ : `确认启用「${record.unitName}」账号?`,
okText: "确认",
cancelText: "取消",
onOk: async () => {
const nextState = enabled ? 1 : 0;
- const res = await props.orgAccountUpdateState({ id: record.id, state: nextState });
+ const res = await props.orgAccountUpdateState({
+ id: record.id,
+ state: nextState,
+ });
if (res?.success !== false) {
message.success("操作成功");
await getData();
}
-
},
});
};
@@ -112,7 +143,9 @@ function OrgAccountPage(props) {
{record.unitName}
的密码重置为初始密码?
- 初始密码:a123456
+
+ 初始密码:a123456
+
),
okText: "确认重置",
@@ -122,7 +155,6 @@ function OrgAccountPage(props) {
if (res?.success !== false) {
message.success("密码已重置");
}
-
},
});
};
@@ -137,7 +169,9 @@ function OrgAccountPage(props) {
{record.unitName}
的账号?
- 此操作不可恢复,请谨慎操作。
+
+ 此操作不可恢复,请谨慎操作。
+
),
okText: "确认删除",
@@ -149,7 +183,6 @@ function OrgAccountPage(props) {
message.success("删除成功");
await getData();
}
-
},
});
};
@@ -169,7 +202,6 @@ function OrgAccountPage(props) {
editForm.resetFields();
await getData();
}
-
};
const columns = [
@@ -191,11 +223,32 @@ function OrgAccountPage(props) {
fixed: "right",
render: (_, record) => (
-
-
-
-
-
@@ -208,9 +261,7 @@ function OrgAccountPage(props) {
title={
评价机构账号管理
-
- 监管端维护评价机构开户账号。
-
+
监管端维护评价机构开户账号。
}
>
@@ -220,31 +271,62 @@ function OrgAccountPage(props) {
loading={loading}
formLine={[
-
+
,
-
+
{CHONGQING_DISTRICTS.map((opt) => (
- {opt.label}
+
+ {opt.label}
+
))}
,
-
+
{ORG_ACCOUNT_STATE_OPTIONS.map((opt) => (
- {opt.label}
+
+ {opt.label}
+
))}
,
-
+
,
]}
- onReset={() => {
+ onReset={(values) => {
searchForm.resetFields();
+ router.query = {
+ ...values,
+ current: 1,
+ pageSize: 10,
+ };
getData();
}}
- onFinish={() => getData()}
+ onFinish={(values) => {
+ router.query = {
+ ...values,
+ current: 1,
+ pageSize: 10,
+ };
+ getData()
+ }}
/>
`共 ${t} 条`,
- current: 1,
- pageSize: 10,
+ current: router.query.current || 1,
+ pageSize: router.query.pageSize || 10,
onChange: (page, pageSize) => {
+ router.query = { ...router.query, current: page, pageSize };
getData();
},
}}
@@ -273,22 +356,49 @@ function OrgAccountPage(props) {
loading={detailLoading}
cancelText="关闭"
okButtonProps={{ style: { display: "none" } }}
- onCancel={() => { setViewOpen(false); setDetail(null); }}
+ onCancel={() => {
+ setViewOpen(false);
+ setDetail(null);
+ }}
>
{detail && (
- {detail.unitName}
- {detail.creditCode}
- {detail.districtName}
- {detail.safetyIndustryCategoryName}
- {detail.businessAddress}
- {detail.enterpriseStatusName}
- {detail.longitude}, {detail.latitude}
- {detail.principalName}
- {detail.principalPhone}
- {detail.legalRepresentative}
- {detail.legalRepresentativePhone}
- {detail.enterpriseScaleName}
+
+ {detail.unitName}
+
+
+ {detail.creditCode}
+
+
+ {detail.districtName}
+
+
+ {detail.safetyIndustryCategoryName}
+
+
+ {detail.businessAddress}
+
+
+ {detail.enterpriseStatusName}
+
+
+ {detail.longitude}, {detail.latitude}
+
+
+ {detail.principalName}
+
+
+ {detail.principalPhone}
+
+
+ {detail.legalRepresentative}
+
+
+ {detail.legalRepresentativePhone}
+
+
+ {detail.enterpriseScaleName}
+
)}
@@ -311,22 +421,36 @@ function OrgAccountPage(props) {