diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index 7bd76fbbd..78beff3a1 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -800,7 +800,6 @@ export default { listForm: { listType: "", //区分是哪个清单 listName: "", //清单名称 - // applyRegion: "", //适用区域 descriptionList: "", //清单说明 fileId: "", model: "", // 上传模板 @@ -1097,8 +1096,7 @@ export default { }); this.fileListName = middle; this.fileIds.push(file.response.data.id); - // this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id - // this.$message.success('上传成功') + this.$message.success('上传成功') } else { this.$message.error(res.message); fileList.pop(); @@ -1110,7 +1108,6 @@ export default { var index1 = filename.lastIndexOf("."); var index2 = filename.length; var fileSuffix = filename.substring(index1, index2); - // const fileSuffix = file.name.split('.')[1] // 后缀名 //把后缀转大写 if (fileSuffix !== undefined && fileSuffix !== null) { fileSuffix = fileSuffix.toUpperCase(); @@ -1260,16 +1257,17 @@ export default { } this.listForm.standId = bringData[0].id; this.listForm.listName = bringData[0].detailedListName; - this.listForm.applyRegion = bringData[0].applicationScope; this.listForm.descriptionList = bringData[0].remark; this.listForm.fileId = bringData[0].fileId; this.ListModel = false; - this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", { id: bringData[0].id }, { + this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", + { id: bringData[0].id, page: this.page, Size:this.pageSize}, { _this: this }, res => { - if (res.data == null) { - res.data = []; - } + console.log(res.data); + // if (res.data == null) { + // res.data = []; + // } this.dataList = res.data; this.listForm.dataList = res.data; let formId = []; diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue index 5ae8b512e..976a14cda 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue @@ -37,19 +37,26 @@ clearable > - - - - + +
+

{{ listForm.modelName }} + + +

+
+
+ 暂无数据 +
@@ -70,6 +77,10 @@ prop="code" width="180px" label="标准号"> + { + console.log(res); + this.$nextTick(() => { + res.data.map(item => { + this.listForm.modelName = item.oldFileName + this.listForm.model = item.id + }); + }); + }, e => { + }); + }, + /** + * @Description: 点击下载 + */ + downloadFile(attId) { + if (attId != null && attId !== "") { + window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId; + } else { + this.$message.error("请选择要下载的文件"); + } + }, + downloadFileByWater(attId, fileSuffix) { + let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1); + if (fileExtension !== "pdf" && fileExtension !== "PDF") { + this.$message.error("水印下载仅支持PDF,pdf格式文件"); + } else { + if (attId != null && attId !== "") { + window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId; + } else { + this.$message.error("请选择要下载的文件"); + } + } + }, //保存事件 handleSave() { @@ -356,28 +407,6 @@ export default { }, selectThree() { - }, - // 请求上传的文件信息 - getFileInfo() { - // this.$http.get("att/attFile/getMultiFileInfos", { - // fileIds: this.sarAccessEO.fileIds - // }, { - // _this: this - // }, res => { - // console.log(res); - // this.$nextTick(() => { - // res.data.map(item => { - // // 赋值要回显的上传文件内容 - // this.fileInfoList.push({ - // name: item.oldFileName, - // uid: item.uid, - // status: item.status, - // id: item.id - // }); - // }); - // }); - // }, e => { - // }); }, pageChange(page) { this.page = page; @@ -397,8 +426,6 @@ export default { mounted() { this.processTable(); this.getData(); - this.getFileInfo(); - // console.log(this.$store.getters.getHandleInfo); } }; @@ -413,6 +440,36 @@ export default { padding: 0 20px 0; } } + .fileClass { + cursor: pointer; + } + .fileClass:hover{ + color: #0c91e5; + } + p { + & > a { + cursor: pointer; + } + + & > i { + display: inline-block; + margin-left: 3px; + width: 18px; + height: 16px; + background-repeat: no-repeat; + background-size: 100% 100%; + background-position: center center; + vertical-align: sub; + cursor: pointer; + } + .icon-download { + background-image: url("~assets/images/shangqi/img/download.png"); + } + + .icon-download2 { + background-image: url("~assets/images/shangqi/img/download2.png"); + } + } .choiceBtn { .el-button--primary { diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue index 41f77d353..eadf18395 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue @@ -21,14 +21,6 @@ > - - - - - - - - - - - - - - - - - - - - - + +
+

