Newer
Older
urbanLifeline_YanAn / src / api / order.js
@zhangzhihui zhangzhihui 7 days ago 2 KB WS + 模型
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,
  });
}