liu
16 小时以前 611dd8268e40caa4d97e8954b85b5adaaef99afa
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: '请选择员工(可输入姓名搜索)',
      },
    },
    {
@@ -75,20 +79,23 @@
    { field: 'period', title: '核算周期', width: 100 },
    { field: 'userName', title: '员工姓名', minWidth: 100 },
    { field: 'deptName', title: '部门', minWidth: 120 },
    { field: 'baseSalary', title: '基本工资', width: 100, formatter: 'formatAmount2' },
    { field: 'performanceSalary', title: '绩效工资', width: 100, formatter: 'formatAmount2' },
    { field: 'overtimePay', title: '加班费', width: 100, formatter: 'formatAmount2' },
    { field: 'mealAllowance', title: '餐补', width: 80, formatter: 'formatAmount2' },
    { field: 'transportAllowance', title: '交通补贴', width: 80, formatter: 'formatAmount2' },
    { field: 'otherAllowance', title: '其他补贴', width: 80, formatter: 'formatAmount2' },
    { field: 'socialSecurityDeduction', title: '社保扣款', width: 100, formatter: 'formatAmount2' },
    { field: 'housingFundDeduction', title: '公积金扣款', width: 100, formatter: 'formatAmount2' },
    { field: 'taxDeduction', title: '个税扣款', width: 100, formatter: 'formatAmount2' },
    { field: 'otherDeduction', title: '其他扣款', width: 80, formatter: 'formatAmount2' },
    { field: 'leaveDeduction', title: '请假扣款', width: 100, formatter: 'formatAmount2' },
    { field: 'actualSalary', title: '实发工资', width: 100, formatter: 'formatAmount2' },
    { field: 'workDays', title: '出勤天数', width: 80 },
    { field: 'overtimeHours', title: '加班时长(h)', width: 100 },
    { 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' } },
    { field: 'transportAllowance', title: '交通补贴', width: 110, slots: { default: 'editableCell' } },
    { field: 'otherAllowance', title: '其他补贴', width: 110, slots: { default: 'editableCell' } },
    { field: 'socialSecurityDeduction', title: '社保扣款', width: 120, slots: { default: 'editableCell' } },
    { field: 'housingFundDeduction', title: '公积金扣款', width: 120, slots: { default: 'editableCell' } },
    { field: 'taxDeduction', title: '个税扣款', width: 120, slots: { default: 'editableCell' } },
    { field: 'otherDeduction', title: '其他扣款', width: 110, slots: { default: 'editableCell' } },
    { field: 'leaveDeduction', title: '请假扣款', width: 120, slots: { default: 'editableCell' } },
    { field: 'actualSalary', title: '实发工资', width: 110, formatter: 'formatAmount2' },
    { field: 'workDays', title: '出勤天数', width: 110, slots: { default: 'editableCell' } },
    { field: 'overtimeHours', title: '加班时长(h)', width: 120, slots: { default: 'editableCell' } },
    { field: 'totalWorkHours', title: '排班工时(h)', width: 110 },
    {
      field: 'status',
      title: '状态',
@@ -100,7 +107,7 @@
    },
    {
      title: '操作',
      width: 120,
      width: 220,
      fixed: 'right',
      slots: {
        default: 'actions',
@@ -115,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 },
@@ -127,6 +136,7 @@
    { title: '请假扣款', dataIndex: 'leaveDeduction', width: 110 },
    { title: '出勤天数', dataIndex: 'workDays', width: 90 },
    { title: '加班时长', dataIndex: 'overtimeHours', width: 100 },
    { title: '排班工时(h)', dataIndex: 'totalWorkHours', width: 100 },
    { title: '实发工资', dataIndex: 'actualSalary', width: 100, fixed: 'right' },
  ];
}