diff --git a/ruoyi-ui/src/api/oa/salary.js b/ruoyi-ui/src/api/oa/salary.js new file mode 100644 index 0000000..e5a6200 --- /dev/null +++ b/ruoyi-ui/src/api/oa/salary.js @@ -0,0 +1,32 @@ +import request from '@/utils/request' + +/** + * 根据月份和文件计算工资 + * @param {*} param0.monthStr: 月份 + * @param {*} param0.filePath: 文件路径 + * @returns + */ +export function calculateSalary({ monthStr, filePath }) { + return request({ + url: '/oa/salary/calc', + method: 'post', + data: { + monthStr, + filePath + } + }) +} + +/** + * oss文件上传 + */ +export function uploadOssFile(data) { + return request({ + url: '/system/oss/upload', + method: 'post', + data, + headers: { + 'Content-Type': 'multipart/form-data' + } + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/views/oa/peoples/salary/staff/index.vue b/ruoyi-ui/src/views/oa/peoples/salary/staff/index.vue new file mode 100644 index 0000000..05fd05d --- /dev/null +++ b/ruoyi-ui/src/views/oa/peoples/salary/staff/index.vue @@ -0,0 +1,246 @@ + + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/oa/peoples/salary/worker/index.vue b/ruoyi-ui/src/views/oa/peoples/salary/worker/index.vue new file mode 100644 index 0000000..e69de29