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