|
|
@@ -54,7 +54,8 @@
|
|
|
<el-table-column property="inpatientNo" label="住院号" />
|
|
|
<el-table-column property="name" label="姓名" />
|
|
|
<el-table-column property="sexName" label="性别" />
|
|
|
- <el-table-column property="birthDate" label="出生日期" />
|
|
|
+ <!-- <el-table-column property="birthDate" label="出生日期" /> -->
|
|
|
+ <el-table-column property="birthDateTime" label="出生时间" />
|
|
|
<el-table-column property="babyBirthWeight" label="出生体重(克)" />
|
|
|
<el-table-column property="birthOrder" label="出生顺序" />
|
|
|
<el-table-column label="操作">
|
|
|
@@ -120,6 +121,7 @@ interface EditBabyInfoType {
|
|
|
inpatientNo?: string;
|
|
|
sex?: string;
|
|
|
birthDate?: string;
|
|
|
+ birthDateTime?: string;
|
|
|
babyBirthWeight?: string | number;
|
|
|
[key: string]: any;
|
|
|
}
|
|
|
@@ -136,12 +138,15 @@ const editBaByInfo = ref<EditBabyInfoType>({
|
|
|
inpatientNo:'',
|
|
|
sex:'',
|
|
|
birthDate:'',
|
|
|
+ birthDateTime:'',
|
|
|
babyBirthWeight:'', // 新增:婴儿出生体重
|
|
|
})
|
|
|
|
|
|
const saveData=()=>{
|
|
|
editBaByInfo.value.name = patientInfo.value.name
|
|
|
editBaByInfo.value.inpatientNo= queryParam.value.inpatientNo
|
|
|
+ // 设置完整出生日期时间
|
|
|
+ editBaByInfo.value.birthDateTime = editBaByInfo.value.birthDate
|
|
|
saveBabyInfo(editBaByInfo.value).then((res)=>{
|
|
|
editBabyDialog.value = false
|
|
|
queryBaby()
|