Fix Bug #595: AI修复
This commit is contained in:
111
openhis-ui-vue3/src/views/inpatient/OrderVerification.vue
Normal file
111
openhis-ui-vue3/src/views/inpatient/OrderVerification.vue
Normal file
@@ -0,0 +1,111 @@
|
||||
<template>
|
||||
<div class="order-verification-container">
|
||||
<el-card>
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span class="title">住院护士站 - 医嘱校对</span>
|
||||
<el-select v-model="selectedPatientId" placeholder="请选择患者" style="width: 200px" @change="loadOrders">
|
||||
<el-option v-for="p in patientList" :key="p.id" :label="p.name" :value="p.id" />
|
||||
</el-select>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<el-table :data="orderList" border style="width: 100%" v-loading="loading" row-key="id">
|
||||
<el-table-column prop="startTime" label="开始时间" width="160" />
|
||||
<el-table-column prop="singleDose" label="单次剂量" width="100" />
|
||||
<el-table-column prop="totalAmount" label="总量" width="100" />
|
||||
<el-table-column prop="totalCost" label="总金额" width="100">
|
||||
<template #default="{ row }">¥{{ row.totalCost?.toFixed(2) || '0.00' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="频次/用法" width="140">
|
||||
<template #default="{ row }">{{ row.frequency }} {{ row.usage }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="doctorName" label="开嘱医生" width="100" />
|
||||
<el-table-column prop="stopTime" label="停嘱时间" width="160" />
|
||||
<el-table-column prop="stopDoctorName" label="停嘱医生" width="100" />
|
||||
<el-table-column label="注射药品" width="80" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag v-if="row.isInjection" type="warning" size="small">是</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="皮试" width="100" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag
|
||||
v-if="row.skinTestStatus === 'REQUIRED'"
|
||||
class="skin-test-tag"
|
||||
type="danger"
|
||||
effect="dark"
|
||||
size="small"
|
||||
>需皮试</el-tag>
|
||||
<el-tag v-else-if="row.skinTestStatus === 'PASSED'" type="success" size="small">已通过</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="diagnosis" label="诊断" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="orderContent" label="医嘱内容" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" size="small" @click="handleVerify(row)">校对</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import request from '@/utils/request'
|
||||
|
||||
const loading = ref(false)
|
||||
const selectedPatientId = ref(null)
|
||||
const patientList = ref([])
|
||||
const orderList = ref([])
|
||||
|
||||
// 模拟获取患者列表(实际项目应调用对应API)
|
||||
const loadPatients = async () => {
|
||||
// const res = await request.get('/api/inpatient/patients')
|
||||
// patientList.value = res.data
|
||||
patientList.value = [{ id: 11, name: '011床-张三' }]
|
||||
selectedPatientId.value = 11
|
||||
}
|
||||
|
||||
const loadOrders = async () => {
|
||||
if (!selectedPatientId.value) return
|
||||
loading.value = true
|
||||
try {
|
||||
const res = await request.get(`/api/inpatient/order-verification/list?patientId=${selectedPatientId.value}`)
|
||||
orderList.value = res.data || []
|
||||
} catch (error) {
|
||||
console.error('加载医嘱列表失败', error)
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
const handleVerify = (row) => {
|
||||
// 校对逻辑占位
|
||||
console.log('校对医嘱:', row.id)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadPatients()
|
||||
loadOrders()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.order-verification-container {
|
||||
padding: 16px;
|
||||
}
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.title {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user