Kaynağa Gözat

ly PSSR 批量

ly 6 ay önce
ebeveyn
işleme
c2f4215b71
47 değiştirilmiş dosya ile 1386 ekleme ve 75 silme
  1. 6 2
      ui/src/views/plant/dailyMeeting/detail.vue
  2. 36 1
      ui/src/views/pssr/airtight/index.vue
  3. 35 1
      ui/src/views/pssr/alarm/index.vue
  4. 36 1
      ui/src/views/pssr/analyzer/index.vue
  5. 24 1
      ui/src/views/pssr/approve/index.vue
  6. 36 1
      ui/src/views/pssr/blind/index.vue
  7. 36 1
      ui/src/views/pssr/circuit/index.vue
  8. 36 1
      ui/src/views/pssr/cleaning/index.vue
  9. 36 1
      ui/src/views/pssr/frame/index.vue
  10. 24 1
      ui/src/views/pssr/franklinism/index.vue
  11. 24 1
      ui/src/views/pssr/gasdetector/index.vue
  12. 24 1
      ui/src/views/pssr/hygiene/index.vue
  13. 24 1
      ui/src/views/pssr/instrumentCalibration/index.vue
  14. 23 0
      ui/src/views/pssr/instrumentTest/index.vue
  15. 24 1
      ui/src/views/pssr/laboratory/index.vue
  16. 24 1
      ui/src/views/pssr/lighting/index.vue
  17. 36 1
      ui/src/views/pssr/lock/index.vue
  18. 35 23
      ui/src/views/pssr/material/index.vue
  19. 14 1
      ui/src/views/pssr/materialRaw/index.vue
  20. 36 1
      ui/src/views/pssr/measure/index.vue
  21. 36 1
      ui/src/views/pssr/moc/index.vue
  22. 24 1
      ui/src/views/pssr/motor/index.vue
  23. 36 1
      ui/src/views/pssr/nitrogen/index.vue
  24. 36 1
      ui/src/views/pssr/overhaulExchanger/index.vue
  25. 36 1
      ui/src/views/pssr/overhaulFilter/index.vue
  26. 35 0
      ui/src/views/pssr/overhaulPipe/index.vue
  27. 35 0
      ui/src/views/pssr/overhaulPump/index.vue
  28. 36 1
      ui/src/views/pssr/overhaulTower/index.vue
  29. 36 1
      ui/src/views/pssr/overhaulValve/index.vue
  30. 24 1
      ui/src/views/pssr/patrol/index.vue
  31. 12 11
      ui/src/views/pssr/pipe/index.vue
  32. 24 1
      ui/src/views/pssr/power/index.vue
  33. 36 1
      ui/src/views/pssr/programme/index.vue
  34. 36 1
      ui/src/views/pssr/protection/index.vue
  35. 12 0
      ui/src/views/pssr/pssrModel/index.vue
  36. 24 1
      ui/src/views/pssr/public/index.vue
  37. 36 1
      ui/src/views/pssr/pumpCleaning/index.vue
  38. 36 1
      ui/src/views/pssr/pumpFill/index.vue
  39. 36 1
      ui/src/views/pssr/pumpOverhaul/index.vue
  40. 13 0
      ui/src/views/pssr/region/index.vue
  41. 36 1
      ui/src/views/pssr/safetyBleed/index.vue
  42. 36 1
      ui/src/views/pssr/safetyBreath/index.vue
  43. 36 1
      ui/src/views/pssr/safetyBrust/index.vue
  44. 36 1
      ui/src/views/pssr/safetyFlamearrester/index.vue
  45. 36 1
      ui/src/views/pssr/safetyValve/index.vue
  46. 24 1
      ui/src/views/pssr/torchvoc/index.vue
  47. 14 1
      ui/src/views/pssr/vessel/index.vue

+ 6 - 2
ui/src/views/plant/dailyMeeting/detail.vue

