91 lines
3.5 KiB
TypeScript
91 lines
3.5 KiB
TypeScript
import { ValueType } from "realgrid";
|
|
|
|
import { footerDecimal1,footerInt } from "@/components/util/grid/footerSummary";
|
|
|
|
// 하수도 통계 관리 > 09.하수도 재정 > tab 2: 하수도 요금
|
|
export const SewerageChargeInpColumn = {
|
|
columns: [
|
|
// 행정구역
|
|
{ name: 'ctpvNm', fieldName: 'ctpvNm', header: { text: '시도' }, footer: { text: '합계' }, editable: false, styleName: 'rg-cell-readonly' },
|
|
{ name: 'sggNm', fieldName: 'sggNm', header: { text: '시군구' }, editable: false, styleName: 'rg-cell-readonly' },
|
|
|
|
// 요금
|
|
{ name: 'anlLevyQnt', fieldName: 'anlLevyQnt', header: { text: '연간조정량(m³)(A)' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'levyAmt', fieldName: 'levyAmt', header: { text: '하수도사용료수익(원)(B)' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{
|
|
name: 'avgUntprcAmt',
|
|
fieldName: 'avgUntprcAmt',
|
|
header: { text: 'm³당요금(원/m³) C=(B/A)' },
|
|
editable: false,
|
|
footer: footerDecimal1,
|
|
styleName: 'rg-cell-total',
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0.0',
|
|
computed: {
|
|
fields: ['levyAmt', 'anlLevyQnt'],
|
|
type: 'quotient' as const,
|
|
},
|
|
},
|
|
|
|
{ name: 'grssPrmcoAmt', fieldName: 'grssPrmcoAmt', header: { text: '총괄원가(원)(D)' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{
|
|
name: 'grssUnitPrmcoAmt',
|
|
fieldName: 'grssUnitPrmcoAmt',
|
|
header: { text: 'm³당원가(원/m³) E=(D/A)' },
|
|
editable: false,
|
|
footer: footerDecimal1,
|
|
styleName: 'rg-cell-total',
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0.0',
|
|
computed: {
|
|
fields: ['grssPrmcoAmt', 'anlLevyQnt'],
|
|
type: 'quotient' as const,
|
|
},
|
|
},
|
|
{
|
|
name: 'rlztnRt',
|
|
fieldName: 'rlztnRt',
|
|
header: { text: '요금현실화율(%) F=(C/E*100)' },
|
|
editable: false,
|
|
footer: footerDecimal1,
|
|
styleName: 'rg-cell-total',
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0.0',
|
|
computed: {
|
|
numeratorQuotient: ['levyAmt', 'anlLevyQnt'] as [string, string],
|
|
denominatorQuotient: ['grssPrmcoAmt', 'anlLevyQnt'] as [string, string],
|
|
type: 'quotientRatioPercent' as const,
|
|
},
|
|
},
|
|
|
|
// 비고
|
|
{ name: 'rmrk', fieldName: 'rmrk', header: { text: '비고' } },
|
|
|
|
// hidden
|
|
{ name: 'admdstCd', fieldName: 'admdstCd', header: { text: '행정구역코드' }, visible: false, },
|
|
{ name: 'admdstNm', fieldName: 'admdstNm', header: { text: '행정구역명' }, visible: false },
|
|
],
|
|
columnLayout: [
|
|
{
|
|
name: 'group_admin',
|
|
header: { text: '행정구역' },
|
|
items: [
|
|
{ column: 'ctpvNm', footerUserSpans: [{ colspan: 2 }] },
|
|
'sggNm',
|
|
],
|
|
},
|
|
'anlLevyQnt',
|
|
'levyAmt',
|
|
'avgUntprcAmt',
|
|
'grssPrmcoAmt',
|
|
'grssUnitPrmcoAmt',
|
|
'rlztnRt',
|
|
'rmrk',
|
|
'admdstCd',
|
|
'admdstNm'
|
|
],
|
|
rowStartNum: 2,
|
|
fixedColumns: 1,
|
|
tabKey: 'ST00090002',
|
|
tabLabel: '하수도 요금'
|
|
}; |