| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改附件http |
| | | * |
| | |
| | | public List<BaselineRelease> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<BaselineRelease> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list.size() > 0) { |
| | | workflowService.getRunFlow(list, "jxfb"); |
| | |
| | | public List<ConfigAuditReport> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<ConfigAuditReport> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list != null && list.size() > 0) { |
| | | sysOssService.setListOsses(list, "config_audit_report"); |
| | |
| | | public List<ConfigItemOutbound> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<ConfigItemOutbound> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list.size() > 0) { |
| | | workflowService.getRunFlow(list, "pzxck"); |
| | |
| | | |
| | | import com.zt.common.dao.BaseDao; |
| | | import com.zt.life.modules.configItemWarehouse.model.ConfigItemWarehouse; |
| | | import com.zt.life.modules.configItemWarehouse.model.WarehouseAudit; |
| | | import com.zt.life.modules.configItemWarehouse.model.WarehouseCmAudit; |
| | | import com.zt.life.modules.configItemWarehouse.model.WarehouseQaAudit; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | |
| | |
| | | |
| | | List<ConfigItemWarehouse> getList(Map<String, Object> params); |
| | | |
| | | List<WarehouseCmAudit> itemList(String dictType); |
| | | List<WarehouseCmAudit> itemCmList(String dictType); |
| | | List<WarehouseQaAudit> itemQaList(String dictType); |
| | | } |
New file |
| | |
| | | package com.zt.life.modules.configItemWarehouse.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.zt.common.entity.BusiEntity; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * warehouse_cm_audit |
| | | * |
| | | * @author zt generator |
| | | * @since 1.0.0 2023-11-27 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper=false) |
| | | public class WarehouseAudit extends BusiEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "入库ID") |
| | | private Long warehouseId; |
| | | |
| | | @ApiModelProperty(value = "序号") |
| | | private Integer no; |
| | | |
| | | @ApiModelProperty(value = "检查项") |
| | | private String examineItem; |
| | | |
| | | @ApiModelProperty(value = "检查结果") |
| | | private String examineResult; |
| | | |
| | | @ApiModelProperty(value = "不适用说明") |
| | | private String notApplyExplan; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.zt.core.context.UserContext; |
| | | import com.zt.life.export.dto.WordFile; |
| | | import com.zt.life.export.service.WordFileService; |
| | | import com.zt.life.modules.baselineRelease.model.BaselineReleaseRemark; |
| | | import com.zt.life.modules.configItemWarehouse.dao.ConfigItemWarehouseDao; |
| | | import com.zt.life.modules.configItemWarehouse.dto.ConfigItemWarehouseDto; |
| | | import com.zt.life.modules.configItemWarehouse.model.ConfigItemWarehouse; |
| | |
| | | import com.zt.life.modules.project.service.ProjectService; |
| | | import com.zt.life.modules.testCheckOrder.model.TestCheckOrder; |
| | | import com.zt.life.modules.testCheckOrder.service.TestCheckOrderService; |
| | | import com.zt.life.sys.dto.OssDto; |
| | | import com.zt.life.sys.service.SysOssConfigService; |
| | | import com.zt.modules.coderule.service.SysCodeRuleService; |
| | | import com.zt.modules.oss.service.SysOssService; |
| | |
| | | public List<ConfigItemWarehouse> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<ConfigItemWarehouse> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list.size() > 0) { |
| | | workflowService.getRunFlow(list, "pzxrk"); |
| | |
| | | ConfigItemWarehouse configItemWarehouse = new ConfigItemWarehouse(); |
| | | configItemWarehouse.setLibraryType(libraryType); |
| | | data.setConfigItemWarehouse(configItemWarehouse); |
| | | List<?> cmList = baseDao.itemList("warehouse_cm_audit"); |
| | | List<?> CmAuditList = cmList; |
| | | data.setCmAuditList((List<WarehouseCmAudit>) CmAuditList); |
| | | List<?> qaList = baseDao.itemList("warehouse_qa_audit"); |
| | | List<?> QaAuditList = qaList; |
| | | data.setQaAuditList((List<WarehouseQaAudit>) QaAuditList); |
| | | List<?> cmList = this.itemCmList("warehouse_cm_audit"); |
| | | data.setCmAuditList((List<WarehouseCmAudit>) cmList); |
| | | List<?> qaList = this.itemQaList("warehouse_qa_audit"); |
| | | data.setQaAuditList((List<WarehouseQaAudit>) qaList); |
| | | List<?> resultList = new ArrayList<>(); |
| | | if ("1".equals(libraryType)) { |
| | | List<String> srcId = technicalService.getsrcId(projectId); |
| | |
| | | return data; |
| | | } |
| | | |
| | | public List<WarehouseCmAudit> itemCmList(String dictType) { |
| | | return baseDao.itemCmList(dictType); |
| | | } |
| | | public List<WarehouseQaAudit> itemQaList(String dictType) { |
| | | return baseDao.itemQaList(dictType); |
| | | } |
| | | |
| | | public void exportWarehouseOrder(Long id, HttpServletRequest request, HttpServletResponse response, String libraryType) { |
| | | try { |
| | | ConfigItemWarehouseDto dataObj = this.getDto(null, id, libraryType); |
| | |
| | | public List<ContractReview> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<ContractReview> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list.size() > 0) { |
| | | sysOssService.setListOsses(list, "contract_review"); |
| | |
| | | map.put("funCode", "item_circulat_order"); |
| | | map.put("projectId",itemCirculatOrderDto.getProjectId().toString()); |
| | | itemCirculatOrderDto.getCirculatOrder().setCode(sysCodeRuleService.getNewCode(map)); |
| | | Boolean result = itemCirculatOrderService.save(itemCirculatOrderDto); |
| | | Long result = itemCirculatOrderService.save(itemCirculatOrderDto); |
| | | return Result.ok(itemCirculatOrderDto.getCirculatOrder().getId()); |
| | | } |
| | | |
| | |
| | | public Result<Long> update(@RequestBody ItemCirculatOrderDto itemCirculatOrderDto){ |
| | | //效验数据 |
| | | ValidatorUtils.validateEntity(itemCirculatOrderDto.getCirculatOrder(), UpdateGroup.class, DefaultGroup.class); |
| | | Boolean result = itemCirculatOrderService.save(itemCirculatOrderDto); |
| | | |
| | | return Result.ok(itemCirculatOrderDto.getCirculatOrder().getId()); |
| | | Long result = itemCirculatOrderService.save(itemCirculatOrderDto); |
| | | //返回的是项目入库的ID |
| | | return Result.ok(result); |
| | | } |
| | | |
| | | @DeleteMapping("deleteCirculat") |
| | |
| | | |
| | | import cn.hutool.core.convert.Convert; |
| | | import com.zt.common.service.BaseService; |
| | | import com.zt.common.utils.UUIDUtil; |
| | | import com.zt.core.context.User; |
| | | import com.zt.core.context.UserContext; |
| | | import com.zt.life.export.dto.WordFile; |
| | | import com.zt.life.export.service.WordFileService; |
| | | import com.zt.life.modules.configItemWarehouse.model.ConfigItemWarehouse; |
| | | import com.zt.life.modules.configItemWarehouse.model.WarehouseCmAudit; |
| | | import com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem; |
| | | import com.zt.life.modules.configItemWarehouse.model.WarehouseQaAudit; |
| | | import com.zt.life.modules.configItemWarehouse.service.ConfigItemWarehouseService; |
| | | import com.zt.life.modules.configItemWarehouse.service.WarehouseCmAuditService; |
| | | import com.zt.life.modules.configItemWarehouse.service.WarehouseConfigItemService; |
| | | import com.zt.life.modules.configItemWarehouse.service.WarehouseQaAuditService; |
| | | import com.zt.life.modules.itemCirculatOrder.dao.ItemCirculatOrderDao; |
| | | import com.zt.life.modules.itemCirculatOrder.dto.ItemCirculatOrderDto; |
| | | import com.zt.life.modules.itemCirculatOrder.model.ItemCirculatOrder; |
| | |
| | | import com.zt.life.sys.dto.OssDto; |
| | | import com.zt.life.sys.service.SysOssConfigService; |
| | | import com.zt.modules.coderule.service.SysCodeRuleService; |
| | | import com.zt.modules.oss.model.SysOss; |
| | | import com.zt.modules.oss.service.SysOssService; |
| | | import com.zt.modules.workflow.dto.FlowInfoDto; |
| | | import com.zt.modules.workflow.service.WorkflowService; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | @Autowired |
| | | private GetFilesPath getFilesPath; |
| | | |
| | | @Autowired |
| | | private ConfigItemWarehouseService configItemWarehouseService; |
| | | |
| | | @Autowired |
| | | private WarehouseCmAuditService cmAuditService; |
| | | |
| | | @Autowired |
| | | private WarehouseQaAuditService qaAuditService; |
| | | |
| | | @Autowired |
| | | private WarehouseConfigItemService configItemService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | |
| | | public List<ItemCirculatOrder> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<ItemCirculatOrder> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list.size() > 0) { |
| | | workflowService.getRunFlow(list, "wplz"); |
| | |
| | | super.deleteLogic(ids); |
| | | } |
| | | |
| | | public Boolean save(ItemCirculatOrderDto itemCirculatOrderDto) { |
| | | public Long save(ItemCirculatOrderDto itemCirculatOrderDto) { |
| | | User user = UserContext.getUser(); |
| | | String userName=user.getRealName(); |
| | | String userNameId=user.getId().toString(); |
| | | Long configItemWarehouseId = 0L; |
| | | Long circulatOrderId = itemCirculatOrderDto.getCirculatOrder().getId(); |
| | | if (circulatOrderId != null) |
| | | baseDao.updateById(itemCirculatOrderDto.getCirculatOrder()); |
| | |
| | | if (flowInfoDto != null && flowInfoDto.getSubmitType() != null && "tj,bl".contains(flowInfoDto.getSubmitType())) { |
| | | if ("tj".equals(flowInfoDto.getSubmitType())) { |
| | | workflowService.startFlow(flowInfoDto.getFlowCode(), bizId); |
| | | } else { |
| | | if ("wplz_wprk".equals(flowInfoDto.getStepIdMark()) && "bl".equals(flowInfoDto.getSubmitType())) { |
| | | String Code = itemCirculatOrderDto.getCirculatOrder().getCode(); |
| | | configItemWarehouseId = UUIDUtil.generateId(); |
| | | ConfigItemWarehouse configItemWarehouse = new ConfigItemWarehouse(); |
| | | configItemWarehouse.setId(configItemWarehouseId); |
| | | configItemWarehouse.setProjectId(itemCirculatOrderDto.getProjectId()); |
| | | configItemWarehouse.setLibraryType("1"); |
| | | Map<String, String> map = new HashMap<>(); |
| | | map.put("funCode", "config_item_warehouse"); |
| | | map.put("projectId", itemCirculatOrderDto.getProjectId().toString()); |
| | | configItemWarehouse.setCode(sysCodeRuleService.getNewCode(map)); |
| | | // insert |
| | | configItemWarehouseService.insert(configItemWarehouse); |
| | | Long WarehouseConfigItemId = 0L; |
| | | for (int i = 0; i < itemCirculatOrderDto.getTechnicalList().size(); i++) { |
| | | ItemCirculatOrderTechnical circulatOrderTechnical = itemCirculatOrderDto.getTechnicalList().get(i); |
| | | Long circulatOrderTechnicalId = circulatOrderTechnical.getId(); |
| | | WarehouseConfigItemId = UUIDUtil.generateId(); |
| | | |
| | | WarehouseConfigItem warehouseConfigItem = new WarehouseConfigItem(); |
| | | |
| | | warehouseConfigItem.setId(WarehouseConfigItemId); |
| | | warehouseConfigItem.setProjectId(itemCirculatOrderDto.getProjectId()); |
| | | warehouseConfigItem.setLibraryType("1"); |
| | | warehouseConfigItem.setSrcId(circulatOrderTechnicalId); |
| | | warehouseConfigItem.setWarehouseId(configItemWarehouseId); |
| | | warehouseConfigItem.setNo(circulatOrderTechnical.getNo()); |
| | | String itemName = circulatOrderTechnical.getName(); |
| | | itemName = itemName.replace(Code, ""); |
| | | warehouseConfigItem.setItemName(itemName); |
| | | warehouseConfigItem.setItemIdentify(circulatOrderTechnical.getName()); |
| | | warehouseConfigItem.setVersion(circulatOrderTechnical.getVersion()); |
| | | warehouseConfigItem.setSecretClass(circulatOrderTechnical.getSecretClass()); |
| | | // insert |
| | | configItemService.insert(warehouseConfigItem); |
| | | List<SysOss> sysOssList = sysOssService.getSysOssByBusiIdAnd(circulatOrderTechnicalId, "circulat_order"); |
| | | for (SysOss sysOss : sysOssList) { |
| | | sysOss.setId(UUIDUtil.generateId()); |
| | | sysOss.setBusiId(WarehouseConfigItemId); |
| | | sysOss.setBusiType("config_item_warehouse"); |
| | | sysOss.setBusiTypeName("配置项入库"); |
| | | sysOss.setBusiField("config_item_warehouse"); |
| | | sysOss.setBusiFieldName("配置项入库"); |
| | | sysOssService.insert(sysOss); |
| | | } |
| | | } |
| | | List<WarehouseCmAudit> cmList = configItemWarehouseService.itemCmList("warehouse_cm_audit"); |
| | | for (WarehouseCmAudit cmAudit : cmList) { |
| | | cmAudit.setWarehouseId(configItemWarehouseId); |
| | | cmAuditService.insert(cmAudit); |
| | | } |
| | | List<WarehouseQaAudit> qaList = configItemWarehouseService.itemQaList("warehouse_qa_audit"); |
| | | for (WarehouseQaAudit qaAudit : qaList) { |
| | | qaAudit.setWarehouseId(configItemWarehouseId); |
| | | qaAuditService.insert(qaAudit); |
| | | } |
| | | } |
| | | } |
| | | if ("wplz_wprk".equals(flowInfoDto.getStepIdMark())){ |
| | | itemCirculatOrderDto.getCirculatOrder().setIssueSituation("1"); |
| | | baseDao.updateById(itemCirculatOrderDto.getCirculatOrder()); |
| | | } |
| | | workflowService.approvePass(flowInfoDto.getFlowCode(), bizId, flowInfoDto.getStepIdMark()); |
| | | } |
| | | return true; |
| | | return configItemWarehouseId; |
| | | } |
| | | |
| | | public ItemCirculatOrderDto getDto(Long projectId, Long circulatOrderId) { |
| | |
| | | import com.zt.core.context.User; |
| | | import com.zt.core.context.UserContext; |
| | | import com.zt.core.sys.model.SysUser; |
| | | import com.zt.life.modules.project.dto.MyProjectRoleDto; |
| | | import com.zt.life.modules.project.dto.ProjectUserDto; |
| | | import com.zt.life.modules.project.model.Project; |
| | | import com.zt.life.modules.project.service.ProjectService; |
| | |
| | | return PageResult.ok(Project); |
| | | } |
| | | |
| | | @GetMapping("myProjectRole/{projectId}") |
| | | @ApiOperation("获取当前用户的项目角色") |
| | | public Result<MyProjectRoleDto> myProjectRole(@PathVariable("projectId") Long projectId) { |
| | | MyProjectRoleDto data = projectService.getMyProjectRole(projectId); |
| | | return Result.ok(data); |
| | | } |
| | | |
| | | @GetMapping("{id}") |
| | | @ApiOperation("信息") |
| | | public Result<Project> get(@PathVariable("id") Long id) { |
| | |
| | | package com.zt.life.modules.project.dao; |
| | | |
| | | import com.zt.common.dao.BaseDao; |
| | | import com.zt.life.modules.project.dto.MyProjectRoleDto; |
| | | import com.zt.life.modules.project.model.Project; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | |
| | | |
| | | List<Project> getList(Map<String, Object> params); |
| | | |
| | | MyProjectRoleDto getMyProjectRole(Long projectId, Long userId); |
| | | } |
New file |
| | |
| | | package com.zt.life.modules.project.dto; |
| | | |
| | | import com.zt.core.sys.model.SysUser; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class MyProjectRoleDto { |
| | | private boolean isZrr; |
| | | private boolean isCsry; |
| | | private boolean isShry; |
| | | private boolean isPzry; |
| | | |
| | | private boolean isBmld; |
| | | private boolean isWpgly; |
| | | private boolean isZljdy; |
| | | } |
| | | |
| | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "样品状态字符串") |
| | | String sampleStatusStr; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "密级字符串") |
| | | String secretClassStr; |
| | | } |
| | |
| | | public List<Environ> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<Environ> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list.size() > 0) { |
| | | sysOssService.setListOsses(list, "test_environ"); |
| | |
| | | import com.zt.core.context.User; |
| | | import com.zt.core.context.UserContext; |
| | | import com.zt.life.modules.project.dao.ProjectDao; |
| | | import com.zt.life.modules.project.dto.MyProjectRoleDto; |
| | | import com.zt.life.modules.project.model.Project; |
| | | import com.zt.modules.coderule.service.SysCodeRuleService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.zt.common.db.query.QueryFilter; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | public List<Project> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId", deptId); |
| | | return baseDao.getList(queryFilter.getQueryParams()); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | public MyProjectRoleDto getMyProjectRole(Long projectId) { |
| | | Long userId = UserContext.getUser().getId(); |
| | | MyProjectRoleDto data = baseDao.getMyProjectRole(projectId, userId); |
| | | return data; |
| | | } |
| | | } |
| | |
| | | package com.zt.life.modules.project.service; |
| | | |
| | | import cn.hutool.core.convert.Convert; |
| | | import com.zt.common.service.BaseService; |
| | | import com.zt.common.utils.CommonUtils; |
| | | import com.zt.core.context.User; |
| | |
| | | import com.zt.modules.coderule.service.SysCodeRuleService; |
| | | import com.zt.modules.oss.service.SysOssService; |
| | | import com.zt.modules.sys.service.SysDictTypeService; |
| | | import org.apache.tomcat.util.bcel.classfile.Constant; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.zt.common.db.query.QueryFilter; |
| | | |
| | | import javax.naming.Context; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.FileNotFoundException; |
| | |
| | | public List<SoftwareTestOrder> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<SoftwareTestOrder> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list != null && list.size() > 0) { |
| | | sysOssService.setListOsses(list, "test_order"); |
| | |
| | | String projectCode = project.getCode(); |
| | | String softIdentity =project.getSoftwareIdentity(); |
| | | List<?> testItemResult = baseDao.dictList("testItem_type", projectCode,softIdentity); |
| | | List<?> measuredList = testItemResult; |
| | | data.setMeasuredList((List<SoftwareTestOrderMeasured>) measuredList); |
| | | data.setMeasuredList((List<SoftwareTestOrderMeasured>) testItemResult); |
| | | |
| | | List<?> productLibraryResult = baseDao.dictList("product_library_file", projectCode,null); |
| | | List<?> deliverableList = productLibraryResult; |
| | | data.setDeliverableList((List<SoftwareTestOrderDeliverable>) deliverableList); |
| | | data.setDeliverableList((List<SoftwareTestOrderDeliverable>) productLibraryResult); |
| | | } |
| | | |
| | | if (projectId != null) { |
| | |
| | | measured.setIsMeasuredStr(isMeasuredStr); |
| | | } |
| | | |
| | | String secretClass = getShowDictList.getShowDictList(dataObj.getProject().getSecretClass(), "secret_class", false); |
| | | dataObj.getSoftwareTestOrder().setSecretClassStr(secretClass); |
| | | |
| | | String sortwareTypeStr = getShowDictList.getShowDictList(dataObj.getProject().getSoftwareType(), "software_type", false); |
| | | dataObj.getSoftwareTestOrder().setSortwareTypeStr(sortwareTypeStr); |
| | | |
| | |
| | | public List<QaAuditReport> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<QaAuditReport> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list != null && list.size() > 0) { |
| | | workflowService.getRunFlow(list, "qashbg"); |
| | |
| | | public List<RiskMeasure> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<RiskMeasure> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | return list; |
| | | } |
| | |
| | | public List<TestCheckOrder> page(QueryFilter queryFilter) { |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<TestCheckOrder> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list.size() > 0) { |
| | | workflowService.getRunFlow(list, "csjcd"); |
| | |
| | | pageCode=pageCode.replace("%",""); |
| | | User user = UserContext.getUser(); |
| | | Integer secretClass = user.getSecretClass(); |
| | | Long deptId = user.getDeptId(); |
| | | queryFilter.getQueryParams().put("secretClass",secretClass); |
| | | queryFilter.getQueryParams().put("deptId",deptId); |
| | | List<TestReviewComment> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | if (list.size() > 0) { |
| | | sysOssService.setListOsses(list, "test_review_comment_" + pageCode); |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | ORDER BY ${orderBySql} |
| | | </if> |
| | | </select> |
| | | <select id="itemList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseCmAudit"> |
| | | <select id="itemCmList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseCmAudit"> |
| | | SET @row_number = 0; |
| | | SELECT dd.dict_label AS examineItem, |
| | | (@row_number := @row_number + 1) AS no |
| | | FROM sys_dict_type dt |
| | | JOIN sys_dict_data dd ON dt.id = dd.dict_type_id |
| | | <where> |
| | | dd.is_delete = 0 |
| | | <if test="dictType != null and dictType != ''"> |
| | | and dt.DICT_TYPE = #{dictType} |
| | | </if> |
| | | </where> |
| | | ORDER BY dd.sort |
| | | </select> |
| | | |
| | | <select id="itemQaList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseQaAudit"> |
| | | SET @row_number = 0; |
| | | SELECT dd.dict_label AS examineItem, |
| | | (@row_number := @row_number + 1) AS no |
| | |
| | | and warehouse_id = ${warehouseId} |
| | | </if> |
| | | </where> |
| | | <if test="orderBySql!=null"> |
| | | ORDER BY ${orderBySql} |
| | | </if> |
| | | ORDER BY `no` |
| | | </select> |
| | | <select id="itemList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem"> |
| | | SET @row_number = 0; |
| | |
| | | </if> |
| | | UNION |
| | | SELECT (@row_number := @row_number + 1) AS no, |
| | | NULL AS secretClass, |
| | | p.secret_class, |
| | | '软件测试委托单' AS itemName, |
| | | NULL AS version, |
| | | s.code AS itemIdentify, |
| | | s.id as src_id |
| | | FROM software_test_order s |
| | | JOIN project p ON p.id = ${projectId} |
| | | WHERE s.is_delete = 0 |
| | | AND s.project_id = ${projectId} |
| | | <if test="ids!=null and ids!=''"> |
| | |
| | | </if> |
| | | UNION |
| | | SELECT (@row_number := @row_number + 1) AS no, |
| | | NULL AS secretClass, |
| | | p.secret_class, |
| | | '物品流转单' AS itemName, |
| | | NULL AS version, |
| | | i.code AS itemIdentify, |
| | | i.id as src_id |
| | | FROM item_circulat_order i |
| | | JOIN project p ON p.id = ${projectId} |
| | | WHERE i.is_delete = 0 |
| | | AND i.project_id = ${projectId} |
| | | <if test="ids!=null and ids!=''"> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <where> |
| | | a.is_delete = 0 and p.is_delete = 0 |
| | | <if test="whereSql!=null"> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="tableName!=null and tableName!=''"> |
| | | and id not in (select project_id from ${tableName} where is_delete = 0 |
| | | <if test="pageCode !=null and pageCode !='' "> |
| | |
| | | ORDER BY ${orderBySql} |
| | | </if> |
| | | </select> |
| | | <select id="getMyProjectRole" resultType="com.zt.life.modules.project.dto.MyProjectRoleDto"> |
| | | SELECT CASE |
| | | WHEN |
| | | concat(',', a.project_leader, ',') LIKE concat('%,', #{userId}, ',%') THEN |
| | | TRUE |
| | | ELSE FALSE |
| | | END AS isZrr, |
| | | CASE |
| | | WHEN concat(',', a.project_testers, ',') LIKE concat('%,', #{userId}, ',%') THEN |
| | | TRUE |
| | | ELSE FALSE |
| | | END AS isCsry, |
| | | CASE |
| | | WHEN concat(',', a.project_reviewer, ',') LIKE concat('%,', #{userId}, ',%') THEN |
| | | TRUE |
| | | ELSE FALSE |
| | | END AS isShry, |
| | | CASE |
| | | WHEN concat(',', a.project_configer, ',') LIKE concat('%,', #{userId}, ',%') THEN |
| | | TRUE |
| | | ELSE FALSE |
| | | END AS isPzry, |
| | | CASE |
| | | WHEN EXISTS(SELECT 1 |
| | | FROM sys_user u, |
| | | sys_role_user ru, |
| | | sys_role r |
| | | WHERE u.id = 0 |
| | | AND u.DEPT_ID = a.biz_dept_id |
| | | AND r.id = ru.role_id |
| | | and r.code = 'zr' |
| | | AND ru.user_id = ${userId} |
| | | AND u.IS_DELETE = 0 |
| | | AND ru.IS_DELETE = 0 |
| | | AND r.IS_DELETE = 0 |
| | | ) THEN |
| | | TRUE |
| | | ELSE FALSE |
| | | END AS isBmld, |
| | | CASE |
| | | WHEN EXISTS(SELECT 1 |
| | | FROM sys_user u, |
| | | sys_role_user ru, |
| | | sys_role r |
| | | WHERE u.id = 0 |
| | | AND u.DEPT_ID = a.biz_dept_id |
| | | AND r.id = ru.role_id |
| | | and r.code = 'wpgly' |
| | | AND ru.user_id = ${userId} |
| | | AND u.IS_DELETE = 0 |
| | | AND ru.IS_DELETE = 0 |
| | | AND r.IS_DELETE = 0 |
| | | ) THEN |
| | | TRUE |
| | | ELSE FALSE |
| | | END AS isWpgly, |
| | | CASE |
| | | WHEN EXISTS(SELECT 1 |
| | | FROM sys_user u, |
| | | sys_role_user ru, |
| | | sys_role r |
| | | WHERE u.id = 0 |
| | | AND u.DEPT_ID = a.biz_dept_id |
| | | AND r.id = ru.role_id |
| | | and r.code = 'zljd' |
| | | AND ru.user_id = ${userId} |
| | | AND u.IS_DELETE = 0 |
| | | AND ru.IS_DELETE = 0 |
| | | AND r.IS_DELETE = 0 |
| | | ) THEN |
| | | TRUE |
| | | ELSE FALSE |
| | | END AS isZljdy |
| | | FROM project a |
| | | WHERE a.ID = ${projectId} |
| | | AND a.is_delete = 0 |
| | | </select> |
| | | </mapper> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | <if test="secretClass!=null"> |
| | | and p.secret_class <= #{secretClass} |
| | | </if> |
| | | <if test="deptId!=null"> |
| | | and p.biz_dept_id = #{deptId} |
| | | </if> |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | |
| | | min-spare-threads: 30 |
| | | port: 8050 |
| | | servlet: |
| | | context-path: /life-protection |
| | | context-path: /test-item |
| | | session: |
| | | cookie: |
| | | http-only: true |
| | |
| | | zt: |
| | | oss: |
| | | type: local |
| | | local-domain: http://127.0.0.1:8050/life-protection/ |
| | | local-domain: http://127.0.0.1:8050/test-item/ |
| | | local-path: D:/TestProjectFiles/ #附件存储目录 |
| | | local-qd-path: D:/TestProjectFiles/ #附件存储目录 |
| | | local-prefix: accessories #附件存储子目录 |
| | |
| | | NODE_ENV=development |
| | | VUE_APP_NODE_ENV=dev |
| | | VUE_APP_API_URL=http://localhost:8086/life-protection |
| | | VUE_APP_SOCKET_URL=ws://localhost:8086/life-protection/websocket |
| | | VUE_APP_API_URL=http://localhost:8050/test-item |
| | | VUE_APP_SOCKET_URL=ws://localhost:8050/test-item/websocket |
| | |
| | | NODE_ENV=production |
| | | VUE_APP_NODE_ENV=prod |
| | | VUE_APP_API_URL=http://localhost:8086/life-protection |
| | | VUE_APP_SOCKET_URL=ws://localhost:8086/life-protection/websocket |
| | | VUE_APP_API_URL=http://localhost:8050/test-item |
| | | VUE_APP_SOCKET_URL=ws://localhost:8050/test-item/websocket |
| | |
| | | NODE_ENV=production |
| | | VUE_APP_NODE_ENV=prod:sit |
| | | VUE_APP_API_URL=http://localhost:8086/life-protection |
| | | VUE_APP_SOCKET_URL=ws://localhost:8086/life-protection/websocket |
| | | VUE_APP_API_URL=http://localhost:8050/test-item |
| | | VUE_APP_SOCKET_URL=ws://localhost:8050/test-item/websocket |
| | |
| | | NODE_ENV=production |
| | | VUE_APP_NODE_ENV=prod:uat |
| | | VUE_APP_API_URL=http://localhost:8086/life-protection |
| | | VUE_APP_SOCKET_URL=ws://localhost:8086/life-protection/websocket |
| | | VUE_APP_API_URL=http://localhost:8050/test-item |
| | | VUE_APP_SOCKET_URL=ws://localhost:8050/test-item/websocket |
| | |
| | | inject: { |
| | | elForm: { |
| | | default: '' |
| | | } |
| | | }, |
| | | }}, |
| | | data() { |
| | | return { |
| | | isUpload: false, |
| | |
| | | watch: { |
| | | // eslint-disable-next-line no-unused-vars |
| | | value(val, oldval) { |
| | | console.log(val,'zt-upload value(val') |
| | | if (this.uploadList !== val) { |
| | | this.uploadList = this.getUploadList(val) |
| | | this.fileList = this.getUploadList(val) |
| | |
| | | if (this.crop && this.$refs.cropper) { |
| | | document.body.appendChild(this.$refs.cropper.$el) |
| | | } |
| | | if (this.value) { |
| | | console.log(this.value,'zt-upload value(val') |
| | | this.uploadList = this.getUploadList(this.value) |
| | | this.fileList = this.getUploadList(this.value) |
| | | if (this.fileList.length>0){ |
| | | console.log(this.fileList[0].status, 'val.files[0].status23') |
| | | // alert('2222'+this.fileList[0].status) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false; // 动态(菜单)路由是否已经添加的状态标示(用于判断是否需要重新拉取数据并进行动态添加操作) |
| | | |
| | | // 服务地址 |
| | | window.SITE_CONFIG['apiURL'] = 'http://' + location.hostname + ':8050/life-protection'; |
| | | window.SITE_CONFIG['apiURL2'] = 'http://' + location.hostname + ':8050/life-protection'; |
| | | window.SITE_CONFIG['apiURL'] = 'http://' + location.hostname + ':8050/test-item'; |
| | | window.SITE_CONFIG['apiURL2'] = 'http://' + location.hostname + ':8050/test-item'; |
| | | //window.SITE_CONFIG['apiURL2'] = 'http://'+location.hostname+':8066'; |
| | | |
| | | //window.SITE_CONFIG['apiURL'] = '<%= process.env.VUE_APP_API_URL %>'; |
| | |
| | | |
| | | |
| | | // WebSocket地址 |
| | | window.SITE_CONFIG['socketURL'] = 'http://' + location.hostname + ':8050/life-protection'; |
| | | window.SITE_CONFIG['socketURL'] = 'http://' + location.hostname + ':8050/test-item'; |
| | | //window.SITE_CONFIG['socketURL'] ='<%= process.env.VUE_APP_SOCKET_URL %>'; |
| | | |
| | | </script> |
| | |
| | | "USERDOMAIN_ROAMINGPROFILE": "LAPTOP-FFJLI4DC", |
| | | "USERNAME": "14539", |
| | | "USERPROFILE": "C:\\Users\\14539", |
| | | "VUE_APP_API_URL": "http://localhost:8086/life-protection", |
| | | "VUE_APP_API_URL": "http://localhost:8050/test-item", |
| | | "VUE_APP_NODE_ENV": "dev", |
| | | "VUE_APP_SOCKET_URL": "ws://localhost:8086/life-protection/websocket", |
| | | "VUE_APP_SOCKET_URL": "ws://localhost:8050/test-item/websocket", |
| | | "VUE_CLI_ENTRY_FILES": "[\"D:\\\\zhpt\\\\web\\\\src\\\\main.js\"]", |
| | | "WEBPACK_DEV_SERVER": "true", |
| | | "windir": "C:\\Windows", |
| | |
| | | <div class="config-uploader1" v-if="oss"> |
| | | <div v-for="group in (oss.groups || [])" :key="group.busiFieldGroup"> |
| | | <zt-form-item v-for="field in group.fields" :prop="field.busiField" |
| | | :key="field.busiField" :rules="field.isRequired ? 'required':''" style="width: 100%;margin-bottom: 0"> |
| | | :key="field.busiField" :rules="field.isRequired ? 'required':''" |
| | | style="width: 100%;margin-bottom: 0"> |
| | | <zt-uploader v-model="dataForm[field.busiField]" multiple :limit="field.fileLimit" :file-type="field.fileType" |
| | | :accept="field.accept" :file-size="field.fileSize" @input="change(field.busiField)"/> |
| | | </zt-form-item> |
| | |
| | | |
| | | </template> |
| | | <script> |
| | | |
| | | import cloneDeep from "lodash/cloneDeep"; |
| | | |
| | | export default { |
| | | name: 'TableUploader', |
| | |
| | | return arr |
| | | } |
| | | }, |
| | | watch: { |
| | | value(val, oldval) { |
| | | if (JSON.stringify(val) !== JSON.stringify(oldval)) { |
| | | this.oss = { |
| | | ...this.getOss(), |
| | | ...(val || {}) |
| | | } |
| | | console.log(this.oss,"this.oss") |
| | | // this.dataForm.files = this.oss |
| | | this.$set(this.dataForm, 'files', this.oss) |
| | | // 分解到每个字段给dataForm赋值 |
| | | this.fields.forEach(field => { |
| | | // this.dataForm[field.busiField] = field.files |
| | | this.$set(this.dataForm, field.busiField, field.files) |
| | | }) |
| | | console.log(this.dataForm,'this.dataForm') |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | if (this.value) |
| | | this.oss = this.value |
| | | else |
| | | this.oss = this.getOss() |
| | | if (this.oss) { |
| | | this.oss.groups.forEach(group => { |
| | |
| | | }) |
| | | // this.dataForm.files = this.oss |
| | | this.$set(this.dataForm, 'files', this.oss) |
| | | this.fields.forEach(field => { |
| | | // this.dataForm[field.busiField] = field.files |
| | | this.$set(this.dataForm, field.busiField, field.files) |
| | | }) |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | return null |
| | | }, |
| | | change(busiField) { |
| | | console.log(busiField,'busiField busiField') |
| | | |
| | | this.fields.forEach(field => { |
| | | if (field.busiField === busiField) { |
| | | field.files.length = 0 |
| | | this.dataForm[busiField].forEach(file => { |
| | | console.log(file,"change file") |
| | | field.files.push(file) |
| | | }) |
| | | } |
| | |
| | | .config-uploader1 label { |
| | | width: 30px !important; |
| | | } |
| | | |
| | | .config-uploader1 a{ |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | width: 180px; |
| | | } |
| | | |
| | | .config-uploader1 .zt-upload { |
| | | line-height: 0; |
| | | } |
| | | |
| | | .zt .el-upload-list__item .el-progress{ |
| | | top:15px !important; |
| | | } |
| | |
| | | }, |
| | | created() { |
| | | const roleName = localStorage.getItem('roleName') |
| | | if (roleName && roleName.includes('QA')) { |
| | | if (roleName && roleName.includes('审核人员')) { |
| | | this.showColumn = true; |
| | | } |
| | | if (roleName && roleName.includes('测试员')) { |
| | | if (roleName && roleName.includes('检测人员')) { |
| | | this.showAddAndEdit = true; |
| | | } |
| | | }, |
| | |
| | | }, |
| | | created() { |
| | | const roleName = localStorage.getItem('roleName') |
| | | if (roleName && roleName.includes('QA')) { |
| | | if (roleName && roleName.includes('审核人员')) { |
| | | this.showColumn = true; |
| | | } |
| | | if (roleName && roleName.includes('测试员')) { |
| | | if (roleName && roleName.includes('检测人员')) { |
| | | this.showAddAndEdit = true; |
| | | } |
| | | }, |
| | |
| | | v-model="row.files"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-if="stepMarker=='pzxrk_first'" fixed="right" label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <zt-table-button @click="deleteRow(scope.$index,scope.row.id)">删除</zt-table-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div v-if="showAddAndEdit && !dataForm.disabled" class="icon-container"> |
| | | <el-dropdown @command="handleCommand"> |
| | |
| | | import AddOrUpdateCheck from '../testCheckOrder/TestCheckOrder-AddOrUpdate' |
| | | import qs from "qs"; |
| | | import Cookies from "js-cookie"; |
| | | import cloneDeep from "lodash/cloneDeep"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | console.log(row.libraryType,"row.libraryType") |
| | | this.dataForm.configItemWarehouse.libraryType = row.libraryType |
| | | } |
| | | this.getInfo() |
| | | this.getInfo2() |
| | | if (!this.dataForm.disabled) { |
| | | if (!row.stepMarker) { |
| | | this.stepMarker = 'pzxrk_first' |
| | |
| | | this.$set(row, 'checkId', checkId) |
| | | }, |
| | | // 获取信息 |
| | | async getInfo() { |
| | | async getInfo2() { |
| | | let params = { |
| | | warehouseId: this.dataForm.id, |
| | | projectId: this.dataForm.projectId, |
| | | libraryType:this.dataForm.configItemWarehouse.libraryType |
| | | } |
| | | let res = await this.$http.get(`/configItemWarehouse/ConfigItemWarehouse/getDto`, {params: params}) |
| | | this.dataForm = { |
| | | ...this.dataForm, |
| | | ...res.data |
| | | } |
| | | if (this.dataForm.project === null) { |
| | | this.dataForm.project = {} |
| | | } |
| | |
| | | if (this.dataForm.flowInfoDto === null) { |
| | | this.dataForm.flowInfoDto = {} |
| | | } |
| | | setTimeout(()=>{ |
| | | this.dataForm = { |
| | | ...this.dataForm, |
| | | ...res.data |
| | | } |
| | | },100) |
| | | console.log(this.dataForm, "getInfo this.dataForm") |
| | | }, |
| | | async deleteRow(index, id){ |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | if (id != null) { |
| | | let res = await this.$http.delete('/configItemWarehouse/WarehouseConfigItem/', {data: [id]}) |
| | | } |
| | | this.dataForm.configItemList.splice(index, 1) |
| | | } |
| | | }, |
| | | async print(){ |
| | | var params = qs.stringify({ |
| | |
| | | }, |
| | | // 表单提交 |
| | | async formSubmit(submitType) { |
| | | let isFiles = true; |
| | | this.dataForm.configItemList.forEach(item => { |
| | | console.log(item, "his.dataForm.technicalList.forEach") |
| | | item.files.groups.forEach(groups => { |
| | | groups.fields.forEach(files => { |
| | | if (files.files.length === 0) { |
| | | this.$alert("当前存在未上传附件的技术资料,请重新上传") |
| | | isFiles = false |
| | | return isFiles |
| | | } |
| | | }) |
| | | }) |
| | | }) |
| | | if (this.showColumn && submitType == 'bl') { |
| | | for (let item of this.dataForm.configItemList) { |
| | | if (item) { |
| | |
| | | } |
| | | } |
| | | } |
| | | if (submitType == 'tj' || submitType == 'bl') { |
| | | if (submitType === 'tj' || submitType === 'bl') { |
| | | if (!isFiles){ |
| | | return |
| | | } |
| | | let flowInfo = { |
| | | flowCode: 'pzxrk', |
| | | stepIdMark: this.stepMarker, |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="infoName" min-width="180" label="技术资料名称"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.name" placeholder="技术资料名称"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.name" placeholder="技术资料名称"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="identify" align="center" width="150" label="标识"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.version" placeholder="标识"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.version" placeholder="标识"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="version" align="center" width="120" label="版本"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.identify" placeholder="版本"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.identify" placeholder="版本"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="secretClass" label="密级" width="100" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <!-- <el-input v-model="row.secretClass" placeholder="密级"></el-input>--> |
| | | <zt-dict v-model="row.secretClass" dict="secret_class"></zt-dict> |
| | | <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="row.secretClass" dict="secret_class"></zt-dict> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="medium" label="介质" width="100" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.medium" placeholder="介质"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.medium" placeholder="介质"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="amount" label="数量" width="80" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.amount" placeholder="数量"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.amount" placeholder="数量"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remark" label="备注" width="100" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.remark" placeholder="备注"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.remark" placeholder="备注"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" prop="files" label="上传附件" width="300" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <table-uploader busi-type="circulat_order" model-name="row" :dataForm="row" |
| | | v-model="row.files"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-if="stepMarker=='wplz_first'" fixed="right" label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <zt-table-button @click="deleteRow(scope.$index,scope.row.id)">删除</zt-table-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <div style="width: calc(100% - 120px);"> |
| | | <div class="el-border-left"> |
| | | <el-form-item label="物品是否需要返还" label-width="150px" style="width:100%;padding-left:20px;margin-bottom:0"> |
| | | <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="dataForm.circulatOrder.itemRequire" :radio="true" |
| | | <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="dataForm.circulatOrder.itemRequire" |
| | | :radio="true" |
| | | dict="is_or_not"></zt-dict> |
| | | </el-form-item> |
| | | <el-form-item label="物品的其他要求:" label-width="150px" style="width:100%;padding-left:20px;margin-bottom:0"> |
| | |
| | | </div> |
| | | <div class="el-border-left " style="width: 35%;height: 80px;"> |
| | | <el-form-item label="是否完成病毒查杀" label-width="150px" style="padding-left:20px;margin-bottom:0"> |
| | | <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="dataForm.circulatOrder.acceptSituation" :radio="true" dict="is_or_not"></zt-dict> |
| | | <zt-dict :disabled="stepMarker!=='wplz_wpjs'" v-model="dataForm.circulatOrder.acceptSituation" |
| | | :radio="true" dict="is_or_not"></zt-dict> |
| | | </el-form-item> |
| | | <el-form-item label="病毒库版本:" label-width="150px" style="width:100%;padding-left:20px;margin-bottom:0"> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="dataForm.circulatOrder.virusLibraryVersion"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_wpjs'" |
| | | v-model="dataForm.circulatOrder.virusLibraryVersion"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="el-border-left " style="width: 35%;height: 40px;"> |
| | | <el-form-item label="是否满足测试要求" label-width="150px" style="padding-left:20px;margin-bottom:0"> |
| | | <zt-dict :disabled="stepMarker!=='wplz_jcjs'" v-model="dataForm.circulatOrder.detectAcceptSituation" :radio="true" dict="is_or_not"></zt-dict> |
| | | <zt-dict :disabled="stepMarker!=='wplz_jcjs'" v-model="dataForm.circulatOrder.detectAcceptSituation" |
| | | :radio="true" dict="is_or_not"></zt-dict> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="el-border-left " style="width: 35%;height: 40px;"> |
| | | <el-form-item label="是否满足测试要求" label-width="150px" style="padding-left:20px;margin-bottom:0"> |
| | | <zt-dict :disabled="stepMarker!=='wplz_xzjc'" v-model="dataForm.circulatOrder.detectSituation" :radio="true" dict="is_or_not"></zt-dict> |
| | | <zt-dict :disabled="stepMarker!=='wplz_xzjc'" v-model="dataForm.circulatOrder.detectSituation" |
| | | :radio="true" dict="is_or_not"></zt-dict> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="el-border-left " style="width: 35%;height: 40px;"> |
| | | <el-form-item label="是否已入样品库" label-width="150px" style="padding-left:20px;margin-bottom:0"> |
| | | <zt-dict :disabled="stepMarker!=='wplz_wprk'" v-model="dataForm.circulatOrder.depositSituation" :radio="true" dict="is_or_not"></zt-dict> |
| | | <zt-dict :disabled="stepMarker!=='wplz_wprk'" v-model="dataForm.circulatOrder.depositSituation" |
| | | :radio="true" dict="is_or_not"></zt-dict> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="el-border-left " style="width: 35%;height: 40px;"> |
| | | <el-form-item label="是否完成样品发放" label-width="150px" style="padding-left:20px;margin-bottom:0"> |
| | | <zt-dict :disabled="stepMarker!=='wplz_wpff'"v-model="dataForm.circulatOrder.issueSituation" :radio="true" dict="is_or_not"></zt-dict> |
| | | <zt-dict :disabled="stepMarker!=='wplz_wpff'" v-model="dataForm.circulatOrder.issueSituation" |
| | | :radio="true" dict="is_or_not"></zt-dict> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | <add-or-update ref="addOrUpdate" @refreshDataList="getQuery()"/> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | |
| | | <script> |
| | |
| | | if(row.projectId){ |
| | | this.dataForm.projectId =row.projectId |
| | | } |
| | | |
| | | this.getInfo2() |
| | | // this.dataForm.disabled |
| | | this.getInfo() |
| | | if (!this.dataForm.disabled) { |
| | | if (!row.stepMarker) { |
| | | this.stepMarker = 'wplz_first' |
| | | this.title = '物品接收' |
| | | this.title = '流转申请' |
| | | } else { |
| | | this.title = row.stepName |
| | | this.stepMarker = row.stepMarker |
| | |
| | | tableBody.scrollTop = tableBody.scrollHeight; |
| | | }) |
| | | }, |
| | | async deleteRow(index, id) { |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | if (id != null) { |
| | | let res = await this.$http.delete('/itemCirculatOrder/ItemCirculatOrderTechnical/', {data: [id]}) |
| | | } |
| | | this.dataForm.technicalList.splice(index, 1) |
| | | } |
| | | }, |
| | | // 获取信息 |
| | | async getInfo() { |
| | | async getInfo2() { |
| | | let params = { |
| | | circulatOrderid: this.dataForm.id, |
| | | projectId: this.dataForm.projectId |
| | |
| | | this.dataForm.flowInfoDto={} |
| | | } |
| | | console.log(this.dataForm, "getInfo this.dataForm") |
| | | |
| | | }, |
| | | async print(){ |
| | | var params = qs.stringify({ |
| | |
| | | }, |
| | | // 表单提交 |
| | | async formSubmit(submitType) { |
| | | let isFiles = true; |
| | | this.dataForm.technicalList.forEach(item => { |
| | | console.log(item, "his.dataForm.technicalList.forEach") |
| | | item.files.groups.forEach(groups => { |
| | | groups.fields.forEach(files => { |
| | | if (files.files.length === 0) { |
| | | this.$alert("当前存在未上传附件的技术资料,请重新上传") |
| | | isFiles = false |
| | | return isFiles |
| | | } |
| | | }) |
| | | }) |
| | | }) |
| | | console.log(this.dataForm, "this.dataForm11111") |
| | | if (submitType == 'tj' || submitType == 'bl') { |
| | | if (!isFiles){ |
| | | return |
| | | } |
| | | let flowInfo = { |
| | | flowCode: 'wplz', |
| | | stepIdMark: this.stepMarker, |
| | |
| | | this.dataForm.flowInfoDto = flowInfo; |
| | | } |
| | | let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/itemCirculatOrder/ItemCirculatOrder/', this.dataForm) |
| | | if(this.stepMarker==='wplz_wprk'){ |
| | | /* alert(this.dataForm.projectId)*/ |
| | | if (res.success) { |
| | | if (this.stepMarker === 'wplz_wprk' && submitType == 'bl') { |
| | | this.$nextTick(()=>{ |
| | | this.$refs.addOrUpdate.$refs.dialog.init(null, {id: null, projectId: this.dataForm.projectId, libraryType: '1'}) |
| | | this.$refs.addOrUpdate.$refs.dialog.init(null, { |
| | | id: res.data, |
| | | projectId: this.dataForm.projectId, |
| | | libraryType: '1' |
| | | }) |
| | | }) |
| | | } |
| | | if (res.success) { |
| | | /* if (submitType == 'tj') { |
| | | console.log(res, 'bbbb') |
| | | let res2 = await this.$http.get('/wf/startFlow', submitForm) |
| | |
| | | }) |
| | | }, |
| | | async deleteDeliverableRow(index,id) { |
| | | if (id != null) { |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | if (id != null) { |
| | | let res = await this.$http.delete('/project/SoftwareTestOrderDeliverable/', {data: [id]}) |
| | | } |
| | | } |
| | | this.dataForm.deliverableList.splice(index, 1) |
| | | } |
| | | }, |
| | | addMeasuredRow() { |
| | | this.dataForm.measuredList.push({}) |
| | |
| | | }) |
| | | }, |
| | | async deleteMeasuredRow(index, id) { |
| | | if (id != null) { |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | if (id != null) { |
| | | let res = await this.$http.delete('/project/SoftwareTestOrderMeasured/', {data: [id]}) |
| | | } |
| | | } |
| | | this.dataForm.measuredList.splice(index, 1) |
| | | } |
| | | }, |
| | | async print() { |
| | | var params = qs.stringify({ |
| | |
| | | </div> |
| | | <div class=" el-border-left" style="width: 20%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.requireRiskTrackers" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.requireRiskTrackers" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.requireRiskTrackers}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isCsry" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.requireRiskDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.requireRiskDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width: 20%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.designRiskTrackers" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.designRiskTrackers" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.designRiskTrackers}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isCsry" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.designRiskDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.designRiskDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width: 20%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.executeRiskTrackers" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.executeRiskTrackers" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.executeRiskTrackers}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isCsry" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.executeRiskDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.executeRiskDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width: 20%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.summaryRiskTrackers" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.summaryRiskTrackers" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.summaryRiskTrackers}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isCsry" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.summaryRiskDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.summaryRiskDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | 采取措施: |
| | | </div> |
| | | <el-form-item class="form-margin-top-bottom el-border-left" style="width:22.25%" > |
| | | <el-input v-model="dataForm.riskMeasure.requireMeasure" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.requireMeasure" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.requireMeasure}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom el-border-left" style="width:22.25%"> |
| | | <el-input v-model="dataForm.riskMeasure.designMeasure" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.designMeasure" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.designMeasure}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom el-border-left" style="width:22.25%"> |
| | | <el-input v-model="dataForm.riskMeasure.executeMeasure" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.executeMeasure" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.executeMeasure}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom el-border-left" style="width:22.25%"> |
| | | <el-input v-model="dataForm.riskMeasure.summaryMeasure" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.summaryMeasure" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.summaryMeasure}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="el-risk-flex el-border-bottom "> |
| | |
| | | </div> |
| | | <div class=" el-border-left" style="width:22.25%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.requireRecorder" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.requireRecorder" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.requireRecorder}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isCsry" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.requireRecordDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.requireRecordDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width:22.25%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.designRecorder" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.designRecorder" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.designRecorder}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isCsry" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.designRecordDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.designRecordDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width:22.25%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.executeRecorder" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.executeRecorder" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.executeRecorder}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isCsry" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.executeRecordDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.executeRecordDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width:22.25%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.summaryRecorder" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isCsry" v-model="dataForm.riskMeasure.summaryRecorder" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.summaryRecorder}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isCsry" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.summaryRecordDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.summaryRecordDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | 措施有效性评估: |
| | | </div> |
| | | <el-form-item class="form-margin-top-bottom el-border-left" style="width:22.25%"> |
| | | <el-input v-model="dataForm.riskMeasure.requireEvaluate" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isBmld" v-model="dataForm.riskMeasure.requireEvaluate" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.requireEvaluate}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom el-border-left" style="width:22.25%"> |
| | | <el-input v-model="dataForm.riskMeasure.designEvaluate" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isBmld" v-model="dataForm.riskMeasure.designEvaluate" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.designEvaluate}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom el-border-left" style="width:22.25%"> |
| | | <el-input v-model="dataForm.riskMeasure.executeEvaluate" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isBmld" v-model="dataForm.riskMeasure.executeEvaluate" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.executeEvaluate}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom el-border-left" style="width:22.25%"> |
| | | <el-input v-model="dataForm.riskMeasure.summaryEvaluate" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isBmld" v-model="dataForm.riskMeasure.summaryEvaluate" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.summaryEvaluate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="el-risk-flex "> |
| | |
| | | </div> |
| | | <div class=" el-border-left" style="width:22.25%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.requireLeader" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isBmld" v-model="dataForm.riskMeasure.requireLeader" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.requireLeader}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isBmld" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.requireLeadDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.requireLeadDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width:22.25%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.designLeader" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isBmld" v-model="dataForm.riskMeasure.designLeader" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.designLeader}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isBmld" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.designLeadDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.designLeadDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width:22.25%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.executeLeader" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isBmld" v-model="dataForm.riskMeasure.executeLeader" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.executeLeader}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isBmld" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.executeLeadDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.executeLeadDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | <div class=" el-border-left" style="width:22.25%"> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-input v-model="dataForm.riskMeasure.summaryLeader" class="risk-form-padding"></el-input> |
| | | <el-input v-if="dataForm.isBmld" v-model="dataForm.riskMeasure.summaryLeader" class="risk-form-padding"></el-input> |
| | | <span v-else>{{dataForm.riskMeasure.summaryLeader}}</span> |
| | | </el-form-item> |
| | | <el-form-item class="form-margin-top-bottom"> |
| | | <el-date-picker |
| | | v-if="dataForm.isBmld" |
| | | class="risk-form-padding" |
| | | v-model="dataForm.riskMeasure.summaryLeadDate" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span v-else>{{dataForm.riskMeasure.summaryLeadDate}}</span> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | softwareName: '' |
| | | }, |
| | | riskList:[], |
| | | itemList:[] |
| | | itemList:[], |
| | | isCsry:'', |
| | | isBmld:'', |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | // this.dataForm.disabled |
| | | this.getInfo() |
| | | this.getMyProjectRole() |
| | | }, |
| | | // 获取信息 |
| | | async getInfo() { |
| | |
| | | ...res.data |
| | | } |
| | | }, |
| | | async getMyProjectRole() { |
| | | let res = await this.$http.get(`/project/Project/myProjectRole/${this.dataForm.projectId}`) |
| | | console.log(res.data,"getMyProjectRole") |
| | | this.dataForm.isCsry = res.data.csry |
| | | this.dataForm.isBmld = res.data.bmld |
| | | }, |
| | | async print() { |
| | | var params = qs.stringify({ |
| | | token: Cookies.get('token'), |
| | |
| | | </el-form> |
| | | <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}" |
| | | border @selection-change="table.selectionChangeHandle"> |
| | | <el-table-column type="selection" width="40"/> |
| | | <el-table-column type="selection" align="center" width="40"/> |
| | | <el-table-column prop="softwareName" label="项目名称"/> |
| | | <el-table-column prop="softwareIdentity" label="项目标识"/> |
| | | <zt-table-column-handle :table="table" edit-perm="riskTraceRecord:update" |
| | |
| | | |
| | | <div class="mod-sys__generator"> |
| | | <div class="mod-sys__user"> |
| | | <el-form :model="dataForm" label-width="80px" @keyup.enter.native="getDataList()"> |
| | | <el-form :model="dataForm" label-width="80px" @keyup.enter.native="getTableInfo()"> |
| | | <el-form-item> |
| | | <el-input style="width: 30%;margin-right: 20px;" v-model="dataForm.tableName" placeholder="请输入表名" clearable></el-input> |
| | | <el-button @click="getTableInfo()">查询</el-button> |
| | |
| | | insertFlowTaskData(taskParamDto); |
| | | } |
| | | } |
| | | else if (currentStep.getTaskGroup() !=null && "pall,zrr,csr,shr,pzr".contains(currentStep.getTaskGroup())) { |
| | | else if (StringUtils.isNotBlank(currentStep.getTaskGroup()) && "pall,zrr,csr,shr,pzr".contains(currentStep.getTaskGroup())) { |
| | | String userList = null; |
| | | if ("zrr".equals(currentStep.getTaskGroup())) { |
| | | userList = bizInfoDto.getZrr(); |