下拉列表的刷选功能失效,按照下拉选中的医嘱类型能过滤出对应收费项目医生进行开单
This commit is contained in:
@@ -561,9 +561,20 @@
|
||||
(value) => {
|
||||
expandOrder = [];
|
||||
prescriptionList[scope.$index].adviceName = undefined;
|
||||
adviceQueryParams.adviceType = value;
|
||||
}
|
||||
"
|
||||
|
||||
// 直接更新查询参数
|
||||
adviceQueryParams.value.adviceType = value;
|
||||
adviceQueryParams.value.searchKey = '';
|
||||
|
||||
console.log('医嘱类型改变为:', value, '查询参数:', adviceQueryParams.value);
|
||||
|
||||
// 确保弹窗重新打开
|
||||
nextTick(() => {
|
||||
row.showPopover = true;
|
||||
handleFocus(scope.row, scope.$index);
|
||||
});
|
||||
}
|
||||
"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in adviceTypeList"
|
||||
@@ -751,7 +762,10 @@ const prescriptionList = ref([]);
|
||||
const form = ref({
|
||||
prescriptionList: prescriptionList.value,
|
||||
});
|
||||
const adviceQueryParams = ref({});
|
||||
const adviceQueryParams = ref({
|
||||
searchKey: '',
|
||||
adviceType: ''
|
||||
});
|
||||
const rowIndex = ref(-1);
|
||||
const groupIndex = ref(1);
|
||||
const groupIndexList = ref([]);
|
||||
@@ -933,6 +947,9 @@ function handleAddPrescription() {
|
||||
return;
|
||||
}
|
||||
isAdding.value = true;
|
||||
// 重置查询参数
|
||||
adviceQueryParams.value = {};
|
||||
|
||||
// 在数组最前方添加一行,让新增行显示在最上边
|
||||
prescriptionList.value.unshift({
|
||||
uniqueKey: nextId.value++,
|
||||
@@ -979,10 +996,17 @@ function handleDiagnosisChange(item) {
|
||||
function handleFocus(row, index) {
|
||||
rowIndex.value = index;
|
||||
row.showPopover = true;
|
||||
// 确保查询参数与当前行类型一致
|
||||
adviceQueryParams.value = {
|
||||
adviceType: row.adviceType || '',
|
||||
searchKey: adviceQueryParams.value.searchKey || ''
|
||||
};
|
||||
}
|
||||
|
||||
function handleBlur(row) {
|
||||
row.showPopover = false;
|
||||
setTimeout(() => {
|
||||
row.showPopover = false;
|
||||
}, 200);
|
||||
}
|
||||
|
||||
function handleChange(value) {
|
||||
@@ -1096,7 +1120,7 @@ function selectAdviceBase(key, row) {
|
||||
prescriptionList.value[rowIndex.value].orgId = JSON.parse(JSON.stringify(row)).positionId;
|
||||
prescriptionList.value[rowIndex.value].unitPrice = row.priceList[0].price;
|
||||
}
|
||||
expandOrder.value = [key];
|
||||
expandOrder.value = [key];
|
||||
nextTick(() => {
|
||||
if (row.adviceType == 1) {
|
||||
if (row.injectFlag == 1) {
|
||||
@@ -1108,6 +1132,7 @@ function selectAdviceBase(key, row) {
|
||||
inputRefs.value['quantity']?.focus();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function getOrgList() {
|
||||
|
||||
Reference in New Issue
Block a user