|
|
|
|
@ -182,6 +182,9 @@ const getTjTimeList = async (val) => {
|
|
|
|
|
};
|
|
|
|
|
apiText = "NMRGetDayPlanList";
|
|
|
|
|
}
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: "加载中",
|
|
|
|
|
});
|
|
|
|
|
const response = await $api(apiText, obj);
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
console.log(response, "response");
|
|
|
|
|
@ -221,8 +224,8 @@ const changerl = (e) => {
|
|
|
|
|
if (isClickDoctor.value == 1) {
|
|
|
|
|
// 点击医生进入的
|
|
|
|
|
status.value = 0;
|
|
|
|
|
yytjInfo.value.nmr_list[yytjInfo.value.nmr_list.length - 1].time =
|
|
|
|
|
e.fulldate;
|
|
|
|
|
// yytjInfo.value.nmr_list[yytjInfo.value.nmr_list.length - 1].time =
|
|
|
|
|
// e.fulldate;
|
|
|
|
|
yytjInfo.value.doctor_date = e.fulldate;
|
|
|
|
|
$store.setYytjInfo(yytjInfo.value);
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
@ -233,9 +236,9 @@ const changerl = (e) => {
|
|
|
|
|
calendarShow.value = false;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: "加载中",
|
|
|
|
|
});
|
|
|
|
|
// uni.showLoading({
|
|
|
|
|
// title: "加载中",
|
|
|
|
|
// });
|
|
|
|
|
currentDate.value = e.fulldate;
|
|
|
|
|
time.value = "";
|
|
|
|
|
timeIndex.value = null;
|
|
|
|
|
@ -259,14 +262,14 @@ const getCurrentClick = (item, i) => {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (i != 3) {
|
|
|
|
|
if(yytjInfo.value.nmr_list.length > 1 && nmrIndex.value == 0){
|
|
|
|
|
if (yytjInfo.value.nmr_list.length > 1 && nmrIndex.value == 0) {
|
|
|
|
|
yytjInfo.value.nmr_list = yytjInfo.value.nmr_list.map((val) => {
|
|
|
|
|
return {
|
|
|
|
|
...val,
|
|
|
|
|
time: "",
|
|
|
|
|
id: ""
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
id: "",
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
time.value = "";
|
|
|
|
|
timeIndex.value = null;
|
|
|
|
|
@ -309,7 +312,15 @@ const xmmcClick = (val, index) => {
|
|
|
|
|
if (val.time) {
|
|
|
|
|
currentDate.value = val.time.split(" ")[0];
|
|
|
|
|
} else {
|
|
|
|
|
currentDate.value = getToday();
|
|
|
|
|
if (
|
|
|
|
|
((yytjInfo.value.nmr_list.length > 1 && index == 1) ||
|
|
|
|
|
(yytjInfo.value.nmr_list.length == 1 && index == 0)) &&
|
|
|
|
|
yytjInfo.value.doctor_date
|
|
|
|
|
) {
|
|
|
|
|
currentDate.value = yytjInfo.value.doctor_date;
|
|
|
|
|
} else {
|
|
|
|
|
currentDate.value = getToday();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 体检号源
|
|
|
|
|
getTjTimeList(val);
|
|
|
|
|
|