From d618d8db0e69ea18ad100f601b8b65bebc38f0e3 Mon Sep 17 00:00:00 2001 From: jiyufei <67400194@qq.com> Date: Fri, 23 Aug 2024 13:27:17 +0800 Subject: [PATCH] =?UTF-8?q?feat():=E7=BB=91=E5=AE=9A=E7=89=A9=E6=96=99?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jnpf/entity/YysDeviceMaterialEntity.java | 4 + .../entity/YysMaterialInformationEntity.java | 4 + .../YysMaterialInformationForm.java | 7 + .../jnpf-web/src/views/yys/yysdevice/form.vue | 128 ++++++------------ .../src/views/yys/yysdevice/index.vue | 4 +- 5 files changed, 57 insertions(+), 90 deletions(-) diff --git a/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/entity/YysDeviceMaterialEntity.java b/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/entity/YysDeviceMaterialEntity.java index 2227994..0a6989e 100644 --- a/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/entity/YysDeviceMaterialEntity.java +++ b/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/entity/YysDeviceMaterialEntity.java @@ -19,6 +19,10 @@ public class YysDeviceMaterialEntity { private String materialId; @TableField(value = "MATERIAL_NAME" , updateStrategy = FieldStrategy.IGNORED) private String materialName; + @TableField(value = "EIGHT_OUTPUT" , updateStrategy = FieldStrategy.IGNORED) + private String eightOutput; + @TableField(value = "TWELVE_OUTPUT" , updateStrategy = FieldStrategy.IGNORED) + private String twelveOutput; @TableField("F_CREATOR_TIME") private Date creatorTime; @TableField("F_CREATOR_USER_ID") diff --git a/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/entity/YysMaterialInformationEntity.java b/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/entity/YysMaterialInformationEntity.java index ec09678..1653949 100644 --- a/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/entity/YysMaterialInformationEntity.java +++ b/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/entity/YysMaterialInformationEntity.java @@ -32,6 +32,10 @@ public class YysMaterialInformationEntity { private String safetyStock; @TableField(value = "ENABLE_STATUS" , updateStrategy = FieldStrategy.IGNORED) private String enableStatus; + @TableField(value = "EIGHT_OUTPUT" , updateStrategy = FieldStrategy.IGNORED) + private String eightOutput; + @TableField(value = "TWELVE_OUTPUT" , updateStrategy = FieldStrategy.IGNORED) + private String twelveOutput; @TableField("REAMRK") private String reamrk; @TableField("F_CREATOR_TIME") diff --git a/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/model/yysmaterialinformation/YysMaterialInformationForm.java b/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/model/yysmaterialinformation/YysMaterialInformationForm.java index 3a0b99d..7c4c8dd 100644 --- a/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/model/yysmaterialinformation/YysMaterialInformationForm.java +++ b/jnpf-java-boot/jnpf-example/jnpf-example-entity/src/main/java/jnpf/model/yysmaterialinformation/YysMaterialInformationForm.java @@ -41,4 +41,11 @@ public class YysMaterialInformationForm { /** 启用状态 **/ @JsonProperty("enableStatus") private Object enableStatus; + + /** 8小时产量 **/ + @JsonProperty("eightOutput") + private String eightOutput; + /** 12小时产量 **/ + @JsonProperty("twelveOutput") + private String twelveOutput; } diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysdevice/form.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysdevice/form.vue index 8b12a01..9e642f1 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysdevice/form.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysdevice/form.vue @@ -1,91 +1,47 @@ @@ -188,6 +138,7 @@ import { } from "@/components/Generator/utils/index.js"; import { thousandsFormat } from "@/components/Generator/utils/index"; import MaterialListDialog from "@/views/yys/yysdevice/MaterialListDialog"; +import { Input } from "element-ui"; export default { components: { MaterialListDialog @@ -284,7 +235,7 @@ export default { this.initDefaultData(); this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm)); }, - mounted() {}, + mounted() { }, methods: { fnMaterialListDialog() { this.$nextTick(() => { @@ -390,7 +341,7 @@ export default { } } }, - dataAll() {}, + dataAll() { }, clearData() { this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll)); }, @@ -430,7 +381,7 @@ export default { this.$store.commit("generator/UPDATE_RELATION_DATA", {}); }, //初始化默认数据 - initDefaultData() {}, + initDefaultData() { }, // 表单提交 dataFormSubmit(type) { this.dataFormSubmitType = type ? type : 0; @@ -442,6 +393,7 @@ export default { }, request() { let _data = this.dataList(); + console.log(_data) if (this.dataFormSubmitType == 2) { this.continueBtnLoading = true; } else { diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysdevice/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysdevice/index.vue index c9ec805..33ea93d 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysdevice/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysdevice/index.vue @@ -50,10 +50,10 @@ - +