From 23ffc3d1b99bb892310fc91b88f9b6741b7a0011 Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Thu, 20 Jul 2023 18:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/pro/order.js | 88 ++- src/views/mes/pro/order/index.vue | 1177 +++++++++++++++++++---------- 2 files changed, 851 insertions(+), 414 deletions(-) diff --git a/src/api/mes/pro/order.js b/src/api/mes/pro/order.js index b72ba42..fb417e3 100644 --- a/src/api/mes/pro/order.js +++ b/src/api/mes/pro/order.js @@ -1,44 +1,86 @@ import request from '@/utils/request' +//通过母订单id查询最新工单列表 +export function getWorkOrderList(id) { + return request({ + url: '/mes/order/getWorkOrderList/' + id, + method: 'get' + }) +} + +//通过母订单id查询最新订单列表 +export function getOrderList(id) { + return request({ + url: '/mes/order/getOrderList/' + id, + method: 'get' + }) +} + +// 提交拆分 +export function subSplitOrder(data) { + return request({ + url: '/mes/order/subSplitOrder', + method: 'post', + data: data + }) +} + + +// 获取换算值 +export function getConvert() { + return request({ + url: '/mes/order/getConvert', + method: 'get', + }) +} + +// 获取线体 +export function getprodLineShift() { + return request({ + url: '/mes/order/getProdLineShift', + method: 'get', + }) +} + // 查询订单列表 export function listOrder(query) { - return request({ - url: '/mes/order/list', - method: 'get', - params: query - }); + return request({ + url: '/mes/order/list', + method: 'get', + params: query + }); } // 查询订单详细 export function getOrder(id) { - return request({ - url: '/mes/order/' + id, - method: 'get' - }); + return request({ + url: '/mes/order/' + id, + method: 'get' + }); } // 新增订单 export function addOrder(data) { - return request({ - url: '/mes/order', - method: 'post', - data: data - }); + return request({ + url: '/mes/order', + method: 'post', + data: data + }); } // 修改订单 export function updateOrder(data) { - return request({ - url: '/mes/order', - method: 'put', - data: data - }); + return request({ + url: '/mes/order', + method: 'put', + data: data + }); } // 删除订单 export function delOrder(id) { - return request({ - url: '/mes/order/' + id, - method: 'delete' - }); + return request({ + url: '/mes/order/' + id, + method: 'delete' + }); } diff --git a/src/views/mes/pro/order/index.vue b/src/views/mes/pro/order/index.vue index 2e12cf0..f272cde 100644 --- a/src/views/mes/pro/order/index.vue +++ b/src/views/mes/pro/order/index.vue @@ -1,401 +1,796 @@ +