From 9412139f5b78ad81c68f79c0a1c310e0d85103a4 Mon Sep 17 00:00:00 2001 From: yinq Date: Wed, 17 Jul 2024 15:00:05 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E7=94=9F=E4=BA=A7=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=89=8D=E7=BD=AE=E7=94=9F=E4=BA=A7=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hw/mes/domain/MesProductOrder.java | 28 +++++++++++ .../mapper/mes/MesProductOrderMapper.xml | 5 ++ .../mes/productOrder/addProductOrder.vue | 20 +++++--- hw-ui/src/views/mes/productOrder/index.vue | 46 ++++++++++++++++++- 4 files changed, 90 insertions(+), 9 deletions(-) diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesProductOrder.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesProductOrder.java index 53f3d0f..dd884d6 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesProductOrder.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesProductOrder.java @@ -197,6 +197,34 @@ public class MesProductOrder extends BaseEntity { @Excel(name = "单位时间") private Long productionTime; + /** + * 前置生产工单ID + */ + @Excel(name = "前置生产工单ID") + private Long preOrderId; + + /** + * 前置生产工单编号 + */ + @Excel(name = "前置生产工单编号") + private String preOrderCode; + + public String getPreOrderCode() { + return preOrderCode; + } + + public void setPreOrderCode(String preOrderCode) { + this.preOrderCode = preOrderCode; + } + + public Long getPreOrderId() { + return preOrderId; + } + + public void setPreOrderId(Long preOrderId) { + this.preOrderId = preOrderId; + } + public Long getProductionTime() { return productionTime; } diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductOrderMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductOrderMapper.xml index 24980d3..77e1de3 100644 --- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductOrderMapper.xml +++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductOrderMapper.xml @@ -75,6 +75,7 @@ mpo.create_time, mpo.update_by, mpo.update_time, + mpo.pre_order_id, mbr.production_time from mes_product_order mpo left join (select a.route_id, @@ -115,6 +116,7 @@ and mpo.order_status = #{orderStatus} and mpo.stock_lock_flag = #{stockLockFlag} and mpo.sale_order_flag = #{saleOrderFlag} + and mpo.pre_order_id = #{preOrderId} and mpo.create_by = #{createBy} and mpo.create_time = #{createTime} and mpo.update_by = #{updateBy} @@ -160,6 +162,7 @@ update_by, update_time, plan_delivery_date, + pre_order_id, #{orderCode}, @@ -190,6 +193,7 @@ #{updateBy}, #{updateTime}, #{planDeliveryDate}, + #{preOrderId}, @@ -224,6 +228,7 @@ update_by = #{updateBy}, update_time = #{updateTime}, plan_delivery_date = #{planDeliveryDate}, + pre_order_id = #{preOrderId}, where product_order_id = #{productOrderId} diff --git a/hw-ui/src/views/mes/productOrder/addProductOrder.vue b/hw-ui/src/views/mes/productOrder/addProductOrder.vue index 6c4d6e1..461dc37 100644 --- a/hw-ui/src/views/mes/productOrder/addProductOrder.vue +++ b/hw-ui/src/views/mes/productOrder/addProductOrder.vue @@ -27,6 +27,16 @@ /> + + + + + 搜索 重置 @@ -52,9 +62,9 @@ - + @@ -130,12 +140,8 @@