Browse Source

pssr附件前端

jiangbiao 6 months ago
parent
commit
b784910c63
44 changed files with 1287 additions and 90 deletions
  1. 36 1
      ui/src/views/pssr/airtight/index.vue
  2. 1 1
      ui/src/views/pssr/alarm/index.vue
  3. 36 1
      ui/src/views/pssr/analyzer/index.vue
  4. 36 2
      ui/src/views/pssr/blind/index.vue
  5. 21 1
      ui/src/views/pssr/circuit/index.vue
  6. 21 1
      ui/src/views/pssr/cleaning/index.vue
  7. 35 1
      ui/src/views/pssr/frame/index.vue
  8. 36 1
      ui/src/views/pssr/franklinism/index.vue
  9. 36 1
      ui/src/views/pssr/gasdetector/index.vue
  10. 1 1
      ui/src/views/pssr/hygiene/index.vue
  11. 36 1
      ui/src/views/pssr/instrumentCalibration/index.vue
  12. 1 1
      ui/src/views/pssr/instrumentTest/index.vue
  13. 1 1
      ui/src/views/pssr/laboratory/index.vue
  14. 36 1
      ui/src/views/pssr/lighting/index.vue
  15. 35 31
      ui/src/views/pssr/lock/index.vue
  16. 35 0
      ui/src/views/pssr/material/index.vue
  17. 35 0
      ui/src/views/pssr/materialRaw/index.vue
  18. 36 1
      ui/src/views/pssr/measure/index.vue
  19. 34 0
      ui/src/views/pssr/moc/index.vue
  20. 36 1
      ui/src/views/pssr/motor/index.vue
  21. 35 1
      ui/src/views/pssr/nitrogen/index.vue
  22. 35 1
      ui/src/views/pssr/overhaulExchanger/index.vue
  23. 35 1
      ui/src/views/pssr/overhaulFilter/index.vue
  24. 35 1
      ui/src/views/pssr/overhaulPipe/index.vue
  25. 35 1
      ui/src/views/pssr/overhaulPump/index.vue
  26. 35 1
      ui/src/views/pssr/overhaulTower/index.vue
  27. 35 1
      ui/src/views/pssr/overhaulValve/index.vue
  28. 36 1
      ui/src/views/pssr/pipe/index.vue
  29. 21 1
      ui/src/views/pssr/power/index.vue
  30. 0 1
      ui/src/views/pssr/programme/index.vue
  31. 35 0
      ui/src/views/pssr/protection/index.vue
  32. 1 1
      ui/src/views/pssr/public/index.vue
  33. 51 1
      ui/src/views/pssr/pumpCleaning/index.vue
  34. 51 1
      ui/src/views/pssr/pumpFill/index.vue
  35. 51 1
      ui/src/views/pssr/pumpOverhaul/index.vue
  36. 35 1
      ui/src/views/pssr/safetyBleed/index.vue
  37. 35 1
      ui/src/views/pssr/safetyBreath/index.vue
  38. 35 1
      ui/src/views/pssr/safetyBrust/index.vue
  39. 35 1
      ui/src/views/pssr/safetyFlamearrester/index.vue
  40. 35 1
      ui/src/views/pssr/safetyValve/index.vue
  41. 1 17
      ui/src/views/pssr/subcontent/index.vue
  42. 36 1
      ui/src/views/pssr/torchvoc/index.vue
  43. 36 1
      ui/src/views/pssr/vessel/index.vue
  44. 4 4
      ui/src/views/training/bccnew/tsnew/index.vue

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

@@ -287,7 +287,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="从表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -338,6 +338,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -521,6 +530,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'qm'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -806,6 +826,21 @@ export default {
         }
       }
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
   }
 };
 </script>

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

@@ -45,7 +45,7 @@
     <el-table v-loading="loading" :data="alarmList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==2" type="success">已确认</el-tag>

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

@@ -268,7 +268,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="内容表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -315,6 +315,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -492,6 +501,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'zxfxy'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -771,6 +791,21 @@ export default {
         }
       }
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
   }
 };
 </script>

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

