|
|
|
@ -700,6 +700,7 @@ const counters = reactive({
|
|
|
|
allCount: 0,
|
|
|
|
allCount: 0,
|
|
|
|
normalCount: 0,
|
|
|
|
normalCount: 0,
|
|
|
|
disabledCount: 0,
|
|
|
|
disabledCount: 0,
|
|
|
|
|
|
|
|
repairCount: 0,
|
|
|
|
scheduledCount: 0,
|
|
|
|
scheduledCount: 0,
|
|
|
|
unscheduledCount: 0
|
|
|
|
unscheduledCount: 0
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@ -707,8 +708,9 @@ const statusCards = computed(() => [
|
|
|
|
{ key: 'all', label: t('EquipmentManagement.EquipmentLedger.all'), value: counters.allCount, status: undefined, isSchedueld: undefined },
|
|
|
|
{ key: 'all', label: t('EquipmentManagement.EquipmentLedger.all'), value: counters.allCount, status: undefined, isSchedueld: undefined },
|
|
|
|
{ key: 'normal', label: t('EquipmentManagement.EquipmentLedger.normal'), value: counters.normalCount, status: 0, isSchedueld: undefined },
|
|
|
|
{ key: 'normal', label: t('EquipmentManagement.EquipmentLedger.normal'), value: counters.normalCount, status: 0, isSchedueld: undefined },
|
|
|
|
{ key: 'disabled', label: t('EquipmentManagement.EquipmentLedger.disabled'), value: counters.disabledCount, status: 1, isSchedueld: undefined },
|
|
|
|
{ key: 'disabled', label: t('EquipmentManagement.EquipmentLedger.disabled'), value: counters.disabledCount, status: 1, isSchedueld: undefined },
|
|
|
|
{ key: 'scheduled', label: t('EquipmentManagement.EquipmentLedger.scheduled'), value: counters.scheduledCount, status: undefined, isSchedueld: 1 },
|
|
|
|
{ key: 'maintenance', label: t('EquipmentManagement.EquipmentLedger.maintenance'), value: counters.repairCount, status: 2, isSchedueld: undefined },
|
|
|
|
{ key: 'unscheduled', label: t('EquipmentManagement.EquipmentLedger.unscheduled'), value: counters.unscheduledCount, status: undefined, isSchedueld: 0 }
|
|
|
|
// { key: 'scheduled', label: t('EquipmentManagement.EquipmentLedger.scheduled'), value: counters.scheduledCount, status: undefined, isSchedueld: 1 },
|
|
|
|
|
|
|
|
// { key: 'unscheduled', label: t('EquipmentManagement.EquipmentLedger.unscheduled'), value: counters.unscheduledCount, status: undefined, isSchedueld: 0 }
|
|
|
|
])
|
|
|
|
])
|
|
|
|
const changeStatus = (key: string, status?: number, isSchedueld?: number) => {
|
|
|
|
const changeStatus = (key: string, status?: number, isSchedueld?: number) => {
|
|
|
|
currentStatusKey.value = key
|
|
|
|
currentStatusKey.value = key
|
|
|
|
@ -1064,6 +1066,7 @@ const getList = async () => {
|
|
|
|
counters.allCount = Number(data?.allCount ?? data?.total ?? 0)
|
|
|
|
counters.allCount = Number(data?.allCount ?? data?.total ?? 0)
|
|
|
|
counters.normalCount = Number(data?.normalCount ?? 0)
|
|
|
|
counters.normalCount = Number(data?.normalCount ?? 0)
|
|
|
|
counters.disabledCount = Number(data?.disabledCount ?? 0)
|
|
|
|
counters.disabledCount = Number(data?.disabledCount ?? 0)
|
|
|
|
|
|
|
|
counters.repairCount = Number(data?.repairCount ?? 0)
|
|
|
|
counters.scheduledCount = Number(data?.scheduledCount ?? 0)
|
|
|
|
counters.scheduledCount = Number(data?.scheduledCount ?? 0)
|
|
|
|
counters.unscheduledCount = Number(data?.unscheduledCount ?? 0)
|
|
|
|
counters.unscheduledCount = Number(data?.unscheduledCount ?? 0)
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
|