From e5454b769d44a34af423bf87ac8a740bf8c20341 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 29 四月 2025 13:25:29 +0800
Subject: [PATCH] Merge branch 'dev' into dev_tides

---
 src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue |  256 +++++++--------------------------------------------
 1 files changed, 35 insertions(+), 221 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
index 9bb9cdb..85fc6b4 100644
--- a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
@@ -1,30 +1,30 @@
 <template>
   <!-- 鏂囦欢瀹氭湡瀹℃煡璁板綍 -->
-  <div class="PeriodicDocumentReviewRecords">
+  <div class="capacity-scope">
     <el-tabs type="border-card" v-model="activeName" style="height: 100%;">
       <el-tab-pane label="濉啓" name="濉啓" style="height: 100%;">
         <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.documentName" @keyup.enter.native="refreshTable()"></el-input></div>
+          <div>
+            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
+              <el-form-item label="鏂囦欢鍚嶇О" prop="documentName">
+                <el-input size="small" placeholder="璇疯緭鍏�" clearable
+                          v-model="queryParams.documentName" @keyup.enter.native="refreshTable()"></el-input>
+              </el-form-item>
+              <el-form-item label="鏂囦欢缂栧彿" prop="documentCode">
+                <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.documentCode"
+                          @keyup.enter.native="refreshTable()"></el-input>
+              </el-form-item>
+              <el-form-item>
+                <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button>
+                <el-button size="mini" @click="refresh">閲嶇疆</el-button>
+              </el-form-item>
+            </el-form>
           </div>
-          <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="btns">
+          <div>
             <el-button size="small" type="primary" @click="openAdd" v-if="addPower">鏂板</el-button>
             <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx'
-              :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload' v-if="upPower"
-              :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;">
+                       :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload' v-if="upPower"
+                       :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;">
               <el-button type="primary" size="small">瀵煎叆</el-button></el-upload>
           </div>
         </div>
@@ -34,19 +34,18 @@
         </div>
       </el-tab-pane>
       <el-tab-pane label="鍘嗗彶璁板綍" name="鍘嗗彶璁板綍" style="height: 100%;">
-        <div class="search">
-          <div class="search_thing">
-            <div class="search_label">骞达細</div>
-            <div class="search_input">
+        <div>
+          <el-form :model="queryParams0" ref="queryParams0" size="small" :inline="true">
+            <el-form-item label="骞�" prop="year">
               <el-date-picker v-model="queryParams0.year" type="year" placeholder="閫夋嫨骞�" format="yyyy"
-                value-format="yyyy" size="small" @change="refreshTable(1)">
+                              value-format="yyyy" size="small" @change="refreshTable(1)">
               </el-date-picker>
-            </div>
-          </div>
-          <div class="search_thing" style="padding-left: 30px;">
-            <el-button size="small" @click="refresh(1)">閲� 缃�</el-button>
-            <el-button size="small" type="primary" @click="refreshTable(1)">鏌� 璇�</el-button>
-          </div>
+            </el-form-item>
+            <el-form-item>
+              <el-button type="primary" size="mini" @click="refreshTable(1)">鏌ヨ</el-button>
+              <el-button size="mini" @click="refresh(1)">閲嶇疆</el-button>
+            </el-form-item>
+          </el-form>
         </div>
         <div class="table">
           <lims-table :tableData="tableData0" :column="column0" :page="page0" :tableLoading="tableLoading"
