diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js index afb50e78..2d81ab0d 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js @@ -333,6 +333,14 @@ export default class StandingBook extends React.Component { this.timer = setInterval(() => { getCalculateProgress(moment(billMonth).format("YYYY-MM")).then(({ status, data }) => { if (status) { + if (!data.status) { + clearInterval(this.timer); + this.setState({ + progressVisible: false, + progress: 0 + }); + return; + } if (this.state.progress !== 100) { this.setState({ progress: (Number(data.progress).toFixed(2)) * 100