From 6f35f9dc767e99ad701f7f6e2f5d4c52b6cc1d0f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 14 十月 2026 14:05:26 +0800
Subject: [PATCH] refactor(wls): 将级联选择组件替换为普通输入框

---
 src/views/hrm/salary/payment/data.ts |   63 +++++--------------------------
 1 files changed, 11 insertions(+), 52 deletions(-)

diff --git a/src/views/hrm/salary/payment/data.ts b/src/views/hrm/salary/payment/data.ts
index c93e181..29b66d6 100644
--- a/src/views/hrm/salary/payment/data.ts
+++ b/src/views/hrm/salary/payment/data.ts
@@ -2,12 +2,8 @@
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 import type { HrmSalaryPaymentApi } from '#/api/hrm/salary/payment';
 
-import { DICT_TYPE } from '#/packages/constants/src';
 import { getDictOptions } from '#/packages/effects/hooks/src';
-
-import { getDeptList } from '#/api/system/dept';
-import { getEmployeeSimpleList } from '#/api/hrm/employee';
-import { handleTree } from '#/packages/utils/src';
+import { DICT_TYPE } from '#/packages/constants/src';
 
 /** 鍒楄〃鐨勬悳绱㈣〃鍗� */
 export function useGridFormSchema(): VbenFormSchema[] {
@@ -26,44 +22,14 @@
       },
     },
     {
-      fieldName: 'userId',
-      label: '鍛樺伐',
-      component: 'ApiSelect',
-      componentProps: {
-        api: getEmployeeSimpleList,
-        labelField: 'name',
-        valueField: 'id',
-        allowClear: true,
-        placeholder: '璇烽�夋嫨鍛樺伐',
-      },
-    },
-    {
-      fieldName: 'deptId',
-      label: '閮ㄩ棬',
-      component: 'ApiTreeSelect',
-      componentProps: {
-        api: async () => {
-          const data = await getDeptList();
-          return handleTree(data);
-        },
-        labelField: 'name',
-        valueField: 'id',
-        childrenField: 'children',
-        allowClear: true,
-        placeholder: '璇烽�夋嫨閮ㄩ棬',
-        treeDefaultExpandAll: true,
-      },
-    },
-    {
       fieldName: 'status',
       label: '鍙戞斁鐘舵��',
       component: 'Select',
       componentProps: {
         allowClear: true,
         options: [
-          { label: '寰呭彂鏀�', value: 10 },
-          { label: '宸插彂鏀�', value: 20 },
-          { label: '宸叉挙閿�', value: 30 },
+          { label: '寰呭彂鏀�', value: 0 },
+          { label: '宸插彂鏀�', value: 10 },
         ],
         placeholder: '璇烽�夋嫨鍙戞斁鐘舵��',
       },
@@ -74,12 +40,10 @@
 /** 鍒楄〃鐨勫瓧娈� */
 export function useGridColumns(): VxeTableGridOptions<HrmSalaryPaymentApi.SalaryPayment>['columns'] {
   return [
-    { type: 'checkbox', width: 50 },
     { field: 'no', title: '鍙戞斁鍗曞彿', minWidth: 140 },
     { field: 'period', title: '鍙戞斁鍛ㄦ湡', width: 100 },
-    { field: 'userName', title: '鍛樺伐濮撳悕', minWidth: 100 },
-    { field: 'deptName', title: '閮ㄩ棬', minWidth: 120 },
-    { field: 'actualSalary', title: '瀹炲彂宸ヨ祫', width: 100, formatter: 'formatAmount2' },
+    { field: 'totalAmount', title: '鍙戞斁鎬婚噾棰�', width: 120, formatter: 'formatAmount2' },
+    { field: 'totalCount', title: '鍙戞斁浜烘暟', width: 100 },
     {
       field: 'paymentMethod',
       title: '鍙戞斁鏂瑰紡',
@@ -90,29 +54,24 @@
       },
     },
     { field: 'paymentTime', title: '鍙戞斁鏃堕棿', width: 160 },
-    { field: 'paymentNo', title: '鍙戞斁娴佹按鍙�', minWidth: 140 },
     {
       field: 'status',
-      title: '鍙戞斁鐘舵��',
+      title: '鐘舵��',
       width: 100,
-      cellRender: {
-        name: 'CellDict',
-        props: { type: DICT_TYPE.HRM_SALARY_STATUS },
-      },
+      fixed: 'right',
+      slots: { default: 'status' },
     },
     {
       field: 'createTime',
       title: '鍒涘缓鏃堕棿',
       width: 180,
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
     },
     {
       title: '鎿嶄綔',
-      width: 150,
+      width: 180,
       fixed: 'right',
-      slots: {
-        default: 'actions',
-      },
+      slots: { default: 'actions' },
     },
   ];
 }
\ No newline at end of file

--
Gitblit v1.9.3