diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java index 8bc072b1b..6bab4ecc5 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java @@ -1051,7 +1051,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl nowFileList = FileUnZip.readFileByFilename(filepath, fileName); + List nowFileList = FileUnZip.readFileByFilename(filepath, fileName,null,null,null,null,null); if (nowFileList.size() == 0) { if(CutEnum.CN.getValue().equals(cut)) { errorMsg += "附件模板压缩包中没有" + fileName + "文件; "; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java index 6d0d6e35f..103b7c6f2 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java @@ -4342,7 +4342,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl nowFileList = FileUnZip.readFileByFilename(zipEntryName, fileName); + List nowFileList = FileUnZip.readFileByFilename(zipEntryName, fileName,cut,errorMsg,null,key,key); if (nowFileList.size() == 0) { if(CutEnum.CN.getValue().equals(cut)){ errorMsg += key + "压缩包中没有" + fileName + "文件; "; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java index beea207d2..f6eee357d 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java @@ -856,6 +856,13 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl 100){ + String message = ""; + if(CutEnum.CN.getValue().equals(dummyInventoryInfoEOTemp.getCut())){ + message = errorMsg + "子标题不能超过100个字符"; + }else{ + message = errorMsg + " Subheadings cannot be checked more than 100 characters"; + } + msgList.add(message); + } + } + //WVTA ID + if(StringUtils.isNotBlank(wvtaId)){ + if(wvtaId.length() > 100){ + String message = ""; + if(CutEnum.CN.getValue().equals(dummyInventoryInfoEOTemp.getCut())){ + message = errorMsg + "WVTA ID不能超过100个字符"; + }else{ + message = errorMsg + " The WVTA ID cannot contain more than 100 characters"; + } + msgList.add(message); + } + } + //备注 remark + if(StringUtils.isNotBlank(remark)){ + if(remark.length() > 300){ + String message = ""; + if(CutEnum.CN.getValue().equals(dummyInventoryInfoEOTemp.getCut())){ + message = errorMsg + "备注不能超过300个字符"; + }else{ + message = errorMsg + " Note The value cannot exceed 300 characters"; + } + msgList.add(message); + } + } + //实施类别(单选不必填) value = pullSingle(dictItemList, dummyInventoryInfoEO, errorMsg, implementType,msgList,"实施类别","implementation category","implement_type"); @@ -897,17 +941,6 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl nowFileList = FileUnZip.readFileByFilename(zipEntryName, fileName); + List nowFileList = FileUnZip.readFileByFilename(zipEntryName, fileName,dummyInventoryInfoEO.getCut(),errorMsg,msgList,nameCn,nameEn); if (nowFileList.size() == 0) { - if(CutEnum.CN.getValue().equals(dummyInventoryInfoEO.getCut())){ - errorMsg += "压缩包中没有" + fileName + "文件; "; - }else{ - errorMsg += " Not in the zip package" + fileName + "file; "; - } - msgList.add(errorMsg); +// if(CutEnum.CN.getValue().equals(dummyInventoryInfoEO.getCut())){ +// errorMsg += "压缩包中没有" + fileName + "文件; "; +// }else{ +// errorMsg += " Not in the zip package" + fileName + "file; "; +// } +// msgList.add(errorMsg); } else { try { FileInputStream input = new FileInputStream(nowFileList.get(0)); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 7beb06b21..e2275259b 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -2309,14 +2309,14 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl nowFileList = FileUnZip.readFileByFilename(zipEntryName, fileName); + List nowFileList = FileUnZip.readFileByFilename(zipEntryName, fileName,projectLawsInventoryEO.getCut(),errorMsg,msgList,nameCn,nameEn); if (nowFileList.size() == 0) { - if(CutEnum.CN.getValue().equals(projectLawsInventoryEO.getCut())){ - errorMsg += "压缩包中没有" + fileName + "文件; "; - }else{ - errorMsg += " Not in the zip package" + fileName + "file; "; - } - msgList.add(errorMsg); +// if(CutEnum.CN.getValue().equals(projectLawsInventoryEO.getCut())){ +// errorMsg += "压缩包中没有" + fileName + "文件; "; +// }else{ +// errorMsg += " Not in the zip package" + fileName + "file; "; +// } +// msgList.add(errorMsg); } else { try { FileInputStream input = new FileInputStream(nowFileList.get(0)); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/common/FileUnZip.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/common/FileUnZip.java index 6cd2886b5..2b3ef0ac2 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/common/FileUnZip.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/common/FileUnZip.java @@ -1,12 +1,18 @@ package com.jero.modules.split.common; +import com.jero.common.constant.enums.CutEnum; import com.xkcoding.http.util.StringUtil; +import org.apache.commons.lang3.StringUtils; import org.apache.tools.zip.ZipEntry; import org.apache.tools.zip.ZipFile; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.io.*; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; @@ -114,9 +120,18 @@ public class FileUnZip { * gaoyan * @param filename */ - public static List readFileByFilename(String path,String filename) { + public static List readFileByFilename(String path, + String filename, + String cut, + String errorMsg, + List msgList, + String nameCn, + String nameEn) { + String filenameOne = ""; + String filenameTwo = ""; if(filename.contains("/")){ - filename = filename.split("/")[1]; + filenameOne = filename.split("/")[0]; + filenameTwo = filename.split("/")[1]; } List resultlist = new ArrayList<>(); if (StringUtil.isNotEmpty(path)){ @@ -128,20 +143,35 @@ public class FileUnZip { File[] filesTemp = fi.listFiles(); for (File fileTemp : filesTemp) { // 对文件进行过滤 - if (fileTemp.getName().equals(filename)) { + if (fileTemp.getName().equals(filenameTwo) && fileTemp.getPath().contains(filenameOne) && StringUtils.isNotBlank(filenameOne)) { resultlist.add(fileTemp); } } }else{ // 对文件进行过滤 - if (fi.getName().equals(filename)) { + if (fi.getName().equals(filenameTwo) && fi.getPath().contains(filenameOne) && StringUtils.isNotBlank(filenameOne)) { resultlist.add(fi); } } - } } } + if(resultlist.size() == 0){ + String name = ""; + if(filename.contains("/")){ + name = filenameTwo; + }else{ + name = filename; + } + if(CutEnum.CN.getValue().equals(cut)){ + errorMsg += nameCn + name + "格式不正确或者压缩包中没有" + name + "文件,请参考模板下载中的说明"; + }else{ + errorMsg += nameEn + name + " Incorrect format or not present in compressed package " + name + " file please refer to the description in template download;"; + } + if(msgList != null){ + msgList.add(errorMsg); + } + } return resultlist; } // public static List readFileByFilename(String path,String filename) { diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java index 8d1642928..31347c765 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java @@ -1217,7 +1217,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); + List nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i],null,null,null,null,null); if (nowfilelist != null && !nowfilelist.isEmpty()) { String url = nowfilelist.get(0).getPath(); MultipartFile multipartFile = createMfileByPath(url); @@ -1262,7 +1262,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); + List nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i],null,null,null,null,null); if (nowfilelist != null && !nowfilelist.isEmpty()) { String url = nowfilelist.get(0).getPath(); MultipartFile multipartFile = createMfileByPath(url); @@ -1311,7 +1311,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); + List nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i],null,null,null,null,null); if (nowfilelist != null && !nowfilelist.isEmpty()) { String url = nowfilelist.get(0).getPath(); MultipartFile multipartFile = createMfileByPath(url); @@ -2223,7 +2223,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl nowFileList = FileUnZip.readFileByFilename(filepath, fileName); + List nowFileList = FileUnZip.readFileByFilename(filepath, fileName,null,null,null,null,null); if (nowFileList.size() == 0) { if(CutEnum.CN.getValue().equals(cut)) { errorMsg += fieldName + "压缩包中没有" + fileName + "文件; "; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/SarFileSplitItemsEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/SarFileSplitItemsEOServiceImpl.java index 04e9c8377..5e566814c 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/SarFileSplitItemsEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/split/service/impl/SarFileSplitItemsEOServiceImpl.java @@ -993,7 +993,7 @@ public class SarFileSplitItemsEOServiceImpl extends ServiceImpl nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); + List nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i],null,null,null,null,null); if (nowfilelist != null && !nowfilelist.isEmpty()) { OSSFile ossFile = new OSSFile(); ossFile.setFileName(nowfilelist.get(0).getName()); @@ -1030,7 +1030,7 @@ public class SarFileSplitItemsEOServiceImpl extends ServiceImpl nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); + List nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i],null,null,null,null,null); if (nowfilelist != null && !nowfilelist.isEmpty()) { OSSFile ossFile = new OSSFile(); ossFile.setFileName(nowfilelist.get(0).getName()); @@ -1069,7 +1069,7 @@ public class SarFileSplitItemsEOServiceImpl extends ServiceImpl nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]); + List nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i],null,null,null,null,null); if (nowfilelist != null && !nowfilelist.isEmpty()) { OSSFile ossFile = new OSSFile(); ossFile.setFileName(nowfilelist.get(0).getName()); diff --git a/jero-web/src/views/processCenter/components/circulationHistory.vue b/jero-web/src/views/processCenter/components/circulationHistory.vue index d86dd8c27..f77577070 100644 --- a/jero-web/src/views/processCenter/components/circulationHistory.vue +++ b/jero-web/src/views/processCenter/components/circulationHistory.vue @@ -67,6 +67,12 @@ export default { name: 'circulationHistory', + props: { + url: { + type: String, + default: '/workFlow/get_list_by_instance' + } + }, data() { return { dataSource: [], @@ -140,9 +146,10 @@ methods: { getList() { let query = { - prcNum: this.$route.query.prcNum + prcNum: this.$route.query.prcNum, + prcId: this.$route.query.actiProcInstId } - getAction('/workFlow/get_list_by_instance', query).then((res) => { + getAction(this.url, query).then((res) => { this.dataSource = res }) }, diff --git a/jero-web/src/views/processCenter/components/engineeringConfirmation.vue b/jero-web/src/views/processCenter/components/engineeringConfirmation.vue index 4882eadb2..6951aef25 100644 --- a/jero-web/src/views/processCenter/components/engineeringConfirmation.vue +++ b/jero-web/src/views/processCenter/components/engineeringConfirmation.vue @@ -41,6 +41,7 @@ {{$t('edit')}} @@ -55,6 +56,7 @@ {{$t('deleteLib')}} diff --git a/jero-web/src/views/processCenter/components/reviewedByThePersonInCharge.vue b/jero-web/src/views/processCenter/components/reviewedByThePersonInCharge.vue index 3632066fb..956e31220 100644 --- a/jero-web/src/views/processCenter/components/reviewedByThePersonInCharge.vue +++ b/jero-web/src/views/processCenter/components/reviewedByThePersonInCharge.vue @@ -52,6 +52,7 @@ diff --git a/jero-web/src/views/projectManagement/components/TaskList.vue b/jero-web/src/views/projectManagement/components/TaskList.vue index 8e2a18653..aa03a213b 100644 --- a/jero-web/src/views/projectManagement/components/TaskList.vue +++ b/jero-web/src/views/projectManagement/components/TaskList.vue @@ -218,13 +218,17 @@ actiProcInstId: val.designPId, projectTaskInventoryId: val.projectLawsInventoryId, projectLibraryId: this.$route.query.id, + id: this.$route.query.id, + studioEngineer:this.$route.query.studioEngineer, serialNumber: val.serialNumber, - TaskKey:val.designTaskDefinitionKey, - flowType:2, - Sponsor:'designInitiatorName', - personLiable:'designDutyName', - typeOfDeliverables:'designDeliverableType_dictText', - deliverableTemplate:'designDeliverableTemplate', + TaskKey: val.designTaskDefinitionKey, + flowType: 2, + Sponsor: 'designInitiatorName', + personLiable: 'designDutyName', + typeOfDeliverables: 'designDeliverableType_dictText', + deliverableTemplate: 'designDeliverableTemplate', + projectName:this.$route.query.projectName, + projectNameId:this.$route.query.projectNameId, } break case 2: @@ -232,30 +236,37 @@ taskIds: val.prehomoTaskId, actiProcInstId: val.prehomoPId, projectTaskInventoryId: val.projectLawsInventoryId, + studioEngineer:this.$route.query.studioEngineer, projectLibraryId: this.$route.query.id, serialNumber: val.serialNumber, - TaskKey:val.prehomoTaskDefinitionKey, - flowType:3, - Sponsor:'prehomoInitiatorName', - personLiable:'prehomoDutyName', - typeOfDeliverables:'prehomoDeliverableType_dictText', - deliverableTemplate:'prehomoDeliverableTemplate', + TaskKey: val.prehomoTaskDefinitionKey, + flowType: 3, + id: this.$route.query.id, + Sponsor: 'prehomoInitiatorName', + personLiable: 'prehomoDutyName', + typeOfDeliverables: 'prehomoDeliverableType_dictText', + deliverableTemplate: 'prehomoDeliverableTemplate', + projectName:this.$route.query.projectName, + projectNameId:this.$route.query.projectNameId, } break case 3: query = { taskIds: val.verifyTaskId, actiProcInstId: val.verifyPId, - id: val.id, + id: this.$route.query.id, projectLibraryId: this.$route.query.id, + studioEngineer:this.$route.query.studioEngineer, serialNumber: val.serialNumber, projectTaskInventoryId: val.projectLawsInventoryId, - TaskKey:val.verifyTaskDefinitionKey, - flowType:4, - Sponsor:'verifyInitiatorName', - personLiable:'verifyDutyName', - typeOfDeliverables:'verifyDeliverableType_dictText', - deliverableTemplate:'verifyDeliverableTemplate', + TaskKey: val.verifyTaskDefinitionKey, + flowType: 4, + Sponsor: 'verifyInitiatorName', + personLiable: 'verifyDutyName', + typeOfDeliverables: 'verifyDeliverableType_dictText', + deliverableTemplate: 'verifyDeliverableTemplate', + projectName:this.$route.query.projectName, + projectNameId:this.$route.query.projectNameId, } break } diff --git a/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue b/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue index 629ad1225..f0a069921 100644 --- a/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue +++ b/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue @@ -173,10 +173,10 @@ }, methods:{ paramsManifestClick(item) { - let Obj = {...item, ...this.$route.query} + localStorage.setItem('paramsManifest',JSON.stringify(item)) let newUrl = this.$router.resolve({ path: '/ParameterItemCollection', - query: Obj, + query: this.$route.query, }) window.open(newUrl.href, '_blank') },