Fix Bug #595: AI修复
This commit is contained in:
@@ -0,0 +1,91 @@
|
|||||||
|
<template>
|
||||||
|
<div class="order-verification-container">
|
||||||
|
<el-card>
|
||||||
|
<template #header>
|
||||||
|
<div class="card-header">
|
||||||
|
<span>医嘱校对</span>
|
||||||
|
<el-select
|
||||||
|
v-model="selectedPatientId"
|
||||||
|
placeholder="选择患者"
|
||||||
|
@change="fetchOrders"
|
||||||
|
class="patient-select"
|
||||||
|
style="width: 220px; margin-left: auto;"
|
||||||
|
>
|
||||||
|
<el-option v-for="p in patientList" :key="p.id" :label="`${p.bedNo}床 - ${p.name}`" :value="p.id" />
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<el-table :data="tableData" border v-loading="loading" style="width: 100%" class="verification-table">
|
||||||
|
<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" />
|
||||||
|
<el-table-column prop="frequency" label="频次" width="90" />
|
||||||
|
<el-table-column prop="usage" label="用法" width="100" />
|
||||||
|
<el-table-column prop="orderingDoctor" label="开嘱医生" width="100" />
|
||||||
|
<el-table-column prop="stopTime" label="停嘱时间" width="160" />
|
||||||
|
<el-table-column prop="stopDoctor" label="停嘱医生" width="100" />
|
||||||
|
<el-table-column prop="injectionDrug" label="注射药品" width="120" />
|
||||||
|
<el-table-column label="皮试" width="100">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-tag v-if="row.isSkinTest" type="danger" effect="dark">需皮试</el-tag>
|
||||||
|
<span v-else class="text-muted">-</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="diagnosis" label="诊断" min-width="150" show-overflow-tooltip />
|
||||||
|
<el-table-column label="操作" width="100" fixed="right">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-button type="primary" link @click="handleVerify(row)">校对</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref, onMounted } from 'vue'
|
||||||
|
import { getVerificationOrdersApi } from '@/api/nursestation/order'
|
||||||
|
import { getPatientListApi } from '@/api/nursestation/patient'
|
||||||
|
|
||||||
|
const loading = ref(false)
|
||||||
|
const tableData = ref([])
|
||||||
|
const selectedPatientId = ref(null)
|
||||||
|
const patientList = ref([])
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
try {
|
||||||
|
const res = await getPatientListApi()
|
||||||
|
patientList.value = res.data || []
|
||||||
|
} catch (e) {
|
||||||
|
console.error('获取患者列表失败', e)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const fetchOrders = async () => {
|
||||||
|
if (!selectedPatientId.value) return
|
||||||
|
loading.value = true
|
||||||
|
try {
|
||||||
|
const res = await getVerificationOrdersApi(selectedPatientId.value)
|
||||||
|
tableData.value = res.data || []
|
||||||
|
} finally {
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleVerify = (row) => {
|
||||||
|
// 触发校对业务逻辑
|
||||||
|
console.log('执行医嘱校对:', row.id)
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.card-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.text-muted {
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user