fix: detail monalisa laporan kpi bulanan aging complain
This commit is contained in:
@ -27,7 +27,7 @@
|
|||||||
column-resizing-mode="widget"
|
column-resizing-mode="widget"
|
||||||
:word-wrap-enabled="true"
|
:word-wrap-enabled="true"
|
||||||
>
|
>
|
||||||
<DxGrouping expand-mode="rowClick" :auto-expand-all="false" />
|
<DxGrouping :auto-expand-all="false" />
|
||||||
<DxSelection mode="single" />
|
<DxSelection mode="single" />
|
||||||
<DxPaging :enabled="false" />
|
<DxPaging :enabled="false" />
|
||||||
<DxScrolling column-rendering-mode="virtual" mode="virtual" />
|
<DxScrolling column-rendering-mode="virtual" mode="virtual" />
|
||||||
@ -80,7 +80,7 @@
|
|||||||
data-type="number"
|
data-type="number"
|
||||||
:caption="`${getMonthNameShort(currentMonth)} ${currentYear}`"
|
:caption="`${getMonthNameShort(currentMonth)} ${currentYear}`"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumberAvgDurasiRecoveryGangguan"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
@ -104,7 +104,7 @@
|
|||||||
data-type="number"
|
data-type="number"
|
||||||
:caption="`${getMonthNameShort(currentMonth)} ${currentYear}`"
|
:caption="`${getMonthNameShort(currentMonth)} ${currentYear}`"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumberAvgDurasiRecoveryKeluhan"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
@ -282,7 +282,58 @@
|
|||||||
</DxSummary>
|
</DxSummary>
|
||||||
|
|
||||||
<template #formatNumber="{ data }">
|
<template #formatNumber="{ data }">
|
||||||
<p class="text-right cursor-pointer">
|
<p
|
||||||
|
class="text-right cursor-pointer"
|
||||||
|
@click="
|
||||||
|
setParameterRequest({
|
||||||
|
type: null,
|
||||||
|
tahun: lastYear,
|
||||||
|
bulan: currentMonth
|
||||||
|
})
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatNumberAvgDurasiRecoveryGangguan="{ data }">
|
||||||
|
<p
|
||||||
|
class="text-right cursor-pointer"
|
||||||
|
@click="
|
||||||
|
setParameterRequest({
|
||||||
|
type: 'gangguan',
|
||||||
|
tahun: currentYear,
|
||||||
|
bulan: currentMonth
|
||||||
|
})
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatNumberAvgDurasiRecoveryKeluhan="{ data }">
|
||||||
|
<p
|
||||||
|
class="text-right cursor-pointer"
|
||||||
|
@click="
|
||||||
|
setParameterRequest({
|
||||||
|
type: 'keluhan',
|
||||||
|
tahun: currentYear,
|
||||||
|
bulan: currentMonth
|
||||||
|
})
|
||||||
|
"
|
||||||
|
>
|
||||||
{{
|
{{
|
||||||
isNumber(data.text)
|
isNumber(data.text)
|
||||||
? data.column.caption == '%'
|
? data.column.caption == '%'
|
||||||
@ -294,13 +345,31 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #formatPercentage="{ data }">
|
<template #formatPercentage="{ data }">
|
||||||
<p class="text-right cursor-pointer">
|
<p
|
||||||
|
class="text-right"
|
||||||
|
@click="
|
||||||
|
setParameterRequest({
|
||||||
|
type: null,
|
||||||
|
tahun: lastYear,
|
||||||
|
bulan: currentMonth
|
||||||
|
})
|
||||||
|
"
|
||||||
|
>
|
||||||
{{ parseFloat(data.text) ? formatPercentage(data.text) : '0%' }}
|
{{ parseFloat(data.text) ? formatPercentage(data.text) : '0%' }}
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #formatText="{ data }">
|
<template #formatText="{ data }">
|
||||||
<p class="text-left cursor-pointer">
|
<p
|
||||||
|
class="text-left"
|
||||||
|
@click="
|
||||||
|
setParameterRequest({
|
||||||
|
type: null,
|
||||||
|
tahun: lastYear,
|
||||||
|
bulan: currentMonth
|
||||||
|
})
|
||||||
|
"
|
||||||
|
>
|
||||||
{{ data.text }}
|
{{ data.text }}
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
@ -716,7 +785,14 @@ const onCellClicked = (e: any) => {
|
|||||||
tahun: currentYear,
|
tahun: currentYear,
|
||||||
bulan: currentMonth
|
bulan: currentMonth
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
setParameterRequest({
|
||||||
|
type: null,
|
||||||
|
tahun: lastYear,
|
||||||
|
bulan: currentMonth
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
groupData.value = getDataRowGroup(e.data)
|
groupData.value = getDataRowGroup(e.data)
|
||||||
showDetail()
|
showDetail()
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user