Compare commits
No commits in common. "29771cbde6f9ab24003be80dfe6f39dc964779c4" and "f94e4e047c0a034b9bc98fc43aa591d625dec551" have entirely different histories.
29771cbde6
...
f94e4e047c
@ -15,7 +15,7 @@ export default function Answer({
|
||||
<div className="inquiry-answer-header">
|
||||
<div className="inquiry-answer-tit">Hanwha Japan 回答</div>
|
||||
<div className="inquiry-answer-date">
|
||||
<span>{inquiryDetail?.ansRegNm}</span> / <span>{inquiryDetail?.ansRegDt}</span>
|
||||
<span>{inquiryDetail?.ansRegNm}</span>/ <span>{inquiryDetail?.ansRegDt}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="inquiry-detail-data">
|
||||
|
||||
@ -8,7 +8,7 @@ import SearchForm from './SearchForm'
|
||||
import { useSurveyFilterStore } from '@/store/surveyFilterStore'
|
||||
import { useSessionStore } from '@/store/session'
|
||||
import type { SurveyBasicInfo } from '@/types/Survey'
|
||||
import { formatDateTime, formatDate } from '@/utils/common-utils'
|
||||
import { formatDateTime } from '@/utils/common-utils'
|
||||
|
||||
export default function ListTable() {
|
||||
const router = useRouter()
|
||||
@ -69,7 +69,7 @@ export default function ListTable() {
|
||||
<div className="sale-item-bx">
|
||||
<div className="sale-item-date-bx">
|
||||
<div className="sale-item-num">{survey.srlNo}</div>
|
||||
<div className="sale-item-date">{formatDate(survey.regDt)}</div>
|
||||
<div className="sale-item-date">{survey.investigationDate}</div>
|
||||
</div>
|
||||
<div className="sale-item-tit">{survey.buildingName === null ? '-' : survey.buildingName}</div>
|
||||
<div className="sale-item-customer">{survey.customerName === null ? '-' : survey.customerName}</div>
|
||||
|
||||
@ -254,19 +254,3 @@ export const formatDateTime = (date) => {
|
||||
})
|
||||
.replace(/\//g, '.')
|
||||
}
|
||||
|
||||
/**
|
||||
* 날짜만 형식 변환
|
||||
* @param {Date | string} date 날짜 데이터
|
||||
* @returns {string} 포맷팅된 날짜 문자열 (YYYY.MM.DD)
|
||||
*/
|
||||
export const formatDate = (date) => {
|
||||
if (date === '' || date === null || date === undefined) return ''
|
||||
|
||||
const dateObj = new Date(date)
|
||||
const year = dateObj.getFullYear()
|
||||
const month = String(dateObj.getMonth() + 1).padStart(2, '0')
|
||||
const day = String(dateObj.getDate()).padStart(2, '0')
|
||||
|
||||
return `${year}.${month}.${day}`
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user