|
|
|
@ -32,7 +32,8 @@ const mountedAction = async () => {
|
|
|
|
uni.showLoading({
|
|
|
|
uni.showLoading({
|
|
|
|
title: "加载中",
|
|
|
|
title: "加载中",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
await init(); //
|
|
|
|
console.log($store.getYytjInfo(), "swsw");
|
|
|
|
|
|
|
|
console.log($store.getBuyInfo(), "tyuiopiuytr");
|
|
|
|
yytjInfo.value = $store.getYytjInfo();
|
|
|
|
yytjInfo.value = $store.getYytjInfo();
|
|
|
|
buyInfo.value = $store.getBuyInfo();
|
|
|
|
buyInfo.value = $store.getBuyInfo();
|
|
|
|
await getnmrList();
|
|
|
|
await getnmrList();
|
|
|
|
@ -44,8 +45,6 @@ onBeforeUnmount(() => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const init = async () => {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getnmrList = async () => {
|
|
|
|
const getnmrList = async () => {
|
|
|
|
const response = await $api("BuyInfo", buyInfo.value);
|
|
|
|
const response = await $api("BuyInfo", buyInfo.value);
|
|
|
|
$response(response, () => {
|
|
|
|
$response(response, () => {
|
|
|
|
@ -57,6 +56,7 @@ const getnmrList = async () => {
|
|
|
|
itemsInfo.value = response.data.items_info;
|
|
|
|
itemsInfo.value = response.data.items_info;
|
|
|
|
truePrice.value = response.data.true_price;
|
|
|
|
truePrice.value = response.data.true_price;
|
|
|
|
currentDate.value = getToday(); //huo获取今天的日期
|
|
|
|
currentDate.value = getToday(); //huo获取今天的日期
|
|
|
|
|
|
|
|
|
|
|
|
if (!yytjInfo.value?.nmr_list?.length) {
|
|
|
|
if (!yytjInfo.value?.nmr_list?.length) {
|
|
|
|
yytjInfo.value.nmr_list = response.data.nmr_list.map((val) => {
|
|
|
|
yytjInfo.value.nmr_list = response.data.nmr_list.map((val) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
@ -101,7 +101,7 @@ const getTjTimeList = async (val) => {
|
|
|
|
use_type: buyInfo.value.group_id ? 2 : 1,
|
|
|
|
use_type: buyInfo.value.group_id ? 2 : 1,
|
|
|
|
checkup_type_id: buyInfo.value.group_id
|
|
|
|
checkup_type_id: buyInfo.value.group_id
|
|
|
|
? $store.getGroupInfo()?.checkup_type_id
|
|
|
|
? $store.getGroupInfo()?.checkup_type_id
|
|
|
|
: $store.getCheckupTypeId().id,
|
|
|
|
: $store.getCheckupTypeId()?.id,
|
|
|
|
amount: truePrice.value,
|
|
|
|
amount: truePrice.value,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
apiText = "GetDayPlanList";
|
|
|
|
apiText = "GetDayPlanList";
|
|
|
|
@ -123,11 +123,11 @@ const getTjTimeList = async (val) => {
|
|
|
|
time_list.value.forEach((item) => {
|
|
|
|
time_list.value.forEach((item) => {
|
|
|
|
console.log(item.date);
|
|
|
|
console.log(item.date);
|
|
|
|
item.newTime = item.time.slice(0, 5);
|
|
|
|
item.newTime = item.time.slice(0, 5);
|
|
|
|
item.date = currentDate.value;
|
|
|
|
item.date = currentDate.value;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
date_list.value.forEach((item) => {
|
|
|
|
date_list.value.forEach((item) => {
|
|
|
|
console.log(item)
|
|
|
|
console.log(item);
|
|
|
|
item.item_id = val.item_id;
|
|
|
|
item.item_id = val.item_id;
|
|
|
|
const [year, month, day] = item.date.split("-");
|
|
|
|
const [year, month, day] = item.date.split("-");
|
|
|
|
item.newMonthDate = `${month}/${day}`; //月份日期
|
|
|
|
item.newMonthDate = `${month}/${day}`; //月份日期
|
|
|
|
item.newWeek = item.xingqi.replace("星期", "周");
|
|
|
|
item.newWeek = item.xingqi.replace("星期", "周");
|
|
|
|
@ -183,6 +183,8 @@ const xmmcClick = (val, index) => {
|
|
|
|
timeIndex.value = null;
|
|
|
|
timeIndex.value = null;
|
|
|
|
if (val.time) {
|
|
|
|
if (val.time) {
|
|
|
|
currentDate.value = val.time.split(" ")[0];
|
|
|
|
currentDate.value = val.time.split(" ")[0];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
currentDate.value = getToday();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 体检号源
|
|
|
|
// 体检号源
|
|
|
|
getTjTimeList(val);
|
|
|
|
getTjTimeList(val);
|
|
|
|
|