fix: 允许IT维护借出资产资料
This commit is contained in:
parent
f69406e888
commit
f31924cc1e
@ -541,7 +541,11 @@ const hasActiveMaintenance = computed(() => maintenanceRecords.value.some((recor
|
||||
const hasActiveDisposal = computed(() => disposalRecords.value.some((record) => record.status === 'pending' || record.status === 'approved'))
|
||||
const canEditBasic = computed(() => {
|
||||
if (!isEdit.value) return canCreate.value
|
||||
if (canOverrideCorrectionRestrictions.value) return canCorrect.value
|
||||
if (!canCorrect.value) return false
|
||||
if (canOverrideCorrectionRestrictions.value) return true
|
||||
if (authStore.user?.role === 'it') {
|
||||
return !hasActiveMaintenance.value && !hasActiveDisposal.value
|
||||
}
|
||||
return canCorrect.value && currentEquipment.value?.status === '可用' && !hasActiveMaintenance.value && !hasActiveDisposal.value
|
||||
})
|
||||
const canEditEquipmentCode = computed(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user