src/views/hrm/salary/calculation/data.ts
@@ -34,7 +34,11 @@
        labelField: 'name',
        valueField: 'id',
        allowClear: true,
        placeholder: '请选择员工',
        showSearch: true,
        // 支持按姓名模糊搜索;也可输入员工编号匹配
        filterOption: (input: string, option: any) =>
          `${option?.label ?? ''}`.toLowerCase().includes(input.toLowerCase()),
        placeholder: '请选择员工(可输入姓名搜索)',
      },
    },
    {
@@ -76,6 +80,8 @@
    { field: 'userName', title: '员工姓名', minWidth: 100 },
    { field: 'deptName', title: '部门', minWidth: 120 },
    { field: 'baseSalary', title: '基本工资', width: 120, slots: { default: 'editableCell' } },
    { field: 'postSalary', title: '岗位工资', width: 110, slots: { default: 'editableCell' } },
    { field: 'senioritySalary', title: '工龄工资', width: 110, slots: { default: 'editableCell' } },
    { field: 'performanceSalary', title: '绩效工资', width: 120, slots: { default: 'editableCell' } },
    { field: 'overtimePay', title: '加班费', width: 120, slots: { default: 'editableCell' } },
    { field: 'mealAllowance', title: '餐补', width: 110, slots: { default: 'editableCell' } },
@@ -116,6 +122,8 @@
    { title: '员工姓名', dataIndex: 'userName', width: 100, fixed: 'left' },
    { title: '部门', dataIndex: 'deptName', width: 120 },
    { title: '基本工资', dataIndex: 'baseSalary', width: 110 },
    { title: '岗位工资', dataIndex: 'postSalary', width: 110 },
    { title: '工龄工资', dataIndex: 'senioritySalary', width: 110 },
    { title: '绩效工资', dataIndex: 'performanceSalary', width: 110 },
    { title: '加班费', dataIndex: 'overtimePay', width: 110 },
    { title: '餐补', dataIndex: 'mealAllowance', width: 100 },