From 75242bbba28ae8902ddf86d33febb497d79e5fc3 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 03 八月 2026 10:45:27 +0800
Subject: [PATCH] 银川 1.首页修改 2.ai辅助功能
---
src/views/hrm/salary/calculation/index.vue | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/src/views/hrm/salary/calculation/index.vue b/src/views/hrm/salary/calculation/index.vue
index 59551ab..8536a41 100644
--- a/src/views/hrm/salary/calculation/index.vue
+++ b/src/views/hrm/salary/calculation/index.vue
@@ -7,7 +7,10 @@
import { Page } from '#/packages/effects/common-ui/src';
import { downloadFileFromBlobPart } from '#/packages/utils/src';
-import { message, Modal, Form, FormItem, DatePicker, TreeSelect, Table, InputNumber, Alert } from 'ant-design-vue';
+import { message, Modal, Form, FormItem, DatePicker, TreeSelect, Table, InputNumber, Alert, Tag } from 'ant-design-vue';
+
+import { DICT_TYPE } from '#/packages/constants/src';
+import { getDictLabel } from '#/packages/effects/hooks/src';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -102,7 +105,8 @@
const deduction = (record.socialSecurityDeduction || 0) +
(record.housingFundDeduction || 0) +
(record.taxDeduction || 0) +
- (record.otherDeduction || 0);
+ (record.otherDeduction || 0) +
+ (record.leaveDeduction || 0);
return income - deduction;
}
@@ -365,6 +369,16 @@
@change="(val: number) => updateFieldValue(record, 'otherDeduction', val)"
/>
</template>
+ <template v-else-if="column.dataIndex === 'leaveDeduction'">
+ <InputNumber
+ v-model:value="record.leaveDeduction"
+ :min="0"
+ :precision="2"
+ size="small"
+ style="width: 90px"
+ @change="(val: number) => updateFieldValue(record, 'leaveDeduction', val)"
+ />
+ </template>
<template v-else-if="column.dataIndex === 'actualSalary'">
<span class="font-bold text-green-600">{{ record.actualSalary?.toFixed(2) }}</span>
</template>
@@ -425,6 +439,11 @@
]"
/>
</template>
+ <template #status="{ row }">
+ <Tag :color="row.status === 0 ? 'warning' : row.status === 10 ? 'success' : 'processing'">
+ {{ getDictLabel(DICT_TYPE.HRM_SALARY_STATUS, row.status) }}
+ </Tag>
+ </template>
<template #actions="{ row }">
<TableAction
:actions="[
--
Gitblit v1.9.3