From 4d805279c90d0ffc73ad241a9e871a4bb8c2dd5c Mon Sep 17 00:00:00 2001 From: zhangjunwen Date: Sun, 29 Sep 2024 17:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=A2=9E=E5=8A=A0=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=90=8D=E4=BB=A5=E5=8F=8A=E8=AE=BE=E5=A4=87=E7=9C=8B?= =?UTF-8?q?=E6=9D=BF=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equip/vo/EquipInfoDetailsVO.java | 10 + .../equip/vo/EquipInfoPageReqVO.java | 2 + .../controller/equip/vo/EquipInfoRespVO.java | 4 + .../equip/vo/EquipInfoSaveReqVO.java | 4 + .../dal/dataobject/equip/EquipInfoDO.java | 12 + .../service/equip/EquipInfoServiceImpl.java | 1 + .../views/system/equip/equipInfo/index.vue | 288 +++++++++++++----- .../system/equip/equipdashboard/index.vue | 24 ++ 8 files changed, 276 insertions(+), 69 deletions(-) diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoDetailsVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoDetailsVO.java index be702b5..364bf4e 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoDetailsVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoDetailsVO.java @@ -23,6 +23,11 @@ public class EquipInfoDetailsVO { */ private String equipNo; + /** + * 设备名称 + */ + private String equipName; + /** * 客户信息id */ @@ -48,6 +53,11 @@ public class EquipInfoDetailsVO { */ private Integer status; + /** + * 机床运行状态 + */ + private Integer runStatus; + /** * 技术参数 */ diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoPageReqVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoPageReqVO.java index 920998b..8c8a98f 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoPageReqVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoPageReqVO.java @@ -22,4 +22,6 @@ public class EquipInfoPageReqVO extends PageParam { @Schema(description = "机床状态") private Integer status; + @Schema(description = "机床运行状态") + private Integer runStatus; } \ No newline at end of file diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoRespVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoRespVO.java index 7c83d1a..060750b 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoRespVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoRespVO.java @@ -37,6 +37,10 @@ public class EquipInfoRespVO { @ExcelProperty("机床设备编号") private String equipNo; + @Schema(description = "机床设备名称", requiredMode = Schema.RequiredMode.REQUIRED) + @ExcelProperty("机床设备名称") + private String equipName; + @Schema(description = "生产日期") @ExcelProperty("生产日期") @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoSaveReqVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoSaveReqVO.java index a67d825..7e863b2 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoSaveReqVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoSaveReqVO.java @@ -31,6 +31,10 @@ public class EquipInfoSaveReqVO { @Size(message = "机床设备编号最大不允许超过30个字符", max = 30) private String equipNo; + @Schema(description = "机床设备名称", requiredMode = Schema.RequiredMode.REQUIRED) + @Size(message = "机床设备名称不允许超过50个字符", max = 30) + private String equipName; + @Schema(description = "生产日期") @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) private Date productDate; diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/equip/EquipInfoDO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/equip/EquipInfoDO.java index b54647f..2edad36 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/equip/EquipInfoDO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/equip/EquipInfoDO.java @@ -38,6 +38,12 @@ public class EquipInfoDO extends BaseDO { * 客户信息id */ private String customerId; + + /** + * 机床设备名称 + */ + private String equipName; + /** * 机床设备编号 */ @@ -59,6 +65,12 @@ public class EquipInfoDO extends BaseDO { * */ private Integer status; + + /** + * 机床运行状态 + */ + private Integer runStatus; + /** * 二维码图片路径 */ diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/service/equip/EquipInfoServiceImpl.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/service/equip/EquipInfoServiceImpl.java index 6a2620f..30ee677 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/service/equip/EquipInfoServiceImpl.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/service/equip/EquipInfoServiceImpl.java @@ -45,6 +45,7 @@ public class EquipInfoServiceImpl implements EquipInfoService { public String createEquipInfo(EquipInfoSaveReqVO createReqVO) { // 插入 EquipInfoDO equipInfo = BeanUtils.toBean(createReqVO, EquipInfoDO.class); + equipInfo.setRunStatus(0);//新增设备默认正常 equipInfoMapper.insert(equipInfo); // 返回 return equipInfo.getEquipId(); diff --git a/imt-ui/src/views/system/equip/equipInfo/index.vue b/imt-ui/src/views/system/equip/equipInfo/index.vue index 9eddf29..3052470 100644 --- a/imt-ui/src/views/system/equip/equipInfo/index.vue +++ b/imt-ui/src/views/system/equip/equipInfo/index.vue @@ -1,104 +1,250 @@ - - - + --> + + - + - + diff --git a/imt-ui/src/views/system/equip/equipdashboard/index.vue b/imt-ui/src/views/system/equip/equipdashboard/index.vue index 75019a4..b9fa535 100644 --- a/imt-ui/src/views/system/equip/equipdashboard/index.vue +++ b/imt-ui/src/views/system/equip/equipdashboard/index.vue @@ -68,6 +68,24 @@ {{ item.workTime }} +
+
+ 今日工作时间 + {{ item.dailyWorkTime + "小时" }} +
+
+ 今日加工件数 + {{ item.dailyProcessNum + "件" }} +
+
+ 今日效率 + {{ item.dailyEffect +"件/每小时" }} +
+