mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 15:53:44 +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 year = date.getFullYear()
|
||||||
const month = String(date.getMonth() + 1).padStart(2, '0')
|
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||||
// 월은 0부터 시작
|
// 월은 0부터 시작
|
||||||
@@ -6,6 +6,16 @@ export function formatDate(date) {
|
|||||||
return `${year}-${month}-${day}`
|
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){
|
export function formatBizNum(num){
|
||||||
if (!num) return ''
|
if (!num) return ''
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,14 @@ export type Person = {
|
|||||||
attend_end_ymd: string
|
attend_end_ymd: string
|
||||||
gubun_cd: 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