From b92b55a45af16410f73270f243289d8d22a86424 Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Mon, 19 May 2025 14:18:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E8=AF=BE=E7=A8=8B=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/PreviewFile/index.vue | 5 +--
.../SignatureTemplate/TemplateForm.vue | 2 ++
.../SignatureTemplate/attachmentForm.vue | 2 +-
.../SignatureTemplate/attachmentList.vue | 16 +++++++---
.../SignatureTemplate/attachmentPreview.vue | 9 +++++-
.../components/SignatureTemplate/index.vue | 27 +++++++++++-----
.../attachment-management/index.vue | 29 ++++++++++++-----
.../attachments/self-attachment/index.vue | 31 ++++++++++++++-----
.../components/needSignSysDoc.vue | 31 ++++++++++++++-----
.../components/needSignedSysDoc.vue | 31 ++++++++++++++-----
10 files changed, 137 insertions(+), 46 deletions(-)
diff --git a/src/components/PreviewFile/index.vue b/src/components/PreviewFile/index.vue
index 003eac98..ebe10a04 100644
--- a/src/components/PreviewFile/index.vue
+++ b/src/components/PreviewFile/index.vue
@@ -12,7 +12,7 @@
-
+
{{ $t('common:button:delete') }}
@@ -71,6 +71,7 @@ const defaultSearchData = () => {
PageIndex: 1,
PageSize: 1000,
Asc: false,
+ OffLine: null,
SortField: null
}
}
@@ -91,6 +92,10 @@ export default {
}
}
},
+ isView: {
+ type: Boolean,
+ default: false
+ },
rowData: {
type: Object,
default: () => {
@@ -170,6 +175,9 @@ export default {
if (!this.SystemDocumentId) return false
this.loading = true
this.searchData.SystemDocumentId = this.SystemDocumentId
+ if (this.isView) {
+ this.searchData.OffLine = false
+ }
let res = await getSystemDocumentAttachmentList(this.searchData)
this.loading = false
if (res.IsSuccess) {
diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue b/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue
index 3f030790..0dd78fc9 100644
--- a/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue
+++ b/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue
@@ -78,7 +78,7 @@ const defaultSearchData = () => {
PageIndex: 1,
PageSize: 1000,
Asc: false,
- OffLine: false,
+ OffLine: null,
SortField: null
}
}
@@ -96,6 +96,10 @@ export default {
visible: {
type: Boolean,
default: false
+ },
+ isView: {
+ type: Boolean,
+ default: false
}
},
data() {
@@ -137,6 +141,9 @@ export default {
if (!this.SystemDocumentId) return false
this.loading = true
this.searchData.SystemDocumentId = this.SystemDocumentId
+ if (this.isView) {
+ this.searchData.OffLine = false
+ }
let res = await getSystemDocumentAttachmentList(this.searchData)
this.loading = false
if (res.IsSuccess) {
diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/index.vue b/src/views/dictionary/attachment/components/SignatureTemplate/index.vue
index c7f9702c..843d5ef4 100644
--- a/src/views/dictionary/attachment/components/SignatureTemplate/index.vue
+++ b/src/views/dictionary/attachment/components/SignatureTemplate/index.vue
@@ -84,7 +84,10 @@
- {{ scope.row.AttachmentCount }}
+
+ {{ scope.row.AttachmentCount }}
+
+
-
+
+ {{
+ $t('trials:signRecords:table:AttachmentCount') }} ({{
+ currentRow.AttachmentCount }})
@@ -182,6 +190,7 @@ import TemplateForm from './TemplateForm'
import attachmentList from './attachmentList'
import PreviewFile from '@/components/PreviewFile/index'
+import attachmentPreview from './attachmentPreview'
const searchDataDefault = () => {
return {
FileTypeId: '',
@@ -197,7 +206,7 @@ const searchDataDefault = () => {
}
export default {
name: 'SignatureTemplate',
- components: { BaseContainer, Pagination, TemplateForm, PreviewFile, attachmentList },
+ components: { BaseContainer, Pagination, TemplateForm, PreviewFile, attachmentList, attachmentPreview },
dicts: ['Sys_Document'],
props: {
isSystem: {
@@ -231,7 +240,7 @@ export default {
width: '800px',
},
multipleSelection: [],
- rowData: {}
+ perview_visible: false
}
},
mounted() {
@@ -269,10 +278,14 @@ export default {
console.log(err)
}
},
- openAttachment(row) {
- this.rowData = row
+ openAttachment(row, isList = false) {
this.SystemDocumentId = row.Id
- this.config.visible = true
+ this.currentRow = { ...row }
+ if (!isList) {
+ this.perview_visible = true
+ } else {
+ this.config.visible = true
+ }
},
changeTimeList() {
if (this.timeList) {
diff --git a/src/views/trials/trials-panel/attachments/attachment-management/index.vue b/src/views/trials/trials-panel/attachments/attachment-management/index.vue
index 5f7cfe6d..8a9f8f70 100644
--- a/src/views/trials/trials-panel/attachments/attachment-management/index.vue
+++ b/src/views/trials/trials-panel/attachments/attachment-management/index.vue
@@ -126,7 +126,8 @@
- {{ scope.row.AttachmentCount }}
+ {{ scope.row.AttachmentCount
+ }}
@@ -208,15 +209,18 @@
- {{
+ {{
$t('trials:signRecords:table:AttachmentCount') }} ({{
currentRow.AttachmentCount }})
-
+
+