社保核算报错
This commit is contained in:
parent
8fa65f4efb
commit
657704f8ea
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue