fix: Bug #417 住院护士站记账页面空白(补充provide handleGetPrescription修复inject失败)
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {nextTick, ref} from 'vue';
|
||||
import {nextTick, provide, ref} from 'vue';
|
||||
import {ElMessage} from 'element-plus';
|
||||
import PatientList from '../components/patientList.vue';
|
||||
import BillingList from './components/billingList.vue';
|
||||
@@ -87,6 +87,14 @@ function handleClick() {
|
||||
// 可以在这里添加左侧标签切换的逻辑
|
||||
}
|
||||
|
||||
// 🔧 BugFix#417: 提供handleGetPrescription给子组件
|
||||
function handleGetPrescription() {
|
||||
if (billingRef.value) {
|
||||
billingRef.value.handleQuery?.();
|
||||
}
|
||||
}
|
||||
provide('handleGetPrescription', handleGetPrescription);
|
||||
|
||||
// 右侧标签页切换
|
||||
function handleTabChange() {
|
||||
// 切换到划价确费标签时,刷新数据
|
||||
|
||||
Reference in New Issue
Block a user