Fix Bug #561: fallback修复
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<el-table :data="orderList" style="width: 100%">
|
||||
<el-table-column prop="itemName" label="项目名称" />
|
||||
<el-table-column prop="price" label="单价" width="80" />
|
||||
<!-- 使用 totalUnitName 替代原来的 totalUnitId(数值) -->
|
||||
<el-table-column prop="totalUnitName" label="总量单位" width="80" />
|
||||
<!-- 其它列保持不变 -->
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { getDoctorOrders } from '@/api/outpatient';
|
||||
|
||||
const orderList = ref([]);
|
||||
|
||||
onMounted(async () => {
|
||||
const doctorId = /* 当前医生 ID */;
|
||||
const { data } = await getDoctorOrders({ doctorId });
|
||||
orderList.value = data;
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user