Fix Bug #595: AI修复
This commit is contained in:
100
openhis-ui-vue3/src/views/inpatient/OrderVerify.vue
Normal file
100
openhis-ui-vue3/src/views/inpatient/OrderVerify.vue
Normal file
@@ -0,0 +1,100 @@
|
||||
<template>
|
||||
<div class="order-verify-container">
|
||||
<el-card class="filter-card">
|
||||
<el-form :inline="true" class="query-form">
|
||||
<el-form-item label="患者床号">
|
||||
<el-input v-model="queryParams.bedNo" placeholder="请输入床号" clearable style="width: 150px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery">查询</el-button>
|
||||
<el-button @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
|
||||
<el-card class="table-card">
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span>医嘱校对列表</span>
|
||||
<el-tag type="info" style="margin-left: 10px;">三查七对结构化核对</el-tag>
|
||||
</div>
|
||||
</template>
|
||||
<el-table :data="verifyList" border v-loading="loading" class="order-verify-table" style="width: 100%">
|
||||
<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 prop="frequencyUsage" label="频次/用法" width="140" />
|
||||
<el-table-column prop="orderingDoctor" label="开嘱医生" width="100" />
|
||||
<el-table-column prop="stopTime" label="停嘱时间" width="160" />
|
||||
<el-table-column prop="stoppingDoctor" label="停嘱医生" width="100" />
|
||||
<el-table-column prop="injectionDrug" label="注射药品" width="150" />
|
||||
<el-table-column prop="skinTestStatus" label="皮试" width="100">
|
||||
<template #default="{ row }">
|
||||
<el-tag v-if="row.skinTestStatus === '需皮试'" type="danger" effect="dark">需皮试</el-tag>
|
||||
<el-tag v-else-if="row.skinTestStatus === '已皮试'" type="success">已皮试</el-tag>
|
||||
<el-tag v-else type="info">无需皮试</el-tag>
|
||||
</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, reactive, onMounted } from 'vue';
|
||||
import { getOrderVerifyList, verifyOrder } from '@/api/inpatient';
|
||||
import { ElMessage } from 'element-plus';
|
||||
|
||||
const queryParams = reactive({ bedNo: '' });
|
||||
const verifyList = ref([]);
|
||||
const loading = ref(false);
|
||||
|
||||
const handleQuery = async () => {
|
||||
loading.value = true;
|
||||
try {
|
||||
// 实际项目中应传入患者ID或床号查询
|
||||
const res = await getOrderVerifyList(queryParams.bedNo);
|
||||
verifyList.value = res.data || [];
|
||||
} catch (err) {
|
||||
ElMessage.error('查询失败');
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
const resetQuery = () => {
|
||||
queryParams.bedNo = '';
|
||||
handleQuery();
|
||||
};
|
||||
|
||||
const handleVerify = async (row) => {
|
||||
try {
|
||||
await verifyOrder(row.id);
|
||||
ElMessage.success('校对成功');
|
||||
handleQuery();
|
||||
} catch (err) {
|
||||
ElMessage.error('校对失败');
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
handleQuery();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.order-verify-container { padding: 20px; }
|
||||
.filter-card { margin-bottom: 20px; }
|
||||
.table-card { min-height: 500px; }
|
||||
.card-header { display: flex; align-items: center; }
|
||||
</style>
|
||||
Reference in New Issue
Block a user