This commit is contained in:
ChenQiuYu 2025-05-29 10:50:07 +08:00
parent cdfa72ef41
commit 480a84c6cc
1 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@
<div class="panel-content" style="padding: 0 24px 24px">
<el-table v-if="itemDetail.length>0" :data="itemDetail" max-height="300"
:header-cell-style="{ backgroundColor: '#F5FAFF' }">
<el-table-column prop="itemName" label="项目名称" show-overflow-tooltip width="400">
<el-table-column prop="name" label="项目名称" show-overflow-tooltip width="400">
<template #default="scope">
<el-popover
width="485"
@ -11,19 +11,19 @@
@hide="hide"
>
<template #reference>
{{ scope.row.itemName }}
{{ scope.row.name }}
</template>
<div class="detail">
<div style="display: flex;justify-content: space-between">
<div style="font-size: 18px;font-weight: 500;color: #000">{{
itemInfo.name
}}[{{ chrgitm_lv[itemInfo.chrgitmLv as keyof typeof chrgitm_lv || '-'] || '-' }}]
itemInfo.name||scope.row.name
}}[{{ chrgitm_lv[itemInfo.chrgitmLv as keyof typeof chrgitm_lv || ''] || '' }}]
</div>
<div>{{ scope.row.unitPrice }}/{{ scope.row.unit }}</div>
</div>
<div style="display: flex;justify-content: space-between">
<div>限制条件:{{ itemInfo.lmtUsedFlag == 0 ? '否' : itemInfo.lmtUsedFlag == 1 ? '是' : '-' }}</div>
<div> 医保码:{{ scope.row.itemSocialCode || '-' }}</div>
<div>限制条件:{{ itemInfo.lmtUsedFlag == 0 ? '否' : itemInfo.lmtUsedFlag == 1 ? '是' : '' }}</div>
<div> 医保码:{{ scope.row.socialCode || '' }}</div>
</div>
</div>
</el-popover>
@ -102,7 +102,7 @@ const serviceSearchApi = API.Item.Base.Search;
const serviceShowConfig = [
{
label: "服务名称",
prop: "itemName",
prop: "name",
},
{
label: "单位",
@ -159,8 +159,9 @@ const focus = (e: any) => {
const popoverRef = ref<any>(null);
const itemInfo = ref<any>({});
const show = (item: any) => {
if (!item.itemSocialCode) return
post(API.Social.Directory.GetItemByCode, {code: item.itemSocialCode}).then((res: any) => {
if (!item.socialCode) return
post(API.Social.Directory.GetItemByCode, {code: item.socialCode}).then((res: any) => {
if (res == null) return
itemInfo.value = res
})
}