From d2008d93877c0ff1628b5d90f034410da3834f07 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 04 十一月 2026 15:33:33 +0800
Subject: [PATCH] 九鸿:薪酬核算预览所有数值列均可手工修改

---
 src/views/hrm/salary/calculation/data.ts |   45 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 44 insertions(+), 1 deletions(-)

diff --git a/src/views/hrm/salary/calculation/data.ts b/src/views/hrm/salary/calculation/data.ts
index 0115d14..322868c 100644
--- a/src/views/hrm/salary/calculation/data.ts
+++ b/src/views/hrm/salary/calculation/data.ts
@@ -131,9 +131,28 @@
   ];
 }
 
-/** 棰勮琛ㄦ牸閲屽厑璁告墜宸ヨ皟鏁寸殑瀛楁锛堝叾浣欏潎涓鸿嚜鍔ㄨ绠楋級 */
+/**
+ * 棰勮琛ㄦ牸閲屽彲鎵嬪伐璋冩暣鐨勫瓧娈碉細鎵�鏈夎柂閰暟鍊煎瓧娈甸兘鍙湪鑷姩璁$畻缁撴灉涓婁慨鏀广��
+ * 鑷姩璁$畻鍙礋璐g敓鎴愬垵鍊硷紝淇濆瓨鏃朵互椤甸潰涓婄湅鍒扮殑鍊间负鍑嗐��
+ */
 export const PREVIEW_EDITABLE_FIELDS = [
+  'workDays',
+  'paidAttendanceDays',
+  'standardSalary',
+  'baseSalary',
+  'postSalary',
+  'overtimeHourlyRate',
+  'safetyAwardStandard',
+  'performanceStandard',
+  'standardWorkHours',
+  'overtimeHours',
+  'legalHolidayHours',
+  'standardAttendancePay',
+  'overtimePay',
+  'legalHolidayPay',
+  'safetyAward',
   'floatingPerformancePay',
+  'payableSalary',
   'seniorityPay',
   'nightShiftAllowance',
   'educationAllowance',
@@ -141,11 +160,35 @@
   'excellentEmployeeAward',
   'otherSubsidy',
   'deptPerformance',
+  'additionTotal',
   'missedPunchDeduction',
   'lateEarlyDeduction',
   'otherDeduction',
+  'deductionTotal',
+  'socialSecurityDeduction',
+  'housingFundDeduction',
+  'taxDeduction',
+  'actualSalary',
 ] as const;
 
+/** 搴斾粯宸ヨ祫鐨勬瀯鎴愬瓧娈碉紙浠讳竴鍙樺寲閮介噸绠楀簲浠樺伐璧勶級 */
+export const PREVIEW_PAYABLE_COMPONENTS = [
+  'standardAttendancePay',
+  'overtimePay',
+  'legalHolidayPay',
+  'safetyAward',
+  'floatingPerformancePay',
+] as const;
+
+/** 鍚勫瓧娈电殑褰曞叆绮惧害锛堟湭鍒楀嚭鐨勬寜閲戦 2 浣嶅皬鏁帮級 */
+export const PREVIEW_FIELD_PRECISION: Record<string, number> = {
+  workDays: 0,
+  paidAttendanceDays: 1,
+  standardWorkHours: 1,
+  overtimeHours: 1,
+  legalHolidayHours: 1,
+};
+
 /** 鍔犻」瀛楁锛堟眹鎬讳负銆屽姞椤瑰悎璁°�嶏級 */
 export const PREVIEW_ADDITION_FIELDS = [
   'seniorityPay',

--
Gitblit v1.9.3