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 }) } // 获得工单 export function getWorkOrderById(query) { return request({ url: '/base/core-work-order/get', method: 'get', params: query }) } // 订单监控 export function orderMonitor(query) { return request({ url: '/base/order/orderMonitor', method: 'get', params: query }) } // 获取订单绑定的工单和数量信息,可传订单id列表,map索引为订单id export function orderAssignmentList(query) { return request({ url: '/base/order/orderAssignmentList', method: 'get', params: query }) } // 获得所有客户列表 export function customerList() { return request({ url: '/base/core-customer/listAll', method: 'get' }) } // 获得订单详情 export function orderDetail(query) { return request({ url: '/base/order/getDetail', method: 'get', params: query }) } // 产品bom消耗信息 export function bomUseNum(query) { return request({ url: '/base/material-product-bom/bomUseNum', method: 'get', params: query }) } // 完成订单 export function orderFinish(query) { return request({ url: '/base/order/finish', method: 'post', params: query }) }