{{ listForm.modelName }} + + +

+
+
+ 暂无数据 +
+
@@ -251,7 +241,6 @@ listForm: { listType: "", //区分是哪个清单 listName: "", //清单名称 - // applyRegion: "", //适用区域 descriptionList: "", //清单说明 enclosure: "", //附件 signFlag: "1", //是否会签 1为会签 2为不会签 @@ -337,6 +326,45 @@ this.listForm.zrUserId = item.zrUserId }) }, + // 请求上传的文件信息 + getFileInfo() { + this.$http.get("att/attFile/getMultiFileInfos", { + fileIds: this.fileIds + }, { + _this: this + }, res => { + console.log(res); + this.$nextTick(() => { + res.data.map(item => { + this.listForm.modelName = item.oldFileName + this.listForm.model = item.id + }); + }); + }, e => { + }); + }, + /** + * @Description: 点击下载 + */ + downloadFile(attId) { + if (attId != null && attId !== "") { + window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId; + } else { + this.$message.error("请选择要下载的文件"); + } + }, + downloadFileByWater(attId, fileSuffix) { + let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1); + if (fileExtension !== "pdf" && fileExtension !== "PDF") { + this.$message.error("水印下载仅支持PDF,pdf格式文件"); + } else { + if (attId != null && attId !== "") { + window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId; + } else { + this.$message.error("请选择要下载的文件"); + } + } + }, //驳回事件 beforeBack() { this.listForm.approvalOpinion = '1' diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue index bd52ce074..1c6baaad8 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue @@ -496,17 +496,17 @@ export default { } else if (this.type === "qualityEngineer") { this.roleForm.qualityEngineer = data[0].id; this.roleForm.qualityEngineerName = data[0].name; - this.listForm.qualityEngineer = this.roleForm.qualityEngineer; - this.listForm.qualityEngineerName = this.roleForm.qualityEngineerName; + this.listForm.qualityEngineer = data[0].id; + this.listForm.qualityEngineerName = data[0].name; } else if (this.type === "certifiedEngineer") { this.roleForm.certifiedEngineer = data[0].id; this.roleForm.certifiedEngineerName = data[0].name; - this.listForm.certifiedEngineer = this.roleForm.certifiedEngineer; - this.listForm.certifiedEngineerName = this.roleForm.certifiedEngineerName; + this.listForm.certifiedEngineer = data[0].id; + this.listForm.certifiedEngineerName = data[0].name; } else if (this.type === "distributePerson") { this.listForm.distributePerson = data[0].name; - this.listForm.dataList[this.dsadadadsada].distributePersonId=this.roleRow.id - this.listForm.dataList[this.dsadadadsada].distributePerson=this.roleRow.name + this.listForm.dataList[this.dsadadadsada].distributePersonId= data[0].id + this.listForm.dataList[this.dsadadadsada].distributePerson= data[0].name this.showColumn = false; this.$nextTick(() => { this.showColumn = true diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue index 307ae7832..7c9ef4c0b 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue @@ -37,16 +37,16 @@
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue index 5965a188a..bd027def8 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue @@ -39,14 +39,14 @@ diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue index d3f680706..ca0d504ef 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue @@ -39,14 +39,14 @@ diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step5.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step5.vue index 1dc390e5a..7d55dff6f 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step5.vue @@ -39,14 +39,14 @@ diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step6.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step6.vue index c5b0bb69a..eaa28bcd6 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step6.vue @@ -39,14 +39,14 @@ diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step7.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step7.vue index 607b70c25..467b93137 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step7.vue @@ -39,14 +39,14 @@ diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue index 6ab697efe..d50c934ca 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue @@ -30,11 +30,11 @@
- 调取 - 批量删除 + 调取 + 批量删除 导出