From f82418771ceccbd949ea183f808a5824d01e063c Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Tue, 27 May 2025 17:12:02 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E6=96=87=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/documentArchives.js | 10 ++-
.../AICataloging/running/index.vue | 4 +-
src/views/archivesMIOD/miodLibrary/index.vue | 38 ++++-----
.../miodLibrary/module/detail.vue | 83 ++++++++-----------
.../module/collectHeader.vue | 7 +-
.../module/collectHeader.vue | 7 +-
src/views/components/category/PreviewForm.vue | 71 ++++++++++++----
src/views/prearchiveLibrary/index.vue | 10 ++-
8 files changed, 127 insertions(+), 103 deletions(-)
diff --git a/src/api/system/documentArchives.js b/src/api/system/documentArchives.js
index f238690..abd6a46 100644
--- a/src/api/system/documentArchives.js
+++ b/src/api/system/documentArchives.js
@@ -142,6 +142,13 @@ export function FetchInitDistributorByDocumentId(params) {
})
}
+// 查看操作记录
+export function FetchInitOperate(params) {
+ return request({
+ url: 'api/documentArchives/initOperate' + '?' + qs.stringify(params, { indices: false }),
+ method: 'get'
+ })
+}
export default {
FetchInitDocumentParam,
updateDocumentParam,
@@ -158,5 +165,6 @@ export default {
FetchInitDocumentDetailsList,
FetchAddDocumentDetails,
FetchDeleteDocumentDetails,
- FetchInitDistributorByDocumentId
+ FetchInitDistributorByDocumentId,
+ FetchInitOperate
}
diff --git a/src/views/AIAssistant/AICataloging/running/index.vue b/src/views/AIAssistant/AICataloging/running/index.vue
index 19df199..b85e191 100644
--- a/src/views/AIAssistant/AICataloging/running/index.vue
+++ b/src/views/AIAssistant/AICataloging/running/index.vue
@@ -209,6 +209,7 @@
:is-title-type="isTitleType"
:collect-level="collectLevel"
:category-menu="categoryMenu"
+ :archives-type="archivesType"
@close-dialog="handleClose"
/>
@@ -290,6 +291,7 @@ export default {
label: 'label'
},
currentAnId: {},
+ archivesType: null,
aiAddArchiveCategory: {}, // 当前门类树选择得对象
categoryMenu: [], // 新增档案form表单内传参
formVisible: false, // 新增档案表单
@@ -635,6 +637,7 @@ export default {
handleCategoryForm() {
this.formTitle = '新增档案 - ' + this.aiAddArchiveCategory.cnName
this.formVisible = true
+ this.archivesType = 'add'
const params = {
'categoryId': this.aiAddArchiveCategory.id,
'categoryLevel': this.collectLevel
@@ -643,7 +646,6 @@ export default {
this.formPreviewData = data
this.isDesFormType = 'arcives'
this.$nextTick(() => {
- this.$refs.previewForm.archivesType = 'add'
this.$refs.previewForm.FetchNoFormatField(this.aiAddArchiveCategory.id)
})
this.getDoHandleEnterAnalysis()
diff --git a/src/views/archivesMIOD/miodLibrary/index.vue b/src/views/archivesMIOD/miodLibrary/index.vue
index 88f9671..da51180 100644
--- a/src/views/archivesMIOD/miodLibrary/index.vue
+++ b/src/views/archivesMIOD/miodLibrary/index.vue
@@ -102,6 +102,7 @@
:is-disabled="isDisabled"
:selected-document="selectedDocument"
:is-has-code="isHasCode"
+ :archives-type="archivesType"
@close-dialog="closeDialog"
@formLoadingShow="formLoadingShow"
@refreshTree="refreshTreeList"
@@ -218,23 +219,9 @@ export default {
isHasCode: false,
printVisible: false,
printType: 1,
- isHidden: false,
- formData: {
- receiveNo: '武交收〔2025〕12号',
- receiveDate: '2025年05月20日',
- urgency: '急件',
- senderUnit: '湖北省交通运输厅',
- senderNo: '鄂交发〔2025〕35号',
- secrecyLevel: '普通',
- tip: '请办公室尽快协调相关部门阅办',
- fileTitle: '关于加强交通运输安全生产管理的通知',
- recommendation: '建议转交运输科牵头办理,5个工作日内反馈意见',
- leaderApproval: '同意拟办意见,张XX 2025.05.20',
- departmentOpinion: '已阅,将于2025.05.25前反馈'
- },
- printTitle: '',
pdfSources: [],
- printSelections: []
+ printSelections: [],
+ archivesType: null
}
},
computed: {
@@ -329,11 +316,6 @@ export default {
handleForm(type) {
const { selectedDocument, crud } = this
- if (!selectedDocument) {
- console.warn('selectedDocument 未定义,无法继续操作')
- return
- }
-
this.selectedCategory = selectedDocument
this.isDesFormType = 'miodLibrary'
@@ -347,9 +329,11 @@ export default {
const params = { documentId }
if (type === 'add') {
+ console.log('add')
this.formTitle = '新增文件'
params.archivesId = null
} else if (type === 'edit') {
+ console.log('edit')
this.formTitle = '编辑文件'
const { id: archivesId } = crud.selections[0]
this.arcId = archivesId
@@ -360,6 +344,7 @@ export default {
},
getFormInfo(params, type) {
+ this.archivesType = type
crudDocumentArchives.FetchDoeditDocument(params).then(data => {
console.log('data', data)
const showFiledAll = data.showFiled.filter(item => item.isSequence).sort((a, b) => a.isSequence - b.isSequence)
@@ -370,8 +355,13 @@ export default {
this.$refs.previewForm.fileOriginal = null
this.$refs.previewForm.fileJsonString = null
if (type === 'edit') {
- this.$refs.previewForm.archivesType = 'edit'
- this.$refs.previewForm.addOrUpdateForm = data.echo
+ showFiledAll.map(item => {
+ if (item.isInputClass === 'select' && item.isRadio && item.isLine) {
+ data.echo[item.fieldName] = JSON.parse(data.echo[item.fieldName])
+ }
+ })
+
+ this.$set(this.$refs.previewForm, 'addOrUpdateForm', data.echo)
if (data.fileecho) {
this.$refs.previewForm.fileOriginal = data.fileecho.file_name || null
@@ -391,7 +381,7 @@ export default {
}
})
} else {
- this.$refs.previewForm.archivesType = 'add'
+ console.log('add')
}
})
})
diff --git a/src/views/archivesMIOD/miodLibrary/module/detail.vue b/src/views/archivesMIOD/miodLibrary/module/detail.vue
index 648ec42..b738281 100644
--- a/src/views/archivesMIOD/miodLibrary/module/detail.vue
+++ b/src/views/archivesMIOD/miodLibrary/module/detail.vue
@@ -70,7 +70,7 @@
@@ -90,16 +90,17 @@
-
+
- {{ getOperateTypeText(scope.row.operateType) }}
+
+ {{ scope.row.operateType }}
-
-
+
+
- {{ scope.row.update_time | parseTime }}
+ {{ scope.row.createTime | parseTime }}
@@ -124,7 +125,7 @@