diff --git a/public/template/rsRecord.xls b/public/template/rsRecord.xls new file mode 100644 index 0000000..2f80c76 Binary files /dev/null and b/public/template/rsRecord.xls differ diff --git a/public/template/tsRecord.xls b/public/template/tsRecord.xls new file mode 100644 index 0000000..9750daf Binary files /dev/null and b/public/template/tsRecord.xls differ diff --git a/src/const/crud/archives/rsArchiveRecordinfo.js b/src/const/crud/archives/rsArchiveRecordinfo.js new file mode 100644 index 0000000..eee25f3 --- /dev/null +++ b/src/const/crud/archives/rsArchiveRecordinfo.js @@ -0,0 +1,310 @@ +export const rsTableOption = { + reserveSelection:false, + selection:true, + index:true, + addTitle:'人事档案>新增', + editTitle:'人事档案>编辑', + indexFixed:false, + dialogDrag: true, + border: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menuType: 'text', + menuWidth: '150px', + excelBtn: false, + printBtn: false, + addBtn:false, + viewBtn: false, + editBtn:false, + delBtn:false, + menu:true, + searchSize: 'mini', + search:true, + column: [ + { + label: '状态', + prop: 'status', + type: 'select', + display:false, + dicUrl:process.env.VUE_APP_BASE_API+'/system/dict/data/type/record_status', + props:{ + label:'dictLabel', + value:'dictValue' + }, + }, + { + label: '退回理由', + prop: 'rejectReason', + editDisplay:false, + addDisplay:false, + hide:true, + disabled:true, + viewDisplay:false, + width: '150px' + }, + { + label: 'PK', + prop: 'id', + hide:true, + editDisplay:false, + addDisplay:false, + display:false, + disabled:true, + showColumn:false, + }, + { + label: '档号', + prop: 'fileNum', + search: true, + editDisplay:false, + addDisplay:false, + display:false, + // rules: [{ + // required: true, + // message: '请输入档号', + // trigger: 'change' + // }] + width:'150px' + }, + { + label: '文号', + prop: 'received_number', + search:true, + rules: [{ + required: true, + message: '请输入文号', + trigger: 'change' + }], + width:'150px' + }, + { + label: '题名', + prop: 'boxName', + search:true, + rules: [{ + required: true, + message: '请输入文件题名', + trigger: 'change' + }], + width:'300px' + }, + { + label: '归档时间', + prop: 'archive_date', + type:'date', + format: "yyyyMMdd", + valueFormat: "yyyy-MM-dd", + rules: [{ + required: true, + message: '请选择归档时间', + trigger: 'change' + }], + width:'150px' + }, + { + label: '卷', + prop: 'caseNum', + width: '120px', + editDisplay:false, + addDisplay:false, + display:false, + }, + { + label: '密级', + prop: 'secretLevel', + type: 'select', + dicUrl: process.env.VUE_APP_BASE_API+'/system/dict/data/type/pro_secret_level', + rules: [{ + required: true, + message: '请选择密级', + trigger: 'change' + }], + props:{ + label:'dictLabel', + value:'dictValue' + }, + }, + { + label: '保管期限', + prop: 'storageTime', + type: 'select', + dicUrl: process.env.VUE_APP_BASE_API+'/system/dict/data/type/storage_time', + props:{ + label:'dictLabel', + value:'dictValue' + }, + rules: [{ + required: true, + message: '请选择保管期限', + trigger: 'change' + }], + }, + { + label: '档案类别', + prop: 'archiveCategory', + type:'select', + dicUrl:process.env.VUE_APP_BASE_API+'/archives/categoryInfo/listCategoryInfo', + props:{ + label:'name', + value:'code' + }, + + disabled:true + }, + { + label: '年度', + prop: 'year', + rules: [{ + required: true, + message: '请输入年度', + trigger: 'change' + }], + value:new Date().getFullYear() + }, + { + label: '备注', + prop: 'remark', + search: true + }, + ] +} + +export const rsFileInfo = { + reserveSelection:false, + selection:false, + index:true, + indexFixed:false, + dialogDrag: true, + border: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menuType: 'text', + excelBtn: false, + printBtn: false, + menuWidth: '150px', + addBtn:false, + viewBtn: false, + editBtn:false, + delBtn:false, + menu:true, + searchSize: 'mini', + search:true, + column: [ + { + label: '状态', + prop: 'status', + type: 'select', + display:false, + dicUrl: process.env.VUE_APP_BASE_API+'/system/dict/data/type/record_status', + props:{ + label:'dictLabel', + value:'dictValue' + }, + }, + { + label: 'PK', + prop: 'id', + hide:true, + editDisplay:false, + addDisplay:false, + display:false, + disabled:true, + showColumn:false, + }, + { + label: '文号', + prop: 'received_number', + search:true, + width:'150px' + }, + { + label: '题名', + prop: 'boxName', + search:true, + rules: [{ + required: true, + message: '请输入文件题名', + trigger: 'change' + }], + width:'300px' + }, + { + label: '归档时间', + prop: 'archive_date', + type:'date', + format: "yyyyMMdd", + valueFormat: "yyyy-MM-dd", + width:'150px' + }, + { + label: '卷', + prop: 'caseNum', + width: '120px', + editDisplay:false, + addDisplay:false, + display:false, + }, + { + label: '密级', + prop: 'secretLevel', + type: 'select', + dicUrl: process.env.VUE_APP_BASE_API+'/system/dict/data/type/pro_secret_level', + props:{ + label:'dictLabel', + value:'dictValue' + }, + }, + { + label: '保管期限', + prop: 'storageTime', + type: 'select', + dicUrl: process.env.VUE_APP_BASE_API+'/system/dict/data/type/storage_time', + props:{ + label:'dictLabel', + value:'dictValue' + }, + rules: [{ + required: true, + message: '请选择保管期限', + trigger: 'change' + }], + }, + { + label: '档案类别', + prop: 'archiveCategory', + type:'select', + dicUrl:process.env.VUE_APP_BASE_API+'/archives/categoryInfo/listCategoryInfo', + props:{ + label:'name', + value:'code' + }, + + disabled:true + }, + { + label: '年度', + prop: 'year', + rules: [{ + required: true, + message: '请输入年度', + trigger: 'change' + }], + value:new Date().getFullYear() + }, + { + label: '备注', + prop: 'remark', + search: true + }, + ] +} + + + + + + diff --git a/src/const/crud/archives/tsArchiveRecordinfo.js b/src/const/crud/archives/tsArchiveRecordinfo.js new file mode 100644 index 0000000..01b60ce --- /dev/null +++ b/src/const/crud/archives/tsArchiveRecordinfo.js @@ -0,0 +1,304 @@ +export const tsTableOption = { + reserveSelection:false, + selection:true, + index:true, + addTitle:'图书档案>新增', + editTitle:'图书档案>编辑', + indexFixed:false, + dialogDrag: true, + border: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menuType: 'text', + menuWidth: '150px', + excelBtn: false, + printBtn: false, + addBtn:false, + viewBtn: false, + editBtn:false, + delBtn:false, + menu:true, + searchSize: 'mini', + search:true, + column: [ + { + label: '状态', + prop: 'status', + type: 'select', + display:false, + dicUrl:process.env.VUE_APP_BASE_API+'/system/dict/data/type/record_status', + props:{ + label:'dictLabel', + value:'dictValue' + }, + }, + { + label: '退回理由', + prop: 'rejectReason', + editDisplay:false, + addDisplay:false, + hide:true, + disabled:true, + viewDisplay:false, + width: '150px' + }, + { + label: 'PK', + prop: 'id', + hide:true, + editDisplay:false, + addDisplay:false, + display:false, + disabled:true, + showColumn:false, + }, + { + label: '档号', + prop: 'fileNum', + search: true, + editDisplay:false, + addDisplay:false, + display:false, + width:'150px' + }, + { + label: '题名', + prop: 'boxName', + search:true, + rules: [{ + required: true, + message: '请输入文件题名', + trigger: 'change' + }], + width:'300px' + }, + { + label: '作者', + prop: 'ownerName', + search:true, + rules: [{ + required: true, + message: '请输入作者', + trigger: 'change' + }], + width:'300px' + }, + { + label: '出版社', + prop: 'issuingUnit', + //search:true, + rules: [{ + required: true, + message: '请输入出版社', + trigger: 'change' + }], + width:'300px' + }, + { + label: '出版时间', + prop: 'descriptionTime', + type:'date', + format: "yyyyMMdd", + valueFormat: "yyyy-MM-dd", + rules: [{ + required: true, + message: '请选择出版时间', + trigger: 'change' + }], + width:'150px' + }, + { + label: '图书类别', + prop: 'archiveScope', + type: 'tree', + filter:false, + parent:false, + props: { + label: 'label', + value: 'id' + }, + dicUrl: process.env.VUE_APP_BASE_API+'/archives/categoryInfo/treeSonselect?code=TS', + rules: [{ + required: true, + message: '请选择图书类别', + trigger: 'change' + }], + }, + { + label: '图书载体', + prop: 'type', + type: 'select', + dicUrl: process.env.VUE_APP_BASE_API+'/system/dict/data/type/pro_book_type', + props:{ + label:'dictLabel', + value:'dictValue' + }, + }, + { + label: '年度', + prop: 'year', + rules: [{ + required: true, + message: '请输入年度', + trigger: 'change' + }], + value:new Date().getFullYear() + }, + { + label: '册/套', + prop: 'number' + }, + ] +} + +export const tsFileInfo = { + reserveSelection:false, + selection:false, + index:true, + indexFixed:false, + dialogDrag: true, + border: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menuType: 'text', + excelBtn: false, + printBtn: false, + menuWidth: '150px', + addBtn:false, + viewBtn: false, + editBtn:false, + delBtn:false, + menu:true, + searchSize: 'mini', + search:true, + column: [ + { + label: '状态', + prop: 'status', + type: 'select', + display:false, + dicUrl: process.env.VUE_APP_BASE_API+'/system/dict/data/type/record_status', + props:{ + label:'dictLabel', + value:'dictValue' + }, + }, + { + label: 'PK', + prop: 'id', + hide:true, + editDisplay:false, + addDisplay:false, + display:false, + disabled:true, + showColumn:false, + }, + { + label: '档号', + prop: 'fileNum', + search: true, + editDisplay:false, + addDisplay:false, + display:false, + width:'150px' + }, + { + label: '题名', + prop: 'boxName', + search:true, + rules: [{ + required: true, + message: '请输入文件题名', + trigger: 'change' + }], + width:'300px' + }, + { + label: '作者', + prop: 'ownerName', + search:true, + rules: [{ + required: true, + message: '请输入作者', + trigger: 'change' + }], + width:'300px' + }, + { + label: '出版社', + prop: 'issuingUnit', + //search:true, + rules: [{ + required: true, + message: '请输入出版社', + trigger: 'change' + }], + width:'300px' + }, + { + label: '出版时间', + prop: 'descriptionTime', + type:'date', + format: "yyyyMMdd", + valueFormat: "yyyy-MM-dd", + rules: [{ + required: true, + message: '请选择出版时间', + trigger: 'change' + }], + width:'150px' + }, + { + label: '图书类别', + prop: 'archiveScope', + type: 'tree', + filter:false, + parent:false, + props: { + label: 'label', + value: 'id' + }, + dicUrl: process.env.VUE_APP_BASE_API+'/archives/categoryInfo/treeSonselect?code=TS', + rules: [{ + required: true, + message: '请选择图书类别', + trigger: 'change' + }], + }, + { + label: '图书载体', + prop: 'type', + type: 'select', + dicUrl: process.env.VUE_APP_BASE_API+'/system/dict/data/type/pro_book_type', + props:{ + label:'dictLabel', + value:'dictValue' + }, + }, + { + label: '年度', + prop: 'year', + search:true, + rules: [{ + required: true, + message: '请输入年度', + trigger: 'change' + }], + value:new Date().getFullYear() + }, + { + label: '册/套', + prop: 'number' + }, + ] +} + + + + + + diff --git a/src/utils/util.js b/src/utils/util.js index 9394cec..efd007b 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -10,6 +10,8 @@ import {htyTableOption} from "@/const/crud/archives/htyArchiveRecordinfo"; import {jyTableOption} from "@/const/crud/archives/jyArchiveRecordinfo"; import {zxTableOption} from "@/const/crud/archives/zxArchiveRecordinfo"; import {yjTableOption} from "@/const/crud/archives/yjArchiveRecordinfo"; +import {rsTableOption} from "@/const/crud/archives/rsArchiveRecordinfo"; +import {tsTableOption} from "@/const/crud/archives/tsArchiveRecordinfo"; import {commonTableOption} from "@/const/crud/archives/commonArchiveRecordinfo"; @@ -425,6 +427,10 @@ export const getOptionUtils = (data) => { return zxTableOption; }else if(data=='DAYJJL'){ return yjTableOption; + }else if(data=='RS'){ + return rsTableOption; + }else if (data=='TS'){ + return tsTableOption; }else{ return commonTableOption; } diff --git a/src/views/archives/archiveFileInfo/index.vue b/src/views/archives/archiveFileInfo/index.vue index d4a7e3d..ee94f85 100644 --- a/src/views/archives/archiveFileInfo/index.vue +++ b/src/views/archives/archiveFileInfo/index.vue @@ -119,6 +119,8 @@ import {htyFileInfo} from "@/const/crud/archives/htyArchiveRecordinfo"; import {jyFileInfo} from "@/const/crud/archives/jyArchiveRecordinfo"; import {zxFileInfo} from "@/const/crud/archives/zxArchiveRecordinfo"; import {yjFileInfo} from "@/const/crud/archives/yjArchiveRecordinfo"; +import {rsFileInfo} from "@/const/crud/archives/rsArchiveRecordinfo"; +import {tsFileInfo} from "@/const/crud/archives/tsArchiveRecordinfo"; import {commonFileInfo, commonTableOption} from "@/const/crud/archives/commonArchiveRecordinfo"; import store from "@/store"; import {fileUploadTableOption} from "@/const/crud/archives/fileUploadList"; @@ -541,6 +543,10 @@ export default { }else if (this.$props.archiveCategory == 'DAYJJL') { return yjFileInfo; + }else if (this.$props.archiveCategory == 'RS'){ + return rsFileInfo; + }else if (this.$props.archiveCategory == 'TS'){ + return tsFileInfo; }else{ return commonFileInfo; } diff --git a/src/views/archives/commonComponent/storageTime.vue b/src/views/archives/commonComponent/storageTime.vue index e43275a..b1da78c 100644 --- a/src/views/archives/commonComponent/storageTime.vue +++ b/src/views/archives/commonComponent/storageTime.vue @@ -12,9 +12,15 @@
+ $props.archiveScopeValue=='ZXXM'||$props.archiveScopeValue=='ZX'||$props.archiveScopeValue=='TS'">
- +
+ +
+
+ +
全部 @@ -23,6 +29,18 @@
+ + + + + + + + + + + + @@ -68,6 +86,7 @@ export default { init(){ listSonselect({'code':this.$props.archiveScopeValue==null?'WS':this.$props.archiveScopeValue}).then(res=>{ this.archiveScopeList=res.data + console.log(this.archiveScopeList) }) } } diff --git a/src/views/archives/importRecord/index.vue b/src/views/archives/importRecord/index.vue index 2b3921d..4604466 100644 --- a/src/views/archives/importRecord/index.vue +++ b/src/views/archives/importRecord/index.vue @@ -405,6 +405,12 @@ export default { }else if(code=='DAYJJL'){ this.downloadName='档案移交记录库导入模板.xls' this.downloadUrl="/template/ddyjRecord.xls" + }else if(code=='RS'){ + this.downloadName='人事档案导入模板.xls' + this.downloadUrl="/template/rsRecord.xls" + } else if (code=='TS'){ + this.downloadName='图书档案导入模板.xls' + this.downloadUrl="/template/tsRecord.xls" }else{ this.downloadName='年鉴档案导入模板.xls' this.downloadUrl="/template/commonRecord.xls" diff --git a/src/views/archives/preFiling/index.vue b/src/views/archives/preFiling/index.vue index daca8d9..92396b1 100644 --- a/src/views/archives/preFiling/index.vue +++ b/src/views/archives/preFiling/index.vue @@ -186,20 +186,48 @@ export default { }, methods: { changeArchiveScopeValue(val){ - if (this.code='ZX'){ + console.log(1111) + if (this.code=='ZX'){ if (val!=null&&val!='-1'){ this.recordType=val; }else { this.recordType = null; } - }else { + } + // else if (this.code =='TS'){ + // + // if (val!=null&&val!='-1'){ + // this.recordType=val; + // }else { + // this.recordType = null; + // } + // } + else { if (val!=null&&val!='-1'){ + this.archiveScopeValue=val; }else{ this.archiveScopeValue=null; } } + }, + //图书类目选择 + changeArchiveScopeValue1(val){ + if (this.code='TS'){ + if (val!=null&&val!='-1'){ + this.recordType=val; + }else { + this.recordType = null; + } + }else { + if (val!=null&&val!='-1'){ + this.archiveScopeValue1=val; + }else{ + this.archiveScopeValue1=null; + } + } + }, getStorageTimeValue(val){ if (val!=null&&val!='0'){ @@ -437,6 +465,13 @@ export default { item.recordType=Number(item.recordType) } + }) + }else if (this.code==='TS'){ + this.tableData.forEach(item=>{ + if (item.recordType){ + item.recordType=Number(item.recordType) + } + }) } this.page.total = response.total.toString()