From d510a9a734e5103a271beb9566d97e1c103b4857 Mon Sep 17 00:00:00 2001
From: yangzhq68909 <993367776@qq.com>
Date: Tue, 20 May 2025 18:45:08 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E5=81=87=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
env/.env.development | 2 +-
src/api/humanResource/absence/index.ts | 18 +++
src/pages-humanResource/absence/add.vue | 11 +-
src/pages-humanResource/absence/detail.vue | 128 +++++++++++++++++++++
src/pages-humanResource/absence/index.vue | 23 ++--
src/pages-operate/file/detail.vue | 6 -
src/pages-operate/file/index.vue | 10 +-
src/pages.json | 9 ++
src/types/uni-pages.d.ts | 1 +
src/utils/index.ts | 4 +
10 files changed, 184 insertions(+), 28 deletions(-)
create mode 100644 src/pages-humanResource/absence/detail.vue
diff --git a/env/.env.development b/env/.env.development
index 096ebec..44dd13a 100644
--- a/env/.env.development
+++ b/env/.env.development
@@ -4,5 +4,5 @@ NODE_ENV = 'development'
VITE_DELETE_CONSOLE = false
# 是否开启sourcemap
VITE_SHOW_SOURCEMAP = true
-VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot'
+VITE_SERVER_BASEURL = 'http://10.75.15.249:8080/jeecg-boot'
#VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot'
\ No newline at end of file
diff --git a/src/api/humanResource/absence/index.ts b/src/api/humanResource/absence/index.ts
index bff63a4..874629f 100644
--- a/src/api/humanResource/absence/index.ts
+++ b/src/api/humanResource/absence/index.ts
@@ -47,4 +47,22 @@ export function countByOrgApi(params : object) {
method: 'GET',
data: params
})
+}
+
+/*通过id查询请假数据*/
+export function queryByIdApi(id : string) {
+ return http({
+ url: '/CxcQxj/cxcQxj/queryById',
+ method: 'GET',
+ data: { id }
+ })
+}
+
+/*销假*/
+export function editApi(config : object ) {
+ return http({
+ url: '/CxcQxj/cxcQxj/edit',
+ method: 'PUT',
+ data: config
+ })
}
\ No newline at end of file
diff --git a/src/pages-humanResource/absence/add.vue b/src/pages-humanResource/absence/add.vue
index 7848c8f..05d2051 100644
--- a/src/pages-humanResource/absence/add.vue
+++ b/src/pages-humanResource/absence/add.vue
@@ -103,8 +103,9 @@
const minEndtime = ref(0)
/**返回的最新一条请假结束时间*/
const resDate = ref('')
- const uploadUrl = ref(getEnvBaseUrl() + '/sys/common/upload?appPath=职工请假/' + userStore.userInfo.department + '/' +
- userStore.userInfo.realname)
+ const loading = ref(false)
+ const uploadUrl = getEnvBaseUrl() + '/sys/common/upload?appPath=职工请假/' + userStore.userInfo.department + '/' +
+ userStore.userInfo.realname
const columnChange = ({
selectedItem,
resolve,
@@ -154,6 +155,7 @@
}
const handleSubmit = () => {
+ if(loading.value) return
form.value.validate().then(({
valid,
errors
@@ -176,6 +178,7 @@
title: '提示',
})
.then(() => {
+ loading.value = true
addApi(submitData).then(res => {
if (res.success) {
startMutilProcess(res.message)
@@ -184,7 +187,9 @@
}
})
})
- .catch(() => {})
+ .catch(() => {
+ loading.value = false
+ })
}
})
}
diff --git a/src/pages-humanResource/absence/detail.vue b/src/pages-humanResource/absence/detail.vue
new file mode 100644
index 0000000..7c027d1
--- /dev/null
+++ b/src/pages-humanResource/absence/detail.vue
@@ -0,0 +1,128 @@
+
+ {
+ layout: 'default',
+ style: {
+ navigationStyle: 'custom',
+ navigationBarTitleText: '请假详情',
+ },
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages-humanResource/absence/index.vue b/src/pages-humanResource/absence/index.vue
index f01a855..9a69d01 100644
--- a/src/pages-humanResource/absence/index.vue
+++ b/src/pages-humanResource/absence/index.vue
@@ -9,7 +9,7 @@
-
+
-
+
+
@@ -42,7 +43,7 @@
-
+
@@ -58,15 +59,12 @@