From 7049687456885189fc9d99d70e8e1d876ac1a570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=99=AF=E5=AD=A6?= <5412262+sun_jing_xue@user.noreply.gitee.com> Date: Thu, 10 Jul 2025 15:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=88=97=E8=A1=A8=E4=B8=8E?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/proxy.ts | 1 + src/baseStyle.less | 112 ++++- src/pages/login/login.tsx | 1 + .../admission/SupplierCategoryEntry/index.tsx | 128 +++--- .../SupplierCategoryEntryReview/index.tsx | 125 +++--- .../admission/SupplierEntryReview/index.tsx | 103 ++--- .../admission/admissionManagement/index.tsx | 121 +++--- .../admissionReviewManagement/index.tsx | 152 ++++--- .../backend/changeProgressInquiry/index.tsx | 122 +++--- .../backend/cooperateEnterprise/index.tsx | 83 ++-- .../supplier/backend/supplierNews/index.tsx | 87 ++-- .../category/CategoryLibraryManage/index.tsx | 98 ++--- .../category/CategoryLibraryReview/index.tsx | 127 +++--- .../category/CategoryManage/index.tsx | 4 +- .../category/SupplierEntryManage/index.tsx | 90 ++-- .../category/SupplierEntryReview/index.tsx | 133 +++--- .../SupplierChangeReviewManage/index.tsx | 106 +++-- .../SupplierRegisterAgent/index.tsx | 98 ++--- .../groupQualifiedSupplierQuery/index.tsx | 147 ++++--- .../groupQualifiedSupplierQuery/services.ts | 44 -- .../mySupplierInquiry/index.tsx | 119 +++--- .../personQualifiedSupplierQuery/index.tsx | 151 +++---- .../registrationQuery/_mock.ts | 392 ------------------ .../registrationQuery/index.tsx | 125 +++--- .../registrationQuery/services.ts | 11 - .../blacklistAudit/index.tsx | 89 ++-- .../blacklistManage/index.tsx | 102 ++--- .../supplierExit/supplierExitAudit/index.tsx | 90 ++-- .../supplierExit/supplierExitManage/index.tsx | 98 +++-- src/pages/supplier/supplierMessage/index.tsx | 69 +-- src/utils/componentStyle.less | 2 +- src/utils/request.ts | 6 +- src/utils/tableProps.tsx | 36 ++ 33 files changed, 1525 insertions(+), 1647 deletions(-) delete mode 100644 src/pages/supplier/informationRetrieval/registrationQuery/_mock.ts create mode 100644 src/utils/tableProps.tsx diff --git a/config/proxy.ts b/config/proxy.ts index 20a8009..b2818a1 100644 --- a/config/proxy.ts +++ b/config/proxy.ts @@ -5,6 +5,7 @@ export default { // target: 'http://10.0.0.10:18012',// 茂 target: 'http://10.0.0.125:18012',// 测试 // target: 'http://10.0.0.14:18012',// 李 + // target: 'http://10.0.0.14:18030',// 李 // target: 'http://10.0.0.46:18030',// 袁 changeOrigin: true, pathRewrite: { '^/api': '' }, diff --git a/src/baseStyle.less b/src/baseStyle.less index e6bf7f9..23a7045 100644 --- a/src/baseStyle.less +++ b/src/baseStyle.less @@ -5,6 +5,13 @@ @main-text-color-2: #666; @main-danger-color: rgb(214, 0, 14); +//表单 重置 搜搜与其他 +@form-submit-color: #004f8e; +@form-reset-color: #d7000f; +@form-other-color: #fff; +@form-color: #fff; + + @layout-background: #666; @layout-header-background: #666; @menu-list-bg: #666; @@ -88,8 +95,111 @@ } } } -} + //重置 + .buttonReset { + background-color: @form-reset-color; + border: 1px solid @form-reset-color; + border-radius: 4px; + color: @form-color; + } + //搜索 + .buttonSubmit { + background-color: @form-submit-color; + border: 1px solid @form-submit-color; + border-radius: 4px; + color: @form-color; + } + //其它按钮 + .buttonOther { + background-color: @form-other-color; + border: 1px solid #999; + border-radius: 4px; + color: #333; + } + //功能按钮 + .buttonFunctionBlock { + background-color: @form-other-color; + border: 1px solid @form-submit-color; + border-radius: 4px; + color: @form-submit-color; + } +} +.common-container.on { + background: none; + padding: 0; + //左侧树 + .treeBlock { + position: relative; + width: 280px; + background: #fff; + height: calc(100vh - 240px); + transition: width 0.3s; + + &.collapsed { + width: 0; + min-width: 0; + overflow: visible; + .dataTree { display: none; } + .shrinkBlock { + right: -30px; + top: 50%; + margin-top: -20px; + .btn { + margin: 0; + } + } + } + + .dataTree { + width: 280px; + height: 100%; + padding: 20px 10px; + overflow-x: auto; + overflow-y: auto; + box-sizing: border-box; + white-space: nowrap; + } + + .shrinkBlock { + position: absolute; + top: 50%; + right: -30px; + width: 30px; + height: 100px; + margin-top: -50px; + z-index: 100; + + .btn { + width: 30px; + background-color: @form-submit-color; + border: 1px solid @form-submit-color; + border-radius: 4px; + color: @form-color; + text-align: center; + padding: 2px 0; + font-size: 14px; + cursor: pointer; + } + } + + .expandOnly { + top: 50%; + right: -30px; + height: auto; + margin-top: -50px; + } + } + + .rightMain { + transition: width 0.3s; + width: calc(100% - 310px); + height: calc(100vh - 240px); + background-color: #fff; + padding: 0 24px; + } + +} // .ant-layout-header { diff --git a/src/pages/login/login.tsx b/src/pages/login/login.tsx index 2978070..735fe8b 100644 --- a/src/pages/login/login.tsx +++ b/src/pages/login/login.tsx @@ -35,6 +35,7 @@ const LoginPage: React.FC = () => { if (loginRes.code === 200) { sessionStorage.setItem('token', loginRes.data.token); sessionStorage.setItem('currentUser', JSON.stringify(loginRes.data)); + sessionStorage.setItem('userId', loginRes.data.supplierUser.userId); message.success('登录成功'); history.push('/index'); } else { diff --git a/src/pages/supplier/admission/SupplierCategoryEntry/index.tsx b/src/pages/supplier/admission/SupplierCategoryEntry/index.tsx index a79c405..a73c0b0 100644 --- a/src/pages/supplier/admission/SupplierCategoryEntry/index.tsx +++ b/src/pages/supplier/admission/SupplierCategoryEntry/index.tsx @@ -1,14 +1,16 @@ import React, { useState, useEffect } from 'react'; import { Form, Select, Button, Table, Space, Modal, message } from 'antd'; +import { SearchOutlined, DeleteOutlined } from '@ant-design/icons'; import type { ColumnsType, TablePaginationConfig } from 'antd/es/table'; //查看弹窗 import ViewModal from './components/ViewModal'; //发起准入 弹窗 import CreateModal from './components/CreateModal'; import CategorySelector from '@/components/CategorySelector'; - +//接口 import { getPage, startApprove } from './services' - +//统一列表分页 +import tableProps from '@/utils/tableProps' const { Option } = Select; interface Data { @@ -58,6 +60,13 @@ const SupplierCategoryEntry: React.FC = () => { const values = form.getFieldsValue(); getList(values, 1, 10); }; + // 重置 + const handleReset = () => { + form.resetFields() + const values = form.getFieldsValue(); + getList(values, 1, 10); + }; + const handleApproval = (accessWorkId: string) => { Modal.confirm({ title: '是否确认发起审批?', @@ -76,14 +85,15 @@ const SupplierCategoryEntry: React.FC = () => { { title: '序号', dataIndex: 'index', - render: (_: any, __: any, index: number) => index + 1, + width: 60, + render: (_: any, __: any, idx: number) => (((pagination.current ?? 1) - 1) * (pagination.pageSize ?? 10)) + idx + 1, }, - { title: '准入工作', dataIndex: 'accessWorkName' }, - { title: '准入单位', dataIndex: 'deptId' }, - { title: '准入部门', dataIndex: 'deptId' }, - { title: '准入方式', dataIndex: 'accessTypeText' }, - { title: '申请时间', dataIndex: 'createTime' }, - { title: '状态', dataIndex: 'approveStatusText' }, + { title: '准入工作', ellipsis: true, dataIndex: 'accessWorkName' }, + { title: '准入单位', ellipsis: true, dataIndex: 'deptId' }, + { title: '准入部门', ellipsis: true, dataIndex: 'deptId' }, + { title: '准入方式', ellipsis: true, dataIndex: 'accessTypeText' }, + { title: '申请时间', dataIndex: 'createTime', width: 180 }, + { title: '状态', ellipsis: true, dataIndex: 'approveStatusText' }, { title: '操作', width: 140, @@ -102,54 +112,62 @@ const SupplierCategoryEntry: React.FC = () => { return ( <> -