From 5b2222922a23a307a97204a01d7c2ca951855c6f Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期一, 19 十月 2026 10:44:23 +0800
Subject: [PATCH] feat(hrm): 薪酬核算列表新增「修改」,支持自定义各金额字段

---
 src/views/hrm/salary/calculation/index.vue |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/views/hrm/salary/calculation/index.vue b/src/views/hrm/salary/calculation/index.vue
index 33a1f36..d07d3ea 100644
--- a/src/views/hrm/salary/calculation/index.vue
+++ b/src/views/hrm/salary/calculation/index.vue
@@ -28,8 +28,10 @@
 import { $t } from '#/locales';
 
 import { useGridColumns, useGridFormSchema, usePreviewColumns } from './data';
+import FormModal from './modules/form.vue';
 
 // 鏍哥畻寮圭獥鐩稿叧
+const formModalRef = ref();
 const calculateVisible = ref(false);
 const calculatePeriod = ref<string>();
 const calculateDeptId = ref<number>();
@@ -469,6 +471,7 @@
       </div>
     </Modal>
 
+    <FormModal ref="formModalRef" @success="handleRefresh" />
     <Grid table-title="钖叕鏍哥畻鍒楄〃">
       <template #toolbar-tools>
         <TableAction
@@ -511,6 +514,13 @@
         <TableAction
           :actions="[
             {
+              label: '淇敼',
+              type: 'link',
+              auth: ['hrm:salary-calculation:calculate'],
+              ifShow: row.status === 0,
+              onClick: () => formModalRef.value?.open(row),
+            },
+            {
               label: '纭',
               type: 'link',
               auth: ['hrm:salary-calculation:confirm'],

--
Gitblit v1.9.3