|
|
|
|
@ -100,6 +100,32 @@
|
|
|
|
|
let person_name = ref('')
|
|
|
|
|
let combo_name = ref('')
|
|
|
|
|
let combo_id=ref(null);
|
|
|
|
|
|
|
|
|
|
const getBuyInfoFuc = async () => {
|
|
|
|
|
// 获取购买信息
|
|
|
|
|
let obj = {
|
|
|
|
|
item_ids: buyInfo.value.item_ids,
|
|
|
|
|
combo_id: combo_id.value,
|
|
|
|
|
hospital: $store.save_info?.hospital?$store.save_info?.hospital:1,
|
|
|
|
|
person_id: person_id.value,
|
|
|
|
|
group_id: buyInfo.value.group_id,
|
|
|
|
|
duo_xuan_yi: $store.getDuoXuanYi(),
|
|
|
|
|
wj: buyInfo.value.wj,
|
|
|
|
|
sanfang_code:buyInfo.value.sanfang_code?.code_num?buyInfo.value.sanfang_code:null
|
|
|
|
|
};
|
|
|
|
|
const response = await $api("BuyInfo", obj);
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
if(combo_id.value){
|
|
|
|
|
combo_name.value=response.data.combo_info?.combo_name
|
|
|
|
|
}else{
|
|
|
|
|
combo_name.value = buyInfo.value.group_id ? $store.getGroupInfo()?.group_name : ''
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询体检号源
|
|
|
|
|
const GetDayPlanListFunc = async () => {
|
|
|
|
|
uni.showLoading();
|
|
|
|
|
@ -522,14 +548,20 @@
|
|
|
|
|
GetOrderInfo()
|
|
|
|
|
} else {
|
|
|
|
|
checkup_type_id.value = buyInfo.value.group_id ?
|
|
|
|
|
$store.getGroupInfo()?.checkup_type_id : $store.getCheckupTypeId()?.id,
|
|
|
|
|
hospital_id.value = buyInfo.value.hospital,
|
|
|
|
|
person_id.value = buyInfo.value.person_id,
|
|
|
|
|
combo_id.value=buyInfo.value.combo_id,
|
|
|
|
|
use_type.value = buyInfo.value.group_id ? 2 : 1,
|
|
|
|
|
person_name.value = buyInfo.value.group_id ? $store.getGroupInfo()?.name : '',
|
|
|
|
|
combo_name.value = buyInfo.value.group_id ? $store.getGroupInfo()?.group_name : '',
|
|
|
|
|
$store.getGroupInfo()?.checkup_type_id : $store.getCheckupTypeId()?.id
|
|
|
|
|
hospital_id.value = buyInfo.value.hospital
|
|
|
|
|
person_id.value = buyInfo.value.person_id
|
|
|
|
|
combo_id.value=buyInfo.value.combo_id
|
|
|
|
|
use_type.value = buyInfo.value.group_id ? 2 : 1
|
|
|
|
|
|
|
|
|
|
if(buyInfo.value.group_id){
|
|
|
|
|
person_name.value = $store.getGroupInfo()?.name
|
|
|
|
|
}else{
|
|
|
|
|
person_name.value = $store.getUser()?.name
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GetDayPlanListFunc()
|
|
|
|
|
getBuyInfoFuc()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|