@@ -2919,6 +2923,39 @@
this.$preview(attId)
}
},
+ handleFilePreview2(file, type) {
+ let attId = ""
+ if (file && file.id) {
+ attId = file.id
+ } else {
+ attId = file.response.data.id
+ }
+ if (file.name == this.form.standName) {
+ let fileName = ""
+ let fileNam2 = ""
+ if (this.form.standName && this.form.standName !== '') {
+ fileName = this.form.standName + '-企业标准.docx'
+ fileNam2 = this.form.standName
+ } else {
+ fileName = '企业标准.docx'
+ fileNam2 = '企业标准'
+ }
+ let form = JSON.parse(JSON.stringify(this.form))
+ form.standCode = ''
+ form.issueDate = ''
+ this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
+ return
+ }
+ if (type === 'down') {
+ if (attId) {
+ window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
+ } else {
+ this.$message.warning('文件不存在,下载失败')
+ }
+ } else {
+ this.$preview(attId)
+ }
+ },
handleFilePreviewOne(file, type) {
let id = ""
let fileName = ""
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue
index 219c26865..5912c226d 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue
@@ -209,8 +209,12 @@
{{ item.name }}
+ @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer;margin-left: 12px;"
+ class="fileClass">
+ {{ item.name }}
+
+
+
@@ -3318,6 +3322,39 @@
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, JSON.parse(JSON.stringify(this.form)))
}
},
+ handleFilePreview2(file, type) {
+ let attId = ""
+ if (file && file.id) {
+ attId = file.id
+ } else {
+ attId = file.response.data.id
+ }
+ if (file.name == this.form.standName) {
+ let fileName = ""
+ let fileNam2 = ""
+ if (this.form.standName && this.form.standName !== '') {
+ fileName = this.form.standName + '-企业标准.docx'
+ fileNam2 = this.form.standName
+ } else {
+ fileName = '企业标准.docx'
+ fileNam2 = '企业标准'
+ }
+ let form = JSON.parse(JSON.stringify(this.form))
+ form.standCode = ''
+ form.issueDate = ''
+ this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
+ return
+ }
+ if (type === 'down') {
+ if (attId) {
+ window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
+ } else {
+ this.$message.warning('文件不存在,下载失败')
+ }
+ } else {
+ this.$preview(attId)
+ }
+ },
changeRestTree(val) {
let arr = [];
if (val.length !== 0) {