|
|
|
@ -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,9 +75,6 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const getnmrList = async () => {
|
|
|
|
const getnmrList = async () => {
|
|
|
|
const response = await $api("BuyInfo", buyInfo.value);
|
|
|
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
|
|
|
let date = null
|
|
|
|
let date = null
|
|
|
|
if (!!yytjInfo.value.doctor_date) {
|
|
|
|
if (!!yytjInfo.value.doctor_date) {
|
|
|
|
date = yytjInfo.value.doctor_date
|
|
|
|
date = yytjInfo.value.doctor_date
|
|
|
|
@ -88,31 +84,14 @@
|
|
|
|
yytjInfo.value.doctor_date = currentDate.value;
|
|
|
|
yytjInfo.value.doctor_date = currentDate.value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
moreTime(date, 1);
|
|
|
|
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 = {
|
|
|
|
|
|
|
|
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;
|
|
|
|
calendarShow.value = true;
|
|
|
|
uni.hideLoading();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const monthSwitch = (givenDate) => {
|
|
|
|
const monthSwitch = (givenDate) => {
|
|
|
|
|