fei
2025-10-14 fc98e676332302c4b835f8fa4ed42d72e177801f
增加了对应的代码
6个文件已修改
145 ■■■■ 已修改文件
src/api/system/records.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveExport/index.vue 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveManager/archiveMaterial/index.vue 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveManager/index.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveStatics/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveToUserStatistic/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/records.js
@@ -8,10 +8,10 @@
  })
}
//更新状态
export function updateStatusById(id)
export function updateStatusById(status, id)
{
  return request({
    url: '/system/records/updateStatusById/' + id,
    url: '/system/records/updateStatusById/' + status+"/"+id,
    method: 'get',
  //  data: data
  })
src/views/archiveExport/index.vue
@@ -217,7 +217,7 @@
      @pagination="getList"
    />
    <!--  查看数据按钮  -->
    <el-dialog :title="title" :visible.sync="open_check" width="800px" append-to-body>
    <el-dialog :title="title" :visible.sync="open_check" width="880px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
        <el-form-item label="档案号" >
@@ -238,7 +238,25 @@
      />
    </el-select>
  </el-col>
  <el-col :span="6">
     <el-col :span="6">
            <el-select
              v-model="form.recordZone"
              placeholder="选择地区"
              @change="handleRecordTypeChange"
              disabled
                           >
              <el-option
                v-for="item in zoneTypeOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
          </el-col>
  <el-col :span="4">
    <el-input
      v-model="form.recordYear"
      placeholder="输入年份"
@@ -616,8 +634,8 @@
  },
  methods: {
    handleExportInfo(row) {
      alert(row.id)
      alert(row.recordId)
      // alert(row.id)
      // alert(row.recordId)
    //  alert(row.docum)
      // archiveAllExport({'id':row.id}).then(response => {
      //   console.log(response)
@@ -814,12 +832,22 @@
  console.log("----=============--------------")
  this.form = response.data
  if(this.recordTypeOptions.length > 0) {
    alert(response.data.recordId)
      const recordParts = response.data.recordId.split('-')
      this.$set(this.form, 'recordType', recordParts[0])
            this.$set(this.form, 'recordZone', recordParts[1])
  if(recordParts.length==4)
      {
        this.$set(this.form, 'recordZone', recordParts[1])
      this.$set(this.form, 'recordYear', recordParts[2])
      this.$set(this.form, 'recordSeq', recordParts[3])
      }
      else
      {
            this.$set(this.form, 'recordYear', recordParts[1])
      this.$set(this.form, 'recordSeq', recordParts[2])
      }
    }
  this.open_check = true
  this.title = "查看档案记录"
src/views/archiveManager/archiveMaterial/index.vue
@@ -162,6 +162,10 @@
         <el-button type="primary" @click="resetForms">重置</el-button>
          <el-button @click="cancel">取 消</el-button>
                    <el-button type="warning" @click="cancelAuthUser">退回管理员</el-button>
        </div>
@@ -689,7 +693,10 @@
  <script>
  import { listMaterials, enload, getMaterials, delMaterials, addMaterials, updateMaterials } from "@/api/system/materials"
import { getToken } from '@/utils/auth'
import store from '@/store'
import { updateStatusById } from "@/api/system/records"
import {delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser"
  export default {
    name: "Materials",
    data() {
@@ -865,8 +872,10 @@
  this.$refs.upload.clearFiles();
  // 关闭上传对话框
  this.importDialogVisible = false;
  // 刷新列表数据
  this.getList();        // 这里可以调用接口关联上传的文件和当前记录
        // 刷新列表数据
        this.getList();        // 这里可以调用接口关联上传的文件和当前记录
        //更新档案的状态
      } else {
        // alert(234)
        console.log(response)
@@ -925,6 +934,10 @@
  if ((e.ctrlKey || e.metaKey) && e.key === 'd') {
    e.preventDefault();
    this.resetForms();
  }
  if ((e.ctrlKey || e.metaKey) && e.key === 'w') {
    e.preventDefault();
    this.closeCurrentTab();
  }
    },
      /** 查询【请填写功能名称】列表 */
@@ -1038,15 +1051,19 @@
        })
      },
      resetForms()
      {
    {
   this.reset()
          this.form.securityLevel = '普通' // 设置对话框表单默认值
          this.form.isSensitive = '否' // 设置对话框表单默认值
          this.form.isCanceled = '否' // 设置对话框表单默认值
          this.form.isAttachment = '否' // 设置对话框表单默认值
          this.form.isDiagram = '否' // 设置对话框表单默认值
          this.form.retentionPeriod = '永久' // 设置对话框表单默认值
      },
          this.form.securityLevel = '普通'
          this.form.isSensitive = '否'
          this.form.isCanceled = '否'
          this.form.isAttachment = '否'
          this.form.isDiagram = '否'
          this.form.retentionPeriod = '永久'
    },
    closeCurrentTab() {
      this.$store.dispatch('tagsView/delView', this.$route)
      this.$router.push('/archiveManager/infoManager')
    },
      submitForm()
      {
        console.log(this.form)
@@ -1133,7 +1150,33 @@
    this.$message.error('导入失败: ' + (error.message || '未知错误'));
  });
    }
    },
     /** 取消授权按钮操作 */
    cancelAuthUser(row) {
      const recordId =  this.recordId
      var userId = store.state.user.id
      var _this = this
      // alert(userId)
      // alert(userId)
      // 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(() => {})
    },
    }
  }
  </script>
