- {{ form.fileName }}
+
- -
@@ -205,7 +227,7 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
- import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
+ import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
import axios from "axios";
export default {
@@ -249,6 +271,63 @@
ProcessTitle
},
methods: {
+ getBusStandFileByAttId(attId) {
+ return new Promise((resolve, reject) => {
+ getBusStandFileByAttId({
+ attId
+ }).then(res => {
+ if (res.ok) {
+ resolve(res.data)
+ } else {
+ reject()
+ }
+ }).catch(e => {
+ reject(e)
+ })
+ })
+ },
+ clickButtonToUpload2(file) {
+ const attId = file
+ this.getBusStandFileByAttId(attId)
+ .then(res => {
+ if(res){
+ const editFileInfo = res
+ if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
+ window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
+ }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
+ window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
+ }else {
+ const nowTime = new Date().getTime()
+ // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
+ window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
+ }
+ // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
+ }
+ }).catch(e => {
+ this.$message.warning('文件不存在,预览失败')
+ })
+ },
+ clickButtonToUpload(file) {
+ const attId = file.attId
+ this.getBusStandFileByAttId(attId)
+ .then(res => {
+ if(res){
+ const editFileInfo = res
+ if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
+ window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
+ }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
+ window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
+ }else {
+ const nowTime = new Date().getTime()
+ // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
+ window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
+ }
+ // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
+ }
+ }).catch(e => {
+ this.$message.warning('文件不存在,预览失败')
+ })
+ },
handleTransfer() {
this.drawerModal = true
},
@@ -350,6 +429,7 @@
this.json = data || data.form
this.form.file = data.fileId || data.form.fileId
this.form.fileName = data.fileName || data.form.fileName
+ this.form.fileId = data.fileId || data.form.fileId
this.form.modelList = data.modelList || data.form.modelList
this.form.fjList = data.fjList || data.form.fjList
}).catch(e => {
diff --git a/src/pages/regulatoryRepository/workingGroup/components/workingGroup1/index.vue b/src/pages/regulatoryRepository/workingGroup/components/workingGroup1/index.vue
index 3bc0a8498..69b40fafe 100644
--- a/src/pages/regulatoryRepository/workingGroup/components/workingGroup1/index.vue
+++ b/src/pages/regulatoryRepository/workingGroup/components/workingGroup1/index.vue
@@ -1051,7 +1051,6 @@
this.addForm.wgNetInfos[this.pIndex].phone = data[0].phone
this.addForm.wgNetInfos[this.pIndex].email = data[0].email
} else if (this.pType === '选择我司人员') {
- console.log(data[0]);
this.addForm.wgDepts[this.pIndex].name = data[0].name
this.addForm.wgDepts[this.pIndex].deptPeopleId = data[0].id
this.addForm.wgDepts[this.pIndex].phone = data[0].phone
From 768a7950843400bb2e1b5751ec9a871b532d4307 Mon Sep 17 00:00:00 2001
From: zhutianqi
Date: Tue, 14 Dec 2021 18:59:28 +0800
Subject: [PATCH 22/25] commit
---
.../processCenter/pages/creatProcess/bzzqyj/step6.vue | 8 +++++---
.../processCenter/pages/creatProcess/bzzqyj/step7.vue | 4 ++--
.../processCenter/pages/creatProcess/bzzqyj/step8.vue | 5 ++---
.../processCenter/pages/creatProcess/bzzqyj/step9.vue | 5 ++---
4 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue
index af890f33e..d5dd0855d 100644
--- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue
@@ -72,12 +72,12 @@
生成汇总单
生成上报意见
@@ -389,6 +389,8 @@ export default {
}
},
upload(row, title) {
+ console.log(row);
+ return
var params = {
columnName: {
chapterNumber: "章条编号",
@@ -479,6 +481,7 @@ export default {
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.cname = data.cname || data.form.cname;
+
this.oldData = JSON.parse(JSON.stringify(data.info))
var arr = []
data.info.forEach(item => {
@@ -491,7 +494,6 @@ export default {
this.form.modelList = data.modelList
this.form.modelNameList = data.modelNameList
this.data = arr
- this.oldData = data.oldinfo
}).catch(e => {
});
});
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue
index b161fb19f..6e959ee91 100644
--- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue
@@ -72,12 +72,12 @@
生成汇总单
生成上报意见
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue
index 1eea3d91b..31006296c 100644
--- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue
@@ -72,12 +72,12 @@
生成汇总单
生成上报意见
@@ -488,7 +488,6 @@ export default {
this.form.modelList = data.modelList
this.form.modelNameList = data.modelNameList
this.data = arr
- this.oldData = data.oldinfo
}).catch(e => {
})
})
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue
index becd23574..95c0b267d 100644
--- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue
@@ -72,12 +72,12 @@
生成汇总单
生成上报意见
@@ -488,7 +488,6 @@ export default {
this.form.modelList = data.modelList
this.form.modelNameList = data.modelNameList
this.data = arr
- this.oldData = data.oldinfo
}).catch(e => {
});
});
From 86b18d006e9707c077be22b27057df1fd2e12e39 Mon Sep 17 00:00:00 2001
From: shenyanpei
Date: Tue, 14 Dec 2021 19:09:34 +0800
Subject: [PATCH 23/25] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?=EF=BC=8C=E5=B7=A5=E4=BD=9C=E7=BB=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/solicitopinions/index.vue | 5 ++
src/pages/home2/index.vue | 3 +
.../pages/creatProcess/bzhHd-rh/step1.vue | 73 +++++++++++++------
.../pages/creatProcess/bzhHd-rh/step2.vue | 7 +-
.../pages/creatProcess/bzhHd-rh/step3.vue | 7 +-
.../pages/creatProcess/bzhHd-rh/step4.vue | 7 +-
.../pages/creatProcess/bzhHd-rh/step5.vue | 7 +-
.../pages/creatProcess/bzhHd-rh/step6-1.vue | 7 +-
.../pages/creatProcess/bzhHd-rh/step6.vue | 7 +-
.../pages/creatProcess/bzhHh-hh/step1.vue | 24 +++++-
.../pages/creatProcess/bzhHh-hh/step2.vue | 21 +++++-
.../pages/creatProcess/bzhHy-ch/step1.vue | 68 ++++++++++++-----
.../pages/creatProcess/bzhHy-ch/step2.vue | 9 ++-
.../pages/creatProcess/bzhHy-ch/step3.vue | 9 ++-
.../pages/creatProcess/bzhHy-ch/step4.vue | 7 +-
.../pages/creatProcess/bzhHy-ch/step5.vue | 7 +-
.../pages/creatProcess/bzhHy-ch/step6-1.vue | 7 +-
.../pages/creatProcess/bzhHy-ch/step6.vue | 7 +-
18 files changed, 219 insertions(+), 63 deletions(-)
diff --git a/src/pages/home2/components/solicitopinions/index.vue b/src/pages/home2/components/solicitopinions/index.vue
index 1b36284bd..c01a2fe4e 100644
--- a/src/pages/home2/components/solicitopinions/index.vue
+++ b/src/pages/home2/components/solicitopinions/index.vue
@@ -25,6 +25,7 @@
{{ scope.row.cid }}
@@ -91,6 +92,10 @@ export default {