wangggziwen hace 2 años
padre
commit
e9314c3cbe
Se han modificado 20 ficheros con 1994 adiciones y 142 borrados
  1. 13 1
      master/src/main/java/com/ruoyi/project/common/CommonController.java
  2. 780 8
      master/src/main/java/com/ruoyi/project/process/controller/TMocController.java
  3. 319 0
      master/src/main/java/com/ruoyi/project/process/controller/export/Aquifier.java
  4. 117 0
      master/src/main/java/com/ruoyi/project/process/controller/export/Facility.java
  5. 118 0
      master/src/main/java/com/ruoyi/project/process/controller/export/Interlock.java
  6. 228 0
      master/src/main/java/com/ruoyi/project/process/controller/export/Moc.java
  7. 266 0
      master/src/main/java/com/ruoyi/project/process/controller/export/TemporaryMoc.java
  8. BIN
      master/src/main/resources/static/template/process/moc/aquifier.xlsx
  9. BIN
      master/src/main/resources/static/template/process/moc/facility.xlsx
  10. BIN
      master/src/main/resources/static/template/process/moc/interlock.xlsx
  11. 0 0
      master/src/main/resources/static/template/process/moc/moc.xlsx
  12. 0 0
      master/src/main/resources/static/template/process/moc/permanentMoc.xlsx
  13. BIN
      master/src/main/resources/static/template/process/moc/temporaryMoc.xlsx
  14. 40 0
      ui/src/api/process/moc.js
  15. 23 24
      ui/src/views/process/moc/aquifier/index.vue
  16. 23 32
      ui/src/views/process/moc/facility/index.vue
  17. 23 32
      ui/src/views/process/moc/interlock/index.vue
  18. 9 9
      ui/src/views/process/moc/permanentMoc/index.vue
  19. 11 3
      ui/src/views/process/moc/summary/index.vue
  20. 24 33
      ui/src/views/process/moc/temporaryMoc/index.vue

+ 13 - 1
master/src/main/java/com/ruoyi/project/common/CommonController.java