@@ -143,6 +142,7 @@
   pageManageDocumentList,
 } from '@/api/cnas/systemManagement/documentControl.js'
 export default {
+  name: 'RegularReviewsRecord',
   components: {
     limsTable,
     filePreview
@@ -159,110 +159,6 @@
       lookDialogVisible: false,
       noCheckLoading: false,
       checkLoading: false,
-      componentData: {
-        entity: {
-          documentName: null,
-          documentCode: null,
-          orderBy: {
-            field: 'id',
-            order: 'desc'
-          }
-        },
-        isIndex: true,
-        showSelect: false,
-        select: false,
-        // selectMethod: 'handleChangeTask',
-        do: [{
-          id: 'handleEdit',
-          font: '淇敼',
-          type: 'text',
-          method: 'handleEdit',
-          field: [],
-        }, {
-          id: 'delete',
-          font: '鍒犻櫎',
-          type: 'text',
-          method: 'doDiy',
-        }],
-        tagField: {
-          // documentType:{
-          //   select: []
-          // },
-          // receiveUserName:{
-          //   select: []
-          // },
-        },
-        selectField: {
-          // documentType:{
-          //   select: []
-          // },
-          // receiveUserName:{
-          //   select: []
-          // },
-        },
-        addUpload: ['signatoryUrl'],
-        requiredAdd: [],
-        requiredUp: [],
-        datePicker: ['receiveDate'],
-        noHead: ['signedUserName', 'signedDate', 'departLims'],//涓嶅弬涓庢柊澧炵紪杈戠殑瀛楁
-        needSort: [],
-        inputType: ''
-      },
-      componentData0: {
-        entity: {
-          year: null,
-          orderBy: {
-            field: 'id',
-            order: 'desc'
-          }
-        },
-        isIndex: true,
-        showSelect: false,
-        select: false,
-        do: [{
-          id: 'handleLook',
-          font: '鏌ョ湅',
-          type: 'text',
-          method: 'handleLook',
-          disabled: (row, index) => {
-            return !row.url
-          }
-        }, {
-          id: 'handleDown0',
-          font: '涓嬭浇',
-          type: 'text',
-          method: 'handleDown0',
-          disabled: (row, index) => {
-            return !row.url
-          }
-        },
-        {
-          id: 'handleSubmit',
-          font: '鎻愪氦',
-          type: 'text',
-          method: 'handleSubmit',
-          disabled: (row, index) => {
-            return !!row.submitUserName
-          }
-        }, {
-          id: 'handleApproval',
-          font: '鎵瑰噯',
-          type: 'text',
-          method: 'handleApproval',
-          disabled: (row, index) => {
-            return !row.submitUserName || !!row.ratifyUserName
-          }
-        }],
-        tagField: {},
-        selectField: {},
-        requiredAdd: [],
-        requiredUp: [],
-        needSort: [],
-        inputType: ''
-      },
-      entityCopy: {},
-      entityCopy0: {},
-      upIndex: 0,
       addInfo: {},
       title: '鏂板',
       addInfo: {},
@@ -385,61 +281,14 @@
     }
   },
   mounted() {
-    // this.entityCopy = this.HaveJson(this.componentData.entity);
-    // this.entityCopy0 = this.HaveJson(this.componentData0.entity);
     this.getList()
     this.getList0()
     this.getFileList()
     this.selectEnumByCategory()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let add = false
-      let del = false
-      let up = false;
-      let out = false;
-      let submit = false
-      let ratify = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'addManageRecordIntervals') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageRecordIntervals') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportInManageRecordIntervals') {
-          up = true
-        }
-        if (power[i].menuMethod == 'exportOutManageRecordIntervals') {
-          out = true
-        }
-        if (power[i].menuMethod == 'submitManageRecordIntervalsTotal') {
-          submit = true
-        }
-        if (power[i].menuMethod == 'ratifyManageRecordIntervalsTotal') {
-          ratify = true
-        }
-      }
-      if (!ratify) {
-        this.componentData0.do.splice(3, 1)
-      }
-      if (!submit) {
-        this.componentData0.do.splice(2, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-      this.upPower = up
-    },
     // 鏂板
     openAdd() {
-      // this.$refs.ValueTable.openAddDia(this.$api.manageRecordIssueRecycle.addManageRecordIssueRecycle);
       this.addInfo = {}
       this.title = '鏂板'
       this.addDialogVisible = true;
@@ -449,9 +298,7 @@
       this.outLoading = true
       exportOutManageRecordIntervals(this.queryParams).then(res => {
         this.outLoading = false
-        if (res.code == 201) return this.$message.error('瀵煎嚭澶辫触')
-        let url = this.javaApi + 'word/' + res.message
-        this.$download.saveAs(url, "鏂囦欢瀹氭湡瀹℃煡璁板綍");
+        this.$download.saveAs(res.message, "鏂囦欢瀹氭湡瀹℃煡璁板綍");
       })
     },
     getList() {
@@ -534,7 +381,7 @@
       this.upLoading = false;
       if (response.code == 200) {
         this.$message.success('涓婁紶鎴愬姛');
-        this.refreshTable()()
+        this.refreshTable()
       } else {
         this.$message.error('涓婁紶澶辫触');
       }
@@ -580,9 +427,6 @@
       if (this.title == '鏂板') {
         addManageRecordIntervals(obj).then(res => {
           this.addLoading = false
-          if (res.code == 201) {
-            return
-          }
           this.addDialogVisible = false
           this.$message({
             type: 'success',
@@ -593,9 +437,6 @@
       } else {
         doManageRecordIntervals(obj).then(res => {
           this.addLoading = false
-          if (res.code == 201) {
-            return
-          }
           this.addDialogVisible = false
           this.$message({
             type: 'success',
@@ -622,9 +463,6 @@
         ratifyState: state
       }).then(res => {
         this.checkLoading = false
-        if (res.code == 201) {
-          return
-        }
         this.noCheckLoading = false
         this.$message({
           type: 'success',
@@ -647,8 +485,7 @@
       }
     },
     handleDown0(row) {
-      let url = this.javaApi + '/word/' + row.url
-      this.$download.saveAs(url, "鎵�鏈夋枃浠跺畾鏈熸鏌ヨ褰�");
+      this.$download.saveAs(row.url, "鎵�鏈夋枃浠跺畾鏈熸鏌ヨ褰�");
     },
     // 鎻愪氦
     handleSubmit(row) {
@@ -660,7 +497,6 @@
         submitManageRecordIntervalsTotal({
           id: row.id
         }).then(res => {
-          if (res.code === 201) return
           this.$message({
             type: 'success',
             message: '鎻愪氦鎴愬姛!'
@@ -682,7 +518,6 @@
       })
         .then(() => {
           delManageRecordIntervals({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refreshTable();
           });
@@ -694,17 +529,10 @@
 </script>
 
 <style scoped>
-.title {
-  height: 60px;
-  line-height: 60px;
-}
-
 .search {
-  background-color: #fff;
-  height: 40px;
+  height: 46px;
   display: flex;
-  align-items: center;
-  position: relative;
+  justify-content: space-between;
 }
 
 .search_thing {
@@ -723,21 +551,7 @@
   width: calc(100% - 110px);
 }
 
-.table {
-  margin-top: 10px;
-  background-color: #fff;
-  height: calc(100% - 60px - 140px);
-  padding: 20px;
-  padding-top: 0;
-}
-
 >>>.el-tabs__content {
   height: 100%;
-}
-
-.btns {
-  position: absolute;
-  right: 20px;
-  top: 5px;
 }
 </style>

--
Gitblit v1.9.3