From 4a3c9311bf41699c09c60a9aaa3a6ebc0030ab20 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Thu, 18 Dec 2025 14:15:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?release/3.0.1.2504.01-=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/captchaModal/index.js | 19 +++++++++++-------- .../standingBookDetail/components/normal.js | 16 +++++++++++----- .../components/regression.js | 10 ++++++++-- 3 files changed, 30 insertions(+), 15 deletions(-) diff --git a/pc4mobx/hrmSalary/components/captchaModal/index.js b/pc4mobx/hrmSalary/components/captchaModal/index.js index 87da6745..b7e3bdd7 100644 --- a/pc4mobx/hrmSalary/components/captchaModal/index.js +++ b/pc4mobx/hrmSalary/components/captchaModal/index.js @@ -21,7 +21,7 @@ const { getLabel } = WeaLocaleProvider; class Index extends Component { constructor(props) { super(props); - this.state = { captcha: "", time: 60 }; + this.state = { captcha: "", time: 60, loading: false }; this.timeRef = null; } @@ -31,10 +31,11 @@ class Index extends Component { componentWillUnmount() { clearInterval(this.timeRef); - this.setState({ captcha: "", time: 60 }); + this.setState({ captcha: "", time: 60, loading: false }); } handleSendCaptcha = () => { + this.setState({ loading: true }); sendMobileCode({ id: this.props.id }).then(({ status, data }) => { if (status) { this.timeRef = setInterval(() => { @@ -42,12 +43,14 @@ class Index extends Component { this.setState({ time: time - 1 }, () => { if (this.state.time === -1) { clearInterval(this.timeRef); - this.setState({ time: 60 }); + this.setState({ time: 60, loading: false }); } }); }, 1000); + } else { + this.setState({ loading: false }); } - }); + }).catch(() => this.setState({ loading: false })); }; handleConfirm = async () => { const type = getQueryString("type"), f = await form.validateForm(); @@ -69,13 +72,13 @@ class Index extends Component { }; render() { - const { captcha, time } = this.state, type = getQueryString("type"); + const { captcha, time, loading } = this.state, type = getQueryString("type"); const itemRender = { mobileCode: (field, textAreaProps, form, formParams) => { return (
this.setState({ captcha: form.getFormParams().mobileCode })}/> -
); } -} +} \ No newline at end of file diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regression.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regression.js index d8c4b744..f6d8098d 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regression.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regression.js @@ -88,7 +88,13 @@ class Regression extends Component { }); break; case "export": - const url = `/api/bs/hrmsalary/welfare/recession/export?${convertToUrlString(_.pick(this.props, ["billMonth", "paymentOrganization", "creator"]))}`; + const extraParams = { + name, + workcode, + departmentIds: this.regTopRef.state.departmentIds, + subCompanyIds: this.regTopRef.state.subCompanyIds + }; + const url = `/api/bs/hrmsalary/welfare/recession/export?${convertToUrlString({ ..._.pick(this.props, ["billMonth", "paymentOrganization", "creator"]), ...extraParams })}`; window.open(url, "_blank"); break; case "search": @@ -152,4 +158,4 @@ class Regression extends Component { } } -export default Regression; +export default Regression; \ No newline at end of file From 11ac14d4409985b549ae5bfcb4f5c0b620ba0483 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Mon, 22 Dec 2025 10:48:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?release/3.0.1.2504.01-=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reportView/components/statisticalMicroSettingsSlide.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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