@@ -136,7 +136,7 @@
     <el-table v-loading="loading" :data="blindList" @selection-change="handleSelectionChange" :height="clientHeight"
               border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -177,6 +177,14 @@
       <el-table-column label="操作" align="center" fixed="right" v-if="isApprove==0" width="120"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -414,6 +422,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'mb'
+        },
+      },
       userOptions: [],
       subStatus: null,
       // 遮罩层
@@ -754,7 +773,22 @@ export default {
     // 提交上传文件
     submitFileForm() {
       this.$refs.upload.submit();
-    }
+    },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
   }
 };
 </script>

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

@@ -293,7 +293,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="内容表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -344,6 +344,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -533,6 +542,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'dj'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,

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

@@ -247,7 +247,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="从表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -291,6 +291,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -467,6 +476,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'sbqjd'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,

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

@@ -306,7 +306,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="内容表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -368,6 +368,14 @@
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width"
                        v-if="isApprove==0">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -617,6 +625,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'zdj'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -860,6 +879,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -248,7 +248,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="从表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
       <template slot-scope="scope">
         <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
         <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -294,6 +294,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -470,6 +479,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jdjdkj'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -701,6 +721,21 @@ export default {
       submitFileForm() {
           this.$refs.upload.submit();
       },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -262,7 +262,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="内容表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
       <template slot-scope="scope">
         <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
         <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -309,6 +309,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -486,6 +495,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'qtjcy'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -719,6 +739,21 @@ export default {
       submitFileForm() {
           this.$refs.upload.submit();
       },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -223,7 +223,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="从表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>

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

@@ -271,7 +271,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="内容表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -319,6 +319,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -499,6 +508,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'ybjy'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -781,6 +801,21 @@ export default {
         }
       }
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
   }
 };
 </script>

+ 1 - 1
ui/src/views/pssr/instrumentTest/index.vue

@@ -45,7 +45,7 @@
     <el-table v-loading="loading" :data="instrumentTestList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==2" type="success">已确认</el-tag>

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

@@ -257,7 +257,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="从表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>

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

@@ -253,7 +253,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="从表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -299,6 +299,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -479,6 +488,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'zmdbr'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -759,6 +779,21 @@ export default {
         }
       }
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
   }
 };
 </script>

+ 35 - 31
ui/src/views/pssr/lock/index.vue

@@ -81,17 +81,17 @@
               >导入
               </el-button>
             </el-col>-->
-            <el-col :span="1.5">
-              <el-button
-                type="warning"
-                icon="el-icon-download"
-                size="mini"
-                @click="handleExport"
-                v-if="isApprove==0"
-                v-hasPermi="['pssr:lock:export']"
-              >导出
-              </el-button>
-            </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-if="isApprove==0"
+          v-hasPermi="['pssr:lock:export']"
+        >导出
+        </el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="success"
@@ -133,10 +133,10 @@
       <H2>锁开锁关的完整性检查表</H2>
     </div>
     <el-table v-loading="loading" :data="lockList" @selection-change="handleSelectionChange"
-               :height="clientHeight"
+              :height="clientHeight"
               border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -154,9 +154,12 @@
       <el-table-column label="风险等级" align="center" prop="riskLevel" :show-overflow-tooltip="true" width="150"/>
       <el-table-column label="尺寸" align="center" prop="lockSize" :show-overflow-tooltip="true" width="150"/>
       <el-table-column label="阀门状态" align="center" prop="pidStatus" :show-overflow-tooltip="true" width="150"/>
-      <el-table-column label="位置正确(✔/✖)" align="center" prop="positionRight" :show-overflow-tooltip="true" width="150"/>
-      <el-table-column label="状态一致(✔/✖)" align="center" prop="statusRight" :show-overflow-tooltip="true" width="150"/>
-      <el-table-column label="编号一致(✔/✖)" align="center" prop="codeAccord" :show-overflow-tooltip="true" width="150"/>
+      <el-table-column label="位置正确(✔/✖)" align="center" prop="positionRight" :show-overflow-tooltip="true"
+                       width="150"/>
+      <el-table-column label="状态一致(✔/✖)" align="center" prop="statusRight" :show-overflow-tooltip="true"
+                       width="150"/>
+      <el-table-column label="编号一致(✔/✖)" align="center" prop="codeAccord" :show-overflow-tooltip="true"
+                       width="150"/>
       <el-table-column label="紧固(✔/✖)" align="center" prop="fastening" :show-overflow-tooltip="true" width="150"/>
       <el-table-column label="锁具完好(✔/✖)" align="center" prop="noDamage" :show-overflow-tooltip="true" width="170"/>
       <el-table-column label="检查人" align="center" prop="lockeder" :show-overflow-tooltip="true" width="150">