@@ -469,8 +469,12 @@ export default {
     },
     setSelectVal(item) {
       for (let i = 0; i < item.length; i++) {
-        if (item[i].actionby)
-          item[i].actionby = item[i].actionby.join(",")
+        if (Array.isArray(item[i].actionby)) {
+          item[i].actionby = item[i].actionby.join(",");
+        } else {
+          // 如果 actionby 不是数组,可以给它一个默认值,或者跳过
+          item[i].actionby = "";  // 或者根据需求进行其他处理
+        }
       }
     },
     /** 提交按钮 */

+ 36 - 1
ui/src/views/pssr/airtight/index.vue

@@ -56,6 +56,18 @@
           v-if="isApprove==0"
         >修改</el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:airtight:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -345,6 +357,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -673,7 +686,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateAirtightBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 35 - 1
ui/src/views/pssr/alarm/index.vue

@@ -17,6 +17,18 @@
     </el-form>
 
     <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:overhaulExchanger:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="success"
@@ -145,7 +157,7 @@
 </template>
 
 <script>
-import {addAlarm, delAlarm, exportAlarm, getAlarm, importTemplate, listAlarm, updateAlarm} from "@/api/pssr/alarm";
+import {addAlarm, delAlarm, exportAlarm, getAlarm, importTemplate, listAlarm, updateAlarm, updateAlarmBatch} from "@/api/pssr/alarm";
 import {treeselect} from "@/api/system/dept";
 import {getToken} from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
@@ -460,6 +472,28 @@ export default {
       this.pdf.title = row.fileName
       this.pdf.pdfUrl = process.env.VUE_APP_BASE_API + '/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl
     },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateAlarmBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/analyzer/index.vue

@@ -47,6 +47,18 @@
           v-if="isApprove==0"
         >修改</el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:analyzer:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -327,6 +339,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -650,7 +663,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateAnalyzerBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/approve/index.vue

@@ -327,6 +327,7 @@ import {treeselect} from "@/api/system/dept";
 import {getToken} from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -558,7 +559,29 @@ export default {
       // 提交上传文件
       submitFileForm() {
           this.$refs.upload.submit();
-      }
+      },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateMaterialBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/blind/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:blind:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -425,6 +437,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {doApprove} from "@/api/pssr/approve";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -810,7 +823,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateBlindBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/circuit/index.vue

@@ -56,6 +56,18 @@
           v-if="isApprove==0"
         >修改</el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:circuit:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -393,6 +405,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {doApprove} from "@/api/pssr/approve";
 import {listFile} from "@/api/pssr/file";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -727,7 +740,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateCircuitBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/cleaning/index.vue

@@ -57,6 +57,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:cleaning:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -335,6 +347,7 @@ import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -646,7 +659,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateCleaningBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/frame/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:frame:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -368,6 +380,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -802,7 +815,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateFrameBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/franklinism/index.vue

@@ -303,6 +303,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -625,7 +626,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateFranklinismBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/gasdetector/index.vue

@@ -316,6 +316,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -639,7 +640,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateGasdetectorBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/hygiene/index.vue

@@ -364,6 +364,7 @@ import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {doApprove} from "@/api/pssr/approve";
 import {listUserNoPage} from "@/api/system/user";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -669,7 +670,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateHygieneBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/instrumentCalibration/index.vue

@@ -330,6 +330,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -656,7 +657,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateInstrumentCalibrationBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 23 - 0
ui/src/views/pssr/instrumentTest/index.vue

@@ -160,6 +160,7 @@ import {getToken} from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -469,6 +470,28 @@ export default {
       this.pdf.title = row.fileName
       this.pdf.pdfUrl = process.env.VUE_APP_BASE_API + '/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl
     },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateInstrumentTestBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/laboratory/index.vue

@@ -331,6 +331,7 @@ import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -633,7 +634,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateLaboratoryBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/lighting/index.vue

