|
|
|
@ -153,26 +153,23 @@
|
|
|
|
//weekly子组件点击了日期
|
|
|
|
//weekly子组件点击了日期
|
|
|
|
let selectedDate = ref(null);
|
|
|
|
let selectedDate = ref(null);
|
|
|
|
const selectDateFunc = (date) => {
|
|
|
|
const selectDateFunc = (date) => {
|
|
|
|
selectedDate.value = date
|
|
|
|
if(doctor_name.value){
|
|
|
|
selectedTime.value = null
|
|
|
|
uni.showModal({
|
|
|
|
if (itemSelected.value.type == 'nmr') {
|
|
|
|
title: '提示',
|
|
|
|
// nmr_time.value = null
|
|
|
|
content: '已选择医生,切换日期将重新选择医生,是否继续',
|
|
|
|
//nmr_date.value = date
|
|
|
|
cancelText:'取消',
|
|
|
|
YuYueInfo.value.NmrInfo[itemSelected.value.index].date=date
|
|
|
|
confirmText:'确定',
|
|
|
|
YuYueInfo.value.NmrInfo[itemSelected.value.index].time=null
|
|
|
|
success: function (res) {
|
|
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
tj_time.value = null //如果切换核磁日期则清空体检选择的日期时间
|
|
|
|
DateChange(date)
|
|
|
|
tj_date.value = null
|
|
|
|
} else if (res.cancel) {
|
|
|
|
doctor_name.value = null //清空体检医生
|
|
|
|
|
|
|
|
NMRGetDayPlanListFunc()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (itemSelected.value.type == 'tj') {
|
|
|
|
});
|
|
|
|
tj_time.value = null
|
|
|
|
}else{
|
|
|
|
tj_date.value = date
|
|
|
|
DateChange(date)
|
|
|
|
doctor_name.value = null //清空体检医生
|
|
|
|
|
|
|
|
GetDayPlanListFunc();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//weekly子组件点击了时间
|
|
|
|
//weekly子组件点击了时间
|
|
|
|
let SelectedPlanId = ref(null)
|
|
|
|
let SelectedPlanId = ref(null)
|
|
|
|
@ -260,23 +257,26 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const MonthConfirm = (e) => { //月历确认日期
|
|
|
|
const MonthConfirm = (e) => { //月历确认日期
|
|
|
|
console.log(e.fulldate)
|
|
|
|
console.log(e.fulldate)
|
|
|
|
selectedDate.value=e.fulldate
|
|
|
|
|
|
|
|
selectedTime.value = null
|
|
|
|
if(doctor_name.value){
|
|
|
|
if (itemSelected.value.type == 'nmr') {
|
|
|
|
uni.showModal({
|
|
|
|
YuYueInfo.value.NmrInfo[itemSelected.value.index].time = null
|
|
|
|
title: '提示',
|
|
|
|
YuYueInfo.value.NmrInfo[itemSelected.value.index].date = e.fulldate
|
|
|
|
content: '已选择医生,切换日期将重新选择医生,是否继续',
|
|
|
|
|
|
|
|
cancelText:'取消',
|
|
|
|
tj_time.value = null //如果切换核磁日期则清空体检选择的日期时间
|
|
|
|
confirmText:'确定',
|
|
|
|
tj_date.value = null
|
|
|
|
success: function (res) {
|
|
|
|
doctor_name.value = null //清空体检医生
|
|
|
|
if (res.confirm) {
|
|
|
|
NMRGetDayPlanListFunc()
|
|
|
|
DateChange(e.fulldate)
|
|
|
|
}
|
|
|
|
} else if (res.cancel) {
|
|
|
|
if (itemSelected.value.type == 'tj') {
|
|
|
|
|
|
|
|
tj_time.value = null
|
|
|
|
}
|
|
|
|
tj_date.value = e.fulldate
|
|
|
|
}
|
|
|
|
doctor_name.value = null //清空体检医生
|
|
|
|
});
|
|
|
|
GetDayPlanListFunc()
|
|
|
|
}else{
|
|
|
|
|
|
|
|
DateChange(e.fulldate)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//获取体检每月号源数量
|
|
|
|
//获取体检每月号源数量
|
|
|
|
const GetMonthPlanListFunc = async (ym='') => {
|
|
|
|
const GetMonthPlanListFunc = async (ym='') => {
|
|
|
|
@ -367,6 +367,26 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//改变日期
|
|
|
|
|
|
|
|
const DateChange=(date)=>{
|
|
|
|
|
|
|
|
selectedDate.value=date
|
|
|
|
|
|
|
|
selectedTime.value = null
|
|
|
|
|
|
|
|
if (itemSelected.value.type == 'nmr') {
|
|
|
|
|
|
|
|
YuYueInfo.value.NmrInfo[itemSelected.value.index].time = null
|
|
|
|
|
|
|
|
YuYueInfo.value.NmrInfo[itemSelected.value.index].date = date
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tj_time.value = null //如果切换核磁日期则清空体检选择的日期时间
|
|
|
|
|
|
|
|
tj_date.value = null
|
|
|
|
|
|
|
|
doctor_name.value = null //清空体检医生
|
|
|
|
|
|
|
|
NMRGetDayPlanListFunc()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (itemSelected.value.type == 'tj') {
|
|
|
|
|
|
|
|
tj_time.value = null
|
|
|
|
|
|
|
|
tj_date.value = date
|
|
|
|
|
|
|
|
doctor_name.value = null //清空体检医生
|
|
|
|
|
|
|
|
GetDayPlanListFunc()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let temp = null
|
|
|
|
let temp = null
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
|