|
@@ -37,7 +37,7 @@
|
|
|
<el-button type="success" icon="Money" @click="addBaby">增加</el-button>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
- <div style="color: red;"> 增加BB时,请补充相应的BB信息(如性别,出生日期)</div>
|
|
|
+ <div style="color: red;"> 增加BB时,请补充相应的BB信息(如性别,出生日期,出生体重)</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-header>
|
|
@@ -55,6 +55,8 @@
|
|
|
<el-table-column property="name" label="姓名" />
|
|
|
<el-table-column property="sexName" label="性别" />
|
|
|
<el-table-column property="birthDate" label="出生日期" />
|
|
|
+ <el-table-column property="babyBirthWeight" label="出生体重(克)" />
|
|
|
+ <el-table-column property="birthOrder" label="出生顺序" />
|
|
|
<el-table-column label="操作">
|
|
|
<template #default="scope">
|
|
|
<el-button icon="Delete" type="danger" @click="delBaBy(scope.$index,scope.row)">删除</el-button>
|
|
@@ -76,6 +78,9 @@
|
|
|
<el-form-item label="出生日期" >
|
|
|
<el-date-picker v-model="editBaByInfo.birthDate" type="datetime" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="出生体重(克)" >
|
|
|
+ <el-input v-model="editBaByInfo.babyBirthWeight" type="number" placeholder="请输入出生体重" />
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
@@ -87,31 +92,53 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name = "addBabyInfo">
|
|
|
-import PatientInfo from "@/components/medical-advice/PatientInfo.vue";
|
|
|
-import {onMounted, ref} from "vue";
|
|
|
+import {onMounted, ref, defineAsyncComponent} from "vue";
|
|
|
import {getAllWards} from "@/api/zhu-yuan-yi-sheng/resident-doctor";
|
|
|
import {getPatientBaseInfo,queryPatientInfo} from "@/api/medical-advice/medical-advice-management";
|
|
|
import {queryBabyInfo,deleteBaby,saveBabyInfo} from "@/api/medical-advice/patient-info";
|
|
|
import {ElMessageBox} from "element-plus";
|
|
|
|
|
|
+// 异步导入PatientInfo组件
|
|
|
+const PatientInfo = defineAsyncComponent(() => import("@/components/medical-advice/PatientInfo.vue"));
|
|
|
+
|
|
|
const windowHeight = window.innerHeight
|
|
|
|
|
|
-const patientInfo =ref<object>({})
|
|
|
-const queryParam = ref<object>({
|
|
|
+interface PatientInfoType {
|
|
|
+ name?: string;
|
|
|
+ [key: string]: any;
|
|
|
+}
|
|
|
+
|
|
|
+interface QueryParamType {
|
|
|
+ wardCode?: string;
|
|
|
+ inpatientNo?: string;
|
|
|
+ admissTimes?: number | null;
|
|
|
+ [key: string]: any;
|
|
|
+}
|
|
|
+
|
|
|
+interface EditBabyInfoType {
|
|
|
+ name?: string;
|
|
|
+ inpatientNo?: string;
|
|
|
+ sex?: string;
|
|
|
+ birthDate?: string;
|
|
|
+ babyBirthWeight?: string | number;
|
|
|
+ [key: string]: any;
|
|
|
+}
|
|
|
+
|
|
|
+const patientInfo = ref<PatientInfoType>({})
|
|
|
+const queryParam = ref<QueryParamType>({
|
|
|
wardCode:'',
|
|
|
inpatientNo:'',
|
|
|
admissTimes:null,
|
|
|
-
|
|
|
})
|
|
|
|
|
|
-const editBaByInfo =ref({
|
|
|
+const editBaByInfo = ref<EditBabyInfoType>({
|
|
|
name:'',
|
|
|
inpatientNo:'',
|
|
|
sex:'',
|
|
|
birthDate:'',
|
|
|
+ babyBirthWeight:'', // 新增:婴儿出生体重
|
|
|
})
|
|
|
|
|
|
-
|
|
|
const saveData=()=>{
|
|
|
editBaByInfo.value.name = patientInfo.value.name
|
|
|
editBaByInfo.value.inpatientNo= queryParam.value.inpatientNo
|