import request from '@/utils/request' // 条件获得订单列表 export function orderList(query) { return request({ url: '/base/order/listbyfilter', method: 'get', params: query }) } // 条件获得工单列表 export function workOrderList(query) { return request({ url: '/base/core-work-order/listbyfilter', method: 'get', params: query }) } // 获得订单分页 export function getOrderPage(query) { return request({ url: '/base/order/page', method: 'get', params: query }) } // 获取订单code export function getOrderCode() { return request({ url: '/base/order/getOrderCode', method: 'get' }) } // 获取工单code export function getWorkOrderCode() { return request({ url: '/base/order/getWorkOrderCode', method: 'get' }) } // 获得订单 export function getOrderById(query) { return request({ url: '/base/order/get', method: 'get', params: query }) } // 获得工艺流程列表 export function getProcessFlowList() { return request({ url: '/extend/process-flow/listAll', method: 'get' }) } // 创建订单 export function orderCreate(data) { return request({ url: '/base/order/create', method: 'post', data: data }) } // 更新订单 export function orderUpdate(data) { return request({ url: '/base/order/update', method: 'put', data: data }) } // 删除订单 export function orderDelete(query) { return request({ url: '/base/order/delete', method: 'delete', params: query }) } // 下发订单,绑定的穿工单id,新建不传 export function orderIssue(data) { return request({ url: '/base/order/issue', method: 'post', data: data }) }