|
|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
} from "@dcloudio/uni-app";
|
|
|
|
|
import {
|
|
|
|
|
useStore
|
|
|
|
|
} from "@/store";
|
|
|
|
|
} from "@/store";
|
|
|
|
|
const $store = useStore();
|
|
|
|
|
|
|
|
|
|
let date_list = ref(false);
|
|
|
|
|
@ -39,6 +39,7 @@
|
|
|
|
|
let calendarShow = ref(false); // 日历显示
|
|
|
|
|
const rl_list = ref(false); //日历插槽
|
|
|
|
|
let isClickDoctor = ref(0); // 是否点击了医生
|
|
|
|
|
let erxianInfo=ref(null);
|
|
|
|
|
|
|
|
|
|
const mountedAction = async () => {
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
@ -68,6 +69,7 @@
|
|
|
|
|
comboInfo.value = response.data.combo_info;
|
|
|
|
|
itemsInfo.value = response.data.items_info;
|
|
|
|
|
truePrice.value = response.data.true_price;
|
|
|
|
|
erxianInfo.value = response.data.nmr_list2;
|
|
|
|
|
currentDate.value = getToday(); //huo获取今天的日期
|
|
|
|
|
console.log(yytjInfo.value, "cfvghbjnkmljhbgvfcgvhbjnk");
|
|
|
|
|
if (!yytjInfo.value?.nmr_list?.length) {
|
|
|
|
|
@ -396,12 +398,35 @@
|
|
|
|
|
getTjTimeList(item); //带着选中的日期重新选择
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const getCurrentTime = (item, index) => {
|
|
|
|
|
//查询是否有可用二线号源
|
|
|
|
|
const CheckEnableNmrTimeFunc= async (date,time)=>{
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: "加载中",
|
|
|
|
|
});
|
|
|
|
|
const response = await $api("CheckEnableNmrTime", {date:date,time:time});
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
let status=false;
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
status=response.status
|
|
|
|
|
})
|
|
|
|
|
return status;
|
|
|
|
|
}
|
|
|
|
|
const getCurrentTime = async (item, index) => {
|
|
|
|
|
// 选择时分
|
|
|
|
|
if (item.status == 2) {
|
|
|
|
|
uni.$lu.toast("该号源已被其他人预约");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//如果有核磁,查询核磁是否有可用号源
|
|
|
|
|
if(erxianInfo.value.length>0){
|
|
|
|
|
let checknmr= await CheckEnableNmrTimeFunc(item.date,item.newTime);
|
|
|
|
|
console.log('------',checknmr);
|
|
|
|
|
if(checknmr !==true){
|
|
|
|
|
uni.$lu.toast("此时间点,无可用二线号源,请选择其他时间");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let pick_day = 3
|
|
|
|
|
let active_item = yytjInfo.value.nmr_list[nmrIndex.value]
|
|
|
|
|
if (active_item.item_id !== -1) {
|
|
|
|
|
|