|
|
|
@ -1,5 +1,19 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<view class="ctime_main">
|
|
|
|
<view class="ctime_main">
|
|
|
|
|
|
|
|
<uni-popup ref="YuYuePopupRef" style="z-index: 999;">
|
|
|
|
|
|
|
|
<view class="tishi_main">
|
|
|
|
|
|
|
|
<view class="tishi_title">提示</view>
|
|
|
|
|
|
|
|
<view class="tishi_title2">
|
|
|
|
|
|
|
|
<view class="tishi_shuxian">|</view>
|
|
|
|
|
|
|
|
<view>当前日期已有预约记录,是否继续预约?</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view style="display: flex;justify-content: space-between;">
|
|
|
|
|
|
|
|
<view class="tishi_button" style=" width: 200rpx; background-color: #e1ecee;color:#239ea3" @click="YuYuePopupRef.close()">关闭</view>
|
|
|
|
|
|
|
|
<view class="tishi_button" style="width: 200rpx;" @click="StartYuYue()">继续</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</uni-popup>
|
|
|
|
<view v-if="combo_name" style="display: flex;justify-content: space-between;padding: 40rpx;">
|
|
|
|
<view v-if="combo_name" style="display: flex;justify-content: space-between;padding: 40rpx;">
|
|
|
|
<view>
|
|
|
|
<view>
|
|
|
|
<view style="font-size: 33rpx;">{{person_name}}</view>
|
|
|
|
<view style="font-size: 33rpx;">{{person_name}}</view>
|
|
|
|
@ -49,7 +63,7 @@
|
|
|
|
class="text-#fff text-32rpx rounded-45rpx bg-#239EA3 mt-40rpx ma w-520rpx h-90rpx flex flex-items-center flex-justify-center">
|
|
|
|
class="text-#fff text-32rpx rounded-45rpx bg-#239EA3 mt-40rpx ma w-520rpx h-90rpx flex flex-items-center flex-justify-center">
|
|
|
|
确定
|
|
|
|
确定
|
|
|
|
</view> -->
|
|
|
|
</view> -->
|
|
|
|
<view @click="StartYuYue()" class="check_done_wrapper">立即预约</view>
|
|
|
|
<view @click="ChaPersonAppointment()" class="check_done_wrapper">立即预约</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view id="ylrl">
|
|
|
|
<view id="ylrl">
|
|
|
|
<uni-calendar :insert="false" :showMonth="false" ref="DoctorMonthCalendar" @confirm="DoctMonthConfirm" />
|
|
|
|
<uni-calendar :insert="false" :showMonth="false" ref="DoctorMonthCalendar" @confirm="DoctMonthConfirm" />
|
|
|
|
@ -101,7 +115,7 @@
|
|
|
|
let combo_name = ref('')
|
|
|
|
let combo_name = ref('')
|
|
|
|
let combo_id=ref(null);
|
|
|
|
let combo_id=ref(null);
|
|
|
|
let item_ids=ref([]);
|
|
|
|
let item_ids=ref([]);
|
|
|
|
|
|
|
|
let YuYuePopupRef=ref(null);
|
|
|
|
const getBuyInfoFuc = async () => {
|
|
|
|
const getBuyInfoFuc = async () => {
|
|
|
|
// 获取购买信息
|
|
|
|
// 获取购买信息
|
|
|
|
let obj = {
|
|
|
|
let obj = {
|
|
|
|
@ -383,8 +397,31 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MonthCalendar.value.open()
|
|
|
|
MonthCalendar.value.open()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
////先查询用户是否在预约日期有预约记录
|
|
|
|
|
|
|
|
const ChaPersonAppointment=async()=>{
|
|
|
|
|
|
|
|
if (selectedDate.value == null || selectedDate.value =='' ) {
|
|
|
|
|
|
|
|
uni.$lu.toast("请选择体检日期");
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
uni.showLoading();
|
|
|
|
|
|
|
|
let data = {
|
|
|
|
|
|
|
|
person_id: person_id.value,
|
|
|
|
|
|
|
|
appointment_date: selectedDate.value,
|
|
|
|
|
|
|
|
status: [2]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
const response = await $api("GetPersonOrderList", data);
|
|
|
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
|
|
|
if(response.data.count>0){
|
|
|
|
|
|
|
|
YuYuePopupRef.value.open()
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
StartYuYue()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
//点击提交
|
|
|
|
//点击提交
|
|
|
|
const StartYuYue = () => {
|
|
|
|
const StartYuYue = async () => {
|
|
|
|
if (buyInfo.value.group_id || buyInfo.value.sanfang_code?.code_num) {
|
|
|
|
if (buyInfo.value.group_id || buyInfo.value.sanfang_code?.code_num) {
|
|
|
|
//如果是团检则创建订单 /三方订单
|
|
|
|
//如果是团检则创建订单 /三方订单
|
|
|
|
comfrimyy()
|
|
|
|
comfrimyy()
|
|
|
|
@ -732,7 +769,49 @@
|
|
|
|
font-size: 29rpx;
|
|
|
|
font-size: 29rpx;
|
|
|
|
color: #F6FDFD;
|
|
|
|
color: #F6FDFD;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.tishi_main{
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
padding: 40rpx 50rpx;
|
|
|
|
|
|
|
|
width:500rpx;
|
|
|
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.tishi_button{
|
|
|
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
|
|
|
line-height: 60rpx;
|
|
|
|
|
|
|
|
width: 365rpx;
|
|
|
|
|
|
|
|
background-color: #009da5;
|
|
|
|
|
|
|
|
color:#fff;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
|
|
|
margin: 40rpx auto 10rpx auto;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.tishi_title{
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
|
|
color:#2b2827;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.tishi_title2{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
|
|
margin-top: 30rpx;
|
|
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
|
|
color:#3a3635;
|
|
|
|
|
|
|
|
padding-left: 5rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.tishi_content{
|
|
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
|
|
margin-top: 30rpx;
|
|
|
|
|
|
|
|
color:#474241;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.tishi_shuxian{
|
|
|
|
|
|
|
|
color:#00939B;
|
|
|
|
|
|
|
|
font-weight: bolder;
|
|
|
|
|
|
|
|
margin-right: 4rpx;
|
|
|
|
|
|
|
|
// border-right: 3rpx solid #00939B;
|
|
|
|
|
|
|
|
// height: 28rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|