药品类别下拉别表内容错误,药品类别应该取值如下图字典管理的药品分类编码
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
:class="{ 'error-border': scope.row.error }"
|
:class="{ 'error-border': scope.row.error }"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in distribution_category_code"
|
v-for="dict in med_category_code"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
@@ -184,7 +184,7 @@ import {
|
|||||||
deletePharmacyDepartment,
|
deletePharmacyDepartment,
|
||||||
} from './components/pharmacyDepartment';
|
} from './components/pharmacyDepartment';
|
||||||
const { proxy } = getCurrentInstance();
|
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';
|
import { nextTick } from 'vue';
|
||||||
|
|
||||||
const diagnosisTreatmentList = ref([]);
|
const diagnosisTreatmentList = ref([]);
|
||||||
|
|||||||
@@ -66,18 +66,9 @@ function getList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleSelectionChange(selection) {
|
function handleSelectionChange(selection) {
|
||||||
// 保存所有选中的行
|
// 直接更新选中行数据,不干涉表格UI状态
|
||||||
|
// 这样可以允许用户使用全选框功能
|
||||||
selectedRows.value = selection;
|
selectedRows.value = selection;
|
||||||
|
|
||||||
// 当用户通过点击行多选时,保持单选逻辑
|
|
||||||
// 但不阻止全选框的功能
|
|
||||||
if (selection.length > 1) {
|
|
||||||
// 注意:这里不再直接清除选择,而是通过下一次选择实现单选效果
|
|
||||||
// 这样全选框的功能就能正常工作了
|
|
||||||
console.log('选择了多行,系统将保持单选模式');
|
|
||||||
// 我们仍然可以处理选中的数据,比如只保留最后一行用于业务操作
|
|
||||||
// 但不修改表格的实际选中状态
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function clickRow(row) {
|
function clickRow(row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user