index.uts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /**
  2. * 工分接口
  3. */
  4. import { request } from '@/utils/request'
  5. /**
  6. * 查询工单工分列表
  7. */
  8. export const listOrderScores = (query: UTSJSONObject | null): Promise<any> => {
  9. return request({
  10. url: '/gxt/orderScore/list',
  11. method: 'GET',
  12. data: query
  13. })
  14. }
  15. /**
  16. * 查询工单工分统计信息
  17. */
  18. export const getOrderScoreStatistics = (query: UTSJSONObject | null): Promise<any> => {
  19. return request({
  20. url: '/gxt/orderScore/statistics',
  21. method: 'GET',
  22. data: query
  23. })
  24. }
  25. /**
  26. * 查询工单详情(包含工分信息)
  27. * @param orderType 工单类型
  28. * @param orderId 工单ID
  29. */
  30. export const getOrderScoreDetail = (orderType: string, orderId: string): Promise<any> => {
  31. return request({
  32. url: '/gxt/orderScore/' + orderType + '/' + orderId,
  33. method: 'GET'
  34. })
  35. }
  36. /**
  37. * 查询移动端工单工分列表(支持关键词搜索)
  38. */
  39. export const listMobileOrderScores = (query: UTSJSONObject | null): Promise<any> => {
  40. return request({
  41. url: '/gxt/orderScore/mobile/list',
  42. method: 'GET',
  43. data: query
  44. })
  45. }
  46. /*
  47. * 获取待评分工单列表
  48. * @param page 页码
  49. * @param rows 每页数量
  50. */
  51. export const listMyRate = (query: UTSJSONObject | null): Promise<any> => {
  52. let url = '/mobile/order/listMyRate'
  53. return request({
  54. url: url,
  55. method: 'GET',
  56. data: query
  57. })
  58. }