diff --git a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js index 6124375d..a133adea 100644 --- a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js +++ b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js @@ -448,7 +448,9 @@ export const MonthRangePicker = (props) => { { - return current && endDate && current.getTime() > new Date(endDate).getTime(); + // 20251212前版本(问题时不能选到当月) + // return current && endDate && current.getTime() > new Date(endDate).getTime(); + return current && endDate && moment(`${new Date(current.getTime()).getFullYear()}-${new Date(current.getTime()).getMonth() + 1}`).isAfter(moment(endDate)); }} format="YYYY-MM" onChange={(val) => onChange([val, endDate])} @@ -510,4 +512,4 @@ export const getSalaryMonthValue = (dateType) => { break; } return [start, end]; -}; +}; \ No newline at end of file