From cc208f6d0355e759b8a2dabd307905141da9dfae Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Tue, 1 Apr 2025 17:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E9=A1=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/collect/collect.js | 22 +- .../module/collectHeader.vue | 66 +++- src/views/components/category/PreviewForm.vue | 311 +++++++++++------- 3 files changed, 275 insertions(+), 124 deletions(-) diff --git a/src/api/collect/collect.js b/src/api/collect/collect.js index 60bce5f..1d51860 100644 --- a/src/api/collect/collect.js +++ b/src/api/collect/collect.js @@ -385,6 +385,24 @@ export function FetchMaxItemNoByParentId(params) { }) } +// 根据档号判断是否重复 --- 预归档库 +export function FetchIsRepeatByArchivesNo(params) { + return request({ + url: 'api/collect/isRepeatByArchivesNo', + method: 'get', + params + }) +} + +// 根据档号判断是否重复 --- 收集库 +export function FetchIsRepeatAllByArchivesNo(params) { + return request({ + url: 'api/collect/isRepeatAllByArchivesNo', + method: 'get', + params + }) +} + export default { collectAdd, collectEdit, @@ -424,5 +442,7 @@ export default { FetchEditMarkByFileId, FetchMarkByFileId, FetchInitFileMarkCategoryView, - FetchMaxItemNoByParentId + FetchMaxItemNoByParentId, + FetchIsRepeatByArchivesNo, + FetchIsRepeatAllByArchivesNo } diff --git a/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue b/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue index 56dbe08..4a81d56 100644 --- a/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue +++ b/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue @@ -160,6 +160,7 @@ @close-dialog="closeDialog" @handleForm="handleForm" @formLoadingShow="formLoadingShow" + @repeatDataShow="repeatDataShow" />
{{ displayedText }}
@@ -276,7 +277,7 @@
-

此移出将把会所选条目返还到未整理列表

+

此操作将把所选条目放入未整理列表

你是否还要继续?
+ + +
+
建议修改当前输入的档号!
+
建议删除回收站相关数据 或者 修改当前输入的档号!
+ + + + + + + + + + + + + + + +
+
+ @@ -425,7 +464,11 @@ export default { expandedRows: [], aiResultCaLoading: true, // ai分析得内容结果前得loading isDialogClosed: false, // 新增标志位,用于控制是否继续处理流式响应 - reader: null // 用于存储响应体的读取器 + reader: null, // 用于存储响应体的读取器 + repeatVisible: false, + repeatLoading: false, + repeatResponseData: {}, + repeatData: [] } }, computed: { @@ -583,6 +626,7 @@ export default { // 著录界面-form/详情-api handleForm(type, isPaper) { this.formIsAddOrEdit = type + if (type === 'add') { if (this.parentsData.parentsProjectId && this.isTitleType === 3) { console.log('项目下的案卷') @@ -757,6 +801,24 @@ export default { formLoadingShow(loadingType) { this.archivesBtnLoading = loadingType }, + repeatDataShow(data) { + this.repeatVisible = true + this.repeatLoading = true + this.repeatData = [] + if (data) { + this.repeatResponseData = data + this.repeatData.push(data.archivesSummary) + setTimeout(() => { + this.repeatLoading = false + }, 500) + } + }, + handleRepeatClose() { + this.repeatResponseData = {} + this.repeatData = [] + this.repeatLoading = false + this.repeatVisible = false + }, // 关闭 handleClose(done) { this.formVisible = false diff --git a/src/views/components/category/PreviewForm.vue b/src/views/components/category/PreviewForm.vue index 16cf35c..aa32ad9 100644 --- a/src/views/components/category/PreviewForm.vue +++ b/src/views/components/category/PreviewForm.vue @@ -83,19 +83,6 @@ - @@ -143,7 +130,7 @@