|
|
|
|
@ -100,6 +100,7 @@
|
|
|
|
|
let person_name = ref('')
|
|
|
|
|
let combo_name = ref('')
|
|
|
|
|
let combo_id=ref(null);
|
|
|
|
|
let item_ids=ref([]);
|
|
|
|
|
|
|
|
|
|
const getBuyInfoFuc = async () => {
|
|
|
|
|
// 获取购买信息
|
|
|
|
|
@ -136,7 +137,8 @@
|
|
|
|
|
use_type: use_type.value,
|
|
|
|
|
checkup_type_id: checkup_type_id.value,
|
|
|
|
|
amount: amount.value,
|
|
|
|
|
combo_id:combo_id.value
|
|
|
|
|
combo_id:combo_id.value,
|
|
|
|
|
item_ids:item_ids.value
|
|
|
|
|
}
|
|
|
|
|
const response = await $api("GetDayPlanList", data);
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
@ -166,6 +168,7 @@
|
|
|
|
|
NmrInfo: {}
|
|
|
|
|
})
|
|
|
|
|
const GetOrderInfo = async () => {
|
|
|
|
|
item_ids.value=[];
|
|
|
|
|
uni.showLoading();
|
|
|
|
|
const response = await $api("GetOrderDetail", {
|
|
|
|
|
id: OrderId.value
|
|
|
|
|
@ -176,8 +179,8 @@
|
|
|
|
|
doctor_name.value = orderInfo.value.doctor
|
|
|
|
|
|
|
|
|
|
itemSelected.value.type = 'tj'
|
|
|
|
|
selectedTime.value = orderInfo.value.appointment_time
|
|
|
|
|
selectedDate.value = orderInfo.value.appointment_date
|
|
|
|
|
// selectedTime.value = orderInfo.value.appointment_time
|
|
|
|
|
// selectedDate.value = orderInfo.value.appointment_date
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -194,6 +197,12 @@
|
|
|
|
|
person_name.value = orderInfo.value.name
|
|
|
|
|
combo_name.value = orderInfo.value.title
|
|
|
|
|
combo_id.value=orderInfo.value.combo_id
|
|
|
|
|
if(orderInfo.value.buy_info?.items){
|
|
|
|
|
orderInfo.value.buy_info.items.forEach((v,i)=>{
|
|
|
|
|
item_ids.value.push(v.id)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetDayPlanListFunc()
|
|
|
|
|
});
|
|
|
|
|
@ -541,8 +550,10 @@
|
|
|
|
|
//清空一下缓存的医生,防止出问题
|
|
|
|
|
temp = $store.getYytjInfo()
|
|
|
|
|
temp.doctor_name = ""
|
|
|
|
|
temp.doctor_date = ""
|
|
|
|
|
$store.setYytjInfo(temp)
|
|
|
|
|
selectedDate.value = GetToday()
|
|
|
|
|
console.log(selectedDate.value)
|
|
|
|
|
tj_date.value = GetToday()
|
|
|
|
|
if (OrderId.value) {
|
|
|
|
|
GetOrderInfo()
|
|
|
|
|
@ -575,7 +586,13 @@
|
|
|
|
|
if (temp.doctor_name != null && temp.doctor_name != '') {
|
|
|
|
|
doctor_name.value = temp.doctor_name
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (temp.doctor_date != null && temp.doctor_date != '') {
|
|
|
|
|
|
|
|
|
|
selectedDate.value = temp.doctor_date
|
|
|
|
|
GetDayPlanListFunc()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
const GetToday = () => {
|
|
|
|
|
const date = new Date();
|
|
|
|
|
|