Newer
Older
urbanLifeline_YanAn / src / api / order.js
@zhangzhihui zhangzhihui on 11 Nov 714 bytes 处理详情
import request from '@/utils/request';

// /business/workOrder/list
export function workOrderPage(query) {
  return request({
    url: '/business/workOrder/page',
    method: 'get',
    params: query,
  });
}

// /business/workOrder/add
export function addWorkOrder(data) {
  return request({
    url: '/business/workOrder/add',
    method: 'post',
    data: data,
  });
}

// /business/workOrder/{id}
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,
  });
}