| | |
| | | offNarcosisNoticeConfirm() { |
| | | if (this.occupyInfoView) { |
| | | if (offNarcosisIds && offNarcosisIds.length) { |
| | | var flag = offNarcosisIds.find((o) => { return o === this.occupyInfoView.visitOrderId }) |
| | | var flag = offNarcosisIds.find((o) => { return o === this.occupyInfoView.userId }) |
| | | if (!flag) { |
| | | offNarcosisIds.push(this.occupyInfoView.visitOrderId) |
| | | offNarcosisIds.push(this.occupyInfoView.userId) |
| | | } |
| | | } else if (offNarcosisIds) { |
| | | offNarcosisIds.push(this.occupyInfoView.visitOrderId) |
| | | offNarcosisIds.push(this.occupyInfoView.userId) |
| | | } |
| | | this.setLocalStorageOffNarcosisIds() |
| | | } |
| | |
| | | var offNarcosisTimer = null |
| | | offNarcosisTimer = setTimeout(() => { |
| | | console.log('================================>', this.occupyInfoView, 'offNarcosisIds:', offNarcosisIds, 'isOffNarcosisShow:', isOffNarcosisShow) |
| | | if (this.occupyInfoView && this.occupyInfoView.hempStatus === 2 && this.occupyInfoView.visitOrderId) { |
| | | if (this.occupyInfoView && this.occupyInfoView.hempStatus === 2 && this.occupyInfoView.userId) { |
| | | var flag |
| | | // offNarcosisIds && offNarcosisIds.length && (flag = offNarcosisIds.find((o) => { return o === this.occupyInfoView.visitOrderId })) |
| | | flag = isOffNarcosisShow |
| | | offNarcosisIds && offNarcosisIds.length && (flag = offNarcosisIds.find((o) => { return o === this.occupyInfoView.userId })) |
| | | // flag = isOffNarcosisShow |
| | | if (!flag) { |
| | | this.showOffNarcosisNotice() |
| | | } |