| | |
| | | userRealName: '', |
| | | |
| | | //历史评分详情 |
| | | assessmentCompleted: false, |
| | | assessmentCompleted: undefined, |
| | | historyPoint: { |
| | | time: '测评周期----年--月', |
| | | score: '--', |
| | |
| | | period: '', |
| | | }, |
| | | //台账完成情况 |
| | | ledgerCompleted: false, |
| | | ledgerCompleted: undefined, |
| | | monthInfo: { |
| | | //必填项总数 |
| | | totalMust: 0, |
| | |
| | | let year = lastOne.updateDate.substring(0, 4); |
| | | let month = lastOne.updateDate.substring(5, 7); |
| | | const now = moment(); |
| | | if (now.year() == year && now.month() + 1 == month) { |
| | | // fixme 2024.5.24 临时添加静安医疗机构的评估周期为1年,后续再做完善 |
| | | const inPeriod = |
| | | app.globalData.userInfo.extension1 == '静安区' && |
| | | app.globalData.userInfo.extension2 == '9' && |
| | | year == now.year(); |
| | | if ((now.year() == parseInt(year) && now.month() + 1 == parseInt(month) ) || inPeriod) { |
| | | that.setData({ |
| | | assessmentCompleted: true, |
| | | assessmentCompleted: 2, |
| | | }); |
| | | } else { |
| | | that.setData({ |
| | | assessmentCompleted: 1, |
| | | }); |
| | | } |
| | | that.setData({ |
| | | historyPoint: { |
| | |
| | | |
| | | this.setData({ |
| | | monthInfo, |
| | | ledgerCompleted: monthInfo.percent >= 100 && monthInfo.percent2 >= 100, |
| | | // ledgerCompleted: true |
| | | ledgerCompleted: monthInfo.percent >= 100 && monthInfo.percent2 >= 100 ? 2 : 1, |
| | | }); |
| | | }, |
| | | |