From e888346ebcd8e3e099a15c7edd7bf367c057193a Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 04 三月 2025 15:33:33 +0800
Subject: [PATCH] Merge branch 'refs/heads/dev'

---
 src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue |  867 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 867 insertions(+), 0 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
new file mode 100644
index 0000000..d18ebfb
--- /dev/null
+++ b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
@@ -0,0 +1,867 @@
+<template>
+  <!-- 鏂囦欢淇鐢宠瀹℃壒璁板綍 -->
+  <div class="DocumentRevisionRequestApprovalRecords">
+    <div class="search">
+      <div class="search_thing">
+        <div class="search_label">鏂囦欢缂栧彿锛�</div>
+        <div class="search_input">
+          <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.documentCode"
+            @keyup.enter.native="refreshTable()"></el-input>
+        </div>
+      </div>
+      <div class="search_thing" style="padding-left: 30px;">
+        <el-button size="small" @click="refresh()">閲� 缃�</el-button>
+        <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
+      </div>
+      <div class="btn">
+        <el-button size="small" type="primary" @click="openAdd" v-if="addPower">鏂板</el-button>
+        <el-button size="small" type="primary" @click="handleDown" :loading="outLoading" v-if="outPower"
+          style="display:inline-block;margin-left: 20px;">瀵煎嚭</el-button>
+      </div>
+    </div>
+    <div class="table">
+      <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading"
+        :height="'calc(100vh - 260px)'" @pagination="pagination"></lims-table>
+    </div>
+    <el-dialog :title="title" :visible.sync="addDialogVisible" width="800px" top="6vh">
+      <el-row>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">鐢宠绫诲瀷锛�</div>
+            <div class="search_input">
+              <el-radio-group v-model="addInfo.method" size="small" :disabled="title.includes('鎰忚')">
+                <el-radio label="淇">淇</el-radio>
+                <el-radio label="浣滃簾">浣滃簾</el-radio>
+              </el-radio-group>
+            </div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label"><span style="color: red;margin-left: 4px;">* </span>鏂囦欢缂栧彿锛�</div>
+            <div class="search_input">
+              <el-select v-model="addInfo.documentCode" size="small" style="width: 100%;" @change="getCurrentFile"
+                allow-create clearable filterable :disabled="title.includes('鎰忚')">
+                <el-option v-for="item in fileList" :key="item.documentCode" :label="item.title"
+                  :value="item.documentCode">
+                </el-option>
+              </el-select>
+            </div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">鏂囦欢鍚嶇О锛�</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.documentName"
+                :disabled="title.includes('鎰忚')"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">绔犺妭鍙凤細</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.capter"
+                :disabled="title.includes('鎰忚')"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">椤电爜锛�</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.pages"
+                :disabled="title.includes('鎰忚')"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">淇敼娆℃暟锛�</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.number"
+                :disabled="title.includes('鎰忚')"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">淇敼鍓嶇増鏈彿锛�</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.beforeVersion"
+                :disabled="title.includes('鎰忚')"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">淇敼鍚庣増鏈彿锛�</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.afterVersion"
+                :disabled="title.includes('鎰忚')"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">淇浜猴細</div>
+            <div class="search_input">
+              <el-select v-model="addInfo.alterUser" placeholder="璇烽�夋嫨" size="small" style="width: 100%;" filterable
+                :disabled="title.includes('鎰忚')">
+                <el-option v-for="item in personList" :key="item.value" :label="item.label" :value="item.value">
+                </el-option>
+              </el-select>
+            </div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">鍘熷垎鍙戦儴闂細</div>
+            <div class="search_input">
+              <el-select v-model="addInfo.beforeDepart" placeholder="璇烽�夋嫨" size="small" style="width: 100%;"
+                :disabled="title.includes('鎰忚')">
+                <el-option v-for="item in list" :key="item.name" :label="item.name" :value="item.name">
+                </el-option>
+              </el-select>
+            </div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">淇鍚庡垎鍙戦儴闂細</div>
+            <div class="search_input">
+              <el-select v-model="addInfo.afterDepart" placeholder="璇烽�夋嫨" size="small" style="width: 100%;"
+                :disabled="title.includes('鎰忚')">
+                <el-option v-for="item in list" :key="item.name" :label="item.name" :value="item.name">
+                </el-option>
+              </el-select>
+            </div>
+          </div>
+        </el-col><el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">鏃ユ湡锛�</div>
+            <div class="search_input">
+              <el-date-picker v-model="addInfo.date" type="date" size="small" placeholder="閫夋嫨鏃ユ湡" format="yyyy-MM-dd"
+                value-format="yyyy-MM-dd" style="width: 100%;">
+              </el-date-picker>
+            </div>
+          </div>
+        </el-col>
+        <el-col :span="24" style="margin-bottom: 16px;">
+          <div class="search_thing" style="width: 90%;">
+            <div class="search_label">淇敼鍐呭锛�</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.alterThing"
+                type="textarea" :rows="2" :disabled="title.includes('鎰忚')"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="24" style="margin-bottom: 16px;">
+          <div class="search_thing" style="width: 90%;">
+            <div class="search_label">鍙樺寲鍘熷洜锛�</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.reason"
+                type="textarea" :rows="2" :disabled="title.includes('鎰忚')"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;">
+          <div class="search_thing">
+            <div class="search_label">涓婁紶闄勪欢锛�</div>
+            <div class="search_input"><el-upload style="margin: 8px 0 0px 50px;" action="#" :auto-upload="false"
+                :multiple="false" accept='.pdf' :on-change="handleChangeUpload"
+                v-if="addDialogVisible && !title.includes('鎰忚')">
+                <el-button size="small" type="primary">涓婁紶闄勪欢</el-button>
+              </el-upload></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;" v-if="title.includes('鎰忚')">
+          <div class="search_thing">
+            <div class="search_label">鐢宠閮ㄩ棬涓荤鎰忚锛�</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.applicant"
+                type="textarea" :rows="2" :disabled="title != '鐢宠閮ㄩ棬涓荤鎰忚'"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;" v-if="title.includes('鎰忚')">
+          <div class="search_thing">
+            <div class="search_label">鍘熷畾鍒堕儴闂ㄦ剰瑙侊細</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.formulation"
+                type="textarea" :rows="2" :disabled="title != '鍘熷畾鍒堕儴闂ㄦ剰瑙�'"></el-input></div>
+          </div>
+        </el-col>
+        <el-col :span="12" style="margin-bottom: 16px;" v-if="title.includes('鎰忚')">
+          <div class="search_thing">
+            <div class="search_label">鍘熷鏍搁儴闂ㄦ剰瑙侊細</div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addInfo.audit"
+                type="textarea" :rows="2" :disabled="title != '鍘熷鏍搁儴闂ㄦ剰瑙�'"></el-input></div>
+          </div>
+        </el-col>
+      </el-row>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="addDialogVisible = false">鍙� 娑�</el-button>
+        <el-button type="primary" @click="handleAdd" :loading="addLoading">纭� 瀹�</el-button>
+      </span>
+    </el-dialog>
+    <el-dialog :title="title0" :visible.sync="detailDialogVisible" width="900px" top="20px"
+      :class="{ downPdf: title0 == '涓嬭浇' }" :modal="title0 != '涓嬭浇'">
+      <div style="max-height: 75vh;overflow-y: auto;">
+        <div id="dialogBody">
+          <h4 style="display: flex;align-items: center;flex-direction: column;justify-content: center;">
+            <span style="font-size: 20px;">鏂囦欢鏇存敼/浣滃簾鐢宠琛�</span>
+            <span>Application for alteration/cancellation of Document</span>
+          </h4>
+          <p style="display: flex;justify-content: space-between;margin-top: 16px;">
+            <span>{{ currentInfo.documentCode }}</span>
+            <span>{{ currentInfo.method }}</span>
+          </p>
+          <table border="1" class="tables" cellpadding="10">
+            <tr>
+              <td>
+                <p>鐢宠閮ㄩ棬</p>
+                <p class="en">Application department</p>
+              </td>
+              <td>{{ currentInfo.createUserDepart }}</td>
+              <td>
+                <p>鐢宠浜�</p>
+                <p>Proposer</p>
+              </td>
+              <td>{{ currentInfo.createUserName }}</td>
+              <td>
+                <p>鐢宠鏃堕棿</p>
+                <p class="en">Application date</p>
+              </td>
+              <td>{{ currentInfo.createTime }}</td>
+            </tr>
+            <tr>
+              <td>
+                <p>鏂囦欢鍚嶇О</p>
+                <p class="en">File name</p>
+              </td>
+              <td colspan="3">{{ currentInfo.documentName }}</td>
+              <td>
+                <p>鏂囦欢缂栧彿</p>
+                <p class="en">Document number</p>
+              </td>
+              <td>{{ currentInfo.documentCode }}</td>
+            </tr>
+            <tr>
+              <td>
+                <p>淇敼鍓嶇増娆�</p>
+                <p class="en">Modify previous editions</p>
+              </td>
+              <td colspan="2">{{ currentInfo.beforeVersion }}</td>
+              <td>
+                <p>淇敼鍚庣増娆�</p>
+                <p class="en">Revised edition</p>
+              </td>
+              <td colspan="2">{{ currentInfo.afterVersion }}</td>
+            </tr>
+            <tr>
+              <td>
+                <p>鍙樺寲鍘熷洜</p>
+                <p class="en">Changing reason</p>
+              </td>
+              <td colspan="5">
+                <div class="user-content">
+                  <p style="text-align: left;line-height: 26px;">{{ currentInfo.reason }}</p>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <p>鍘熸枃鍐呭</p>
+                <p class="en">Original content</p>
+              </td>
+              <td colspan="2">瑙侀檮浠�</td>
+              <td>
+                <p>鎷熶慨璁㈠唴瀹�</p>
+                <p class="en">Content be revised</p>
+              </td>
+              <td colspan="2">{{ currentInfo.alterThing }}</td>
+            </tr>
+            <tr>
+              <td>
+                <p>淇鍚庡垎鍙戦儴闂�</p>
+                <p class="en">Distribute to the department after revision</p>
+              </td>
+              <td colspan="2">{{ currentInfo.afterDepart }}</td>
+              <td>
+                <p>鍘熷垎鏀鹃儴闂�</p>
+                <p class="en">The original distribution department</p>
+              </td>
+              <td colspan="2">{{ currentInfo.beforeDepart }}</td>
+            </tr>
+            <tr>
+              <td>
+                <p>鐢宠閮ㄩ棬涓荤鎰忚</p>
+                <p class="en">Opinion of the head of the applicant department</p>
+              </td>
+              <td colspan="2">
+                <p>鍘熷埗瀹氶儴闂ㄦ剰瑙�</p>
+                <p class="en">Original formulation of the department's opinion</p>
+              </td>
+              <td colspan="2">
+                <p>鍘熷鏍搁儴闂ㄦ剰瑙�</p>
+                <p class="en">Opinion of the original audit department</p>
+              </td>
+              <td>
+                <p>鎵瑰噯</p>
+                <p class="en">Ratify</p>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                {{ currentInfo.applicant }}
+              </td>
+              <td colspan="2">
+                {{ currentInfo.formulation }}
+              </td>
+              <td colspan="2">
+                {{ currentInfo.audit }}
+              </td>
+              <td>
+                <img :src="javaApi + 'img/' + currentInfo.ratifyUserUrl" style="width: 100%;" alt="鎵瑰噯浜虹鍚�">
+              </td>
+            </tr>
+          </table>
+        </div>
+      </div>
+    </el-dialog>
+    <el-dialog title="鏂囦欢棰勮" :visible.sync="lookDialogVisible" width="800px" top="5vh" fullscreen>
+      <h4>淇鍐呭</h4>
+      <filePreview v-if="lookDialogVisible" :fileUrl="javaApi + '/word/' + currentInfo.afterUrl" :currentFile="{}" />
+      <h4>鍘熷唴瀹�</h4>
+      <filePreview v-if="lookDialogVisible" :fileUrl="javaApi + '/word/' + currentInfo.beforeUrl" :currentFile="{}" />
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import limsTable from "@/components/Table/lims-table.vue";
+import { exportHtmlToPDF } from '@/utils/downHtmlToPDF'
+import filePreview from '@/components/Preview/filePreview.vue'
+import {
+  exportOutManageRecordAudit,
+  addManageRecordAudit,
+  doManageRecordAudit,
+  selectCNSAPersonTree,
+  ratifyManageRecordAudit,
+  pageManageRecordAudit,
+  delManageRecordAudit,
+} from '@/api/cnas/systemManagement/documentRecords.js'
+import {
+  pageManageDocumentList,
+} from '@/api/cnas/systemManagement/documentControl.js'
+import {
+  selectUserCondition,
+} from "@/api/system/user.js";
+export default {
+  components: {
+    filePreview,
+    limsTable
+  },
+  data() {
+    return {
+      addPower: true,
+      outPower: true,
+      outLoading: false,
+      lookDialogVisible: false,
+      addLoading: false,
+      title: '鏂板',
+      addInfo: {
+        method: '淇',
+      },
+      addDialogVisible: false,
+      detailDialogVisible: false,
+      fileList: [],
+      personList: [],
+      list: [],
+      file: null,
+      title0: '鏌ョ湅',
+      currentInfo: {},
+      queryParams: {},
+      tableData: [],
+      column: [
+        { label: "鏂囦欢缂栧彿", prop: "documentCode" },
+        { label: "绔犺妭鍙�", prop: "capter", width: "120px" },
+        {
+          label: "椤电爜",
+          prop: "pages",
+        },
+        { label: "淇娆℃暟", prop: "number" },
+        { label: "淇敼鍓嶇増鏈彿", prop: "beforeVersion" },
+        { label: "淇敼鍚庣増鏈彿", prop: "afterVersion" },
+        { label: "淇敼鍐呭", prop: "alterThing" },
+        { label: "淇浜�", prop: "alterUserName" },
+        { label: "鎵瑰噯浜�", prop: "ratifyUserName" },
+        { label: "鏃ユ湡", prop: "date" },
+        {
+          dataType: "action",
+          fixed: "right",
+          label: "鎿嶄綔",
+          operation: [
+            {
+              name: "鏌ョ湅",
+              type: "text",
+              clickFun: (row) => {
+                this.handleLook(row);
+              },
+            },
+            {
+              name: "鏂囦欢棰勮",
+              type: "text",
+              clickFun: (row) => {
+                this.handleLook0(row);
+              },
+            },
+            {
+              name: "涓嬭浇",
+              type: "text",
+              clickFun: (row) => {
+                this.handleOut(row);
+              },
+            },
+            {
+              name: "鍒犻櫎",
+              type: "text",
+              clickFun: (row) => {
+                this.handleDelete(row);
+              },
+              disabled: (row) => {
+                return !!row.ratifyUser
+              },
+            },
+            {
+              name: "缂栬緫",
+              type: "text",
+              clickFun: (row) => {
+                this.handleEdit(row);
+              },
+              disabled: (row) => {
+                return !!row.ratifyUser
+              },
+            },
+            {
+              name: "鎵瑰噯",
+              type: "text",
+              clickFun: (row) => {
+                this.handleRatify(row);
+              },
+              disabled: (row) => {
+                return !!row.ratifyUser
+              },
+            },
+            {
+              name: "鐢宠鎰忚",
+              type: "text",
+              clickFun: (row) => {
+                this.handlework0(row);
+              },
+              disabled: (row) => {
+                return !!row.ratifyUser
+              },
+            },
+            {
+              name: "鍘熷畾鍒舵剰瑙�",
+              type: "text",
+              clickFun: (row) => {
+                this.handlework1(row);
+              },
+              disabled: (row) => {
+                return !!row.ratifyUser
+              },
+            },
+            {
+              name: "鍘熷鏍告剰瑙�",
+              type: "text",
+              clickFun: (row) => {
+                this.handlework2(row);
+              },
+              disabled: (row) => {
+                return !!row.ratifyUser
+              },
+            },
+          ],
+        },
+      ],
+      page: {
+        total: 0,
+        size: 10,
+        current: 0,
+      },
+      tableLoading: false,
+    }
+  },
+  mounted() {
+    this.getList()
+    this.getFileList()
+    this.getAuthorizedPerson()
+    this.selectTreeList()
+  },
+  methods: {
+    getPower() {
+      let power = JSON.parse(sessionStorage.getItem('power'))
+      let add = false
+      let del = false
+      let out = false;
+      let ratify = false
+      let audit1 = false
+      let audit2 = false
+      let audit3 = false
+      for (var i = 0; i < power.length; i++) {
+        if (power[i].menuMethod == 'addManageRecordAudit') {
+          add = true
+        }
+        if (power[i].menuMethod == 'delManageRecordAudit') {
+          del = true
+        }
+        if (power[i].menuMethod == 'ratifyManageRecordAudit') {
+          ratify = true
+        }
+        if (power[i].menuMethod == 'exportOutManageRecordAudit') {
+          out = true
+        }
+        if (power[i].menuMethod == 'manageRecordAudit1') {
+          audit1 = true
+        }
+        if (power[i].menuMethod == 'manageRecordAudit2') {
+          audit2 = true
+        }
+        if (power[i].menuMethod == 'manageRecordAudit3') {
+          audit3 = true
+        }
+      }
+      if (!audit3) {
+        this.componentData.do.splice(8, 1)
+      }
+      if (!audit2) {
+        this.componentData.do.splice(7, 1)
+      }
+      if (!audit1) {
+        this.componentData.do.splice(6, 1)
+      }
+      if (!ratify) {
+        this.componentData.do.splice(5, 1)
+      }
+      if (!add) {
+        this.componentData.do.splice(4, 1)
+      }
+      if (!del) {
+        this.componentData.do.splice(3, 1)
+      }
+      this.addPower = add
+      this.outPower = out
+    },
+    openAdd() {
+      this.addInfo = {
+        method: '淇',
+      }
+      this.title = '鏂板'
+      this.addDialogVisible = true;
+    },
+    // 瀵煎嚭
+    handleDown() {
+      this.outLoading = true
+      exportOutManageRecordAudit(this.queryParams).then(res => {
+        this.outLoading = false
+        if (res.code == 201) return this.$message.error('瀵煎嚭澶辫触')
+        let url = this.javaApi + '/word/' + res.data
+        this.$download.saveAs(url, "鏂囦欢淇琛�");
+      })
+    },
+    getList() {
+      this.tableLoading = true;
+      let param = { ...this.queryParams, ...this.page };
+      delete param.total;
+      pageManageRecordAudit({ ...param })
+        .then((res) => {
+          this.tableLoading = false;
+          if (res.code === 200) {
+            this.tableData = res.data.records;
+            this.page.total = res.data.total;
+          }
+        })
+        .catch((err) => {
+          this.tableLoading = false;
+        });
+    },
+    pagination({ page, limit }) {
+      this.page.current = page;
+      this.page.size = limit;
+      this.getList();
+    },
+    refresh() {
+      this.queryParams = {};
+      this.page.current = 1;
+      this.getList();
+    },
+    refreshTable() {
+      this.page.current = 1;
+      this.getList();
+    },
+    // 鑾峰彇鏂囦欢鍒楄〃--鏂囦欢娓呭崟
+    getFileList() {
+      pageManageDocumentList({
+        current: -1,
+        size: -1
+      }).then(res => {
+        this.fileList = res.data.records.map(m => {
+          m.title = m.documentCode
+          return m
+        })
+      }).catch(err => { })
+    },
+    getCurrentFile(e) { },
+    handleAdd() {
+      if (!this.addInfo.documentCode) return this.$message({ type: 'error', message: "璇疯緭鍏ユ枃浠剁紪鍙�" })
+      if (!this.addInfo.id) {
+        // 鏂板
+        let fd = new FormData();
+        //鏂囦欢淇℃伅涓璻aw鎵嶆槸鐪熺殑鏂囦欢
+        if (this.file) {
+          fd.append("file", this.file.raw);
+        }
+        for (let m in this.addInfo) {
+          fd.append(m, this.addInfo[m])
+        }
+        this.addLoading = true
+        addManageRecordAudit(fd).then(res => {
+          this.addLoading = false
+          if (res.code == 200) {
+            this.$message({
+              type: 'success',
+              message: '娣诲姞鎴愬姛'
+            })
+            this.refreshTable()
+            this.addDialogVisible = false
+          } else {
+            this.$message({
+              type: 'error',
+              message: '娣诲姞澶辫触'
+            })
+          }
+        })
+      } else {
+        // 淇敼
+        let { id, method, documentCode, documentName, capter, pages, beforeVersion, afterVersion, alterUser, alterThing, reason, beforeDepart, afterDepart, number, applicant, formulation, audit, date } = this.addInfo
+        let fd = new FormData();
+        //鏂囦欢淇℃伅涓璻aw鎵嶆槸鐪熺殑鏂囦欢
+        if (this.file) {
+          fd.append("file", this.file.raw);
+        }
+        let obj = { id, method, documentCode, documentName, capter, pages, beforeVersion, afterVersion, alterUser, alterThing, reason, beforeDepart, afterDepart, number, applicant, formulation, audit, date }
+        for (let m in obj) {
+          if (this.addInfo[m]) {
+            fd.append(m, this.addInfo[m])
+          }
+        }
+        this.addLoading = true
+        doManageRecordAudit(fd).then(res => {
+          this.addLoading = false
+          if (res.code == 200) {
+            this.refreshTable()
+            this.addDialogVisible = false
+          } else {
+            this.$message({
+              type: 'error',
+              message: '娣诲姞澶辫触'
+            })
+          }
+        })
+      }
+    },
+    getAuthorizedPerson() {
+      selectUserCondition().then(res => {
+        let data = []
+        res.data.forEach(a => {
+          data.push({
+            label: a.name,
+            value: a.id
+          })
+        })
+        this.personList = data
+      })
+    },
+    // 鏌ヨ鏍戝舰鍒楄〃
+    selectTreeList() {
+      selectCNSAPersonTree().then((res) => {
+        this.list = res.data[0].children;
+      });
+    },
+    handleChangeUpload(file, fileLists) {
+      this.file = file
+      // this.$set(this.addInfo,'name',file.name)
+    },
+    handleEdit(row) {
+      this.addInfo = row
+      this.title = '淇敼'
+      this.addDialogVisible = true;
+    },
+    // 瀹℃壒
+    handleRatify(row) {
+      this.$confirm('鏄惁鎵瑰噯閫氳繃?', '鎵瑰噯', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      })
+        .then(() => {
+          ratifyManageRecordAudit({ id: row.id }).then(res => {
+            if (res.code === 201) {
+              return;
+            }
+            this.$message.success('鎿嶄綔鎴愬姛');
+            this.refreshTable();
+          })
+            .catch(e => {
+              this.$message.error('鎿嶄綔澶辫触');
+            });
+        })
+        .catch(() => {
+        });
+    },
+    handlework0(row) {
+      this.addInfo = row
+      this.title = '鐢宠閮ㄩ棬涓荤鎰忚'
+      this.addDialogVisible = true;
+    },
+    handlework1(row) {
+      this.addInfo = row
+      this.title = '鍘熷畾鍒堕儴闂ㄦ剰瑙�'
+      this.addDialogVisible = true;
+    },
+    handlework2(row) {
+      this.addInfo = row
+      this.title = '鍘熷鏍搁儴闂ㄦ剰瑙�'
+      this.addDialogVisible = true;
+    },
+    handleLook(row) {
+      this.title0 = '鏌ョ湅'
+      this.currentInfo = row
+      this.detailDialogVisible = true;
+    },
+    handleOut(row) {
+      this.currentInfo = row
+      this.title0 = '涓嬭浇'
+      this.detailDialogVisible = true;
+      setTimeout(() => {
+        this.$nextTick(() => {
+          const element = document.getElementById("dialogBody");
+          exportHtmlToPDF(element, '鏂囦欢' + row.method + '鐢宠琛�').then(res => {
+            this.detailDialogVisible = false;
+          })
+        })
+      }, 500);
+    },
+    handleLook0(row) {
+      this.currentInfo = row;
+      this.lookDialogVisible = true
+    },
+    handleDelete(row) {
+      this.$confirm("鏄惁鍒犻櫎璇ユ潯鏁版嵁?", "鎻愮ず", {
+        confirmButtonText: "纭畾",
+        cancelButtonText: "鍙栨秷",
+        type: "warning",
+      })
+        .then(() => {
+          delManageRecordAudit({ id: row.id }).then((res) => {
+            if (res.code == 201) return;
+            this.$message.success("鍒犻櫎鎴愬姛");
+            this.refresh();
+          });
+        })
+        .catch(() => { });
+    },
+  }
+}
+</script>
+
+<style scoped>
+.title {
+  height: 60px;
+  line-height: 60px;
+}
+
+.search {
+  background-color: #fff;
+  height: 80px;
+  display: flex;
+  align-items: center;
+  position: relative;
+}
+
+.search_thing {
+  width: 350px;
+  display: flex;
+  align-items: center;
+}
+
+.search_label {
+  width: 110px;
+  font-size: 14px;
+  text-align: right;
+}
+
+.search_input {
+  width: calc(100% - 110px);
+}
+
+.table {
+  margin-top: 10px;
+  background-color: #fff;
+  height: calc(100% - 60px - 80px - 10px - 40px);
+  padding: 20px;
+  padding-top: 0;
+}
+
+.tables {
+  table-layout: fixed;
+  width: 100%;
+  margin-top: 10px;
+  border-collapse: collapse;
+}
+
+.tables td {
+  height: 40px;
+  width: 100px;
+  text-align: center;
+  font-size: 14px;
+  word-wrap: break-word;
+  white-space: normal;
+}
+
+.en {
+  font-size: 12px;
+  word-break: break-word;
+  /* 鑷姩鏂 */
+  overflow-wrap: break-word;
+  /* 闃叉婧㈠嚭 */
+  white-space: normal;
+  /* 榛樿鎹㈣ */
+}
+
+.heads td {
+  border: 1px dashed black;
+  /* 鍗曞厓鏍肩殑铏氱嚎 */
+  padding: 8px;
+  text-align: left;
+}
+
+.downPdf {
+  opacity: 0 !important;
+}
+
+h4.title {
+  position: relative;
+  height: 30px;
+  line-height: 30px;
+  box-sizing: border-box;
+  padding-left: 16px;
+  margin-left: 10px;
+  margin-bottom: 10px;
+}
+
+h4.title::after {
+  content: '';
+  width: 4px;
+  height: 20px;
+  background: #3A7BFA;
+  position: absolute;
+  top: 5px;
+  left: 0;
+}
+
+>>>.el-dialog__body {
+  height: auto;
+}
+
+.btn {
+  position: absolute;
+  right: 20px;
+  top: 16px;
+}
+</style>

--
Gitblit v1.9.3