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.
158 lines
4.3 KiB
158 lines
4.3 KiB
<template>
|
|
<view>
|
|
<uni-nav-bar left-icon="left" background-color="#fff" :border="false" title="患者详情" @clickRight="onClickRight">
|
|
<template v-slot:right>
|
|
<view class="flex nav-right">
|
|
切换至概览 <u-image class="icon-change" src="@/static/images/change-dark.png" mode="aspectFill"></u-image>
|
|
</view>
|
|
</template>
|
|
</uni-nav-bar>
|
|
|
|
<view class="flex u-m-40 u-m-r-40 align-top content">
|
|
<view class="flex-2 u-m-r-20 column">
|
|
<uni-section type="line" title="患者信息" titleFontSize="16px">
|
|
<template v-slot:right>
|
|
<view class="u-tips-color">
|
|
<text class="u-m-r-20">{{ currentPatient?.patientName }}</text>
|
|
<text class="u-m-r-20">{{ GET_GENDER_TEXT_BY_CODE(currentPatient!.patientGender) }}</text>
|
|
<text>{{ currentPatient?.patientAge }}</text>
|
|
</view>
|
|
</template>
|
|
</uni-section>
|
|
|
|
<view class="item-card u-m-r-20 bg-white border-success">
|
|
<view class="flex">
|
|
<view class="flex-1">
|
|
<view class=" font-bold flex-1 u-tips-color u-m-b-20">
|
|
<text class="u-m-r-20">患者基本信息</text>
|
|
</view>
|
|
<view>
|
|
<u-tag class="u-m-r-20 u-m-b-12" text="姓名" type="success" size="mini" />
|
|
<u-tag class="u-m-r-20 u-m-b-12" text="性别" type="success" size="mini" />
|
|
<u-tag class="u-m-r-20 u-m-b-12" text="民族" type="success" size="mini" />
|
|
<u-tag class="u-m-r-20 u-m-b-12" text="身份证" type="success" size="mini" />
|
|
<u-tag class="u-m-r-20 u-m-b-12" text="来院方式" type="success" size="mini" />
|
|
</view>
|
|
</view>
|
|
<uni-icons type="right" color="#999" size="16" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="item-card u-m-r-20 u-m-t-30 bg-white border-primary">
|
|
<view class="flex">
|
|
<view class="flex-1">
|
|
<view class=" font-bold flex-1 u-tips-color u-m-b-20">
|
|
<text class="u-m-r-20">急救信息记录</text>
|
|
</view>
|
|
<view>
|
|
<u-tag class="u-m-r-20 u-m-b-12" text="AS急性脑卒中" type="primary" size="mini" />
|
|
<u-tag class="u-m-r-20 u-m-b-12" text="AS急性脑卒中" type="primary" size="mini" />
|
|
</view>
|
|
</view>
|
|
<uni-icons type="right" color="#999" size="16" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- right -->
|
|
<view class="flex-3">
|
|
<uni-section type="line" title="患者基本信息" titleFontSize="16px"> </uni-section>
|
|
<DetailBase />
|
|
</view>
|
|
</view>
|
|
|
|
<!-- float button -->
|
|
<FloatButton />
|
|
</view>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
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)
|
|
|
|
|
|
function onClickRight() {
|
|
|
|
}
|
|
|
|
onLoad((option) => {
|
|
console.log(option);
|
|
|
|
if (option?.firstAidId) {
|
|
// 新建过来的
|
|
getAidInfo(option.firstAidId)
|
|
} else {
|
|
|
|
}
|
|
})
|
|
|
|
// 查病历数据
|
|
async function getAidInfo(firstAidId: string) {
|
|
try {
|
|
const data = await uni.$u.api.getAidInfo(firstAidId)
|
|
serviceStore.setCurrentPatient(data)
|
|
} catch (error) {
|
|
serviceStore.setCurrentPatient(null)
|
|
uni.$u.alertError(error)
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
:deep(.uni-navbar__header-btns) {
|
|
width: 200rpx !important;
|
|
}
|
|
|
|
.icon-change {
|
|
width: 40rpx !important;
|
|
height: 40rpx !important;
|
|
margin-left: 0.5em;
|
|
opacity: .9 !important;
|
|
}
|
|
|
|
.item-card {
|
|
padding: 1em 1em 1em 1.2em;
|
|
border-radius: 20rpx;
|
|
background-color: #fff;
|
|
border-left: 10rpx solid;
|
|
}
|
|
|
|
.head {
|
|
height: 140rpx;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.btn-create {
|
|
background-color: #fff;
|
|
height: 3em;
|
|
padding: 0 3em;
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: 1.5em;
|
|
|
|
.icon-plus {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
margin-right: 0.5em;
|
|
}
|
|
}
|
|
|
|
.icon-doctor {
|
|
position: relative;
|
|
z-index: 0;
|
|
width: 140rpx;
|
|
height: 140rpx;
|
|
transform: scale(1.1) translate3d(-50%, 24%, 0);
|
|
}
|
|
|
|
.content {
|
|
position: relative;
|
|
z-index: 99;
|
|
}
|
|
</style>
|
|
|