From 4791b237923e8775c5fec48776b4db73a48e9d83 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Mon, 28 Oct 2024 15:01:09 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E5=B7=A5=E7=A8=8B=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E7=89=A9=E6=96=99=E5=89=8D=E7=AB=AF=20=E7=89=A9=E6=96=99?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=9E=8B=E5=8F=B7=E5=AD=97=E6=AE=B5=EF=BC=8C=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=9E=8B=E5=8F=B7=E8=B6=85=E8=BF=875=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E9=9A=90=E8=97=8F=E9=83=A8=E5=88=86=E5=86=85=E5=AE=B9?= =?UTF-8?q?=20=E7=89=A9=E6=96=99=E5=89=8D=E7=AB=AF=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=96=B0=E5=A2=9E=20=E5=9E=8B=E5=8F=B7?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=EF=BC=8C=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=BF=85?= =?UTF-8?q?=E5=A1=AB=EF=BC=8C=E6=8F=90=E4=BA=A4=E6=96=B9=E6=B3=95=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=9E=8B=E5=8F=B7=E5=AD=97=E6=AE=B5=20=E7=89=A9?= =?UTF-8?q?=E6=96=99=E5=89=8D=E7=AB=AF=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E5=9E=8B=E5=8F=B7=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=EF=BC=8C=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=BF=85=E5=A1=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E=E6=96=B9=E6=B3=95=E9=83=BD=E5=8A=A0=E4=B8=8A=E5=9E=8B?= =?UTF-8?q?=E5=8F=B7=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/erp/domain/ErpMaterial.java | 26 ++++++++++++++++--- .../mapper/erp/ErpMaterialMapper.xml | 18 ++++++++----- .../resources/templates/erp/material/add.html | 10 ++++++- .../templates/erp/material/detail.html | 7 +++++ .../templates/erp/material/edit.html | 13 ++++++++-- .../templates/erp/material/material.html | 7 ++++- .../templates/erp/material/select.html | 2 ++ .../erp/material/taskGcjlVerify.html | 6 +++++ .../erp/material/taskGczgVerify.html | 6 +++++ .../erp/material/taskModifyApply.html | 14 +++++++--- .../erp/material/taskYfzjVerify.html | 6 +++++ 11 files changed, 96 insertions(+), 19 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterial.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterial.java index 06b8f218..95e8884a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterial.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterial.java @@ -53,10 +53,12 @@ public class ErpMaterial extends BaseEntity private String itemPR; /** 物料类型 */ private String materialType; + /** 物料类型名称 */ @Excel(name = "物料类型名称",sort = 5) private String materialTypeName; + /** 加工方式(0采购、1生产加工、2委外加工、3生产装配、4委外加工或采购) */ @Excel(name = "加工方式",sort = 9,dictType = "processMethod") private String processMethod; @@ -65,16 +67,21 @@ public class ErpMaterial extends BaseEntity @Excel(name = "单位",sort = 6) private String unit; + + /** 物料型号 */ + @Excel(name = "型号",sort = 7) + private String materialModel; + /** 品牌 */ - @Excel(name = "品牌",sort = 7) + @Excel(name = "品牌",sort = 8) private String brand; /** 描述 */ - @Excel(name = "描述",sort = 8) + @Excel(name = "描述",sort = 9) private String describe; /** 入库部门 */ - @Excel(name = "入库部门",sort = 9,dictType = "warehouseDept") + @Excel(name = "入库部门",sort = 10,dictType = "warehouseDept") private String warehouseDept; /*工程员*/ private String businessMembers; @@ -235,7 +242,17 @@ public class ErpMaterial extends BaseEntity { return unit; } - public void setBrand(String brand) + + + public String getMaterialModel() { + return materialModel; + } + + public void setMaterialModel(String materialModel) { + this.materialModel = materialModel; + } + + public void setBrand(String brand) { this.brand = brand; } @@ -462,6 +479,7 @@ public class ErpMaterial extends BaseEntity .append("materialType", getMaterialType()) .append("processMethod", getProcessMethod()) .append("unit", getUnit()) + .append("materialModel", getMaterialModel()) .append("brand", getBrand()) .append("describe", getDescribe()) .append("warehouseDept", getWarehouseDept()) diff --git a/ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml b/ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml index 6ef415d7..e7d86ae0 100644 --- a/ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml @@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -48,14 +49,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select id, del_flag, create_by, create_time, update_by, update_time, remark, bomNo, material_no, material_name, audit_status, use_status,cancel_remark, hava_product_tem,product_item,itemName, material_type, process_method, - unit, brand, `describe`, warehouse_dept,business_members,instance_id,instance_type,submit_instance_id, + unit, material_model, brand, `describe`, warehouse_dept,business_members,instance_id,instance_type,submit_instance_id, cancel_instance_id,restore_instance_id,apply_title,apply_user,apply_time from erp_material select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time, erp.remark,erp.bomNo, erp.material_no , erp.material_name, erp.audit_status, erp.use_status, erp.hava_product_tem,erp.product_item,erp.itemName, erp.material_type - , erp.process_method, erp.unit, erp.brand, erp.describe, erp.warehouse_dept,erp.supplier_id,erp.business_members,erp.cancel_remark + , erp.process_method, erp.unit, erp.material_model, erp.brand, erp.describe, erp.warehouse_dept,erp.supplier_id,erp.business_members,erp.cancel_remark ,erp.instance_id,erp.instance_type,erp.submit_instance_id,erp.cancel_instance_id,erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time ,att.id as photo_attach_id from erp_material erp @@ -137,7 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select erp.id, erp.del_flag, erp.create_by, erp.remark,erp.bomNo, erp.material_no, erp.material_name, erp.audit_status, erp.use_status, erp.hava_product_tem, - erp.material_type, erp.process_method, erp.unit, erp.brand, erp.`describe`, + erp.material_type, erp.process_method, erp.unit,erp.material_model, erp.brand, erp.`describe`, erp.warehouse_dept,erp.business_members,cate.parent_id,cate.name as material_type_name from erp_material erp left join ( @@ -213,6 +214,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" material_type, process_method, unit, + material_model, brand, `describe`, warehouse_dept, @@ -247,6 +249,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{materialType}, #{processMethod}, #{unit}, + #{materialModel}, #{brand}, #{describe}, #{warehouseDept}, @@ -289,6 +292,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" material_type = #{materialType}, process_method = #{processMethod}, unit = #{unit}, + material_model = #{materialModel}, brand = #{brand}, `describe` = #{describe}, warehouse_dept = #{warehouseDept}, @@ -345,7 +349,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" -
+ +
+ +
+ +
+
+
@@ -404,6 +411,7 @@ materialType: erpMaterialData.materialType, processMethod: erpMaterialData.processMethod, unit: erpMaterialData.unit, + materialModel: erpMaterialData.materialModel, brand: erpMaterialData.brand, describe: erpMaterialData.describe, warehouseDept: erpMaterialData.warehouseDept, diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/detail.html b/ruoyi-admin/src/main/resources/templates/erp/material/detail.html index 3174a8ba..a708a0f2 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/detail.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/detail.html @@ -51,6 +51,13 @@
+
+ +
+ +
+
+
diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/edit.html b/ruoyi-admin/src/main/resources/templates/erp/material/edit.html index b8c12d38..a7330c65 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/edit.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/edit.html @@ -24,7 +24,7 @@
- @@ -35,7 +35,7 @@
-
@@ -49,6 +49,14 @@
+ +
+ +
+ +
+
+
@@ -423,6 +431,7 @@ materialType: erpMaterialData.materialType, processMethod: erpMaterialData.processMethod, unit: erpMaterialData.unit, + materialModel: erpMaterialData.materialModel, brand: erpMaterialData.brand, describe: erpMaterialData.describe, warehouseDept: erpMaterialData.warehouseDept, diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/material.html b/ruoyi-admin/src/main/resources/templates/erp/material/material.html index c5773025..2bb2c0bd 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/material.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/material.html @@ -184,7 +184,12 @@ {title: '物料名称',field: 'materialName',align: 'center'}, {title: '描述',field: 'describe',align: 'center', formatter: function(value, row, index) { - return $.table.tooltip(value, 10, "open"); + return $.table.tooltip(value, 5, "open"); + } + }, + {title: '型号',field: 'materialModel',align: 'center', + formatter: function(value, row, index) { + return $.table.tooltip(value, 5, "open"); } }, {title: '品牌',field: 'brand',align: 'center'}, diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/select.html b/ruoyi-admin/src/main/resources/templates/erp/material/select.html index 97cb8c85..d197f5fe 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/select.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/select.html @@ -66,6 +66,8 @@ {title: '物料类型',field: 'materialType', formatter: function(value, row, index) {return $.table.selectCategoryLabel(materialTypeDatas, value);} }, + + {title: '型号', field: 'materialModel',}, {title: '品牌', field: 'brand',}, {title: '单位',field: 'unit',formatter: function(value, row, index) {return $.table.selectDictLabel(sysUnitClassDatas, value);}}, {title: '描述',field: 'describe',}, diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/taskGcjlVerify.html b/ruoyi-admin/src/main/resources/templates/erp/material/taskGcjlVerify.html index d331c13b..3e974e55 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/taskGcjlVerify.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/taskGcjlVerify.html @@ -78,6 +78,12 @@
+
+ +
+ +
+
diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/taskGczgVerify.html b/ruoyi-admin/src/main/resources/templates/erp/material/taskGczgVerify.html index 94ff6b26..79a2cb2a 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/taskGczgVerify.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/taskGczgVerify.html @@ -78,6 +78,12 @@
+
+ +
+ +
+
diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/taskModifyApply.html b/ruoyi-admin/src/main/resources/templates/erp/material/taskModifyApply.html index 432d5400..0329b450 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/taskModifyApply.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/taskModifyApply.html @@ -51,7 +51,7 @@
- @@ -65,7 +65,7 @@
- @@ -80,9 +80,15 @@
- +
- + +
+
+
+ +
+
diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/taskYfzjVerify.html b/ruoyi-admin/src/main/resources/templates/erp/material/taskYfzjVerify.html index 01a7b4f4..89999db5 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/taskYfzjVerify.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/taskYfzjVerify.html @@ -78,6 +78,12 @@
+
+ +
+ +
+