Fix Bug #467: AI修复
This commit is contained in:
64
openhis-ui-vue3/src/views/inpatient/lab-request/index.vue
Normal file
64
openhis-ui-vue3/src/views/inpatient/lab-request/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user