필터 달력 수정

This commit is contained in:
focp212@naver.com
2025-11-24 09:41:34 +09:00
parent bd79f4f06c
commit d607b6c619
2 changed files with 5 additions and 7 deletions

View File

@@ -278,11 +278,6 @@ export const AmountInfoSection = ({
tid: tid tid: tid
}; };
cashReceiptReceiptDownload(params).then((rs: CashReceiptReceiptDownloadResponse) => { cashReceiptReceiptDownload(params).then((rs: CashReceiptReceiptDownloadResponse) => {
/*
if(rs?.merchantInfo){
rs.merchantInfo.merchantName = '나이스페이먼츠';
}
*/
setReceiptIssueInfo(rs?.issueInfo); setReceiptIssueInfo(rs?.issueInfo);
setReceiptMerchantInfo(rs?.merchantInfo); setReceiptMerchantInfo(rs?.merchantInfo);
setReceiptTransactionInfo(rs?.transactionInfo); setReceiptTransactionInfo(rs?.transactionInfo);

View File

@@ -64,6 +64,9 @@ export const FilterCalendar = ({
}; };
const onClickToOpenCalendar = (calendarType: CalendarType) => { const onClickToOpenCalendar = (calendarType: CalendarType) => {
setCalendarOpen(true);
setCalendarType(calendarType);
/*
if(!dateReadOnly){ if(!dateReadOnly){
setCalendarOpen(true); setCalendarOpen(true);
setCalendarType(calendarType); setCalendarType(calendarType);
@@ -72,6 +75,7 @@ export const FilterCalendar = ({
setCalendarOpen(false); setCalendarOpen(false);
} }
*/
}; };
const setNewDate = (date: string, calendarType: CalendarType) => { const setNewDate = (date: string, calendarType: CalendarType) => {
@@ -83,6 +87,7 @@ export const FilterCalendar = ({
setEndDate(moment(date, 'YYYY.MM.DD').format('YYYYMMDD')); setEndDate(moment(date, 'YYYY.MM.DD').format('YYYYMMDD'));
setNewEndDate(moment(date, 'YYYY.MM.DD').format('YYYY.MM.DD')); setNewEndDate(moment(date, 'YYYY.MM.DD').format('YYYY.MM.DD'));
} }
setFilterDateOptionsBtn(FilterDateOptions.Input);
setCalendarOpen(false); setCalendarOpen(false);
}; };
@@ -141,7 +146,6 @@ export const FilterCalendar = ({
placeholder={t('filter.selectDate')} placeholder={t('filter.selectDate')}
value={ newStartDate } value={ newStartDate }
onChange={ (e: ChangeEvent<HTMLInputElement>) => {} } onChange={ (e: ChangeEvent<HTMLInputElement>) => {} }
readOnly={ dateReadOnly }
/> />
<button <button
type="button" type="button"
@@ -163,7 +167,6 @@ export const FilterCalendar = ({
placeholder={t('filter.selectDate')} placeholder={t('filter.selectDate')}
value={ newEndDate } value={ newEndDate }
onChange={ (e: ChangeEvent<HTMLInputElement>) => {} } onChange={ (e: ChangeEvent<HTMLInputElement>) => {} }
readOnly={ dateReadOnly }
/> />
<button <button
type="button" type="button"