-
- {{ item.name }}
+
@@ -262,7 +276,7 @@
import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
-import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
+import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process";
import axios from "axios";
export default {
@@ -317,6 +331,50 @@ export default {
ProcessTitle
},
methods: {
+ filesUpload (file) { // 下载
+ const attId = file.attId
+ if (attId) {
+ window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
+ } else {
+ this.$message.warning('文件不存在,下载失败')
+ }
+ },
+ getBusStandFileByAttId(attId) { // 预览
+ return new Promise((resolve, reject) => {
+ getBusStandFileByAttId({
+ attId
+ }).then(res => {
+ if (res.ok) {
+ resolve(res.data)
+ } else {
+ reject()
+ }
+ }).catch(e => {
+ reject(e)
+ })
+ })
+ },
+ fileLook(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('文件不存在,预览失败')
+ })
+ },
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
@@ -382,10 +440,12 @@ export default {
reason: "修改理由",
department: "提出部门",
responUserName: "提出人",
- stateText: "处理意见"
},
dataList: []
};
+ if (title === '上报意见.xls') {
+ params.columnName.stateText = "处理意见"
+ }
params.dataList = JSON.parse(JSON.stringify(row));
params.dataList.forEach(item => {
if (item.state === "1") {
diff --git a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue
index 7e8329ead..55900ad98 100644
--- a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue
+++ b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue
@@ -41,6 +41,22 @@
-
+
+
+
+
+
+ {{ file.name }}
+ 下载
+
+
+
+
-
+
{{ this.$route.query.item.startTime || '-' }}
@@ -95,6 +111,7 @@
prop="oldText"
align="center"
label="修改前"
+ width="150"
>
查看修改前内容
@@ -216,6 +233,7 @@ export default {
itermsConditionsTitle: '',
options: [],
fileInfoList: [],
+ fileInfoLists: [],
itemData: this.$route.query.item,
id: '', // 选中id
type: '', // 选中状态
@@ -229,7 +247,8 @@ export default {
partCode: '',
oldText: '',
newText: '',
- reason: ''
+ reason: '',
+ chapterName: '',
},
opinionContentRules: {
partCode: [
@@ -399,6 +418,7 @@ export default {
newText: this.opinionContent.newText,
reason: this.opinionContent.reason,
partCode: this.opinionContent.partCode,
+ chapterName: this.opinionContent.chapterName,
userId: this.$store.getters.userInfo.userId || '',
userName: this.$store.getters.userInfo.userName || '',
deptName: this.$store.getters.userInfo.orgName || '',
@@ -441,6 +461,7 @@ export default {
}
},
mounted() {
+ this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles)
let json = JSON.parse(this.$route.query.item.files)[0]
this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', {
standId: json.standId,