Merge remote-tracking branch 'origin/dev_20230912_Platform' into fix_20230911_UAT

This commit is contained in:
高嵩
2023-09-29 10:15:07 +08:00
9 changed files with 85 additions and 35 deletions
@@ -31,6 +31,8 @@
pni.project_name,
plb.target_market,
plb.project_version,
plb.project_name_id,
plb.platform,
pyni.year_name,
pli.serial_number,
pli.title,
@@ -62,7 +64,7 @@
LEFT JOIN project_name_info pni ON pni.id = plb.project_name_id
LEFT JOIN project_year_name_info pyni ON pyni.id = plb.year_name_id
where
plb.platform is null
1=1
<!--<if test="ncrTrackVO.projectLibraryId != null and ncrTrackVO.projectLibraryId != ''">
plb.id =#{ncrTrackVO.projectLibraryId}
and
@@ -192,11 +192,16 @@ public class NcrTrackServiceImpl extends ServiceImpl<NcrTrackMapper, NcrTrackVO>
String yearName = trackVO.getYearName();
String market = getMarket(targetMarketList, trackVO,ncrTrackVO.getCut());
String projectVersion = trackVO.getProjectVersion();
if(StringUtils.isNotBlank(trackVO.getPlatform())){
trackVO.setProjectName(trackVO.getProjectNameId());
}else{
if(StringUtils.isNotBlank(projectVersion)){
trackVO.setProjectName(projectName+"-"+yearName+"-"+market+"-"+projectVersion);
}else{
trackVO.setProjectName(projectName+"-"+yearName+"-"+market);
}
}
//责任领域中英文切换
if(StringUtils.isNotBlank(trackVO.getDutyTerritory())){
String dutyTerritory = pull(dictItemList, trackVO.getDutyTerritory(), "duty_territory", ncrTrackVO.getCut());
@@ -784,11 +789,13 @@ public class NcrTrackServiceImpl extends ServiceImpl<NcrTrackMapper, NcrTrackVO>
private String getMarket(List<DictModel> targetMarketList, NcrTrackVO trackVO,String cut) {
//目标市场
List<DictModel> dictModelList = new ArrayList<>();
if(StringUtils.isNotBlank(trackVO.getTargetMarket())){
for (String s : trackVO.getTargetMarket().split(",")) {
List<DictModel> dictModelListTemp = targetMarketList.stream()
.filter(e -> s.equals(e.getValue())).collect(Collectors.toList());
dictModelList.addAll(dictModelListTemp);
}
}
String targetMarket = "";
if(dictModelList.size() != 0){
StringBuilder sb = new StringBuilder();
@@ -247,6 +247,10 @@ public class NcrTrackVO implements Serializable {
@ApiModelProperty(value = "旧数据->old,新数据->new")
private String flag;
private String projectNameId;
private String platform;
@@ -868,6 +868,7 @@
this.formInline = {}
this.dutyTerritoryList = []
this.visible = true
this.flowdisabled = false
this.personnelVisible = true
value.dutyDepart = value.dutyDepart ? value.dutyDepart.split(',') : []
value.dutyTerritory = value.dutyTerritory ? value.dutyTerritory.split(',') : []
@@ -1207,7 +1207,12 @@
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'List to be released' ||
this.selectedRowKeysList[i].flowStatus == 'Review and pass') {
if (this.selectedRowKeysList[i].projectCertificationInventoryEOS && (this.selectedRowKeysList[i].projectCertificationInventoryEOS.length > 0 || this.selectedRowKeysList[i].projectCertificationInventoryEOS !== null)) {
this.failedMessage(this.selectedRowKeysList[i].serialNumber + this.$t('platformitemhasbeenassociated') )
return
}else{
ids.push(this.selectedRowKeysList[i].id)
}
} else {
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
}
@@ -1707,6 +1712,10 @@
deleteLib(val) {
let _this = this
if (val.flowStatus == 'List to be released' || val.flowStatus == 'Review and pass') {
console.log(val)
if(val.projectCertificationInventoryEOS && (val.projectCertificationInventoryEOS.length > 0 || val.projectCertificationInventoryEOS !== null)){
this.$message.warning(val.serialNumber + this.$t('platformitemhasbeenassociated'))
}else{
this.$confirm({
content: _this.$t('ConfirmDelete'),
onOk() {
@@ -1720,6 +1729,7 @@
})
}
})
}
} else {
this.$message.warning(this.$t('onlyDataWithProcessStatusDeleted'))
}
@@ -242,7 +242,7 @@
<span class="title-text-text"
:title="$t('personLiable')">{{$t('personLiable')}}</span>
</div>
<a-form-model-item class="itemModel-multi"
<a-form-model-item class="itemModel"
:prop="formInline.designDeliverableType.join(',').includes('1645667531513237506')?'':'designDutyIdName'"
:rules="[{ required: formInline.designDeliverableType.join(',').includes('1645667531513237506')?false:true,
message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'}]">
@@ -373,7 +373,7 @@
<span class="title-text-text"
:title="$t('personLiable')">{{$t('personLiable')}}</span>
</div>
<a-form-model-item class="itemModel-multi"
<a-form-model-item class="itemModel"
:prop="formInline.verifyDeliverableType.join(',').includes('1645667531513237506')?'':'verifyDutyIdName'"
:rules="[{ required: formInline.verifyDeliverableType.join(',').includes('1645667531513237506')?false:true,
message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'}]">
@@ -1332,6 +1332,7 @@
.formAdd {
margin-bottom: 40px;
}
.button-text {
@@ -318,6 +318,7 @@
projectName: row.projectName,
targetMarket: row.targetMarket,
projectNameId: row.projectNameId,
platform:row.platform,
primaryKeyId: row.primaryKeyId,
PersonChargeFeedback: row.personChargeFeedback
}
@@ -376,6 +377,7 @@
query = {
router: row.router,
taskIds: row.taskId,
platform:row.platform,
actiProcInstId: row.actiProcInstId,
id: row.projectLibraryId,
projectLibraryId: row.projectLibraryId,
@@ -20,6 +20,7 @@
:title="$t('basicInformation')"
:projectInformationList="projectInformationList"
:url="url"
:platform="this.queryData.platform"
:projectInformationId="this.queryBy.projectLibraryId"
:queryProject="queryProject"
/>
@@ -294,6 +295,9 @@
getAction(this.url.queryProjectLawsInventoryInfoById, query).then((res) => {
if (res.success) {
this.queryProject = res.result[0] || {}
if(this.queryData.platform){
this.queryProject.platform = this.queryData.platform
}
// if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr') {
// this.queryProject.endTime = this.queryData.endTime
// }
@@ -55,6 +55,10 @@
type: String,
default: ''
},
platform: {
type: String,
default: ''
},
queryProject: {
type: Object,
default: {}
@@ -101,6 +105,19 @@
},
RelatedItemsClick(item) {
if(this.platform == 'YES'){
let newUrl = this.$router.resolve({
path: '/platformItemLibraryDetails',
query: {
id: item.id,
projectName: item.projectName+'-'+item.projectVersion,
projectNameId: item.projectName,
targetMarket: item.targetMarket,
studioEngineer: item.studioEngineer
}
})
window.open(newUrl.href, '_blank')
}else{
let newUrl = this.$router.resolve({
path: '/ProjectDetails',
query: {
@@ -112,6 +129,8 @@
}
})
window.open(newUrl.href, '_blank')
}
},
}
}