Browse Source

PSSR导入功能修改

wangggziwen 5 months ago
parent
commit
c1d257a3e3
24 changed files with 42 additions and 148 deletions
  1. 0 14
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrAirtightController.java
  2. 0 10
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrAnalyzerController.java
  3. 0 6
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrBlindController.java
  4. 0 10
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrCircuitController.java
  5. 0 10
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrCleaningController.java
  6. 0 12
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrGasdetectorController.java
  7. 0 12
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrInstrumentCalibrationController.java
  8. 0 10
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrLaboratoryController.java
  9. 0 12
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrMeasureController.java
  10. 0 10
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrMotorController.java
  11. BIN
      master/src/main/resources/static/template/pssr/airtight.xlsx
  12. BIN
      master/src/main/resources/static/template/pssr/analyzer.xlsx
  13. BIN
      master/src/main/resources/static/template/pssr/blind.xlsx
  14. BIN
      master/src/main/resources/static/template/pssr/calibration.xlsx
  15. BIN
      master/src/main/resources/static/template/pssr/circuit.xlsx
  16. BIN
      master/src/main/resources/static/template/pssr/cleaning.xlsx
  17. BIN
      master/src/main/resources/static/template/pssr/gasdetector.xlsx
  18. BIN
      master/src/main/resources/static/template/pssr/laboratory.xlsx
  19. BIN
      master/src/main/resources/static/template/pssr/measure.xlsx
  20. BIN
      master/src/main/resources/static/template/pssr/motor.xlsx
  21. 11 11
      ui/src/views/pssr/frame/index.vue
  22. 10 10
      ui/src/views/pssr/franklinism/index.vue
  23. 10 10
      ui/src/views/pssr/hygiene/index.vue
  24. 11 11
      ui/src/views/pssr/protection/index.vue

+ 0 - 14
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrAirtightController.java

@@ -119,20 +119,6 @@ public class TPssrAirtightController extends BaseController {
                         entity.setAirtightMedium(cellValue);
                         entity.setAirtightMedium(cellValue);
                     }else if (j == 3) {
                     }else if (j == 3) {
                         entity.setAirtightPressure(cellValue);
                         entity.setAirtightPressure(cellValue);
-                    } else if (j == 4) {
-                        entity.setInitialPressure(cellValue);
-                    } else if (j == 5) {
-                        entity.setFinalPressure(cellValue);
-                    } else if (j == 6) {
-                        entity.setStandard(cellValue);
-                    } else if (j == 7) {
-                        entity.setUptoStandard(cellValue);
-                    } else if (j == 8) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 9) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 10
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrAnalyzerController.java

@@ -113,16 +113,6 @@ public class TPssrAnalyzerController extends BaseController {
                         entity.setUnit(cellValue);
                         entity.setUnit(cellValue);
                     } else if (j == 1) {
                     } else if (j == 1) {
                         entity.setDevNo(cellValue);
                         entity.setDevNo(cellValue);
-                    } else if (j == 2) {
-                        entity.setVisualInspection(cellValue);
-                    } else if (j == 3) {
-                        entity.setFunctionalCheck(cellValue);
-                    } else if (j == 4) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 5) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 6
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrBlindController.java

@@ -130,12 +130,6 @@ public class TPssrBlindController extends BaseController {
                         entity.setLocation(cellValue);
                         entity.setLocation(cellValue);
                     } else if (j == 10) {
                     } else if (j == 10) {
                         entity.setStartupStatus(cellValue);
                         entity.setStartupStatus(cellValue);
-                    } else if (j == 11) {
-                        entity.setActualStatus(cellValue);
-                    } else if (j == 12) {
-                        entity.setSatisfy(cellValue);
-                    } else if (j == 13) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 10
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrCircuitController.java

@@ -125,16 +125,6 @@ public class TPssrCircuitController extends BaseController {
                         entity.setCircuitSize(cellValue);
                         entity.setCircuitSize(cellValue);
                     } else if (j == 7) {
                     } else if (j == 7) {
                         entity.setRightStatus(cellValue);
                         entity.setRightStatus(cellValue);
-                    } else if (j == 8) {
-                        entity.setCurrentStatus(cellValue);
-                    } else if (j == 9) {
-                        entity.setCurrentStatusRight(cellValue);
-                    } else if (j == 10) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 11) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 10
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrCleaningController.java

