From 18db7235c9e47350842d7112206c32a293787fc9 Mon Sep 17 00:00:00 2001
From: andy <1042025947@qq.com>
Date: Thu, 22 May 2025 16:54:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=91=98=E5=B7=A5=E4=BF=A1=E6=81=AF=E6=94=B9?=
=?UTF-8?q?=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../personnelMatters/subsidyInformation.js | 86 +++
src/api/system/staffDetail.js | 9 +
.../subsidyInformation/index.vue | 188 ++++++
src/views/system/staff/index.vue | 576 +++++++++++++-----
src/views/system/staffDetail/index.vue | 7 +-
5 files changed, 709 insertions(+), 157 deletions(-)
create mode 100644 src/api/personnelMatters/subsidyInformation.js
create mode 100644 src/views/personnelMatters/subsidyInformation/index.vue
diff --git a/src/api/personnelMatters/subsidyInformation.js b/src/api/personnelMatters/subsidyInformation.js
new file mode 100644
index 0000000..28aeb68
--- /dev/null
+++ b/src/api/personnelMatters/subsidyInformation.js
@@ -0,0 +1,86 @@
+import request from '@/utils/request'
+
+// 查询补助管理列表
+export function listSubsidyInfo(query) {
+ return request({
+ url: '/personnelMatters/subsidyInfo/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询补助管理详细
+export function getSubsidyInfo(id) {
+ return request({
+ url: '/personnelMatters/subsidyInfo/' + id,
+ method: 'get'
+ })
+}
+
+// 新增补助管理
+export function addSubsidyInfo(data) {
+ return request({
+ url: '/personnelMatters/subsidyInfo',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改补助管理
+export function updateSubsidyInfo(data) {
+ return request({
+ url: '/personnelMatters/subsidyInfo',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除补助管理
+export function delSubsidyInfo(id) {
+ return request({
+ url: '/personnelMatters/subsidyInfo/' + id,
+ method: 'delete'
+ })
+}
+
+export function listAllOptions(){
+ return request({
+ url: '/personnelMatters/subsidyInfo/getOption',
+ method: 'post'
+ })
+}
+
+
+export function validatorAmount (rule, value, callback){
+ if (!value) {
+ return callback(new Error('补助金额不能为空'));
+ }
+ value = parseInt(value);
+ if (!Number.isInteger(value)) {
+ callback(new Error('请输入数字值'));
+ } else {
+ if (value < 0) {
+ callback(new Error('补助金额不能小于0'));
+ } else {
+ callback();
+ }
+ }
+};
+
+
+export function validatorName (rule, value, callback){
+
+ request({
+ url: '/personnelMatters/subsidyInfo/checkName',
+ method: 'post',
+ data: {"name":value}
+ }).then(response => {
+ if(response.data){
+ callback(new Error('当前补助已经存在'));
+ }else{
+ callback();
+ }
+ });
+};
+
+
diff --git a/src/api/system/staffDetail.js b/src/api/system/staffDetail.js
index ce9bb0e..0fb63cf 100644
--- a/src/api/system/staffDetail.js
+++ b/src/api/system/staffDetail.js
@@ -26,3 +26,12 @@ export function updateDetail(data) {
data: data
})
}
+
+
+// 查询员工详情列表
+export function getDetailByUser(id) {
+ return request({
+ url: '/system/staffDetail/byUser/'+id,
+ method: 'get',
+ })
+}
diff --git a/src/views/personnelMatters/subsidyInformation/index.vue b/src/views/personnelMatters/subsidyInformation/index.vue
new file mode 100644
index 0000000..fe06408
--- /dev/null
+++ b/src/views/personnelMatters/subsidyInformation/index.vue
@@ -0,0 +1,188 @@
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/staff/index.vue b/src/views/system/staff/index.vue
index acc2a04..167cb2d 100644
--- a/src/views/system/staff/index.vue
+++ b/src/views/system/staff/index.vue
@@ -42,16 +42,16 @@
/>
-
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
-
-
-
-
+
+
+
{{ parseTime(scope.row.employmentDate, '{y}-{m}-{d}') }}
-
+
+
+ {{ scope.row.workerTerm }}月
+
+
-
+
{{ parseTime(scope.row.quitDate, '{y}-{m}-{d}') }}
-
+
- {{ parseTime(scope.row.contractStart, '{y}-{m}-{d}') }}
+ {{ parseTime(scope.row.contractStart, '{y}-{m}-{d}') }}至{{ parseTime(scope.row.contractEnd, '{y}-{m}-{d}') }}
-
+
- {{ parseTime(scope.row.contractEnd, '{y}-{m}-{d}') }}
+ {{ scope.row.seniority }}年
-
-
+
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -277,69 +383,14 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -353,7 +404,9 @@
-
+
+ 月
+
@@ -381,33 +434,15 @@
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
@@ -417,7 +452,7 @@
-
+
@@ -434,14 +469,6 @@
-
-
-
-
-
-
-
-
@@ -451,29 +478,27 @@
-
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -586,22 +611,193 @@
取 消
+
+
+
+ 基本详情
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+ 个税抵扣详情
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+ 补助详情
+
+
+
+
+ 元
+
+
+
+
+ 其他详情
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+ 元
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/staffDetail/index.vue b/src/views/system/staffDetail/index.vue
index 96e68cd..dde05bb 100644
--- a/src/views/system/staffDetail/index.vue
+++ b/src/views/system/staffDetail/index.vue
@@ -6,13 +6,16 @@
-
+
+ {{ val }}
+
+