@@ -217,7 +220,8 @@
     />
 
     <!-- 添加或修改锁开锁关阀门状态对话框 -->
-    <el-dialog :close-on-click-modal="false" :title="title" v-if="isApprove==0" :visible.sync="open" width="500px" append-to-body>
+    <el-dialog :close-on-click-modal="false" :title="title" v-if="isApprove==0" :visible.sync="open" width="500px"
+               append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="85px">
         <el-form-item label="PID图号" prop="pidNos">
           <el-select v-model="form.pidNos" clearable :disabled="isEdit" multiple filterable style="width: 100%;"
@@ -256,7 +260,8 @@
       </div>
     </el-dialog>
 
-    <el-dialog :close-on-click-modal="false" :title="title" v-if="isApprove!=0" :visible.sync="approveOpen" width="700px" append-to-body>
+    <el-dialog :close-on-click-modal="false" :title="title" v-if="isApprove!=0" :visible.sync="approveOpen"
+               width="700px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="135px">
         <el-form-item label="位置正确(✔/✖)" prop="positionRight">
           <el-radio v-model="form.positionRight" label="✔" border>✔</el-radio>
@@ -270,7 +275,7 @@
           <el-radio v-model="form.codeAccord" label="✔" border>✔</el-radio>
           <el-radio v-model="form.codeAccord" label="✖" border>✖</el-radio>
         </el-form-item>
-        <el-form-item label="紧固(✔/✖)" prop="fastening" >
+        <el-form-item label="紧固(✔/✖)" prop="fastening">
           <el-radio v-model="form.fastening" label="✔" border>✔</el-radio>
           <el-radio v-model="form.fastening" label="✖" border>✖</el-radio>
         </el-form-item>
@@ -342,7 +347,8 @@ import {
   delLock,
   exportLock,
   getLock,
-  handleConfirmApproveLock, handleTurnDownLock,
+  handleConfirmApproveLock,
+  handleTurnDownLock,
   importTemplate,
   listLock,
   updateLock
@@ -353,10 +359,8 @@ 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 {handleTurnDownMoc} from "@/api/pssr/moc";
-import {listAllLock, listAllLockPid, listLockPid} from "@/api/apply/lock";
-import {allFileList, delCommonfile} from "@/api/common/commonfile";
-import {delFile, listFile} from "@/api/pssr/file";
+import {listLockPid} from "@/api/apply/lock";
+import {listFile} from "@/api/pssr/file";
 
 export default {
   dicts: ['pssr_approve_status'],
@@ -378,11 +382,11 @@ export default {
         file: "",
         // 是否显示弹出层(报告附件)
         open: false,
-        fileList:[],
+        fileList: [],
         queryParams: {
-          itemId:null,
+          itemId: null,
           subId: this.subId,
-          forShort:'sksgfmzt'
+          forShort: 'sksgfmzt'
         },
       },
       isEdit: false,
@@ -489,7 +493,7 @@ export default {
     listUserNoPage({}).then(res => {
       this.userOptions = res.data
     });
-    listLockPid({subId:this.subId}).then(res => {
+    listLockPid({subId: this.subId}).then(res => {
       this.lockOptions = res.data;
     });
   },
@@ -636,7 +640,7 @@ export default {
             this.approveOpen = true;
           }
         }
-        this.form.pidNos=[]
+        this.form.pidNos = []
         this.form.pidNos.push(this.form.pidNo);
         this.title = "修改锁开锁关阀门状态";
       });
@@ -656,7 +660,7 @@ export default {
               this.msgSuccess("新增成功");
               this.open = false;
               this.getList();
-              if (response.msg!=""){
+              if (response.msg != "") {
                 this.$alert(response.msg, "警告", {dangerouslyUseHTMLString: true});
               }
             });
@@ -720,7 +724,7 @@ export default {
     },
     /** 报告附件按钮操作 */
     handleDoc(row) {
-      this.doc.fileList=[]
+      this.doc.fileList = []
       this.doc.open = true;
       this.doc.queryParams.itemId = row.id
       this.getFileList()

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

@@ -184,6 +184,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -339,6 +348,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'yfl'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -596,6 +616,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -184,6 +184,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -367,6 +376,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'yfl-raw'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -625,6 +645,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -130,7 +130,7 @@
     <el-table v-loading="loading" :data="measureList" @selection-change="handleSelectionChange" :height="clientHeight"
               border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -162,6 +162,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"  width="150"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -310,6 +319,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'rsfh-m'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -553,6 +573,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

+ 34 - 0
ui/src/views/pssr/moc/index.vue

@@ -185,6 +185,14 @@
       <el-table-column label="操作" align="center" v-if="isApprove==0" width="120"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -340,6 +348,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'moc'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -605,6 +624,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList = []
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -261,7 +261,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="内容表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -308,6 +308,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -485,6 +494,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'djsb'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -764,6 +784,21 @@ export default {
         }
       }
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
   }
 };
 </script>

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

