| | |
| | | <div class="guest_block flex-1"> |
| | | <div class="guest_list"> |
| | | <div v-for="(item, index) in assignTreatList" :key="index" class="guest_list__row flex flex-ver" @click="selectCustomer(item)"> |
| | | <div class="guest_list__td flex flex-center"> |
| | | <div> |
| | | <div class="tx">{{ item.userName }}</div> |
| | | <div class="tx" style="font-size: 14px;line-height: 20px;">{{ item.ciq || '' }}</div> |
| | | <div class="guest_list__td"> |
| | | <div class="tx flex flex-ver"> |
| | | <div class="flex-1 flex-1-w1 ell">{{ item.userName }}</div> |
| | | </div> |
| | | <div class="tx" style="font-size: 14px;line-height: 20px;">{{ item.ciq || '' }}</div> |
| | | </div> |
| | | <div class="guest_list__td flex flex-center"> |
| | | <span class="tx">{{ item.startTime?item.startTime+'开始':'' }}</span> |
| | | </div> |
| | | <div class="guest_list__td flex flex-center"> |
| | | <span class="tx">{{ item.aDoctorName?item.aDoctorName+'(医生)、':'' }}{{ item.aNurseName?item.aNurseName+'(护士)':'' }}</span> |
| | | <span class="tx flex-1 flex-1-w1 ell">{{ item.aDoctorName?item.aDoctorName+'(医生)、':'' }}{{ item.aNurseName?item.aNurseName+'(护士)':'' }}</span> |
| | | </div> |
| | | <div class="guest_list__td flex flex-center"> |
| | | <img class="icon" src="../../assets/img/choose.png"> |
| | |
| | | <div v-if="roomInfo && roomInfo.roomNo" class="room_title">{{ roomInfo.roomNo }}</div> |
| | | <div class="room_content"> |
| | | <div class="tip">诊疗安排</div> |
| | | <div class="name">{{ occupyInfoView.userName }}</div> |
| | | <!-- <div class="name">{{ occupyInfoView.userName }}</div> --> |
| | | <div class="name"> |
| | | <el-popover |
| | | placement="top" |
| | | width="400" |
| | | popper-class="top_tx" |
| | | trigger="click" |
| | | :popper-options="{ removeOnDestroy: true }" |
| | | > |
| | | <div>{{ occupyInfoView.userName }}</div> |
| | | <div slot="reference" class="tx ell">{{ occupyInfoView.userName }}</div> |
| | | </el-popover> |
| | | </div> |
| | | <div v-if="occupyInfoView.ciq" class="ciq">({{ occupyInfoView.ciq }})</div> |
| | | <div v-if="occupyInfoView.startTime" class="time">安排治疗时间:{{ occupyInfoView.startTime }} 开始</div> |
| | | </div> |
| | |
| | | <div class="guest_block flex-1"> |
| | | <div class="guest_list"> |
| | | <div v-for="(item, index) in assignTreatList" :key="index" class="guest_list__row flex flex-ver" @click="selectCustomer(item)"> |
| | | <div class="guest_list__td flex flex-center"> |
| | | <div> |
| | | <div class="tx">{{ item.userName }}</div> |
| | | <div class="tx" style="font-size: 14px;line-height: 20px;">{{ item.ciq || '' }}</div> |
| | | <div class="guest_list__td"> |
| | | <div class="tx flex flex-ver"> |
| | | <div class="flex-1 flex-1-w1 ell">{{ item.userName }}</div> |
| | | </div> |
| | | <div class="tx" style="font-size: 14px;line-height: 20px;">{{ item.ciq || '' }}</div> |
| | | </div> |
| | | <div class="guest_list__td flex flex-center"> |
| | | <span class="tx">{{ item.startTime?item.startTime+'开始':'' }}</span> |
| | | </div> |
| | | <div class="guest_list__td flex flex-center"> |
| | | <span class="tx">{{ item.aDoctorName?item.aDoctorName+'(医生)、':'' }}{{ item.aNurseName?item.aNurseName+'(护士)':'' }}</span> |
| | | <span class="tx flex-1 flex-1-w1 ell">{{ item.aDoctorName?item.aDoctorName+'(医生)、':'' }}{{ item.aNurseName?item.aNurseName+'(护士)':'' }}</span> |
| | | </div> |
| | | <div class="guest_list__td flex flex-center"> |
| | | <img class="icon" src="../../assets/img/choose.png"> |
| | |
| | | return this.occupyInfo |
| | | // 没有占用 |
| | | } else { |
| | | // 没使用默认客人值 |
| | | // 还没使用默认客人值 |
| | | if (!isUseDefault && this.assignTreatList && this.assignTreatList.length) { |
| | | isUseDefault = true |
| | | return this.assignTreatList[0] |
| | |
| | | // 计时 |
| | | this.countGetTime(this, 'timeObj', 'detail') |
| | | // 轮询getData,8秒一次 |
| | | this.pollingAjaxFn(this, 'getData', 'detail', 8000) |
| | | // this.getData() |
| | | // this.pollingAjaxFn(this, 'getData', 'detail', 8000) |
| | | this.getData() |
| | | }, |
| | | // 获取房间详情 |
| | | getData() { |
| | |
| | | } |
| | | }).then((res) => { |
| | | if (res && res.data) { |
| | | // 治疗时间处理 |
| | | if (res.data.assignTreatList && res.data.assignTreatList.length) { |
| | | res.data.assignTreatList.forEach((o) => { |
| | | var st = (o.startTime).split(' ')[1].split(':') |
| | | o.startTime = `${st[0]}:${st[1]}` |
| | | }) |
| | | } |
| | | // 占用信息治疗时间处理 |
| | | if (res.data.occupyInfo && res.data.occupyInfo.startTime) { |
| | | var ost = (res.data.occupyInfo.startTime).split(' ')[1].split(':') |
| | | res.data.occupyInfo.startTime = `${ost[0]}:${ost[1]}` |
| | | } |
| | | for (const key in res.data) { |
| | | this[key] = res.data[key] |
| | | } |
| | |
| | | }, |
| | | // 返回 |
| | | back() { |
| | | isUseDefault = false |
| | | // 关闭计时 |
| | | this.stopCountGetTime('detail') |
| | | // 关闭轮询 |
| | |
| | | // 返回 |
| | | this.$router.go(-1) |
| | | }, |
| | | // 直接状态变更 |
| | | // 未有安排直接状态变更 |
| | | statusChg(e) { |
| | | var { tx, status } = e.currentTarget.dataset |
| | | var { occupyInfoView, roomInfo } = this |
| | |
| | | this.getData() |
| | | }) |
| | | }, |
| | | // 改变房间状态异步 |
| | | // 改变房间状态异步方法 |
| | | changeStatusFn(item = {}, status, cb) { |
| | | var params = {} |
| | | // 状态 |
| | | // 更改的状态 |
| | | params.status = status * 1 |
| | | // 房间id |
| | | if (this.id) { |
| | | params.shopRoomId = this.id |
| | | } |
| | | // 更改的状态 |
| | | params.status = status * 1 |
| | | // 治疗记录id |
| | | if (item && item.id) { |
| | | params.vAssignTreatId = item.id |
| | | params.treatRecordId = item.id |
| | | } |
| | | Req.http.post({ |
| | | url: 'treat/screen/room/status/update', |
| | |
| | | // 打开弹窗 |
| | | this.$refs['XioRoomStatusChg'].showDialog() |
| | | }, |
| | | // 更改房间状态 |
| | | // 更改房间状态(重置状态的更改方法) |
| | | changeStatus(opt) { |
| | | var { occupyInfoView, roomInfo } = this |
| | | console.log(opt.statusTx, opt.status) |
| | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .el-popper.top_tx { |
| | | text-align: center; |
| | | font-size: 25px; |
| | | } |
| | | </style> |
| | | |
| | | <style scoped> |
| | | .page_header .reset_btn { |
| | |
| | | font-family: PingFangSC-medium; |
| | | margin-top: 13px; |
| | | } |
| | | .page_container .main .room_content .name .tx { |
| | | max-width: 666px; |
| | | margin: auto; |
| | | } |
| | | .page_container .main .room_content .ciq { |
| | | line-height: 42px; |
| | | color: rgba(51,51,51,1); |
| | |
| | | font-weight: bold; |
| | | } |
| | | .page_container .right .guest_block { |
| | | background-color: #fff; |
| | | overflow: auto; |
| | | } |
| | | .page_container .right .guest_list { |
| | |
| | | font-size: 22px; |
| | | text-align: center; |
| | | font-family: PingFangSC-regular; |
| | | box-sizing: border-box; |
| | | padding: 0 5px; |
| | | } |
| | | .page_container .right .guest_list__td .icon { |
| | | width: 20px; |