Fix Bug #508: [住院护士站-住院记账-补费] 点击"划价组套"按钮无任何响应,无法选择组套项目
修复三个问题: 1. 后端DTO字段名为Name(大写)而前端模板引用name(小写),导致组套名称显示为空,使用name || Name兼容 2. 后端未返回rangeCode_dictText字段,新增getRangeText()函数根据当前选中范围标签动态显示 3. 前端向/group-package-for-order接口发送searchKey参数但后端不支持,移除该多余参数
This commit is contained in:
@@ -280,8 +280,16 @@
|
|||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" label="序号" width="60" align="center" />
|
<el-table-column type="index" label="序号" width="60" align="center" />
|
||||||
<el-table-column label="组套名称" prop="name" min-width="180" show-overflow-tooltip />
|
<el-table-column label="组套名称" min-width="180" show-overflow-tooltip>
|
||||||
<el-table-column label="使用范围" prop="rangeCode_dictText" width="100" align="center" />
|
<template #default="scope">
|
||||||
|
{{ scope.row.name || scope.row.Name || '' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="使用范围" width="100" align="center">
|
||||||
|
<template #default="scope">
|
||||||
|
{{ getRangeText(scope.row) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="明细数量" width="100" align="center">
|
<el-table-column label="明细数量" width="100" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{ scope.row.detailList?.length || 0 }} 项
|
{{ scope.row.detailList?.length || 0 }} 项
|
||||||
@@ -763,7 +771,7 @@ function openGroupSetDialog() {
|
|||||||
|
|
||||||
function loadGroupSets() {
|
function loadGroupSets() {
|
||||||
groupSetLoading.value = true;
|
groupSetLoading.value = true;
|
||||||
getOrderGroup({ organizationId: orgId.value, searchKey: groupSetSearchText.value })
|
getOrderGroup({ organizationId: orgId.value })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res?.data || {};
|
const data = res?.data || {};
|
||||||
if (groupSetRange.value === 1) {
|
if (groupSetRange.value === 1) {
|
||||||
@@ -783,6 +791,13 @@ function loadGroupSets() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getRangeText(row) {
|
||||||
|
// 后端未返回rangeCode,根据当前选中的范围标签显示
|
||||||
|
const rangeMap = { 1: '个人', 2: '科室', 3: '全院' };
|
||||||
|
if (row.rangeCode_dictText) return row.rangeCode_dictText;
|
||||||
|
return rangeMap[groupSetRange.value] || '';
|
||||||
|
}
|
||||||
|
|
||||||
function handleGroupSetSelect(row) {
|
function handleGroupSetSelect(row) {
|
||||||
selectedGroupSet.value = row;
|
selectedGroupSet.value = row;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user