From 238a8f5ef0e721b48fd088d98dbf7032f7f15509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E5=B5=A9?= Date: Thu, 20 Jul 2023 09:19:40 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8B=B1=E6=96=87viewer?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ctCertificationInventoryEOServiceImpl.java | 22 ++++++++++++-- .../ProjectLawsInventoryEOServiceImpl.java | 30 +++++++++++-------- 2 files changed, 38 insertions(+), 14 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java index 7cf8f9d4c..87312065f 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java @@ -55,6 +55,7 @@ import com.jero.modules.system.enums.SysCategoryValueTypeEnum; import com.jero.modules.system.mapper.SysCategoryMapper; import com.jero.modules.system.mapper.SysRoleMapper; import com.jero.modules.system.mapper.SysUserMapper; +import com.jero.modules.system.service.IProjectUserDutyTerritoryService; import com.jero.modules.system.service.ISysCategoryService; import com.jero.modules.system.service.ISysDictItemService; import com.jero.modules.system.service.ISysUserService; @@ -143,6 +144,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl dutyTerritoryList = this.projectUserDutyTerritoryService.queryDutyTerritoryByUserId(currentUser.getId()); + if (ObjectUtils.isNotEmpty(dutyTerritoryList)) { + queryWrapper.and(query -> { + for (String duty : dutyTerritoryList) { + query.or(q -> { + q.like("duty_territory", duty); + }); + } + }); + } + } IPage pageList = this.page(page, queryWrapper); this.disposeData(pageList.getRecords(),cut); List records = this.hearSort(projectCertificationInventoryEO, pageList.getRecords()); 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 36718defb..34093c51e 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 @@ -11366,7 +11366,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl dutyTerritoryList = this.projectUserDutyTerritoryService.queryDutyTerritoryByUserId(currentUser.getId()); + if (ObjectUtils.isNotEmpty(dutyTerritoryList)) { + queryWrapper.and(query -> { + for (String duty : dutyTerritoryList) { + query.or(q -> { + q.like("duty_territory", duty); + }); + } + }); + } + } if (StringUtils.isNotEmpty(designFlowStatusStr)) { String finalDesignFlowStatusStr = designFlowStatusStr.replaceAll("\\*",""); queryWrapper.and(query -> { @@ -13613,8 +13629,6 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl page = new Page(pageNo, pageSize); IPage pageList = this.page(page, queryWrapper); List result = pageList.getRecords(); - if (isProjectRole == Integer.parseInt(ProjectRoleEnum.VIEWER.getValue())) { - //查当前用户Viewer对应责任领域 - List dutyTerritoryList = this.projectUserDutyTerritoryService.queryDutyTerritoryByUserId(currentUser.getId()); - if (ObjectUtils.isNotEmpty(dutyTerritoryList)) { - result = result.stream().filter(e -> dutyTerritoryList.contains(e.getDutyTerritory())).collect(Collectors.toList()); - } else { - result = new ArrayList<>(); - } - } + this.dataDispose(result,currentUser,isProjectRole,projectLawsInventoryEO.getCut()); this.dataDictDispose(result,projectLawsInventoryEO.getCut()); //表头排序 From 15bfef302bc4dbda515678a78930361c1b127383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 20 Jul 2023 10:32:14 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E7=BC=A9=E6=94=BE=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/public/index.html | 2 +- .../src/views/phoneView/problemKnowledgeBase.vue | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/jero-web/public/index.html b/jero-web/public/index.html index cd9912069..9ff236148 100644 --- a/jero-web/public/index.html +++ b/jero-web/public/index.html @@ -5,7 +5,7 @@ - + 蔚来全球法规平台 diff --git a/jero-web/src/views/phoneView/problemKnowledgeBase.vue b/jero-web/src/views/phoneView/problemKnowledgeBase.vue index cc997a72b..2d0cca0e9 100644 --- a/jero-web/src/views/phoneView/problemKnowledgeBase.vue +++ b/jero-web/src/views/phoneView/problemKnowledgeBase.vue @@ -24,7 +24,7 @@ -
+
@@ -139,7 +139,7 @@ import { mapGetters } from 'vuex' import { kkFileView } from '@/utils/kkfileView' import { deleteAction } from '../../api/manage' - import { Dialog, Toast } from 'vant' + import { Dialog, ImagePreview, Toast } from 'vant' export default { name: 'phoneProblemKnowledgeBase', @@ -172,6 +172,14 @@ } }) } + this.$nextTick(() => { + let contentId = document.getElementById('contentId') + contentId.onclick = function(e) { + if (e.target.localName == 'img') { + ImagePreview([e.target.currentSrc]) + } + } + }) window.addEventListener('scroll', this.scrolling) window.addEventListener('mousedown', this.handleonmousedown) this.getQueryBy() From c72b6eb51518fed67490b85706358c86c9249961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E5=B5=A9?= Date: Fri, 21 Jul 2023 09:53:03 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AFpre-homo=E6=B5=81=E7=A8=8B=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enums/CertificationFlowNodeEnum.java | 2 + ...ctCertificationInventoryEOServiceImpl.java | 29 ++++++++++++- .../PhoneProcessHistoryEOController.java | 15 ++++++- .../service/IProcessHistoryEOService.java | 16 +++++++ .../impl/ProcessHistoryEOServiceImpl.java | 43 +++++++++++++++++++ 5 files changed, 102 insertions(+), 3 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/enums/CertificationFlowNodeEnum.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/enums/CertificationFlowNodeEnum.java index c5d43e6e3..b1c0c767e 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/enums/CertificationFlowNodeEnum.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/enums/CertificationFlowNodeEnum.java @@ -25,10 +25,12 @@ public enum CertificationFlowNodeEnum { * 任务办理 -> 责任人接受之后,等待提交交付物 * 任务审查 -> 责任人提交交付物之后,认证工程师审查。 */ + LIST_CONFIRMATION("List Release","清单校核","List Release"), CHECKLIST_VERIFICATION ("Task initiation","任务发起","Task Initiation"), TASK_RESPONSIBILITY_CONFIRMATION ("Task responsibility confirmation","任务责任确认","Responsibilty Confirmation"), TASK_HANDLING ("Task handling","任务办理","Task Handling"), TASK_REVIEW ("Task Review","任务审查","Task Review"), + TASK_SS("Supplementary Submission","补充提交","Supplementary Submission"), // 责任人补充提交发起 ; String key; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java index 87312065f..263506baa 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java @@ -66,6 +66,7 @@ import com.jero.modules.todoCenter.enums.TodoCenterStatusEnum; import com.jero.modules.todoCenter.service.IProcessInfoDetailEOService; import com.jero.modules.todoCenter.service.IProcessInfoEOService; import com.jero.modules.wkflow.enums.FlowTypeEnum; +import com.jero.modules.wkflow.service.IProcessHistoryEOService; import lombok.SneakyThrows; import org.apache.commons.io.FileUtils; import org.apache.poi.hssf.usermodel.*; @@ -177,6 +178,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl updateStatusBatch(JSONObject json) { String ids = json.getString("ids"); String flowStatus = json.getString("flowStatus"); + LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); if(StringUtils.isNotEmpty(ids)){ QueryWrapper pciQueryWrap = new QueryWrapper<>(); pciQueryWrap.lambda().in(ProjectCertificationInventoryEO::getId,Arrays.asList(ids.split(","))); @@ -852,6 +856,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl { pciEo.setFlowStatus(flowStatus); + processHistoryEOService.add(pciEo.getId(),CertificationFlowNodeEnum.TASK_SS.getKey(),currentUser.getId(),null,null,null); }); this.updateBatchById(pciEoList); @@ -1149,11 +1154,12 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl processInfoDetailEOList = new ArrayList<>(); - + LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); for (ProjectCertificationInventoryEO projectCertificationInventoryEO : projectCertificationInventoryEOList) { // 将数据的状态更新为:清单待校核,更新截止时间。等待认证工程师进行操作。 projectCertificationInventoryEO.setFlowStatus(CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()); projectCertificationInventoryEO.setInventoryVerifyEndTime(inventoryVerifyEndTime); + processHistoryEOService.add(projectCertificationInventoryEO.getId(),CertificationFlowNodeEnum.LIST_CONFIRMATION.getKey(),currentUser.getId(),null,null,null); } this.saveProjectCertificationInventoryLog(projectCertificationInventoryEOList,OperatorTypeEnum.CERTIFICATION_INVENTORY_STUDIO_ISSUE.getValue()); @@ -1900,6 +1906,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl> queryCertificationProcessHistoryList(@RequestParam String id,@RequestParam String cut) { + List list = processHistoryEOService.queryCertificationProcessHistoryList(id,cut); + return Result.OK(list); + } + } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/service/IProcessHistoryEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/service/IProcessHistoryEOService.java index 5c9d6adcd..2455d8b9a 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/service/IProcessHistoryEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/service/IProcessHistoryEOService.java @@ -23,6 +23,18 @@ public interface IProcessHistoryEOService extends IService { */ void add(ProcessHistoryEO processHistoryEO); + + /** + * 添加历史记录 + * @param pid 流程实例ID + * @param tdKey 操作节点 + * @param opPersonId 操作人 + * @param opResult 操作结果 + * @param opinion 意见 + * @param file 附件id,多个之间使用英文逗号分隔 + */ + void add(String pid, String tdKey, String opPersonId, String opResult, String opinion, String file); + /** * 更新 * @@ -39,6 +51,8 @@ public interface IProcessHistoryEOService extends IService { */ void deleteById(String id); + void deleteByPId(String pids); + /** * 批量删除 * @@ -77,4 +91,6 @@ public interface IProcessHistoryEOService extends IService { * @return */ List queryComplianceProcessHistoryList(Map params); + + List queryCertificationProcessHistoryList(String id,String cut); } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/service/impl/ProcessHistoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/service/impl/ProcessHistoryEOServiceImpl.java index a1708edf1..419ebd2b7 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/service/impl/ProcessHistoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/service/impl/ProcessHistoryEOServiceImpl.java @@ -63,6 +63,27 @@ public class ProcessHistoryEOServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); + queryWrapper.lambda().in(ProcessHistoryEO::getActiProcInstId,pids.split(",")); + this.baseMapper.delete(queryWrapper); + } + } + /** * 批量删除 * @@ -283,4 +313,17 @@ public class ProcessHistoryEOServiceImpl extends ServiceImpl queryCertificationProcessHistoryList(String id,String cut) { + List processHistoryEOList = null; + if(StringUtils.isNotEmpty(id)){ + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.orderByAsc("create_time"); + queryWrapper.lambda().in(ProcessHistoryEO::getActiProcInstId, id); + processHistoryEOList = this.baseMapper.selectList(queryWrapper); + this.disposeData(processHistoryEOList, cut); + } + return processHistoryEOList; + + } } From 76818a89381855f4008eb744b8c23e099960bf0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 21 Jul 2023 10:19:15 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AFpreHomo=E5=BE=97=E6=B5=81=E7=A8=8B=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/phoneView/preHomoMangement.vue | 104 +++++++++++++++++- 1 file changed, 101 insertions(+), 3 deletions(-) diff --git a/jero-web/src/views/phoneView/preHomoMangement.vue b/jero-web/src/views/phoneView/preHomoMangement.vue index 965477423..243cb40de 100644 --- a/jero-web/src/views/phoneView/preHomoMangement.vue +++ b/jero-web/src/views/phoneView/preHomoMangement.vue @@ -92,8 +92,45 @@ + + + +
+
+ {{item.name}} +
+
+ + {{statusName[item.operatorResult]}} + +
+
+ + {{item.assignee}} + + | + + {{item.createTime}} + +
+
+ {{item.approvalOpinion}} +
+
+ {{val}} +
+
+
+
+
+ :title="$t('DeliverablesResult')" name="4">
- +
-
- - {{ $t('globalReplacement') }} -
+ + + + + + @@ -184,45 +184,45 @@ - - - - - - - - - -
- {{ $t('cancel') }} - {{ $t('submit') }} -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue b/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue index c77e23344..e04a92304 100644 --- a/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue +++ b/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue @@ -79,6 +79,10 @@
+
+ + {{$t('globalReplacement')}} +
{{$t('templateDownload')}} @@ -269,12 +273,52 @@ + + + + + + + + + +
+ {{ $t('cancel') }} + {{ $t('submit') }} +
+