|
|
|
@ -18,6 +18,8 @@ let personId = ref(""); // 患者id
|
|
|
|
let groupId = ref(""); // 团检id
|
|
|
|
let groupId = ref(""); // 团检id
|
|
|
|
let tabIndex = ref(0); // 标签索引
|
|
|
|
let tabIndex = ref(0); // 标签索引
|
|
|
|
let totalPrice = ref(0); // 总折扣价格
|
|
|
|
let totalPrice = ref(0); // 总折扣价格
|
|
|
|
|
|
|
|
let patientInfo = ref({}); // 就诊人信息 (包括套餐)
|
|
|
|
|
|
|
|
let groupInfo = ref({}); // 团检信息
|
|
|
|
|
|
|
|
|
|
|
|
const $props = defineProps({
|
|
|
|
const $props = defineProps({
|
|
|
|
comboId: {
|
|
|
|
comboId: {
|
|
|
|
@ -36,7 +38,7 @@ const $props = defineProps({
|
|
|
|
|
|
|
|
|
|
|
|
const mountedAction = async () => {
|
|
|
|
const mountedAction = async () => {
|
|
|
|
selectIds.value = $props.itemIds?.split(",") || [];
|
|
|
|
selectIds.value = $props.itemIds?.split(",") || [];
|
|
|
|
|
|
|
|
console.log($store.user);
|
|
|
|
comboId.value = $props.comboId || "";
|
|
|
|
comboId.value = $props.comboId || "";
|
|
|
|
personId.value = $props.personId || "";
|
|
|
|
personId.value = $props.personId || "";
|
|
|
|
groupId.value = $props.groupId || "";
|
|
|
|
groupId.value = $props.groupId || "";
|
|
|
|
@ -57,10 +59,14 @@ const getBuyInfo = async () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = await $api("BuyInfo", obj);
|
|
|
|
const response = await $api("BuyInfo", obj);
|
|
|
|
$response(response, () => {
|
|
|
|
$response(response, () => {
|
|
|
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
|
|
|
if (groupId.value) {
|
|
|
|
|
|
|
|
groupInfo.value = response.data.group_info[0];
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
comboInfo.value = response.data.combo_info;
|
|
|
|
comboInfo.value = response.data.combo_info;
|
|
|
|
itemsInfo.value = response.data.items_info;
|
|
|
|
itemsInfo.value = response.data.items_info;
|
|
|
|
totalPrice.value = response.data.true_price;
|
|
|
|
totalPrice.value = response.data.true_price;
|
|
|
|
uni.hideLoading();
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
@ -127,7 +133,7 @@ onShow(() => {
|
|
|
|
"
|
|
|
|
"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view>
|
|
|
|
<view v-if="comboInfo.tags2.length">
|
|
|
|
<text
|
|
|
|
<text
|
|
|
|
v-for="(val, i) in comboInfo.tags2"
|
|
|
|
v-for="(val, i) in comboInfo.tags2"
|
|
|
|
:key="i"
|
|
|
|
:key="i"
|
|
|
|
@ -163,13 +169,34 @@ onShow(() => {
|
|
|
|
<text class="text-#0E0E0E">{{ comboInfo.hospital_name }}</text>
|
|
|
|
<text class="text-#0E0E0E">{{ comboInfo.hospital_name }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view v-else class="px-15rpx pt-10rpx">
|
|
|
|
|
|
|
|
<view class="flex items-center">
|
|
|
|
|
|
|
|
<image src="@/static/assets/userm.png" class="w-70rpx h-70rpx mr-35rpx" />
|
|
|
|
|
|
|
|
<view class="flex items-center grow">
|
|
|
|
|
|
|
|
<text class="text-#707070 text-24rpx">您好,</text>
|
|
|
|
|
|
|
|
<text class="text-#0E0E0E text-32rpx">{{groupInfo.name}}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view v-if="groupId" class="text-24rpx mt-40rpx">
|
|
|
|
|
|
|
|
<view class="pb-30rpx">
|
|
|
|
|
|
|
|
<text class="text-#8B8B8B">单位名称:</text>
|
|
|
|
|
|
|
|
<text>{{ groupInfo.group_name }}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="pb-30rpx">
|
|
|
|
|
|
|
|
<text class="text-#8B8B8B">部门名称:</text>
|
|
|
|
|
|
|
|
<text>{{ groupInfo.group_name }}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view v-if="groupInfo.combo_name">
|
|
|
|
|
|
|
|
<text class="text-#8B8B8B">套餐名称:</text>
|
|
|
|
|
|
|
|
<text>{{ groupInfo.combo_name }}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="pb-300rpx">
|
|
|
|
<view class="pb-300rpx">
|
|
|
|
<view
|
|
|
|
<view class="flex items-center justify-around px-30rpx mt-30rpx">
|
|
|
|
class="flex items-center justify-around px-30rpx mt-30rpx"
|
|
|
|
|
|
|
|
v-if="comboId"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<text
|
|
|
|
<text
|
|
|
|
|
|
|
|
v-if="comboId || groupId"
|
|
|
|
@click="tabIndex = 0"
|
|
|
|
@click="tabIndex = 0"
|
|
|
|
:class="tabIndex == 0 ? 'active' : ''"
|
|
|
|
:class="tabIndex == 0 ? 'active' : ''"
|
|
|
|
class="text-30rpx text-#2E2E2E"
|
|
|
|
class="text-30rpx text-#2E2E2E"
|
|
|
|
@ -187,7 +214,7 @@ onShow(() => {
|
|
|
|
class="mt-20rpx bg-#fff py-40rpx px-14rpx box-border flex-col flex"
|
|
|
|
class="mt-20rpx bg-#fff py-40rpx px-14rpx box-border flex-col flex"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<!-- 套餐内容 -->
|
|
|
|
<!-- 套餐内容 -->
|
|
|
|
<view v-if="comboId" class="mb-20rpx">
|
|
|
|
<view v-if="comboInfo.items?.length" class="mb-20rpx">
|
|
|
|
<!-- 套餐 -->
|
|
|
|
<!-- 套餐 -->
|
|
|
|
<view class="text-#2E2E2E text-30rpx center mb-20rpx"
|
|
|
|
<view class="text-#2E2E2E text-30rpx center mb-20rpx"
|
|
|
|
>套餐项目({{ comboInfo.items?.length }}项)</view
|
|
|
|
>套餐项目({{ comboInfo.items?.length }}项)</view
|
|
|
|
|