master
parent
35244d6921
commit
cb11fe7667
|
|
@ -10,7 +10,7 @@
|
|||
</u-cell-group>
|
||||
</view>
|
||||
<view class="btns">
|
||||
<u-empty v-if="list.length == 0" mode="list" text="请先在后台添加分类" />
|
||||
<u-empty v-if="list.length == 0" mode="list" text="暂无分类" />
|
||||
<view class="btn" v-for="item in list" :key="item.id">
|
||||
<u-button
|
||||
:icon="item.image"
|
||||
|
|
|
|||
|
|
@ -105,7 +105,6 @@
|
|||
<u--input v-model="modal.value" border="surround" />
|
||||
</u-modal>
|
||||
<u-action-sheet
|
||||
title="性别"
|
||||
:show="genderSheet.show"
|
||||
:actions="gender.options"
|
||||
:closeOnClickOverlay="true"
|
||||
|
|
@ -273,8 +272,7 @@ export default {
|
|||
this.update(params).then(res => {
|
||||
if (res.status == 0) {
|
||||
this.info[`${key}_id`] = e.id
|
||||
this.info[key].id = e.id
|
||||
this.info[key].name = e.name
|
||||
this.info[key] = { id: e.id, name: e.name }
|
||||
}
|
||||
})
|
||||
this.closeDoctor()
|
||||
|
|
@ -323,7 +321,6 @@ export default {
|
|||
})
|
||||
},
|
||||
handleCall(phone) {
|
||||
console.log(phone)
|
||||
window.open(`tel:${phone}`, '_blank')
|
||||
// uni.makePhoneCall({
|
||||
// phoneNumber: phone
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<template>
|
||||
<view class="page">
|
||||
<u-subsection :list="typeList" :current="typeIndex" fontSize="16" @change="changeType" />
|
||||
<view class="add-button">
|
||||
<u-button type="primary" icon="plus" shape="circle" size="large" @click="add" />
|
||||
</view>
|
||||
|
|
@ -10,7 +9,7 @@
|
|||
<u-swipe-action-item :options="swipeOption" :name="item.id" @click="swipeClick">
|
||||
<u-cell size="large" :url="`/pages/record/detail?id=${item.id}`">
|
||||
<view slot="title" class="title">
|
||||
<view class="list-item-title">{{ item.doctor ? item.doctor.name : '' }}</view>
|
||||
<view class="list-item-title">医师: {{ item.doctor ? item.doctor.name : '' }}</view>
|
||||
<view class="list-item-price">
|
||||
<text style="color: #dd524d;font-size: 19px">
|
||||
<u-icon name="rmb" color="#dd524d" size="19px" />
|
||||
|
|
@ -20,7 +19,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view slot="label" class="label">
|
||||
<view>就诊时间: {{ item.treat_at }}</view>
|
||||
时间: {{ item.treat_at }}
|
||||
</view>
|
||||
</u-cell>
|
||||
</u-swipe-action-item>
|
||||
|
|
@ -67,9 +66,6 @@ export default {
|
|||
this.patient_id = e.patient
|
||||
this.init()
|
||||
},
|
||||
onShow() {
|
||||
this.loadData(true)
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.loadData(true)
|
||||
},
|
||||
|
|
@ -81,10 +77,10 @@ export default {
|
|||
this.patient = res.data
|
||||
uni.setNavigationBarTitle({ title: `${this.patient.name}-病历记录` })
|
||||
}
|
||||
res = await this.$ajax.get('/admin-api/category', { params: {_action: 'getData'}})
|
||||
if (res.status == 0) {
|
||||
this.typeList = res.data.items
|
||||
}
|
||||
// res = await this.$ajax.get('/admin-api/category', { params: {_action: 'getData'}})
|
||||
// if (res.status == 0) {
|
||||
// this.typeList = res.data.items
|
||||
// }
|
||||
this.loadData(true)
|
||||
},
|
||||
changeType(e) {
|
||||
|
|
@ -96,13 +92,8 @@ export default {
|
|||
this.list = []
|
||||
this.page = 1
|
||||
}
|
||||
// 要等分类接口返回了, 然后再去查询记录
|
||||
if (this.typeList.length == 0) {
|
||||
return
|
||||
}
|
||||
uni.showLoading()
|
||||
const type = this.typeList[this.typeIndex]
|
||||
const params = {_action: 'getData', page: this.page, perPage: this.perPage, type_id: type.id, patient_id: this.patient_id}
|
||||
const params = {_action: 'getData', page: this.page, perPage: this.perPage, patient_id: this.patient_id}
|
||||
this.$ajax.get('/admin-api/record?', { params }).then(res => {
|
||||
uni.stopPullDownRefresh()
|
||||
if (res.status == 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue