更新 修改 体检类型 如果是 6 不存储 体检类型

main
鹿和sa0ChunLuyu 1 year ago
parent 48088af219
commit a11eed7fac

@ -46,7 +46,7 @@
// } // }
// ]; // ];
// } else { // } else {
button_list.value = response.data.list; button_list.value = response.data.list;
// } // }
}); });
}; };
@ -74,10 +74,16 @@
const buttonClick = (info) => { const buttonClick = (info) => {
if (!!info.url) { if (!!info.url) {
if (info.id) { if (!!info.id) {
$store.setCheckupTypeId({ if (Number(info.id) !== 6) {
id: info.id $store.setCheckupTypeId({
}); id: info.id
});
} else {
$store.setCheckupTypeId({
id: ''
});
}
} }
$store.setComboContrast([]); // $store.setComboContrast([]); //
$store.setYytjInfo({}); $store.setYytjInfo({});

@ -33,9 +33,7 @@
const setDefaultInfo = () => { const setDefaultInfo = () => {
yytjInfo.value = $store.getYytjInfo(); yytjInfo.value = $store.getYytjInfo();
buyInfo.value = $store.getBuyInfo(); buyInfo.value = $store.getBuyInfo();
$store.setCheckupTypeId({ // $store.setCheckupTypeId({})
id: 1
})
yytjInfo.value = { yytjInfo.value = {
nmr_list: [], nmr_list: [],
doctor_date: "", doctor_date: "",
@ -56,16 +54,17 @@
getnmrList() getnmrList()
} }
const getUserInfo = async () => { const getUserInfo = async () => {
uni.showLoading({
title: "加载中",
});
const response = await $api('UserInfo') const response = await $api('UserInfo')
uni.hideLoading();
$response(response, () => { $response(response, () => {
$store.setUser(response.data.info); $store.setUser(response.data.info);
setDefaultInfo() setDefaultInfo()
}) })
} }
const mountedAction = async () => { const mountedAction = async () => {
uni.showLoading({
title: "加载中",
});
await getUserInfo() await getUserInfo()
}; };
@ -76,43 +75,23 @@
}); });
const getnmrList = async () => { const getnmrList = async () => {
const response = await $api("BuyInfo", buyInfo.value); let date = null
$response(response, () => { if (!!yytjInfo.value.doctor_date) {
uni.hideLoading(); date = yytjInfo.value.doctor_date
let date = null currentDate.value = yytjInfo.value.doctor_date
if (!!yytjInfo.value.doctor_date) { } else {
date = yytjInfo.value.doctor_date currentDate.value = getToday();
currentDate.value = yytjInfo.value.doctor_date yytjInfo.value.doctor_date = currentDate.value;
} else { }
currentDate.value = getToday(); moreTime(date, 1);
yytjInfo.value.doctor_date = currentDate.value;
}
moreTime(date, 1);
});
}; };
const moreTime = async (m, status) => { const moreTime = async (m, status) => {
uni.showLoading({
title: "加载中"
});
const [year, month, day] = currentDate.value.split("-"); const [year, month, day] = currentDate.value.split("-");
let dqmonth = m || `${year}-${month}`; // let dqmonth = m || `${year}-${month}`; //
let obj = {}; let obj = {};
let methods = ""; let methods = "";
obj = { calendarShow.value = true;
hospital: buyInfo.value.hospital,
person_id: buyInfo.value.person_id,
month: dqmonth, //
use_type: 1,
checkup_type_id: 1,
amount: 0,
};
const response = await $api("GetMonthPlanCount", obj);
$response(response, () => {
rl_list.value = [];
calendarShow.value = true;
uni.hideLoading();
});
}; };
const monthSwitch = (givenDate) => { const monthSwitch = (givenDate) => {

@ -392,6 +392,7 @@
uni.$lu.toast("该号源已被其他人预约"); uni.$lu.toast("该号源已被其他人预约");
return; return;
} }
let pick_day = 3
let active_item = yytjInfo.value.nmr_list[nmrIndex.value] let active_item = yytjInfo.value.nmr_list[nmrIndex.value]
if (active_item.item_id !== -1) { if (active_item.item_id !== -1) {
// //
@ -399,7 +400,6 @@
let doctor_time = new Date(yytjInfo.value.doctor_date) / 1 let doctor_time = new Date(yytjInfo.value.doctor_date) / 1
let choose_time = new Date(item.date) / 1 let choose_time = new Date(item.date) / 1
let day_check = '' let day_check = ''
let pick_day = 3
if (doctor_time > choose_time) { if (doctor_time > choose_time) {
day_check = `请选择${yytjInfo.value.doctor_date}之后${pick_day}天以内的日期` day_check = `请选择${yytjInfo.value.doctor_date}之后${pick_day}天以内的日期`
} else { } else {
@ -425,7 +425,6 @@
let heci_time = new Date(heci_item.time.split(' ')[0]) / 1 let heci_time = new Date(heci_item.time.split(' ')[0]) / 1
let choose_time = new Date(item.date) / 1 let choose_time = new Date(item.date) / 1
let day_check = '' let day_check = ''
let pick_day = 3
if (choose_time > heci_time) { if (choose_time > heci_time) {
day_check = `请选择${heci_item.time.split(' ')[0]}之前${pick_day}天以内的日期` day_check = `请选择${heci_item.time.split(' ')[0]}之前${pick_day}天以内的日期`
} else { } else {

Loading…
Cancel
Save