Fix Bug #479: [住院护士站-三测单] 体征录入模块缺少"录入日期"字段,导致无法补录历史体征数据

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
赵云
2026-05-10 23:53:08 +08:00
committed by 关羽
parent 28e0228ff5
commit 644c8285b5

View File

@@ -112,6 +112,19 @@
<el-form ref="dynamicForm" :model="formData" label-width="100px" :rules="formRules">
<div class="page-bottom">
<el-row :gutter="24">
<el-col :span="8">
<el-form-item style="margin-top: 15px" label="录入日期">
<el-date-picker
v-model="formData.recordingDate"
type="date"
placeholder="请选择日期"
size="small"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
style="width: 100%"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item style="margin-top: 15px" label="录入时间">
<div class="input-time-inline">
@@ -766,6 +779,7 @@ const receptionTime = ref(null);
// 表单数据 - 体征录入
const formData = ref({
recordingDate: '',
timePoint: '',
temperature: '',
systolicPressure: '',
@@ -872,6 +886,7 @@ function getPatientDetial() {
// 默认查询今天的数据
const today = moment().format('YYYY-MM-DD');
receptionTime.value = [today, today];
formData.value.recordingDate = today;
// 自动加载数据
getPatientList();
listPatient(queryParams.value).then((res) => {
@@ -920,6 +935,7 @@ function handleRowClick(row) {
formData.value = {
...formData.value,
id: row.id,
recordingDate: row.recordingDate || '',
timePoint: convertTimePoint(row.timePoint) || '',
temperature: row.temperature || '',
systolicPressure: row.systolicPressure || '',
@@ -1038,7 +1054,7 @@ function confirmCharge() {
params.vitalSignsCode = vitalSignsCode;
params.vitalSignsValues = vitalSignsValues;
params.recordingDate = moment(new Date()).format('YYYY-MM-DD');
params.recordingDate = formData.value.recordingDate || moment(new Date()).format('YYYY-MM-DD');
addVitalSigns(params).then(res => {
console.log('保存成功:', res);
@@ -1047,6 +1063,7 @@ function confirmCharge() {
getPatientList();
// 清空表单
formData.value = {
recordingDate: '',
timePoint: '',
temperature: '',
systolicPressure: '',