import request from '@/utils/request'; // /business/workOrder/list export function workOrderPage(query) { return request({ url: '/business/workOrder/page_my', method: 'get', params: query, }); } // /business/workOrder/add export function addWorkOrder(data) { return request({ url: '/business/workOrder/add', method: 'post', data: data, }); } // /business/workOrder/{id} // business/workOrder/page_my export function getWorkOrder(id) { return request({ url: '/business/workOrder/' + id, method: 'get', }); } // business/workOrder/listHistoryData export function listHistoryData(query) { return request({ url: '/business/workOrder/listHistoryData', method: 'get', params: query, }); } // business/workOrderSourceConfig/list export function listWorkOrderSourceConfig(query) { return request({ url: '/business/workOrderSourceConfig/list', method: 'get', params: query, }); } // /business/workOrder/submit export function submitWorkOrder(data) { return request({ url: '/business/workOrder/submit', method: 'put', data: data, }); } // /business/workOrderSourceConfig/edit export function editWorkOrderSourceConfig(data) { return request({ url: '/business/workOrderSourceConfig/edit', method: 'put', data: data, }); } // business/workOrderSourceConfig/listUnConfigDictData export function listUnConfigDictData(query) { return request({ url: '/business/workOrderSourceConfig/listUnConfigDictData', method: 'get', params: query, }); } // /business/workOrderSourceConfig/add export function addWorkOrderSourceConfig(data) { return request({ url: '/business/workOrderSourceConfig/add', method: 'post', data: data, }); } // business/workOrder/listWorkOrderDept export function listWorkOrderDept(query) { return request({ url: '/business/workOrder/listWorkOrderDept', method: 'get', params: query, }); } // business/workOrder/listWorkOrderHandler export function listWorkOrderHandler(query) { return request({ url: '/business/workOrder/listWorkOrderHandler', method: 'get', params: query, }); } // business/workOrder/groupCount export function groupCount(query) { return request({ url: '/business/workOrder/groupCount', method: 'get', params: query, }); } // business/workOrder/listWorkOrderNextUser export function listWorkOrderNextUser(query) { return request({ url: '/business/workOrder/listWorkOrderNextUser', method: 'get', params: query, }); } // 调试 business/workOrder/genCommonWarnAndWorkOrder?orderType=4 export function testWorkOrder(query) { return request({ url: '/business/workOrder/genCommonWarnAndWorkOrder', method: 'get', params: query, }); } // /business/deptAssessReport/page 考核报告 export function deptAssessReportPage(query) { return request({ url: '/business/deptAssessReport/page', method: 'get', params: query, }); } // /business/deptAssessReport/{id} export function getDeptAssessReport(id) { return request({ url: '/business/deptAssessReport/' + id, method: 'get', }); } // business/deptAssessReport/assessRuleDownload 获取考核评估 export function assessRuleDownload(data) { return request({ url: '/business/deptAssessReport/assessRuleDownload', method: 'post', data: data, }); } // business/deptAssessReport/export 导出 // business/deptAssessReport/exportDetail?id=1871487440585023490 export function exportDetail(id) { return request({ // url: '/business/deptAssessReport/exportDetail?id=' + id, url: '/business/deptAssessReport/exportDetail', method: 'get', // headers: { 'Content-Type': 'multipart/form-data' }, responseType: 'blob', params: { id }, }); } // business/workOrder/queryWorkOrderCallConfig export function queryWorkOrderCallConfig() { return request({ url: '/business/workOrder/queryWorkOrderCallConfig', method: 'get', }); } // business/workOrder/updateWorkOrderCallConfig?autoOrderFlag=1 export function updateWorkOrderCallConfig(data) { return request({ url: '/business/workOrder/updateWorkOrderCallConfig', headers: { 'Content-Type': 'multipart/form-data' }, method: 'put', data, }); } // business/commonWarning/queryOfflineWarnConfig export function queryOfflineWarnConfig() { return request({ url: '/business/commonWarning/queryOfflineWarnConfig', method: 'get', }); } // /business/commonWarning/updateOfflineWarnConfig export function updateOfflineWarnConfig(data) { return request({ url: '/business/commonWarning/updateOfflineWarnConfig', headers: { 'Content-Type': 'multipart/form-data' }, method: 'put', data, }); }