From 11d9d02597fefab68c55636da9de6bb60a2bb39f Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 23 Oct 2025 17:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 3 +- src/manifest.json | 6 +- src/pages/offline-witness/index.vue | 52 ++++--- src/pages/offline-witness/upload.vue | 142 ++++++++++++++++++-- src/pages/person-exit/data-upload/index.vue | 2 +- src/services/offline-witness.js | 27 ++++ src/services/person-entry.js | 8 ++ vite.config.js | 4 +- 8 files changed, 201 insertions(+), 43 deletions(-) create mode 100644 src/services/offline-witness.js diff --git a/.env.production b/.env.production index 12a4c28..fa8372e 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,2 @@ -VITE_API_BASE_URL = https://sh.cygrxt.com:19999/hd-realname/prod-api \ No newline at end of file + +VITE_API_BASE_URL = /hd-real-name \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json index 240b307..2d571bb 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -151,6 +151,10 @@ }, "vueVersion" : "3", "h5" : { - "title" : "" + "title" : "", + "router" : { + "mode" : "history", + "base" : "/hd-real-name-h5/" + } } } diff --git a/src/pages/offline-witness/index.vue b/src/pages/offline-witness/index.vue index d14c021..479bb54 100644 --- a/src/pages/offline-witness/index.vue +++ b/src/pages/offline-witness/index.vue @@ -40,7 +40,7 @@ - + @@ -95,7 +94,11 @@ diff --git a/src/pages/person-exit/data-upload/index.vue b/src/pages/person-exit/data-upload/index.vue index 2f33e6f..c1e5c2d 100644 --- a/src/pages/person-exit/data-upload/index.vue +++ b/src/pages/person-exit/data-upload/index.vue @@ -160,7 +160,7 @@ const onConfirmExit = async () => { } if (fileIds.value.length > 0) { - params.fileIds = fileIds.value.join(',') + params.photoIds = fileIds.value.join(',') } const res = await editPersonEntryExitApi(params) diff --git a/src/services/offline-witness.js b/src/services/offline-witness.js new file mode 100644 index 0000000..35d6085 --- /dev/null +++ b/src/services/offline-witness.js @@ -0,0 +1,27 @@ +import { http } from '@/utils/http' + +// 获取短信验证码 +export const getSmsCodeApi = (data) => { + return http({ + method: 'POST', + url: '/auth/getPhoneCode', + data, + }) +} +// 点击下一步登录接口 +export const nextLoginApi = (data) => { + return http({ + method: 'POST', + url: '/auth/login', + data, + }) +} + +// 根据手机号码获取工程信息 +export const getEngineeringInfoByPhoneApi = (data) => { + return http({ + method: 'bmw', + url: `/bmw/workerExit/getWorkerListByPhone`, + data, + }) +} diff --git a/src/services/person-entry.js b/src/services/person-entry.js index ee0050f..cb98a57 100644 --- a/src/services/person-entry.js +++ b/src/services/person-entry.js @@ -55,6 +55,14 @@ export const editPersonEntryExitApi = (data) => { data, }) } +// 已出场未上传附件 +export const editPersonEntryExitApiBack = (data) => { + return http({ + url: `/bmw/app/appWorkerExitFile`, + method: 'POST', + data, + }) +} // 获取上海工程人员信息 export const getShanghaiProByIdNumberAPI = (data) => { diff --git a/vite.config.js b/vite.config.js index 4d78d89..9e758ed 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,8 +10,8 @@ export default defineConfig({ '/api': { // target: 'http://112.29.103.165:1616', // 测试环境 // target: 'http://192.168.0.133:58080', // 梁超 - target: 'http://192.168.0.14:1999/hd-real-name', // 测试环境 - // target: 'http://192.168.0.234:38080', // 方亮 + // target: 'http://192.168.0.14:1999/hd-real-name', // 测试环境 + target: 'http://192.168.0.234:38080/hd-real-name', // 方亮 changeOrigin: true, rewrite: (path) => { return path.replace(/\/api/, '')