monthlySet.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2023-01-05 15:17:29
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-01-05 17:29:17
  6. * @FilePath: /BudgetManaSystem/mock/monthlySet.ts
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. export default {
  10. 'GET /performance/carry/list': (req: any, res: any) => {
  11. res.json({
  12. success: true,
  13. data: {
  14. preCarry: {
  15. computeDate: `${Math.random()}`, //核算年月
  16. dateRange: '2022/10/01-2022/10/31', //日期区间
  17. personalRate: '10%', //人事成本比例
  18. seniority: 30, //年资
  19. }, //上月度结转数据
  20. currentCarry: {
  21. computeDate: `${Math.random()}`, //核算年月
  22. dateRange: '2022/11/01-2022/11/31', //日期区间
  23. personalRate: '10%', //人事成本比例
  24. seniority: '30.00', //年资
  25. }, //本月度结转数据
  26. lastCarry: {
  27. computeDate: `${Math.random()}`, //核算年月
  28. dateRange: '2022/12/01-2022/12/31', //日期区间
  29. personalRate: '10%', //人事成本比例
  30. seniority: '30.00', //年资
  31. }, //下月度结转数据
  32. },
  33. errorCode: 0,
  34. });
  35. },
  36. 'POST /performance/carry/over': (req: any, res: any) => {
  37. res.json({
  38. code: '200',
  39. message: '返回成功',
  40. data: null,
  41. });
  42. },
  43. 'POST /performance/carry/back': (req: any, res: any) => {
  44. res.json({
  45. code: '200',
  46. message: '返回成功',
  47. data: null,
  48. });
  49. },
  50. };