Fix Bug #561: AI修复
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<div class="order-container">
|
||||
<el-table :data="orderList" class="order-table" border stripe>
|
||||
<el-table-column prop="itemName" label="项目名称" min-width="150" />
|
||||
<el-table-column label="总量" class="total-quantity-cell" width="120" align="center">
|
||||
<template #default="{ row }">
|
||||
{{ row.totalQuantity }} {{ row.totalUnit || '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" prop="status" width="100" align="center" />
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { getOrdersByPatient } from '@/api/outpatient/order';
|
||||
|
||||
const orderList = ref([]);
|
||||
|
||||
onMounted(async () => {
|
||||
// 实际项目中应从路由或全局状态获取当前就诊患者ID
|
||||
const patientId = 1;
|
||||
try {
|
||||
const res = await getOrdersByPatient(patientId);
|
||||
orderList.value = res.data || [];
|
||||
} catch (error) {
|
||||
console.error('加载医嘱失败:', error);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.order-container {
|
||||
padding: 16px;
|
||||
}
|
||||
.total-quantity-cell {
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user