diff --git a/dist.zip b/dist.zip index 647accb..3c57242 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/api/business/letter/letter-api.js b/src/api/business/letter/letter-api.js index 9d02b6a..729ea23 100644 --- a/src/api/business/letter/letter-api.js +++ b/src/api/business/letter/letter-api.js @@ -5,7 +5,7 @@ * @Date: 2025-12-22 17:43:06 * @Copyright 1 */ -import { postRequest, getRequest } from '/@/lib/axios'; +import { postRequest, getRequest, getDownload } from '/@/lib/axios'; export const letterApi = { @@ -33,10 +33,40 @@ export const letterApi = { /** * 查看承诺书详情 @author wzh */ - isLetter: (letterId) => { + detail: (letterId) => { return getRequest(`/letter/detail/${letterId}`); }, + /** + * 检查用户是否已签署承诺书 @author wzh + */ + isLetter: (userId) => { + return getRequest(`/letter/isLetter/${userId}`); + }, + + /** + * 查询所有承诺书 @author wzh + */ + queryAllBook: () => { + return getRequest('/letter/queryAllBook'); + }, + /** + * 下载承诺书文件 @author wzh + */ + downloadLetter: (letterId) => { + return getDownload(`/letter/download/${letterId}`); + }, + + /** + * 上传承诺书证明文件 @author wzh + */ + uploadProof: (formData) => { + return postRequest('/letter/uploadProof', formData, { + headers: { + 'Content-Type': 'multipart/form-data' + } + }); + }, }; diff --git a/src/api/business/service-applications/service-applications-api.js b/src/api/business/service-applications/service-applications-api.js index e3b3b27..76c17a5 100644 --- a/src/api/business/service-applications/service-applications-api.js +++ b/src/api/business/service-applications/service-applications-api.js @@ -9,13 +9,19 @@ import { postRequest, getRequest,getDownload, postDownload } from '/@/lib/axios' export const serviceApplicationsApi = { + /** - * 分页查询 @author wzh + * 服务申报页面报告查询 @author wzh + */ + queryPageReport : (param) => { + return postRequest('/serviceApplications/queryPageReport', param); + }, + /** + * 服务审批分页查询 @author wzh */ queryPage : (param) => { return postRequest('/serviceApplications/queryPage', param); }, - /** * 增加 @author wzh */ diff --git a/src/constants/support/file-const.js b/src/constants/support/file-const.js index 6435b96..188da9e 100644 --- a/src/constants/support/file-const.js +++ b/src/constants/support/file-const.js @@ -23,7 +23,7 @@ export const FILE_FOLDER_TYPE_ENUM = { }, FEEDBACK: { value: 4, - desc: '意见反馈', + desc: '承诺书', }, }; export default { diff --git a/src/layout/components/side-help-doc/index.vue b/src/layout/components/side-help-doc/index.vue index 5a78d44..b1e6b09 100644 --- a/src/layout/components/side-help-doc/index.vue +++ b/src/layout/components/side-help-doc/index.vue @@ -20,7 +20,7 @@ - 合肥市律师公益法律服务管理系统 全角色操作手册.docx + 合肥市律师公益法律服务管理系统操作手册.docx diff --git a/src/views/business/erp/letter/letter-list.vue b/src/views/business/erp/letter/letter-list.vue index ee56774..9896381 100644 --- a/src/views/business/erp/letter/letter-list.vue +++ b/src/views/business/erp/letter/letter-list.vue @@ -50,10 +50,46 @@ + + + +
+
+ + {{ item.bookName || item.title }} + +
+
+
+ +
+ + + + 上传律师承诺书 + + + + + + 上传律师承诺书 + + + + 上传律所承诺书 +
@@ -106,6 +142,43 @@ @cancel="handleAgreementCancel" /> + + + + + + + + 选择文件 + + +
+ 已选择文件: {{ proofFileList[0].name }} +
+
+ 支持格式:图片(JPG/PNG),文件大小不超过10MB +
+
+
+
+ + + + 预览图片 + + diff --git a/src/views/mobile/service/create.vue b/src/views/mobile/service/create.vue index 4a5af76..c8dce34 100644 --- a/src/views/mobile/service/create.vue +++ b/src/views/mobile/service/create.vue @@ -150,7 +150,7 @@ class="form-input" placeholder="服务时长(小时)" /> -
注:不足30分钟(不含本数)的,不计入时长,超过30分钟不足1个小时的(含本数),按照一个小时填报
+
注:不足30分钟(不含本数)的,按照0.5小时填报,超过30分钟不足1个小时的(含本数),按照一个小时填报
@@ -195,25 +195,7 @@ /> - -
- - -
注:服务时长必须在100-200小时范围内
-
- - - - diff --git a/src/views/mobile/service/detail.vue b/src/views/mobile/service/detail.vue index 5e00bad..69a20c6 100644 --- a/src/views/mobile/service/detail.vue +++ b/src/views/mobile/service/detail.vue @@ -159,8 +159,8 @@ 服务结束时间 -
注:不足30分钟(不含本数)的,不计入时长,超过30分钟不足1个小时的(含本数),按照一个小时填报
+
注:不足30分钟(不含本数)的,按照0.5小时填报,超过30分钟不足1个小时的(含本数),按照一个小时填报
@@ -241,26 +241,6 @@ /> - -
- - -
注:服务时长必须在100-200小时范围内
-
- - - - diff --git a/src/views/system/home/components/agreement.vue b/src/views/system/home/components/agreement.vue index 42c37ba..f9ad505 100644 --- a/src/views/system/home/components/agreement.vue +++ b/src/views/system/home/components/agreement.vue @@ -89,7 +89,7 @@ async function getLetterDetail(letterId) { loading.value = true; // 使用/letter/detail/{letterId}接口获取承诺书内容 - const result = await letterApi.isLetter(letterId); + const result = await letterApi.detail(letterId); if (result.data) { Object.assign(noticeDetail, result.data); diff --git a/vite.config.js b/vite.config.js index e722064..b4a3246 100644 --- a/vite.config.js +++ b/vite.config.js @@ -35,20 +35,20 @@ export default { proxy: { // 代理API路径 '/api': { - target: 'http://8.148.67.92:8080/', // 目标服务器地址 - //target: 'http://127.0.0.1:8080/', + //target: 'http://8.148.67.92:8080/', // 目标服务器地址 + target: 'http://127.0.0.1:8080/', changeOrigin: true, // 是否修改请求头中的 Origin 字段 rewrite: (path) => path.replace(/^\/api/, ''), // 重写路径 }, '/login': { - target: 'http://8.148.67.92:8080/', // 目标服务器地址 - //target: 'http://127.0.0.1:8080/', + //target: 'http://8.148.67.92:8080/', // 目标服务器地址 + target: 'http://127.0.0.1:8080/', changeOrigin: true, // 是否修改请求头中的 Origin 字段 rewrite: (path) => path.replace(/^\/api/, ''), // 重写路径 }, '/mobile/login': { - target: 'http://8.148.67.92:8080/', // 目标服务器地址 - //target: 'http://127.0.0.1:8080/', + //target: 'http://8.148.67.92:8080/', // 目标服务器地址 + target: 'http://127.0.0.1:8080/', changeOrigin: true, // 是否修改请求头中的 Origin 字段 rewrite: (path) => path.replace(/^\/api/, ''), // 重写路径 },