| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /**
- * 工分接口
- */
- import { request } from '@/utils/request'
- /**
- * 查询工单工分列表
- */
- export const listOrderScores = (query: UTSJSONObject | null): Promise<any> => {
- return request({
- url: '/gxt/orderScore/list',
- method: 'GET',
- data: query
- })
- }
- /**
- * 查询工单工分统计信息
- */
- export const getOrderScoreStatistics = (query: UTSJSONObject | null): Promise<any> => {
- return request({
- url: '/gxt/orderScore/statistics',
- method: 'GET',
- data: query
- })
- }
- /**
- * 查询工单详情(包含工分信息)
- * @param orderType 工单类型
- * @param orderId 工单ID
- */
- export const getOrderScoreDetail = (orderType: string, orderId: string): Promise<any> => {
- return request({
- url: '/gxt/orderScore/' + orderType + '/' + orderId,
- method: 'GET'
- })
- }
- /**
- * 查询移动端工单工分列表(支持关键词搜索)
- */
- export const listMobileOrderScores = (query: UTSJSONObject | null): Promise<any> => {
- return request({
- url: '/gxt/orderScore/mobile/list',
- method: 'GET',
- data: query
- })
- }
- /*
- * 获取待评分工单列表
- * @param page 页码
- * @param rows 每页数量
- */
- export const listMyRate = (query: UTSJSONObject | null): Promise<any> => {
- let url = '/mobile/order/listMyRate'
- return request({
- url: url,
- method: 'GET',
- data: query
- })
- }
- /**
- * 提交工单自评
- */
- export const submitSelfEvaluation = (data: UTSJSONObject): Promise<any> => {
- return request({
- url: '/gxt/orderScore/selfEvaluation',
- method: 'PUT',
- data: data
- })
- }
- /**
- * 提交工单复评
- */
- export const submitReEvaluation = (data: UTSJSONObject): Promise<any> => {
- return request({
- url: '/gxt/orderScore/review',
- method: 'PUT',
- data: data
- })
- }
- /**
- * 获取检修类型选项
- */
- export const getMaintenanceTypes = (): Promise<any> => {
- return request({
- url: '/gxt/scoreproject/list',
- method: 'GET'
- })
- }
- /**
- * 根据风机型号获取维保类型选项
- */
- export const listInspectionTypesByFanType = (fanType: string): Promise<any> => {
- return request({
- url: '/gxt/fanInspectionScore/inspectionTypes/' + fanType,
- method: 'GET'
- })
- }
|