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 @@