|
|
|
@ -1,35 +1,46 @@
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
import DraggableButton from "@/pages/components/goHome.vue";
|
|
|
|
import DraggableButton from "@/pages/components/goHome.vue";
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* name:
|
|
|
|
* name:
|
|
|
|
* user:yytjsj
|
|
|
|
* user:yytjsj
|
|
|
|
* date:2024年9月25日 10:25:00
|
|
|
|
* date:2024年9月25日 10:25:00
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import { ref, onBeforeUnmount } from "vue";
|
|
|
|
import {
|
|
|
|
import { $api, $response, $image } from "@/api";
|
|
|
|
ref,
|
|
|
|
import { onShow } from "@dcloudio/uni-app";
|
|
|
|
onBeforeUnmount
|
|
|
|
import { useStore } from "@/store";
|
|
|
|
} from "vue";
|
|
|
|
const $store = useStore();
|
|
|
|
import {
|
|
|
|
|
|
|
|
$api,
|
|
|
|
|
|
|
|
$response,
|
|
|
|
|
|
|
|
$image
|
|
|
|
|
|
|
|
} from "@/api";
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
onShow
|
|
|
|
|
|
|
|
} from "@dcloudio/uni-app";
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
useStore
|
|
|
|
|
|
|
|
} from "@/store";
|
|
|
|
|
|
|
|
const $store = useStore();
|
|
|
|
|
|
|
|
|
|
|
|
let date_list = ref(false);
|
|
|
|
let date_list = ref(false);
|
|
|
|
let time_list = ref(false);
|
|
|
|
let time_list = ref(false);
|
|
|
|
let currentDate = ref(0);
|
|
|
|
let currentDate = ref(0);
|
|
|
|
let currentTime = ref(0);
|
|
|
|
let currentTime = ref(0);
|
|
|
|
let buyInfo = ref({}); // 购买信息
|
|
|
|
let buyInfo = ref({}); // 购买信息
|
|
|
|
let yytjInfo = ref({}); // 购买信息
|
|
|
|
let yytjInfo = ref({}); // 购买信息
|
|
|
|
let groupInfo = ref({});
|
|
|
|
let groupInfo = ref({});
|
|
|
|
let comboInfo = ref({});
|
|
|
|
let comboInfo = ref({});
|
|
|
|
let itemsInfo = ref({});
|
|
|
|
let itemsInfo = ref({});
|
|
|
|
let truePrice = ref(0); // 总价
|
|
|
|
let truePrice = ref(0); // 总价
|
|
|
|
let nmrIndex = ref(0); // 当前选中项目索引
|
|
|
|
let nmrIndex = ref(0); // 当前选中项目索引
|
|
|
|
let time = ref(""); // 时分
|
|
|
|
let time = ref(""); // 时分
|
|
|
|
let timeIndex = ref(null); // 当前选中时间索引
|
|
|
|
let timeIndex = ref(null); // 当前选中时间索引
|
|
|
|
let status = ref(0); // 1:点了确定 2:未点确定
|
|
|
|
let status = ref(0); // 1:点了确定 2:未点确定
|
|
|
|
let calendarShow = ref(false); // 日历显示
|
|
|
|
let calendarShow = ref(false); // 日历显示
|
|
|
|
const rl_list = ref(false); //日历插槽
|
|
|
|
const rl_list = ref(false); //日历插槽
|
|
|
|
let isClickDoctor = ref(0); // 是否点击了医生
|
|
|
|
let isClickDoctor = ref(0); // 是否点击了医生
|
|
|
|
|
|
|
|
|
|
|
|
const mountedAction = async () => {
|
|
|
|
const mountedAction = async () => {
|
|
|
|
uni.showLoading({
|
|
|
|
uni.showLoading({
|
|
|
|
title: "加载中",
|
|
|
|
title: "加载中",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -38,15 +49,15 @@ const mountedAction = async () => {
|
|
|
|
yytjInfo.value = $store.getYytjInfo();
|
|
|
|
yytjInfo.value = $store.getYytjInfo();
|
|
|
|
buyInfo.value = $store.getBuyInfo();
|
|
|
|
buyInfo.value = $store.getBuyInfo();
|
|
|
|
await getnmrList();
|
|
|
|
await getnmrList();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
onBeforeUnmount(() => {
|
|
|
|
onBeforeUnmount(() => {
|
|
|
|
if (!status.value) {
|
|
|
|
if (!status.value) {
|
|
|
|
$store.setYytjInfo(uni.getStorageSync("yytjInfoS"));
|
|
|
|
$store.setYytjInfo(uni.getStorageSync("yytjInfoS"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const getnmrList = async () => {
|
|
|
|
const getnmrList = async () => {
|
|
|
|
// 获取项目列表
|
|
|
|
// 获取项目列表
|
|
|
|
const response = await $api("BuyInfo", buyInfo.value);
|
|
|
|
const response = await $api("BuyInfo", buyInfo.value);
|
|
|
|
$response(response, () => {
|
|
|
|
$response(response, () => {
|
|
|
|
@ -88,10 +99,12 @@ const getnmrList = async () => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
uni.hideLoading();
|
|
|
|
uni.hideLoading();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const moreTime = async (m, status) => {
|
|
|
|
const moreTime = async (m, status) => {
|
|
|
|
uni.showLoading({ title: "加载中" });
|
|
|
|
uni.showLoading({
|
|
|
|
|
|
|
|
title: "加载中"
|
|
|
|
|
|
|
|
});
|
|
|
|
isClickDoctor.value = status;
|
|
|
|
isClickDoctor.value = status;
|
|
|
|
if (status) {
|
|
|
|
if (status) {
|
|
|
|
if (yytjInfo.value.nmr_list[yytjInfo.value.nmr_list.length - 1].time) {
|
|
|
|
if (yytjInfo.value.nmr_list[yytjInfo.value.nmr_list.length - 1].time) {
|
|
|
|
@ -113,9 +126,8 @@ const moreTime = async (m, status) => {
|
|
|
|
person_id: buyInfo.value.person_id,
|
|
|
|
person_id: buyInfo.value.person_id,
|
|
|
|
month: dqmonth, //月份
|
|
|
|
month: dqmonth, //月份
|
|
|
|
use_type: buyInfo.value.group_id ? 2 : 1,
|
|
|
|
use_type: buyInfo.value.group_id ? 2 : 1,
|
|
|
|
checkup_type_id: buyInfo.value.group_id
|
|
|
|
checkup_type_id: buyInfo.value.group_id ?
|
|
|
|
? $store.getGroupInfo()?.checkup_type_id
|
|
|
|
$store.getGroupInfo()?.checkup_type_id : $store.getCheckupTypeId()?.id,
|
|
|
|
: $store.getCheckupTypeId()?.id,
|
|
|
|
|
|
|
|
amount: truePrice.value,
|
|
|
|
amount: truePrice.value,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
if (yytjInfo.value.nmr_list?.length > 1) {
|
|
|
|
if (yytjInfo.value.nmr_list?.length > 1) {
|
|
|
|
@ -149,9 +161,9 @@ const moreTime = async (m, status) => {
|
|
|
|
calendarShow.value = true;
|
|
|
|
calendarShow.value = true;
|
|
|
|
uni.hideLoading();
|
|
|
|
uni.hideLoading();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const monthSwitch = (givenDate) => {
|
|
|
|
const monthSwitch = (givenDate) => {
|
|
|
|
const currentYear = new Date().getFullYear();
|
|
|
|
const currentYear = new Date().getFullYear();
|
|
|
|
const currentMonth = new Date().getMonth() + 1;
|
|
|
|
const currentMonth = new Date().getMonth() + 1;
|
|
|
|
// 获取当前日期
|
|
|
|
// 获取当前日期
|
|
|
|
@ -165,8 +177,8 @@ const monthSwitch = (givenDate) => {
|
|
|
|
let str = `${givenDate.year}-${givenDate.month}`;
|
|
|
|
let str = `${givenDate.year}-${givenDate.month}`;
|
|
|
|
moreTime(str, 0);
|
|
|
|
moreTime(str, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const getToday = () => {
|
|
|
|
const getToday = () => {
|
|
|
|
// 获取当前日期
|
|
|
|
// 获取当前日期
|
|
|
|
var today = new Date();
|
|
|
|
var today = new Date();
|
|
|
|
|
|
|
|
|
|
|
|
@ -177,8 +189,8 @@ const getToday = () => {
|
|
|
|
|
|
|
|
|
|
|
|
// 拼接日期字符串
|
|
|
|
// 拼接日期字符串
|
|
|
|
return year + "-" + month + "-" + day;
|
|
|
|
return year + "-" + month + "-" + day;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const getTjTimeList = async (val) => {
|
|
|
|
const getTjTimeList = async (val) => {
|
|
|
|
console.log($store.getCheckupTypeId());
|
|
|
|
console.log($store.getCheckupTypeId());
|
|
|
|
console.log(val);
|
|
|
|
console.log(val);
|
|
|
|
// 获取 体检号源
|
|
|
|
// 获取 体检号源
|
|
|
|
@ -190,9 +202,8 @@ const getTjTimeList = async (val) => {
|
|
|
|
person_id: buyInfo.value.person_id,
|
|
|
|
person_id: buyInfo.value.person_id,
|
|
|
|
date: currentDate.value, //currentDate.value
|
|
|
|
date: currentDate.value, //currentDate.value
|
|
|
|
use_type: buyInfo.value.group_id ? 2 : 1,
|
|
|
|
use_type: buyInfo.value.group_id ? 2 : 1,
|
|
|
|
checkup_type_id: buyInfo.value.group_id
|
|
|
|
checkup_type_id: buyInfo.value.group_id ?
|
|
|
|
? $store.getGroupInfo()?.checkup_type_id
|
|
|
|
$store.getGroupInfo()?.checkup_type_id : $store.getCheckupTypeId()?.id,
|
|
|
|
: $store.getCheckupTypeId()?.id,
|
|
|
|
|
|
|
|
amount: truePrice.value,
|
|
|
|
amount: truePrice.value,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
apiText = "GetDayPlanList";
|
|
|
|
apiText = "GetDayPlanList";
|
|
|
|
@ -233,9 +244,9 @@ const getTjTimeList = async (val) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
uni.hideLoading();
|
|
|
|
uni.hideLoading();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const changerl = (e) => {
|
|
|
|
const changerl = (e) => {
|
|
|
|
// 选中某天日期
|
|
|
|
// 选中某天日期
|
|
|
|
console.log(e, "changerl");
|
|
|
|
console.log(e, "changerl");
|
|
|
|
let num = e.extraInfo.info ? e.extraInfo.info.substring(2) : 0;
|
|
|
|
let num = e.extraInfo.info ? e.extraInfo.info.substring(2) : 0;
|
|
|
|
@ -267,7 +278,9 @@ const changerl = (e) => {
|
|
|
|
title: "提示",
|
|
|
|
title: "提示",
|
|
|
|
content: "已选择医生,切换日期将重新选择医生,是否继续",
|
|
|
|
content: "已选择医生,切换日期将重新选择医生,是否继续",
|
|
|
|
showCancel: true,
|
|
|
|
showCancel: true,
|
|
|
|
success: ({ confirm }) => {
|
|
|
|
success: ({
|
|
|
|
|
|
|
|
confirm
|
|
|
|
|
|
|
|
}) => {
|
|
|
|
if (confirm) {
|
|
|
|
if (confirm) {
|
|
|
|
currentDate.value = e.fulldate;
|
|
|
|
currentDate.value = e.fulldate;
|
|
|
|
time.value = "";
|
|
|
|
time.value = "";
|
|
|
|
@ -288,15 +301,17 @@ const changerl = (e) => {
|
|
|
|
currentDate.value = e.fulldate;
|
|
|
|
currentDate.value = e.fulldate;
|
|
|
|
time.value = "";
|
|
|
|
time.value = "";
|
|
|
|
timeIndex.value = null;
|
|
|
|
timeIndex.value = null;
|
|
|
|
|
|
|
|
if (!yytjInfo.value.doctor_name) {
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].time = "";
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].time = "";
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].id = "";
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].id = "";
|
|
|
|
yytjInfo.value.doctor_name = ""; // 每次切换都清空医生
|
|
|
|
yytjInfo.value.doctor_name = ""; // 每次切换都清空医生
|
|
|
|
|
|
|
|
}
|
|
|
|
getTjTimeList(yytjInfo.value.nmr_list[nmrIndex.value]);
|
|
|
|
getTjTimeList(yytjInfo.value.nmr_list[nmrIndex.value]);
|
|
|
|
calendarShow.value = false;
|
|
|
|
calendarShow.value = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const getCurrentClick = (item, i) => {
|
|
|
|
const getCurrentClick = (item, i) => {
|
|
|
|
// 选择日期
|
|
|
|
// 选择日期
|
|
|
|
console.log(item, i); //当前日期和星期
|
|
|
|
console.log(item, i); //当前日期和星期
|
|
|
|
if (new Date(item.date).getTime() < new Date(getToday()).getTime()) {
|
|
|
|
if (new Date(item.date).getTime() < new Date(getToday()).getTime()) {
|
|
|
|
@ -317,7 +332,9 @@ const getCurrentClick = (item, i) => {
|
|
|
|
title: "提示",
|
|
|
|
title: "提示",
|
|
|
|
content: "已选择医生,切换日期将重新选择医生,是否继续",
|
|
|
|
content: "已选择医生,切换日期将重新选择医生,是否继续",
|
|
|
|
showCancel: true,
|
|
|
|
showCancel: true,
|
|
|
|
success: ({ confirm }) => {
|
|
|
|
success: ({
|
|
|
|
|
|
|
|
confirm
|
|
|
|
|
|
|
|
}) => {
|
|
|
|
console.log(confirm);
|
|
|
|
console.log(confirm);
|
|
|
|
if (confirm) {
|
|
|
|
if (confirm) {
|
|
|
|
if (yytjInfo.value.nmr_list.length > 1 && nmrIndex.value == 0) {
|
|
|
|
if (yytjInfo.value.nmr_list.length > 1 && nmrIndex.value == 0) {
|
|
|
|
@ -345,6 +362,7 @@ const getCurrentClick = (item, i) => {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (yytjInfo.value.nmr_list.length > 1 && nmrIndex.value == 0) {
|
|
|
|
if (yytjInfo.value.nmr_list.length > 1 && nmrIndex.value == 0) {
|
|
|
|
|
|
|
|
if (!yytjInfo.value.doctor_name) {
|
|
|
|
yytjInfo.value.nmr_list = yytjInfo.value.nmr_list.map((val) => {
|
|
|
|
yytjInfo.value.nmr_list = yytjInfo.value.nmr_list.map((val) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
...val,
|
|
|
|
...val,
|
|
|
|
@ -353,32 +371,86 @@ const getCurrentClick = (item, i) => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
time.value = "";
|
|
|
|
time.value = "";
|
|
|
|
timeIndex.value = null;
|
|
|
|
timeIndex.value = null;
|
|
|
|
|
|
|
|
if (!yytjInfo.value.doctor_name) {
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].time = "";
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].time = "";
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].id = "";
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].id = "";
|
|
|
|
yytjInfo.value.doctor_name = ""; // 每次切换都清空医生
|
|
|
|
yytjInfo.value.doctor_name = ""; // 每次切换都清空医生
|
|
|
|
yytjInfo.value.doctor_date = ""; // 每次切换都清空医生
|
|
|
|
yytjInfo.value.doctor_date = ""; // 每次切换都清空医生
|
|
|
|
|
|
|
|
}
|
|
|
|
$store.setYytjInfo(yytjInfo.value);
|
|
|
|
$store.setYytjInfo(yytjInfo.value);
|
|
|
|
status.value = 0;
|
|
|
|
status.value = 0;
|
|
|
|
currentDate.value = item.date;
|
|
|
|
currentDate.value = item.date;
|
|
|
|
getTjTimeList(item); //带着选中的日期重新选择
|
|
|
|
getTjTimeList(item); //带着选中的日期重新选择
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const getCurrentTime = (item, index) => {
|
|
|
|
const getCurrentTime = (item, index) => {
|
|
|
|
// 选择时分
|
|
|
|
// 选择时分
|
|
|
|
if (item.status == 2) {
|
|
|
|
if (item.status == 2) {
|
|
|
|
uni.$lu.toast("该号源已被其他人预约");
|
|
|
|
uni.$lu.toast("该号源已被其他人预约");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
let active_item = yytjInfo.value.nmr_list[nmrIndex.value]
|
|
|
|
|
|
|
|
if (active_item.item_id !== -1) {
|
|
|
|
|
|
|
|
// 这个是 核磁项目 判断时间
|
|
|
|
|
|
|
|
if (!!yytjInfo.value.doctor_name) {
|
|
|
|
|
|
|
|
let doctor_time = new Date(yytjInfo.value.doctor_date) / 1
|
|
|
|
|
|
|
|
let choose_time = new Date(item.date) / 1
|
|
|
|
|
|
|
|
let day_check = ''
|
|
|
|
|
|
|
|
let pick_day = 3
|
|
|
|
|
|
|
|
if (doctor_time > choose_time) {
|
|
|
|
|
|
|
|
day_check = `请选择${yytjInfo.value.doctor_date}之后${pick_day}天以内的日期`
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (doctor_time !== choose_time) {
|
|
|
|
|
|
|
|
choose_time = choose_time - (60 * 60 * 24 * 1000 * pick_day)
|
|
|
|
|
|
|
|
if (doctor_time < choose_time) {
|
|
|
|
|
|
|
|
day_check = `请选择${yytjInfo.value.doctor_date}之后${pick_day}天以内的日期.`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!!day_check) {
|
|
|
|
|
|
|
|
uni.$lu.toast(day_check);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// 体检 检查一下 核磁时间 是不是 符合逻辑
|
|
|
|
|
|
|
|
let heci_item = yytjInfo.value.nmr_list[0]
|
|
|
|
|
|
|
|
if (heci_item.item_id !== -1) {
|
|
|
|
|
|
|
|
// 是核磁
|
|
|
|
|
|
|
|
if (!!heci_item.time) {
|
|
|
|
|
|
|
|
// 并且选了时间
|
|
|
|
|
|
|
|
let heci_time = new Date(heci_item.time.split(' ')[0]) / 1
|
|
|
|
|
|
|
|
let choose_time = new Date(item.date) / 1
|
|
|
|
|
|
|
|
let day_check = ''
|
|
|
|
|
|
|
|
let pick_day = 3
|
|
|
|
|
|
|
|
if (choose_time > heci_time) {
|
|
|
|
|
|
|
|
day_check = `请选择${heci_item.time.split(' ')[0]}之前${pick_day}天以内的日期`
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (heci_time !== choose_time) {
|
|
|
|
|
|
|
|
choose_time = choose_time + (60 * 60 * 24 * 1000 * pick_day)
|
|
|
|
|
|
|
|
if (choose_time < heci_time) {
|
|
|
|
|
|
|
|
day_check = `请选择${heci_item.time.split(' ')[0]}之前${pick_day}天以内的日期.`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!!day_check) {
|
|
|
|
|
|
|
|
uni.$lu.toast(day_check);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
console.log(item);
|
|
|
|
console.log(item);
|
|
|
|
timeIndex.value = index;
|
|
|
|
timeIndex.value = index;
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].time = item.date + " " + item.newTime;
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].time = item.date + " " + item.newTime;
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].id = item.id;
|
|
|
|
yytjInfo.value.nmr_list[nmrIndex.value].id = item.id;
|
|
|
|
status.value = 0;
|
|
|
|
status.value = 0;
|
|
|
|
$store.setYytjInfo(yytjInfo.value);
|
|
|
|
$store.setYytjInfo(yytjInfo.value);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const xmmcClick = (val, index, status) => {
|
|
|
|
const xmmcClick = (val, index, status) => {
|
|
|
|
if (nmrIndex.value == index && status) {
|
|
|
|
if (nmrIndex.value == index && status) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -388,9 +460,11 @@ const xmmcClick = (val, index, status) => {
|
|
|
|
index != 0 &&
|
|
|
|
index != 0 &&
|
|
|
|
yytjInfo.value.nmr_list[0]?.time == ""
|
|
|
|
yytjInfo.value.nmr_list[0]?.time == ""
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
|
|
|
|
if (!yytjInfo.value.doctor_name) {
|
|
|
|
uni.$lu.toast("请先选择" + yytjInfo.value.nmr_list[0]?.name + "时间");
|
|
|
|
uni.$lu.toast("请先选择" + yytjInfo.value.nmr_list[0]?.name + "时间");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
nmrIndex.value = index;
|
|
|
|
nmrIndex.value = index;
|
|
|
|
time.value = "";
|
|
|
|
time.value = "";
|
|
|
|
timeIndex.value = null;
|
|
|
|
timeIndex.value = null;
|
|
|
|
@ -412,9 +486,9 @@ const xmmcClick = (val, index, status) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 体检号源
|
|
|
|
// 体检号源
|
|
|
|
getTjTimeList(val);
|
|
|
|
getTjTimeList(val);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const clickDoctor = (s) => {
|
|
|
|
const clickDoctor = (s) => {
|
|
|
|
//选择医生
|
|
|
|
//选择医生
|
|
|
|
console.log(yytjInfo.value.nmr_list[0]?.time);
|
|
|
|
console.log(yytjInfo.value.nmr_list[0]?.time);
|
|
|
|
console.log(yytjInfo.value.nmr_list[0]?.name);
|
|
|
|
console.log(yytjInfo.value.nmr_list[0]?.name);
|
|
|
|
@ -422,9 +496,11 @@ const clickDoctor = (s) => {
|
|
|
|
yytjInfo.value.nmr_list.length > 1 &&
|
|
|
|
yytjInfo.value.nmr_list.length > 1 &&
|
|
|
|
yytjInfo.value.nmr_list[0]?.time == ""
|
|
|
|
yytjInfo.value.nmr_list[0]?.time == ""
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
|
|
|
|
if (!yytjInfo.value.doctor_name) {
|
|
|
|
uni.$lu.toast("请先选择" + yytjInfo.value.nmr_list[0]?.name + "时间");
|
|
|
|
uni.$lu.toast("请先选择" + yytjInfo.value.nmr_list[0]?.name + "时间");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// if (yytjInfo.value.nmr_list[yytjInfo.value.nmr_list.length - 1]?.time == "") {
|
|
|
|
// if (yytjInfo.value.nmr_list[yytjInfo.value.nmr_list.length - 1]?.time == "") {
|
|
|
|
// nmrIndex.value = yytjInfo.value.nmr_list?.length - 1;
|
|
|
|
// nmrIndex.value = yytjInfo.value.nmr_list?.length - 1;
|
|
|
|
nmrIndex.value = -1;
|
|
|
|
nmrIndex.value = -1;
|
|
|
|
@ -444,29 +520,29 @@ const clickDoctor = (s) => {
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: `/pages/main/selectDoctor/selectDoctor?date=${date}`,
|
|
|
|
url: `/pages/main/selectDoctor/selectDoctor?date=${date}`,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const comfrimyy = () => {
|
|
|
|
const comfrimyy = () => {
|
|
|
|
console.log(yytjInfo.value);
|
|
|
|
console.log(yytjInfo.value);
|
|
|
|
status.value = 1;
|
|
|
|
status.value = 1;
|
|
|
|
uni.navigateBack({
|
|
|
|
uni.navigateBack({
|
|
|
|
delta: 1,
|
|
|
|
delta: 1,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const config_ref = ref(null);
|
|
|
|
const config_ref = ref(null);
|
|
|
|
const configRef = (e) => {
|
|
|
|
const configRef = (e) => {
|
|
|
|
if (!config_ref.value) {
|
|
|
|
if (!config_ref.value) {
|
|
|
|
config_ref.value = e;
|
|
|
|
config_ref.value = e;
|
|
|
|
mountedAction();
|
|
|
|
mountedAction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
onShow(() => {
|
|
|
|
onShow(() => {
|
|
|
|
if (!!config_ref.value) {
|
|
|
|
if (!!config_ref.value) {
|
|
|
|
mountedAction();
|
|
|
|
mountedAction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<DraggableButton />
|
|
|
|
<DraggableButton />
|
|
|
|
@ -475,32 +551,17 @@ onShow(() => {
|
|
|
|
<view :ref="configRef"></view>
|
|
|
|
<view :ref="configRef"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="h-38rpx bg-#239EA3 pl-20rpx pr-20rpx box-border">
|
|
|
|
<view class="h-38rpx bg-#239EA3 pl-20rpx pr-20rpx box-border">
|
|
|
|
<view
|
|
|
|
<view style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04)"
|
|
|
|
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04)"
|
|
|
|
class="p-16rpx pb-20rpx pt-30rpx rounded-15rpx bg-#fff">
|
|
|
|
class="p-16rpx pb-20rpx pt-30rpx rounded-15rpx bg-#fff"
|
|
|
|
<view class="flex w-full b-0 b-solid b-b-1 b-#E1ECEE pb-25rpx mb-7rpx"
|
|
|
|
>
|
|
|
|
v-if="!buyInfo.group_id && comboInfo?.items?.length">
|
|
|
|
<view
|
|
|
|
|
|
|
|
class="flex w-full b-0 b-solid b-b-1 b-#E1ECEE pb-25rpx mb-7rpx"
|
|
|
|
|
|
|
|
v-if="!buyInfo.group_id && comboInfo?.items?.length"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- 1 个检套餐 显示套餐信息 -->
|
|
|
|
<!-- 1 个检套餐 显示套餐信息 -->
|
|
|
|
<image
|
|
|
|
<image v-if="comboInfo.img" :src="$image(comboInfo.img)" class="w-190rpx h-190rpx mr-37rpx" mode="widthFix" />
|
|
|
|
v-if="comboInfo.img"
|
|
|
|
|
|
|
|
:src="$image(comboInfo.img)"
|
|
|
|
|
|
|
|
class="w-190rpx h-190rpx mr-37rpx"
|
|
|
|
|
|
|
|
mode="widthFix"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<view class="flex flex-col grow">
|
|
|
|
<view class="flex flex-col grow">
|
|
|
|
<text>{{ comboInfo.combo_name }}</text>
|
|
|
|
<text>{{ comboInfo.combo_name }}</text>
|
|
|
|
<view class="mt-13rpx mb-18rpx">
|
|
|
|
<view class="mt-13rpx mb-18rpx">
|
|
|
|
<uni-tag
|
|
|
|
<uni-tag v-for="(val, i) in comboInfo.tags" :key="i" size="small" :inverted="true" :text="val.text"
|
|
|
|
v-for="(val, i) in comboInfo.tags"
|
|
|
|
class="mr-8rpx" :custom-style="
|
|
|
|
:key="i"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
:inverted="true"
|
|
|
|
|
|
|
|
:text="val.text"
|
|
|
|
|
|
|
|
class="mr-8rpx"
|
|
|
|
|
|
|
|
:custom-style="
|
|
|
|
|
|
|
|
'background-color:' +
|
|
|
|
'background-color:' +
|
|
|
|
val.color +
|
|
|
|
val.color +
|
|
|
|
';border-color:' +
|
|
|
|
';border-color:' +
|
|
|
|
@ -508,17 +569,12 @@ onShow(() => {
|
|
|
|
'; color:' +
|
|
|
|
'; color:' +
|
|
|
|
val.text_color +
|
|
|
|
val.text_color +
|
|
|
|
';'
|
|
|
|
';'
|
|
|
|
"
|
|
|
|
" />
|
|
|
|
/>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view v-if="comboInfo.tags2?.length">
|
|
|
|
<view v-if="comboInfo.tags2?.length">
|
|
|
|
<text
|
|
|
|
<text v-for="(val, i) in comboInfo.tags2" :key="i"
|
|
|
|
v-for="(val, i) in comboInfo.tags2"
|
|
|
|
|
|
|
|
:key="i"
|
|
|
|
|
|
|
|
class="text-#8B8B8B text-20rpx line-height-[1] px-5rpx b-0 b-solid b-#8B8B8B"
|
|
|
|
class="text-#8B8B8B text-20rpx line-height-[1] px-5rpx b-0 b-solid b-#8B8B8B"
|
|
|
|
:class="i == comboInfo.tags2?.length - 1 ? 'b-r-0' : 'b-r-2'"
|
|
|
|
:class="i == comboInfo.tags2?.length - 1 ? 'b-r-0' : 'b-r-2'">{{ val }}</text>
|
|
|
|
>{{ val }}</text
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="mt-20rpx w-full flex items-end">
|
|
|
|
<view class="mt-20rpx w-full flex items-end">
|
|
|
|
<text class="text-18rpx text-#EC3D15">¥</text>
|
|
|
|
<text class="text-18rpx text-#EC3D15">¥</text>
|
|
|
|
@ -528,25 +584,16 @@ onShow(() => {
|
|
|
|
<text class="text-18rpx text-#878787 line-through">{{
|
|
|
|
<text class="text-18rpx text-#878787 line-through">{{
|
|
|
|
comboInfo.original_price
|
|
|
|
comboInfo.original_price
|
|
|
|
}}</text>
|
|
|
|
}}</text>
|
|
|
|
<text class="text-18rpx text-#878787 ml-auto mr-55rpx"
|
|
|
|
<text class="text-18rpx text-#878787 ml-auto mr-55rpx">已售{{ comboInfo.sale_count }}</text>
|
|
|
|
>已售{{ comboInfo.sale_count }}</text
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view
|
|
|
|
<view v-if="buyInfo.group_id" class="b-0 b-solid b-#E1ECEE pb-25rpx mb-7rpx" :class="{
|
|
|
|
v-if="buyInfo.group_id"
|
|
|
|
|
|
|
|
class="b-0 b-solid b-#E1ECEE pb-25rpx mb-7rpx"
|
|
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
|
|
'b-b-1': itemsInfo?.items?.length,
|
|
|
|
'b-b-1': itemsInfo?.items?.length,
|
|
|
|
}"
|
|
|
|
}">
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- 3团检套餐 4团检自选 都要显示头像和名字 -->
|
|
|
|
<!-- 3团检套餐 4团检自选 都要显示头像和名字 -->
|
|
|
|
<view class="flex items-center">
|
|
|
|
<view class="flex items-center">
|
|
|
|
<image
|
|
|
|
<image src="@/static/assets/userm.png" class="w-70rpx h-70rpx mr-35rpx" />
|
|
|
|
src="@/static/assets/userm.png"
|
|
|
|
|
|
|
|
class="w-70rpx h-70rpx mr-35rpx"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<view class="flex items-center grow">
|
|
|
|
<view class="flex items-center grow">
|
|
|
|
<text class="text-#707070 text-24rpx">您好,</text>
|
|
|
|
<text class="text-#707070 text-24rpx">您好,</text>
|
|
|
|
<text class="text-#0E0E0E text-32rpx">{{ groupInfo?.name }}</text>
|
|
|
|
<text class="text-#0E0E0E text-32rpx">{{ groupInfo?.name }}</text>
|
|
|
|
@ -562,10 +609,7 @@ onShow(() => {
|
|
|
|
<text class="text-#8B8B8B">部门名称:</text>
|
|
|
|
<text class="text-#8B8B8B">部门名称:</text>
|
|
|
|
<text>{{ groupInfo.bumen_name }}</text>
|
|
|
|
<text>{{ groupInfo.bumen_name }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view
|
|
|
|
<view class="pb-30rpx" v-if="groupInfo.combo_name || comboInfo?.combo_name">
|
|
|
|
class="pb-30rpx"
|
|
|
|
|
|
|
|
v-if="groupInfo.combo_name || comboInfo?.combo_name"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<text class="text-#8B8B8B">套餐名称:</text>
|
|
|
|
<text class="text-#8B8B8B">套餐名称:</text>
|
|
|
|
<text>{{ groupInfo?.combo_name || comboInfo?.combo_name }}</text>
|
|
|
|
<text>{{ groupInfo?.combo_name || comboInfo?.combo_name }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -578,23 +622,14 @@ onShow(() => {
|
|
|
|
<view class="pt-15rpx" v-if="itemsInfo?.items?.length">
|
|
|
|
<view class="pt-15rpx" v-if="itemsInfo?.items?.length">
|
|
|
|
<view class="text-30rpx text-#0E0E0E pb-30rpx"> 自选项目 </view>
|
|
|
|
<view class="text-30rpx text-#0E0E0E pb-30rpx"> 自选项目 </view>
|
|
|
|
<view class="text-#8B8B8B text-24rpx">
|
|
|
|
<view class="text-#8B8B8B text-24rpx">
|
|
|
|
<view
|
|
|
|
<view class="flex mb-20rpx" v-for="(val, index) in itemsInfo?.items.length > 3
|
|
|
|
class="flex mb-20rpx"
|
|
|
|
|
|
|
|
v-for="(val, index) in itemsInfo?.items.length > 3
|
|
|
|
|
|
|
|
? 3
|
|
|
|
? 3
|
|
|
|
: itemsInfo?.items"
|
|
|
|
: itemsInfo?.items" :key="index">
|
|
|
|
:key="index"
|
|
|
|
<text class="whitespace-nowrap">{{ itemsInfo?.items[index]?.keshi_name }} -
|
|
|
|
>
|
|
|
|
|
|
|
|
<text class="whitespace-nowrap"
|
|
|
|
|
|
|
|
>{{ itemsInfo?.items[index]?.keshi_name }} -
|
|
|
|
|
|
|
|
</text>
|
|
|
|
</text>
|
|
|
|
<view class="line-clamp-2">
|
|
|
|
<view class="line-clamp-2">
|
|
|
|
<text
|
|
|
|
<text class="ml-10rpx text-#0E0E0E" v-for="(v, i) in itemsInfo?.items[index]?.children"
|
|
|
|
class="ml-10rpx text-#0E0E0E"
|
|
|
|
:key="i">{{ v.name }}</text>
|
|
|
|
v-for="(v, i) in itemsInfo?.items[index]?.children"
|
|
|
|
|
|
|
|
:key="i"
|
|
|
|
|
|
|
|
>{{ v.name }}</text
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -610,114 +645,65 @@ onShow(() => {
|
|
|
|
</text>
|
|
|
|
</text>
|
|
|
|
</view> -->
|
|
|
|
</view> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view
|
|
|
|
<view style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04)"
|
|
|
|
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04)"
|
|
|
|
class="p-16rpx pb-20rpx pt-30rpx rounded-15rpx bg-#fff mt-15rpx ylrl" v-if="calendarShow">
|
|
|
|
class="p-16rpx pb-20rpx pt-30rpx rounded-15rpx bg-#fff mt-15rpx ylrl"
|
|
|
|
<uni-calendar :selected="rl_list" :startDate="getToday()" :showMonth="false" :insert="true" :date="currentDate"
|
|
|
|
v-if="calendarShow"
|
|
|
|
@change="changerl" @monthSwitch="monthSwitch" />
|
|
|
|
>
|
|
|
|
</view>
|
|
|
|
<uni-calendar
|
|
|
|
<view style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04)"
|
|
|
|
:selected="rl_list"
|
|
|
|
class="p-16rpx pb-20rpx pt-30rpx rounded-15rpx bg-#fff mt-15rpx" v-if="date_list && !calendarShow">
|
|
|
|
:startDate="getToday()"
|
|
|
|
|
|
|
|
:showMonth="false"
|
|
|
|
|
|
|
|
:insert="true"
|
|
|
|
|
|
|
|
:date="currentDate"
|
|
|
|
|
|
|
|
@change="changerl"
|
|
|
|
|
|
|
|
@monthSwitch="monthSwitch"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view
|
|
|
|
|
|
|
|
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04)"
|
|
|
|
|
|
|
|
class="p-16rpx pb-20rpx pt-30rpx rounded-15rpx bg-#fff mt-15rpx"
|
|
|
|
|
|
|
|
v-if="date_list && !calendarShow"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view class="">
|
|
|
|
<view class="">
|
|
|
|
<view
|
|
|
|
<view class="text-30rpx text-#0E0E0E pb-34rpx font-500" v-if="yytjInfo.nmr_list[nmrIndex]?.name">
|
|
|
|
class="text-30rpx text-#0E0E0E pb-34rpx font-500"
|
|
|
|
|
|
|
|
v-if="yytjInfo.nmr_list[nmrIndex]?.name"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ yytjInfo.nmr_list[nmrIndex]?.name }}
|
|
|
|
{{ yytjInfo.nmr_list[nmrIndex]?.name }}
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="flex mb-30rpx items-center">
|
|
|
|
<view class="flex mb-30rpx items-center">
|
|
|
|
<view
|
|
|
|
<view class="flex-1 text-center text-18rpx" v-for="(item, index) in date_list" :key="index">
|
|
|
|
class="flex-1 text-center text-18rpx"
|
|
|
|
<view @click="getCurrentClick(item, index)" :class="{
|
|
|
|
v-for="(item, index) in date_list"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view
|
|
|
|
|
|
|
|
@click="getCurrentClick(item, index)"
|
|
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
|
|
activeTime: 3 == index,
|
|
|
|
activeTime: 3 == index,
|
|
|
|
'bg-#efefef text-#aaa8a8':
|
|
|
|
'bg-#efefef text-#aaa8a8':
|
|
|
|
item.count < 0 ||
|
|
|
|
item.count < 0 ||
|
|
|
|
new Date(item.date).getTime() <
|
|
|
|
new Date(item.date).getTime() <
|
|
|
|
new Date(getToday()).getTime(),
|
|
|
|
new Date(getToday()).getTime(),
|
|
|
|
}"
|
|
|
|
}" class="rounded-12rpx pt-10rpx pb-10rpx ml-10rpx mr-10rpx mb-6rpx">
|
|
|
|
class="rounded-12rpx pt-10rpx pb-10rpx ml-10rpx mr-10rpx mb-6rpx"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view> {{ item.newMonthDate }} </view>
|
|
|
|
<view> {{ item.newMonthDate }} </view>
|
|
|
|
<view class="text-26rpx font-500"> {{ item.newWeek }} </view>
|
|
|
|
<view class="text-26rpx font-500"> {{ item.newWeek }} </view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="ma" v-if="item.count > -1">
|
|
|
|
<view class="ma" v-if="item.count > -1">
|
|
|
|
<text
|
|
|
|
<text :class="{
|
|
|
|
:class="{
|
|
|
|
|
|
|
|
'text-#239EA3 !bg-#E1F4F8': 3 == index,
|
|
|
|
'text-#239EA3 !bg-#E1F4F8': 3 == index,
|
|
|
|
}"
|
|
|
|
}" class="bg-#EFEFEF rounded-10rpx h-28rpx pl-10rpx pr-10rpx">余{{ item.count }}</text>
|
|
|
|
class="bg-#EFEFEF rounded-10rpx h-28rpx pl-10rpx pr-10rpx"
|
|
|
|
|
|
|
|
>余{{ item.count }}</text
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view
|
|
|
|
<view class="flex-1 col center text-#239EA3 text-20rpx bs b-#E7E7E7 b-l-1 h-80rpx"
|
|
|
|
class="flex-1 col center text-#239EA3 text-20rpx bs b-#E7E7E7 b-l-1 h-80rpx"
|
|
|
|
@click="moreTime(null, 0)">
|
|
|
|
@click="moreTime(null, 0)"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<uni-icons type="calendar" size="30" color="#239EA3"></uni-icons>
|
|
|
|
<uni-icons type="calendar" size="30" color="#239EA3"></uni-icons>
|
|
|
|
<text>更多</text>
|
|
|
|
<text>更多</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view
|
|
|
|
<view class="flex flex-wrap pt-30rpx pb-30rpx b-0 b-t-1 b-solid b-#E1ECEE" v-if="time_list.length">
|
|
|
|
class="flex flex-wrap pt-30rpx pb-30rpx b-0 b-t-1 b-solid b-#E1ECEE"
|
|
|
|
<view class="w-20% text-center box-border p-20rpx" v-for="(item, index) in time_list" :key="index" :class="{
|
|
|
|
v-if="time_list.length"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view
|
|
|
|
|
|
|
|
class="w-20% text-center box-border p-20rpx"
|
|
|
|
|
|
|
|
v-for="(item, index) in time_list"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
|
|
'text-red': item.status == 2,
|
|
|
|
'text-red': item.status == 2,
|
|
|
|
}"
|
|
|
|
}" @click="getCurrentTime(item, index)">
|
|
|
|
@click="getCurrentTime(item, index)"
|
|
|
|
<view class="text-24rpx rounded-12rpx h-54rpx flex flex-items-center flex-justify-center"
|
|
|
|
>
|
|
|
|
:class="timeIndex == index ? 'activeTime' : ''">
|
|
|
|
<view
|
|
|
|
|
|
|
|
class="text-24rpx rounded-12rpx h-54rpx flex flex-items-center flex-justify-center"
|
|
|
|
|
|
|
|
:class="timeIndex == index ? 'activeTime' : ''"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.newTime }}
|
|
|
|
{{ item.newTime }}
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view
|
|
|
|
<view style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04)"
|
|
|
|
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04)"
|
|
|
|
class="p-30rpx pl-10rpx pr-10rpx rounded-15rpx bg-#fff mt-15rpx text-#101010 text-28rpx">
|
|
|
|
class="p-30rpx pl-10rpx pr-10rpx rounded-15rpx bg-#fff mt-15rpx text-#101010 text-28rpx"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view class="bg-#F7F7F7 pl-20rpx pr-20rpx pt-23rpx pb-25rpx">
|
|
|
|
<view class="bg-#F7F7F7 pl-20rpx pr-20rpx pt-23rpx pb-25rpx">
|
|
|
|
<text>{{
|
|
|
|
<text>{{
|
|
|
|
buyInfo.group_id
|
|
|
|
buyInfo.group_id
|
|
|
|
? $store.getGroupInfo()?.name
|
|
|
|
? $store.getGroupInfo()?.name
|
|
|
|
: $store.getUser()?.name
|
|
|
|
: $store.getUser()?.name
|
|
|
|
}}</text>
|
|
|
|
}}</text>
|
|
|
|
<view
|
|
|
|
<view class="bg-#EFEFEF rounded-15rpx p-10rpx pb-15rpx pt-15rpx mt-20rpx">
|
|
|
|
class="bg-#EFEFEF rounded-15rpx p-10rpx pb-15rpx pt-15rpx mt-20rpx"
|
|
|
|
<view v-for="(item, index) in yytjInfo.nmr_list" :key="index" @click="xmmcClick(item, index, 1)"
|
|
|
|
>
|
|
|
|
|
|
|
|
<view
|
|
|
|
|
|
|
|
v-for="(item, index) in yytjInfo.nmr_list"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
@click="xmmcClick(item, index, 1)"
|
|
|
|
|
|
|
|
:class="nmrIndex == index ? 'acitvetc' : ''"
|
|
|
|
:class="nmrIndex == index ? 'acitvetc' : ''"
|
|
|
|
class="flex flex-justify-around p-20rpx pl-10rpx pr-10rpx rounded-15rpx"
|
|
|
|
class="flex flex-justify-around p-20rpx pl-10rpx pr-10rpx rounded-15rpx">
|
|
|
|
>
|
|
|
|
|
|
|
|
<view class="flex-col flex flex-1 line-clamp-1">
|
|
|
|
<view class="flex-col flex flex-1 line-clamp-1">
|
|
|
|
<text v-for="(v, i) in item.name?.split('/')" :key="i">{{
|
|
|
|
<text v-for="(v, i) in item.name?.split('/')" :key="i">{{
|
|
|
|
v
|
|
|
|
v
|
|
|
|
@ -727,11 +713,8 @@ onShow(() => {
|
|
|
|
{{ item.time }}
|
|
|
|
{{ item.time }}
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view
|
|
|
|
<view class="p-20rpx pl-10rpx pr-10rpx rounded-15rpx between" :class="nmrIndex == -1 ? 'acitvetc' : ''"
|
|
|
|
class="p-20rpx pl-10rpx pr-10rpx rounded-15rpx between"
|
|
|
|
@click="clickDoctor()">
|
|
|
|
:class="nmrIndex == -1 ? 'acitvetc' : ''"
|
|
|
|
|
|
|
|
@click="clickDoctor()"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<text>体检医生</text>
|
|
|
|
<text>体检医生</text>
|
|
|
|
<text class="ml-10rpx text-#0E0E0E center">
|
|
|
|
<text class="ml-10rpx text-#0E0E0E center">
|
|
|
|
{{ yytjInfo?.doctor_name || "请选择" }}
|
|
|
|
{{ yytjInfo?.doctor_name || "请选择" }}
|
|
|
|
@ -742,10 +725,8 @@ onShow(() => {
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="pb-100rpx">
|
|
|
|
<view class="pb-100rpx">
|
|
|
|
<view
|
|
|
|
<view @click="comfrimyy"
|
|
|
|
@click="comfrimyy"
|
|
|
|
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>
|
|
|
|
</view>
|
|
|
|
@ -753,35 +734,41 @@ onShow(() => {
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.activeTime {
|
|
|
|
.activeTime {
|
|
|
|
background-color: #239ea3;
|
|
|
|
background-color: #239ea3;
|
|
|
|
color: #fff;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.acitvetc {
|
|
|
|
.acitvetc {
|
|
|
|
background-color: #e0f1f2;
|
|
|
|
background-color: #e0f1f2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .ylrl {
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .ylrl {
|
|
|
|
|
|
|
|
.uni-calendar__header,
|
|
|
|
.uni-calendar__header,
|
|
|
|
.uni-calendar__weeks-day {
|
|
|
|
.uni-calendar__weeks-day {
|
|
|
|
border: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar-item--checked {
|
|
|
|
.uni-calendar-item--checked {
|
|
|
|
background-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar-item__weeks-box-item {
|
|
|
|
.uni-calendar-item__weeks-box-item {
|
|
|
|
background-color: #239ea3 !important;
|
|
|
|
background-color: #239ea3 !important;
|
|
|
|
border-radius: 12rpx;
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar-item--extra {
|
|
|
|
.uni-calendar-item--extra {
|
|
|
|
color: #fff !important;
|
|
|
|
color: #fff !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar-item--isDay {
|
|
|
|
.uni-calendar-item--isDay {
|
|
|
|
background-color: #239ea3 !important;
|
|
|
|
background-color: #239ea3 !important;
|
|
|
|
border-radius: 12rpx;
|
|
|
|
border-radius: 12rpx;
|
|
|
|
color: #fff !important;
|
|
|
|
color: #fff !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar-item--extra {
|
|
|
|
.uni-calendar-item--extra {
|
|
|
|
color: #239ea3;
|
|
|
|
color: #239ea3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -794,12 +781,15 @@ onShow(() => {
|
|
|
|
.uni-calendar-item__weeks-box-circle {
|
|
|
|
.uni-calendar-item__weeks-box-circle {
|
|
|
|
background-color: rgba(0, 0, 0, 0);
|
|
|
|
background-color: rgba(0, 0, 0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar-item--isDay-text {
|
|
|
|
.uni-calendar-item--isDay-text {
|
|
|
|
color: #333;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar-item__weeks-box-text {
|
|
|
|
.uni-calendar-item__weeks-box-text {
|
|
|
|
font-size: 26rpx;
|
|
|
|
font-size: 26rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar-item__weeks-lunar-text {
|
|
|
|
.uni-calendar-item__weeks-lunar-text {
|
|
|
|
font-size: 16rpx;
|
|
|
|
font-size: 16rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -807,6 +797,7 @@ onShow(() => {
|
|
|
|
.uni-calendar-item__weeks-box-item {
|
|
|
|
.uni-calendar-item__weeks-box-item {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.uni-calendar__backtoday {
|
|
|
|
.uni-calendar__backtoday {
|
|
|
|
display: none;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -816,5 +807,5 @@ onShow(() => {
|
|
|
|
display: none;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|