monthlySet.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. {
  13. success: true,
  14. data: {
  15. preCarry: {
  16. "computeDate":`${Math.random()}`, //核算年月
  17. "dateRange": "2022/10/01-2022/10/31", //日期区间
  18. "personalRate": "10%", //人事成本比例
  19. "seniority": 30 //年资
  20. }, //上月度结转数据
  21. currentCarry: {
  22. "computeDate":`${Math.random()}`, //核算年月
  23. "dateRange": "2022/11/01-2022/11/31", //日期区间
  24. "personalRate": "10%", //人事成本比例
  25. "seniority": "30.00" //年资
  26. }, //本月度结转数据
  27. lastCarry: {
  28. "computeDate":`${Math.random()}`, //核算年月
  29. "dateRange": "2022/12/01-2022/12/31", //日期区间
  30. "personalRate": "10%", //人事成本比例
  31. "seniority": "30.00" //年资
  32. } //下月度结转数据
  33. },
  34. errorCode: 0,
  35. });
  36. },
  37. 'POST /performance/carry/over': (req: any, res: any) => {
  38. res.json({
  39. code: "200",
  40. message: "返回成功",
  41. data: null
  42. })
  43. },
  44. 'POST /performance/carry/back': (req: any, res: any) => {
  45. res.json({
  46. code: "200",
  47. message: "返回成功",
  48. data: null
  49. })
  50. }
  51. };