@@ -305,6 +305,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -631,7 +632,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateLightingBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/lock/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -370,6 +382,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
 import {listLockPid} from "@/api/apply/lock";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -748,7 +761,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateLockBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 35 - 23
ui/src/views/pssr/material/index.vue

@@ -67,6 +67,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -542,28 +554,6 @@ export default {
       this.open = true;
       this.title = "添加原料";
     },
-    handleBatch(){
-      this.reset();
-      this.openBatch = true
-    },
-    // 取消按钮
-    cancelBatch() {
-      this.openBatch = false;
-      this.reset();
-    },
-    /** 提交按钮 */
-    submitFormBatch() {
-      this.$refs["form"].validate(valid => {
-        if (valid) {
-          this.form.ids = this.ids
-          updateMaterialBatch(this.form).then(response => {
-            this.msgSuccess("修改成功");
-            this.open = false;
-            this.getList();
-          });
-        }
-      });
-    },
     /** 修改按钮操作 */
     handleUpdate(row) {
       this.reset();
@@ -702,7 +692,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateMaterialBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 14 - 1
ui/src/views/pssr/materialRaw/index.vue

@@ -67,6 +67,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -730,7 +742,8 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/measure/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -343,6 +355,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMocBatch} from "@/api/pssr/moc";
 
 export default {
   name: "Measure",
@@ -675,7 +688,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateMeasureBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/moc/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -353,6 +365,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   name: "Moc",
@@ -703,7 +716,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateMocBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/motor/index.vue

@@ -323,6 +323,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -646,7 +647,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateMotorBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/nitrogen/index.vue

@@ -44,6 +44,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -331,6 +343,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {doApprove} from "@/api/pssr/approve";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -660,7 +673,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateNitrogenBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/overhaulExchanger/index.vue

@@ -75,6 +75,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -415,6 +427,7 @@ import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
 import {getSubcontent} from "@/api/pssr/subcontent";
 import {allFileList, delCommonfile} from "@/api/common/commonfile";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -884,7 +897,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateOverhaulExchangerBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/overhaulFilter/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -422,6 +434,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
 import {allFileList, delCommonfile} from "@/api/common/commonfile";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 
 export default {
@@ -890,7 +903,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateOverhaulFilterBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 35 - 0
ui/src/views/pssr/overhaulPipe/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -282,6 +294,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
 import {getSubcontent} from "@/api/pssr/subcontent";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 
 export default {
@@ -621,6 +634,28 @@ export default {
         this.getList();
       })
     },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateOverhaulPipeBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 35 - 0
ui/src/views/pssr/overhaulPump/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -294,6 +306,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
 import {getSubcontent} from "@/api/pssr/subcontent";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 
 export default {
@@ -635,6 +648,28 @@ export default {
         this.getList();
       })
     },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateOverhaulPumpBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/overhaulTower/index.vue