src/views/archiveManager/index.vue
@@ -231,7 +231,7 @@
        >导出</el-button>
      </el-col>
          <el-col :span="1.5">
          <el-col v-if="userId!=1" :span="1.5">
        <el-button
          type="warning"
          plain
@@ -314,7 +314,7 @@
      <el-table-column label="备注" align="center" prop="remarks" />
      <el-table-column label="历史相关发文号" align="center" prop="historicalReferenceNumber" />
     
           <el-table-column label="状态" align="center" prop="recordStatus">
           <el-table-column label="状态" align="center" width="105" prop="recordStatus">
  <template slot-scope="scope">
    <el-button :type="scope.row.recordStatus === '未录入' ? 'danger' : 'success'" size="mini">
      {{ scope.row.recordStatus }}
@@ -342,7 +342,7 @@
            @click="handleCheck(scope.row)"
          >查看</el-button>
    <el-button
          v-if="userId!==1&&scope.row.ownData"
          v-if="userId!==1&&scope.row.ownData&&scope.row.recordStatus!=='录入完成'"
            size="mini"
            type="text"
@@ -1008,7 +1008,8 @@
    {
   //   alert(row.id)
      var id = row.id
      updateStatusById(id).then(response=>{
      var status = '录入完成'
      updateStatusById(status, id).then(response=>{
        this.$modal.msgSuccess("提交成功")
        this.getList()
      })
@@ -1028,7 +1029,7 @@
  if(this.recordTypeOptions.length > 0) {
      const recordParts = response.data.recordId.split('-')
      this.$set(this.form, 'recordType', recordParts[0])
      if(this.recordTypeOptions.length==4)
      if(recordParts.length==4)
      {
        this.$set(this.form, 'recordZone', recordParts[1])
@@ -1085,7 +1086,7 @@
  if(this.recordTypeOptions.length > 0) {
      const recordParts = response.data.recordId.split('-')
      this.$set(this.form, 'recordType', recordParts[0])
      if(this.recordTypeOptions.length==4)
      if(recordParts.length==4)
      {
            this.$set(this.form, 'recordZone', recordParts[1])
@@ -1150,7 +1151,8 @@
    /** 分配用户操作 */
    handleAuthUser: function(row) {
      const roleId = 2
      var archiveRecordsId = row.recordId
     // row.i
      var archiveRecordsId = row.id
   //   alert(roleId)
      this.$router.push("/archiveManager/infoManagerAu/user/" + roleId+"/"+archiveRecordsId)
    },
src/views/archiveStatics/index.vue
@@ -59,7 +59,11 @@
      <el-table-column label="未完成案卷数" align="center" prop="unfinished" />
      <el-table-column label="未上传附件" align="center" prop="unwf" />
            <el-table-column label="待修改" align="center" prop="dxg" />
                  <el-table-column label="未完成案卷数" align="center" prop="unfinished" />
      <el-table-column label="完成百分比" align="center">
        <template slot-scope="scope">
          <el-progress 
@@ -311,7 +315,7 @@
        right: 10,
        top: 'center'
      },
      color: ['#67C23A', '#F56C6C'],
      color: ['#67C23A','#F56C6C','#409EFF','#E6A23C'], // 绿、红、蓝、橙四色
      series: [{
        name: '完成情况',
        type: 'pie',
@@ -340,7 +344,9 @@
          [{ value: 1, name: '暂无数据', itemStyle: { color: '#909399' }}] :
          [
            { value: row.finished, name: '已完成' },
            { value: row.cnt - row.finished, name: '未完成' }
            { value: row.unfinished, name: '未完成' },
            { value: row.unwf, name: '未上传附件' },
            { value: row.dxg, name: '待修改' }
          ]
      }]
    };
src/views/archiveToUserStatistic/index.vue
@@ -29,6 +29,10 @@
      <el-table-column label="未完成案卷数" align="center" prop="swlr" />
      <el-table-column label="未录入附件" align="center" prop="wlrf" />
      <el-table-column label="待修改" align="center" prop="dxg" />
      <el-table-column label="完成百分比" align="center">
        <template slot-scope="scope">
          <el-progress 
@@ -160,7 +164,7 @@
        right: 10,
        top: 'center'
      },
      color: ['#67C23A', '#F56C6C'],
      color: ['#67C23A','#F56C6C','#409EFF','#E6A23C'], // 绿、红、蓝、橙四色
      series: [{
        name: '完成情况',
        type: 'pie',
@@ -189,7 +193,9 @@
          [{ value: 1, name: '暂无数据', itemStyle: { color: '#909399' }}] :
          [
            { value: row.ylr, name: '已完成' },
            { value: row.cnt - row.ylr, name: '未完成' }
            { value: row.swlr, name: '未完成' },
                 { value: row.wlrf, name: '未录入附件' },
               { value: row.dxg, name: '待修改' }
          ]
      }]
    };