custom-旭化成

This commit is contained in:
lys 2025-01-07 17:35:31 +08:00
parent 7d49e19bd9
commit 1b1ac94c15
1 changed files with 10 additions and 7 deletions

View File

@ -98,13 +98,16 @@ class DepartmentReport extends Component {
salaryMonth: (field, textAreaProps, form, formParams) => {
return (<div className="mounth-range">
<MonthRangePicker dateRange={dateRange} viewAttr={2}
onChange={([start, end]) => this.setState({
queryData: {
...queryData,
fromDate: moment(start).startOf("month").format("YYYY-MM-DD"),
toDate: moment(end).startOf("month").format("YYYY-MM-DD")
}
}, () => this.getxhcDepartmentReport())}/>
onChange={([start, end]) => {
if (!start || !end) return;
this.setState({
queryData: {
...queryData,
fromDate: moment(start).startOf("month").format("YYYY-MM-DD"),
toDate: moment(end).startOf("month").format("YYYY-MM-DD")
}
}, () => this.getxhcDepartmentReport());
}}/>
</div>);
},
subCompanyIds: (field, textAreaProps, form, formParams) => {