workman.js 482 B

123456789101112131415161718192021222324252627
  1. import request from '@/utils/request'
  2. // 工资条列表
  3. const baseApi='/api/workman'
  4. export function salaryList() {
  5. return request({
  6. 'url': baseApi+'/own_salary_list',
  7. 'method': 'get'
  8. })
  9. }
  10. // 薪资明细
  11. export function viewSalary(data) {
  12. return request({
  13. url: baseApi+'/view_salary',
  14. method: 'get',
  15. params: data
  16. })
  17. }
  18. // 薪资签名
  19. export function sign(data) {
  20. return request({
  21. url: baseApi+'/sign',
  22. method: 'post',
  23. data: data
  24. })
  25. }