From 9c75cbbd0300b6cb9b40c95dc8cffc8b2cb23035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 11 Mar 2026 16:40:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[hr]=20=EC=97=B0=EB=B4=89=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=20=ED=95=84=EB=93=9C=20=EC=BD=A4=EB=A7=88=20=ED=91=9C?= =?UTF-8?q?=EC=8B=9C=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - type=number → type=text(inputmode=numeric) 변경 - 입력 시 실시간 콤마 포맷 적용 - 저장 시 숫자만 추출하여 전송 --- .../hr/employees/partials/salary-info.blade.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/resources/views/hr/employees/partials/salary-info.blade.php b/resources/views/hr/employees/partials/salary-info.blade.php index aee5cdd8..2e419930 100644 --- a/resources/views/hr/employees/partials/salary-info.blade.php +++ b/resources/views/hr/employees/partials/salary-info.blade.php @@ -53,11 +53,13 @@ class="inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-lg
-

+ x-text="'월 약 ' + Math.round(form.annual_salary / 12).toLocaleString() + '원'">

@@ -132,6 +134,15 @@ function salaryManager() { notes: initialData.notes || '', }, + formatNumber(val) { + if (!val && val !== 0) return ''; + return Number(val).toLocaleString(); + }, + parseNumber(str) { + const num = parseInt(String(str).replace(/[^0-9]/g, ''), 10); + return isNaN(num) ? '' : num; + }, + async saveSalary() { this.saving = true; try {