@@ -116,16 +116,6 @@ public class TPssrCleaningController extends BaseController {
                         entity.setDevNo(cellValue);
                         entity.setDevNo(cellValue);
                     } else if (j == 2) {
                     } else if (j == 2) {
                         entity.setSerialNumber(Long.parseLong(cellValue));
                         entity.setSerialNumber(Long.parseLong(cellValue));
-                    } else if (j == 3) {
-                        entity.setCheckContent(cellValue);
-                    } else if (j == 4) {
-                        entity.setCheckResult(cellValue);
-                    } else if (j == 5) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 6) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 12
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrGasdetectorController.java

@@ -109,18 +109,6 @@ public class TPssrGasdetectorController extends BaseController {
                     logger.info("cellValue:" + cellValue);
                     logger.info("cellValue:" + cellValue);
                     if (j == 0) {
                     if (j == 0) {
                         entity.setDevNo(cellValue);
                         entity.setDevNo(cellValue);
-                    } else if (j == 1) {
-                        entity.setVisualInspection(cellValue);
-                    } else if (j == 2) {
-                        entity.setRaincoverCheck(cellValue);
-                    } else if (j == 3) {
-                        entity.setDisplayCheck(cellValue);
-                    } else if (j == 4) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 5) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 12
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrInstrumentCalibrationController.java

@@ -111,18 +111,6 @@ public class TPssrInstrumentCalibrationController extends BaseController {
                         entity.setUnit(cellValue);
                         entity.setUnit(cellValue);
                     } else if (j == 1) {
                     } else if (j == 1) {
                         entity.setDevNo(cellValue);
                         entity.setDevNo(cellValue);
-                    } else if (j == 2) {
-                        entity.setVisualInspection(cellValue);
-                    } else if (j == 3) {
-                        entity.setInstallationInspection(cellValue);
-                    } else if (j == 4) {
-                        entity.setFunctionalCheck(cellValue);
-                    } else if (j == 5) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 6) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 10
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrLaboratoryController.java

@@ -113,16 +113,6 @@ public class TPssrLaboratoryController extends BaseController {
                         entity.setName(cellValue);
                         entity.setName(cellValue);
                     } else if (j == 2) {
                     } else if (j == 2) {
                         entity.setSerialNumber(cellValue);
                         entity.setSerialNumber(cellValue);
-                    } else if (j == 3) {
-                        entity.setVisualInspection(cellValue);
-                    } else if (j == 4) {
-                        entity.setFunctionalCheck(cellValue);
-                    }else if (j == 5) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 6) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 12
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrMeasureController.java

@@ -119,18 +119,6 @@ public class TPssrMeasureController extends BaseController {
                         entity.setDevName(cellValue);
                         entity.setDevName(cellValue);
                     } else if (j == 2) {
                     } else if (j == 2) {
                         entity.setProMeasure(cellValue);
                         entity.setProMeasure(cellValue);
-                    } else if (j == 3) {
-                        entity.setNoDamage(cellValue);
-                    } else if (j == 4) {
-                        entity.setLocked(cellValue);
-                    } else if (j == 5) {
-                        entity.setNoWorn(cellValue);
-                    } else if (j == 6) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 7) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

+ 0 - 10
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrMotorController.java

@@ -112,16 +112,6 @@ public class TPssrMotorController extends BaseController {
                         entity.setUnit(cellValue);
                         entity.setUnit(cellValue);
                     } else if (j == 1) {
                     } else if (j == 1) {
                         entity.setDevNo(cellValue);
                         entity.setDevNo(cellValue);
-                    } else if (j == 2) {
-                        entity.setVisualInspection(cellValue);
-                    } else if (j == 3) {
-                        entity.setFunctionalCheck(cellValue);
-                    } else if (j == 4) {
-                        if (cellValue.length() > 3) {
-                            entity.setConfirmationDate(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));
-                        }
-                    } else if (j == 5) {
-                        entity.setRemarks(cellValue);
                     }
                     }
                 }
                 }
                 entity.setCreaterCode(userId.toString());
                 entity.setCreaterCode(userId.toString());

BIN
master/src/main/resources/static/template/pssr/airtight.xlsx


BIN
master/src/main/resources/static/template/pssr/analyzer.xlsx


BIN
master/src/main/resources/static/template/pssr/blind.xlsx


BIN
master/src/main/resources/static/template/pssr/calibration.xlsx


BIN
master/src/main/resources/static/template/pssr/circuit.xlsx


BIN
master/src/main/resources/static/template/pssr/cleaning.xlsx


BIN
master/src/main/resources/static/template/pssr/gasdetector.xlsx


BIN
master/src/main/resources/static/template/pssr/laboratory.xlsx


