From e6736363e84b9cd16dc88f386e9fe0a6a0c2ecd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Tue, 26 Mar 2024 11:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=81=E6=A0=87=E5=88=B6?= =?UTF-8?q?=E4=BF=AE=E8=AE=A2-=E6=8A=80=E6=9C=AF=E6=A0=87=E5=87=86?= =?UTF-8?q?=E7=9A=84=E5=8E=86=E5=8F=B2=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../creatProcess/qbrk/common/formEditList.vue | 57 +++++++++++++++---- .../qbrk/common/formEditListFb.vue | 28 ++++++++- .../creatProcess/qbrk/common/formList.vue | 56 ++++++++++++++---- .../pages/creatProcess/qbrk/step1-2.vue | 18 ++++++ .../pages/creatProcess/qbrk/step1.vue | 21 ++++++- 5 files changed, 155 insertions(+), 25 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue index 4ec906e85..993b41a38 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue @@ -212,19 +212,37 @@ clearable />
-
-
- {{ item.name }} - - - +
+
+ {{ item.name }} + + + + + + +
-
+ +
+
+ {{ item.name }} + + + +
+
+
import { mapGetters } from 'vuex' import ProcessTitle from '../../../components/ProcessTitle' +import { onlyOfficeUrl } from '@/sysConfig' export default { name: 'FormEditList', @@ -1023,6 +1042,20 @@ export default { } }, methods: { + viewOnlyOffice (item) { + const key = new Date().getTime() + let oldFileName = item.name + let index1 = oldFileName.lastIndexOf('.') + let fileSuffix = oldFileName.substring(index1+1, oldFileName.length) + fileSuffix = fileSuffix.toLowerCase() + oldFileName = oldFileName.substring(0, index1) + if (fileSuffix == 'pdf' || fileSuffix == 'doc' || fileSuffix == 'docx'){ + window.open(onlyOfficeUrl + '/viewHistoryOnlyOffice?oldFileName=' + oldFileName + '&fileType=' + fileSuffix + + '&attId=' + item.id + '&key=' + key + '&userName=' + this.$store.getters.userInfo.uName) + }else{ + this.$message.warning('此文件不支持onlyoffice预览') + } + }, filterOp (data) { if (!data) { return '' diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditListFb.vue b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditListFb.vue index ad010ad0a..13fe14412 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditListFb.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditListFb.vue @@ -229,14 +229,25 @@ clearable />
-
+
{{ item.name }} + + +
+
+
+ {{ item.name }} + + + +
+
import { mapGetters } from 'vuex' +import { onlyOfficeUrl } from '@/sysConfig' import ProcessTitle from '../../../components/ProcessTitle' import CurrentOrder from '@/pages/processCenter/pages/components/CurrentOrder'; @@ -999,6 +1011,20 @@ export default { } }, methods: { + viewOnlyOffice (item) { + const key = new Date().getTime() + let oldFileName = item.name + let index1 = oldFileName.lastIndexOf('.') + let fileSuffix = oldFileName.substring(index1+1, oldFileName.length) + fileSuffix = fileSuffix.toLowerCase() + oldFileName = oldFileName.substring(0, index1) + if (fileSuffix == 'pdf' || fileSuffix == 'doc' || fileSuffix == 'docx'){ + window.open(onlyOfficeUrl + '/viewHistoryOnlyOffice?oldFileName=' + oldFileName + '&fileType=' + fileSuffix + + '&attId=' + item.id + '&key=' + key + '&userName=' + this.$store.getters.userInfo.uName) + }else{ + this.$message.warning('此文件不支持onlyoffice预览') + } + }, queryOrder () { this.$refs.CurrentOrderRef.open(this.form.standSort, this.form.standNum) }, diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue b/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue index 7d7077cd6..ab0ef45f4 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue @@ -173,17 +173,36 @@ -
- {{ item.name }} - - - +
+
+ {{ item.name }} + + + + + + +
+
+
+
+ {{ item.name }} + + + +
@@ -597,6 +616,7 @@