审批记录下统一社会信用代码/税号

This commit is contained in:
孙景学
2025-07-18 14:12:02 +08:00
parent 505562892f
commit 34e91ac28c
3 changed files with 7 additions and 11 deletions

View File

@ -1,12 +1,11 @@
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Form, Input, Button, Checkbox, Tabs, message } from 'antd'; import { Form, Input, Button, Checkbox, Tabs, message } from 'antd';
import { UserOutlined, LockOutlined, EyeInvisibleOutlined, EyeTwoTone, HomeOutlined } from '@ant-design/icons'; import { UserOutlined, LockOutlined, EyeInvisibleOutlined, EyeTwoTone } from '@ant-design/icons';
import { history, useIntl } from 'umi'; import { history, useIntl } from 'umi';
import './login.less'; import './login.less';
import { getCaptcha, supplierLogin, expertLogin, accountLogin, getUserinfo, findMenuList, queryUserOrgAll } from '@/servers/api/login'; import { getCaptcha, supplierLogin, expertLogin, accountLogin, getUserinfo } from '@/servers/api/login';
import { encryptWithRsa } from '@/utils/encryptWithRsa' import { encryptWithRsa } from '@/utils/encryptWithRsa'
import Password from 'antd/lib/input/Password';
const { TabPane } = Tabs; const { TabPane } = Tabs;
@ -15,7 +14,7 @@ const LoginPage: React.FC = () => {
const [form] = Form.useForm(); const [form] = Form.useForm();
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [captchaImg, setCaptchaImg] = useState<string>(''); const [captchaImg, setCaptchaImg] = useState<string>('');
const [captchaKey, setCaptchaKey] = useState<string>(''); // const [captchaKey, setCaptchaKey] = useState<string>('');
//切换后 走不同接口 //切换后 走不同接口
const loginApiMap: { [key: string]: (params: any) => Promise<any> } = { const loginApiMap: { [key: string]: (params: any) => Promise<any> } = {
supplierLogin, supplierLogin,
@ -111,7 +110,7 @@ const LoginPage: React.FC = () => {
const res = await getCaptcha(); const res = await getCaptcha();
if (res.code === 200) { if (res.code === 200) {
setCaptchaImg(res.data.base64Image); setCaptchaImg(res.data.base64Image);
setCaptchaKey(res.data.code); // setCaptchaKey(res.data.code);
} }
}; };

View File

@ -273,7 +273,7 @@ const CreateModal: React.FC<{ visible: boolean; onCancel: () => void; }> = ({ vi
name="deptId" name="deptId"
rules={[{ required: true, message: '请选择准入部门' }]} rules={[{ required: true, message: '请选择准入部门' }]}
> >
<AccessDepartmentSelect /> <AccessDepartmentSelect style={{width: '100%'}} />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
@ -399,9 +399,6 @@ const CreateModal: React.FC<{ visible: boolean; onCancel: () => void; }> = ({ vi
rules={[ rules={[
{ {
required: true, required: true,
message: '请设置评审分工',
},
{
validator: (_, value) => { validator: (_, value) => {
if (!value || !Array.isArray(value) || value.length === 0) { if (!value || !Array.isArray(value) || value.length === 0) {
return Promise.reject(new Error('请设置评审分工')); return Promise.reject(new Error('请设置评审分工'));

View File

@ -99,7 +99,7 @@ const ViewModal: React.FC<{
) )
} }
}, },
{ title: '企业类型', dataIndex: '', align: 'center' }, { title: '统一社会信用代码/税号', dataIndex: 'unifiedSocialCreditCode', align: 'center' },
] ]
return ( return (
<Modal <Modal