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 {