From e280e56dded71bb61981e4f0e226d1c7275443a2 Mon Sep 17 00:00:00 2001 From: xiao-fajia <1665375861@qq.com> Date: Thu, 8 Aug 2024 20:19:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AE=A1=E7=90=86-=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/company/staff/index.js | 8 + src/api/company/staffChange/index.js | 18 ++ .../company/staff/form/StaffChangeForm.vue | 126 ++++++++++ .../staff/form/StaffChangeFormData.vue | 224 ++++++++++++++++++ .../company/staff/{ => form}/StaffForm.vue | 28 ++- src/views/company/staff/index.vue | 83 +++++-- 6 files changed, 460 insertions(+), 27 deletions(-) create mode 100644 src/api/company/staffChange/index.js create mode 100644 src/views/company/staff/form/StaffChangeForm.vue create mode 100644 src/views/company/staff/form/StaffChangeFormData.vue rename src/views/company/staff/{ => form}/StaffForm.vue (92%) diff --git a/src/api/company/staff/index.js b/src/api/company/staff/index.js index 676eb07..f314649 100644 --- a/src/api/company/staff/index.js +++ b/src/api/company/staff/index.js @@ -59,3 +59,11 @@ export function getLabels(){ method: 'get', }) } + +// 获取当前登录用户部门下的员工信息 +export function getStaffList(){ + return request({ + url: '/company/staff/list', + method: 'get' + }) +} diff --git a/src/api/company/staffChange/index.js b/src/api/company/staffChange/index.js new file mode 100644 index 0000000..6a3cef5 --- /dev/null +++ b/src/api/company/staffChange/index.js @@ -0,0 +1,18 @@ +import request from '@/utils/request' + +// 创建企业管理-员工交接信息 +export function createStaffChange(data) { + return request({ + url: '/company/staffChange/create', + method: 'post', + data: data + }) +} + +// 获取企业管理-员工交接信息及交接双方信息 +export function getChangeStaff(id) { + return request({ + url: '/company/staffChange/changeItem?id=' + id, + method: 'get', + }) +} diff --git a/src/views/company/staff/form/StaffChangeForm.vue b/src/views/company/staff/form/StaffChangeForm.vue new file mode 100644 index 0000000..c8b5a2d --- /dev/null +++ b/src/views/company/staff/form/StaffChangeForm.vue @@ -0,0 +1,126 @@ + + + diff --git a/src/views/company/staff/form/StaffChangeFormData.vue b/src/views/company/staff/form/StaffChangeFormData.vue new file mode 100644 index 0000000..4eee423 --- /dev/null +++ b/src/views/company/staff/form/StaffChangeFormData.vue @@ -0,0 +1,224 @@ + + + + + diff --git a/src/views/company/staff/StaffForm.vue b/src/views/company/staff/form/StaffForm.vue similarity index 92% rename from src/views/company/staff/StaffForm.vue rename to src/views/company/staff/form/StaffForm.vue index 674d122..471071c 100644 --- a/src/views/company/staff/StaffForm.vue +++ b/src/views/company/staff/form/StaffForm.vue @@ -86,20 +86,24 @@ - + + :value="item.labelName"> - - + +