eight
2024-08-20 6f251b714260edadcaf82fc7bcc4e7c40491d64f
src/views/ecg/doctor/index.vue
@@ -14,19 +14,24 @@
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>
@@ -45,8 +50,8 @@
      </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>