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