From 66eefc37add516d4c73fee8cf504f6ad695221ad Mon Sep 17 00:00:00 2001 From: hky <1499449886@qq.com> Date: Tue, 24 Dec 2024 11:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=91=98=E5=B7=A5=E8=8A=B1?= =?UTF-8?q?=E5=90=8D=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/api/arcb/salary/employee/index.ts | 51 +++ src/utils/dict.ts | 5 +- .../arcb/salary/employee/EmployeeForm.vue | 172 ++++++++++ src/views/arcb/salary/employee/index.vue | 301 ++++++++++++++++++ 5 files changed, 529 insertions(+), 2 deletions(-) create mode 100644 src/api/arcb/salary/employee/index.ts create mode 100644 src/views/arcb/salary/employee/EmployeeForm.vue create mode 100644 src/views/arcb/salary/employee/index.vue diff --git a/.env b/.env index dbc97e6d3..453c74db1 100644 --- a/.env +++ b/.env @@ -14,7 +14,7 @@ VITE_APP_TENANT_ENABLE=true VITE_APP_CAPTCHA_ENABLE=true # 文档地址的开关 -VITE_APP_DOCALERT_ENABLE=true +VITE_APP_DOCALERT_ENABLE=false # 百度统计 VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc diff --git a/src/api/arcb/salary/employee/index.ts b/src/api/arcb/salary/employee/index.ts new file mode 100644 index 000000000..e006365df --- /dev/null +++ b/src/api/arcb/salary/employee/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +// 员工花名册 VO +export interface EmployeeVO { + id: number // 唯一标识符 + empName: string // 姓名 + idNo: string // 身份证号 + empNo: string // 工号 + station: string // 岗位 + bankNo: string // 银行卡号 + orgNo: number // 所属机构 + annuityNo: string // 企业年金帐号 + socialSecurityNo: string // 社保账号 + pensionNo: string // 养老金帐号 + housingFundNo: string // 住房公积金账号 + workTime: Date // 参加工作时间 + empStatus: string // 员工状态 +} + +// 员工花名册 API +export const EmployeeApi = { + // 查询员工花名册分页 + getEmployeePage: async (params: any) => { + return await request.get({ url: `/arcb/salary/employee/page`, params }) + }, + + // 查询员工花名册详情 + getEmployee: async (id: number) => { + return await request.get({ url: `/arcb/salary/employee/get?id=` + id }) + }, + + // 新增员工花名册 + createEmployee: async (data: EmployeeVO) => { + return await request.post({ url: `/arcb/salary/employee/create`, data }) + }, + + // 修改员工花名册 + updateEmployee: async (data: EmployeeVO) => { + return await request.put({ url: `/arcb/salary/employee/update`, data }) + }, + + // 删除员工花名册 + deleteEmployee: async (id: number) => { + return await request.delete({ url: `/arcb/salary/employee/delete?id=` + id }) + }, + + // 导出员工花名册 Excel + exportEmployee: async (params) => { + return await request.download({ url: `/arcb/salary/employee/export-excel`, params }) + }, +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 1134152b6..7b85df1ff 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -239,5 +239,8 @@ export enum DICT_TYPE { IOT_PRODUCT_FUNCTION_TYPE = 'iot_product_function_type', // IOT 产品功能类型 IOT_DATA_TYPE = 'iot_data_type', // IOT 数据类型 IOT_UNIT_TYPE = 'iot_unit_type', // IOT 单位类型 - IOT_RW_TYPE = 'iot_rw_type' // IOT 读写类型 + IOT_RW_TYPE = 'iot_rw_type', // IOT 读写类型 + + // ===================人力资源模块====================== + ARCB_EMP_STATUS = 'arcb_emp_status', } diff --git a/src/views/arcb/salary/employee/EmployeeForm.vue b/src/views/arcb/salary/employee/EmployeeForm.vue new file mode 100644 index 000000000..3dd8986f6 --- /dev/null +++ b/src/views/arcb/salary/employee/EmployeeForm.vue @@ -0,0 +1,172 @@ + + \ No newline at end of file diff --git a/src/views/arcb/salary/employee/index.vue b/src/views/arcb/salary/employee/index.vue new file mode 100644 index 000000000..a11bd44b4 --- /dev/null +++ b/src/views/arcb/salary/employee/index.vue @@ -0,0 +1,301 @@ + + + \ No newline at end of file