feat(template): 添加股骨头坏死门诊病历模板
新增了一个名为“股骨头坏死(模板1)”的门诊病历模板文件,包含完整的主诉、现病史、既往史、体格检查、辅助检查、诊断和治疗方案等内容,便于医生快速调用和填写。 该模板位于 `src/template/股骨头坏死(模板1).vue`,采用 Vue 单文件组件格式编写,并定义了相应的结构与样式。
This commit is contained in:
@@ -5,11 +5,13 @@
|
||||
-->
|
||||
<template>
|
||||
<div class="container">
|
||||
<!-- 页面头部标题 -->
|
||||
<div class="header">
|
||||
<h2 class="title">乾安县人民医院</h2>
|
||||
<h3 class="subtitle">患者护理记录单</h3>
|
||||
</div>
|
||||
|
||||
<!-- 护理记录表单 -->
|
||||
<el-form :model="state.formData" label-position="top" class="nursing-form">
|
||||
<!-- 患者基本信息 -->
|
||||
<div class="patient-info">
|
||||
@@ -58,9 +60,11 @@
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
<!-- 基本信息记录表格 -->
|
||||
<!-- 生命体征记录表格 -->
|
||||
<div class="vital-signs-table">
|
||||
<!-- 护理记录详细信息表格 -->
|
||||
<el-table :data="state.formData.vitalSigns" border style="width: 100%">
|
||||
<!-- 记录日期列 -->
|
||||
<el-table-column label="日期" width="100">
|
||||
<template #default="scope">
|
||||
<el-date-picker
|
||||
@@ -73,6 +77,7 @@
|
||||
></el-date-picker>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 记录时间列 -->
|
||||
<el-table-column label="时间" width="100">
|
||||
<template #default="scope">
|
||||
<el-time-picker
|
||||
@@ -84,7 +89,9 @@
|
||||
></el-time-picker>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 基本信息列组 -->
|
||||
<el-table-column label="基本信息">
|
||||
<!-- 意识状态 -->
|
||||
<el-table-column label="意识" width="80">
|
||||
<template #default="scope">
|
||||
<el-select v-model="scope.row.consciousness" placeholder="选择">
|
||||
@@ -94,38 +101,46 @@
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 体温测量值 -->
|
||||
<el-table-column label="体温℃" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.temperature" placeholder="体温"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 心率测量值 -->
|
||||
<el-table-column label="心率次/分" width="100">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.heartRate" placeholder="心率"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="脉搏次/分" width="100">
|
||||
<!-- 脉搏测量值 -->
|
||||
<el-table-column label="脉搏次/分" width="100">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.heartRate" placeholder="心率"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 呼吸频率 -->
|
||||
<el-table-column label="呼吸次/分" width="100">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.respiratoryRate" placeholder="呼吸"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 血压测量值 -->
|
||||
<el-table-column label="血压mmHg" width="120">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.bloodPressure" placeholder="血压"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="血氧饱和度" width="120">
|
||||
<!-- 血氧饱和度 -->
|
||||
<el-table-column label="血氧饱和度" width="120">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.bloodPressure" placeholder="血压"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<!-- 氧疗相关信息 -->
|
||||
<el-table-column label="氧疗L/min" width="200">
|
||||
<!-- 氧疗方式 -->
|
||||
<el-table-column label="方式" >
|
||||
<template #default="scope">
|
||||
<el-select v-model="scope.row.intake" placeholder="选择">
|
||||
@@ -135,13 +150,16 @@
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 氧流量 -->
|
||||
<el-table-column label="流量" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="入量" width="200">
|
||||
<!-- 入量记录 -->
|
||||
<el-table-column label="入量" width="200">
|
||||
<!-- 入量名称 -->
|
||||
<el-table-column label="名称" >
|
||||
<template #default="scope">
|
||||
<el-select v-model="scope.row.intake" placeholder="选择">
|
||||
@@ -151,18 +169,22 @@
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 入量毫升数 -->
|
||||
<el-table-column label="ml" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="途径" width="80">
|
||||
<!-- 入量途径 -->
|
||||
<el-table-column label="途径" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="出量" width="200">
|
||||
<!-- 出量记录 -->
|
||||
<el-table-column label="出量" width="200">
|
||||
<!-- 出量名称 -->
|
||||
<el-table-column label="名称" >
|
||||
<template #default="scope">
|
||||
<el-select v-model="scope.row.intake" placeholder="选择">
|
||||
@@ -172,32 +194,38 @@
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 出量毫升数 -->
|
||||
<el-table-column label="ml" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="皮肤情况" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
<!-- 皮肤情况记录 -->
|
||||
<el-table-column label="皮肤情况" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="管路护理" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="病情与措施" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<!-- 管路护理记录 -->
|
||||
<el-table-column label="管路护理" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 病情与措施记录 -->
|
||||
<el-table-column label="病情与措施" width="80">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.flowRate" placeholder="流量"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 护士签名 -->
|
||||
<el-table-column label="护士签名" width="100">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.nurseSignature" placeholder="签名"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 操作列:提供删除功能 -->
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-button type="danger" size="small" @click="removeVitalSign(scope.$index)"
|
||||
@@ -206,12 +234,13 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- 添加新记录按钮 -->
|
||||
<div class="add-row">
|
||||
<el-button type="primary" @click="addVitalSign">添加记录</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 表单底部按钮 -->
|
||||
<!-- 表单底部说明信息 -->
|
||||
<div class="form-actions">
|
||||
<div>
|
||||
一、意识:①清醒;②嗜睡;③意识模糊;④昏睡;⑤谗妄;⑥浅昏迷;⑦中度昏迷;⑧深昏迷;⑨全麻未醒;⑩镇静。
|
||||
@@ -231,12 +260,21 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
// 定义组件选项
|
||||
defineOptions({
|
||||
name: 'NursingRecordSheet',
|
||||
});
|
||||
import { getCurrentInstance, onBeforeMount, onMounted, reactive } from 'vue';
|
||||
|
||||
// 导入所需Vue功能
|
||||
import { getCurrentInstance, onBeforeMount, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
// 获取组件实例代理
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
// 定义组件发射事件
|
||||
const emits = defineEmits([]);
|
||||
|
||||
// 定义组件接收的属性
|
||||
const props = defineProps({
|
||||
patientId: {
|
||||
type: String,
|
||||
@@ -244,28 +282,28 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
// 表单数据
|
||||
// 表单数据状态管理
|
||||
const state = ref({
|
||||
formData: {
|
||||
name: '',
|
||||
age: '',
|
||||
gender: '',
|
||||
ward: '',
|
||||
bedNumber: '',
|
||||
hospitalNumber: '',
|
||||
diagnosis: '',
|
||||
vitalSigns: [
|
||||
name: '', // 患者姓名
|
||||
age: '', // 年龄
|
||||
gender: '', // 性别
|
||||
ward: '', // 病区
|
||||
bedNumber: '', // 床号
|
||||
hospitalNumber: '', // 住院号
|
||||
diagnosis: '', // 入院诊断
|
||||
vitalSigns: [ // 生命体征记录数组
|
||||
{
|
||||
date: new Date().toISOString().split('T')[0],
|
||||
time: new Date().toTimeString().slice(0, 5),
|
||||
consciousness: '清醒',
|
||||
temperature: '',
|
||||
heartRate: '',
|
||||
respiratoryRate: '',
|
||||
bloodPressure: '',
|
||||
intake: '',
|
||||
flowRate: '',
|
||||
nurseSignature: '',
|
||||
date: new Date().toISOString().split('T')[0], // 默认当天日期
|
||||
time: new Date().toTimeString().slice(0, 5), // 默认当前时间
|
||||
consciousness: '清醒', // 意识状态默认值
|
||||
temperature: '', // 体温
|
||||
heartRate: '', // 心率
|
||||
respiratoryRate: '', // 呼吸频率
|
||||
bloodPressure: '', // 血压
|
||||
intake: '', // 入量
|
||||
flowRate: '', // 流量
|
||||
nurseSignature: '', // 护士签名
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -273,7 +311,7 @@ const state = ref({
|
||||
|
||||
});
|
||||
|
||||
// 添加生命体征记录
|
||||
// 添加生命体征记录方法
|
||||
const addVitalSign = () => {
|
||||
state.value.formData.vitalSigns.push({
|
||||
date: new Date().toISOString().split('T')[0],
|
||||
@@ -290,17 +328,16 @@ const addVitalSign = () => {
|
||||
});
|
||||
};
|
||||
|
||||
// 删除生命体征记录
|
||||
// 删除指定索引的生命体征记录
|
||||
const removeVitalSign = (index) => {
|
||||
state.value.formData.vitalSigns.splice(index, 1);
|
||||
// 如果删除后没有记录,则自动添加一条空记录
|
||||
if (state.value.formData.vitalSigns.length === 0) {
|
||||
addVitalSign();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
// 重置表单
|
||||
// 重置整个表单数据
|
||||
const resetForm = () => {
|
||||
state.value.formData = {
|
||||
name: '',
|
||||
@@ -315,34 +352,44 @@ const resetForm = () => {
|
||||
|
||||
};
|
||||
|
||||
// 组件挂载前执行的逻辑
|
||||
onBeforeMount(() => {
|
||||
// 如果有patientId,可以在这里加载患者数据
|
||||
// 如果有传入患者ID,则可以在此处加载患者数据
|
||||
if (props.patientId) {
|
||||
// 加载患者数据的逻辑
|
||||
}
|
||||
});
|
||||
|
||||
// 组件挂载完成后执行的逻辑
|
||||
onMounted(() => {
|
||||
// 组件挂载后的逻辑
|
||||
});
|
||||
|
||||
// 表单提交方法
|
||||
const submit = () => {
|
||||
// ElMessage.success('提交成功');
|
||||
// 触发submitOk事件,传递表单数据给父组件
|
||||
emits('submitOk', state.formData);
|
||||
};
|
||||
|
||||
// 设置表单数据方法(供父组件调用)
|
||||
const setFormData = (data) => {
|
||||
if (data) {
|
||||
state.value.formData = data;
|
||||
}
|
||||
};
|
||||
|
||||
// 暴露组件内部属性和方法给父组件使用
|
||||
defineExpose({ state, submit, setFormData });
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
// 容器样式
|
||||
.container {
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
// 头部标题样式
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
@@ -359,6 +406,7 @@ defineExpose({ state, submit, setFormData });
|
||||
}
|
||||
}
|
||||
|
||||
// 护理表单样式
|
||||
.nursing-form {
|
||||
.patient-info {
|
||||
padding: 15px;
|
||||
@@ -387,4 +435,4 @@ defineExpose({ state, submit, setFormData });
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user