fix(WEB): 대시보드 가지급금 모달 텍스트 및 undefined 처리
- "미정정" → "미설정"으로 텍스트 수정 - pending_count undefined 시 0으로 기본값 처리
This commit is contained in:
@@ -217,7 +217,7 @@ export function transformCm2ModalConfig(
|
||||
summaryCards: [
|
||||
{ label: '가지급금', value: formatKoreanCurrency(summary.total_outstanding) },
|
||||
{ label: '인정이자 4.6%', value: summary.recognized_interest, unit: '원' },
|
||||
{ label: '미정정', value: `${summary.pending_count}건` },
|
||||
{ label: '미설정', value: `${summary.pending_count ?? 0}건` },
|
||||
],
|
||||
table: {
|
||||
title: '가지급금 관련 내역',
|
||||
@@ -227,7 +227,7 @@ export function transformCm2ModalConfig(
|
||||
{ key: 'target', label: '대상', align: 'center' },
|
||||
{ key: 'category', label: '구분', align: 'center' },
|
||||
{ key: 'amount', label: '금액', align: 'right', format: 'currency' },
|
||||
{ key: 'status', label: '상태', align: 'center', highlightValue: '미정정' },
|
||||
{ key: 'status', label: '상태', align: 'center', highlightValue: '미설정' },
|
||||
{ key: 'content', label: '내용', align: 'left' },
|
||||
],
|
||||
data: tableData,
|
||||
|
||||
@@ -175,7 +175,7 @@ export function getCardManagementModalConfig(cardId: string): DetailModalConfig
|
||||
summaryCards: [
|
||||
{ label: '가지급금', value: '4.5억원' },
|
||||
{ label: '인정이자 4.6%', value: 6000000, unit: '원' },
|
||||
{ label: '미정정', value: '10건' },
|
||||
{ label: '미설정', value: '10건' },
|
||||
],
|
||||
table: {
|
||||
title: '가지급금 관련 내역',
|
||||
@@ -185,15 +185,15 @@ export function getCardManagementModalConfig(cardId: string): DetailModalConfig
|
||||
{ key: 'target', label: '대상', align: 'center' },
|
||||
{ key: 'category', label: '구분', align: 'center' },
|
||||
{ key: 'amount', label: '금액', align: 'right', format: 'currency' },
|
||||
{ key: 'status', label: '상태', align: 'center', highlightValue: '미정정' },
|
||||
{ key: 'status', label: '상태', align: 'center', highlightValue: '미설정' },
|
||||
{ key: 'content', label: '내용', align: 'left' },
|
||||
],
|
||||
data: [
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '카드명', amount: 1000000, status: '미정정', content: '미정정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '카드명', amount: 1000000, status: '미설정', content: '미설정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '카드명', amount: 1000000, status: '접비(미정리)', content: '접대비 불인정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '계좌명', amount: 1000000, status: '미정정', content: '접대비 불인정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '계좌명', amount: 1000000, status: '미정정', content: '미정정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '-', amount: 1000000, status: '미정정', content: '미정정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '계좌명', amount: 1000000, status: '미설정', content: '접대비 불인정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '계좌명', amount: 1000000, status: '미설정', content: '미설정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '-', amount: 1000000, status: '미설정', content: '미설정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '카드명', amount: 1000000, status: '접대비', content: '접대비 불인정' },
|
||||
{ date: '2025-12-12 12:12', target: '홍길동', category: '카드명', amount: 1000000, status: '-', content: '복리후생비, 주말/심야 카드 사용' },
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user