@@ -75,6 +75,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -414,6 +426,7 @@ import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
 import {getSubcontent} from "@/api/pssr/subcontent";
 import {allFileList, delCommonfile} from "@/api/common/commonfile";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 
 export default {
@@ -858,7 +871,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateOverhaulTowerBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/overhaulValve/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -409,6 +421,7 @@ import {listFile} from "@/api/pssr/file";
 import {getSubcontent} from "@/api/pssr/subcontent";
 import {doApprove} from "@/api/pssr/approve";
 import {allFileList, delCommonfile} from "@/api/common/commonfile";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -874,7 +887,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateOverhaulValveBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/patrol/index.vue

@@ -105,6 +105,7 @@ import {getToken} from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listAllMain} from "@/api/patrol/patrol/main";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -364,7 +365,29 @@ export default {
     // 提交上传文件
     submitFileForm() {
       this.$refs.upload.submit();
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updatePatrolBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 12 - 11
ui/src/views/pssr/pipe/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -137,17 +149,6 @@
         >同步特种设备数据
         </el-button>
       </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="success"
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="multiple"
-          @click="handleBatch"
-          v-hasPermi="['pssr:pipe:edit']"
-        >批量操作
-        </el-button>
-      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 

+ 24 - 1
ui/src/views/pssr/power/index.vue

@@ -301,6 +301,7 @@ import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   name: "Power",
@@ -607,7 +608,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updatePowerBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/programme/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -344,6 +356,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {doApprove} from "@/api/pssr/approve";
 import {listUserNoPage} from "@/api/system/user";
 import {listTrainingbcc} from "@/api/training/trainingbcc";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -707,7 +720,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateProgrammeBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/protection/index.vue

@@ -40,6 +40,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -304,6 +316,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -628,7 +641,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateProtectionBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 12 - 0
ui/src/views/pssr/pssrModel/index.vue

@@ -47,6 +47,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"

+ 24 - 1
ui/src/views/pssr/public/index.vue

@@ -456,6 +456,7 @@ import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -746,7 +747,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updatePublicBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/pumpCleaning/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -325,6 +337,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {doApprove} from "@/api/pssr/approve";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -675,7 +688,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updatePumpCleaningBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/pumpFill/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -333,6 +345,7 @@ import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {doApprove} from "@/api/pssr/approve";
 import {listUserNoPage} from "@/api/system/user";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -683,7 +696,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updatePumpFillBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/pumpOverhaul/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -323,6 +335,7 @@ import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {doApprove} from "@/api/pssr/approve";
 import {listUserNoPage} from "@/api/system/user";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -669,7 +682,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updatePumpOverhaulBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 13 - 0
ui/src/views/pssr/region/index.vue

@@ -65,6 +65,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -213,6 +225,7 @@ import {getToken} from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],

+ 36 - 1
ui/src/views/pssr/safetyBleed/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -359,6 +371,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {handleConfirmBleed, handleTurnDownBleed} from "@/api/pssr/safety";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -697,7 +710,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateSafetyBleedBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/safetyBreath/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -359,6 +371,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
 import {handleConfirmBreath, handleTurnDownBreath} from "@/api/pssr/safety";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -693,7 +706,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateSafetyBreathBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/safetyBrust/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -369,6 +381,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
 import {handleConfirmBrust, handleTurnDownBrust} from "@/api/pssr/safety";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -702,7 +715,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateSafetyBrustBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/safetyFlamearrester/index.vue

@@ -49,6 +49,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -349,6 +361,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {handleconfirmFlamearrester, handleturnDownFlamearrester} from "@/api/pssr/safety";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -674,7 +687,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateSafetyFlamearresterBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 36 - 1
ui/src/views/pssr/safetyValve/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -348,6 +360,7 @@ import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {handleconfirmValve, handleturnDownValve} from "@/api/pssr/safety";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -681,7 +694,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateSafetyValveBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 24 - 1
ui/src/views/pssr/torchvoc/index.vue

@@ -320,6 +320,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {listFile} from "@/api/pssr/file";
 import {doApprove} from "@/api/pssr/approve";
+import {updateMaterialBatch} from "@/api/pssr/material";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -642,7 +643,29 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+    handleBatch(){
+      this.reset();
+      this.openBatch = true
+    },
+    // 取消按钮
+    cancelBatch() {
+      this.openBatch = false;
+      this.reset();
+    },
+    /** 提交按钮 */
+    submitFormBatch() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.form.ids = this.ids
+          updateTorchvocBatch(this.form).then(response => {
+            this.msgSuccess("修改成功");
+            this.open = false;
+            this.getList();
+          });
+        }
+      });
+    },
   }
 };
 </script>

+ 14 - 1
ui/src/views/pssr/vessel/index.vue

@@ -58,6 +58,18 @@
         >修改
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="multiple"
+          @click="handleBatch"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:pipe:edit']"
+        >批量修改
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -785,7 +797,8 @@ export default {
         this.reason.open = false;
         this.$emit('refreshHisList');
       })
-    }
+    },
+
   }
 };
 </script>