diff --git a/index.html b/index.html index d6f5132..08a1f5e 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@ + @@ -19,7 +20,7 @@
`; -export function openPcModal(asset: HardwareAsset, mode: 'view' | 'add' = 'view') { +export function openPcModal(asset: HardwareAsset, mode: 'view' | 'add' | 'edit' = 'view') { currentAsset = asset; const modal = document.getElementById('pc-asset-modal'); if (!modal) return; @@ -157,14 +157,14 @@ export function openPcModal(asset: HardwareAsset, mode: 'view' | 'add' = 'view') if (form) form.reset(); - if (mode === 'add') { + if (mode === 'add' || mode === 'edit') { isEditMode = true; if (form) { form.classList.remove('is-view-mode'); form.classList.add('is-edit-mode'); } saveBtn.textContent = '저장'; - revertBtn.classList.add('hidden'); + revertBtn.classList.toggle('hidden', mode === 'add'); const prevOrgGroup = document.getElementById('pc-이전사용조직-group'); if (prevOrgGroup) prevOrgGroup.style.display = 'none'; } else { diff --git a/src/components/Modal/SWModal.ts b/src/components/Modal/SWModal.ts index f144971..d4ab284 100644 --- a/src/components/Modal/SWModal.ts +++ b/src/components/Modal/SWModal.ts @@ -2,13 +2,14 @@ import { state } from '../../core/state'; import { SoftwareAsset } from '../../core/excelHandler'; import { openModal, closeModals } from './BaseModal'; import { openSwUserModal } from './SWUserModal'; -import { createIcons, History, Plus, X, Save, Edit2, RotateCcw } from 'lucide'; +import { createIcons, History, Plus, X, Save, Edit2, RotateCcw, Calendar } from 'lucide'; import { CORP_LIST } from './SharedData'; import { generateOptionsHTML, setFieldValue, getFieldValue, - setEditLock + setEditLock, + applyDateMask } from './ModalUtils'; let currentSwAsset: SoftwareAsset | null = null; @@ -31,7 +32,16 @@ const SW_MODAL_HTML = `
기본 정보 (Identity)
- + + +
+
+
@@ -46,8 +56,8 @@ const SW_MODAL_HTML = `
-
- +
+
@@ -100,16 +110,38 @@ const SW_MODAL_HTML = `
관리 및 비고
- -
-
- - +
+ + + +
+
+ +
+ + + +
+
+
+ +
+ + + +
+
@@ -119,8 +151,8 @@ const SW_MODAL_HTML = `

사용자 할당 현황

-
@@ -130,8 +162,8 @@ const SW_MODAL_HTML = `
- -