| | |
| | | }) |
| | | } |
| | | //更新状态 |
| | | 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 |
| | | }) |
| | |
| | | @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="档案号" > |
| | | |
| | |
| | | /> |
| | | </el-select> |
| | | </el-col> |
| | | |
| | | <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="输入年份" |
| | |
| | | }, |
| | | 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) |
| | |
| | | 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]) |
| | | |
| | | 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 = "查看档案记录" |
| | | }) |
| | |
| | | <el-button type="primary" @click="resetForms">重置</el-button> |
| | | |
| | | <el-button @click="cancel">取 消</el-button> |
| | | |
| | | |
| | | <el-button type="warning" @click="cancelAuthUser">退回管理员</el-button> |
| | | |
| | | </div> |
| | | |
| | | |
| | |
| | | <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() { |
| | |
| | | this.importDialogVisible = false; |
| | | // 刷新列表数据 |
| | | this.getList(); // 这里可以调用接口关联上传的文件和当前记录 |
| | | //更新档案的状态 |
| | | |
| | | } else { |
| | | // alert(234) |
| | | console.log(response) |
| | |
| | | if ((e.ctrlKey || e.metaKey) && e.key === 'd') { |
| | | e.preventDefault(); |
| | | this.resetForms(); |
| | | } |
| | | if ((e.ctrlKey || e.metaKey) && e.key === 'w') { |
| | | e.preventDefault(); |
| | | this.closeCurrentTab(); |
| | | } |
| | | }, |
| | | /** 查询【请填写功能名称】列表 */ |
| | |
| | | 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() |
| | | { |
| | |
| | | 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> |
| | |
| | | >导出</el-button> |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-col v-if="userId!=1" :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | |
| | | <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 }} |
| | |
| | | @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" |
| | |
| | | { |
| | | // alert(row.id) |
| | | var id = row.id |
| | | updateStatusById(id).then(response=>{ |
| | | var status = '录入完成' |
| | | updateStatusById(status, id).then(response=>{ |
| | | this.$modal.msgSuccess("提交成功") |
| | | this.getList() |
| | | }) |
| | |
| | | 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]) |
| | | |
| | |
| | | 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]) |
| | | |
| | |
| | | /** 分配用户操作 */ |
| | | 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) |
| | | }, |
| | |
| | | |
| | | |
| | | |
| | | <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 |
| | |
| | | right: 10, |
| | | top: 'center' |
| | | }, |
| | | color: ['#67C23A', '#F56C6C'], |
| | | color: ['#67C23A','#F56C6C','#409EFF','#E6A23C'], // 绿、红、蓝、橙四色 |
| | | series: [{ |
| | | name: '完成情况', |
| | | type: 'pie', |
| | |
| | | [{ 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: '待修改' } |
| | | ] |
| | | }] |
| | | }; |
| | |
| | | |
| | | |
| | | <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 |
| | |
| | | right: 10, |
| | | top: 'center' |
| | | }, |
| | | color: ['#67C23A', '#F56C6C'], |
| | | color: ['#67C23A','#F56C6C','#409EFF','#E6A23C'], // 绿、红、蓝、橙四色 |
| | | series: [{ |
| | | name: '完成情况', |
| | | type: 'pie', |
| | |
| | | [{ 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: '待修改' } |
| | | ] |
| | | }] |
| | | }; |