Compare commits

...

2 Commits

Author SHA1 Message Date
panliang 1f51439d69 patient doctor 2023-10-21 08:51:49 +08:00
panliang f0905941d5 patient detail 2023-10-17 12:27:29 +08:00
5 changed files with 14 additions and 16 deletions

View File

@ -33,7 +33,8 @@
{ {
"path": "pages/patient/detail", "path": "pages/patient/detail",
"style": { "style": {
"navigationBarTitleText": "初诊信息" "navigationBarTitleText": "初诊信息",
"enablePullDownRefresh": true
} }
}, },
{ {

View File

@ -7,12 +7,12 @@
<u-cell title="联系方式" :value="info.phone" /> <u-cell title="联系方式" :value="info.phone" />
<u-cell title="地址" :value="info.address" /> <u-cell title="地址" :value="info.address" />
<u-cell title="出生年月" :value="info.birthday | date('yyyy-MM-dd')" /> --> <u-cell title="出生年月" :value="info.birthday | date('yyyy-MM-dd')" /> -->
<u-cell title="初诊时间" :value="info.treat_at | date('yyyy-MM-dd')" /> <u-cell :title="`初次${type}`" :value="info.treat_at | date('yyyy-MM-dd')" />
<u-cell title="初诊医生" :value="info.doctor?info.doctor.name : ''" /> <!-- <u-cell :title="`${type}医师`" :value="info.doctor?info.doctor.name : ''" /> -->
<u-cell title="病情描述"> <u-cell title="病情描述">
<view slot="value"> <view slot="label">
<!-- <rich-text :nodes="info.illness" /> --> <!-- <rich-text :nodes="info.illness" /> -->
<text>{{info.illness}}</text> <u--text :text="info.illness" type="info" wordWrap="anywhere" />
</view> </view>
</u-cell> </u-cell>
<u-cell title="图片资料"> <u-cell title="图片资料">
@ -38,6 +38,7 @@ export default {
doctor_id: '', doctor_id: '',
doctor: {}, doctor: {},
}, },
type: '',
} }
}, },
onLoad(e) { onLoad(e) {
@ -57,11 +58,7 @@ export default {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
if (res.status == 0) { if (res.status == 0) {
this.info = res.data this.info = res.data
if (res.data.images) { this.type = this.info.type ? this.info.type.name : ''
this.$refs['images'].setList(res.data.images.map(value => {
return { url: value }
}))
}
uni.setNavigationBarTitle({ title: this.info.name }) uni.setNavigationBarTitle({ title: this.info.name })
} }
}).catch(error => { }).catch(error => {

View File

@ -5,11 +5,11 @@
<u-cell title="类别" :value="info.type ? info.type.name : ''" /> <u-cell title="类别" :value="info.type ? info.type.name : ''" />
<u-cell title="病种" :value="info.illness_type ? info.illness_type.name : ''" /> <u-cell title="病种" :value="info.illness_type ? info.illness_type.name : ''" />
<u-cell :title="`${type.text}时间`" :value="info.treat_at | date" /> <u-cell :title="`${type.text}时间`" :value="info.treat_at | date" />
<u-cell :title="`${type.text}医师`" :value="info.doctor ? info.doctor.name : ''" /> <!-- <u-cell :title="`${type.text}医师`" :value="info.doctor ? info.doctor.name : ''" /> -->
<u-cell :title="`${type.text}情况`"> <u-cell :title="`${type.text}情况`">
<view slot="value"> <view slot="label">
<!-- <rich-text :nodes="info.illness" /> --> <!-- <rich-text :nodes="info.illness" /> -->
<text>{{info.content}}</text> <u--text :text="info.content" type="info" wordWrap="anywhere" />
</view> </view>
</u-cell> </u-cell>
<u-cell title="图片资料"> <u-cell title="图片资料">
@ -61,7 +61,7 @@ export default {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
if (res.status == 0) { if (res.status == 0) {
this.info = res.data this.info = res.data
this.type.text = this.info.type.name this.type.text = this.info.type ? this.info.type.name : ''
} }
}, },

View File

@ -5,7 +5,7 @@
<u-list-item v-for="item in list" :key="item.id"> <u-list-item v-for="item in list" :key="item.id">
<u-cell size="large" :url="`/pages/record/detail?id=${item.id}`"> <u-cell size="large" :url="`/pages/record/detail?id=${item.id}`">
<view slot="title" class="title"> <view slot="title" class="title">
<view class="list-item-title">医师: {{ item.doctor ? item.doctor.name : '' }}</view> <view class="list-item-title">患者: {{ item.patient ? item.patient.name : '' }}</view>
<!-- <view class="list-item-price"> <!-- <view class="list-item-price">
<text style="color: #dd524d;font-size: 19px"> <text style="color: #dd524d;font-size: 19px">
<u-icon name="rmb" color="#dd524d" size="19px" /> <u-icon name="rmb" color="#dd524d" size="19px" />

View File

@ -9,7 +9,7 @@
<u-cell title="性别" :value="info.sex_text" isLink @click="openGender" /> <u-cell title="性别" :value="info.sex_text" isLink @click="openGender" />
<u-cell title="生日" :value="info.birthday_format" isLink @click="openBirthday" /> <u-cell title="生日" :value="info.birthday_format" isLink @click="openBirthday" />
<u-cell title="住址" :value="info.address" isLink @click="openModal('住址', 'address')" /> <u-cell title="住址" :value="info.address" isLink @click="openModal('住址', 'address')" />
<u-cell title="修改登录密码" isLink @click="openModal('新密码', 'password', 'password')" /> <u-cell title="登录密码" isLink @click="openModal('新密码', 'password', 'password')" />
</u-cell-group> </u-cell-group>
<u-modal <u-modal
:show="modal.show" :show="modal.show"