patient detail
parent
78e40c56ba
commit
f0905941d5
|
|
@ -33,7 +33,8 @@
|
|||
{
|
||||
"path": "pages/patient/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "初诊信息"
|
||||
"navigationBarTitleText": "初诊信息",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
<u-cell title="联系方式" :value="info.phone" />
|
||||
<u-cell title="地址" :value="info.address" />
|
||||
<u-cell title="出生年月" :value="info.birthday | date('yyyy-MM-dd')" /> -->
|
||||
<u-cell title="初诊时间" :value="info.treat_at | date('yyyy-MM-dd')" />
|
||||
<u-cell title="初诊医生" :value="info.doctor?info.doctor.name : ''" />
|
||||
<u-cell :title="`${type}时间`" :value="info.treat_at | date('yyyy-MM-dd')" />
|
||||
<u-cell :title="`${type}医师`" :value="info.doctor?info.doctor.name : ''" />
|
||||
<u-cell title="病情描述">
|
||||
<view slot="value">
|
||||
<!-- <rich-text :nodes="info.illness" /> -->
|
||||
|
|
@ -38,6 +38,7 @@ export default {
|
|||
doctor_id: '',
|
||||
doctor: {},
|
||||
},
|
||||
type: '',
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
|
|
@ -57,11 +58,7 @@ export default {
|
|||
uni.stopPullDownRefresh()
|
||||
if (res.status == 0) {
|
||||
this.info = res.data
|
||||
if (res.data.images) {
|
||||
this.$refs['images'].setList(res.data.images.map(value => {
|
||||
return { url: value }
|
||||
}))
|
||||
}
|
||||
this.type = this.info.type ? this.info.type.name : ''
|
||||
uni.setNavigationBarTitle({ title: this.info.name })
|
||||
}
|
||||
}).catch(error => {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ export default {
|
|||
uni.stopPullDownRefresh()
|
||||
if (res.status == 0) {
|
||||
this.info = res.data
|
||||
this.type.text = this.info.type.name
|
||||
this.type.text = this.info.type ? this.info.type.name : ''
|
||||
}
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue