This commit is contained in:
ChenQiuYu 2025-05-06 16:32:19 +08:00
parent fc3fe2e825
commit 215c69a5cb
3 changed files with 36 additions and 22 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<Panel :title="'病'"> <Panel :title="'病'">
<template #tools> <template #tools>
<div class="content"> <div class="content">
<div class="model-selector"> <div class="model-selector">

View File

@ -1,5 +1,5 @@
<template> <template>
<Panel :title="'病'"> <Panel :title="'病'">
<template #tools> <template #tools>
<div class="content"> <div class="content">
<div class="model-selector"> <div class="model-selector">

View File

@ -9,16 +9,24 @@
<el-popover <el-popover
placement="top-start" placement="top-start"
trigger="hover" trigger="hover"
width="200px" width="400"
@show="getHilistInfo(item)" @show="getHilistInfo(item)"
@hide="colosInfo" @hide="colosInfo"
> >
<template #reference> <template #reference>
{{ item.name }} {{ item.name }}
</template> </template>
<div class="detail">
<div style="display: flex;justify-content: space-between">
<div style="font-size: 18px;font-weight: 500;color: #000">{{ hilistInfo.name }}</div>
<div>{{ item.selectedPrice }}/{{ item.selectedUnit }}</div>
</div>
<div> <div>
{{item.hilistCode}}
<div>规格:{{hilistInfo.json?.dosage_specifications||'-'}}</div>
</div>
</div> </div>
</el-popover> </el-popover>
</div> </div>
@ -149,6 +157,7 @@ watch(()=>list.value, (newList) => {
<style scoped lang="scss"> <style scoped lang="scss">
@use "@/assets/scss/base"; @use "@/assets/scss/base";
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -156,6 +165,7 @@ watch(()=>list.value, (newList) => {
.list { .list {
flex: 1; flex: 1;
min-height: 0; min-height: 0;
.item { .item {
height: 30px; height: 30px;
border-top: 1px solid #EAEAEC; border-top: 1px solid #EAEAEC;
@ -197,12 +207,14 @@ watch(()=>list.value, (newList) => {
width: 180px; width: 180px;
margin-left: 10px; margin-left: 10px;
line-height: 30px; line-height: 30px;
.unit-content { .unit-content {
display: flex; display: flex;
align-items: center; align-items: center;
} }
} }
.sub-price { .sub-price {
height: 100%; height: 100%;
line-height: 30px; line-height: 30px;
@ -213,8 +225,10 @@ watch(()=>list.value, (newList) => {
width: 100px; width: 100px;
text-align: center; text-align: center;
line-height: 30px; line-height: 30px;
.delete-btn { .delete-btn {
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: base.$primary-color; color: base.$primary-color;
} }