This commit is contained in:
ChenQiuYu 2025-04-30 17:00:56 +08:00
parent 04cd8c22f0
commit 6c41701881
5 changed files with 163 additions and 141 deletions

View File

@ -2,7 +2,7 @@
<template> <template>
<el-input <el-input
ref="inputRef" ref="inputRef"
style="width: 100%;" style="width: 100%;height: 100%"
v-model="keyword" v-model="keyword"
:prefix-icon="Plus" :prefix-icon="Plus"
:placeholder="props.placeholder" :placeholder="props.placeholder"
@ -91,6 +91,7 @@ const emit = defineEmits(['selectedCallBack']);
const clickRow = (row: any) => { const clickRow = (row: any) => {
emit('selectedCallBack', row); emit('selectedCallBack', row);
popoverRef.value.hide(); popoverRef.value.hide();
keyword.value=""
}; };
const beforeShow = () => { const beforeShow = () => {
@ -113,5 +114,8 @@ const beforeShow = () => {
border: none !important; border: none !important;
box-shadow: none !important; box-shadow: none !important;
} }
&:hover{
border: 1px solid #409eff !important;
}
} }
</style> </style>

View File

@ -28,10 +28,13 @@
@selectedCallBack="serviceSelect" @selectedCallBack="serviceSelect"
:placeholder="'请输入项目名称'" :placeholder="'请输入项目名称'"
:disabled="disabled" :disabled="disabled"
style="height: 100%"
> >
</SearchInput> </SearchInput>
</div> </div>
<span style="margin-right: 24px">{{ list.reduce((acc, cur) => acc + cur.unitPrice*cur.selectedNum, 0) }}</span></div> <span style="margin-right: 24px">{{
list.reduce((acc, cur) => acc + cur.unitPrice * cur.selectedNum, 0)
}}</span></div>
</div> </div>
</Panel> </Panel>
</template> </template>
@ -41,14 +44,14 @@ import Panel from "@/components/common/Panel.vue";
import {CircleClose} from '@element-plus/icons-vue' import {CircleClose} from '@element-plus/icons-vue'
import SearchInput from "@/components/SearchInput.vue"; import SearchInput from "@/components/SearchInput.vue";
const props=defineProps({ const props = defineProps({
status: { status: {
type: Number, type: Number,
default: 0 default: 0
} }
}) })
const disabled = computed(() => { const disabled = computed(() => {
if(props.status === 1){ if (props.status === 1) {
return true return true
} }
}) })
@ -127,6 +130,14 @@ const deleteItem = (id: any) => {
text-align: center; text-align: center;
} }
.unit {
height: 100%;
width: 200px;
margin-left: 10px;
border-right: 1px solid #EAEAEC;
line-height: 64px;
}
.delete { .delete {
height: 100%; height: 100%;
width: 50px; width: 50px;

View File

@ -126,7 +126,7 @@ const close = () => {
<style scoped lang="scss"> <style scoped lang="scss">
.btn-wrapper { .btn-wrapper {
width: 200px; width: 150px;
height: 100%; height: 100%;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8px; border-radius: 8px;
@ -134,8 +134,8 @@ const close = () => {
width: 100%; width: 100%;
height: 46px; height: 46px;
border-bottom: 1px solid #EAEAEC; border-bottom: 1px solid #EAEAEC;
font-weight: 500; font-weight: 400;
font-size: 16px; font-size: 15px;
color: #4D6DE4; color: #4D6DE4;
font-style: normal; font-style: normal;
display: flex; display: flex;

View File

@ -102,7 +102,7 @@
> >
<el-table-column label="险种类型" prop="insutype"> <el-table-column label="险种类型" prop="insutype">
<template #default="scope"> <template #default="scope">
{{ getKey(insutypes,scope.row.insutype) }} {{ getKey(insutypes, scope.row.insutype) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="剩余余额" prop="balc"> <el-table-column label="剩余余额" prop="balc">
@ -118,7 +118,7 @@
<template #footer> <template #footer>
<div class="bottom"> <div class="bottom">
<el-dropdown v-if="isShowCard" placement="top-start" @show="showCardBtn" @hide="hide"> <el-dropdown v-if="isShowCard" placement="top-start" @show="showCardBtn" @hide="hide">
<div class="left"> <div class="left" style="outline: none;">
<span class="btnCard" type="primary"> <span class="btnCard" type="primary">
<img class="image" src="/public/static/images/registration/card.png" alt="" srcset="">进行读卡 <img class="image" src="/public/static/images/registration/card.png" alt="" srcset="">进行读卡
<img class="image1" :src="'/public/static/images/registration/'+(showBtn?2:1)+'.png'" alt="" srcset=""> <img class="image1" :src="'/public/static/images/registration/'+(showBtn?2:1)+'.png'" alt="" srcset="">
@ -129,7 +129,7 @@
@close="deleteCard"/> @close="deleteCard"/>
</template> </template>
</el-dropdown> </el-dropdown>
<div class="closeBtn" v-else @click="deleteCard"> <div class="closeBtn" v-else @click="deleteCard" style="outline: none;">
<img class="image" src="/public/static/images/registration/card.png" alt="" srcset=""> <img class="image" src="/public/static/images/registration/card.png" alt="" srcset="">
退出医保 退出医保
</div> </div>
@ -182,6 +182,7 @@ const rules = ref<any>({
], ],
age: [ age: [
{required: true, message: '请输入年龄', trigger: 'blur'}, {required: true, message: '请输入年龄', trigger: 'blur'},
{type: 'number', message: '年龄必须为数字值', trigger: 'blur'},
], ],
gender: [ gender: [
{required: true, message: '请选择性别', trigger: 'blur'}, {required: true, message: '请选择性别', trigger: 'blur'},
@ -322,8 +323,8 @@ defineExpose({init})
} }
.btnCard { .btnCard {
width: 200px; width: 150px;
height: 48px; height: 36px;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8px; border-radius: 8px;
border: 1px solid #4D6DE4; border: 1px solid #4D6DE4;
@ -331,20 +332,20 @@ defineExpose({init})
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-weight: 400; font-weight: 400;
font-size: 20px; font-size: 15px;
color: #4D6DE4; color: #4D6DE4;
font-style: normal; font-style: normal;
.image { .image {
width: 26px; width: 20px;
height: 22px; height: 17px;
margin-right: 10px; margin-right: 6px;
} }
.image1 { .image1 {
width: 16px; width: 12px;
height: 8px; height: 6px;
margin-left: 20px; margin-left: 16px;
} }
&:hover { &:hover {
@ -354,8 +355,8 @@ defineExpose({init})
} }
.closeBtn { .closeBtn {
width: 200px; width: 150px;
height: 48px; height: 36px;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8px; border-radius: 8px;
border: 1px solid #4D6DE4; border: 1px solid #4D6DE4;
@ -363,14 +364,14 @@ defineExpose({init})
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-weight: 400; font-weight: 400;
font-size: 20px; font-size: 15px;
color: #4D6DE4; color: #4D6DE4;
font-style: normal; font-style: normal;
.image { .image {
width: 26px; width: 20px;
height: 22px; height: 17px;
margin-right: 10px; margin-right: 6px;
} }
&:hover { &:hover {
@ -378,4 +379,10 @@ defineExpose({init})
border: 1px solid #4D6DE4; border: 1px solid #4D6DE4;
} }
} }
:deep(.el-dropdown) {
&:hover {
border: none;
}
}
</style> </style>

View File

@ -9,11 +9,11 @@
</div> </div>
<div class="left-bottom"> <div class="left-bottom">
<Panel title="医生列表"> <Panel title="医生列表">
<div class="search"> <div class="search" style="padding: 0 24px">
<el-input v-model="keyword" placeholder="搜索医生" <el-input v-model="keyword" placeholder="搜索医生"
@keydown.enter="initDoctor"></el-input> @keydown.enter="initDoctor"></el-input>
</div> </div>
<div class="content_list"> <div class="content_list" style="padding: 0 24px">
<div class="role_list"> <div class="role_list">
<ul> <ul>
<li v-for="(item, index) in roleList" :key="index" <li v-for="(item, index) in roleList" :key="index"