Эх сурвалжийг харах

裂解炉炉管测压 - 现场照片上传

wangggziwen 11 сар өмнө
parent
commit
78a4bc0e1f

+ 556 - 43
ui/src/views/production/pressure/h109.vue

@@ -268,23 +268,28 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" 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="['production:pressure:edit']"
-          >修改</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            @click="handleDelete(scope.row)"
-            v-hasPermi="['production:pressure:remove']"
-          >删除</el-button>
-        </template>
+        <el-button
+          size="mini"
+          type="text"
+          @click="handlePhoto(scope.row)"
+        >现场照片</el-button>
+        <el-button
+          size="mini"
+          type="text"
+          icon="el-icon-edit"
+          @click="handleUpdate(scope.row)"
+          v-hasPermi="['production:pressure:edit']"
+        >修改</el-button>
+        <el-button
+          size="mini"
+          type="text"
+          icon="el-icon-delete"
+          @click="handleDelete(scope.row)"
+          v-hasPermi="['production:pressure:remove']"
+        >删除</el-button>
+      </template>
       </el-table-column>
     </el-table>
 
@@ -487,34 +492,373 @@
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
-    <!-- 用户导入对话框 -->
-    <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
-      <el-upload
-        ref="upload"
-        :limit="1"
-        accept=".xlsx, .xls"
-        :headers="upload.headers"
-        :action="upload.url + '?updateSupport=' + upload.updateSupport"
-        :disabled="upload.isUploading"
-        :on-progress="handleFileUploadProgress"
-        :on-success="handleFileSuccess"
-        :auto-upload="false"
-        drag
-      >
-        <i class="el-icon-upload"></i>
-        <div class="el-upload__text">
-          将文件拖到此处,或
-          <em>点击上传</em>
-        </div>
-        <div class="el-upload__tip" slot="tip">
-          <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
-          <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
-        </div>
-        <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
-      </el-upload>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitFileForm">确 定</el-button>
-        <el-button @click="upload.open = false">取 消</el-button>
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
       </div>
     </el-dialog>
   </div>
@@ -527,6 +871,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -626,6 +971,36 @@
         recordTimeHms: null,
         // 用户列表
         userList: [],
+        doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -653,6 +1028,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h110.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h111.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h112.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h113.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h114.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h115.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h116.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h117.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 544 - 2
ui/src/views/production/pressure/h118.vue

@@ -172,8 +172,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -365,6 +370,375 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS5">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass5&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList5" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS6">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass6&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList6" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS7">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass7&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList7" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS8">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass8&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList8" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -375,6 +749,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -473,7 +848,36 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          commonfileList5: null,
+          commonfileList6: null,
+          commonfileList7: null,
+          commonfileList8: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -501,6 +905,144 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.doc.commonfileList5 = null;
+        this.doc.commonfileList6 = null;
+        this.doc.commonfileList7 = null;
+        this.doc.commonfileList8 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+        this.getFileList5();
+        this.getFileList6();
+        this.getFileList7();
+        this.getFileList8();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      getFileList5() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass5"
+        }).then(response => {
+          this.doc.commonfileList5 = response;
+        });
+      },
+      getFileList6() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass6"
+        }).then(response => {
+          this.doc.commonfileList6 = response;
+        });
+      },
+      getFileList7() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass7"
+        }).then(response => {
+          this.doc.commonfileList7 = response;
+        });
+      },
+      getFileList8() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass8"
+        }).then(response => {
+          this.doc.commonfileList8 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+        this.getFileList5()
+        this.getFileList6()
+        this.getFileList7()
+        this.getFileList8()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.getFileList5();
+          this.getFileList6();
+          this.getFileList7();
+          this.getFileList8();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;

+ 312 - 2
ui/src/views/production/pressure/h130.vue

@@ -224,8 +224,13 @@
           </template>
         </el-table-column>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            @click="handlePhoto(scope.row)"
+          >现场照片</el-button>
           <el-button
             size="mini"
             type="text"
@@ -437,6 +442,195 @@
         <el-button @click="upload.open = false">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 现场照片 -->
+    <el-dialog  :close-on-click-modal="false" v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="800px" append-to-body >
+      <el-tabs tab-position="left">
+        <el-tab-pane label="PASS1">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass1&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList1" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS2">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass2&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList2" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS3">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass3&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList3" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+        <el-tab-pane label="PASS4">
+          <el-upload ref="doc"
+                     :limit="1"
+                     :headers="doc.headers"
+                     :action="doc.url + '?pType=furnancePressurePass4&pId=' + doc.pId"
+                     :disabled="doc.isUploading"
+                     :on-progress="handleFileDocProgress"
+                     :on-success="handleFileDocSuccess"
+                     :auto-upload="true"
+                     drag
+          >
+            <i class="el-icon-upload"></i>
+            <div class="el-upload__text">
+              {{ $t('将文件拖到此处,或') }}
+              <em>{{ $t('点击上传') }}</em>
+            </div>
+          </el-upload>
+          <el-table :data="doc.commonfileList4" border>
+            <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <a  class="link-type"  @click="handleDownload(scope.row)">
+                  <span>{{ scope.row.fileName }}</span>
+                </a>
+              </template>
+            </el-table-column>
+            <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+            <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+            <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+              <template slot-scope="scope">
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-download"
+                  @click="handleDownload(scope.row)"
+                >{{ $t('下载') }}</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDeleteDoc(scope.row)"
+                >{{ $t('删除') }}</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -447,6 +641,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -545,7 +740,32 @@
         recordTimeYmd: null,
         recordTimeHms: null,
         // 用户列表
-        userList: [],
+        userList: [],doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList1: null,
+          commonfileList2: null,
+          commonfileList3: null,
+          commonfileList4: null,
+          queryParams: {
+            pId: null
+          },
+          pId: null,
+          form: {}
+        },
       };
     },
     watch: {
@@ -573,6 +793,96 @@
       init() {
         this.getList();
       },
+      // 现场照片
+      handlePhoto(row) {
+        this.doc.id = row.id;
+        this.doc.title = row.furnanceName + " " + row.recordTime + " 现场照片";
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.doc.commonfileList1 = null;
+        this.doc.commonfileList2 = null;
+        this.doc.commonfileList3 = null;
+        this.doc.commonfileList4 = null;
+        this.getFileList1();
+        this.getFileList2();
+        this.getFileList3();
+        this.getFileList4();
+      },
+      getFileList1() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass1"
+        }).then(response => {
+          this.doc.commonfileList1 = response;
+        });
+      },
+      getFileList2() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass2"
+        }).then(response => {
+          this.doc.commonfileList2 = response;
+        });
+      },
+      getFileList3() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass3"
+        }).then(response => {
+          this.doc.commonfileList3 = response;
+        });
+      },
+      getFileList4() {
+        allFileList({
+          "pId": this.doc.queryParams.pId,
+          "pType": "furnancePressurePass4"
+        }).then(response => {
+          this.doc.commonfileList4 = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
+        this.getFileList1()
+        this.getFileList2()
+        this.getFileList3()
+        this.getFileList4()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function () {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList1();
+          this.getFileList2();
+          this.getFileList3();
+          this.getFileList4();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
       listUser() {
         listUserNoPage().then(response => {
           this.userList = response.data;