@@ -124,7 +124,7 @@
     <el-table v-loading="loading" :data="nitrogenList" @selection-change="handleSelectionChange" :height="clientHeight"
               border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="105">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="105">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -158,6 +158,14 @@
       <el-table-column label="操作" align="center" fixed="right" v-if="isApprove==0" width="120"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -311,6 +319,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'dqzh'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -550,6 +569,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     //发起审批
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -160,7 +160,7 @@
     <el-table v-loading="loading" :data="overhaulExchangerList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus"
                     :show-type="getTagType(scope.row.approveStatus)"/>
@@ -180,6 +180,14 @@
       <el-table-column label="操作" align="center"
                        v-if="isApprove==0" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -395,6 +403,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jxxm-hrq'
+        },
+      },
       doc: {
         file: "",
         // 是否显示弹出层(报告附件)
@@ -726,6 +745,21 @@ export default {
       this.$refs.upload.submit();
     },
     /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
+    /** 报告附件按钮操作 */
     handleDoc(row, fileType) {
       this.doc.id = row.id;
       this.doc.title = this.$t('附件');

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

@@ -143,7 +143,7 @@
     <el-table v-loading="loading" :data="overhaulFilterList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus" :show-type="getTagType(scope.row.approveStatus)"/>
         </template>
@@ -165,6 +165,14 @@
       <el-table-column label="操作" align="center"
                        v-if="isApprove==0" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -401,6 +409,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jxxm-glq'
+        },
+      },
       doc: {
         file: "",
         // 是否显示弹出层(报告附件)
@@ -748,6 +767,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
 
     /** 确认按钮操作*/
     handleApprove() {

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

@@ -125,7 +125,7 @@
     <el-table v-loading="loading" :data="overhaulPipeList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus"
                     :show-type="getTagType(scope.row.approveStatus)"/>
@@ -144,6 +144,14 @@
       <el-table-column label="操作" align="center" v-if="isApprove==0" fixed="right"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -282,6 +290,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jxxm-gx'
+        },
+      },
       regionGroupOptions: [],
       unitOptions: [],
       userOptions: [],
@@ -568,6 +587,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
 
     /** 确认按钮操作*/
     handleApprove() {

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

@@ -134,7 +134,7 @@
     <el-table v-loading="loading" :data="overhaulPumpList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus" :show-type="getTagType(scope.row.approveStatus)"/>
         </template>
@@ -153,6 +153,14 @@
       <el-table-column label="操作" align="center" fixed="right" v-if="isApprove==0"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -294,6 +302,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jxxm-b'
+        },
+      },
       regionGroupOptions: [],
       unitOptions: [],
       userOptions: [],
