社保核算报错

This commit is contained in:
黎永顺 2022-12-28 16:38:59 +08:00
parent 8fa65f4efb
commit 657704f8ea
1 changed files with 8 additions and 0 deletions

View File

@ -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