diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/enums/ProjectTeamMemberPostEnum.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/enums/ProjectTeamMemberPostEnum.java new file mode 100644 index 00000000..783ca6e4 --- /dev/null +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/enums/ProjectTeamMemberPostEnum.java @@ -0,0 +1,45 @@ +package org.dromara.project.domain.enums; + +import lombok.Getter; +import org.dromara.common.core.utils.ObjectUtils; + +/** + * 项目成员岗位枚举 + * + * @author lcj + * @date 2025/3/21 13:36 + */ +@Getter +public enum ProjectTeamMemberPostEnum { + + MEMBER("普通成员", "0"), + FOREMAN("班组长", "1"); + + private final String text; + + private final String value; + + ProjectTeamMemberPostEnum(String text, String value) { + this.text = text; + this.value = value; + } + + /** + * 根据 value 获取枚举 + * + * @param value 项目成员岗位枚举值 + * @return 项目成员岗位枚举 + */ + public static ProjectTeamMemberPostEnum getEnumByValue(String value) { + if (ObjectUtils.isEmpty(value)) { + return null; + } + for (ProjectTeamMemberPostEnum anEnum : ProjectTeamMemberPostEnum.values()) { + if (anEnum.value.equals(value)) { + return anEnum; + } + } + return null; + } + +} diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/resp/projectteam/ProjectTeamForemanResp.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/resp/projectteam/ProjectTeamForemanResp.java new file mode 100644 index 00000000..623dc5a8 --- /dev/null +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/domain/resp/projectteam/ProjectTeamForemanResp.java @@ -0,0 +1,43 @@ +package org.dromara.project.domain.resp.projectteam; + +import lombok.Data; + +import java.io.Serial; +import java.io.Serializable; + +/** + * @author lcj + * @date 2025/3/21 13:49 + */ +@Data +public class ProjectTeamForemanResp implements Serializable { + + @Serial + private static final long serialVersionUID = -5655849857614630436L; + + /** + * 主键id + */ + private Long id; + + /** + * 班组名称 + */ + private String teamName; + + /** + * 项目id + */ + private Long projectId; + + /** + * 班组长id + */ + private Long foremanId; + + /** + * 班组长名字 + */ + private String foremanName; + +} diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusProjectTeamMemberServiceImpl.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusProjectTeamMemberServiceImpl.java index bbc01caa..fa998eb6 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusProjectTeamMemberServiceImpl.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusProjectTeamMemberServiceImpl.java @@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import jakarta.annotation.Resource; @@ -16,6 +17,7 @@ import org.dromara.common.mybatis.core.page.TableDataInfo; import org.dromara.common.satoken.utils.LoginHelper; import org.dromara.project.domain.BusConstructionUser; import org.dromara.project.domain.BusProjectTeamMember; +import org.dromara.project.domain.enums.ProjectTeamMemberPostEnum; import org.dromara.project.domain.req.projectteammember.ProjectTeamMemberCreateReq; import org.dromara.project.domain.req.projectteammember.ProjectTeamMemberQueryReq; import org.dromara.project.domain.req.projectteammember.ProjectTeamMemberUpdateReq; @@ -186,6 +188,19 @@ public class BusProjectTeamMemberServiceImpl extends ServiceImpl lqw = Wrappers.lambdaQuery(BusProjectTeamMember.class) + .eq(BusProjectTeamMember::getProjectId, projectId) + .eq(BusProjectTeamMember::getTeamId, teamId) + .eq(BusProjectTeamMember::getPostId, ProjectTeamMemberPostEnum.FOREMAN.getValue()); + if (this.count(lqw) > 0) { + throw new ServiceException("当前班组已存在班组长", HttpStatus.CONFLICT); + } } /** diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetylog/SafetyLogCreateReq.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetylog/SafetyLogCreateReq.java index 65cba5f0..5c72d7fe 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetylog/SafetyLogCreateReq.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetylog/SafetyLogCreateReq.java @@ -89,7 +89,7 @@ public class SafetyLogCreateReq implements Serializable { /** * 文件id列表 */ - private List fileIdList; + private String fileId; /** * 备注 diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetylog/SafetyLogUpdateReq.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetylog/SafetyLogUpdateReq.java index 381c6dbd..119f6795 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetylog/SafetyLogUpdateReq.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetylog/SafetyLogUpdateReq.java @@ -94,7 +94,7 @@ public class SafetyLogUpdateReq implements Serializable { /** * 文件id列表 */ - private List fileIdList; + private String fileId; /** * 备注 diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetyweeklyreport/SafetyWeeklyReportQueryReq.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetyweeklyreport/SafetyWeeklyReportQueryReq.java index 18c190dd..6bb2657c 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetyweeklyreport/SafetyWeeklyReportQueryReq.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/safetyweeklyreport/SafetyWeeklyReportQueryReq.java @@ -4,6 +4,7 @@ import lombok.Data; import java.io.Serial; import java.io.Serializable; +import java.util.List; /** * @author lcj @@ -33,7 +34,7 @@ public class SafetyWeeklyReportQueryReq implements Serializable { /** * 周期范围 */ - private String scopeDate; + private List scopeDate; /** * 备注 diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingCreateReq.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingCreateReq.java index 7155eac3..679223e5 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingCreateReq.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingCreateReq.java @@ -1,5 +1,6 @@ package org.dromara.safety.domain.req.teammeeting; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.io.Serial; @@ -35,6 +36,7 @@ public class TeamMeetingCreateReq implements Serializable { /** * 开会时间 */ + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") private Date meetingDate; /** diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingQueryReq.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingQueryReq.java index 2645de77..2e166594 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingQueryReq.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingQueryReq.java @@ -1,5 +1,6 @@ package org.dromara.safety.domain.req.teammeeting; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.io.Serial; @@ -40,6 +41,7 @@ public class TeamMeetingQueryReq implements Serializable { /** * 开会时间 */ + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") private Date meetingDate; /** diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingUpdateReq.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingUpdateReq.java index 26155141..384da605 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingUpdateReq.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/req/teammeeting/TeamMeetingUpdateReq.java @@ -1,5 +1,6 @@ package org.dromara.safety.domain.req.teammeeting; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.io.Serial; @@ -40,6 +41,7 @@ public class TeamMeetingUpdateReq implements Serializable { /** * 开会时间 */ + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") private Date meetingDate; /** diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyInspectionVo.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyInspectionVo.java index b577f107..6e2fc106 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyInspectionVo.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyInspectionVo.java @@ -4,7 +4,6 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; import io.github.linpeilie.annotations.AutoMapper; import lombok.Data; -import org.dromara.common.core.domain.vo.IdAndNameVO; import org.dromara.common.excel.annotation.ExcelDictFormat; import org.dromara.common.excel.convert.ExcelDictConvert; import org.dromara.safety.domain.BusSafetyInspection; @@ -70,25 +69,25 @@ public class BusSafetyInspectionVo implements Serializable { /** * 整改班组id */ -/* @ExcelProperty(value = "整改班组id") - private Long teamId;*/ + @ExcelProperty(value = "整改班组id") + private Long teamId; /** - * 整改班组 + * 整改班组名字 */ - private IdAndNameVO team; + private String teamName; /** * 整改人(班组长)id */ -/* @ExcelProperty(value = "整改人", converter = ExcelDictConvert.class) + @ExcelProperty(value = "整改人", converter = ExcelDictConvert.class) @ExcelDictFormat(readConverterExp = "班=组长") - private Long correctorId;*/ + private Long correctorId; /** - * 整改人(班组长) + * 整改人(班组长)名字 */ - private IdAndNameVO corrector; + private String correctorName; /** * 是否回复(1回复 2不回复) @@ -156,24 +155,14 @@ public class BusSafetyInspectionVo implements Serializable { /** * 检查附件 */ -/* @ExcelProperty(value = "检查附件") - private Long checkFile;*/ - - /** - * 检查附件 - */ - private IdAndNameVO checkFileUrl; + @ExcelProperty(value = "检查附件") + private String checkFile; /** * 整改附件 */ -/* @ExcelProperty(value = "整改附件") - private Long rectificationFile;*/ - - /** - * 整改附件 - */ - private IdAndNameVO rectificationFileUrl; + @ExcelProperty(value = "整改附件") + private String rectificationFile; /** * 备注 @@ -187,4 +176,14 @@ public class BusSafetyInspectionVo implements Serializable { @ExcelProperty(value = "创建时间") private Date createTime; + /** + * 创建人id + */ + private Long creatorId; + + /** + * 创建人名字 + */ + private String creatorName; + } diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyLogVo.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyLogVo.java index 4f7f6ae6..642d21c4 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyLogVo.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyLogVo.java @@ -126,11 +126,6 @@ public class BusSafetyLogVo implements Serializable { @ExcelProperty(value = "文件id列表") private String fileId; - /** - * 文件列表 - */ - private List fileList; - /** * 备注 */ diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyWeeklyReportVo.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyWeeklyReportVo.java index 4e741f32..25a6e535 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyWeeklyReportVo.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusSafetyWeeklyReportVo.java @@ -4,11 +4,11 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; import io.github.linpeilie.annotations.AutoMapper; import lombok.Data; -import org.dromara.common.core.domain.vo.IdAndNameVO; import org.dromara.safety.domain.BusSafetyWeeklyReport; import java.io.Serial; import java.io.Serializable; +import java.util.Date; /** @@ -58,13 +58,13 @@ public class BusSafetyWeeklyReportVo implements Serializable { /** * 文件位置 */ -/* @ExcelProperty(value = "文件位置") - private String path;*/ + @ExcelProperty(value = "文件位置") + private String path; /** * 文件位置 */ - private IdAndNameVO pathUrl; + private String pathUrl; /** * 备注 @@ -72,5 +72,10 @@ public class BusSafetyWeeklyReportVo implements Serializable { @ExcelProperty(value = "备注") private String remark; + /** + * 创建时间 + */ + private Date createTime; + } diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusTeamMeetingVo.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusTeamMeetingVo.java index da14f8f1..37f4ec9e 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusTeamMeetingVo.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/domain/vo/BusTeamMeetingVo.java @@ -5,8 +5,6 @@ import com.alibaba.excel.annotation.ExcelProperty; import io.github.linpeilie.annotations.AutoMapper; import lombok.Data; import org.dromara.common.core.domain.vo.IdAndNameVO; -import org.dromara.common.excel.annotation.ExcelDictFormat; -import org.dromara.common.excel.convert.ExcelDictConvert; import org.dromara.safety.domain.BusTeamMeeting; import java.io.Serial; @@ -116,4 +114,9 @@ public class BusTeamMeetingVo implements Serializable { @ExcelProperty(value = "备注") private String remark; + /** + * 创建时间 + */ + private Date createTime; + } diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyInspectionServiceImpl.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyInspectionServiceImpl.java index d6de0a94..68f1b031 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyInspectionServiceImpl.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyInspectionServiceImpl.java @@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import jakarta.annotation.Resource; import org.dromara.common.core.constant.HttpStatus; -import org.dromara.common.core.domain.vo.IdAndNameVO; import org.dromara.common.core.exception.ServiceException; import org.dromara.common.core.utils.ObjectUtils; import org.dromara.common.core.utils.StringUtils; @@ -24,8 +23,6 @@ import org.dromara.safety.domain.req.safetyinspection.SafetyInspectionUpdateReq; import org.dromara.safety.domain.vo.BusSafetyInspectionVo; import org.dromara.safety.mapper.BusSafetyInspectionMapper; import org.dromara.safety.service.IBusSafetyInspectionService; -import org.dromara.system.domain.vo.SysOssVo; -import org.dromara.system.service.ISysOssService; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -50,9 +47,6 @@ public class BusSafetyInspectionServiceImpl extends ServiceImpl teamLambdaQueryWrapper = Wrappers.lambdaQuery(BusProjectTeam.class) .select(BusProjectTeam::getId, BusProjectTeam::getTeamName) .eq(BusProjectTeam::getId, teamId); BusProjectTeam projectTeam = projectTeamService.getOne(teamLambdaQueryWrapper); - safetyInspectionVo.setTeam(IdAndNameVO.build(projectTeam.getId(), projectTeam.getTeamName())); + safetyInspectionVo.setTeamId(projectTeam.getId()); + safetyInspectionVo.setTeamName(projectTeam.getTeamName()); } + // 关联整改人信息 Long correctorId = safetyInspection.getCorrectorId(); if (correctorId != null) { LambdaQueryWrapper constructionUserLambdaQueryWrapper = Wrappers.lambdaQuery(BusConstructionUser.class) .select(BusConstructionUser::getId, BusConstructionUser::getUserName) .eq(BusConstructionUser::getId, correctorId); BusConstructionUser constructionUser = constructionUserService.getOne(constructionUserLambdaQueryWrapper); - safetyInspectionVo.setCorrector(IdAndNameVO.build(constructionUser.getId(), constructionUser.getUserName())); + safetyInspectionVo.setCorrectorId(constructionUser.getId()); + safetyInspectionVo.setCorrectorName(constructionUser.getUserName()); } - // 查询文件url - Long checkFile = safetyInspection.getCheckFile(); - Long rectificationFile = safetyInspection.getRectificationFile(); - List fileIdList = List.of(checkFile, rectificationFile); - if (CollUtil.isNotEmpty(fileIdList)) { - List ossList = ossService.listByIds(fileIdList); - for (SysOssVo sysOssVo : ossList) { - if (checkFile.equals(sysOssVo.getOssId())) { - safetyInspectionVo.setCheckFileUrl(IdAndNameVO.build(sysOssVo.getOssId(), sysOssVo.getUrl())); - } else if (rectificationFile.equals(sysOssVo.getOssId())) { - safetyInspectionVo.setRectificationFileUrl(IdAndNameVO.build(sysOssVo.getOssId(), sysOssVo.getUrl())); - } - } + // 关联创建用户信息 + Long createBy = safetyInspection.getCreateBy(); + if (createBy != null) { + BusConstructionUser createUser = constructionUserService.getById(createBy); + safetyInspectionVo.setCreatorId(createUser.getId()); + safetyInspectionVo.setCreatorName(createUser.getUserName()); } return safetyInspectionVo; } diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyLogServiceImpl.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyLogServiceImpl.java index 02d70d2b..5460a26a 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyLogServiceImpl.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyLogServiceImpl.java @@ -1,8 +1,6 @@ package org.dromara.safety.service.impl; import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.json.JSONUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -24,8 +22,6 @@ import org.dromara.safety.domain.req.safetylog.SafetyLogUpdateReq; import org.dromara.safety.domain.vo.BusSafetyLogVo; import org.dromara.safety.mapper.BusSafetyLogMapper; import org.dromara.safety.service.IBusSafetyLogService; -import org.dromara.system.domain.vo.SysOssVo; -import org.dromara.system.service.ISysOssService; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -43,9 +39,6 @@ import java.util.List; public class BusSafetyLogServiceImpl extends ServiceImpl implements IBusSafetyLogService { - @Resource - private ISysOssService ossService; - @Resource private IBusConstructionUserService constructionUserService; @@ -100,10 +93,6 @@ public class BusSafetyLogServiceImpl extends ServiceImpl fileIdList = req.getFileIdList(); - String fileIdStr = JSONUtil.toJsonStr(fileIdList); - safetyLog.setFileId(fileIdStr); // 数据校验 validEntityBeforeSave(safetyLog, true); // 写入数据库 @@ -126,10 +115,6 @@ public class BusSafetyLogServiceImpl extends ServiceImpl fileIdList = req.getFileIdList(); - String fileIdStr = JSONUtil.toJsonStr(fileIdList); - safetyLog.setFileId(fileIdStr); // 数据校验 validEntityBeforeSave(safetyLog, false); // 判断是否存在 @@ -181,15 +166,6 @@ public class BusSafetyLogServiceImpl extends ServiceImpl fileIdList = JSONUtil.toList(fileId, Long.class); - if (CollectionUtil.isNotEmpty(fileIdList)) { - List fileOssList = ossService.listByIds(fileIdList); - List idAndNameVOList = fileOssList.stream() - .map(fileOss -> IdAndNameVO.build(fileOss.getOssId(), fileOss.getUrl())).toList(); - safetyLogVo.setFileList(idAndNameVOList); - } // 关联创建用户信息 Long createBy = safetyLog.getCreateBy(); if (createBy != null) { diff --git a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyWeeklyReportServiceImpl.java b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyWeeklyReportServiceImpl.java index c9bb6d5b..3215da93 100644 --- a/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyWeeklyReportServiceImpl.java +++ b/RuoYi-Vue-Plus/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/safety/service/impl/BusSafetyWeeklyReportServiceImpl.java @@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import jakarta.annotation.Resource; import org.dromara.common.core.constant.HttpStatus; -import org.dromara.common.core.domain.vo.IdAndNameVO; import org.dromara.common.core.exception.ServiceException; import org.dromara.common.core.utils.ObjectUtils; import org.dromara.common.core.utils.StringUtils; @@ -167,7 +166,7 @@ public class BusSafetyWeeklyReportServiceImpl extends ServiceImpl scopeDate = req.getScopeDate(); String remark = req.getRemark(); // 时间范围查询 - if (StringUtils.isNotBlank(scopeDate)) { - String[] split = scopeDate.split(","); - lqw.ge(BusSafetyWeeklyReport::getScopeEnd, split[0]) - .le(BusSafetyWeeklyReport::getScope, split[1]); + if (ObjectUtils.isNotEmpty(scopeDate)) { + lqw.ge(BusSafetyWeeklyReport::getScopeEnd, scopeDate.get(0)) + .le(BusSafetyWeeklyReport::getScope, scopeDate.get(1)); } // 模糊查询 lqw.like(StringUtils.isNotBlank(remark), BusSafetyWeeklyReport::getRemark, remark); diff --git a/plus-ui/src/api/project/projectTeam/index.ts b/plus-ui/src/api/project/projectTeam/index.ts index d0d82840..8a55f69a 100644 --- a/plus-ui/src/api/project/projectTeam/index.ts +++ b/plus-ui/src/api/project/projectTeam/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { ProjectTeamForm, ProjectTeamQuery, ProjectTeamVO } from '@/api/project/projectTeam/types'; +import { ProjectTeamForemanResp, ProjectTeamForm, ProjectTeamQuery, ProjectTeamVO } from '@/api/project/projectTeam/types'; /** * 查询项目班组列表 @@ -16,6 +16,17 @@ export const listProjectTeam = (query?: ProjectTeamQuery): AxiosPromise => { + return request({ + url: '/project/projectTeam/listForeman/' + projectId, + method: 'get' + }); +}; + /** * 查询项目班组详细 * @param id diff --git a/plus-ui/src/api/project/projectTeam/types.ts b/plus-ui/src/api/project/projectTeam/types.ts index 8ef7fa24..e3c5ad95 100644 --- a/plus-ui/src/api/project/projectTeam/types.ts +++ b/plus-ui/src/api/project/projectTeam/types.ts @@ -78,3 +78,30 @@ export interface ProjectTeamQuery extends PageQuery { */ params?: any; } + +export interface ProjectTeamForemanResp { + /** + * 班组id + */ + id: string | number; + + /** + * 班组名称 + */ + teamName: string; + + /** + * 项目id + */ + projectId: string | number; + + /** + * 班组长id + */ + foremanId: string | number; + + /** + * 班组长名字 + */ + foremanName: string; +} diff --git a/plus-ui/src/api/safety/safetyInspection/index.ts b/plus-ui/src/api/safety/safetyInspection/index.ts new file mode 100644 index 00000000..cd9076cb --- /dev/null +++ b/plus-ui/src/api/safety/safetyInspection/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { SafetyInspectionForm, SafetyInspectionQuery, SafetyInspectionVO } from '@/api/safety/safetyInspection/types'; + +/** + * 查询安全巡检工单列表 + * @param query + * @returns {*} + */ + +export const listSafetyInspection = (query?: SafetyInspectionQuery): AxiosPromise => { + return request({ + url: '/safety/safetyInspection/list', + method: 'get', + params: query + }); +}; + +/** + * 查询安全巡检工单详细 + * @param id + */ +export const getSafetyInspection = (id: string | number): AxiosPromise => { + return request({ + url: '/safety/safetyInspection/' + id, + method: 'get' + }); +}; + +/** + * 新增安全巡检工单 + * @param data + */ +export const addSafetyInspection = (data: SafetyInspectionForm) => { + return request({ + url: '/safety/safetyInspection', + method: 'post', + data: data + }); +}; + +/** + * 修改安全巡检工单 + * @param data + */ +export const updateSafetyInspection = (data: SafetyInspectionForm) => { + return request({ + url: '/safety/safetyInspection', + method: 'put', + data: data + }); +}; + +/** + * 删除安全巡检工单 + * @param id + */ +export const delSafetyInspection = (id: string | number | Array) => { + return request({ + url: '/safety/safetyInspection/' + id, + method: 'delete' + }); +}; diff --git a/plus-ui/src/api/safety/safetyInspection/types.ts b/plus-ui/src/api/safety/safetyInspection/types.ts new file mode 100644 index 00000000..2400920e --- /dev/null +++ b/plus-ui/src/api/safety/safetyInspection/types.ts @@ -0,0 +1,340 @@ +export interface SafetyInspectionVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 父id(默认为0) + */ + pid: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 检查类型 + */ + checkType: string; + + /** + * 违章类型 + */ + violationType: string; + + /** + * 巡检结果 + */ + inspectionResult: string; + + /** + * 整改班组id + */ + teamId: string | number; + + /** + * 整改班组名字 + */ + teamName: string; + + /** + * 整改人(班组长)id + */ + correctorId: string | number; + + /** + * 整改人(班组长)名字 + */ + correctorName: string; + + /** + * 是否回复(1回复 2不回复) + */ + isReply: string; + + /** + * 回复日期 + */ + replyDate: string; + + /** + * 工单状态(1通知 2整改 3复查) + */ + status: string; + + /** + * 问题隐患 + */ + hiddenDanger: string | number; + + /** + * 整改措施 + */ + measure: string; + + /** + * 复查情况 + */ + review: string; + + /** + * 复查状态(1通过 2未通过) + */ + reviewType: string; + + /** + * 检查时间 + */ + checkTime: string; + + /** + * 整改时间 + */ + rectificationTime: string; + + /** + * 复查时间 + */ + reviewTime: string; + + /** + * 检查附件 + */ + checkFile: string; + + /** + * 整改附件 + */ + rectificationFile: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 创建人id + */ + creatorId: string | number; + + /** + * 创建人名字 + */ + creatorName: string; +} + +export interface SafetyInspectionForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 父id(默认为0) + */ + pid?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 检查类型 + */ + checkType?: string; + + /** + * 违章类型 + */ + violationType?: string; + + /** + * 巡检结果 + */ + inspectionResult?: string; + + /** + * 整改班组id + */ + teamId?: string | number; + + /** + * 整改人(班组长)id + */ + correctorId?: string | number; + + /** + * 是否回复(1回复 2不回复) + */ + isReply?: string; + + /** + * 回复日期 + */ + replyDate?: string; + + /** + * 工单状态(1通知 2整改 3复查) + */ + status?: string; + + /** + * 问题隐患 + */ + hiddenDanger?: string | number; + + /** + * 整改措施 + */ + measure?: string; + + /** + * 复查情况 + */ + review?: string; + + /** + * 复查状态(1通过 2未通过) + */ + reviewType?: string; + + /** + * 检查时间 + */ + checkTime?: string; + + /** + * 整改时间 + */ + rectificationTime?: string; + + /** + * 复查时间 + */ + reviewTime?: string; + + /** + * 检查附件 + */ + checkFile?: string; + + /** + * 整改附件 + */ + rectificationFile?: string; + + /** + * 备注 + */ + remark?: string; +} + +export interface SafetyInspectionQuery extends PageQuery { + /** + * 主键ID + */ + id?: string | number; + + /** + * 父id(默认为0) + */ + pid?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 检查类型 + */ + checkType?: string; + + /** + * 违章类型 + */ + violationType?: string; + + /** + * 巡检结果 + */ + inspectionResult?: string; + + /** + * 整改班组id + */ + teamId?: string | number; + + /** + * 整改人(班组长)id + */ + correctorId?: string | number; + + /** + * 是否回复(1回复 2不回复) + */ + isReply?: string; + + /** + * 回复日期 + */ + replyDate?: string; + + /** + * 工单状态(1通知 2整改 3复查) + */ + status?: string; + + /** + * 问题隐患 + */ + hiddenDanger?: string | number; + + /** + * 整改措施 + */ + measure?: string; + + /** + * 复查情况 + */ + review?: string; + + /** + * 复查状态(1通过 2未通过) + */ + reviewType?: string; + + /** + * 检查时间 + */ + checkTime?: string; + + /** + * 整改时间 + */ + rectificationTime?: string; + + /** + * 复查时间 + */ + reviewTime?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/plus-ui/src/api/safety/safetyLog/index.ts b/plus-ui/src/api/safety/safetyLog/index.ts new file mode 100644 index 00000000..3389bd0f --- /dev/null +++ b/plus-ui/src/api/safety/safetyLog/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { SafetyLogForm, SafetyLogQuery, SafetyLogVO } from '@/api/safety/safetyLog/types'; + +/** + * 查询安全日志列表 + * @param query + * @returns {*} + */ + +export const listSafetyLog = (query?: SafetyLogQuery): AxiosPromise => { + return request({ + url: '/safety/safetyLog/list', + method: 'get', + params: query + }); +}; + +/** + * 查询安全日志详细 + * @param id + */ +export const getSafetyLog = (id: string | number): AxiosPromise => { + return request({ + url: '/safety/safetyLog/' + id, + method: 'get' + }); +}; + +/** + * 新增安全日志 + * @param data + */ +export const addSafetyLog = (data: SafetyLogForm) => { + return request({ + url: '/safety/safetyLog', + method: 'post', + data: data + }); +}; + +/** + * 修改安全日志 + * @param data + */ +export const updateSafetyLog = (data: SafetyLogForm) => { + return request({ + url: '/safety/safetyLog', + method: 'put', + data: data + }); +}; + +/** + * 删除安全日志 + * @param id + */ +export const delSafetyLog = (id: string | number | Array) => { + return request({ + url: '/safety/safetyLog/' + id, + method: 'delete' + }); +}; diff --git a/plus-ui/src/api/safety/safetyLog/types.ts b/plus-ui/src/api/safety/safetyLog/types.ts new file mode 100644 index 00000000..ae9da3f1 --- /dev/null +++ b/plus-ui/src/api/safety/safetyLog/types.ts @@ -0,0 +1,267 @@ +import { IdAndNameVO } from '@/api/types'; + +export interface SafetyLogVO { + /** + * 主键id + */ + id: string | number; + + /** + * 项目id + */ + projectId: string | number; + + /** + * 发生日期 + */ + dateOfOccurrence: string; + + /** + * 最高气温 + */ + airTemperatureMax: number; + + /** + * 最低气温 + */ + airTemperatureMin: number; + + /** + * 气候 + */ + weather: string; + + /** + * 进展 + */ + progress: string; + + /** + * 作业内容 + */ + jobContent: string; + + /** + * 交底情况 + */ + discloseCondition: string; + + /** + * 活动情况 + */ + activityCondition: string; + + /** + * 检查情况 + */ + examineCondition: string; + + /** + * 实施情况 + */ + implementCondition: string; + + /** + * 安全检查情况 + */ + safetyInspectionCondition: string; + + /** + * 停工或加班情况 + */ + stoppageOrOvertime: string; + + /** + * 其他情况 + */ + otherCondition: string; + + /** + * 文件id列表 + */ + fileId: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建人 + */ + creator: IdAndNameVO; + + /** + * 创建时间 + */ + createTime: string; +} + +export interface SafetyLogForm extends BaseEntity { + /** + * 主键id + */ + id?: string | number; + + /** + * 项目id + */ + projectId?: string | number; + + /** + * 发生日期 + */ + dateOfOccurrence?: string; + + /** + * 最高气温 + */ + airTemperatureMax?: number; + + /** + * 最低气温 + */ + airTemperatureMin?: number; + + /** + * 气候 + */ + weather?: string; + + /** + * 进展 + */ + progress?: string; + + /** + * 作业内容 + */ + jobContent?: string; + + /** + * 交底情况 + */ + discloseCondition?: string; + + /** + * 活动情况 + */ + activityCondition?: string; + + /** + * 检查情况 + */ + examineCondition?: string; + + /** + * 实施情况 + */ + implementCondition?: string; + + /** + * 安全检查情况 + */ + safetyInspectionCondition?: string; + + /** + * 停工或加班情况 + */ + stoppageOrOvertime?: string; + + /** + * 其他情况 + */ + otherCondition?: string; + + /** + * 文件id列表 + */ + fileId: string; + + /** + * 备注 + */ + remark?: string; +} + +export interface SafetyLogQuery extends PageQuery { + /** + * 项目id + */ + projectId?: string | number; + + /** + * 发生日期 + */ + dateOfOccurrence?: string; + + /** + * 最高气温 + */ + airTemperatureMax?: number; + + /** + * 最低气温 + */ + airTemperatureMin?: number; + + /** + * 气候 + */ + weather?: string; + + /** + * 进展 + */ + progress?: string; + + /** + * 作业内容 + */ + jobContent?: string; + + /** + * 交底情况 + */ + discloseCondition?: string; + + /** + * 活动情况 + */ + activityCondition?: string; + + /** + * 检查情况 + */ + examineCondition?: string; + + /** + * 实施情况 + */ + implementCondition?: string; + + /** + * 安全检查情况 + */ + safetyInspectionCondition?: string; + + /** + * 停工或加班情况 + */ + stoppageOrOvertime?: string; + + /** + * 其他情况 + */ + otherCondition?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/plus-ui/src/api/safety/safetyWeeklyReport/index.ts b/plus-ui/src/api/safety/safetyWeeklyReport/index.ts new file mode 100644 index 00000000..c3717ff7 --- /dev/null +++ b/plus-ui/src/api/safety/safetyWeeklyReport/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { SafetyWeeklyReportForm, SafetyWeeklyReportQuery, SafetyWeeklyReportVO } from '@/api/safety/safetyWeeklyReport/types'; + +/** + * 查询安全周报列表 + * @param query + * @returns {*} + */ + +export const listSafetyWeeklyReport = (query?: SafetyWeeklyReportQuery): AxiosPromise => { + return request({ + url: '/safety/safetyWeeklyReport/list', + method: 'get', + params: query + }); +}; + +/** + * 查询安全周报详细 + * @param id + */ +export const getSafetyWeeklyReport = (id: string | number): AxiosPromise => { + return request({ + url: '/safety/safetyWeeklyReport/' + id, + method: 'get' + }); +}; + +/** + * 新增安全周报 + * @param data + */ +export const addSafetyWeeklyReport = (data: SafetyWeeklyReportForm) => { + return request({ + url: '/safety/safetyWeeklyReport', + method: 'post', + data: data + }); +}; + +/** + * 修改安全周报 + * @param data + */ +export const updateSafetyWeeklyReport = (data: SafetyWeeklyReportForm) => { + return request({ + url: '/safety/safetyWeeklyReport', + method: 'put', + data: data + }); +}; + +/** + * 删除安全周报 + * @param id + */ +export const delSafetyWeeklyReport = (id: string | number | Array) => { + return request({ + url: '/safety/safetyWeeklyReport/' + id, + method: 'delete' + }); +}; diff --git a/plus-ui/src/api/safety/safetyWeeklyReport/types.ts b/plus-ui/src/api/safety/safetyWeeklyReport/types.ts new file mode 100644 index 00000000..1b880dda --- /dev/null +++ b/plus-ui/src/api/safety/safetyWeeklyReport/types.ts @@ -0,0 +1,112 @@ +import { IdAndNameVO } from '@/api/types'; + +export interface SafetyWeeklyReportVO { + /** + * 主键id + */ + id: string | number; + + /** + * 项目id + */ + projectId: string | number; + + /** + * 周期 + */ + week: string; + + /** + * 周期范围 + */ + scope: string; + + /** + * 周期范围结束 + */ + scopeEnd: string; + + /** + * 文件位置 + */ + pathUrl: IdAndNameVO; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createTime: string; +} + +export interface SafetyWeeklyReportForm extends BaseEntity { + /** + * 主键id + */ + id?: string | number; + + /** + * 项目id + */ + projectId?: string | number; + + /** + * 周期 + */ + week?: string; + + /** + * 周期范围 + */ + scope?: string; + + /** + * 周期范围结束 + */ + scopeEnd?: string; + + /** + * 文件位置 + */ + path?: string; + + /** + * 备注 + */ + remark?: string; +} + +export interface SafetyWeeklyReportQuery extends PageQuery { + /** + * 主键id + */ + id?: string | number; + + /** + * 项目id + */ + projectId?: string | number; + + /** + * 周期 + */ + week?: string; + + /** + * 周期范围 + */ + scopeDate?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/plus-ui/src/api/safety/teamMeeting/index.ts b/plus-ui/src/api/safety/teamMeeting/index.ts new file mode 100644 index 00000000..073414c6 --- /dev/null +++ b/plus-ui/src/api/safety/teamMeeting/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { TeamMeetingForm, TeamMeetingQuery, TeamMeetingVO } from '@/api/safety/teamMeeting/types'; + +/** + * 查询站班会列表 + * @param query + * @returns {*} + */ + +export const listTeamMeeting = (query?: TeamMeetingQuery): AxiosPromise => { + return request({ + url: '/safety/teamMeeting/list', + method: 'get', + params: query + }); +}; + +/** + * 查询站班会详细 + * @param id + */ +export const getTeamMeeting = (id: string | number): AxiosPromise => { + return request({ + url: '/safety/teamMeeting/' + id, + method: 'get' + }); +}; + +/** + * 新增站班会 + * @param data + */ +export const addTeamMeeting = (data: TeamMeetingForm) => { + return request({ + url: '/safety/teamMeeting', + method: 'post', + data: data + }); +}; + +/** + * 修改站班会 + * @param data + */ +export const updateTeamMeeting = (data: TeamMeetingForm) => { + return request({ + url: '/safety/teamMeeting', + method: 'put', + data: data + }); +}; + +/** + * 删除站班会 + * @param id + */ +export const delTeamMeeting = (id: string | number | Array) => { + return request({ + url: '/safety/teamMeeting/' + id, + method: 'delete' + }); +}; diff --git a/plus-ui/src/api/safety/teamMeeting/types.ts b/plus-ui/src/api/safety/teamMeeting/types.ts new file mode 100644 index 00000000..8678f638 --- /dev/null +++ b/plus-ui/src/api/safety/teamMeeting/types.ts @@ -0,0 +1,151 @@ +import { IdAndNameVO } from '@/api/types'; + +export interface TeamMeetingVO { + /** + * 主键id + */ + id: string | number; + + /** + * 项目id + */ + projectId: string | number; + + /** + * 班组 + */ + team: IdAndNameVO; + + /** + * 分包公司 + */ + contractor: IdAndNameVO; + + /** + * 开会时间 + */ + meetingDate: string; + + /** + * 宣讲人 + */ + compere: IdAndNameVO; + + /** + * 参与人列表 + */ + participantList: Array; + + /** + * 班会内容 + */ + content: string; + + /** + * 班会图片Url + */ + pictureUrl: Array; + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createTime: string; +} + +export interface TeamMeetingForm extends BaseEntity { + /** + * 主键id + */ + id?: string | number; + + /** + * 项目id + */ + projectId?: string | number; + + /** + * 班组id + */ + teamId?: string | number; + + /** + * 分包公司id + */ + contractorId?: string | number; + + /** + * 开会时间 + */ + meetingDate?: string; + + /** + * 宣讲人 + */ + compereId?: string | number; + + /** + * 参与人id列表 + */ + participantIdList?: Array; + + /** + * 班会内容 + */ + content?: string; + + /** + * 班会图片 + */ + pictureList?: Array; + + /** + * 备注 + */ + remark?: string; +} + +export interface TeamMeetingQuery extends PageQuery { + /** + * 项目id + */ + projectId?: string | number; + + /** + * 班组id + */ + teamId?: string | number; + + /** + * 分包公司id + */ + contractorId?: string | number; + + /** + * 开会时间 + */ + meetingDate?: string; + + /** + * 宣讲人 + */ + compereId?: string | number; + + /** + * 参与人id + */ + participantIdList?: Array; + + /** + * 班会内容 + */ + content?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/plus-ui/src/api/types.ts b/plus-ui/src/api/types.ts index 6a84ee89..59f7850e 100644 --- a/plus-ui/src/api/types.ts +++ b/plus-ui/src/api/types.ts @@ -68,3 +68,8 @@ export interface UserProject { projectName: string; shortName: string; } + +export interface IdAndNameVO { + id: string | number; + name: string; +} diff --git a/plus-ui/src/components/ImagePreview/index.vue b/plus-ui/src/components/ImagePreview/index.vue index 98e64791..898b63ef 100644 --- a/plus-ui/src/components/ImagePreview/index.vue +++ b/plus-ui/src/components/ImagePreview/index.vue @@ -10,6 +10,7 @@ + + diff --git a/plus-ui/src/views/safety/safetyInspection/index.vue b/plus-ui/src/views/safety/safetyInspection/index.vue new file mode 100644 index 00000000..aaa484b1 --- /dev/null +++ b/plus-ui/src/views/safety/safetyInspection/index.vue @@ -0,0 +1,425 @@ + + + diff --git a/plus-ui/src/views/safety/safetyLog/component/SafetyLogDetailDialog.vue b/plus-ui/src/views/safety/safetyLog/component/SafetyLogDetailDialog.vue new file mode 100644 index 00000000..9582b0ed --- /dev/null +++ b/plus-ui/src/views/safety/safetyLog/component/SafetyLogDetailDialog.vue @@ -0,0 +1,102 @@ + + + diff --git a/plus-ui/src/views/safety/safetyLog/index.vue b/plus-ui/src/views/safety/safetyLog/index.vue new file mode 100644 index 00000000..ac94e5dc --- /dev/null +++ b/plus-ui/src/views/safety/safetyLog/index.vue @@ -0,0 +1,316 @@ + + + diff --git a/plus-ui/src/views/safety/safetyWeeklyReport/index.vue b/plus-ui/src/views/safety/safetyWeeklyReport/index.vue new file mode 100644 index 00000000..2a2decf0 --- /dev/null +++ b/plus-ui/src/views/safety/safetyWeeklyReport/index.vue @@ -0,0 +1,269 @@ + + + diff --git a/plus-ui/src/views/safety/teamMeeting/component/TeamMeetingDetailDrawer.vue b/plus-ui/src/views/safety/teamMeeting/component/TeamMeetingDetailDrawer.vue new file mode 100644 index 00000000..bac76659 --- /dev/null +++ b/plus-ui/src/views/safety/teamMeeting/component/TeamMeetingDetailDrawer.vue @@ -0,0 +1,57 @@ + + + diff --git a/plus-ui/src/views/safety/teamMeeting/index.vue b/plus-ui/src/views/safety/teamMeeting/index.vue new file mode 100644 index 00000000..3ed654c6 --- /dev/null +++ b/plus-ui/src/views/safety/teamMeeting/index.vue @@ -0,0 +1,269 @@ + + +