平台件项目库 认证清单删除逻辑修改
This commit is contained in:
+1
@@ -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(',') : []
|
||||
|
||||
@@ -1707,19 +1707,24 @@
|
||||
deleteLib(val) {
|
||||
let _this = this
|
||||
if (val.flowStatus == 'List to be released' || val.flowStatus == 'Review and pass') {
|
||||
this.$confirm({
|
||||
content: _this.$t('ConfirmDelete'),
|
||||
onOk() {
|
||||
deleteAction(_this.url.deleteOne, { id: val.id, projectLibraryId: _this.$route.query.id }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
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() {
|
||||
deleteAction(_this.url.deleteOne, { id: val.id, projectLibraryId: _this.$route.query.id }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('onlyDataWithProcessStatusDeleted'))
|
||||
}
|
||||
|
||||
@@ -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
|
||||
// }
|
||||
|
||||
+30
-11
@@ -55,6 +55,10 @@
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
platform: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
queryProject: {
|
||||
type: Object,
|
||||
default: {}
|
||||
@@ -101,17 +105,32 @@
|
||||
},
|
||||
|
||||
RelatedItemsClick(item) {
|
||||
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')
|
||||
if(this.platform == 'YES'){
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/platformItemLibraryDetails',
|
||||
query: {
|
||||
id: item.projectLibraryId,
|
||||
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: {
|
||||
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