| | |
| | | // } |
| | | }) |
| | | } |
| | | //插入文件 |
| | | export function insertFile(recordId, maxPageNumber) { |
| | | return request({ |
| | | url: '/system/materials/addMiddleRecords/'+recordId+'/'+maxPageNumber, |
| | | method: 'get', |
| | | |
| | | }) |
| | | } |
| | |
| | | }, |
| | | //案卷详细信息管理 |
| | | { |
| | | path: 'archiveMaterialManager/:recordId', |
| | | path: 'archiveMaterialManager/:recordId/:pageCount', |
| | | component: () => import('@/views/archiveManager/archiveMaterial/index'), |
| | | name: 'ArchiveMaterialManager', |
| | | meta: { title: '详细信息', activeMenu: '/archiveManager/infoManager' } |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getFileCount,islegal, listMaterials, enload, getMaterials, delMaterials, addMaterials, updateMaterials } from "@/api/system/materials" |
| | | import {insertFile, getFileCount,islegal, 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" |
| | |
| | | name: "Materials", |
| | | data() { |
| | | return { |
| | | totalPageCount: 0, |
| | | // 记录元素初始位置和状态 |
| | | originalOffsetLeft: 0, |
| | | originalWidth: 0, |
| | |
| | | created() { |
| | | //const roleId = this.$route.params && this.$route.params.roleId |
| | | const recordId = this.$route.params && this.$route.params.recordId |
| | | |
| | | this.totalPageCount = this.$route.params && this.$route.params.pageCount |
| | | //alert(this.totalPageCount) |
| | | //alert(recordId) |
| | | this.recordId = recordId; |
| | | this.uploadUrl = process.env.VUE_APP_BASE_API +'/system/materials/upload/'+this.recordId |
| | |
| | | }, |
| | | // 打开导入对话框 |
| | | handleImport() { |
| | | //生成新的记录 |
| | | insertFile(this.recordId, this.totalPageCount).then(response => { |
| | | console.log(response) |
| | | // alert(3245) |
| | | }) |
| | | this.importDialogVisible = true |
| | | }, |
| | | // 文件移除 |
| | |
| | | islegal(this.recordId).then(response => { |
| | | console.log(response.data) |
| | | var res = response.data.res |
| | | |
| | | //alert(response.data.total) |
| | | if(fileCount!==response.data.total) |
| | | if(fileCount!=this.totalPageCount) |
| | | { |
| | | this.$modal.msgWarning('请选择与记录数一致的文件') |
| | | return |
| | |
| | | console.error('获取项目名称列表失败:', error) |
| | | } |
| | | }, |
| | | |
| | | |
| | | async fetchProjectCompanyOptions() { |
| | | try { |
| | | const response = await listAllProjectName() |
| | |
| | | console.log("--------------") |
| | | // 创建queryParams的副本,避免直接修改原对象 |
| | | const queryParams = { ...this.queryParams } |
| | | |
| | | |
| | | // 处理类别号搜索 |
| | | if ((queryParams.categoryType || queryParams.categoryZone || queryParams.categoryYear) && (queryParams.categorySeq || queryParams.categorySeqEnd)) { |
| | | // 构建基础部分(前三个字段保持一致) |
| | |
| | | if (queryParams.categoryZone) baseParts.push(queryParams.categoryZone) |
| | | if (queryParams.categoryYear) baseParts.push(queryParams.categoryYear) |
| | | const baseCategory = baseParts.join('-') |
| | | |
| | | |
| | | // 构建开始类别号 |
| | | if (queryParams.categorySeq) { |
| | | queryParams.categoryNumberStart = baseCategory + '-' + queryParams.categorySeq |
| | | } |
| | | |
| | | |
| | | // 构建结束类别号 |
| | | if (queryParams.categorySeqEnd) { |
| | | queryParams.categoryNumberEnd = baseCategory + '-' + queryParams.categorySeqEnd |
| | |
| | | delete queryParams.categorySeq |
| | | delete queryParams.categorySeqEnd |
| | | } |
| | | |
| | | |
| | | listRecords(queryParams).then(response => { |
| | | |
| | | console.log(response) |
| | |
| | | var mid = row.id |
| | | const roleId = 2 |
| | | // alert(mid) |
| | | |
| | | var recordId = mid |
| | | var pageCount = row.pageCount |
| | | // this.$router.push("/archiveManager/infoManagerAu/user/" + roleId+"/"+recordId) |
| | | this.$router.push("/archiveManager/infoManagerAu/archiveMaterialManager/" + recordId) |
| | | this.$router.push("/archiveManager/infoManagerAu/archiveMaterialManager/" + recordId+"/"+pageCount) |
| | | |
| | | }, |
| | | // |