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