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 383637f7..eb921657 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 @@ -82,7 +82,7 @@ and bmi.erp_id = #{erpId} - and bmi.material_code = #{materialCode} + and bmi.material_code like concat('%', #{materialCode},'%') and bmi.old_material_code = #{oldMaterialCode} and bmi.material_name like concat('%', #{materialName}, diff --git a/hw-ui/src/views/mes/materialBom/index.vue b/hw-ui/src/views/mes/materialBom/index.vue index 2a97a5b1..7a972f5a 100644 --- a/hw-ui/src/views/mes/materialBom/index.vue +++ b/hw-ui/src/views/mes/materialBom/index.vue @@ -202,7 +202,7 @@ - + { - this.baseMaterialTypeOptions = []; - const data = {matrialTypeId: 0, typeName: '顶级节点', children: []}; - data.children = this.handleTree(response.data, "matrialTypeId", "parentId"); - this.baseMaterialTypeOptions.push(data); + this.baseMaterialTypeOptions = this.handleTree(response.data, "matrialTypeId", "parentId"); }); }, /** 删除按钮操作 */ diff --git a/hw-ui/src/views/mes/processInfo/index.vue b/hw-ui/src/views/mes/processInfo/index.vue index 8708da4a..dd28e16a 100644 --- a/hw-ui/src/views/mes/processInfo/index.vue +++ b/hw-ui/src/views/mes/processInfo/index.vue @@ -85,6 +85,7 @@ +