From 6b955e8b230e60bbf4c8aa438b74ffb3c19ae28c Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Tue, 25 Jul 2023 16:53:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E9=9B=86=E5=BA=93=20-=20=E6=95=B4?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/archives-manage.scss | 8 +- .../module/blukEditing/index.vue | 3 +- .../module/collectHeader.vue | 133 ++++++++++- .../module/collectMoveFile/data.json | 22 ++ .../module/collectMoveFile/index.vue | 217 ++++++++++++++++++ .../module/collectMoveFile/tree.json | 117 ++++++++++ .../module/combineFile/index.vue | 63 +++++ .../module/fileNumberAdjustment/index.vue | 166 +++++++++++++- .../module/insertFile/index.vue | 103 +++++++++ .../module/uploadOriginal/index.vue | 7 +- src/views/prearchiveLibrary/index.vue | 2 +- 11 files changed, 815 insertions(+), 26 deletions(-) create mode 100644 src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/data.json create mode 100644 src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/index.vue create mode 100644 src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/tree.json create mode 100644 src/views/collectReorganizi/collectionLibrary/module/combineFile/index.vue create mode 100644 src/views/collectReorganizi/collectionLibrary/module/insertFile/index.vue diff --git a/src/assets/styles/archives-manage.scss b/src/assets/styles/archives-manage.scss index 6461613..1d3b34c 100644 --- a/src/assets/styles/archives-manage.scss +++ b/src/assets/styles/archives-manage.scss @@ -819,8 +819,6 @@ } } - - .collect-menu-item{ position: relative; .collect-submenu{ @@ -837,4 +835,10 @@ transform-origin: 95% 40%; transition: all 0.3s ease-in-out; } +} + +.fileUpload-dialog { + .el-dialog{ + width: 536px; + } } \ No newline at end of file diff --git a/src/views/collectReorganizi/collectionLibrary/module/blukEditing/index.vue b/src/views/collectReorganizi/collectionLibrary/module/blukEditing/index.vue index 7209e34..c2abe53 100644 --- a/src/views/collectReorganizi/collectionLibrary/module/blukEditing/index.vue +++ b/src/views/collectReorganizi/collectionLibrary/module/blukEditing/index.vue @@ -1,6 +1,6 @@ @@ -138,9 +186,12 @@ import UploadOriginal from './uploadOriginal/index.vue' import BlukImport from './bulkImport/index.vue' import BlukEditing from './blukEditing/index.vue' import FileNumberAdjustment from './fileNumberAdjustment/index.vue' +import CombineFile from './combineFile/index.vue' +import InsertFile from './insertFile/index.vue' +import CollectMoveFile from './collectMoveFile/index.vue' export default { name: 'CollectHeader', - components: { PreviewForm, UploadOriginal, BlukImport, BlukEditing, FileNumberAdjustment }, + components: { PreviewForm, UploadOriginal, BlukImport, BlukEditing, FileNumberAdjustment, CombineFile, InsertFile, CollectMoveFile }, mixins: [], props: { selectedCategory: { @@ -180,7 +231,10 @@ export default { formTitle: '项目', formPreviewData: [], // 预览界面data deleteVisible: false, - moveVisible: false + moveVisible: false, + updateVisible: false, + uncoilVisible: false, + filingVisible: false } }, computed: { @@ -327,12 +381,71 @@ export default { } this.$refs.blukEditingRef.bulkEditingVisible = true }, + // 档案调整 handleAdjustment() { + this.$refs.fileNumberAdjustmentRef.isType = this.isTitleType if (this.selections.length === 0) { this.$refs.fileNumberAdjustmentRef.adjustmentTipVisible = true } else { this.$refs.fileNumberAdjustmentRef.adjustmentVisible = true } + }, + // 档号更新 + handleFileNumberUpdate() { + if (this.selections.length === 0) { + this.$message('您还未勾选需要操作的条目,请先确认!') + return false + } + this.updateVisible = true + }, + handleUpdateConfirm() { + this.updateVisible = false + }, + // 拆卷 + handleUncoil() { + if (this.selections.length === 0) { + this.$message('您还未勾选需要操作的条目,请先确认!') + return false + } + this.uncoilVisible = true + }, + handleUncoilConfirm() { + this.uncoilVisible = false + }, + // 合卷 + handleCombineFile() { + if (this.selections.length < 2) { + this.$message('合卷操作至少勾选2个案卷,请重试!') + return false + } + this.$refs.combineFileRef.combineFileVisible = true + }, + // 插件 + handleInsertFile() { + if (this.selections.length !== 1) { + this.$message('插卷操作只可勾选唯一目标条目,请先确认!') + return false + } + this.$refs.insertFileRef.insertFileVisible = true + }, + // 移动 + handleCollectMoveFile() { + if (this.selections.length === 0) { + this.$message('您还未勾选需要操作的条目,请先确认!') + return false + } + this.$refs.collectMoveFileRef.collectMoveFileVisible = true + }, + // 归档 + handleFiling() { + if (this.selections.length === 0) { + this.$message('您还未勾选需要操作的条目,请先确认!') + return false + } + this.filingVisible = true + }, + handleFilingConfirm() { + this.filingVisible = false } } } diff --git a/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/data.json b/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/data.json new file mode 100644 index 0000000..c805ad5 --- /dev/null +++ b/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/data.json @@ -0,0 +1,22 @@ +[ + { + "id": 1, + "label": "字段A", + "isType": 1 + }, + { + "id": 2, + "label": "字段B", + "isType": 0 + }, + { + "id": 3, + "label": "字段C", + "isType": 1 + }, + { + "id": 4, + "label": "字段D", + "isType": 1 + } +] diff --git a/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/index.vue b/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/index.vue new file mode 100644 index 0000000..53b52ab --- /dev/null +++ b/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/index.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/tree.json b/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/tree.json new file mode 100644 index 0000000..b55678d --- /dev/null +++ b/src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/tree.json @@ -0,0 +1,117 @@ +{ + "code": 200, + "message": "操作成功", + "data": [ + { + "id": "0ED1F5CF0EBAC01B914132", + "cnName": "档案", + "enName": "archives", + "pid": "0", + "isType": 1, + "categorySeq": 0, + "children": [ + { + "id": "D70C5574B8DCE7A65F7037", + "cnName": "文书档案", + "enName": null, + "pid": "0ED1F5CF0EBAC01B914132", + "isType": 1, + "categorySeq": null, + "children": [ + { + "id": "F0F59CC713C83AE4BAB99B", + "cnName": "文书档案(案卷)", + "enName": "tb_2023_06_21_1687319104861", + "pid": "D70C5574B8DCE7A65F7037", + "isType": 3, + "categorySeq": 1, + "children": [ + { + "id": "CD135F6A77018CE04D4FDB", + "cnName": "文书档案(卷内)", + "enName": "tb_2023_06_21_1687319123605", + "pid": "F0F59CC713C83AE4BAB99B", + "isType": 4, + "categorySeq": null, + "children": [], + "remark": null, + "typeMetic": true, + "create_by": "admin", + "update_by": "admin", + "create_time": 1687319124000, + "update_time": 1687319124000 + } + ], + "remark": null, + "typeMetic": true, + "create_by": "admin", + "update_by": "admin", + "create_time": 1687319105000, + "update_time": 1687319114000 + }, + { + "id": "005E76FEC5A2AAB368CA1F", + "cnName": "文书档案(资料)", + "enName": "tb_2023_06_21_1687330804487", + "pid": "D70C5574B8DCE7A65F7037", + "isType": 5, + "categorySeq": 2, + "children": [], + "remark": null, + "typeMetic": true, + "create_by": "admin", + "update_by": "admin", + "create_time": 1687330805000, + "update_time": 1687330811000 + } + ], + "remark": null, + "typeMetic": true, + "create_by": "admin", + "update_by": "admin", + "create_time": 1687243138000, + "update_time": 1687243138000 + }, + { + "id": "D70C5574B8DCE7A65F7038", + "cnName": "基建档案", + "enName": null, + "pid": "0ED1F5CF0EBAC01B914132", + "isType": 1, + "categorySeq": null, + "children": [ + { + "id": "F0F59CC713C83AE4BAB99B", + "cnName": "基建档案(项目)", + "enName": "tb_2023_06_21_1687319104861", + "pid": "D70C5574B8DCE7A65F7037", + "isType": 2, + "categorySeq": 1, + "children": [ + ], + "remark": null, + "typeMetic": true, + "create_by": "admin", + "update_by": "admin", + "create_time": 1687319105000, + "update_time": 1687319114000 + } + ], + "remark": null, + "typeMetic": true, + "create_by": "admin", + "update_by": "admin", + "create_time": 1687243138000, + "update_time": 1687243138000 + } + ], + "remark": "", + "typeMetic": true, + "create_by": null, + "update_by": "admin", + "create_time": null, + "update_time": 1655112365000 + } + ], + "timestamp": 1688967875784 +} \ No newline at end of file diff --git a/src/views/collectReorganizi/collectionLibrary/module/combineFile/index.vue b/src/views/collectReorganizi/collectionLibrary/module/combineFile/index.vue new file mode 100644 index 0000000..6190bdb --- /dev/null +++ b/src/views/collectReorganizi/collectionLibrary/module/combineFile/index.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/views/collectReorganizi/collectionLibrary/module/fileNumberAdjustment/index.vue b/src/views/collectReorganizi/collectionLibrary/module/fileNumberAdjustment/index.vue index d94fad5..f95b726 100644 --- a/src/views/collectReorganizi/collectionLibrary/module/fileNumberAdjustment/index.vue +++ b/src/views/collectReorganizi/collectionLibrary/module/fileNumberAdjustment/index.vue @@ -14,11 +14,63 @@ - - + + +
+ + + + + + + + + + 调整 +
+
+ + + + + + 调整 +
+
+ + + + + + + + + + +
@@ -28,10 +80,85 @@ export default { name: 'FileNumberAadjustment', components: { }, mixins: [], + props: { + selectedCategory: { + type: Object, + default: function() { + return {} + } + } + }, data() { return { adjustmentTipVisible: false, - adjustmentVisible: false + adjustmentVisible: false, + form: { + adjustFields: '', + initialValue: '', + codeFields: '' + }, + fieldsOptions: [ + ], + codeFieldsOptions: [ + { + value: '1', + label: '档号' + } + ], + rules: { + initialValue: [ + { required: true, message: '请输入起始值', trigger: 'blur' } + ] + }, + tableData: [], + page: { + page: 1, + size: 10, + total: 0 + }, + isType: 2 + } + }, + watch: { + isType(newVal) { + if (newVal === 3) { + if (this.selectedCategory.isType === 5) { + this.fieldsOptions = [{ + value: '目录号', + label: '目录号' + }, + { + value: '件号', + label: '件号' + }, + { + value: '档号', + label: '档号' + }] + } else { + this.fieldsOptions = [{ + value: '案卷号', + label: '案卷号' + }, + { + value: '档号', + label: '档号' + }] + } + } else if (newVal === 4) { + this.fieldsOptions = [{ + value: '卷内顺序号', + label: '卷内顺序号' + }, + { + value: '目录号', + label: '目录号' + }, + { + value: '档号', + label: '档号' + }] + } } }, created() { @@ -42,10 +169,37 @@ export default { handleComfireAdjustment() { this.adjustmentTipVisible = false this.adjustmentVisible = true + }, + handleSizeChange(size) { + this.page.size = size + this.page.page = 1 + }, + handleCurrentPage(val) { + this.page.page = val } } } diff --git a/src/views/collectReorganizi/collectionLibrary/module/insertFile/index.vue b/src/views/collectReorganizi/collectionLibrary/module/insertFile/index.vue new file mode 100644 index 0000000..a433225 --- /dev/null +++ b/src/views/collectReorganizi/collectionLibrary/module/insertFile/index.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/index.vue b/src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/index.vue index 4d1b383..6adc7ec 100644 --- a/src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/index.vue +++ b/src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/index.vue @@ -1,7 +1,7 @@