@@ -71,7 +71,19 @@ public class CommonController extends BaseController
             url = "static/template/document/publicdocmenu.xlsx";
         } else if( type.equals("permanentMoc") ) {
             downloadname = "永久MOC导入模板.xlsx";
-            url = "static/template/process/permanentMoc.xlsx";
+            url = "static/template/process/moc/permanentMoc.xlsx";
+        } else if( type.equals("temporaryMoc") ) {
+            downloadname = "临时MOC导入模板.xlsx";
+            url = "static/template/process/moc/temporaryMoc.xlsx";
+        } else if( type.equals("aquifier") ) {
+            downloadname = "临时MOC-带压消漏清单导入模板.xlsx";
+            url = "static/template/process/moc/aquifier.xlsx";
+        } else if( type.equals("facility") ) {
+            downloadname = "临时MOC-临时设施及其它导入模板.xlsx";
+            url = "static/template/process/moc/facility.xlsx";
+        } else if( type.equals("interlock") ) {
+            downloadname = "临时MOC-仪表联锁旁路导入模板.xlsx";
+            url = "static/template/process/moc/interlock.xlsx";
         } else if( type.equals("accident") ) {
             downloadname = "隐患排查导入模板.xlsx";
             url = "static/template/production/accident.xlsx";

+ 780 - 8
master/src/main/java/com/ruoyi/project/process/controller/TMocController.java

@@ -13,7 +13,7 @@ import com.ruoyi.framework.config.RuoYiConfig;
 import com.ruoyi.project.common.domain.DataEntity;
 import com.ruoyi.project.common.domain.TCommonfile;
 import com.ruoyi.project.common.service.ITCommonfileService;
-import com.ruoyi.project.process.controller.export.PermanentMoc;
+import com.ruoyi.project.process.controller.export.*;
 import com.ruoyi.project.process.controller.vo.*;
 import com.ruoyi.project.process.mapper.TMocMapper;
 import com.ruoyi.project.system.domain.SysDept;
@@ -72,6 +72,768 @@ public class TMocController extends BaseController
     @Autowired
     private ITCommonfileService commonfileService;
 
+    /**
+     * 导出临时MOC - 带压消漏清单
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:export')")
+    @GetMapping("/exportaquifier")
+    public AjaxResult exportAquifier(TMoc tMoc)
+    {
+        // 当前用户归属部门
+        Long deptId = userService.selectUserById(getUserId()).getDeptId();
+        // 查询条件
+        // 1. 数据归属部门=当前用户归属部门
+        tMoc.setDeptId(deptId);
+        // 2. 时效性=临时
+        tMoc.setTimeliness("2");
+        // 3. 临时MOC类别
+        tMoc.setTempCategory("1");
+        // 查询总表数据
+        List<TMoc> mocList = tMocService.selectTMocList(tMoc);
+        // 带压消漏清单数据
+        List<Aquifier> aquifierList = new ArrayList<Aquifier>();
+        //字典查询
+        List<SysDictData> mocStatusDict = iSysDictTypeService.selectDictDataByType("MOC_STATUS");
+        // 遍历总表数据,插入带压消漏清单
+        for (TMoc moc : mocList) {
+            Aquifier aquifier = new Aquifier();
+            aquifier.setMocNo(moc.getMocNo());
+            aquifier.setCompanyMocNo(moc.getCompanyMocNo());
+            aquifier.setProcessUnit(moc.getProcessUnit());
+            aquifier.setDepartment(moc.getDepartment());
+            aquifier.setLeakLocation(moc.getLeakLocation());
+            aquifier.setTitle(moc.getTitle());
+            aquifier.setPressure(moc.getPressure());
+            aquifier.setTemperature(moc.getTemperature());
+            aquifier.setLeakFluid(moc.getLeakFluid());
+            aquifier.setMaterialType(moc.getMaterialType());
+            aquifier.setPlanDate(moc.getPlanDate());
+            aquifier.setSealDate(moc.getSealDate());
+            aquifier.setExtention1(moc.getExtention1());
+            aquifier.setExtention2(moc.getExtention2());
+            aquifier.setExtention3(moc.getExtention3());
+            aquifier.setExtention4(moc.getExtention4());
+            aquifier.setExtention5(moc.getExtention5());
+            aquifier.setExtention6(moc.getExtention6());
+            aquifier.setExtention7(moc.getExtention7());
+            aquifier.setExtention8(moc.getExtention8());
+            aquifier.setExtention9(moc.getExtention9());
+            for (SysDictData sysDictData : mocStatusDict) {
+                if (sysDictData.getDictValue().equals(moc.getStatus())) {
+                    aquifier.setStatus(sysDictData.getDictLabel());
+                }
+            }
+            aquifier.setRemoveTime(moc.getRemoveTime());
+            aquifier.setRemarks(moc.getRemarks());
+            aquifierList.add(aquifier);
+        }
+        ExcelUtil<Aquifier> util = new ExcelUtil<Aquifier>(Aquifier.class);
+        return util.exportExcel(aquifierList, "带压消漏清单");
+    }
+
+    /**
+     * 批量导入临时MOC - 带压消漏清单
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:add')")
+    @PostMapping("/aquifier/importData")
+    public AjaxResult importAquifierData(@RequestParam("file") MultipartFile file) throws IOException
+    {
+        //获取操作人员ID
+        Long userId = getUserId();
+        //报错行数统计
+        List<Integer> failRow =new ArrayList<Integer>();
+        Workbook workbook = ExcelUtils.getWorkBook(file);
+        Sheet sheet = workbook.getSheetAt(0);
+        List<TMoc> list = new ArrayList<TMoc>();
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+        //字典查询
+        List<SysDictData> mocStatusDict = iSysDictTypeService.selectDictDataByType("MOC_STATUS");
+        //部门查询
+        List<SysDept> dept = iSysDeptService.selectDeptList(new SysDept());
+        int rowNum = sheet.getPhysicalNumberOfRows();
+        int failNumber = 0;
+        for (int i = 2; i <= rowNum; i++) {
+            try {
+                logger.info("读取行数:" + i);
+                Row row = sheet.getRow(i);
+                int cellNum = row.getPhysicalNumberOfCells();
+                TMoc entity = new TMoc();
+                entity.setTimeliness("2");
+                entity.setTempCategory("1");
+                entity.setDeptId(userService.selectUserById(getUserId()).getDeptId());
+                for (int j = 0; j < cellNum; j++) {
+                    Cell cell = row.getCell(j);
+                    //  cell.setCellType(CellType.STRING);
+                    String cellValue = ExcelUtils.getCellValue(cell);
+                    logger.info("cellValue:" + cellValue);
+                    if (j == 0) {
+                        entity.setMocNo(cellValue);
+                    } else if (j == 1) {
+                        entity.setCompanyMocNo(cellValue);
+                    } else if (j == 2) {
+                        entity.setProcessUnit(cellValue);
+                    } else if (j == 3) {
+                        entity.setDepartment(cellValue);
+                    } else if (j == 4) {
+                        entity.setLeakLocation(cellValue);
+                    } else if (j == 5) {
+                        entity.setTitle(cellValue);
+                    } else if (j == 6) {
+                        entity.setPressure(cellValue);
+                    } else if (j == 7) {
+                        entity.setTemperature(cellValue);
+                    } else if (j == 8) {
+                        entity.setLeakFluid(cellValue);
+                    } else if (j == 9) {
+                        entity.setMaterialType(cellValue);
+                    } else if (j == 10) {
+                        if (cellValue.length() > 3) {
+                            entity.setPlanDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 11) {
+                        if (cellValue.length() > 3) {
+                            entity.setSealDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 12) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention1(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 13) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention2(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 14) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention3(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 15) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention4(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 16) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention5(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 17) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention6(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 18) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention7(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 19) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention8(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 20) {
+                        if (cellValue.length() > 3) {
+                            entity.setExtention9(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 21) {
+                        if (cellValue.length() > 3) {
+                            entity.setExpTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 22) {
+                        for (SysDictData sysDictData : mocStatusDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setStatus(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 23) {
+                        if (cellValue.length() > 3) {
+                            entity.setRemoveTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    }
+                }
+                entity.setCreaterCode(userId.toString());
+                logger.info("entity:" + entity);
+                list.add(entity);
+            }catch (Exception e){
+                failNumber++;
+                failRow.add(i+1);
+            }
+        }
+        int successNumber = 0;
+        int failNum = 0;
+        for (TMoc t : list
+        ) {
+            failNum++;
+            try {
+                tMocService.insertTMoc(t);
+                successNumber++;
+            }catch (Exception e){
+                failNumber++;
+                logger.info("e:" + e);
+                failRow.add(failNum+1);
+            }
+        }
+        logger.info("list:" + JSON.toJSONString(list));
+        logger.info("successNumber:" +String.valueOf(successNumber));
+        logger.info("failNumber:" +String.valueOf(failNumber));
+        logger.info("failRow:" +String.valueOf(failRow));
+        return AjaxResult.success(String.valueOf(successNumber), failRow);
+    }
+
+    /**
+     * 导出临时MOC - 临时设施、其它
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:export')")
+    @GetMapping("/exportfacility")
+    public AjaxResult exportFacility(TMoc tMoc)
+    {
+        // 当前用户归属部门
+        Long deptId = userService.selectUserById(getUserId()).getDeptId();
+        // 查询条件
+        // 1. 数据归属部门=当前用户归属部门
+        tMoc.setDeptId(deptId);
+        // 2. 时效性=临时
+        tMoc.setTimeliness("2");
+        // 3. 临时MOC类别
+        tMoc.setTempCategory("2");
+        // 查询总表数据
+        List<TMoc> mocList = tMocService.selectTMocList(tMoc);
+        // 临时设施、其它数据
+        List<Facility> facilityList = new ArrayList<Facility>();
+        //字典查询
+        List<SysDictData> tempStateDict = iSysDictTypeService.selectDictDataByType("TEMP_STATE");
+        // 遍历总表数据,插入临时设施、其它
+        for (TMoc moc : mocList) {
+            Facility facility = new Facility();
+            facility.setMocNo(moc.getMocNo());
+            facility.setCompanyMocNo(moc.getCompanyMocNo());
+            facility.setLocation(moc.getLocation());
+            facility.setTitle(moc.getTitle());
+            facility.setExpTime(moc.getExpTime());
+            for (SysDictData sysDictData : tempStateDict) {
+                if (sysDictData.getDictValue().equals(moc.getTempState())) {
+                    facility.setTempState(sysDictData.getDictLabel());
+                }
+            }
+            facility.setRemoveTime(moc.getRemoveTime());
+            facility.setRemarks(moc.getRemarks());
+            facilityList.add(facility);
+        }
+        ExcelUtil<Facility> util = new ExcelUtil<Facility>(Facility.class);
+        return util.exportExcel(facilityList, "临时设施及其它");
+    }
+
+    /**
+     * 批量导入临时MOC - 临时设施、其它
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:add')")
+    @PostMapping("/facility/importData")
+    public AjaxResult importFacilityData(@RequestParam("file") MultipartFile file) throws IOException
+    {
+        //获取操作人员ID
+        Long userId = getUserId();
+        //报错行数统计
+        List<Integer> failRow =new ArrayList<Integer>();
+        Workbook workbook = ExcelUtils.getWorkBook(file);
+        Sheet sheet = workbook.getSheetAt(0);
+        List<TMoc> list = new ArrayList<TMoc>();
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+        //字典查询
+        List<SysDictData> tempStateDict = iSysDictTypeService.selectDictDataByType("TEMP_STATE");
+        //部门查询
+        List<SysDept> dept = iSysDeptService.selectDeptList(new SysDept());
+        int rowNum = sheet.getPhysicalNumberOfRows();
+        int failNumber = 0;
+        for (int i = 2; i <= rowNum; i++) {
+            try {
+                logger.info("读取行数:" + i);
+                Row row = sheet.getRow(i);
+                int cellNum = row.getPhysicalNumberOfCells();
+                TMoc entity = new TMoc();
+                entity.setTimeliness("2");
+                entity.setTempCategory("2");
+                entity.setDeptId(userService.selectUserById(getUserId()).getDeptId());
+                for (int j = 0; j < cellNum; j++) {
+                    Cell cell = row.getCell(j);
+                    //  cell.setCellType(CellType.STRING);
+                    String cellValue = ExcelUtils.getCellValue(cell);
+                    logger.info("cellValue:" + cellValue);
+                    if (j == 0) {
+                        entity.setMocNo(cellValue);
+                    } else if (j == 1) {
+                        entity.setCompanyMocNo(cellValue);
+                    } else if (j == 2) {
+                        entity.setLocation(cellValue);
+                    } else if (j == 3) {
+                        entity.setTitle(cellValue);
+                    } else if (j == 4) {
+                        if (cellValue.length() > 3) {
+                            entity.setExpTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 5) {
+                        for (SysDictData sysDictData : tempStateDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setTempState(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 6) {
+                        if (cellValue.length() > 3) {
+                            entity.setRemoveTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 7) {
+                        entity.setRemarks(cellValue);
+                    }
+                }
+                entity.setCreaterCode(userId.toString());
+                logger.info("entity:" + entity);
+                list.add(entity);
+            }catch (Exception e){
+                failNumber++;
+                failRow.add(i+1);
+            }
+        }
+        int successNumber = 0;
+        int failNum = 0;
+        for (TMoc t : list
+        ) {
+            failNum++;
+            try {
+                tMocService.insertTMoc(t);
+                successNumber++;
+            }catch (Exception e){
+                failNumber++;
+                logger.info("e:" + e);
+                failRow.add(failNum+1);
+            }
+        }
+        logger.info("list:" + JSON.toJSONString(list));
+        logger.info("successNumber:" +String.valueOf(successNumber));
+        logger.info("failNumber:" +String.valueOf(failNumber));
+        logger.info("failRow:" +String.valueOf(failRow));
+        return AjaxResult.success(String.valueOf(successNumber), failRow);
+    }
+
+    /**
+     * 导出临时MOC - 仪表联锁旁路
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:export')")
+    @GetMapping("/exportinterlock")
+    public AjaxResult exportInterlock(TMoc tMoc)
+    {
+        // 当前用户归属部门
+        Long deptId = userService.selectUserById(getUserId()).getDeptId();
+        // 查询条件
+        // 1. 数据归属部门=当前用户归属部门
+        tMoc.setDeptId(deptId);
+        // 2. 时效性=临时
+        tMoc.setTimeliness("2");
+        // 3. 临时MOC类别
+        tMoc.setTempCategory("3");
+        // 查询总表数据
+        List<TMoc> mocList = tMocService.selectTMocList(tMoc);
+        // 仪表联锁旁路数据
+        List<Interlock> interlockList = new ArrayList<Interlock>();
+        //字典查询
+        List<SysDictData> tempStateDict = iSysDictTypeService.selectDictDataByType("TEMP_STATE");
+        // 遍历总表数据,插入仪表联锁旁路
+        for (TMoc moc : mocList) {
+            Interlock interlock = new Interlock();
+            interlock.setMocNo(moc.getMocNo());
+            interlock.setCompanyMocNo(moc.getCompanyMocNo());
+            interlock.setTitle(moc.getTitle());
+            interlock.setFinishDate(moc.getFinishDate());
+            interlock.setExpTime(moc.getExpTime());
+            for (SysDictData sysDictData : tempStateDict) {
+                if (sysDictData.getDictValue().equals(moc.getTempState())) {
+                    interlock.setTempState(sysDictData.getDictLabel());
+                }
+            }
+            interlock.setRemoveTime(moc.getRemoveTime());
+            interlock.setRemarks(moc.getRemarks());
+            interlockList.add(interlock);
+        }
+        ExcelUtil<Interlock> util = new ExcelUtil<Interlock>(Interlock.class);
+        return util.exportExcel(interlockList, "仪表联锁旁路");
+    }
+
+    /**
+     * 批量导入临时MOC - 仪表联锁旁路
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:add')")
+    @PostMapping("/interlock/importData")
+    public AjaxResult importInterlockData(@RequestParam("file") MultipartFile file) throws IOException
+    {
+        //获取操作人员ID
+        Long userId = getUserId();
+        //报错行数统计
+        List<Integer> failRow =new ArrayList<Integer>();
+        Workbook workbook = ExcelUtils.getWorkBook(file);
+        Sheet sheet = workbook.getSheetAt(0);
+        List<TMoc> list = new ArrayList<TMoc>();
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+        //字典查询
+        List<SysDictData> tempStateDict = iSysDictTypeService.selectDictDataByType("TEMP_STATE");
+        //部门查询
+        List<SysDept> dept = iSysDeptService.selectDeptList(new SysDept());
+        int rowNum = sheet.getPhysicalNumberOfRows();
+        int failNumber = 0;
+        for (int i = 2; i <= rowNum; i++) {
+            try {
+                logger.info("读取行数:" + i);
+                Row row = sheet.getRow(i);
+                int cellNum = row.getPhysicalNumberOfCells();
+                TMoc entity = new TMoc();
+                entity.setTimeliness("2");
+                entity.setTempCategory("3");
+                entity.setDeptId(userService.selectUserById(getUserId()).getDeptId());
+                for (int j = 0; j < cellNum; j++) {
+                    Cell cell = row.getCell(j);
+                    //  cell.setCellType(CellType.STRING);
+                    String cellValue = ExcelUtils.getCellValue(cell);
+                    logger.info("cellValue:" + cellValue);
+                    if (j == 0) {
+                        entity.setMocNo(cellValue);
+                    } else if (j == 1) {
+                        entity.setCompanyMocNo(cellValue);
+                    } else if (j == 2) {
+                        entity.setTitle(cellValue);
+                    } else if (j == 3) {
+                        if (cellValue.length() > 3) {
+                            entity.setFinishDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 4) {
+                        if (cellValue.length() > 3) {
+                            entity.setExpTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 5) {
+                        for (SysDictData sysDictData : tempStateDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setTempState(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 6) {
+                        if (cellValue.length() > 3) {
+                            entity.setRemoveTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 7) {
+                        entity.setRemarks(cellValue);
+                    }
+                }
+                entity.setCreaterCode(userId.toString());
+                logger.info("entity:" + entity);
+                list.add(entity);
+            }catch (Exception e){
+                failNumber++;
+                failRow.add(i+1);
+            }
+        }
+        int successNumber = 0;
+        int failNum = 0;
+        for (TMoc t : list
+        ) {
+            failNum++;
+            try {
+                tMocService.insertTMoc(t);
+                successNumber++;
+            }catch (Exception e){
+                failNumber++;
+                logger.info("e:" + e);
+                failRow.add(failNum+1);
+            }
+        }
+        logger.info("list:" + JSON.toJSONString(list));
+        logger.info("successNumber:" +String.valueOf(successNumber));
+        logger.info("failNumber:" +String.valueOf(failNumber));
+        logger.info("failRow:" +String.valueOf(failRow));
+        return AjaxResult.success(String.valueOf(successNumber), failRow);
+    }
+
+    /**
+     * 导出MOC
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:export')")
+    @GetMapping("/export")
+    public AjaxResult export(TMoc tMoc)
+    {
+        // 当前用户归属部门
+        Long deptId = userService.selectUserById(getUserId()).getDeptId();
+        // 查询条件
+        // 1. 数据归属部门=当前用户归属部门
+        tMoc.setDeptId(deptId);
+        // 查询总表数据
+        List<TMoc> mocList = tMocService.selectTMocList(tMoc);
+        // MOC数据
+        List<Moc> mocSummaryList = new ArrayList<Moc>();
+        //字典查询
+        List<SysDictData> mocAreaDict = iSysDictTypeService.selectDictDataByType("MOC_AREA");
+        List<SysDictData> mocTypeDict = iSysDictTypeService.selectDictDataByType("MOC_TYPE");
+        List<SysDictData> mcDetailDict = iSysDictTypeService.selectDictDataByType("MC_DETAIL");
+        List<SysDictData> mocRiskLevelDict = iSysDictTypeService.selectDictDataByType("MOC_RISKLEVEL");
+        // 遍历总表数据,插入MOC表
+        for (TMoc moc : mocList) {
+            Moc mocSummary = new Moc();
+            mocSummary.setMocNo(moc.getMocNo());
+            mocSummary.setCompanyMocNo(moc.getCompanyMocNo());
+            mocSummary.setTimeliness("1".equals(moc.getTimeliness()) ? "永久" : "临时");
+            mocSummary.setProjectNo(moc.getProjectNo());
+            for (SysDictData sysDictData : mocAreaDict) {
+                if (sysDictData.getDictValue().equals(moc.getArea())) {
+                    mocSummary.setArea(sysDictData.getDictLabel());
+                }
+            }
+            mocSummary.setTitle(moc.getTitle());
+            for (SysDictData sysDictData : mocTypeDict) {
+                if (sysDictData.getDictValue().equals(moc.getMocType())) {
+                    mocSummary.setMocType(sysDictData.getDictLabel());
+                }
+            }
+            mocSummary.setOwner(moc.getOwner());
+            mocSummary.setApproveTime(moc.getApproveTime());
+            mocSummary.setMcTime(moc.getMcTime());
+            for (SysDictData sysDictData : mcDetailDict) {
+                if (sysDictData.getDictValue().equals(moc.getMcDetail())) {
+                    mocSummary.setMcDetail(sysDictData.getDictLabel());
+                }
+            }
+            mocSummary.setRemarks(moc.getRemarks());
+            for (SysDictData sysDictData : mocRiskLevelDict) {
+                if (sysDictData.getDictValue().equals(moc.getRiskLevel())) {
+                    mocSummary.setRiskLevel(sysDictData.getDictLabel());
+                }
+            }
+            mocSummary.setEhsCheck(moc.getEhsCheck());
+            mocSummary.setTraining(moc.getTraining());
+            mocSummary.setPssr(moc.getPssr());
+            mocSummary.setPssrNo(moc.getPssrNo());
+            mocSummaryList.add(mocSummary);
+        }
+        ExcelUtil<Moc> util = new ExcelUtil<Moc>(Moc.class);
+        return util.exportExcel(mocSummaryList, "MOC汇总");
+    }
+
+    /**
+     * 导出临时MOC
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:export')")
+    @GetMapping("/exporttemporary")
+    public AjaxResult exportTemporaryMoc(TMoc tMoc)
+    {
+        // 当前用户归属部门
+        Long deptId = userService.selectUserById(getUserId()).getDeptId();
+        // 查询条件
+        // 1. 数据归属部门=当前用户归属部门
+        tMoc.setDeptId(deptId);
+        // 2. 时效性=临时
+        tMoc.setTimeliness("2");
+        // 查询总表数据
+        List<TMoc> mocList = tMocService.selectTMocList(tMoc);
+        // 临时MOC数据
+        List<TemporaryMoc> temporaryMocList = new ArrayList<TemporaryMoc>();
+        //字典查询
+        List<SysDictData> mocAreaDict = iSysDictTypeService.selectDictDataByType("MOC_AREA");
+        List<SysDictData> mocTypeDict = iSysDictTypeService.selectDictDataByType("MOC_TYPE");
+        List<SysDictData> mcDetailDict = iSysDictTypeService.selectDictDataByType("MC_DETAIL");
+        List<SysDictData> mocRiskLevelDict = iSysDictTypeService.selectDictDataByType("MOC_RISKLEVEL");
+        List<SysDictData> tempStateDict = iSysDictTypeService.selectDictDataByType("TEMP_STATE");
+        List<SysDictData> mocStatusDict = iSysDictTypeService.selectDictDataByType("MOC_STATUS");
+        List<SysDictData> yesNoEnDict = iSysDictTypeService.selectDictDataByType("YES_NO_EN");
+        // 遍历总表数据,插入临时MOC表
+        for (TMoc moc : mocList) {
+            TemporaryMoc temporaryMoc = new TemporaryMoc();
+            temporaryMoc.setMocNo(moc.getMocNo());
+            temporaryMoc.setCompanyMocNo(moc.getCompanyMocNo());
+            temporaryMoc.setProjectNo(moc.getProjectNo());
+            for (SysDictData sysDictData : mocAreaDict) {
+                if (sysDictData.getDictValue().equals(moc.getArea())) {
+                    temporaryMoc.setArea(sysDictData.getDictLabel());
+                }
+            }
+            temporaryMoc.setTitle(moc.getTitle());
+            for (SysDictData sysDictData : mocTypeDict) {
+                if (sysDictData.getDictValue().equals(moc.getMocType())) {
+                    temporaryMoc.setMocType(sysDictData.getDictLabel());
+                }
+            }
+            temporaryMoc.setOwner(moc.getOwner());
+            temporaryMoc.setApproveTime(moc.getApproveTime());
+            temporaryMoc.setMcTime(moc.getMcTime());
+            for (SysDictData sysDictData : mcDetailDict) {
+                if (sysDictData.getDictValue().equals(moc.getMcDetail())) {
+                    temporaryMoc.setMcDetail(sysDictData.getDictLabel());
+                }
+            }
+            temporaryMoc.setExpTime(moc.getExpTime());
+            for (SysDictData sysDictData : tempStateDict) {
+                if (sysDictData.getDictValue().equals(moc.getTempState())) {
+                    temporaryMoc.setTempState(sysDictData.getDictLabel());
+                }
+            }
+            for (SysDictData sysDictData : mocStatusDict) {
+                if (sysDictData.getDictValue().equals(moc.getStatus())) {
+                    temporaryMoc.setStatus(sysDictData.getDictLabel());
+                }
+            }
+            temporaryMoc.setRemoveTime(moc.getRemoveTime());
+            temporaryMoc.setRemarks(moc.getRemarks());
+            for (SysDictData sysDictData : mocRiskLevelDict) {
+                if (sysDictData.getDictValue().equals(moc.getRiskLevel())) {
+                    temporaryMoc.setRiskLevel(sysDictData.getDictLabel());
+                }
+            }
+            temporaryMoc.setEhsCheck(moc.getEhsCheck());
+            temporaryMoc.setTraining(moc.getTraining());
+            temporaryMoc.setPssr(moc.getPssr());
+            temporaryMoc.setPssrNo(moc.getPssrNo());
+            temporaryMocList.add(temporaryMoc);
+        }
+        ExcelUtil<TemporaryMoc> util = new ExcelUtil<TemporaryMoc>(TemporaryMoc.class);
+        return util.exportExcel(temporaryMocList, "临时MOC");
+    }
+
+    /**
+     * 批量导入临时MOC
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:add')")
+    @PostMapping("/temporary/importData")
+    public AjaxResult importTemporaryData(@RequestParam("file") MultipartFile file) throws IOException
+    {
+        //获取操作人员ID
+        Long userId = getUserId();
+        //报错行数统计
+        List<Integer> failRow =new ArrayList<Integer>();
+        Workbook workbook = ExcelUtils.getWorkBook(file);
+        Sheet sheet = workbook.getSheetAt(0);
+        List<TMoc> list = new ArrayList<TMoc>();
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+        //字典查询
+        List<SysDictData> mocAreaDict = iSysDictTypeService.selectDictDataByType("MOC_AREA");
+        List<SysDictData> mocTypeDict = iSysDictTypeService.selectDictDataByType("MOC_TYPE");
+        List<SysDictData> mcDetailDict = iSysDictTypeService.selectDictDataByType("MC_DETAIL");
+        List<SysDictData> mocRiskLevelDict = iSysDictTypeService.selectDictDataByType("MOC_RISKLEVEL");
+        List<SysDictData> tempStateDict = iSysDictTypeService.selectDictDataByType("TEMP_STATE");
+        List<SysDictData> mocStatusDict = iSysDictTypeService.selectDictDataByType("MOC_STATUS");
+        List<SysDictData> yesNoEnDict = iSysDictTypeService.selectDictDataByType("YES_NO_EN");
+        //部门查询
+        List<SysDept> dept = iSysDeptService.selectDeptList(new SysDept());
+        int rowNum = sheet.getPhysicalNumberOfRows();
+        int failNumber = 0;
+        for (int i = 2; i <= rowNum; i++) {
+            try {
+                logger.info("读取行数:" + i);
+                Row row = sheet.getRow(i);
+                int cellNum = row.getPhysicalNumberOfCells();
+                TMoc entity = new TMoc();
+                entity.setTimeliness("2");
+                entity.setDeptId(userService.selectUserById(getUserId()).getDeptId());
+                for (int j = 0; j < cellNum; j++) {
+                    Cell cell = row.getCell(j);
+                    //  cell.setCellType(CellType.STRING);
+                    String cellValue = ExcelUtils.getCellValue(cell);
+                    logger.info("cellValue:" + cellValue);
+                    if (j == 0) {
+                        entity.setMocNo(cellValue);
+                    } else if (j == 1) {
+                        entity.setCompanyMocNo(cellValue);
+                    } else if (j == 2) {
+                        entity.setProjectNo(cellValue);
+                    } else if (j == 3) {
+                        for (SysDictData sysDictData : mocAreaDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setArea(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 4) {
+                        entity.setTitle(cellValue);
+                    } else if (j == 5) {
+                        for (SysDictData sysDictData : mocTypeDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setMocType(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 6) {
+                        entity.setOwner(cellValue);
+                    } else if (j == 7) {
+                        if (cellValue.length() > 3) {
+                            entity.setApproveTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 8) {
+                        if (cellValue.length() > 3) {
+                            entity.setMcTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 9) {
+                        for (SysDictData sysDictData : mcDetailDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setMcDetail(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 10) {
+                        if (cellValue.length() > 3) {
+                            entity.setExpTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 11) {
+                        for (SysDictData sysDictData : tempStateDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setTempState(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 12) {
+                        for (SysDictData sysDictData : mocStatusDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setStatus(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 13) {
+                        if (cellValue.length() > 3) {
+                            entity.setRemoveTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 14) {
+                        entity.setRemarks(cellValue);
+                    } else if (j == 15) {
+                        for (SysDictData sysDictData : mocRiskLevelDict) {
+                            if (sysDictData.getDictLabel().equals(cellValue.trim())) {
+                                entity.setRiskLevel(sysDictData.getDictValue());
+                            }
+                        }
+                    } else if (j == 16) {
+                        if (cellValue.length() > 3) {
+                            entity.setEhsCheck(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 17) {
+                        if (cellValue.length() > 3) {
+                            entity.setTraining(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 18) {
+                        if (cellValue.length() > 3) {
+                            entity.setPssr(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
+                    } else if (j == 19) {
+                        entity.setPssrNo(cellValue);
+                    }
+                }
+                entity.setCreaterCode(userId.toString());
+                logger.info("entity:" + entity);
+                list.add(entity);
+            }catch (Exception e){
+                failNumber++;
+                failRow.add(i+1);
+            }
+        }
+        int successNumber = 0;
+        int failNum = 0;
+        for (TMoc t : list
+        ) {
+            failNum++;
+            try {
+                tMocService.insertTMoc(t);
+                successNumber++;
+            }catch (Exception e){
+                failNumber++;
+                logger.info("e:" + e);
+                failRow.add(failNum+1);
+            }
+        }
+        logger.info("list:" + JSON.toJSONString(list));
+        logger.info("successNumber:" +String.valueOf(successNumber));
+        logger.info("failNumber:" +String.valueOf(failNumber));
+        logger.info("failRow:" +String.valueOf(failRow));
+        return AjaxResult.success(String.valueOf(successNumber), failRow);
+    }
+
     /**
      * 导出永久MOC
      */
@@ -153,11 +915,11 @@ public class TMocController extends BaseController
     }
 
     /**
-     * 批量导入MOC管理
+     * 批量导入永久MOC
      */
     @PreAuthorize("@ss.hasPermi('process:moc:add')")
     @PostMapping("/permanent/importData")
