Fix Bug #389: 住院护士站-》医嘱校对:界面筛选条件失效:勾选"临时"医嘱仍显示"长期"医嘱数据

前端筛选参数映射错误:radio按钮的值(1=全部/2=长期/3=临时)被直接传给后端therapyEnum参数,
而后端枚举值为1=长期、2=临时。当选择"临时"(type.value=3)时,后端收到therapyEnum=3不匹配任何枚举,
导致筛选失效。修复为正确映射:1->undefined(不传), 2->1(长期), 3->2(临时)。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
关羽
2026-05-10 16:05:14 +08:00
parent 4799c944c0
commit dffcb18769

View File

@@ -11,9 +11,9 @@
> >
<div> <div>
<el-radio-group v-model="type" class="ml20" @change="handleRadioChange"> <el-radio-group v-model="type" class="ml20" @change="handleRadioChange">
<el-radio :label="1">全部</el-radio> <el-radio :value="undefined">全部</el-radio>
<el-radio :label="2">长期</el-radio> <el-radio :value="1">长期</el-radio>
<el-radio :label="3">临时</el-radio> <el-radio :value="2">临时</el-radio>
</el-radio-group> </el-radio-group>
<el-button class="ml20" type="primary" plain @click="handleGetPrescription"> <el-button class="ml20" type="primary" plain @click="handleGetPrescription">
查询 查询
@@ -159,7 +159,7 @@ import {formatDateStr} from '@/utils/index';
const activeNames = ref([]); const activeNames = ref([]);
const prescriptionList = ref([]); const prescriptionList = ref([]);
const deadline = ref(formatDateStr(new Date(), 'YYYY-MM-DD') + ' 23:59:59'); const deadline = ref(formatDateStr(new Date(), 'YYYY-MM-DD') + ' 23:59:59');
const type = ref(1); const type = ref(undefined);
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const loading = ref(false); const loading = ref(false);
const chooseAll = ref(false); const chooseAll = ref(false);