@@ -582,6 +601,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
 
     /** 确认按钮操作*/
     handleApprove() {

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

@@ -145,7 +145,7 @@
     <el-table v-loading="loading" :data="overhaulTowerList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus" :show-type="getTagType(scope.row.approveStatus)"/>
         </template>
@@ -164,6 +164,14 @@
       <el-table-column label="操作" align="center" v-if="isApprove==0"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -378,6 +386,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jxxm-tg'
+        },
+      },
       doc: {
         file: "",
         // 是否显示弹出层(报告附件)
@@ -700,6 +719,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
 
     /** 确认按钮操作*/
     handleApprove() {

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

@@ -142,7 +142,7 @@
     <el-table v-loading="loading" :data="overhaulValveList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus" :show-type="getTagType(scope.row.approveStatus)"/>
         </template>
@@ -167,6 +167,14 @@
       <el-table-column label="操作" align="center" fixed="right" v-if="isApprove==0"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -396,6 +404,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jxxm-fm'
+        },
+      },
       doc: {
         file: "",
         // 是否显示弹出层(报告附件)
@@ -740,6 +759,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
 
     /** 确认按钮操作*/
     handleApprove() {

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

@@ -154,7 +154,7 @@
     <el-table v-loading="loading" :data="pipeList" @selection-change="handleSelectionChange" :height="clientHeight"
               border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -190,6 +190,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" v-if="isApprove==0" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -390,6 +399,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'ylgd'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -656,6 +676,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -228,7 +228,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="从表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -274,6 +274,15 @@
       <!--<el-table-column label="确认人2" align="center" prop="confirm2" :show-overflow-tooltip="true"/>-->
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -452,6 +461,17 @@ export default {
   // components: { Editor },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'lsdy'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,

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

@@ -595,7 +595,6 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
-
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -141,6 +141,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -272,6 +281,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'rsfh'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -505,6 +525,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -230,7 +230,7 @@
       <!--<el-table-column label="唯一标识ID" align="center" prop="id" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="从表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>

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

@@ -127,7 +127,7 @@
     <el-table v-loading="loading" :data="pumpCleaningList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -154,6 +154,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true" width="180"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -298,6 +307,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jb-c'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -539,10 +559,40 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     // 提交上传文件
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -128,7 +128,7 @@
     <el-table v-loading="loading" :data="pumpFillList" @selection-change="handleSelectionChange" :height="clientHeight"
               border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="120">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -158,6 +158,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true" width="180"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -302,6 +311,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jb-f'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -543,10 +563,40 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     // 提交上传文件
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -128,7 +128,7 @@
     <el-table v-loading="loading" :data="pumpOverhaulList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="180">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="180">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -154,6 +154,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true" width="180"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -292,6 +301,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'jb-o'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -529,10 +549,40 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     // 提交上传文件
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -139,7 +139,7 @@
     <el-table v-loading="loading" :data="safetyBleedList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="105">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="105">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -179,6 +179,14 @@
       <el-table-column label="操作" align="center" fixed="right" v-if="isApprove==0" width="140"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -334,6 +342,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'aqss-bd'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -581,6 +600,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     //发起审批
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -139,7 +139,7 @@
     <el-table v-loading="loading" :data="safetyBreathList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="105">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="105">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -179,6 +179,14 @@
       <el-table-column label="操作" align="center" fixed="right" v-if="isApprove==0" width="120"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -334,6 +342,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'aqss-bh'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -574,6 +593,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     //发起审批
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -134,7 +134,7 @@
     <el-table v-loading="loading" :data="safetyBrustList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="105">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="105">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -179,6 +179,14 @@
       <el-table-column label="操作" align="center" fixed="right" width="120" v-if="isApprove==0"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -352,6 +360,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'aqss-bt'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -592,6 +611,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     //发起审批
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -133,7 +133,7 @@
     <el-table v-loading="loading" :data="safetyFlamearresterList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="105">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="105">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -173,6 +173,14 @@
       <el-table-column label="操作" align="center" fixed="right" width="120" v-if="isApprove==0"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -328,6 +336,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'aqss-f'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -560,6 +579,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     //发起审批
     handleApprove() {
       doApprove(this.subId).then(res => {

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

@@ -138,7 +138,7 @@
     <el-table v-loading="loading" :data="safetyValveList" @selection-change="handleSelectionChange"
               :height="clientHeight" border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="105">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="105">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -179,6 +179,14 @@
       <el-table-column label="操作" align="center" fixed="right" width="120" v-if="isApprove==0"
                        class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -337,6 +345,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'aqss-v'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -579,6 +598,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     //发起审批
     handleApprove() {
       doApprove(this.subId).then(res => {

+ 1 - 17
ui/src/views/pssr/subcontent/index.vue

@@ -67,7 +67,7 @@
       <el-table-column label="序号" align="center" prop="serialNumber" :show-overflow-tooltip="true" width="80"/>
       <el-table-column label="项目" align="center" prop="item" :show-overflow-tooltip="true" width="180"/>
       <el-table-column label="开车条件检查内容" align="center" prop="content" :show-overflow-tooltip="true" width="700"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="110">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="110">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus"
                     :show-type="getTagType(scope.row.approveStatus)"/>
@@ -82,22 +82,6 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true" width="180"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
         <template slot-scope="scope">
-          <!--          <el-button
-                      size="mini"
-                      type="text"
-                      icon="el-icon-edit"
-                      @click="handleUpdate(scope.row)"
-                      v-hasPermi="['pssr:subcontent:edit']"
-                    >修改
-                    </el-button>
-                    <el-button
-                      size="mini"
-                      type="text"
-                      icon="el-icon-delete"
-                      @click="handleDelete(scope.row)"
-                      v-hasPermi="['pssr:subcontent:remove']"
-                    >删除
-                    </el-button>-->
           <el-button
             size="mini"
             type="text"

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

@@ -232,7 +232,7 @@
       <!--<el-table-column label="内容表id" align="center" prop="subId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="审批id" align="center" prop="approveId" :show-overflow-tooltip="true"/>-->
       <!--<el-table-column label="类型" align="center" prop="torchvocType" :show-overflow-tooltip="true"/>-->
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -275,6 +275,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -451,6 +460,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'hbss'
+        },
+      },
       userOptions: [],
       // 遮罩层
       loading: true,
@@ -727,6 +747,21 @@ export default {
         }
       }
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
   }
 };
 </script>

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

@@ -155,7 +155,7 @@
     <el-table v-loading="loading" :data="vesselList" @selection-change="handleSelectionChange" :height="clientHeight"
               border>
       <el-table-column type="selection" width="55" align="center"/>
-      <el-table-column label="审批状态" align="center" prop="approveStatus" :show-overflow-tooltip="true" width="100">
+      <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
           <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
@@ -194,6 +194,15 @@
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <el-table-column label="操作" align="center" fixed="right" width="120" v-if="isApprove==0" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-folder"
+            v-if="scope.row.approveStatus!=2"
+            @click="handleDoc(scope.row)"
+          >附件
+          </el-button>
           <el-button
             size="mini"
             type="text"
@@ -399,6 +408,17 @@ export default {
   },
   data() {
     return {
+      doc: {
+        file: "",
+        // 是否显示弹出层(报告附件)
+        open: false,
+        fileList: [],
+        queryParams: {
+          itemId: null,
+          subId: this.subId,
+          forShort: 'ylrq'
+        },
+      },
       userOptions: [],
       openBatch: false,
       // 遮罩层
@@ -636,6 +656,21 @@ export default {
     submitFileForm() {
       this.$refs.upload.submit();
     },
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     /** 确认按钮操作*/
     handleApprove() {
       doApprove(this.subId).then(res => {

+ 4 - 4
ui/src/views/training/bccnew/tsnew/index.vue

@@ -193,9 +193,9 @@
           <el-select v-model="form.staffId" filterable :placeholder="$t('请选择')+$t('培训员工')" :disabled="isEdit">
             <el-option
               v-for="item in userOption"
-              :key="item.staffid"
+              :key="item.staffid+''"
               :label="item.name +'  '+ item.deptName"
-              :value="item.staffid"
+              :value="item.staffid+''"
               :disabled="item.disabled">
             </el-option>
           </el-select>
@@ -250,9 +250,9 @@
           <el-select v-model="form.mentorStaffId" filterable :placeholder="$t('请选择')+$t('导师员工')">
             <el-option
               v-for="item in trainerOption"
-              :key="item.staffId"
+              :key="item.staffId+''"
               :label="item.trainerName"
-              :value="item.staffId"
+              :value="item.staffId+''"
               :disabled="item.disabled">
             </el-option>
           </el-select>