-    public AjaxResult importData(@RequestParam("file") MultipartFile file) throws IOException
+    public AjaxResult importPermanentData(@RequestParam("file") MultipartFile file) throws IOException
     {
         //获取操作人员ID
         Long userId = getUserId();
@@ -213,9 +975,13 @@ public class TMocController extends BaseController
                     } else if (j == 6) {
                         entity.setOwner(cellValue);
                     } else if (j == 7) {
-                        entity.setApproveTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        if (cellValue.length() > 3) {
+                            entity.setApproveTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
                     } else if (j == 8) {
-                        entity.setMcTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        if (cellValue.length() > 3) {
+                            entity.setMcTime(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
                     } else if (j == 9) {
                         for (SysDictData sysDictData : mcDetailDict) {
                             if (sysDictData.getDictLabel().equals(cellValue.trim())) {
@@ -231,9 +997,13 @@ public class TMocController extends BaseController
                             }
                         }
                     } else if (j == 12) {
-                        entity.setEhsCheck(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        if (cellValue.length() > 3) {
+                            entity.setEhsCheck(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
                     } else if (j == 13) {
-                        entity.setTraining(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        if (cellValue.length() > 3) {
+                            entity.setTraining(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
                     } else if (j == 14) {
                         for (SysDictData sysDictData : yesNoEnDict) {
                             if (sysDictData.getDictLabel().equals(cellValue.trim())) {
@@ -253,7 +1023,9 @@ public class TMocController extends BaseController
                             }
                         }
                     } else if (j == 17) {
-                        entity.setPssr(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        if (cellValue.length() > 3) {
+                            entity.setPssr(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
+                        }
                     } else if (j == 18) {
                         entity.setPssrNo(cellValue);
                     }

+ 319 - 0
master/src/main/java/com/ruoyi/project/process/controller/export/Aquifier.java

@@ -0,0 +1,319 @@
+package com.ruoyi.project.process.controller.export;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+
+import java.util.Date;
+
+/**
+ * 临时MOC - 带压消漏清单导出字段
+ *
+ * @author Wang Zi Wen
+ * @email wangggziwen@163.com
+ * @date 2023/02/22 14:17:12
+ */
+public class Aquifier extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** MOC编号 */
+    @Excel(name = "MOC编号")
+    private String mocNo;
+
+    /** 公司MOC编号 */
+    @Excel(name = "公司MOC编号")
+    private String companyMocNo;
+
+    /** 工艺单元 */
+    @Excel(name = "工艺单元")
+    private String processUnit;
+
+    /** 部门 */
+    @Excel(name = "部门")
+    private String department;
+
+    /** 泄露位置 */
+    @Excel(name = "泄露位置")
+    private String leakLocation;
+
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** 操作压力 */
+    @Excel(name = "操作压力")
+    private String pressure;
+
+    /** 操作温度 */
+    @Excel(name = "操作温度")
+    private String temperature;
+
+    /** 泄露介质 */
+    @Excel(name = "泄露介质")
+    private String leakFluid;
+
+    /** 介质类型 */
+    @Excel(name = "介质类型")
+    private String materialType;
+
+    /** 方案日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "方案日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date planDate;
+
+    /** 堵漏日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "堵漏日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date sealDate;
+
+    /** 第一次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第一次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention1;
+
+    /** 第二次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第二次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention2;
+
+    /** 第三次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第三次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention3;
+
+    /** 第四次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第四次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention4;
+
+    /** 第五次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第五次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention5;
+
+    /** 第六次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第六次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention6;
+
+    /** 第七次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第七次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention7;
+
+    /** 第八次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第八次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention8;
+
+    /** 第九次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第九次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention9;
+
+    /** 卡具状态 */
+    @Excel(name = "卡具状态")
+    private String status;
+
+    /** 移除时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "移除时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date removeTime;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    public String getRemarks() {
+        return remarks;
+    }
+
+    public void setRemarks(String remarks) {
+        this.remarks = remarks;
+    }
+
+    public String getMocNo() {
+        return mocNo;
+    }
+
+    public void setMocNo(String mocNo) {
+        this.mocNo = mocNo;
+    }
+
+    public String getCompanyMocNo() {
+        return companyMocNo;
+    }
+
+    public void setCompanyMocNo(String companyMocNo) {
+        this.companyMocNo = companyMocNo;
+    }
+
+    public String getProcessUnit() {
+        return processUnit;
+    }
+
+    public void setProcessUnit(String processUnit) {
+        this.processUnit = processUnit;
+    }
+
+    public String getDepartment() {
+        return department;
+    }
+
+    public void setDepartment(String department) {
+        this.department = department;
+    }
+
+    public String getLeakLocation() {
+        return leakLocation;
+    }
+
+    public void setLeakLocation(String leakLocation) {
+        this.leakLocation = leakLocation;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getPressure() {
+        return pressure;
+    }
+
+    public void setPressure(String pressure) {
+        this.pressure = pressure;
+    }
+
+    public String getTemperature() {
+        return temperature;
+    }
+
+    public void setTemperature(String temperature) {
+        this.temperature = temperature;
+    }
+
+    public String getLeakFluid() {
+        return leakFluid;
+    }
+
+    public void setLeakFluid(String leakFluid) {
+        this.leakFluid = leakFluid;
+    }
+
+    public String getMaterialType() {
+        return materialType;
+    }
+
+    public void setMaterialType(String materialType) {
+        this.materialType = materialType;
+    }
+
+    public Date getPlanDate() {
+        return planDate;
+    }
+
+    public void setPlanDate(Date planDate) {
+        this.planDate = planDate;
+    }
+
+    public Date getSealDate() {
+        return sealDate;
+    }
+
+    public void setSealDate(Date sealDate) {
+        this.sealDate = sealDate;
+    }
+
+    public Date getExtention1() {
+        return extention1;
+    }
+
+    public void setExtention1(Date extention1) {
+        this.extention1 = extention1;
+    }
+
+    public Date getExtention2() {
+        return extention2;
+    }
+
+    public void setExtention2(Date extention2) {
+        this.extention2 = extention2;
+    }
+
+    public Date getExtention3() {
+        return extention3;
+    }
+
+    public void setExtention3(Date extention3) {
+        this.extention3 = extention3;
+    }
+
+    public Date getExtention4() {
+        return extention4;
+    }
+
+    public void setExtention4(Date extention4) {
+        this.extention4 = extention4;
+    }
+
+    public Date getExtention5() {
+        return extention5;
+    }
+
+    public void setExtention5(Date extention5) {
+        this.extention5 = extention5;
+    }
+
+    public Date getExtention6() {
+        return extention6;
+    }
+
+    public void setExtention6(Date extention6) {
+        this.extention6 = extention6;
+    }
+
+    public Date getExtention7() {
+        return extention7;
+    }
+
+    public void setExtention7(Date extention7) {
+        this.extention7 = extention7;
+    }
+
+    public Date getExtention8() {
+        return extention8;
+    }
+
+    public void setExtention8(Date extention8) {
+        this.extention8 = extention8;
+    }
+
+    public Date getExtention9() {
+        return extention9;
+    }
+
+    public void setExtention9(Date extention9) {
+        this.extention9 = extention9;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public Date getRemoveTime() {
+        return removeTime;
+    }
+
+    public void setRemoveTime(Date removeTime) {
+        this.removeTime = removeTime;
+    }
+}

+ 117 - 0
master/src/main/java/com/ruoyi/project/process/controller/export/Facility.java

@@ -0,0 +1,117 @@
+package com.ruoyi.project.process.controller.export;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+
+import java.util.Date;
+
+/**
+ * 临时MOC - 临时设施及其它导出字段
+ *
+ * @author Wang Zi Wen
+ * @email wangggziwen@163.com
+ * @date 2023/02/22 14:17:12
+ */
+public class Facility extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** MOC编号 */
+    @Excel(name = "MOC编号")
+    private String mocNo;
+
+    /** 公司MOC编号 */
+    @Excel(name = "公司MOC编号")
+    private String companyMocNo;
+
+    /** 位置 */
+    @Excel(name = "位置")
+    private String location;
+
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** 到期时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date expTime;
+
+    /** 临时MOC状态 */
+    @Excel(name = "临时MOC状态")
+    private String tempState;
+
+    /** 移除时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "移除时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date removeTime;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    public String getMocNo() {
+        return mocNo;
+    }
+
+    public void setMocNo(String mocNo) {
+        this.mocNo = mocNo;
+    }
+
+    public String getCompanyMocNo() {
+        return companyMocNo;
+    }
+
+    public void setCompanyMocNo(String companyMocNo) {
+        this.companyMocNo = companyMocNo;
+    }
+
+    public String getLocation() {
+        return location;
+    }
+
+    public void setLocation(String location) {
+        this.location = location;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public Date getExpTime() {
+        return expTime;
+    }
+
+    public void setExpTime(Date expTime) {
+        this.expTime = expTime;
+    }
+
+    public String getTempState() {
+        return tempState;
+    }
+
+    public void setTempState(String tempState) {
+        this.tempState = tempState;
+    }
+
+    public Date getRemoveTime() {
+        return removeTime;
+    }
+
+    public void setRemoveTime(Date removeTime) {
+        this.removeTime = removeTime;
+    }
+
+    public String getRemarks() {
+        return remarks;
+    }
+
+    public void setRemarks(String remarks) {
+        this.remarks = remarks;
+    }
+}

+ 118 - 0
master/src/main/java/com/ruoyi/project/process/controller/export/Interlock.java

@@ -0,0 +1,118 @@
+package com.ruoyi.project.process.controller.export;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+
+import java.util.Date;
+
+/**
+ * 临时MOC - 仪表联锁旁路导出字段
+ *
+ * @author Wang Zi Wen
+ * @email wangggziwen@163.com
+ * @date 2023/02/22 14:17:12
+ */
+public class Interlock extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** MOC编号 */
+    @Excel(name = "MOC编号")
+    private String mocNo;
+
+    /** 公司MOC编号 */
+    @Excel(name = "公司MOC编号")
+    private String companyMocNo;
+
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** 完成时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date finishDate;
+
+    /** 到期时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date expTime;
+
+    /** 临时MOC状态 */
+    @Excel(name = "临时MOC状态")
+    private String tempState;
+
+    /** 移除时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "移除时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date removeTime;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    public String getMocNo() {
+        return mocNo;
+    }
+
+    public void setMocNo(String mocNo) {
+        this.mocNo = mocNo;
+    }
+
+    public String getCompanyMocNo() {
+        return companyMocNo;
+    }
+
+    public void setCompanyMocNo(String companyMocNo) {
+        this.companyMocNo = companyMocNo;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public Date getFinishDate() {
+        return finishDate;
+    }
+
+    public void setFinishDate(Date finishDate) {
+        this.finishDate = finishDate;
+    }
+
+    public Date getExpTime() {
+        return expTime;
+    }
+
+    public void setExpTime(Date expTime) {
+        this.expTime = expTime;
+    }
+
+    public String getTempState() {
+        return tempState;
+    }
+
+    public void setTempState(String tempState) {
+        this.tempState = tempState;
+    }
+
+    public Date getRemoveTime() {
+        return removeTime;
+    }
+
+    public void setRemoveTime(Date removeTime) {
+        this.removeTime = removeTime;
+    }
+
+    public String getRemarks() {
+        return remarks;
+    }
+
+    public void setRemarks(String remarks) {
+        this.remarks = remarks;
+    }
+}

+ 228 - 0
master/src/main/java/com/ruoyi/project/process/controller/export/Moc.java

@@ -0,0 +1,228 @@
+package com.ruoyi.project.process.controller.export;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+
+import java.util.Date;
+
+/**
+ * MOC导出字段
+ *
+ * @author Wang Zi Wen
+ * @email wangggziwen@163.com
+ * @date 2023/02/22 14:17:12
+ */
+public class Moc extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** MOC编号 */
+    @Excel(name = "MOC编号")
+    private String mocNo;
+
+    /** 公司MOC编号 */
+    @Excel(name = "公司MOC编号")
+    private String companyMocNo;
+
+    /** 时效性,永久/临时MOC */
+    @Excel(name = "时效性")
+    private String timeliness;
+
+    /** 项目号 */
+    @Excel(name = "项目号")
+    private String projectNo;
+
+    /** 区域 */
+    @Excel(name = "区域")
+    private String area;
+
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** MOC类型 */
+    @Excel(name = "MOC类型")
+    private String mocType;
+
+    /** 负责人 */
+    @Excel(name = "负责人")
+    private String owner;
+
+    /** 申请时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date approveTime;
+
+    /** MC时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "MC时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date mcTime;
+
+    /** MC情况 */
+    @Excel(name = "MC情况")
+    private String mcDetail;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    /** 风险等级 */
+    @Excel(name = "风险等级")
+    private String riskLevel;
+
+    /** EHS评估/审查 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "EHS评估/审查", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date ehsCheck;
+
+    /** 培训 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "培训", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date training;
+
+    /** PSSR */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "PSSR", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date pssr;
+
+    /** PSSR编号 */
+    @Excel(name = "PSSR编号")
+    private String pssrNo;
+
+    public Date getPssr() {
+        return pssr;
+    }
+
+    public void setPssr(Date pssr) {
+        this.pssr = pssr;
+    }
+
+    public String getMocNo() {
+        return mocNo;
+    }
+
+    public void setMocNo(String mocNo) {
+        this.mocNo = mocNo;
+    }
+
+    public String getCompanyMocNo() {
+        return companyMocNo;
+    }
+
+    public void setCompanyMocNo(String companyMocNo) {
+        this.companyMocNo = companyMocNo;
+    }
+
+    public String getProjectNo() {
+        return projectNo;
+    }
+
+    public void setProjectNo(String projectNo) {
+        this.projectNo = projectNo;
+    }
+
+    public String getArea() {
+        return area;
+    }
+
+    public void setArea(String area) {
+        this.area = area;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getMocType() {
+        return mocType;
+    }
+
+    public void setMocType(String mocType) {
+        this.mocType = mocType;
+    }
+
+    public String getOwner() {
+        return owner;
+    }
+
+    public void setOwner(String owner) {
+        this.owner = owner;
+    }
+
+    public Date getApproveTime() {
+        return approveTime;
+    }
+
+    public void setApproveTime(Date approveTime) {
+        this.approveTime = approveTime;
+    }
+
+    public Date getMcTime() {
+        return mcTime;
+    }
+
+    public void setMcTime(Date mcTime) {
+        this.mcTime = mcTime;
+    }
+
+    public String getMcDetail() {
+        return mcDetail;
+    }
+
+    public void setMcDetail(String mcDetail) {
+        this.mcDetail = mcDetail;
+    }
+
+    public String getRemarks() {
+        return remarks;
+    }
+
+    public void setRemarks(String remarks) {
+        this.remarks = remarks;
+    }
+
+    public String getRiskLevel() {
+        return riskLevel;
+    }
+
+    public void setRiskLevel(String riskLevel) {
+        this.riskLevel = riskLevel;
+    }
+
+    public Date getEhsCheck() {
+        return ehsCheck;
+    }
+
+    public void setEhsCheck(Date ehsCheck) {
+        this.ehsCheck = ehsCheck;
+    }
+
+    public Date getTraining() {
+        return training;
+    }
+
+    public void setTraining(Date training) {
+        this.training = training;
+    }
+
+    public String getPssrNo() {
+        return pssrNo;
+    }
+
+    public void setPssrNo(String pssrNo) {
+        this.pssrNo = pssrNo;
+    }
+
+    public String getTimeliness() {
+        return timeliness;
+    }
+
+    public void setTimeliness(String timeliness) {
+        this.timeliness = timeliness;
+    }
+}

+ 266 - 0
master/src/main/java/com/ruoyi/project/process/controller/export/TemporaryMoc.java

@@ -0,0 +1,266 @@
+package com.ruoyi.project.process.controller.export;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+
+import java.util.Date;
+
+/**
+ * 临时MOC导出字段
+ *
+ * @author Wang Zi Wen
+ * @email wangggziwen@163.com
+ * @date 2023/02/22 14:17:12
+ */
+public class TemporaryMoc extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** MOC编号 */
+    @Excel(name = "MOC编号")
+    private String mocNo;
+
+    /** 公司MOC编号 */
+    @Excel(name = "公司MOC编号")
+    private String companyMocNo;
+
+    /** 项目号 */
+    @Excel(name = "项目号")
+    private String projectNo;
+
+    /** 区域 */
+    @Excel(name = "区域")
+    private String area;
+
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** MOC类型 */
+    @Excel(name = "MOC类型")
+    private String mocType;
+
+    /** 负责人 */
+    @Excel(name = "负责人")
+    private String owner;
+
+    /** 申请时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date approveTime;
+
+    /** MC时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "MC时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date mcTime;
+
+    /** MC情况 */
+    @Excel(name = "MC情况")
+    private String mcDetail;
+
+    /** 到期时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date expTime;
+
+    /** 临时MOC状态 */
+    @Excel(name = "临时MOC状态")
+    private String tempState;
+
+    /** 卡具状态 */
+    @Excel(name = "卡具状态")
+    private String status;
+
+    /** 移除时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "移除时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date removeTime;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    /** 风险等级 */
+    @Excel(name = "风险等级")
+    private String riskLevel;
+
+    /** EHS评估/审查 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "EHS评估/审查", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date ehsCheck;
+
+    /** 培训 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "培训", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date training;
+
+    /** PSSR */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "PSSR", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date pssr;
+
+    /** PSSR编号 */
+    @Excel(name = "PSSR编号")
+    private String pssrNo;
+
+    public Date getPssr() {
+        return pssr;
+    }
+
+    public void setPssr(Date pssr) {
+        this.pssr = pssr;
+    }
+
+    public String getMocNo() {
+        return mocNo;
+    }
+
+    public void setMocNo(String mocNo) {
+        this.mocNo = mocNo;
+    }
+
+    public String getCompanyMocNo() {
+        return companyMocNo;
+    }
+
+    public void setCompanyMocNo(String companyMocNo) {
+        this.companyMocNo = companyMocNo;
+    }
+
+    public String getProjectNo() {
+        return projectNo;
+    }
+
+    public void setProjectNo(String projectNo) {
+        this.projectNo = projectNo;
+    }
+
+    public String getArea() {
+        return area;
+    }
+
+    public void setArea(String area) {
+        this.area = area;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getMocType() {
+        return mocType;
+    }
+
+    public void setMocType(String mocType) {
+        this.mocType = mocType;
+    }
+
+    public String getOwner() {
+        return owner;
+    }
+
+    public void setOwner(String owner) {
+        this.owner = owner;
+    }
+
+    public Date getApproveTime() {
+        return approveTime;
+    }
+
+    public void setApproveTime(Date approveTime) {
+        this.approveTime = approveTime;
+    }
+
+    public Date getMcTime() {
+        return mcTime;
+    }
+
+    public void setMcTime(Date mcTime) {
+        this.mcTime = mcTime;
+    }
+
+    public String getMcDetail() {
+        return mcDetail;
+    }
+
+    public void setMcDetail(String mcDetail) {
+        this.mcDetail = mcDetail;
+    }
+
+    public String getRemarks() {
+        return remarks;
+    }
+
+    public void setRemarks(String remarks) {
+        this.remarks = remarks;
+    }
+
+    public String getRiskLevel() {
+        return riskLevel;
+    }
+
+    public void setRiskLevel(String riskLevel) {
+        this.riskLevel = riskLevel;
+    }
+
+    public Date getEhsCheck() {
+        return ehsCheck;
+    }
+
+    public void setEhsCheck(Date ehsCheck) {
+        this.ehsCheck = ehsCheck;
+    }
+
+    public Date getTraining() {
+        return training;
+    }
+
+    public void setTraining(Date training) {
+        this.training = training;
+    }
+
+    public String getPssrNo() {
+        return pssrNo;
+    }
+
+    public void setPssrNo(String pssrNo) {
+        this.pssrNo = pssrNo;
+    }
+
+    public Date getExpTime() {
+        return expTime;
+    }
+
+    public void setExpTime(Date expTime) {
+        this.expTime = expTime;
+    }
+
+    public String getTempState() {
+        return tempState;
+    }
+
+    public void setTempState(String tempState) {
+        this.tempState = tempState;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public Date getRemoveTime() {
+        return removeTime;
+    }
+
+    public void setRemoveTime(Date removeTime) {
+        this.removeTime = removeTime;
+    }
+}

BIN
master/src/main/resources/static/template/process/moc/aquifier.xlsx


BIN
master/src/main/resources/static/template/process/moc/facility.xlsx


BIN
master/src/main/resources/static/template/process/moc/interlock.xlsx


+ 0 - 0
master/src/main/resources/static/template/process/moc.xlsx → master/src/main/resources/static/template/process/moc/moc.xlsx


+ 0 - 0
master/src/main/resources/static/template/process/permanentMoc.xlsx → master/src/main/resources/static/template/process/moc/permanentMoc.xlsx


BIN
master/src/main/resources/static/template/process/moc/temporaryMoc.xlsx


+ 40 - 0
ui/src/api/process/moc.js

@@ -233,3 +233,43 @@ export function exportPermanentMoc() {
     method: 'get',
   })
 }
+
+// 导出临时MOC
+export function exportTemporaryMoc() {
+  return request({
+    url: '/process/moc/exporttemporary',
+    method: 'get',
+  })
+}
+
+// 导出临时MOC - 带压消漏清单
+export function exportAquifier() {
+  return request({
+    url: '/process/moc/exportaquifier',
+    method: 'get',
+  })
+}
+
+// 导出临时MOC - 临时设施、其它
+export function exportFacility() {
+  return request({
+    url: '/process/moc/exportfacility',
+    method: 'get',
+  })
+}
+
+// 导出临时MOC - 仪表联锁旁路
+export function exportInterlock() {
+  return request({
+    url: '/process/moc/exportinterlock',
+    method: 'get',
+  })
+}
+
+// 导出MOC
+export function exportMoc() {
+  return request({
+    url: '/process/moc/export',
+    method: 'get',
+  })
+}

+ 23 - 24
ui/src/views/process/moc/aquifier/index.vue

@@ -64,24 +64,24 @@
           v-hasPermi="['process:moc:remove']"
         >{{ $t('删除') }}</el-button>
       </el-col>
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="info"-->
-      <!--icon="el-icon-upload2"-->
-      <!--size="mini"-->
-      <!--@click="handleImport"-->
-      <!--v-hasPermi="['process:moc:edit']"-->
-      <!--&gt;{{ $t('导入') }}</el-button>-->
-      <!--</el-col>-->
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="warning"-->
-      <!--icon="el-icon-download"-->
-      <!--size="mini"-->
-      <!--@click="handleExport"-->
-      <!--v-hasPermi="['process:moc:export']"-->
-      <!--&gt;{{ $t('导出') }}</el-button>-->
-      <!--</el-col>-->
+      <el-col :span="1.5">
+        <el-button
+          type="info"
+          icon="el-icon-upload2"
+          size="mini"
+          @click="handleImport"
+          v-hasPermi="['process:moc:edit']"
+        >{{ $t('导入') }}</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['process:moc:export']"
+        >{{ $t('导出') }}</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -608,7 +608,7 @@
 </template>
 
 <script>
-  import { delay, listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
+  import { exportAquifier, delay, listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
   import { treeselect } from "@/api/system/dept";
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
@@ -729,7 +729,7 @@
           //下载模板请求地址
           downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
           //下载模板类型
-          type: 'moc',
+          type: 'aquifier',
           // 是否显示弹出层(用户导入)
           open: false,
           // 弹出层标题(用户导入)
@@ -741,7 +741,7 @@
           // 设置上传的请求头部
           headers: { Authorization: "Bearer " + getToken() },
           // 上传的地址
-          url: process.env.VUE_APP_BASE_API + "/process/moc/importData"
+          url: process.env.VUE_APP_BASE_API + "/process/moc/aquifier/importData"
         },
         // 报告附件参数
         doc: {
@@ -1288,13 +1288,12 @@
       },
       /** 导出按钮操作 */
       handleExport() {
-        const queryParams = this.queryParams;
-        this.$confirm(this.$t('是否确认导出所有MOC管理数据项?'), this.$t('警告'), {
+        this.$confirm(this.$t('是否确认导出所有带压消漏清单数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportMoc(queryParams);
+          return exportAquifier();
         }).then(response => {
           this.download(response.msg);
         })

+ 23 - 32
ui/src/views/process/moc/facility/index.vue

@@ -46,32 +46,24 @@
           v-hasPermi="['process:moc:remove']"
         >{{ $t('删除') }}</el-button>
       </el-col>
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="info"-->
-      <!--icon="el-icon-upload2"-->
-      <!--size="mini"-->
-      <!--@click="handleImport"-->
-      <!--v-hasPermi="['process:moc:edit']"-->
-      <!--&gt;{{ $t('导入') }}</el-button>-->
-      <!--</el-col>-->
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="warning"-->
-      <!--icon="el-icon-download"-->
-      <!--size="mini"-->
-      <!--@click="handleExport"-->
-      <!--v-hasPermi="['process:moc:export']"-->
-      <!--&gt;{{ $t('导出') }}</el-button>-->
-      <!--</el-col>-->
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="primary"-->
-      <!--icon="el-icon-s-data"-->
-      <!--size="mini"-->
-      <!--@click="handleData"-->
-      <!--&gt;{{ $t('数据分析') }}</el-button>-->
-      <!--</el-col>-->
+      <el-col :span="1.5">
+        <el-button
+          type="info"
+          icon="el-icon-upload2"
+          size="mini"
+          @click="handleImport"
+          v-hasPermi="['process:moc:edit']"
+        >{{ $t('导入') }}</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['process:moc:export']"
+        >{{ $t('导出') }}</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -308,7 +300,7 @@
 </template>
 
 <script>
-  import { listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
+  import { exportFacility, listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
   import { treeselect } from "@/api/system/dept";
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
@@ -394,7 +386,7 @@
           //下载模板请求地址
           downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
           //下载模板类型
-          type: 'moc',
+          type: 'facility',
           // 是否显示弹出层(用户导入)
           open: false,
           // 弹出层标题(用户导入)
@@ -406,7 +398,7 @@
           // 设置上传的请求头部
           headers: { Authorization: "Bearer " + getToken() },
           // 上传的地址
-          url: process.env.VUE_APP_BASE_API + "/process/moc/importData"
+          url: process.env.VUE_APP_BASE_API + "/process/moc/facility/importData"
         },
         // 报告附件参数
         doc: {
@@ -885,13 +877,12 @@
       },
       /** 导出按钮操作 */
       handleExport() {
-        const queryParams = this.queryParams;
-        this.$confirm(this.$t('是否确认导出所有MOC管理数据项?'), this.$t('警告'), {
+        this.$confirm(this.$t('是否确认导出所有临时设施及其它数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportMoc(queryParams);
+          return exportFacility();
         }).then(response => {
           this.download(response.msg);
         })

+ 23 - 32
ui/src/views/process/moc/interlock/index.vue

@@ -46,32 +46,24 @@
           v-hasPermi="['process:moc:remove']"
         >{{ $t('删除') }}</el-button>
       </el-col>
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="info"-->
-      <!--icon="el-icon-upload2"-->
-      <!--size="mini"-->
-      <!--@click="handleImport"-->
-      <!--v-hasPermi="['process:moc:edit']"-->
-      <!--&gt;{{ $t('导入') }}</el-button>-->
-      <!--</el-col>-->
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="warning"-->
-      <!--icon="el-icon-download"-->
-      <!--size="mini"-->
-      <!--@click="handleExport"-->
-      <!--v-hasPermi="['process:moc:export']"-->
-      <!--&gt;{{ $t('导出') }}</el-button>-->
-      <!--</el-col>-->
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="primary"-->
-      <!--icon="el-icon-s-data"-->
-      <!--size="mini"-->
-      <!--@click="handleData"-->
-      <!--&gt;{{ $t('数据分析') }}</el-button>-->
-      <!--</el-col>-->
+      <el-col :span="1.5">
+        <el-button
+          type="info"
+          icon="el-icon-upload2"
+          size="mini"
+          @click="handleImport"
+          v-hasPermi="['process:moc:edit']"
+        >{{ $t('导入') }}</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['process:moc:export']"
+        >{{ $t('导出') }}</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -395,7 +387,7 @@
 </template>
 
 <script>
-  import { listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
+  import { exportInterlock, listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
   import { treeselect } from "@/api/system/dept";
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
@@ -481,7 +473,7 @@
           //下载模板请求地址
           downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
           //下载模板类型
-          type: 'moc',
+          type: 'interlock',
           // 是否显示弹出层(用户导入)
           open: false,
           // 弹出层标题(用户导入)
@@ -493,7 +485,7 @@
           // 设置上传的请求头部
           headers: { Authorization: "Bearer " + getToken() },
           // 上传的地址
-          url: process.env.VUE_APP_BASE_API + "/process/moc/importData"
+          url: process.env.VUE_APP_BASE_API + "/process/moc/interlock/importData"
         },
         // 报告附件参数
         doc: {
@@ -972,13 +964,12 @@
       },
       /** 导出按钮操作 */
       handleExport() {
-        const queryParams = this.queryParams;
-        this.$confirm(this.$t('是否确认导出所有MOC管理数据项?'), this.$t('警告'), {
+        this.$confirm(this.$t('是否确认导出所有仪表联锁旁路数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportMoc(queryParams);
+          return exportInterlock();
         }).then(response => {
           this.download(response.msg);
         })

+ 9 - 9
ui/src/views/process/moc/permanentMoc/index.vue

@@ -64,15 +64,15 @@
           v-hasPermi="['process:moc:remove']"
         >{{ $t('删除') }}</el-button>
       </el-col>
-        <el-col :span="1.5">
-            <el-button
-                    type="info"
-                    icon="el-icon-upload2"
-                    size="mini"
-                    @click="handleImport"
-                    v-hasPermi="['process:moc:edit']"
-            >{{ $t('导入') }}</el-button>
-        </el-col>
+      <el-col :span="1.5">
+          <el-button
+                  type="info"
+                  icon="el-icon-upload2"
+                  size="mini"
+                  @click="handleImport"
+                  v-hasPermi="['process:moc:edit']"
+          >{{ $t('导入') }}</el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="warning"

+ 11 - 3
ui/src/views/process/moc/summary/index.vue

@@ -35,6 +35,15 @@
     </el-form>
 
     <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['process:moc:export']"
+        >{{ $t('导出') }}</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -617,13 +626,12 @@
       },
       /** 导出按钮操作 */
       handleExport() {
-        const queryParams = this.queryParams;
-        this.$confirm(this.$t('是否确认导出所有MOC管理数据项?'), this.$t('警告'), {
+        this.$confirm(this.$t('是否确认导出所有MOC数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportMoc(queryParams);
+          return exportMoc();
         }).then(response => {
           this.download(response.msg);
         })

+ 24 - 33
ui/src/views/process/moc/temporaryMoc/index.vue

@@ -64,32 +64,24 @@
           v-hasPermi="['process:moc:remove']"
         >{{ $t('删除') }}</el-button>
       </el-col>
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="info"-->
-      <!--icon="el-icon-upload2"-->
-      <!--size="mini"-->
-      <!--@click="handleImport"-->
-      <!--v-hasPermi="['process:moc:edit']"-->
-      <!--&gt;{{ $t('导入') }}</el-button>-->
-      <!--</el-col>-->
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="warning"-->
-      <!--icon="el-icon-download"-->
-      <!--size="mini"-->
-      <!--@click="handleExport"-->
-      <!--v-hasPermi="['process:moc:export']"-->
-      <!--&gt;{{ $t('导出') }}</el-button>-->
-      <!--</el-col>-->
-      <!--<el-col :span="1.5">-->
-      <!--<el-button-->
-      <!--type="primary"-->
-      <!--icon="el-icon-s-data"-->
-      <!--size="mini"-->
-      <!--@click="handleData"-->
-      <!--&gt;{{ $t('数据分析') }}</el-button>-->
-      <!--</el-col>-->
+      <el-col :span="1.5">
+        <el-button
+          type="info"
+          icon="el-icon-upload2"
+          size="mini"
+          @click="handleImport"
+          v-hasPermi="['process:moc:edit']"
+        >{{ $t('导入') }}</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['process:moc:export']"
+        >{{ $t('导出') }}</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -651,7 +643,7 @@
 </template>
 
 <script>
-  import { listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
+  import { listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc, exportTemporaryMoc } from "@/api/process/moc";
   import { treeselect } from "@/api/system/dept";
   import { getToken } from "@/utils/auth";
   import Treeselect from "@riophae/vue-treeselect";
@@ -772,7 +764,7 @@
           //下载模板请求地址
           downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
           //下载模板类型
-          type: 'moc',
+          type: 'temporaryMoc',
           // 是否显示弹出层(用户导入)
           open: false,
           // 弹出层标题(用户导入)
@@ -784,7 +776,7 @@
           // 设置上传的请求头部
           headers: { Authorization: "Bearer " + getToken() },
           // 上传的地址
-          url: process.env.VUE_APP_BASE_API + "/process/moc/importData"
+          url: process.env.VUE_APP_BASE_API + "/process/moc/temporary/importData"
         },
         // 报告附件参数
         doc: {
@@ -1249,20 +1241,19 @@
       },
       /** 导出按钮操作 */
       handleExport() {
-        const queryParams = this.queryParams;
-        this.$confirm(this.$t('是否确认导出所有MOC管理数据项?'), this.$t('警告'), {
+        this.$confirm(this.$t('是否确认导出所有临时MOC数据项?'), this.$t('警告'), {
           confirmButtonText: this.$t('确定'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
         }).then(function() {
-          return exportMoc(queryParams);
+          return exportTemporaryMoc();
         }).then(response => {
           this.download(response.msg);
         })
       },
       /** 导入按钮操作 */
       handleImport() {
-        this.upload.title = this.$t('用户导入');
+        this.upload.title = this.$t('临时MOC批量导入');
         this.upload.open = true;
       },
       /** 下载模板操作 */