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