index.uts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/detail/' + 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. }