2
0

2 Commits abc8bd7934 ... ddf37e20d4

Autor SHA1 Mensagem Data
  wangggziwen ddf37e20d4 EOEG SAI há 1 mês atrás
  wangggziwen ca033850c4 Merge branch 'master' of E:\newcpms with conflicts. há 1 mês atrás

+ 54 - 215
master/src/main/java/com/ruoyi/project/plant/controller/TStaffmgrController.java

@@ -5,7 +5,6 @@ import com.ruoyi.common.utils.DateUtils;
 import com.ruoyi.common.utils.ServletUtils;
 import com.ruoyi.common.utils.file.ExcelUtils;
 import com.ruoyi.common.utils.file.FileUploadUtils;
-import com.ruoyi.common.utils.file.OfficeConvertUtils;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.ruoyi.framework.aspectj.lang.annotation.Log;
 import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
@@ -116,8 +115,25 @@ public class TStaffmgrController extends BaseController {
     private ITPlantproglistService tPlantproglistService;
     @Autowired
     private ITCommonfileService tCommonfileService;
-    @Autowired
-    private OfficeConvertUtils officeConvertUtils;
+
+    @PreAuthorize("@ss.hasPermi('plant:staffmgr:list')")
+    @GetMapping("/listEoegSaiInspectors")
+    public AjaxResult listEoegSaiInspectors() {
+        return AjaxResult.success(tStaffmgrService.selectEoegSaiInspectors());
+    }
+
+    @PreAuthorize("@ss.hasPermi('plant:staffmgr:list')")
+    @GetMapping("/listEoegSaiExecutors")
+    public AjaxResult listEoegSaiExecutors() {
+        return AjaxResult.success(tStaffmgrService.selectEoegSaiExecutors());
+    }
+
+    @PreAuthorize("@ss.hasPermi('plant:staffmgr:list')")
+    @GetMapping("/listEoegSaiAssessors")
+    public AjaxResult listEoegSaiAssessors() {
+        return AjaxResult.success(tStaffmgrService.selectEoegSaiAssessors());
+    }
+
     /**
      * 获取SAI整改负责人列表
      */
@@ -291,8 +307,14 @@ public class TStaffmgrController extends BaseController {
                 Iterator<TStaffmgr> iterator = list.iterator();
                 while (iterator.hasNext()) {
                     TStaffmgr t = iterator.next();
-                    if (t.getDelFlag() == 9) {
-                        iterator.remove();
+                    if (t.getLeftDate() != null && t.getDelFlag() == 9) {
+                        Calendar cal = Calendar.getInstance();
+                        cal.setTime(t.getLeftDate());
+                        Integer year = cal.get(Calendar.YEAR);//获取年
+                        if (year < Integer.parseInt(tStaffmgr.getLeftYear())) {
+                            logger.debug(t.getName() + "离职年份小于数据");
+                            iterator.remove();
+                        }
                     }
                 }
             }
@@ -576,7 +598,7 @@ public class TStaffmgrController extends BaseController {
             int currentYear = LocalDate.now().getYear();
             for (TTrainingMatrix matrix: list
             ) {
-                //计划
+                //矩阵
                 TTrainingbccRegular tTrainingRegular = new TTrainingbccRegular();
                 tTrainingRegular.setDeptId(matrix.getDeptId());
                 tTrainingRegular.setActualpostId(matrix.getActualpostId());
@@ -663,33 +685,12 @@ public class TStaffmgrController extends BaseController {
 
                 // 设置培训人和文件信息
                 tTraining.setTrainer(trainer);
-                
-                // 检查文件是否为PPT格式,如果是则转换为PDF
-                String finalFileUrl = fileUrl;
-                String finalFileName = fileName;
-                if (OfficeConvertUtils.isPptFile(fileName)) {
-                    try {
-                        logger.info("检测到PPT文件,开始转换为PDF: {}", fileName);
-                        String pdfUrl = officeConvertUtils.convertPptToPdf(fileUrl);
-                        if (pdfUrl != null && !pdfUrl.isEmpty()) {
-                            finalFileUrl = pdfUrl;
-                            finalFileName = OfficeConvertUtils.changeFileNameToPdf(fileName);
-                            logger.info("PPT文件转换成功,PDF文件路径: {}", pdfUrl);
-                        } else {
-                            logger.warn("PPT转PDF失败,使用原始文件");
-                        }
-                    } catch (Exception e) {
-                        logger.error("PPT转PDF过程中发生错误,使用原始文件: {}", e.getMessage());
-                        e.printStackTrace();
-                    }
-                }
-                
-                tTraining.setFileUrl(finalFileUrl);
-                tTraining.setFileName(finalFileName);
+                tTraining.setFileUrl(fileUrl);
+                tTraining.setFileName(fileName);
                 // 培训内容:去掉文件后缀
-                String content = finalFileName;
-                if (StringUtils.isNotEmpty(finalFileName) && finalFileName.contains(".")) {
-                    content = finalFileName.substring(0, finalFileName.lastIndexOf("."));
+                String content = fileName;
+                if (StringUtils.isNotEmpty(fileName) && fileName.contains(".")) {
+                    content = fileName.substring(0, fileName.lastIndexOf("."));
                 }
                 tTraining.setContent(content);
                 //添加学习时间
@@ -837,7 +838,7 @@ public class TStaffmgrController extends BaseController {
     }
 
     /**
-     * 人员管理转岗
+     * 修改人员管理
      */
     @PreAuthorize("@ss.hasPermi('plant:staffmgr:edit')")
     @Log(title = "人员管理转岗", businessType = BusinessType.UPDATE)
@@ -893,50 +894,6 @@ public class TStaffmgrController extends BaseController {
             }
         }
 
-        // 删除老岗位需要但新岗位不需要的未开始培训
-        TTrainingbccDevice queryDevice = new TTrainingbccDevice();
-        queryDevice.setStaffId(old.getStaffid());
-        List<TTrainingbccDevice> allDevices = trainingbccDeviceService.selectTTrainingbccDeviceList(queryDevice);
-        List<Long> toDeleteDeviceIds = new ArrayList<>();
-
-        for (TTrainingbccDevice device : allDevices) {
-            // 只处理未完成的培训
-            if (device.getExamState() != 1) {
-                // 通过regularId查找对应的TTrainingbcc
-                TTrainingbcc trainingBcc = trainingbccService.selectTTrainingbccById(device.getRegularId());
-                if (trainingBcc != null && trainingBcc.getRegularId() != null) {
-                    // 通过TTrainingbcc的regularId查找TTrainingbccRegular
-                    TTrainingbccRegular trainingRegular = tTrainingbccRegularService.selectTTrainingbccRegularById(trainingBcc.getRegularId());
-                    if (trainingRegular != null && trainingRegular.getActualpostId() != null) {
-                        String[] requiredPosts = trainingRegular.getActualpostId().split(",");
-                        boolean oldPostRequired = false;
-                        boolean newPostRequired = false;
-
-                        // 判断老岗位和新岗位是否需要此培训
-                        for (String post : requiredPosts) {
-                            if (post.trim().equals(old.getActualpost())) {
-                                oldPostRequired = true;
-                            }
-                            if (post.trim().equals(tStaffmgr.getActualpost())) {
-                                newPostRequired = true;
-                            }
-                        }
-
-                        // 如果老岗位需要但新岗位不需要,则标记删除
-                        if (oldPostRequired && !newPostRequired) {
-                            toDeleteDeviceIds.add(device.getId());
-                        }
-                    }
-                }
-            }
-        }
-
-        // 批量删除不需要的培训
-        if (toDeleteDeviceIds.size() > 0) {
-            Long[] deleteIds = toDeleteDeviceIds.toArray(new Long[0]);
-            trainingbccDeviceService.deleteTTrainingbccDeviceByIds(deleteIds);
-        }
-
         return toAjax(tStaffmgrService.updateTStaffmgr(tStaffmgr));
     }
 
@@ -985,76 +942,17 @@ public class TStaffmgrController extends BaseController {
     @Log(title = "人员管理", businessType = BusinessType.DELETE)
     @GetMapping("/left/{id}")
     public AjaxResult removeLeft(@PathVariable Long id) {
-        logger.info("======== 开始执行删除离职人员操作 ========");
-        logger.info("传入参数 - 人员ID: {}", id);
-
-        try {
-            // 处理培训记录
-            logger.info("步骤1: 查询培训记录");
-            TTrainingrecords tTrainingrecords = tTrainingrecordsService.selectTTrainingrecordsBystaffId(id);
-            if (tTrainingrecords != null) {
-                logger.info("找到培训记录,ID: {},准备更新删除标志为9", tTrainingrecords.getId());
-                tTrainingrecords.setDelFlag(9l);
-                tTrainingrecordsService.updateTTrainingrecords(tTrainingrecords);
-                logger.info("培训记录删除标志更新成功");
-            } else {
-                logger.info("未找到培训记录,跳过此步骤");
-            }
-
-            // 获取人员信息
-            logger.info("步骤2: 查询人员信息");
-            TStaffmgr staffmgr = tStaffmgrService.selectTStaffmgrById(id);
-            if (staffmgr == null) {
-                logger.error("未找到ID为{}的人员信息", id);
-                return AjaxResult.error("未找到人员信息");
-            }
-            logger.info("查询到人员信息 - 员工号: {}, 姓名: {}, 部门ID: {}",
-                staffmgr.getStaffid(), staffmgr.getName(), staffmgr.getDeptId());
-
-            // 删除该人员所有的Trainingbccdevice培训
-            logger.info("步骤3: 删除BCC培训设备记录(使用简单查询)");
-            List<TTrainingbccDevice> bccDevices = tTrainingbccDeviceMapper.selectTTrainingbccDeviceListByStaffId(staffmgr.getStaffid());
-            logger.info("查询到BCC培训设备记录数量: {}", bccDevices.size());
-
-            if (bccDevices.size() != 0) {
-                Long[] bccDeviceIds = new Long[bccDevices.size()];
-                for (int m = 0; m < bccDevices.size(); m++) {
-                    bccDeviceIds[m] = bccDevices.get(m).getId();
-                }
-                logger.info("准备删除BCC培训设备记录(设置del_flag=9),ID列表: {}", Arrays.toString(bccDeviceIds));
-                int deletedCount = tTrainingbccDeviceMapper.deleteTTrainingbccDeviceByIdsForStaffLeft(bccDeviceIds);
-                logger.info("BCC培训设备记录删除成功,受影响行数: {}", deletedCount);
-            } else {
-                logger.info("该人员没有BCC培训设备记录,跳过删除");
-            }
-
-            // 王子文 2022年6月27日 添加
-            // 离职时修改继任者清单状态、培养计划状态
-            logger.info("步骤4: 更新继任者清单状态和培养计划状态");
-            Long staffId = Long.parseLong(staffmgr.getStaffid());
-            logger.info("员工号转换为Long: {}", staffId);
-
-            logger.info("更新继任者清单状态...");
-            stSuccessorService.updateStateByStaffId(staffId);
-            logger.info("继任者清单状态更新完成");
-
-            logger.info("更新培养计划状态...");
-            tStPlanService.updateStudyStateByStaffId(staffId);
-            logger.info("培养计划状态更新完成");
-
-            // 最终删除人员
-            logger.info("步骤5: 执行人员离职删除操作");
-            int result = tStaffmgrService.deleteLeftTStaffmgrByIds(id);
-            logger.info("人员离职删除操作完成,受影响行数: {}", result);
-
-            logger.info("======== 删除离职人员操作成功完成 ========");
-            return toAjax(result);
-
-        } catch (Exception e) {
-            logger.error("======== 删除离职人员操作失败 ========");
-            logger.error("异常信息: {}", e.getMessage(), e);
-            return AjaxResult.error("删除离职人员失败: " + e.getMessage());
+        TTrainingrecords tTrainingrecords = tTrainingrecordsService.selectTTrainingrecordsBystaffId(id);
+        if (tTrainingrecords != null) {
+            tTrainingrecords.setDelFlag(9l);
+            tTrainingrecordsService.updateTTrainingrecords(tTrainingrecords);
         }
+        // 王子文 2022年6月27日 添加
+        // 离职时修改继任者清单状态、培养计划状态
+        Long staffId = Long.parseLong(tStaffmgrService.selectTStaffmgrById(id).getStaffid());
+        stSuccessorService.updateStateByStaffId(staffId);
+        tStPlanService.updateStudyStateByStaffId(staffId);
+        return toAjax(tStaffmgrService.deleteLeftTStaffmgrByIds(id));
     }
 
     /**
@@ -1064,76 +962,17 @@ public class TStaffmgrController extends BaseController {
     @Log(title = "人员管理", businessType = BusinessType.DELETE)
     @GetMapping("/retire/{id}")
     public AjaxResult removeRetire(@PathVariable Long id) {
-        logger.info("======== 开始执行删除退休人员操作 ========");
-        logger.info("传入参数 - 人员ID: {}", id);
-
-        try {
-            // 处理培训记录
-            logger.info("步骤1: 查询培训记录");
-            TTrainingrecords tTrainingrecords = tTrainingrecordsService.selectTTrainingrecordsBystaffId(id);
-            if (tTrainingrecords != null) {
-                logger.info("找到培训记录,ID: {},准备更新删除标志为9", tTrainingrecords.getId());
-                tTrainingrecords.setDelFlag(9l);
-                tTrainingrecordsService.updateTTrainingrecords(tTrainingrecords);
-                logger.info("培训记录删除标志更新成功");
-            } else {
-                logger.info("未找到培训记录,跳过此步骤");
-            }
-
-            // 获取人员信息
-            logger.info("步骤2: 查询人员信息");
-            TStaffmgr staffmgr = tStaffmgrService.selectTStaffmgrById(id);
-            if (staffmgr == null) {
-                logger.error("未找到ID为{}的人员信息", id);
-                return AjaxResult.error("未找到人员信息");
-            }
-            logger.info("查询到人员信息 - 员工号: {}, 姓名: {}, 部门ID: {}",
-                staffmgr.getStaffid(), staffmgr.getName(), staffmgr.getDeptId());
-
-            // 删除该人员所有的Trainingbccdevice培训
-            logger.info("步骤3: 删除BCC培训设备记录(使用简单查询)");
-            List<TTrainingbccDevice> bccDevices = tTrainingbccDeviceMapper.selectTTrainingbccDeviceListByStaffId(staffmgr.getStaffid());
-            logger.info("查询到BCC培训设备记录数量: {}", bccDevices.size());
-
-            if (bccDevices.size() != 0) {
-                Long[] bccDeviceIds = new Long[bccDevices.size()];
-                for (int m = 0; m < bccDevices.size(); m++) {
-                    bccDeviceIds[m] = bccDevices.get(m).getId();
-                }
-                logger.info("准备删除BCC培训设备记录(设置del_flag=9),ID列表: {}", Arrays.toString(bccDeviceIds));
-                int deletedCount = tTrainingbccDeviceMapper.deleteTTrainingbccDeviceByIdsForStaffLeft(bccDeviceIds);
-                logger.info("BCC培训设备记录删除成功,受影响行数: {}", deletedCount);
-            } else {
-                logger.info("该人员没有BCC培训设备记录,跳过删除");
-            }
-
-            // 王子文 2022年6月27日 添加
-            // 离职时修改继任者清单状态、培养计划状态
-            logger.info("步骤4: 更新继任者清单状态和培养计划状态");
-            Long staffId = Long.parseLong(staffmgr.getStaffid());
-            logger.info("员工号转换为Long: {}", staffId);
-
-            logger.info("更新继任者清单状态...");
-            stSuccessorService.updateStateByStaffId(staffId);
-            logger.info("继任者清单状态更新完成");
-
-            logger.info("更新培养计划状态...");
-            tStPlanService.updateStudyStateByStaffId(staffId);
-            logger.info("培养计划状态更新完成");
-
-            // 最终删除人员
-            logger.info("步骤5: 执行人员退休删除操作");
-            int result = tStaffmgrService.deleteRetireTStaffmgrByIds(id);
-            logger.info("人员退休删除操作完成,受影响行数: {}", result);
-
-            logger.info("======== 删除退休人员操作成功完成 ========");
-            return toAjax(result);
-
-        } catch (Exception e) {
-            logger.error("======== 删除退休人员操作失败 ========");
-            logger.error("异常信息: {}", e.getMessage(), e);
-            return AjaxResult.error("删除退休人员失败: " + e.getMessage());
+        TTrainingrecords tTrainingrecords = tTrainingrecordsService.selectTTrainingrecordsBystaffId(id);
+        if (tTrainingrecords != null) {
+            tTrainingrecords.setDelFlag(9l);
+            tTrainingrecordsService.updateTTrainingrecords(tTrainingrecords);
         }
+        // 王子文 2022年6月27日 添加
+        // 离职时修改继任者清单状态、培养计划状态
+        Long staffId = Long.parseLong(tStaffmgrService.selectTStaffmgrById(id).getStaffid());
+        stSuccessorService.updateStateByStaffId(staffId);
+        tStPlanService.updateStudyStateByStaffId(staffId);
+        return toAjax(tStaffmgrService.deleteRetireTStaffmgrByIds(id));
     }
 
     /**

+ 15 - 0
master/src/main/java/com/ruoyi/project/plant/mapper/TStaffmgrMapper.java

@@ -26,6 +26,21 @@ public interface TStaffmgrMapper
      */
     public List<TStaffmgr> selectOtsList(TStaffmgr tStaffmgr);
 
+    /**
+     * 获取EOEG SAI验证人列表
+     */
+    public List<TStaffmgr> selectEoegSaiInspectors();
+
+    /**
+     * 获取EOEG SAI整改负责人列表
+     */
+    public List<TStaffmgr> selectEoegSaiExecutors();
+
+    /**
+     * 获取EOEG SAI评估人列表
+     */
+    public List<TStaffmgr> selectEoegSaiAssessors();
+
     /**
      * 获取SAI验证人列表
      */

+ 15 - 0
master/src/main/java/com/ruoyi/project/plant/service/ITStaffmgrService.java

@@ -129,4 +129,19 @@ public interface ITStaffmgrService
      * 获取SAI整改负责人列表
      */
     public List<TStaffmgr> selectSaiExecutors();
+
+    /**
+     * 获取EOEG SAI验证人列表
+     */
+    public List<TStaffmgr> selectEoegSaiInspectors();
+
+    /**
+     * 获取EOEG SAI整改负责人列表
+     */
+    public List<TStaffmgr> selectEoegSaiExecutors();
+
+    /**
+     * 获取EOEG SAI评估人列表
+     */
+    public List<TStaffmgr> selectEoegSaiAssessors();
 }

+ 21 - 0
master/src/main/java/com/ruoyi/project/plant/service/impl/TStaffmgrServiceImpl.java

@@ -26,6 +26,27 @@ public class TStaffmgrServiceImpl implements ITStaffmgrService
         return tStaffmgrMapper.selectMentorList(tStaffmgr);
     }
 
+    /**
+     * 获取EOEG SAI验证人列表
+     */
+    public List<TStaffmgr> selectEoegSaiInspectors() {
+        return tStaffmgrMapper.selectEoegSaiInspectors();
+    }
+
+    /**
+     * 获取EOEG SAI整改负责人列表
+     */
+    public List<TStaffmgr> selectEoegSaiExecutors() {
+        return tStaffmgrMapper.selectEoegSaiExecutors();
+    }
+
+    /**
+     * 获取EOEG SAI评估人列表
+     */
+    public List<TStaffmgr> selectEoegSaiAssessors() {
+        return tStaffmgrMapper.selectEoegSaiAssessors();
+    }
+
     /**
      * 获取SAI验证人列表
      */

+ 10 - 0
master/src/main/java/com/ruoyi/project/production/controller/vo/EoegSaiApplyQueryVO.java

@@ -44,6 +44,8 @@ public class EoegSaiApplyQueryVO extends BaseEntity {
 
     private String applyStatusString;
 
+    private String saiType;
+
     /** 登记人部门 */
     @Excel(name = "登记人部门")
     private String applicantDept;
@@ -157,6 +159,14 @@ public class EoegSaiApplyQueryVO extends BaseEntity {
     /** 备注(执行阶段) */
     private String remarksExecute;
 
+    public String getSaiType() {
+        return saiType;
+    }
+
+    public void setSaiType(String saiType) {
+        this.saiType = saiType;
+    }
+
     public String getApplyStatusString() {
         return applyStatusString;
     }

+ 27 - 0
master/src/main/resources/mybatis/plant/TStaffmgrMapper.xml

@@ -132,6 +132,33 @@
         where d.unit = 38 and d.team in (10, 12, 14, 16) and d.ACTUALPOST= 12 and d.DEL_FLAG= 0
     </select>
 
+    <select id="selectEoegSaiAssessors" resultMap="TStaffmgrResult">
+        select u.user_id, d.id, d.plant_code,d.left_date, d.staffid, d.name, d.photo, d.sex, d.birthday, d.unit, d.team, d.actualpost, d.contact, d.del_flag,
+        d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.education, d.en_ability, d.accident_num, d.mail, d.skill_score,
+        d.p_id , d.special_duty, d.region, s.dept_name from t_staffmgr d
+        left join sys_dept s on s.dept_id = d.dept_id
+        inner join sys_user u on d.staffid = u.staffid and u.del_flag = 0
+        where d.unit = 38 and d.ACTUALPOST=12 and team in (10, 12, 14, 16) and d.DEL_FLAG=0
+    </select>
+
+    <select id="selectEoegSaiExecutors" resultMap="TStaffmgrResult">
+        select u.user_id, d.id, d.plant_code,d.left_date, d.staffid, d.name, d.photo, d.sex, d.birthday, d.unit, d.team, d.actualpost, d.contact, d.del_flag,
+        d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.education, d.en_ability, d.accident_num, d.mail, d.skill_score,
+        d.p_id , d.special_duty, d.region, s.dept_name from t_staffmgr d
+        left join sys_dept s on s.dept_id = d.dept_id
+        inner join sys_user u on d.staffid = u.staffid and u.del_flag = 0
+        where (d.unit in (46, 48, 50, 52) or (d.unit = 38 and d.ACTUALPOST in (16, 15, 20, 18, 22))) and d.DEL_FLAG=0
+    </select>
+
+    <select id="selectEoegSaiInspectors" resultMap="TStaffmgrResult">
+        select u.user_id, d.id, d.plant_code,d.left_date, d.staffid, d.name, d.photo, d.sex, d.birthday, d.unit, d.team, d.actualpost, d.contact, d.del_flag,
+               d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.education, d.en_ability, d.accident_num, d.mail, d.skill_score,
+               d.p_id , d.special_duty, d.region, s.dept_name from t_staffmgr d
+                                                                     left join sys_dept s on s.dept_id = d.dept_id
+                                                                     inner join sys_user u on d.staffid = u.staffid and u.del_flag = 0
+        where d.name in ('武琛珅', '金卫东') and d.DEL_FLAG=0
+    </select>
+
     <select id="selectTStaffmgrList" parameterType="TStaffmgr" resultMap="TStaffmgrResult">
         <include refid="selectTStaffmgrVo"/>
         Left join SYS_DICT_DATA s0 on d.UNIT = s0.DICT_VALUE and s0.DICT_TYPE ='STAFF_UNIT'

+ 1 - 0
master/src/main/resources/mybatis/production/TEoegSaiApplyMapper.xml

@@ -128,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="remarksAssess != null  and remarksAssess != ''"> and remarks_assess = #{remarksAssess}</if>
             <if test="remarksExecute != null  and remarksExecute != ''"> and remarks_execute = #{remarksExecute}</if>
             <if test="workArea != null  and workArea != ''"> and instr(#{workArea}, work_area ) > 0 </if>
+            <if test="saiType != null  and saiType != ''"> and sai_type = #{saiType}</if>
             <if test="ids != null and ids.length > 0"> and sai_apply_id in
                 <foreach item="id" collection="ids" open="(" separator="," close=")">
                     #{id}

+ 21 - 0
ui/src/api/plant/staffmgr.js

@@ -1,5 +1,26 @@
 import request from '@/utils/request'
 
+export function listEoegSaiInspectors() {
+  return request({
+    url: '/plant/staffmgr/listEoegSaiInspectors',
+    method: 'get',
+  })
+}
+
+export function listEoegSaiExecutors() {
+  return request({
+    url: '/plant/staffmgr/listEoegSaiExecutors',
+    method: 'get',
+  })
+}
+
+export function listEoegSaiAssessors() {
+  return request({
+    url: '/plant/staffmgr/listEoegSaiAssessors',
+    method: 'get',
+  })
+}
+
 // 获取SAI执行人列表
 export function listSaiInspectors() {
   return request({

+ 46 - 2
ui/src/views/approve/approveDetail/eoeg-sai-apply-detail.vue

@@ -246,7 +246,7 @@
                 v-model="dataForm.inspectors"
                 placeholder="请选择验证人">
                 <el-option
-                  v-for="dict in applicantOptions"
+                  v-for="dict in inspectorsOptions"
                   :key="dict.dictValue"
                   :label="dict.dictLabel"
                   :value="dict.dictValue"
@@ -489,7 +489,7 @@ import { listFile } from "@/api/production/eoegSaiApproveFile";
 import { getHistorylist } from "@/api/ehs/approvedanger";
 import { listUserPost } from "@/api/system/user";
 import { treeselect, listDept } from "@/api/system/dept";
-import { listSaiInspectors, listSaiExecutors, listStaffmgrByDeptAndTeam, getLoginStaffInfo } from "@/api/plant/staffmgr";
+import { listSaiInspectors, listSaiExecutors, listStaffmgrByDeptAndTeam, getLoginStaffInfo, listEoegSaiInspectors, listEoegSaiExecutors, listEoegSaiAssessors } from "@/api/plant/staffmgr";
 import { allFileList, delCommonfile } from "@/api/common/commonfile";
 import { categoryList } from "@/api/production/eoegCategory";
 import { selectDevice } from "@/api/invoice/device";
@@ -651,6 +651,9 @@ export default {
       executeDisabled: false,
       // 是否禁用验收
       inspectDisabled: false,
+      inspectorsOptions: [],
+      executorsOptions: [],
+      assessorsOptions: [],
     }
   },
   methods: {
@@ -777,7 +780,48 @@ export default {
       this.getLoginStaffInfo();
       // 加载SAI类别字典
       this.getCategoryList();
+
+      this.getInspectorsOptions();
+      this.getExecutorsOptions();
+      this.getAssessorsOptions();
+    },
+    getInspectorsOptions() {
+      listEoegSaiInspectors().then(response => {
+        let list = response.data;
+        this.inspectorsOptions = [];
+        for (let i = 0; i < list.length; i++) {
+          let option = {
+            dictLabel: list[i].name,
+            dictValue: list[i].userId
+          }
+          this.inspectorsOptions.push(option);
+        }
+      });
     },
+    getExecutorsOptions() {
+      listEoegSaiExecutors().then(response => {
+        let list = response.data;
+        this.executorsOptions = [];
+        for (let i = 0; i < list.length; i++) {
+          let option = {
+            dictLabel: list[i].name,
+            dictValue: list[i].userId
+          }
+          this.executorsOptions.push(option);
+        }
+      });},
+    getAssessorsOptions() {
+      listEoegSaiAssessors().then(response => {
+        let list = response.data;
+        this.assessorsOptions = [];
+        for (let i = 0; i < list.length; i++) {
+          let option = {
+            dictLabel: list[i].name,
+            dictValue: list[i].userId
+          }
+          this.assessorsOptions.push(option);
+        }
+      });},
     /** 获取SAI类别列表数据 */
     getCategoryList() {
       this.saiCategoryOptions = [];

+ 45 - 2
ui/src/views/production/eoegapply/all/index.vue

@@ -442,7 +442,7 @@
                 v-model="form.executor"
                 placeholder="请选择整改负责人">
                 <el-option
-                  v-for="dict in applicantOptions"
+                  v-for="dict in executorsOptions"
                   :key="dict.dictValue"
                   :label="dict.dictLabel"
                   :value="dict.dictValue"
@@ -855,7 +855,7 @@
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import SaiApplyDetail from "@/views/approve/approveDetail/eoeg-sai-apply-detail";
   import ProcessImg from '@/views/approve/processImg/index';
-  import { listStaffmgrByDeptAndTeam, getLoginStaffInfo } from "@/api/plant/staffmgr";
+  import { listStaffmgrByDeptAndTeam, getLoginStaffInfo, listEoegSaiInspectors, listEoegSaiExecutors, listEoegSaiAssessors } from "@/api/plant/staffmgr";
   import { allFileList, delCommonfile } from "@/api/common/commonfile";
   import { categoryList } from "@/api/production/eoegCategory";
   import { listFile } from "@/api/production/eoegSaiApproveFile";
@@ -1150,6 +1150,9 @@ export default {
       countB: 0,
       countC: 0,
       countD: 0,
+      inspectorsOptions: [],
+      executorsOptions: [],
+      assessorsOptions: [],
     };
   },
   watch: {
@@ -1190,8 +1193,48 @@ export default {
     this.getCategoryList();
     this.getWorkAreaList();
     this.getTeamTable();
+    this.getInspectorsOptions();
+    this.getExecutorsOptions();
+    this.getAssessorsOptions();
   },
   methods: {
+    getInspectorsOptions() {
+      listEoegSaiInspectors().then(response => {
+        let list = response.data;
+        this.inspectorsOptions = [];
+        for (let i = 0; i < list.length; i++) {
+          let option = {
+            dictLabel: list[i].name,
+            dictValue: list[i].userId
+          }
+          this.inspectorsOptions.push(option);
+        }
+      });
+    },
+    getExecutorsOptions() {
+      listEoegSaiExecutors().then(response => {
+        let list = response.data;
+        this.executorsOptions = [];
+        for (let i = 0; i < list.length; i++) {
+          let option = {
+            dictLabel: list[i].name,
+            dictValue: list[i].userId
+          }
+          this.executorsOptions.push(option);
+        }
+      });},
+    getAssessorsOptions() {
+      listEoegSaiAssessors().then(response => {
+        let list = response.data;
+        this.assessorsOptions = [];
+        for (let i = 0; i < list.length; i++) {
+          let option = {
+            dictLabel: list[i].name,
+            dictValue: list[i].userId
+          }
+          this.assessorsOptions.push(option);
+        }
+      });},
     getTeamTable() {
       getTeamAnalysis().then(response => {
         let data = response.data;

+ 46 - 3
ui/src/views/production/eoegapply/mine/index.vue

@@ -435,7 +435,7 @@
                 v-model="form.executor"
                 placeholder="请选择整改负责人">
                 <el-option
-                  v-for="dict in applicantOptions"
+                  v-for="dict in executorsOptions"
                   :key="dict.dictValue"
                   :label="dict.dictLabel"
                   :value="dict.dictValue"
@@ -759,9 +759,9 @@
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-  import SaiApplyDetail from "@/views/approve/approveDetail/sai-apply-detail";
+  import SaiApplyDetail from "@/views/approve/approveDetail/eoeg-sai-apply-detail";
   import ProcessImg from '@/views/approve/processImg/index';
-  import { listStaffmgrByDeptAndTeam, getLoginStaffInfo } from "@/api/plant/staffmgr";
+  import { listStaffmgrByDeptAndTeam, getLoginStaffInfo, listEoegSaiInspectors, listEoegSaiExecutors, listEoegSaiAssessors } from "@/api/plant/staffmgr";
   import { allFileList, delCommonfile } from "@/api/common/commonfile";
   import { categoryList } from "@/api/production/eoegCategory";
   import { listFile } from "@/api/production/eoegSaiApproveFile";
@@ -1036,6 +1036,9 @@
         countB: 0,
         countC: 0,
         countD: 0,
+        inspectorsOptions: [],
+        executorsOptions: [],
+        assessorsOptions: [],
       };
     },
     watch: {
@@ -1076,8 +1079,48 @@
       this.getCategoryList();
       this.getWorkAreaList();
       this.getTeamTable();
+      this.getInspectorsOptions();
+      this.getExecutorsOptions();
+      this.getAssessorsOptions();
     },
     methods: {
+      getInspectorsOptions() {
+        listEoegSaiInspectors().then(response => {
+          let list = response.data;
+          this.inspectorsOptions = [];
+          for (let i = 0; i < list.length; i++) {
+            let option = {
+              dictLabel: list[i].name,
+              dictValue: list[i].userId
+            }
+            this.inspectorsOptions.push(option);
+          }
+        });
+      },
+      getExecutorsOptions() {
+        listEoegSaiExecutors().then(response => {
+          let list = response.data;
+          this.executorsOptions = [];
+          for (let i = 0; i < list.length; i++) {
+            let option = {
+              dictLabel: list[i].name,
+              dictValue: list[i].userId
+            }
+            this.executorsOptions.push(option);
+          }
+        });},
+      getAssessorsOptions() {
+        listEoegSaiAssessors().then(response => {
+          let list = response.data;
+          this.assessorsOptions = [];
+          for (let i = 0; i < list.length; i++) {
+            let option = {
+              dictLabel: list[i].name,
+              dictValue: list[i].userId
+            }
+            this.assessorsOptions.push(option);
+          }
+        });},
       getTeamTable() {
         getTeamAnalysis().then(response => {
           let data = response.data;

+ 45 - 2
ui/src/views/production/eoegapply/pending/index.vue

@@ -435,7 +435,7 @@
                 v-model="form.executor"
                 placeholder="请选择整改负责人">
                 <el-option
-                  v-for="dict in applicantOptions"
+                  v-for="dict in executorsOptions"
                   :key="dict.dictValue"
                   :label="dict.dictLabel"
                   :value="dict.dictValue"
@@ -761,7 +761,7 @@
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import EoegSaiApplyDetail from "@/views/approve/approveDetail/eoeg-sai-apply-detail";
   import ProcessImg from '@/views/approve/processImg/index';
-  import { listStaffmgrByDeptAndTeam, getLoginStaffInfo } from "@/api/plant/staffmgr";
+  import { listStaffmgrByDeptAndTeam, getLoginStaffInfo, listEoegSaiInspectors, listEoegSaiExecutors, listEoegSaiAssessors } from "@/api/plant/staffmgr";
   import { allFileList, delCommonfile } from "@/api/common/commonfile";
   import { categoryList } from "@/api/production/eoegCategory";
   import { listFile } from "@/api/production/eoegSaiApproveFile";
@@ -1036,6 +1036,9 @@
         countB: 0,
         countC: 0,
         countD: 0,
+        inspectorsOptions: [],
+        executorsOptions: [],
+        assessorsOptions: [],
       };
     },
     watch: {
@@ -1076,8 +1079,48 @@
       this.getCategoryList();
       this.getWorkAreaList();
       this.getTeamTable();
+      this.getInspectorsOptions();
+      this.getExecutorsOptions();
+      this.getAssessorsOptions();
     },
     methods: {
+      getInspectorsOptions() {
+        listEoegSaiInspectors().then(response => {
+          let list = response.data;
+          this.inspectorsOptions = [];
+          for (let i = 0; i < list.length; i++) {
+            let option = {
+              dictLabel: list[i].name,
+              dictValue: list[i].userId
+            }
+            this.inspectorsOptions.push(option);
+          }
+        });
+      },
+      getExecutorsOptions() {
+        listEoegSaiExecutors().then(response => {
+          let list = response.data;
+          this.executorsOptions = [];
+          for (let i = 0; i < list.length; i++) {
+            let option = {
+              dictLabel: list[i].name,
+              dictValue: list[i].userId
+            }
+            this.executorsOptions.push(option);
+          }
+        });},
+      getAssessorsOptions() {
+        listEoegSaiAssessors().then(response => {
+          let list = response.data;
+          this.assessorsOptions = [];
+          for (let i = 0; i < list.length; i++) {
+            let option = {
+              dictLabel: list[i].name,
+              dictValue: list[i].userId
+            }
+            this.assessorsOptions.push(option);
+          }
+        });},
       getTeamTable() {
         getTeamAnalysis().then(response => {
           let data = response.data;