mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 06:33:32 +09:00
com: 파일 타입 추가 및 공통 함수 이름 수정
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export function formatDate(date) {
|
||||
export function formatDatefromObject(date) {
|
||||
const year = date.getFullYear()
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||
// 월은 0부터 시작
|
||||
@@ -6,6 +6,16 @@ export function formatDate(date) {
|
||||
return `${year}-${month}-${day}`
|
||||
}
|
||||
|
||||
export function formatDatefromString(dateStr) {
|
||||
if (!dateStr) return ''
|
||||
const date = new Date(dateStr)
|
||||
return date.toLocaleDateString('ko-KR', {
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
}).replace(/\./g, '-').replace(/\s/g, '').replace(/-$/,'')
|
||||
}
|
||||
|
||||
export function formatBizNum(num){
|
||||
if (!num) return ''
|
||||
|
||||
|
||||
@@ -14,4 +14,15 @@ export type Person = {
|
||||
attend_sta_ymd: string
|
||||
attend_end_ymd: string
|
||||
gubun_cd: string
|
||||
}
|
||||
|
||||
export interface iPbAtt {
|
||||
prcsNo: string
|
||||
bizNo: string
|
||||
fileOrd: number
|
||||
logiFnm: string
|
||||
physFnm: string
|
||||
size: number
|
||||
data: string
|
||||
path: string
|
||||
}
|
||||
Reference in New Issue
Block a user