generated from ccsens_fe/uni-vue3-template
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
747 B
25 lines
747 B
<template>
|
|
<uni-card :border="false">
|
|
<view class="uni-secondary-color u-font-sm">
|
|
<text class="u-m-r-30">{{ currentPatient?.patientName }}</text>
|
|
<text class="u-m-r-30">{{ currentPatient?.patientAge }}</text>
|
|
<text>{{ gender }}</text>
|
|
</view>
|
|
</uni-card>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { useServiceStore } from '@/store/modules/service';
|
|
import { computed } from 'vue';
|
|
import { GET_GENDER_TEXT_BY_CODE } from '@/config/service';
|
|
|
|
const serviceStore = useServiceStore()
|
|
|
|
const currentPatient = computed(() => serviceStore.currentPatient)
|
|
|
|
const gender = computed(() => {
|
|
const val = currentPatient.value?.patientGender
|
|
if (!val) return ''
|
|
return GET_GENDER_TEXT_BY_CODE(Number(val))
|
|
})
|
|
</script>
|
|
|