检验项目设置-检验类型的实现
This commit is contained in:
@@ -79,6 +79,7 @@
|
||||
clearable
|
||||
filterable
|
||||
:disabled="form.isEditInfoDisable === 1"
|
||||
no-data-text=""
|
||||
>
|
||||
<el-option
|
||||
v-for="category in activity_category_code"
|
||||
@@ -91,7 +92,7 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="业务类型" prop="typeEnum">
|
||||
<el-select v-model="form.typeEnum" placeholder="" clearable filterable>
|
||||
<el-select v-model="form.typeEnum" placeholder="" clearable filterable no-data-text="">
|
||||
<el-option
|
||||
v-for="item in typeEnumOptions"
|
||||
:key="item.value"
|
||||
@@ -130,6 +131,7 @@
|
||||
filterable
|
||||
style="width: 240px"
|
||||
:disabled="form.isEditInfoDisable === 1 || form.isEditInfoDisable === 2"
|
||||
no-data-text=""
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in med_chrgitm_type"
|
||||
@@ -161,7 +163,7 @@
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="所需标本" prop="specimenCode">
|
||||
<el-select v-model="form.specimenCode" clearable filterable>
|
||||
<el-select v-model="form.specimenCode" clearable filterable no-data-text="">
|
||||
<el-option
|
||||
v-for="category in specimen_code"
|
||||
:key="category.value"
|
||||
@@ -181,6 +183,7 @@
|
||||
clearable
|
||||
filterable
|
||||
:disabled="form.isEditInfoDisable === 1"
|
||||
no-data-text=""
|
||||
>
|
||||
<el-option
|
||||
v-for="item in chrgitm_lv"
|
||||
@@ -194,9 +197,14 @@
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="使用单位" prop="permittedUnitCode">
|
||||
<el-select v-model="form.permittedUnitCode" clearable filterable>
|
||||
<el-select
|
||||
v-model="form.permittedUnitCode"
|
||||
clearable
|
||||
filterable
|
||||
:filter-method="filterUnitCode"
|
||||
>
|
||||
<el-option
|
||||
v-for="category in unit_code"
|
||||
v-for="category in isFilteringUnitCode ? filteredUnitCode : unit_code"
|
||||
:key="category.value"
|
||||
:label="category.label"
|
||||
:value="category.value"
|
||||
@@ -206,7 +214,7 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="财务类型" prop="itemTypeCode">
|
||||
<el-select v-model="form.itemTypeCode" clearable filterable>
|
||||
<el-select v-model="form.itemTypeCode" clearable filterable no-data-text="">
|
||||
<!-- :disabled="form.isEditInfoDisable === 1" -->
|
||||
|
||||
<el-option
|
||||
@@ -384,6 +392,10 @@ const statusFlagOptions = ref(undefined);
|
||||
const exeOrganizations = ref(undefined);
|
||||
const typeEnumOptions = ref(undefined);
|
||||
const diagnosisTreatmentList = ref([]);
|
||||
// 使用单位过滤后的选项
|
||||
const filteredUnitCode = ref([]);
|
||||
// 标记是否正在进行过滤查询
|
||||
const isFilteringUnitCode = ref(false);
|
||||
|
||||
const data = reactive({
|
||||
form: {},
|
||||
@@ -489,6 +501,9 @@ function show() {
|
||||
getBodyTree();
|
||||
getDeptTree();
|
||||
getItemList();
|
||||
// 重置使用单位过滤
|
||||
filteredUnitCode.value = [];
|
||||
isFilteringUnitCode.value = false;
|
||||
|
||||
title.value = '';
|
||||
title.value = props.title;
|
||||
@@ -517,6 +532,9 @@ function edit() {
|
||||
getBodyTree();
|
||||
getDeptTree();
|
||||
getItemList();
|
||||
// 重置使用单位过滤
|
||||
filteredUnitCode.value = [];
|
||||
isFilteringUnitCode.value = false;
|
||||
title.value = '';
|
||||
title.value = props.title;
|
||||
form.value = props.item;
|
||||
@@ -682,6 +700,23 @@ function updatePrices(value) {
|
||||
form.value.maximumRetailPrice = form.value.retailPrice;
|
||||
}
|
||||
|
||||
// 使用单位过滤函数
|
||||
function filterUnitCode(query) {
|
||||
if (!query || query.trim() === '') {
|
||||
// 查询为空时,重置过滤状态,显示所有选项
|
||||
isFilteringUnitCode.value = false;
|
||||
filteredUnitCode.value = [];
|
||||
return;
|
||||
}
|
||||
// 有查询内容时,进行过滤
|
||||
isFilteringUnitCode.value = true;
|
||||
const queryLower = query.toLowerCase().trim();
|
||||
filteredUnitCode.value = unit_code.value.filter((item) => {
|
||||
const label = item.label || '';
|
||||
return label.toLowerCase().includes(queryLower);
|
||||
});
|
||||
}
|
||||
|
||||
// 监听treatmentItems变化,实时更新总价
|
||||
watch(
|
||||
() => treatmentItems.value,
|
||||
|
||||
Reference in New Issue
Block a user