update 车型项目库详情调整
This commit is contained in:
@@ -533,3 +533,10 @@ export const StandardComplianceNodes = new EsEnums({
|
||||
regulatoryEngineerApprove: { text: '法规工程师审批', value: '7', btn: ['return', 'save', 'agree', 'reject'] },
|
||||
designEngineerWriteProject: { text: '设计工程师补充立项项目号', value: '8', btn: ['submit'] }
|
||||
})
|
||||
|
||||
// 项目合规评估流程状态
|
||||
export const EvaluateProcessStatus = {
|
||||
notEvaluated: { text: '未评估', value: '1' },
|
||||
beEvaluating: { text: '评估中', value: '2' },
|
||||
evaluated: { text: '已评估', value: '3' }
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ import {
|
||||
import { JeroListMixin } from '../../../mixins/JeroListMixin.js'
|
||||
import JTable from '../../../components/jero/JTable.vue'
|
||||
import StandardSelectionModal from '../../../components/selection/StandardSelectionModal.vue'
|
||||
import { StandardSource } from '../../../enums/commonEnums'
|
||||
import { StandardSource, EvaluateProcessStatus } from '../../../enums/commonEnums'
|
||||
import VehicleProjectSelectionDrawer from '../../../components/selection/VehicleProjectSelectionDrawer'
|
||||
|
||||
export default {
|
||||
@@ -286,13 +286,21 @@ export default {
|
||||
{
|
||||
text: this.$t('projectLibrary.vehicleItemLibrary.evaluationResultHistory'),
|
||||
clickEvent: 'evaluationResultHistory',
|
||||
has: 'vehicleItemLibrary:detail:evaluationResultHistory'
|
||||
has: 'vehicleItemLibrary:detail:evaluationResultHistory',
|
||||
show: (record) => {
|
||||
// 只有已评估有评估结果历史
|
||||
return record.processStatus === EvaluateProcessStatus.evaluated.value
|
||||
}
|
||||
},
|
||||
// 删除
|
||||
{
|
||||
text: this.$t('delete'),
|
||||
clickEvent: 'handleDelete',
|
||||
has: 'vehicleItemLibrary:detail:delete'
|
||||
has: 'vehicleItemLibrary:detail:delete',
|
||||
show: (record) => {
|
||||
// 已评估和未评估的数据可以删除
|
||||
return record.processStatus === EvaluateProcessStatus.notEvaluated.value || record.processStatus === EvaluateProcessStatus.beEvaluating.value
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user