index.uts 865 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * 工时接口
  3. */
  4. import { request } from '@/utils/request'
  5. /**
  6. * 查询工单工时列表
  7. */
  8. export const listOrderHours = (query: UTSJSONObject | null): Promise<any> => {
  9. return request({
  10. url: '/gxt/orderHour/list',
  11. method: 'GET',
  12. data: query
  13. })
  14. }
  15. /**
  16. * 查询工单工时统计信息
  17. */
  18. export const getOrderHourStatistics = (query: UTSJSONObject | null): Promise<any> => {
  19. return request({
  20. url: '/gxt/orderHour/statistics',
  21. method: 'GET',
  22. data: query
  23. })
  24. }
  25. /**
  26. * 查询工单详情(包含工时构成信息)
  27. * @param orderType 工单类型
  28. * @param orderId 工单ID
  29. */
  30. export const getOrderHourDetail = (orderType: string, orderId: string): Promise<any> => {
  31. return request({
  32. url: '/gxt/orderHour/detail/' + orderType + '/' + orderId,
  33. method: 'GET'
  34. })
  35. }