BIN
master/src/main/resources/static/template/pssr/measure.xlsx


BIN
master/src/main/resources/static/template/pssr/motor.xlsx


+ 11 - 11
ui/src/views/pssr/frame/index.vue

@@ -82,17 +82,17 @@
         >删除
         >删除
         </el-button>
         </el-button>
       </el-col>
       </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="info"
-          icon="el-icon-upload2"
-          size="mini"
-          @click="handleImport"
-          v-hasPermi="['pssr:frame:edit']"
-          v-if="isApprove==0"
-        >导入
-        </el-button>
-      </el-col>
+      <!--<el-col :span="1.5">-->
+        <!--<el-button-->
+          <!--type="info"-->
+          <!--icon="el-icon-upload2"-->
+          <!--size="mini"-->
+          <!--@click="handleImport"-->
+          <!--v-hasPermi="['pssr:frame:edit']"-->
+          <!--v-if="isApprove==0"-->
+        <!--&gt;导入-->
+        <!--</el-button>-->
+      <!--</el-col>-->
       <el-col :span="1.5">
       <el-col :span="1.5">
         <el-button
         <el-button
           type="warning"
           type="warning"

+ 10 - 10
ui/src/views/pssr/franklinism/index.vue

@@ -61,16 +61,16 @@
           v-if="isApprove==0"
           v-if="isApprove==0"
         >删除</el-button>
         >删除</el-button>
       </el-col>
       </el-col>
-        <el-col :span="1.5">
-            <el-button
-                    type="info"
-                    icon="el-icon-upload2"
-                    size="mini"
-                    @click="handleImport"
-                    v-hasPermi="['pssr:franklinism:edit']"
-                    v-if="isApprove==0"
-            >导入</el-button>
-        </el-col>
+        <!--<el-col :span="1.5">-->
+            <!--<el-button-->
+                    <!--type="info"-->
+                    <!--icon="el-icon-upload2"-->
+                    <!--size="mini"-->
+                    <!--@click="handleImport"-->
+                    <!--v-hasPermi="['pssr:franklinism:edit']"-->
+                    <!--v-if="isApprove==0"-->
+            <!--&gt;导入</el-button>-->
+        <!--</el-col>-->
       <el-col :span="1.5">
       <el-col :span="1.5">
         <el-button
         <el-button
           type="warning"
           type="warning"

+ 10 - 10
ui/src/views/pssr/hygiene/index.vue

@@ -70,16 +70,16 @@
           v-if="isApprove==0"
           v-if="isApprove==0"
         >删除</el-button>
         >删除</el-button>
       </el-col>
       </el-col>
-        <el-col :span="1.5">
-            <el-button
-                    type="info"
-                    icon="el-icon-upload2"
-                    size="mini"
-                    @click="handleImport"
-                    v-hasPermi="['pssr:hygiene:edit']"
-                    v-if="isApprove==0"
-            >导入</el-button>
-        </el-col>
+        <!--<el-col :span="1.5">-->
+            <!--<el-button-->
+                    <!--type="info"-->
+                    <!--icon="el-icon-upload2"-->
+                    <!--size="mini"-->
+                    <!--@click="handleImport"-->
+                    <!--v-hasPermi="['pssr:hygiene:edit']"-->
+                    <!--v-if="isApprove==0"-->
+            <!--&gt;导入</el-button>-->
+        <!--</el-col>-->
       <el-col :span="1.5">
       <el-col :span="1.5">
         <el-button
         <el-button
           type="warning"
           type="warning"

+ 11 - 11
ui/src/views/pssr/protection/index.vue

@@ -64,17 +64,17 @@
         >删除
         >删除
         </el-button>
         </el-button>
       </el-col>
       </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="info"
-          icon="el-icon-upload2"
-          size="mini"
-          @click="handleImport"
-          v-hasPermi="['pssr:protection:edit']"
-          v-if="isApprove==0"
-        >导入
-        </el-button>
-      </el-col>
+      <!--<el-col :span="1.5">-->
+        <!--<el-button-->
+          <!--type="info"-->
+          <!--icon="el-icon-upload2"-->
+          <!--size="mini"-->
+          <!--@click="handleImport"-->
+          <!--v-hasPermi="['pssr:protection:edit']"-->
+          <!--v-if="isApprove==0"-->
+        <!--&gt;导入-->
+        <!--</el-button>-->
+      <!--</el-col>-->
       <el-col :span="1.5">
       <el-col :span="1.5">
         <el-button
         <el-button
           type="warning"
           type="warning"