From a6d16819e1012a017fb9f6b38e81f3d67ca1159c Mon Sep 17 00:00:00 2001
From: yangzhq68909 <993367776@qq.com>
Date: Mon, 9 Jun 2025 16:04:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B9=B2=E7=A7=9F=E8=BD=A6=E5=AE=A1=E6=89=B9?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/bpm/index.ts | 10 ++
src/api/humanResource/absence/index.ts | 2 +-
src/pages-bpm/carRental/index.vue | 54 +++++++++
src/pages-bpm/leaveApplication/index.vue | 137 +----------------------
src/pages.json | 4 +
src/types/uni-pages.d.ts | 1 +
6 files changed, 74 insertions(+), 134 deletions(-)
create mode 100644 src/api/bpm/index.ts
create mode 100644 src/pages-bpm/carRental/index.vue
diff --git a/src/api/bpm/index.ts b/src/api/bpm/index.ts
new file mode 100644
index 0000000..0da8602
--- /dev/null
+++ b/src/api/bpm/index.ts
@@ -0,0 +1,10 @@
+import { http } from '@/utils/http';
+
+/*通过id查询数据*/
+export function queryCarRentalByIdApi(id : string) {
+ return http({
+ url: '/CarRental/cxcCarRental/queryById',
+ method: 'GET',
+ data: { id }
+ })
+}
\ No newline at end of file
diff --git a/src/api/humanResource/absence/index.ts b/src/api/humanResource/absence/index.ts
index 874629f..1fa18e2 100644
--- a/src/api/humanResource/absence/index.ts
+++ b/src/api/humanResource/absence/index.ts
@@ -49,7 +49,7 @@ export function countByOrgApi(params : object) {
})
}
-/*通过id查询请假数据*/
+/*通过id查询数据*/
export function queryByIdApi(id : string) {
return http({
url: '/CxcQxj/cxcQxj/queryById',
diff --git a/src/pages-bpm/carRental/index.vue b/src/pages-bpm/carRental/index.vue
new file mode 100644
index 0000000..fb73567
--- /dev/null
+++ b/src/pages-bpm/carRental/index.vue
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages-bpm/leaveApplication/index.vue b/src/pages-bpm/leaveApplication/index.vue
index c7e60ee..20d5ae5 100644
--- a/src/pages-bpm/leaveApplication/index.vue
+++ b/src/pages-bpm/leaveApplication/index.vue
@@ -26,13 +26,6 @@
import {
imgUrl
} from '@/utils/index'
-
- defineOptions({
- name: 'index',
- options: {
- styleIsolation: 'shared',
- },
- })
const info = ref({})
const image = ref([])
const props = defineProps({
@@ -52,7 +45,9 @@
queryByIdApi(props.formData.dataId).then((res) => {
if (res.success) {
info.value = res.result.records[0]
- image.value = info.value.path.split(',').map(path => imgUrl(path))
+ if(info.value.path){
+ image.value = info.value.path.split(',').map(path => imgUrl(path))
+ }
}
})
}
@@ -60,128 +55,4 @@
onMounted(() => {
qjQueryById()
})
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/pages.json b/src/pages.json
index 198c56b..ae75715 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -517,6 +517,10 @@
{
"root": "pages-bpm",
"pages": [
+ {
+ "path": "carRental/index",
+ "type": "page"
+ },
{
"path": "leaveApplication/index",
"type": "page"
diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts
index fa180f2..b109d57 100644
--- a/src/types/uni-pages.d.ts
+++ b/src/types/uni-pages.d.ts
@@ -56,6 +56,7 @@ interface NavigateToOptions {
"/pages-process/approvalTabbar" |
"/pages-process/myApplyProcess" |
"/pages-process/taskHandle" |
+ "/pages-bpm/carRental/index" |
"/pages-bpm/leaveApplication/index";
}
interface RedirectToOptions extends NavigateToOptions {}