药品类别下拉别表内容错误,药品类别应该取值如下图字典管理的药品分类编码

This commit is contained in:
叶锦涛
2025-10-31 16:35:47 +08:00
committed by wzk
parent 88aa1517ef
commit 3f919188d2
2 changed files with 4 additions and 13 deletions

View File

@@ -82,7 +82,7 @@
:class="{ 'error-border': scope.row.error }"
>
<el-option
v-for="dict in distribution_category_code"
v-for="dict in med_category_code"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@@ -184,7 +184,7 @@ import {
deletePharmacyDepartment,
} from './components/pharmacyDepartment';
const { proxy } = getCurrentInstance();
const { distribution_category_code } = proxy.useDict('distribution_category_code');
const { med_category_code } = proxy.useDict('med_category_code');
import { nextTick } from 'vue';
const diagnosisTreatmentList = ref([]);

View File

@@ -66,18 +66,9 @@ function getList() {
}
function handleSelectionChange(selection) {
// 保存所有选中的行
// 直接更新选中行数据不干涉表格UI状态
// 这样可以允许用户使用全选框功能
selectedRows.value = selection;
// 当用户通过点击行多选时,保持单选逻辑
// 但不阻止全选框的功能
if (selection.length > 1) {
// 注意:这里不再直接清除选择,而是通过下一次选择实现单选效果
// 这样全选框的功能就能正常工作了
console.log('选择了多行,系统将保持单选模式');
// 我们仍然可以处理选中的数据,比如只保留最后一行用于业务操作
// 但不修改表格的实际选中状态
}
}
function clickRow(row) {