From 6322c2fd0ab355e74f6875b948bca13bc512f4e2 Mon Sep 17 00:00:00 2001 From: yinq Date: Sat, 23 Mar 2024 19:10:26 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E9=80=9A=E8=BF=87=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=AE=A1=E5=88=92=E6=B7=BB=E5=8A=A0=E6=88=90=E5=93=81?= =?UTF-8?q?=E6=9D=A1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hw/mes/domain/MesProductPlan.java | 26 ++ .../mapper/mes/MesProductPlanMapper.xml | 4 + .../src/views/mes/barcode/endProductIndex.vue | 47 +-- .../mes/productOrder/addProductOrder.vue | 329 ++++++++++++++++++ .../views/mes/productplan/addProductPlan.vue | 320 +++++++++++++++++ 5 files changed, 704 insertions(+), 22 deletions(-) create mode 100644 hw-ui/src/views/mes/productOrder/addProductOrder.vue create mode 100644 hw-ui/src/views/mes/productplan/addProductPlan.vue diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesProductPlan.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesProductPlan.java index 2703663..bec0fa9 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesProductPlan.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesProductPlan.java @@ -155,6 +155,32 @@ public class MesProductPlan extends BaseEntity /** 工单已派工数量 */ private BigDecimal dispatchedAmount; + /** + * 销售订单ID,关联mes_sale_order的order_id;一个销售订单可以有多个生产工单 + */ + private Long saleOrderId; + + /** + * 销售订单编号 + */ + private String saleorderCode; + + public Long getSaleOrderId() { + return saleOrderId; + } + + public void setSaleOrderId(Long saleOrderId) { + this.saleOrderId = saleOrderId; + } + + public String getSaleorderCode() { + return saleorderCode; + } + + public void setSaleorderCode(String saleorderCode) { + this.saleorderCode = saleorderCode; + } + public String getSopId() { return sopId; } diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductPlanMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductPlanMapper.xml index ec68999..8fc1a18 100644 --- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductPlanMapper.xml +++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductPlanMapper.xml @@ -41,6 +41,8 @@ + + @@ -93,6 +95,8 @@ mpp.real_end_time, mpp.attach_id, mpp.sop_id, + po.sale_order_id, + po.saleorder_code, mpp.plan_status, mpp.is_flag, mpp.remark, diff --git a/hw-ui/src/views/mes/barcode/endProductIndex.vue b/hw-ui/src/views/mes/barcode/endProductIndex.vue index b4a6460..8482f94 100644 --- a/hw-ui/src/views/mes/barcode/endProductIndex.vue +++ b/hw-ui/src/views/mes/barcode/endProductIndex.vue @@ -95,6 +95,7 @@ + @@ -131,7 +132,6 @@ {{ parseTime(scope.row.printTime, '{y}-{m}-{d} {h}:{i}:{s}') }} - @@ -194,11 +194,14 @@ - - - + + + + + + @@ -284,12 +287,12 @@ - - - + + + @@ -297,14 +300,13 @@ diff --git a/hw-ui/src/views/mes/productplan/addProductPlan.vue b/hw-ui/src/views/mes/productplan/addProductPlan.vue new file mode 100644 index 0000000..46d2cf6 --- /dev/null +++ b/hw-ui/src/views/mes/productplan/addProductPlan.vue @@ -0,0 +1,320 @@ + + +