Fix Bug #467: AI修复

This commit is contained in:
2026-05-26 23:00:28 +08:00
parent 1762259a6e
commit c39b767c5b
5 changed files with 226 additions and 36 deletions

View File

@@ -0,0 +1,64 @@
<template>
<div class="lab-request-container">
<el-card>
<template #header>
<div class="card-header">
<span>检验申请列表</span>
</div>
</template>
<el-table :data="tableData" border style="width: 100%" v-loading="loading">
<!-- Bug #467 Fix: 修正列标题术语处方号改为申请单号 -->
<el-table-column prop="requestNo" label="申请单号" width="180" />
<el-table-column prop="patientName" label="患者姓名" width="120" />
<!-- Bug #467 Fix: 优化单据名称展示支持具体项目拼接超长截断与悬停提示 -->
<el-table-column prop="requestName" label="申请单名称" min-width="220">
<template #default="{ row }">
<el-tooltip
:content="row.fullRequestName"
placement="top"
:disabled="row.requestName === row.fullRequestName"
:show-after="300"
>
<span class="request-name-text">{{ row.requestName }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="createTime" label="申请时间" width="180" />
<el-table-column prop="status" label="状态" width="100" />
</el-table>
</el-card>
</div>
</template>
<script setup>
import { ref, onMounted } from 'vue'
import { getLabRequestListApi } from '@/api/inpatient/labRequest'
const loading = ref(false)
const tableData = ref([])
const fetchData = async () => {
loading.value = true
try {
const res = await getLabRequestListApi()
tableData.value = res.data || []
} catch (error) {
console.error('获取检验申请列表失败:', error)
} finally {
loading.value = false
}
}
onMounted(() => {
fetchData()
})
</script>
<style scoped>
.lab-request-container { padding: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; }
.request-name-text { cursor: pointer; color: #303133; }
</style>