| xqd
@@ -19,8 +19,9 @@
|
|
|
</view>
|
|
|
<view class="padding-sm bg-white" v-if="doctor!=''">
|
|
|
<scroll-view scroll-x="true" enable-flex="true" style="display: flex;height: 145rpx;">
|
|
|
- <view class="flex flex-direction align-center justify-center margin-right-xs" @click="gotodoctorinfo(item.id)"
|
|
|
- style="width: 168rpx;height: 130rpx;" v-for="(item,index) in doctor.docter" :key="index">
|
|
|
+ <view class="flex flex-direction align-center justify-center margin-right-xs"
|
|
|
+ @click="gotodoctorinfo(item.id)" style="width: 168rpx;height: 130rpx;"
|
|
|
+ v-for="(item,index) in doctor.docter" :key="index">
|
|
|
<u-avatar :src="item.avatar" mode="circle"></u-avatar>
|
|
|
<view class="">
|
|
|
{{item.name}}
|
| xqd
@@ -58,7 +59,8 @@
|
|
|
<view class="popup_title_text">选择就诊人</view>
|
|
|
</view>
|
|
|
<scroll-view style="height: 70%;" scroll-y="true">
|
|
|
- <view class="popup_list" v-for="(item, index) in patientList" :key="index" :data-index="index" @click="xuanzehuanzhe(item)">
|
|
|
+ <view class="popup_list" v-for="(item, index) in patientList" :key="index" :data-index="index"
|
|
|
+ @click="xuanzehuanzhe(item)">
|
|
|
<view class="popup_list_title">
|
|
|
<view class="title">{{item.name}}</view>
|
|
|
<view class="body">
|
| xqd
@@ -75,8 +77,8 @@
|
|
|
</scroll-view>
|
|
|
<u-gap height="10" bg-color="#f9f9f9"></u-gap>
|
|
|
<view class="popup_button">
|
|
|
- <image style="width: 32rpx;height: 32rpx;margin-right: 15rpx;" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/addjiu.png"
|
|
|
- mode=""></image>
|
|
|
+ <image style="width: 32rpx;height: 32rpx;margin-right: 15rpx;"
|
|
|
+ src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/addjiu.png" mode=""></image>
|
|
|
<view class="" @click="addPeople">
|
|
|
添加就诊人档案
|
|
|
</view>
|
| xqd
@@ -87,7 +89,8 @@
|
|
|
提交申请
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-popup v-model="dateshow" mode="bottom" :safe-area-inset-bottom="true" border-radius="14" length="50%" height="700rpx">
|
|
|
+ <u-popup v-model="dateshow" mode="bottom" :safe-area-inset-bottom="true" border-radius="14" length="50%"
|
|
|
+ height="700rpx">
|
|
|
<datepicker :date="multiSelector" @callbacktime="callbacktime" ref="date"></datepicker>
|
|
|
</u-popup>
|
|
|
<view class="cu-tabbar-height"></view>
|
| xqd
@@ -116,10 +119,10 @@
|
|
|
}
|
|
|
if (this.yimiaoInfo != null) {
|
|
|
this.yimiao = this.yimiaoInfo.name
|
|
|
+ this.multiSelector = []
|
|
|
+ this.gettime()
|
|
|
}
|
|
|
this.getarchives()
|
|
|
- this.multiSelector = []
|
|
|
- this.gettime()
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
| xqd
@@ -162,9 +165,13 @@
|
|
|
if (this.doctor == '') {
|
|
|
return false
|
|
|
}
|
|
|
+ if (this.yimiaoInfo == "") {
|
|
|
+ return false
|
|
|
+ }
|
|
|
let res = await this.$request.post("/api/v1/docter/timePeriodList", {
|
|
|
organization_id: this.doctor.id,
|
|
|
- schedule_type: 2
|
|
|
+ schedule_type: 2,
|
|
|
+ vaccine_id:this.yimiaoInfo.id
|
|
|
})
|
|
|
console.log(res)
|
|
|
if (res.status == 0) {
|
| xqd
@@ -217,7 +224,8 @@
|
|
|
return {
|
|
|
yeardate: itm.schedule_date,
|
|
|
schedule_id: itm.schedule_id,
|
|
|
- can_appoint_num: itm.can_appoint_num,
|
|
|
+ can_appoint_num: itm.can_appoint_num,
|
|
|
+ can_appoint:itm.can_appoint,
|
|
|
...itm.organization,
|
|
|
...itm.time_period
|
|
|
}
|
| xqd
@@ -308,11 +316,32 @@
|
|
|
})
|
|
|
return false
|
|
|
}
|
|
|
+ if (this.huanzheID == "") {
|
|
|
+ uni.showToast({
|
|
|
+ title: "请先选择患者",
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
uni.navigateTo({
|
|
|
- url: "vaccinesList?id=" + this.doctor.id
|
|
|
+ url: "vaccinesList?id=" + this.doctor.id + "&patient_id=" + this.huanzheID
|
|
|
})
|
|
|
},
|
|
|
- yuyuetime() {
|
|
|
+ yuyuetime() {
|
|
|
+ if (this.doctor == '') {
|
|
|
+ uni.showToast({
|
|
|
+ title: "请先选择机构",
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (this.yimiaoInfo == "") {
|
|
|
+ uni.showToast({
|
|
|
+ title: "请先选择疫苗",
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
if (this.multiSelector[0] == undefined || this.multiSelector[1] == undefined) {
|
|
|
uni.showToast({
|
|
|
title: "尚未排班",
|
| xqd
@@ -334,13 +363,6 @@
|
|
|
// })
|
|
|
// return false
|
|
|
// }
|
|
|
- if (this.doctor == '') {
|
|
|
- uni.showToast({
|
|
|
- title: "请先选择机构",
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
- return false
|
|
|
- }
|
|
|
this.dateshow = true
|
|
|
},
|
|
|
submitpay() {
|
| xqd
@@ -373,7 +395,8 @@
|
|
|
return false
|
|
|
}
|
|
|
uni.requestSubscribeMessage({
|
|
|
- tmplIds: ['M9b6PPKtD7PEqLsSnQ453iTIHtIZZpixOBjUjax8YXU', 'Sg0lKmOexTnxxDzy39E26aNvmc3w4qKUnxl21A9dWns',
|
|
|
+ tmplIds: ['M9b6PPKtD7PEqLsSnQ453iTIHtIZZpixOBjUjax8YXU',
|
|
|
+ 'Sg0lKmOexTnxxDzy39E26aNvmc3w4qKUnxl21A9dWns',
|
|
|
'phcsQ7ZbsJapfmx3NMChaxepR9tJFiqbO25P9tujErI'
|
|
|
],
|
|
|
success: (res) => {
|