diff --git a/src/api/model/hrm.js b/src/api/model/hrm.js index 023e89fb..6a67b1ef 100644 --- a/src/api/model/hrm.js +++ b/src/api/model/hrm.js @@ -266,4 +266,39 @@ export default { } }, }, + leave: { + list: { + name: "人员请假", + req: async function(data){ + return await http.get( + `${config.API_URL}/hrm/leave/`, + data + ); + } + }, + item: { + name: "人员请假申请", + req: async function(id){ + return await http.get( + `${config.API_URL}/hrm/leave/${id}/`, + ); + } + }, + create: { + name: "人员请假新增", + req: async function(data){ + return await http.post( + `${config.API_URL}/hrm/leave/`, + data); + } + }, + delete: { + name: "人员请假删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/hrm/leave/${id}/` + ); + } + }, + }, } diff --git a/src/views/hrm/leave.vue b/src/views/hrm/leave.vue new file mode 100644 index 00000000..4670e5d4 --- /dev/null +++ b/src/views/hrm/leave.vue @@ -0,0 +1,134 @@ + + + + + 新增 + + + + + + + + + + + {t_id=row.id;mode='show';drawerVisible=true;}" + > + + + + + + + {{ actStateEnum[scope.row.ticket_?.act_state]?.text }} + + {{ scope.row.ticket_?.state_.name }} + + + + + + + + + + + + + + {handleQuery(); drawerVisible = false}" + @closed="drawerVisible = false" + /> + + + + + \ No newline at end of file diff --git a/src/views/hrm/leave_form.vue b/src/views/hrm/leave_form.vue new file mode 100644 index 00000000..31019337 --- /dev/null +++ b/src/views/hrm/leave_form.vue @@ -0,0 +1,218 @@ + + + + + + {{ formData.employee_name }}({{ formData.belong_dept_name }} - {{ formData.post_name }}) + + + + + + + + + + + + + + + + + + + + + + + 小时 + + + + + + + + + + + + + 删除 + + 提交审批 + + + + + + + + + \ No newline at end of file