| | |
| | | <div class="bedside-auxiliary-screen-header"> |
| | | <div class="header-left"> |
| | | <!-- 设备号 --> |
| | | <span class="info-text">{{ deviceNo }}</span> |
| | | <span class="info-text">{{ bedsideAuxiliaryScreenStore.deviceData.devicdeNo }}</span> |
| | | <!-- 未排班 --> |
| | | <template v-if="type === 0"> |
| | | <template v-if="!bedsideAuxiliaryScreenStore.deviceData.patientName"> |
| | | <span class="info-text">当前尚未排班</span> |
| | | </template> |
| | | <!-- 有排班 --> |
| | | <template v-else> |
| | | <span class="info-text">{{ name }}</span> |
| | | <!-- <span class="info-text">{{ name }}</span> |
| | | <span class="info-text">{{ age }}岁</span> |
| | | <span class="info-text">{{ gender }}</span> |
| | | <span v-if="formTypeNoText" class="info-text">{{ |
| | | formTypeNoText |
| | | }}</span> |
| | | }}</span> --> |
| | | </template> |
| | | </div> |
| | | <div class="header-right"> |
| | |
| | | import setUpImg from "../../../../img/shezhi.png"; |
| | | import userImg from "../../../../img/user.png"; |
| | | |
| | | type HearderType = 0 | 1; // 0未排班 1其它 |
| | | type FormType = 0 | 1; // 0门诊 1住院 |
| | | import { useBedsideAuxiliaryScreenStore } from "@/store/bedsideAuxiliaryScreen"; |
| | | |
| | | interface Props { |
| | | type: HearderType; // 类型 |
| | | deviceNo: number | string; // 设备号 |
| | | name?: string; // 姓名 |
| | | age?: number | string; // 年龄 |
| | | gender?: string; // 性别 |
| | | formType?: FormType; // 患者来源 |
| | | formNo?: number | string; // 门诊/住院号 |
| | | } |
| | | const props = defineProps<Props>(); |
| | | const bedsideAuxiliaryScreenStore = useBedsideAuxiliaryScreenStore(); |
| | | |
| | | const settingDeviceDialogRef = ref<any>(null); |
| | | |
| | | const formTypeNoText = computed(() => { |
| | | if (props.formNo) { |
| | | let result = props?.formType === 1 ? "住院号" : "门诊号"; |
| | | result += props.formNo; |
| | | return result; |
| | | } |
| | | return ""; |
| | | }); |
| | | // const formTypeNoText = computed(() => { |
| | | // if (props.formNo) { |
| | | // let result = props?.formType === 1 ? "住院号" : "门诊号"; |
| | | // result += props.formNo; |
| | | // return result; |
| | | // } |
| | | // return ""; |
| | | // }); |
| | | |
| | | const openSettingDeviceDialog = () => { |
| | | settingDeviceDialogRef.value?.openDialog(); |