| | |
| | | export function useGridFormSchema(): VbenFormSchema[] { |
| | | return [ |
| | | { |
| | | fieldName: 'yearMonth', |
| | | label: '年月', |
| | | component: 'DatePicker', |
| | | // 按日区间筛选:传了日期就实时统计区间内的考勤;不传则看已生成的月度汇总 |
| | | fieldName: 'dateRange', |
| | | label: '统计日期', |
| | | component: 'RangePicker', |
| | | componentProps: { |
| | | picker: 'month', |
| | | allowClear: true, |
| | | valueFormat: 'YYYY-MM', |
| | | format: 'YYYY-MM', |
| | | valueFormat: 'YYYY-MM-DD', |
| | | format: 'YYYY-MM-DD', |
| | | style: { width: '100%' }, |
| | | placeholder: '选择年月', |
| | | placeholder: ['开始日期', '结束日期'], |
| | | }, |
| | | }, |
| | | { |
| | |
| | | return [ |
| | | { field: 'userName', title: '员工姓名', minWidth: 100 }, |
| | | { field: 'deptName', title: '部门', minWidth: 120 }, |
| | | { field: 'yearMonth', title: '年月', width: 100 }, |
| | | { field: 'yearMonth', title: '统计区间', width: 190 }, |
| | | { field: 'workDays', title: '应出勤天数', width: 100 }, |
| | | { field: 'actualDays', title: '实际出勤天数', width: 110 }, |
| | | { |