Merge remote-tracking branch 'origin/fix_20230911_UAT' into fix_20230911_UAT
This commit is contained in:
@@ -682,3 +682,8 @@ ALTER TABLE `project_certification_inventory`
|
|||||||
ADD COLUMN `duty_depart` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任部门' AFTER `attestation_type`;
|
ADD COLUMN `duty_depart` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任部门' AFTER `attestation_type`;
|
||||||
|
|
||||||
|
|
||||||
|
-- 认证清单 添加关联平台件认证清单id 2023-12-7 未同步生产环境
|
||||||
|
ALTER TABLE `project_certification_inventory`
|
||||||
|
ADD COLUMN `platform_certification_inventory_id` varchar(36) NULL COMMENT '平台件-认证清单id' AFTER `remark`;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
@@ -271,4 +271,7 @@ public class ProjectCertificationInventoryEO implements Serializable {
|
|||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String projectName;
|
private String projectName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "平台件-认证清单id")
|
||||||
|
private String platformCertificationInventoryId;
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-8
@@ -7391,6 +7391,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
for (int i = 1; i < projectCertificationInventoryEOList.size(); i++) {
|
for (int i = 1; i < projectCertificationInventoryEOList.size(); i++) {
|
||||||
ProjectCertificationInventoryEO projectCertificationInventoryEOTemp = new ProjectCertificationInventoryEO();
|
ProjectCertificationInventoryEO projectCertificationInventoryEOTemp = new ProjectCertificationInventoryEO();
|
||||||
BeanUtils.copyProperties(projectCertificationInventoryEO,projectCertificationInventoryEOTemp);
|
BeanUtils.copyProperties(projectCertificationInventoryEO,projectCertificationInventoryEOTemp);
|
||||||
|
projectCertificationInventoryEOTemp.setPlatformCertificationInventoryId(projectCertificationInventoryEOList.get(i).getId());
|
||||||
projectCertificationInventoryEOTemp.setId(UUID.randomUUID().toString().replace("-", ""));
|
projectCertificationInventoryEOTemp.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||||
list.add(projectCertificationInventoryEOTemp);
|
list.add(projectCertificationInventoryEOTemp);
|
||||||
|
|
||||||
@@ -7475,23 +7476,29 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
ProjectCertificationInventoryEO certificationInventoryEO = projectCertificationInventoryEOService.queryById(lawsInventoryPlatformEOList.get(0).getLawsInventoryId());
|
ProjectCertificationInventoryEO certificationInventoryEO = projectCertificationInventoryEOService.queryById(lawsInventoryPlatformEOList.get(0).getLawsInventoryId());
|
||||||
|
//平台件的平台件认证清单
|
||||||
|
ProjectCertificationInventoryEO certificationInventoryEOTemp =
|
||||||
|
projectCertificationInventoryEOService.queryById(certificationInventoryEO.getPlatformCertificationInventoryId());
|
||||||
|
|
||||||
|
|
||||||
//交付物模板
|
//交付物模板
|
||||||
String deliverableTemplate = certificationInventoryEO.getDeliverableTemplate();
|
String deliverableTemplate = certificationInventoryEOTemp.getDeliverableTemplate();
|
||||||
if(StringUtils.isNotBlank(deliverableTemplate)){
|
if(StringUtils.isNotBlank(deliverableTemplate)){
|
||||||
List<OSSFile> fileInfos = iOSSFileService.getFileInfos(StringUtils.join(deliverableTemplate, ","));
|
List<OSSFile> fileInfos = iOSSFileService.getFileInfos(StringUtils.join(deliverableTemplate, ","));
|
||||||
certificationInventoryEO.setDeliverableTemplateName(fileInfos.get(0).getFileName());
|
certificationInventoryEOTemp.setDeliverableTemplateName(fileInfos.get(0).getFileName());
|
||||||
}
|
}
|
||||||
//交付物类型
|
//交付物类型
|
||||||
String deliverableType = certificationInventoryEO.getDeliverableType();
|
String deliverableType = certificationInventoryEOTemp.getDeliverableType();
|
||||||
if(StringUtils.isNotBlank(deliverableType)){
|
if(StringUtils.isNotBlank(deliverableType)){
|
||||||
List<SysCategory> categoryList = sysCategoryService.list();
|
List<SysCategory> categoryList = sysCategoryService.list();
|
||||||
String name = getTreeName(cut, categoryList, Arrays.asList(deliverableType.split(",")));
|
String name = getTreeName(cut, categoryList, Arrays.asList(deliverableType.split(",")));
|
||||||
certificationInventoryEO.setDeliverableTypeName(name);
|
certificationInventoryEOTemp.setDeliverableTypeName(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//平台件认证清单对应的法规
|
||||||
|
List<ProjectLibraryBase> projectLibraryBaseList = projectLibraryBaseMapper.queryById(certificationInventoryEOTemp.getProjectLibraryId());
|
||||||
//平台件项目名称
|
//平台件项目名称
|
||||||
String projectLibraryId = certificationInventoryEO.getProjectLibraryId();
|
|
||||||
List<ProjectLibraryBase> projectLibraryBaseList = projectLibraryBaseMapper.queryById(projectLibraryId);
|
|
||||||
if(ObjectUtils.isNotEmpty(projectLibraryBaseList)){
|
if(ObjectUtils.isNotEmpty(projectLibraryBaseList)){
|
||||||
ProjectLibraryBase projectLibraryBase = projectLibraryBaseList.get(0);
|
ProjectLibraryBase projectLibraryBase = projectLibraryBaseList.get(0);
|
||||||
//目标市场 英文
|
//目标市场 英文
|
||||||
@@ -7500,10 +7507,10 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
paramEn.put("cut",cut);
|
paramEn.put("cut",cut);
|
||||||
String targetMarket = projectLibraryBaseServiceImpl.getMarket(paramEn, targetMarketList, projectLibraryBase);
|
String targetMarket = projectLibraryBaseServiceImpl.getMarket(paramEn, targetMarketList, projectLibraryBase);
|
||||||
String projectName = projectLibraryBase.getPlatformType()+"-"+projectLibraryBase.getPower()+"-"+projectLibraryBase.getProducer()+"-"+targetMarket;
|
String projectName = projectLibraryBase.getPlatformType()+"-"+projectLibraryBase.getPower()+"-"+projectLibraryBase.getProducer()+"-"+targetMarket;
|
||||||
certificationInventoryEO.setProjectName(projectName);
|
certificationInventoryEOTemp.setProjectName(projectName);
|
||||||
}
|
}
|
||||||
List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList = new ArrayList<>();
|
List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList = new ArrayList<>();
|
||||||
projectCertificationInventoryEOList.add(certificationInventoryEO);
|
projectCertificationInventoryEOList.add(certificationInventoryEOTemp);
|
||||||
return projectCertificationInventoryEOList;
|
return projectCertificationInventoryEOList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+18
-5
@@ -692,12 +692,12 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
|
|
||||||
|
|
||||||
<div class="header-text-text">
|
<div class="header-text-text" v-if='dataList && dataList.length > 0'>
|
||||||
{{$t('PlatformInformation')}}
|
{{$t('PlatformInformation')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- v-if='dataList && dataList.length > 0'-->
|
|
||||||
<a-table
|
|
||||||
|
|
||||||
|
<a-table
|
||||||
|
v-if='dataList && dataList.length > 0'
|
||||||
:components="drag(columns,'columns')"
|
:components="drag(columns,'columns')"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
@@ -705,6 +705,14 @@
|
|||||||
:data-source="dataList"
|
:data-source="dataList"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:loading="loading">
|
:loading="loading">
|
||||||
|
<span slot="deliverableTemplate"
|
||||||
|
:title="record.deliverableTemplateName"
|
||||||
|
slot-scope="text,record">
|
||||||
|
<a style='color:#00B3BE;cursor: pointer'
|
||||||
|
@click="down(record.deliverableTemplate,record.deliverableTemplateName)">
|
||||||
|
{{record.deliverableTemplateName}}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- <a-row :gutter="24">-->
|
<!-- <a-row :gutter="24">-->
|
||||||
@@ -862,10 +870,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('deliverableTemplate'),
|
title: this.$t('deliverableTemplate'),
|
||||||
dataIndex: 'deliverableTemplate',
|
dataIndex: 'deliverableTemplateName',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 200
|
width: 200,
|
||||||
|
scopedSlots: { customRender: 'deliverableTemplate' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -982,6 +991,7 @@
|
|||||||
let query = {
|
let query = {
|
||||||
id: id
|
id: id
|
||||||
}
|
}
|
||||||
|
this.dataList = []
|
||||||
getAction('/project/projectCertificationInventoryEO/connectPlatform', query).then((res) => {
|
getAction('/project/projectCertificationInventoryEO/connectPlatform', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataList = res.result || []
|
this.dataList = res.result || []
|
||||||
@@ -1181,6 +1191,9 @@
|
|||||||
this.handleInput('dataList.' + index + '.dutyTerritory')
|
this.handleInput('dataList.' + index + '.dutyTerritory')
|
||||||
this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory.join(','), index)
|
this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory.join(','), index)
|
||||||
},
|
},
|
||||||
|
down(id, name) {
|
||||||
|
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||||
|
},
|
||||||
queryPersonByProject(row, index) {
|
queryPersonByProject(row, index) {
|
||||||
let query = {
|
let query = {
|
||||||
projectId: this.$route.query.id,
|
projectId: this.$route.query.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user