| | |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'feePaid', |
| | | label: '是否缴纳会费', |
| | | component: 'Switch', |
| | | componentProps: (_values, form) => ({ |
| | | checkedChildren: '已缴', |
| | | unCheckedChildren: '未缴', |
| | | disabled: formType === 'detail', |
| | | onChange: (checked: boolean) => { |
| | | // 取消缴纳时清空年度;勾选时默认当前年度,仍可修改 |
| | | form.setFieldValue( |
| | | 'feeYear', |
| | | checked ? new Date().getFullYear() : undefined, |
| | | ); |
| | | }, |
| | | }), |
| | | }, |
| | | { |
| | | fieldName: 'feeYear', |
| | | label: '缴费年度', |
| | | component: 'InputNumber', |
| | | componentProps: { |
| | | placeholder: '请输入缴费年度,如 2026', |
| | | min: 2000, |
| | | max: 2100, |
| | | precision: 0, |
| | | class: '!w-full', |
| | | disabled: formType === 'detail', |
| | | }, |
| | | dependencies: { |
| | | triggerFields: ['feePaid'], |
| | | show: (values) => !!values.feePaid, |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'status', |
| | | label: '状态', |
| | | component: 'Select', |
| | |
| | | formatter: 'formatDate', |
| | | }, |
| | | { |
| | | field: 'feePaid', |
| | | title: '会费缴纳', |
| | | minWidth: 120, |
| | | slots: { default: 'feePaid' }, |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: '状态', |
| | | minWidth: 85, |