patient/detail
parent
552961fd9a
commit
779896dc01
|
|
@ -29,7 +29,6 @@
|
|||
<script>
|
||||
export default {
|
||||
name: "SelectAdminUser",
|
||||
props: ['type'],
|
||||
data () {
|
||||
return {
|
||||
search: '',
|
||||
|
|
@ -77,8 +76,7 @@ export default {
|
|||
_action: 'getData',
|
||||
page: this.page,
|
||||
perPage: this.perPage,
|
||||
keyword: this.search,
|
||||
treat_type_id: this.type ? this.type : uni.getStorageSync('medical_record_treat_type_id')
|
||||
keyword: this.search
|
||||
}
|
||||
this.$ajax.get('/admin-api/user', { params }).then(res => {
|
||||
this.loading = false
|
||||
|
|
|
|||
|
|
@ -43,14 +43,14 @@
|
|||
@click="toggleBirthday('birthday')"
|
||||
/>
|
||||
<u-cell
|
||||
title="初诊时间"
|
||||
:title="`${type}时间`"
|
||||
:value="info.treat_at | date('yyyy-MM-dd')"
|
||||
isLink
|
||||
rightIcon="edit-pen"
|
||||
@click="toggleBirthday('treat_at')"
|
||||
/>
|
||||
<u-cell
|
||||
title="初诊医生"
|
||||
:title="`${type}医生`"
|
||||
:value="info.doctor?info.doctor.name : ''"
|
||||
isLink
|
||||
rightIcon="edit-pen"
|
||||
|
|
@ -164,7 +164,8 @@ export default {
|
|||
},
|
||||
adminUser: {
|
||||
key: ''
|
||||
}
|
||||
},
|
||||
type: ''
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
|
|
@ -189,6 +190,7 @@ export default {
|
|||
birthday: res.data.birthday ? res.data.birthday.replaceAll('-', '/') : '',
|
||||
treat_at: res.data.treat_at ? res.data.treat_at.replaceAll('-', '/') : '',
|
||||
}
|
||||
this.type = this.info.type ? this.info.type.name : ''
|
||||
if (res.data.images) {
|
||||
this.$refs['images'].setList(res.data.images.map(value => {
|
||||
return { url: value }
|
||||
|
|
|
|||
|
|
@ -118,10 +118,10 @@
|
|||
:value="info.created_at"
|
||||
/>
|
||||
</u-cell-group>
|
||||
<div class="btn">
|
||||
<view class="btn">
|
||||
<u-button text="病人信息" type="primary" @click="patientDetail" />
|
||||
<u-button text="删除病历" type="error" @click="deleteRecord" />
|
||||
</div>
|
||||
</view>
|
||||
<select-admin-user ref="select-admin-user" @select="selectAdminUser" />
|
||||
<u-action-sheet
|
||||
:title="type.title"
|
||||
|
|
|
|||
Loading…
Reference in New Issue