| | |
| | | o.appellationName = o.userName[0] + `${o.gender ? ['女士', '先生', '女士'][o.gender] : '女士'}` |
| | | }) |
| | | } |
| | | // 已占用用户数据处理 |
| | | if (res.data.occupyInfo && res.data.occupyInfo.userName) { |
| | | res.data.occupyInfo.appellationName = res.data.occupyInfo.userName[0] + `${res.data.occupyInfo.gender ? ['女士', '先生', '女士'][res.data.occupyInfo.gender] : '女士'}` |
| | | } |
| | | // 已有占用的,更改已使用默认客人的状态 |
| | | res.data.occupyInfo && (isUseDefaultChg = 1) |
| | | res.data.occupyInfo && (isUseDefault = 1) |
| | |
| | | var offNarcosisTimer = null |
| | | offNarcosisTimer = setTimeout(() => { |
| | | console.log('================================>', this.occupyInfoView) |
| | | if (this.occupyInfoView && this.occupyInfoView.hempStatus === 1 && this.occupyInfoView.visitOrderId) { |
| | | if (this.occupyInfoView && this.occupyInfoView.hempStatus === 2 && this.occupyInfoView.visitOrderId) { |
| | | var flag |
| | | offNarcosisIds && offNarcosisIds.length && (flag = offNarcosisIds.find((o) => { return o === this.occupyInfoView.visitOrderId })) |
| | | if (!flag) { |