fei
1 天以前 32a362e542715285088026554a922b999e00b137
增加了相关代码
4个文件已修改
103 ■■■■ 已修改文件
src/api/system/annotation.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/signature.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveManager/archiveMaterial/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveManager/index.vue 76 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/annotation.js
@@ -42,3 +42,11 @@
    method: 'delete'
  })
}
export function selectAllAnn(data) {
  return request({
    url: '/system/annotation/listAll',
    method: 'get',
    data: data
  })
}
src/api/system/signature.js
@@ -42,3 +42,12 @@
    method: 'delete'
  })
}
export function selectAllSig(data) {
  return request({
    url: '/system/signature/listAll',
    method: 'get',
    data: data
  })
}
src/views/archiveManager/archiveMaterial/index.vue
@@ -1656,14 +1656,14 @@
          this.download('system/materials/exportDir', {
            ids: this.ids.join(','),
         //   exportType: 'selected'
          }, `materiaDir_selected_${new Date().getTime()}.xls`)
          }, this.recordStrId+ `  卷内目录.xls`)
        } else {
          // 显示导出全部数据的提示
          this.$message.info('正在导出符合当前查询条件的所有数据...');
          // 没有选中行时,导出当前查询条件的数据
          this.download('system/materials/exportDir', {
            ...this.queryParams
          }, `materiaDir_${new Date().getTime()}.xls`)
          }, this.recordStrId+`  卷内目录.xls`)
        }
      },
      /** 导出按钮操作 - 支持导出选中行或全部数据 */
@@ -1676,14 +1676,14 @@
          this.download('system/materials/export', {
            ids: this.ids.join(','),
         //   exportType: 'selected'
          }, `materials_selected_${new Date().getTime()}.xls`)
          }, this.recordStrId+`  电子文件信息.xls`)
        } else {
          // 显示导出全部数据的提示
          this.$message.info('正在导出符合当前查询条件的所有数据...');
          // 没有选中行时,导出当前查询条件的数据
          this.download('system/materials/export', {
            ...this.queryParams
          }, `materials_${new Date().getTime()}.xls`)
          }, this.recordStrId+`  电子文件信息.xls`)
        }
      },
@@ -1738,7 +1738,7 @@
      // alert(userId)
      // alert(this.queryParams.archiveRecordsId)
      // alert(row.sysUser.userName)
      this.$modal.confirm('确认要取消该用户的"' + '' + '"授权吗?').then(function() {
      this.$modal.confirm('确认要取消该用户的授权吗?').then(function() {
        return delArchiverecordstouserByReIdAndUid({  recordId: recordId, userId: userId   })
      }).then(() => {
      //  this.getList()
src/views/archiveManager/index.vue
@@ -327,6 +327,17 @@
          v-hasPermi="['system:materials:edit']"
        >批量授权</el-button>
      </el-col>
      <el-col v-if="userId==1" :span="1.5">
           <el-button
             type="warning"
             plain
             icon="el-icon-download"
             size="mini"
             @click="handleGivePermission"
             v-hasPermi="['system:materials:edit']"
           >批量取消授权</el-button>
         </el-col>
        <el-col v-if="userId==1" :span="1.5">
        <el-button
          type="warning"
@@ -438,6 +449,10 @@
                  @click="viewAndPrintExcel(scope.row)"
                  title="查看并打印Excel文件"
                >打印预整理清单</el-button>
                <el-button   icon="el-icon-edit" size="mini"
                v-if="userId!==1&&scope.row.ownData" type="text" @click="cancelAuthUser(scope.row)">
                  退回管理员</el-button>
          <el-button
                v-if="userId!==1&&scope.row.ownData"
@@ -552,8 +567,8 @@
              <div class="option-label">选择注解:</div>
              <div class="annotation-options">
              <label v-for="(annotation, index) in excelOptions.selectedAnnotations" :key="index" class="signature-checkbox">
                              <input type="checkbox" v-model="excelOptions.subselectedAnnotations" :value="index">
                              <span>{{ annotation }}
                              <input type="checkbox" v-model="excelOptions.subselectedAnnotations" :value="annotation.srt">
                              <span>{{ annotation.name }}
                              </span>
              </label>
              </div>
@@ -565,8 +580,8 @@
              <div class="signature-options">
                <div class="signature-checkboxes">
                 <label v-for="(signature, index) in excelOptions.selectedSignatures" :key="index" class="signature-checkbox">
                                 <input type="checkbox" v-model="excelOptions.subselectedSignatures" :value="index">
                                 <span>{{ signature }}</span>
                                 <input type="checkbox" v-model="excelOptions.subselectedSignatures" :value="signature.sot">
                                 <span>{{ signature.sigaName }}</span>
                  </label>
@@ -977,7 +992,7 @@
<script>
import VueOfficeExcel from '@vue-office/excel'
import '@vue-office/excel/lib/index.css'
import store from '@/store'
import axios from 'axios'
import { getToken } from '@/utils/auth'
import { enload, getIdFileCounts,batchSubmitRecords,updateStatusById,listRecords,getMaxId, getRecords, delRecords, addRecords, updateRecords } from "@/api/system/records"
@@ -986,8 +1001,9 @@
import { listPlaceName, listAllPlaceName } from "@/api/system/placeName"
import { judge,getFileCount } from "@/api/system/materials"
import { UserRoleIdList,unallocatedUserList, authUserSelectAll } from "@/api/system/role"
import {authManyRecordsToUsers}  from "@/api/system/archiverecordstouser"
import {authManyRecordsToUsers, delArchiverecordstouserByReIdAndUid}  from "@/api/system/archiverecordstouser"
import { selectAllSig } from "@/api/system/signature"
import { selectAllAnn } from "@/api/system/annotation"
export default {
     components: {
        VueOfficeExcel
@@ -1156,7 +1172,8 @@
    this.fetchProjectOptions()
    this.fetchProjectCompanyOptions()
this.getList()
    this.getSigInfo();
    this.getAnnInfo();
  },
  watch: {
    'form.constructionUnit': {
@@ -1189,6 +1206,49 @@
    }
  },
  methods: {
    getAnnInfo(){
      selectAllAnn({}).then(response=>{
        this.excelOptions.selectedAnnotations = response.data
      })
    },
    getSigInfo(){
      selectAllSig({}).then(response => {
        console.log(']]][[[[[[[[[]]]]]]]]]')
        console.log(response)
        this.excelOptions.selectedSignatures= response.data
        console.log(this.excelOptions.selectedSignatures)
      })
    },
    /** 取消授权按钮操作 */
      cancelAuthUser(row) {
        const recordId =  row.id
        var userId = store.state.user.id
        var _this = this
        // alert(userId)
        alert(userId)
        alert(recordId)
        // alert(this.queryParams.archiveRecordsId)
        // alert(row.sysUser.userName)
        this.$modal.confirm('确认要取消该用户的授权吗?').then(function() {
          return delArchiverecordstouserByReIdAndUid({  recordId: recordId, userId: userId   })
        }).then(() => {
        //  this.getList()
        //修改案卷的状态
    //  var id = row.id
        var status = '未上传附件'
        updateStatusById(status, recordId, '退回管理员').then(response=>{
        //  this.$modal.msgSuccess("提交成功")
         this.getList()
        // _this.$store.dispatch('tagsView/delView', this.$route);
        //   _this.$router.push('/archiveManager/infoManager')
          _this.$modal.msgSuccess("取消授权成功")
        })
        }).catch(() => {})
      },
    handleSearch()
    {
      this.openSearch = true;