From 00972112d2314732e91d7f019cd278b81bb206d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Fri, 12 Jun 2026 13:31:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=9A=E6=A8=A1=E5=9D=97=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=8A=9F=E8=83=BD=E4=B8=8E=E4=BC=98=E5=8C=96=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 隐藏客户录入页的客户编码字段 2. 为WmsMaterialWarningBo添加日期格式化注解 3. 合同产品选择时自动匹配默认材质 4. 物料告警页新增今日筛选、行样式区分与偏差率展示优化 5. 合同页新增快速新增客户功能 --- .../contract/components/ProductContent.vue | 21 +++- klp-ui/src/views/crm/contract/index.vue | 109 +++++++++++++++++- klp-ui/src/views/crm/customer/index.vue | 4 +- .../views/wms/coil/materialWarning/index.vue | 45 +++++++- .../klp/domain/bo/WmsMaterialWarningBo.java | 3 + 5 files changed, 168 insertions(+), 14 deletions(-) diff --git a/klp-ui/src/views/crm/contract/components/ProductContent.vue b/klp-ui/src/views/crm/contract/components/ProductContent.vue index a66ad638..e2396575 100644 --- a/klp-ui/src/views/crm/contract/components/ProductContent.vue +++ b/klp-ui/src/views/crm/contract/components/ProductContent.vue @@ -147,6 +147,14 @@ export default { products: [], remark: '', productName: '', + previousProductName: '', + productMaterialMap: { + '冷硬钢卷': 'SPCC', + '镀锌钢卷': 'DX51D+Z', + '冷轧钢卷': 'DC01', + '冷轧卷(花纹)': 'DC01-H', + '镀铬钢卷': 'SPCC', + }, productOptions: [ { label: '冷硬钢卷', value: '冷硬钢卷' }, { label: '镀锌钢卷', value: '镀锌钢卷' }, @@ -231,7 +239,18 @@ export default { this.parseContent(newValue); }, immediate: true - } + }, + productName(newName) { + const material = this.productMaterialMap[newName]; + if (material) { + this.products.forEach(item => { + if (item.material === undefined || item.material === '' || item.material === this.productMaterialMap[this.previousProductName]) { + item.material = material; + } + }); + } + this.previousProductName = newName; + }, }, methods: { // 初始化产品的默认字段 diff --git a/klp-ui/src/views/crm/contract/index.vue b/klp-ui/src/views/crm/contract/index.vue index dfa3ef02..8d5f7bfe 100644 --- a/klp-ui/src/views/crm/contract/index.vue +++ b/klp-ui/src/views/crm/contract/index.vue @@ -129,8 +129,11 @@ - + :style="{ width: 'calc(100% - 50px)' }" /> + + @@ -175,9 +178,50 @@ - -
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -185,6 +229,7 @@ + diff --git a/klp-wms/src/main/java/com/klp/domain/bo/WmsMaterialWarningBo.java b/klp-wms/src/main/java/com/klp/domain/bo/WmsMaterialWarningBo.java index 6f8b92f0..8fa064f6 100644 --- a/klp-wms/src/main/java/com/klp/domain/bo/WmsMaterialWarningBo.java +++ b/klp-wms/src/main/java/com/klp/domain/bo/WmsMaterialWarningBo.java @@ -8,6 +8,7 @@ import javax.validation.constraints.*; import java.math.BigDecimal; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; /** * 钢卷通用维度告警(长度/厚度/宽度)业务对象 wms_material_warning @@ -108,12 +109,14 @@ public class WmsMaterialWarningBo extends BaseEntity { /** * 创建开始时间 */ + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createStartTime; /** * 创建结束时间 */ + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createEndTime;