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;