From 031e3098b78669ccfb7ef0501a3e8b0251ae2a8d Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 27 Dec 2024 15:00:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=AE=A1=E7=90=86bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/coreWorkOrder.js | 9 + src/api/base/product.js | 10 +- .../orderManage/components/addWorkOrder.vue | 333 +++++++++++------- .../base/orderManage/components/orderAdd.vue | 12 +- .../orderManage/components/orderSplit.vue | 2 +- .../produce/order/base/orderManage/index.vue | 29 +- .../components/monitoringRingCharts.vue | 2 +- .../orderCompletionMonitoring/index.vue | 5 +- src/views/produce/workOrder/addWorkOrder.vue | 49 +-- .../produce/workOrder/allocation copy.vue | 311 ++++++++++++++++ src/views/produce/workOrder/allocation.vue | 155 ++------ src/views/produce/workOrder/detail.vue | 8 +- src/views/produce/workOrder/index.vue | 21 +- 13 files changed, 603 insertions(+), 343 deletions(-) create mode 100644 src/views/produce/workOrder/allocation copy.vue diff --git a/src/api/base/coreWorkOrder.js b/src/api/base/coreWorkOrder.js index ba6b362c..bb50ab9b 100644 --- a/src/api/base/coreWorkOrder.js +++ b/src/api/base/coreWorkOrder.js @@ -161,3 +161,12 @@ export function createConCoreWOr(data) { data: data }) } + +// 更新分配产量 +export function updateBatch(data) { + return request({ + url: '/base/core-order-con-work-order/updateBatch', + method: 'put', + data: data + }) +} \ No newline at end of file diff --git a/src/api/base/product.js b/src/api/base/product.js index 2924c882..af1ae833 100644 --- a/src/api/base/product.js +++ b/src/api/base/product.js @@ -1,8 +1,16 @@ import request from '@/utils/request' -// 获得产品列表 +// 获得物料列表(包括产品) export function getProductAll() { return request({ url: '/base/core-product-material/listAll', method: 'get' }) } +// 获得产品列表 +export function getProductList() { + return request({ + url: '/base/core-product-material/listAllProduct', + method: 'get' + }) +} + diff --git a/src/views/produce/order/base/orderManage/components/addWorkOrder.vue b/src/views/produce/order/base/orderManage/components/addWorkOrder.vue index 3ff65ac0..cef29148 100644 --- a/src/views/produce/order/base/orderManage/components/addWorkOrder.vue +++ b/src/views/produce/order/base/orderManage/components/addWorkOrder.vue @@ -8,7 +8,7 @@ - + 绑定工单 新增工单 @@ -48,16 +48,19 @@ - {{ item.name }} - - {{ item.specifications }} - - + :label="item.name" + :value="item.id"/> + + + + + - - - - - - - - - - - - - - - - + @@ -178,37 +153,123 @@ - - + + + + 物料计算方式 + + 产品基础BOM + 工艺扩展BOM + + + +
+ + + 关联产线 + + 新增 + + + + + - - - - + + + - - - + :disabled="isBind" + step-strictly /> + + + +
+
+ + + + 关联产线及工艺 + + + 新增 + + + + + + + + + + + + + + + + + + + + +
+ diff --git a/src/views/produce/order/base/orderManage/components/orderAdd.vue b/src/views/produce/order/base/orderManage/components/orderAdd.vue index 8f0174c6..9c0dce6f 100644 --- a/src/views/produce/order/base/orderManage/components/orderAdd.vue +++ b/src/views/produce/order/base/orderManage/components/orderAdd.vue @@ -19,6 +19,12 @@ + + + + + @@ -79,7 +85,7 @@ + diff --git a/src/views/produce/workOrder/allocation.vue b/src/views/produce/workOrder/allocation.vue index 36095e3a..3b48fca6 100644 --- a/src/views/produce/workOrder/allocation.vue +++ b/src/views/produce/workOrder/allocation.vue @@ -31,7 +31,6 @@
- - - + + - - - -
- -