From 4e42fc250aa2ea6e9e74d63a0dffb075004a83bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwangzihua=E2=80=9D?= Date: Wed, 7 Jan 2026 23:18:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=88=90=E6=9C=AC=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=92=8C=E6=97=A0=E5=A4=84=E7=BD=9A=E5=BC=80=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.localhost | 2 +- .env.pre | 4 +- .env.production | 2 +- .env.test | 2 +- src/api/business/cost/firm-reports-api.js | 48 +++ src/api/support/file-api.js | 2 +- src/config/app-config.js | 2 +- src/constants/business/erp/cost-const.js | 59 +++ src/layout/components/side-menu/index.vue | 11 +- src/layout/components/smart-footer/index.vue | 2 +- src/layout/components/top-menu/index.vue | 6 - src/theme/custom-variables.js | 4 +- .../business/erp/cost/firm-reports-form.vue | 255 +++++++++++ .../business/erp/cost/firm-reports-list.vue | 403 ++++++++++++++++++ .../erp/service/service-applications-form.vue | 4 + .../account/components/center/index.vue | 5 - .../components/employee-form-modal/index.vue | 3 - .../components/employee-list/index.vue | 6 - .../home/components/agreement-modal.vue | 198 +++++++++ src/views/system/home/home-header.vue | 6 - src/views/system/home/home-notice.vue | 8 +- src/views/system/home/index.vue | 23 +- src/views/system/login3/login.vue | 2 +- src/views/system/position/position-form.vue | 7 +- .../role/components/role-data-scope/index.vue | 8 +- vite.config.js | 8 +- 27 files changed, 1002 insertions(+), 80 deletions(-) create mode 100644 src/api/business/cost/firm-reports-api.js create mode 100644 src/constants/business/erp/cost-const.js create mode 100644 src/views/business/erp/cost/firm-reports-form.vue create mode 100644 src/views/business/erp/cost/firm-reports-list.vue create mode 100644 src/views/system/home/components/agreement-modal.vue diff --git a/.env.development b/.env.development index 50dbfb1..4230004 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ NODE_ENV=development -VITE_APP_TITLE='律师公益法律服务活动申报与管理平台' +VITE_APP_TITLE='律师公益法律服务活动申报子系统' VITE_APP_API_URL='/api' \ No newline at end of file diff --git a/.env.localhost b/.env.localhost index 1fca54b..2baa3db 100644 --- a/.env.localhost +++ b/.env.localhost @@ -1,3 +1,3 @@ NODE_ENV=development -VITE_APP_TITLE='律师公益法律服务活动申报与管理平台' +VITE_APP_TITLE='律师公益法律服务活动申报子系统' VITE_APP_API_URL='/api' diff --git a/.env.pre b/.env.pre index a478a5e..6d3c6ad 100644 --- a/.env.pre +++ b/.env.pre @@ -1,3 +1,3 @@ NODE_ENV=production -VITE_APP_TITLE='律师公益法律服务活动申报与管理平台' -VITE_APP_API_URL='https://preview.smartadmin.vip/smart-admin-api' \ No newline at end of file +VITE_APP_TITLE='律师公益法律服务活动申报子系统' +VITE_APP_API_URL='/api' \ No newline at end of file diff --git a/.env.production b/.env.production index a0d1ae6..6d3c6ad 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ NODE_ENV=production -VITE_APP_TITLE='律师公益法律服务活动申报与管理平台' +VITE_APP_TITLE='律师公益法律服务活动申报子系统' VITE_APP_API_URL='/api' \ No newline at end of file diff --git a/.env.test b/.env.test index 1b8a4a8..68741ba 100644 --- a/.env.test +++ b/.env.test @@ -1,3 +1,3 @@ NODE_ENV=production -VITE_APP_TITLE='律师公益法律服务活动申报与管理平台' +VITE_APP_TITLE='律师公益法律服务活动申报子系统' VITE_APP_API_URL='/api' diff --git a/src/api/business/cost/firm-reports-api.js b/src/api/business/cost/firm-reports-api.js new file mode 100644 index 0000000..23171fa --- /dev/null +++ b/src/api/business/cost/firm-reports-api.js @@ -0,0 +1,48 @@ +/** + * 律师事务所年度经营报表 api 封装 + * + * @Author: wzh + * @Date: 2026-01-07 15:57:43 + * @Copyright 1.0 + */ +import { postRequest, getRequest } from '/@/lib/axios'; + +export const firmReportsApi = { + + /** + * 分页查询 @author wzh + */ + queryPage : (param) => { + return postRequest('/firmReports/queryPage', param); + }, + + /** + * 增加 @author wzh + */ + add: (param) => { + return postRequest('/firmReports/add', param); + }, + + /** + * 修改 @author wzh + */ + update: (param) => { + return postRequest('/firmReports/update', param); + }, + + + /** + * 删除 @author wzh + */ + delete: (id) => { + return getRequest(`/firmReports/delete/${id}`); + }, + + /** + * 批量删除 @author wzh + */ + batchDelete: (idList) => { + return postRequest('/firmReports/batchDelete', idList); + }, + +}; diff --git a/src/api/support/file-api.js b/src/api/support/file-api.js index 8f93153..4ee8e17 100644 --- a/src/api/support/file-api.js +++ b/src/api/support/file-api.js @@ -40,6 +40,6 @@ export const fileApi = { * 根据文件ID列表获取文件信息 @author 系统 */ getFileList: (fileIds) => { - return postRequest('/support/file/getFileList', { fileIds }); + return getRequest('/support/file/getFileList', { fileIds }); }, }; diff --git a/src/config/app-config.js b/src/config/app-config.js index 1c3c903..99e8b08 100644 --- a/src/config/app-config.js +++ b/src/config/app-config.js @@ -37,7 +37,7 @@ export const appDefaultConfig = { // 水印 watermarkFlag: true, // 网站名称 - websiteName: '律师公益服务平台', + websiteName: '律师公益法律服务活动申报子系统', // 主题颜色 primaryColor: '#1677ff', // 紧凑 diff --git a/src/constants/business/erp/cost-const.js b/src/constants/business/erp/cost-const.js new file mode 100644 index 0000000..5c60228 --- /dev/null +++ b/src/constants/business/erp/cost-const.js @@ -0,0 +1,59 @@ +/* + * 成本管理常量 + */ + +// 季度枚举 +export const QUARTER_ENUM = { + Q1: { + value: 'Q1', + desc: '第一季度', + }, + Q2: { + value: 'Q2', + desc: '第二季度', + }, + Q3: { + value: 'Q3', + desc: '第三季度', + }, + Q4: { + value: 'Q4', + desc: '第四季度', + }, +}; + +// 审核状态枚举 +export const REVIEW_STATUS_ENUM = { + DRAFT: { + value: 0, + desc: '待提交', + }, + SUBMITTED: { + value: 1, + desc: '待审批', + }, + APPROVED: { + value: 2, + desc: '审批中', + }, + REJECTED: { + value: 3, + desc: '已通过', + }, + REFUSE: { + value: 4, + desc: '拒绝', + }, +}; + +// 成本类型枚举 +export const COST_TYPE_ENUM = { + PUBLIC_WELFARE: { + value: 1, + desc: '公益活动成本', + }, + OTHER: { + value: 2, + desc: '其他成本', + }, +}; \ No newline at end of file diff --git a/src/layout/components/side-menu/index.vue b/src/layout/components/side-menu/index.vue index 39c69cf..33f1e74 100644 --- a/src/layout/components/side-menu/index.vue +++ b/src/layout/components/side-menu/index.vue @@ -1,11 +1,5 @@