| | |
| | | |
| | | const list = ref<queueVO[]>([]) |
| | | |
| | | const nextPatient = async () => { |
| | | const data = await DoctorApi.nextPatient(roomBedVO) |
| | | const finishNextPatient = async () => { |
| | | const data = await DoctorApi.finishNextPatient(roomBedVO) |
| | | list.value = data |
| | | } |
| | | |
| | | const finishPatient = async () => { |
| | | const data = await DoctorApi.finishPatient(roomBedVO) |
| | | const passNextPatient = async () => { |
| | | const data = await DoctorApi.passNextPatient(roomBedVO) |
| | | list.value = data |
| | | } |
| | | |
| | | const getPatientList = async () => { |
| | | const data = await DoctorApi.getPatientList(roomBedVO) |
| | | list.value = data |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | nextPatient() |
| | | getPatientList() |
| | | }) |
| | | |
| | | </script> |
| | |
| | | </el-aside> |
| | | </el-container> |
| | | <el-container style="justify-content: center;"> |
| | | <el-button type="primary" @click="finishPatient">完成</el-button> |
| | | <el-button type="primary" @click="nextPatient">下一位</el-button> |
| | | <el-button type="primary" @click="finishNextPatient">完成下一位</el-button> |
| | | <el-button type="primary" @click="passNextPatient">过号下一位</el-button> |
| | | </el-container> |
| | | </el-container> |
| | | </template> |