| | |
| | | <div class="dietarySurvey-item"> |
| | | <el-dialog v-model="state.dialogTableVisible" title="营养饮食指导方案" :fullscreen="true" width="100%"> |
| | | <div class="container" style="width: 100%; height: 100%;overflow: auto;" > |
| | | <div id="printFrom1" class="print-section"> |
| | | <div id="fanganprintFrom1" class="print-section"> |
| | | <div> |
| | | <el-form size="small"> |
| | | <div style="width: 100%"> |
| | |
| | | <el-button type="primary" @click="onSubmit"> |
| | | 保存 |
| | | </el-button> |
| | | <el-button v-if="state.viewInfo.id" type="primary" v-print="'#printFrom1'"> |
| | | <el-button v-if="state.viewInfo.id" type="primary" v-print="'#fanganprintFrom1'"> |
| | | <el-icon> |
| | | <Printer /> |
| | | </el-icon> |
| | |
| | | <el-icon> |
| | | <Position /> |
| | | </el-icon> |
| | | 导出 |
| | | 导出22 |
| | | </el-button> |
| | | |
| | | </div> |
| | |
| | | |
| | | } |
| | | const generatePDF = () => { |
| | | const element = document.getElementById('printFrom1'); |
| | | const element = document.getElementById('fanganprintFrom1'); |
| | | const opt = { |
| | | margin: 0, |
| | | filename: `${state.tableData.表名}.pdf`, |
| | |
| | | const from1 = await getFrom1() |
| | | const from2 = await getFrom2() |
| | | const from3 = await getFrom3() |
| | | if (from1.data.list.length >= 1) { |
| | | const from1Json = JSON.parse(from1.data.list[0].surveryJsonBody) |
| | | console.log(from1Json) |
| | | state.tableData.食物过敏原= from1Json.过敏食物.type.join() |
| | | state.tableData.胃肠功能状况=from1Json.胃肠道紊乱者.input1 |
| | | state.tableData.生活习惯.大小便=from1Json.排便情况.input1 |
| | | state.tableData.生活习惯.睡眠=from1Json.睡眠.input1 |
| | | state.tableData.生活习惯.吞咽咀嚼功能='' |
| | | state.tableData.生活习惯.烟酒=from1Json.是否吸烟.type+''+from1Json.是否饮酒.type |
| | | state.tableData.生活习惯.运动=from1Json.运动.input1 |
| | | state.tableData.透析日.早餐=from1Json.三天饮食记录表.透析日1.早餐 |
| | | state.tableData.透析日.早加餐=from1Json.三天饮食记录表.透析日1.加餐1 |
| | | state.tableData.透析日.午餐=from1Json.三天饮食记录表.透析日1.午餐 |
| | | state.tableData.透析日.午加餐=from1Json.三天饮食记录表.透析日1.加餐2 |
| | | state.tableData.透析日.晚餐=from1Json.三天饮食记录表.透析日1.晚餐 |
| | | |
| | | state.tableData.非透析日.早餐=from1Json.三天饮食记录表.非透析日.早餐 |
| | | state.tableData.非透析日.早加餐=from1Json.三天饮食记录表.非透析日.加餐1 |
| | | state.tableData.非透析日.午餐=from1Json.三天饮食记录表.非透析日.午餐 |
| | | state.tableData.非透析日.午加餐=from1Json.三天饮食记录表.非透析日.加餐2 |
| | | state.tableData.非透析日.晚餐=from1Json.三天饮食记录表.非透析日.晚餐 |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | if (from2.data.list.length >= 1) { |
| | | const from2Json = JSON.parse(from2.data.list[0].surveryJsonBody) |
| | | console.log(from2Json) |
| | | state.tableData.营养筛查评估.营养风险筛查结果=from2Json.结果 |
| | | state.tableData.营养筛查评估.营养风险筛查结果=from2Json.表名+ ' 评估得分:'+from2Json.结果?.value+', 评估结果:'+from2Json.结果?.label |
| | | } |
| | | if (from3.data.list.length >= 1) { |
| | | const from3Json = JSON.parse(from3.data.list[0].surveryJsonBody) |
| | | state.tableData.营养筛查评估.营养评估结果=from3Json.结果 |
| | | state.tableData.营养筛查评估.营养评估结果=from3Json.表名+ ' 评估得分:'+from3Json.结果?.value+', 评估结果:'+from3Json.结果?.label |
| | | |
| | | console.log(from3Json) |
| | | } |
| | | |
| | |
| | | wherecondition: `survery_form_type=0 and patient_code='${patientsInfo.value.code}'`, |
| | | ordercondition: 'survery_time desc' |
| | | } |
| | | pasm.wherecondition += "and suvery_form_name='膳食调查表'" |
| | | pasm.wherecondition += "and suvery_form_name='膳食生活调查表'" |
| | | const yinyangbiaodan1 = await list(pasm) |
| | | return yinyangbiaodan1 |
| | | } |
| | |
| | | wherecondition: `survery_form_type=1 and patient_code='${patientsInfo.value.code}'`, |
| | | ordercondition: 'survery_time desc' |
| | | } |
| | | pasm.wherecondition += "and suvery_form_name='NRS2002'" |
| | | pasm.wherecondition += "and suvery_form_name='NRS-2002'" |
| | | const yinyangbiaodan1 = await list(pasm) |
| | | return yinyangbiaodan1 |
| | | } |
| | |
| | | wherecondition: `survery_form_type=1 and patient_code='${patientsInfo.value.code}'`, |
| | | ordercondition: 'survery_time desc' |
| | | } |
| | | pasm.wherecondition += "and suvery_form_name='GNRI'" |
| | | pasm.wherecondition += "and suvery_form_name='SGA'" |
| | | const yinyangbiaodan1 = await list(pasm) |
| | | return yinyangbiaodan1 |
| | | } |