diff --git a/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/domain/MesBaseBarcodeInfo.java b/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/domain/MesBaseBarcodeInfo.java index 07a6b71..8b73db9 100644 --- a/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/domain/MesBaseBarcodeInfo.java +++ b/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/domain/MesBaseBarcodeInfo.java @@ -22,8 +22,8 @@ public class MesBaseBarcodeInfo extends BaseEntity private Long barcodeId; /** 打印时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "打印时间", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "打印时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date printTime; /** 打印人 */ @@ -31,15 +31,20 @@ public class MesBaseBarcodeInfo extends BaseEntity private String printPerson; /** 批次标识(0否,1是);在打印时,如果物料已设置,则根据物料的批次信息,如果没有设置则在此需要选择,选择物料等信息保存后同步设置物料信息。 */ - @Excel(name = "批次标识(0否,1是);在打印时,如果物料已设置,则根据物料的批次信息,如果没有设置则在此需要选择,选择物料等信息保存后同步设置物料信息。") + @Excel(name = "批次标识") private String batchFlag; + /** + * 打印标识(0否1是) + */ + @Excel(name = "打印标识") + private String printFlag; /** 条码类型(1原材料,2半成品,3成品,4背板) */ @Excel(name = "条码类型", readConverterExp = "1=原材料,2半成品,3成品,4背板") private String barcodeType; /** 条码内容;如果是按单个物料贴,则一个物料一个条码,如果是按批次贴,则条码跟批次代码相同 */ - @Excel(name = "条码内容;如果是按单个物料贴,则一个物料一个条码,如果是按批次贴,则条码跟批次代码相同") + @Excel(name = "条码内容") private String barcodeInfo; /** 批次代码 */ @@ -51,7 +56,7 @@ public class MesBaseBarcodeInfo extends BaseEntity private String palletInfoCode; /** 物料ID,关联mes_base_material_info的material_id */ - @Excel(name = "物料ID,关联mes_base_material_info的material_id") + @Excel(name = "物料ID") private Long materialId; /** 供应商ID */ @@ -66,39 +71,43 @@ public class MesBaseBarcodeInfo extends BaseEntity @Excel(name = "打印机台名称,打印时获取") private String machineName; + /** 打印次数 */ + @Excel(name = "打印次数") + private Long printNumber; + /** 采购订单号;适合原材料入库时 */ - @Excel(name = "采购订单号;适合原材料入库时") + @Excel(name = "采购订单号") private String poNo; /** 生产日期;打印时根据领料单选择输入 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "生产日期;打印时根据领料单选择输入", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date productionDate; /** 接受日期;打印时的系统日期 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "接受日期;打印时的系统日期", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "接受日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date acceptedDate; /** 最晚出库日期;可以直接输入,也可以根据日限计算 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "最晚出库日期;可以直接输入,也可以根据日限计算", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "最晚出库日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date lastOutstockDate; /** 生产计划编号,关联mes_pd_product_plan的plan_code;适合生产出入库等 */ - @Excel(name = "生产计划编号,关联mes_pd_product_plan的plan_code;适合生产出入库等") + @Excel(name = "生产计划编号") private String planCode; /** 生产计划明细编号,关联mes_product_plan_detail的plan_detail_code;适合生产出入库等 */ - @Excel(name = "生产计划明细编号,关联mes_product_plan_detail的plan_detail_code;适合生产出入库等") + @Excel(name = "生产计划明细编号") private String planDetailCode; /** 销售订单编号;适合生产出入库等 */ - @Excel(name = "销售订单ID;适合生产出入库等") + @Excel(name = "销售订单ID") private String saleOrderId; /** 销售订单编号;适合生产出入库等 */ - @Excel(name = "销售订单编号;适合生产出入库等") + @Excel(name = "销售订单编号") private String saleorderCode; /** 项目号 */ @@ -110,7 +119,7 @@ public class MesBaseBarcodeInfo extends BaseEntity private String serialNumber; /** 绑定状态(1绑定,0解绑) */ - @Excel(name = "绑定状态(1绑定,0解绑)") + @Excel(name = "绑定状态") private String bindStatus; /** 绑定托盘的人 */ @@ -118,10 +127,26 @@ public class MesBaseBarcodeInfo extends BaseEntity private String bindBy; /** 绑定托盘时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "绑定托盘时间", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "绑定托盘时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date bindTime; + public String getPrintFlag() { + return printFlag; + } + + public void setPrintFlag(String printFlag) { + this.printFlag = printFlag; + } + + public Long getPrintNumber() { + return printNumber; + } + + public void setPrintNumber(Long printNumber) { + this.printNumber = printNumber; + } + public void setBarcodeId(Long barcodeId) { this.barcodeId = barcodeId; diff --git a/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/domain/MesBaseMaterialInfo.java b/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/domain/MesBaseMaterialInfo.java index a2181e4..57c2554 100644 --- a/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/domain/MesBaseMaterialInfo.java +++ b/hw-api/hw-api-mes/src/main/java/com/hw/mes/api/domain/MesBaseMaterialInfo.java @@ -49,6 +49,10 @@ public class MesBaseMaterialInfo extends BaseEntity @Excel(name = "物料类型,关联mes_base_material_type的material_type_id") private Long materialTypeId; + /** 物料类型名称 */ + @Excel(name = "物料类型名称") + private String materialTypeName; + /** 批次标识,(0否,1是) */ @Excel(name = "批次标识,(0否,1是)") private String batchFlag; @@ -112,6 +116,15 @@ public class MesBaseMaterialInfo extends BaseEntity private Date erpModifyDate; private Long warehouseId; + + public String getMaterialTypeName() { + return materialTypeName; + } + + public void setMaterialTypeName(String materialTypeName) { + this.materialTypeName = materialTypeName; + } + public void setMaterialId(Long materialId) { this.materialId = materialId; diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesProductOrderServiceImpl.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesProductOrderServiceImpl.java index 706227e..89f5d1a 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesProductOrderServiceImpl.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesProductOrderServiceImpl.java @@ -126,7 +126,7 @@ public class MesProductOrderServiceImpl implements IMesProductOrderService { return; } MesProductOrder productOrder = new MesProductOrder(); - mesProductOrder.setSaleOrderId(mesProductOrder.getSaleOrderId()); + productOrder.setSaleOrderId(mesProductOrder.getSaleOrderId()); List mesProductOrders = mesProductOrderMapper.selectMesProductOrderList(productOrder); BigDecimal sumDecimal = new BigDecimal(0); if (StringUtils.isNotNull(mesProductOrders)) { diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseBarcodeInfoMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseBarcodeInfoMapper.xml index f200b40..c65137a 100644 --- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseBarcodeInfoMapper.xml +++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseBarcodeInfoMapper.xml @@ -1,70 +1,109 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - select barcode_id, print_time, print_person, batch_flag, barcode_type, barcode_info, batch_code, pallet_info_code, material_id, manufacturer_id, amount, machine_name, po_no, production_date, accepted_date, last_outstock_date, plan_code, plan_detail_code, sale_order_id, saleorder_code, project_no, serial_number, remark, bind_status, bind_by, bind_time, update_by, update_time from mes_base_barcode_info + select barcode_id, + print_time, + print_person, + batch_flag, + barcode_type, + barcode_info, + batch_code, + pallet_info_code, + material_id, + manufacturer_id, + amount, + machine_name, + print_number, + po_no, + production_date, + accepted_date, + last_outstock_date, + plan_code, + plan_detail_code, + sale_order_id, + saleorder_code, + project_no, + print_flag, + serial_number, + remark, + bind_status, + bind_by, + bind_time, + update_by, + update_time + from mes_base_barcode_info @@ -73,11 +112,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where barcode_id = #{barcodeId} - + insert into mes_base_barcode_info print_time, print_person, + print_flag, batch_flag, barcode_type, barcode_info, @@ -87,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" manufacturer_id, amount, machine_name, + print_number, po_no, production_date, accepted_date, @@ -107,6 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{printTime}, #{printPerson}, + #{printFlag}, #{batchFlag}, #{barcodeType}, #{barcodeInfo}, @@ -116,6 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{manufacturerId}, #{amount}, #{machineName}, + #{printNumber}, #{poNo}, #{productionDate}, #{acceptedDate}, @@ -141,6 +185,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" print_time = #{printTime}, print_person = #{printPerson}, batch_flag = #{batchFlag}, + print_flag = #{printFlag}, barcode_type = #{barcodeType}, barcode_info = #{barcodeInfo}, batch_code = #{batchCode}, @@ -149,12 +194,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" manufacturer_id = #{manufacturerId}, amount = #{amount}, machine_name = #{machineName}, + print_number = #{printNumber}, po_no = #{poNo}, production_date = #{productionDate}, accepted_date = #{acceptedDate}, last_outstock_date = #{lastOutstockDate}, plan_code = #{planCode}, plan_detail_code = #{planDetailCode}, + sale_order_id = #{saleOrderId}, saleorder_code = #{saleorderCode}, project_no = #{projectNo}, serial_number = #{serialNumber}, @@ -169,7 +216,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from mes_base_barcode_info where barcode_id = #{barcodeId} + delete + from mes_base_barcode_info + where barcode_id = #{barcodeId} @@ -179,12 +228,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - - - - + \ No newline at end of file diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseMaterialInfoMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseMaterialInfoMapper.xml index 4640807..5cc219a 100644 --- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseMaterialInfoMapper.xml +++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBaseMaterialInfoMapper.xml @@ -13,6 +13,7 @@ + @@ -37,76 +38,78 @@ - select material_id, - erp_id, - material_code, - old_material_code, - material_name, - material_categories, - material_subclass, - material_type_id, - batch_flag, - material_unit_id, - material_unit, - material_matkl, - material_spec, - net_weight, - gross_weight, - factory_id, - create_org_id, - use_org_id, - prodline_id, - active_flag, - deleted_flag, - remark, - create_by, - create_time, - update_by, - update_time, - approve_date, - erp_modify_date - from mes_base_material_info + select bmi.material_id, + bmi.erp_id, + bmi.material_code, + bmi.old_material_code, + bmi.material_name, + bmi.material_categories, + bmi.material_subclass, + bmi.material_type_id, + bmt.type_name material_type_name, + bmi.batch_flag, + bmi.material_unit_id, + bmi.material_unit, + bmi.material_matkl, + bmi.material_spec, + bmi.net_weight, + bmi.gross_weight, + bmi.factory_id, + bmi.create_org_id, + bmi.use_org_id, + bmi.prodline_id, + bmi.active_flag, + bmi.deleted_flag, + bmi.remark, + bmi.create_by, + bmi.create_time, + bmi.update_by, + bmi.update_time, + bmi.approve_date, + bmi.erp_modify_date + from mes_base_material_info bmi + left join mes_base_material_type bmt on bmt.matrial_type_id = bmi.material_type_id - where material_id in + where bmi.material_id in #{materialId} diff --git a/hw-modules/pom.xml b/hw-modules/pom.xml index 2100247..8d759cd 100644 --- a/hw-modules/pom.xml +++ b/hw-modules/pom.xml @@ -18,6 +18,8 @@ hw-tdengine hw-wms hw-mes + hw-qms + hw-printer hw-modules diff --git a/hw-ui/src/api/mes/barcode.js b/hw-ui/src/api/mes/barcode.js new file mode 100644 index 0000000..a3ed198 --- /dev/null +++ b/hw-ui/src/api/mes/barcode.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询条码信息列表 +export function listBarcode(query) { + return request({ + url: '/mes/barcode/list', + method: 'get', + params: query + }) +} + +// 查询条码信息详细 +export function getBarcode(barcodeId) { + return request({ + url: '/mes/barcode/' + barcodeId, + method: 'get' + }) +} + +// 新增条码信息 +export function addBarcode(data) { + return request({ + url: '/mes/barcode', + method: 'post', + data: data + }) +} + +// 修改条码信息 +export function updateBarcode(data) { + return request({ + url: '/mes/barcode', + method: 'put', + data: data + }) +} + +// 删除条码信息 +export function delBarcode(barcodeId) { + return request({ + url: '/mes/barcode/' + barcodeId, + method: 'delete' + }) +} diff --git a/hw-ui/src/views/mes/barcode/endProductIndex.vue b/hw-ui/src/views/mes/barcode/endProductIndex.vue new file mode 100644 index 0000000..0498949 --- /dev/null +++ b/hw-ui/src/views/mes/barcode/endProductIndex.vue @@ -0,0 +1,744 @@ + + + + diff --git a/hw-ui/src/views/mes/barcode/index.vue b/hw-ui/src/views/mes/barcode/index.vue new file mode 100644 index 0000000..15ab81f --- /dev/null +++ b/hw-ui/src/views/mes/barcode/index.vue @@ -0,0 +1,563 @@ + + + diff --git a/hw-ui/src/views/mes/materialinfo/index.vue b/hw-ui/src/views/mes/materialinfo/index.vue index 832d8c8..728a3a5 100644 --- a/hw-ui/src/views/mes/materialinfo/index.vue +++ b/hw-ui/src/views/mes/materialinfo/index.vue @@ -19,12 +19,14 @@ /> - + + + - + + + - - - - - 搜索 重置 @@ -59,16 +53,16 @@ - - 新增 - + + + + + + + + + + 修改 - - - 删除 + >修改 + + + + + + + + + + + + 导出 + >导出 + - - - - - - - - - - + + + + + + + + + + + + + + + @@ -146,85 +152,99 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + + + + - - + + + {{ dict.label }} + + - - - + + + + + + - - - + + + {{ dict.label }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +