main
yanzai 10 months ago
parent 20c4c2cf3d
commit 300122f4d9

@ -1,6 +1,6 @@
<template> <template>
<view> <view>
<view class="header_wrapper" v-if="info"> <view class="header_wrapper11" v-if="info">
<view v-if="1" class="hospital_wrapper"> <view v-if="1" class="hospital_wrapper">
<view class="hospital_icon_wrapper"> <view class="hospital_icon_wrapper">
<image src="@/static/assets/dingwei@2x.png"></image> <image src="@/static/assets/dingwei@2x.png"></image>
@ -152,11 +152,11 @@
justify-content: center; justify-content: center;
} }
.header_wrapper { .header_wrapper11 {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 680rpx;
height: 90rpx; height: 90rpx;
background: #d8edf2; background: #d8edf2;
margin: 0 auto; margin: 0 auto;

@ -113,7 +113,7 @@
<view class="button_icon_wrapper"> <view class="button_icon_wrapper">
<image :src="$image(i.logo)"></image> <image :src="$image(i.logo)"></image>
</view> </view>
<view :class="['button_name_wrapper',{'active':i.id==1}]">{{ i.name }}</view> <view :class="['button_name_wrapper',{'active':i.id==99}]">{{ i.name }}</view>
<view class="button_right_wrapper"> <view class="button_right_wrapper">
<uni-icons type="right" size="20"></uni-icons> <uni-icons type="right" size="20"></uni-icons>
</view> </view>

@ -24,9 +24,15 @@
import { import {
useStore useStore
} from "@/store"; } from "@/store";
const $store = useStore(); const $store = useStore();
const $props = defineProps({ const $props = defineProps({
tabs: {
type: String,
default: "",
},
groupId: { groupId: {
type: String, type: String,
default: "", default: "",
@ -320,6 +326,9 @@
if (!!config_ref.value) { if (!!config_ref.value) {
checkHospital(); checkHospital();
} }
if($props.tabs==1){
tabsClickFunc(1)
}
}); });
let keshi_name = ref(null); let keshi_name = ref(null);
onLoad((e) => { onLoad((e) => {
@ -433,7 +442,7 @@
tabs_active_id.value=value tabs_active_id.value=value
if(value==2){ if(value==2){
uni.navigateTo({ uni.navigateTo({
url: "/pages/main/tj/tjzx?" + "comboId=" + "&itemIds=" url: "/pages/main/tj/tjzx?" + "comboId=" + "&itemIds="+"&type=zx"
}); });
} }
if(value==1){ if(value==1){
@ -462,7 +471,7 @@
</uni-badge> </uni-badge>
<text class="text-22rpx text-#fff -mt-5rpx">对比</text> <text class="text-22rpx text-#fff -mt-5rpx">对比</text>
</view> </view>
<Top></Top>
<!-- <view v-if="!!combo_list.hospital.id" class="hospital_wrapper"> <!-- <view v-if="!!combo_list.hospital.id" class="hospital_wrapper">
<view class="hospital_icon_wrapper"> <view class="hospital_icon_wrapper">
<image src="@/static/assets/dingwei@2x.png"></image> <image src="@/static/assets/dingwei@2x.png"></image>
@ -478,7 +487,7 @@
</view> </view>
</view> --> </view> -->
</view> </view>
<Top></Top>
<view class="bg-#d8edf2" style="margin-top: -10rpx;"> <view class="bg-#d8edf2" style="margin-top: -10rpx;">
<uni-search-bar class="search" radius="100" placeholder="请输入关键字搜索" @clear="getComboList()" <uni-search-bar class="search" radius="100" placeholder="请输入关键字搜索" @clear="getComboList()"
@cancel="getComboList()" @confirm="getComboList" /> @cancel="getComboList()" @confirm="getComboList" />
@ -1064,19 +1073,7 @@
} }
.header_wrapper { .header_wrapper {
display: flex;
align-items: center;
justify-content: space-between;
width: 710rpx;
height: 90rpx;
background: #d8edf2;
margin: 0 auto;
position: relative;
background-color: #fff;
margin-left: 20rpx;
margin-right: 20rpx;
border-radius: 20rpx;
} }
.hospital_wrapper { .hospital_wrapper {

@ -71,6 +71,7 @@
let tj_date = ref(null); let tj_date = ref(null);
let tj_time = ref(null); let tj_time = ref(null);
let tj_plan_id = ref(null); //id let tj_plan_id = ref(null); //id
let yytjInfo = ref({}); //
let weekList = ref(null); let weekList = ref(null);
@ -136,7 +137,14 @@
itemSelected.value.type = 'tj' itemSelected.value.type = 'tj'
selectedTime.value = orderInfo.value.appointment_time selectedTime.value = orderInfo.value.appointment_time
selectedDate.value = orderInfo.value.appointment_date selectedDate.value = orderInfo.value.appointment_date
yytjInfo.value.nmr_list=[]
yytjInfo.value.nmr_list.push({
item_id: -1,
name: "体检时间",
time:selectedDate.value+' '+selectedTime.value,
id: orderInfo.value.plan_id,
});
$store.setYytjInfo(yytjInfo.value);
GetDayPlanListFunc() GetDayPlanListFunc()
//} //}
@ -379,7 +387,11 @@ const DateChange=(date)=>{
if (itemSelected.value.type == 'tj') { if (itemSelected.value.type == 'tj') {
tj_time.value = null tj_time.value = null
tj_date.value = date tj_date.value = date
temp = $store.getYytjInfo()
if(date!=temp.doctor_date){
doctor_name.value = null // doctor_name.value = null //
}
GetDayPlanListFunc() GetDayPlanListFunc()
} }
} }
@ -390,7 +402,7 @@ const DateChange=(date)=>{
temp = $store.getYytjInfo() temp = $store.getYytjInfo()
temp.doctor_name = "" temp.doctor_name = ""
$store.setYytjInfo(temp) $store.setYytjInfo(temp)
yytjInfo.value = $store.getYytjInfo();
GetOrderInfo() GetOrderInfo()
}); });
let OrderId=ref(0) let OrderId=ref(0)
@ -403,6 +415,16 @@ const DateChange=(date)=>{
if (temp.doctor_name != null && temp.doctor_name != '') { if (temp.doctor_name != null && temp.doctor_name != '') {
doctor_name.value = temp.doctor_name doctor_name.value = temp.doctor_name
} }
if(temp.nmr_list && temp.nmr_list[0].name=='体检时间' && temp.nmr_list[0].time==''){
tj_time.value = null
tj_date.value = null
tj_plan_id.value=null
}
if(temp.doctor_date){
selectedTime.value = null
DateChange(temp.doctor_date)
}
}) })
</script> </script>

@ -1,5 +1,6 @@
<script setup> <script setup>
import DraggableButton from "@/pages/components/goHome.vue"; import DraggableButton from "@/pages/components/goHome.vue";
import Top from "../../../common/Top.vue";
/** /**
* name * name
* usersa0ChunLuyu * usersa0ChunLuyu
@ -23,6 +24,10 @@
// comboId ID ID // comboId ID ID
// itemIds ID // itemIds ID
const $props = defineProps({ const $props = defineProps({
type: {
type: String,
default: "",
},
comboId: { comboId: {
type: String, type: String,
default: "", default: "",
@ -335,6 +340,18 @@
await getBuyInfo() await getBuyInfo()
popupItemList.value.close() popupItemList.value.close()
} }
const tabsClickFunc=(value)=>{
if(value==0){
uni.navigateTo({
url: "/pages/main/combo/combo"
});
}
if(value==1){
uni.navigateTo({
url: "/pages/main/combo/combo?tabs=1"
});
}
}
onShow(() => { onShow(() => {
if (!!config_ref.value) { if (!!config_ref.value) {
mountedAction(); mountedAction();
@ -468,11 +485,18 @@
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
<view class="tjzx_main">
<Top v-if="$props.type=='zx'" ></Top>
<view class="bg-#d8edf2"> <view class="bg-#d8edf2">
<uni-search-bar class="search" radius="100" placeholder="请输入关键字搜索" @clear="getAllItems()" <uni-search-bar class="search" radius="100" placeholder="请输入关键字搜索" @clear="getAllItems()"
@cancel="getAllItems()" @confirm="getAllItems" /> @cancel="getAllItems()" @confirm="getAllItems" />
</view> </view>
<view class="mt-20rpx flex min-h-100%" style="background-color: #eef7f7;"> <view class="top_button_row" v-if="$props.type=='zx'">
<view @click="tabsClickFunc(0)" class="top_button">选择套餐</view>
<view @click="tabsClickFunc(1)" class="top_button">专家定制</view>
<view @click="tabsClickFunc(2)" class="top_button top_button_active">项目自选</view>
</view>
<view class="mt-0rpx flex min-h-100%" style="background-color: #eef7f7;">
<view class="min-w-214rpx max-w-214rpx mr-20rpx min-h-100% text-center"> <view class="min-w-214rpx max-w-214rpx mr-20rpx min-h-100% text-center">
<view class="w-100% rounded-r-full text-#0E0E0E text-25rpx px-20rpx w-100% center h-84rpx box-border" <view class="w-100% rounded-r-full text-#0E0E0E text-25rpx px-20rpx w-100% center h-84rpx box-border"
v-for="(item, index) in leftList" :key="index" :class="{ v-for="(item, index) in leftList" :key="index" :class="{
@ -544,13 +568,46 @@
确认项目 确认项目
</view> </view>
</view> </view>
</view>
</template> </template>
<style> <style>
.uni-tooltip-popup { .uni-tooltip-popup {
background-color: #fff; background-color: #fff;
} }
</style> </style>
<style> <style scoped>
.search{
margin-top: -10rpx;
}
.tjzx_main{
padding-top: 20rpx;
background-color: #D8EEF3;
}
.top_button_row {
display: flex;
justify-content: space-between;
padding-left: 20rpx;
padding-right: 20rpx;
}
.top_button {
color: #666;
background-color: #fff;
padding: 6rpx 40rpx;
border-radius: 15rpx;
margin-top: -6rpx;
margin-bottom: 8rpx;
font-size: 28rpx;
width: 140rpx;
text-align: center;
}
.top_button_active {
background-color: #009ea7;
color: #fff;
}
.button { .button {
color: #00828e; color: #00828e;
background-color: #fff; background-color: #fff;

Loading…
Cancel
Save