diff --git a/api/hrm/appropriation.js b/api/hrm/appropriation.js new file mode 100644 index 0000000..4247da4 --- /dev/null +++ b/api/hrm/appropriation.js @@ -0,0 +1,59 @@ +import request from "@/util/oaRequest" + +// 请假单 +export function listAppropriationReq (query) { + return request({ + url: '/hrm/appropriation/list', + method: 'get', + params: query + }) +} + +export function getAppropriationReq (bizId) { + return request({ + url: `/hrm/appropriation/${bizId}`, + method: 'get' + }) +} + +export function addAppropriationReq (data) { + return request({ + url: '/hrm/appropriation', + method: 'post', + data + }) +} + +export function editAppropriationReq (data) { + return request({ + url: '/hrm/appropriation', + method: 'put', + data + }) +} + +export function delAppropriationReq (bizIds) { + return request({ + url: `/hrm/appropriation/${bizIds}`, + method: 'delete' + }) +} + +export function allAppropriationReq (query) { + return request({ + url: '/hrm/appropriation/all', + method: 'get', + params: query + }) +} + +/** + * 请假统计信息 + */ +export function getAppropriationStats (query) { + return request({ + url: '/hrm/appropriation/req/stats', + method: 'get', + params: query + }) +} diff --git a/components/hrm/detailPanels/appropriation.vue b/components/hrm/detailPanels/appropriation.vue new file mode 100644 index 0000000..a44ed83 --- /dev/null +++ b/components/hrm/detailPanels/appropriation.vue @@ -0,0 +1,381 @@ + + + + + \ No newline at end of file diff --git a/components/oa/oa-file-list/index.vue b/components/oa/oa-file-list/index.vue index 0f34e66..2d332cd 100644 --- a/components/oa/oa-file-list/index.vue +++ b/components/oa/oa-file-list/index.vue @@ -1,6 +1,6 @@