gx
chenyc
2025-04-27 706896076f193579e7fc0f9d65c1fd75cd084322
gx
2个文件已修改
34 ■■■■ 已修改文件
src/views/home/components/patient_file.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/shiwuguoming/editDietary.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/patient_file.vue
@@ -80,10 +80,8 @@
                        </tr>
                        <tr>
                            <td colspan="2">证件号:{{ patientsInfo.patientIdentityNo }}</td>
                            <td>透析龄:<span v-if="patientsInfo.medHistoryStatByMonth">{{
                                patientsInfo.medHistoryStatByMonth }}
                                    (月)</span></td>
                            <td colspan="2">证件号:{{ state.patientData.证件号 }}</td>
                            <td>透析龄:<span>{{透析年龄}}</span></td>
                            <td>最近体重:<span>{{ state.patientData.上一次透前体重 }} (kg)</span></td>
                            <td>BMI:<span>{{ BMI }}</span></td>
@@ -208,6 +206,7 @@
        身高: '',
        上一次透前体重: '',
        出院诊断:'',
        '透析龄(月)':''
    },
    listData: <any>{}
})
@@ -295,6 +294,15 @@
        return ''
    }
})
const 透析年龄=computed(() => {
    if (state.patientData['透析龄(月)']) {
        const nian=Math.floor(Number(state.patientData['透析龄(月)']) / 12)===0?'':Math.floor(Number(state.patientData['透析龄(月)']) / 12)+'年'
        const yue=(Number(state.patientData['透析龄(月)']) % 12)===0?'':Number(state.patientData['透析龄(月)']) % 12+'月'
        return  nian +yue
    } else {
        return ''
    }
})
// 第一步:定义子组件里面的方法
const getData = async (str: string) => {
    var pam = {
@@ -320,6 +328,7 @@
            listNurtion(pas3)
        ])
        state.patientData = res1.data
        console.log('赋值患者信息',state.patientData)
        state.listData = res2.data
        if(res3.data?.list.length>=1){
            const row=res3.data.list[0]
src/views/home/components/shiwuguoming/editDietary.vue
@@ -460,6 +460,18 @@
                                            </el-form-item>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td  >
                                           总结
                                        </td>
                                        <td colspan="8" >
                                            <el-form-item >
                                                <el-input v-model="state.tableData.结果" type="textarea"
                                                    :autosize="{ minRows: 2, maxRows: 6 }" placeholder="备注" />
                                            </el-form-item>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </el-form>
@@ -599,6 +611,7 @@
                备注: '',
            },
        },
        结果:''
        
        
      
@@ -761,6 +774,7 @@
                备注: '',
            },
        },
        结果:''
    }
    state.viewInfo={
        id: 0,
@@ -793,6 +807,9 @@
        console.log(mode)
        state.viewInfo=mode
        state.tableData=JSON.parse(mode.surveryJsonBody)
        if(state.tableData.结果){
            state.tableData.结果=''
        }
        state.tableData.初次调查日期=mode.surveryTime
        state.tableData.更新日期=mode.updateTime
        state.dialogTableVisible = true