From 6a02437da5ca1fd368bae48622589f6f359bff95 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期三, 09 十月 2024 09:01:04 +0800
Subject: [PATCH] 更新营养筛查评估

---
 src/views/home/components/editDietary.vue |   66 +++++++++++++++++++++++++++++++-
 1 files changed, 63 insertions(+), 3 deletions(-)

diff --git a/src/views/home/components/editDietary.vue b/src/views/home/components/editDietary.vue
index 613df94..0355f2e 100644
--- a/src/views/home/components/editDietary.vue
+++ b/src/views/home/components/editDietary.vue
@@ -583,6 +583,8 @@
         surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
         surveryPerson: userInfos.value.code,
         surveryJsonBody: '',
+        suveryFormName:'膳食调查表',
+        surveryFormType:0,
         updateTime: ''
     }
 
@@ -596,12 +598,14 @@
   console.log(state.tableData)
   const info:tiaochabiaoInfo={
     id: state.viewInfo.id,
+    surveryFormType:0,
     code: state.viewInfo.code,
     clientCode: userInfos.value.clientCode,
     patientCode: patientsInfo.value.code,
     surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
     surveryPerson: userInfos.value.code,
     surveryJsonBody: JSON.stringify(state.tableData),
+    suveryFormName:'膳食调查表',
     updateTime: ''
   }
   console.log(info)
@@ -621,6 +625,64 @@
   }
   
 }
+const getPageInfo=()=>{
+    state.tableData={
+        表名: '膳食调查表',
+        初次调查日期: formatDate(new Date(),'YYYY-mm-dd'),
+        填表日期: '',
+        更新日期: formatDate(new Date(),'YYYY-mm-dd'),
+        记录者: userInfos.value.userName,
+        人员构成: {
+            type: '', //只能选择独居或者家庭
+            input1: '',
+        },
+        烹饪主要操作者: {
+            type: '',
+            input1: '',
+        },
+        食材采购: {
+            type: '',
+            input1: '',
+        },
+        食物偏好: {
+            type: '',
+            input1: '',
+        },
+        三天饮食记录表:{
+            透析日1:{日期:'',早餐:'',加餐1:'',午餐:"",加餐2:'',晚餐:''},
+            非透析日:{日期:'',早餐:'',加餐1:'',午餐:"",加餐2:'',晚餐:''},
+            透析日2:{日期:'',早餐:'',加餐1:'',午餐:"",加餐2:'',晚餐:''}
+        },
+        外吃:{
+            type: '',
+            input1: '',
+        },
+        每日饮水量种类:{
+            type: '',
+            input1: '',
+        },
+        日常调味料使用种类:{
+            type: '',
+            input1: '',
+        },
+        睡眠:{
+            type: '',
+            input1: '',
+        },
+        运动:{ type: '',input1: ''},
+        排便情况:{ type: '',input1: ''},
+        是否吸烟:{ type: '',input1: ''},
+        是否饮酒:{ type: '',input1: ''},
+        易过敏体质: {type: '', input1: '',},
+        胃肠道紊乱者: {type: '', input1: '',},
+        过敏食物: {type: '', input1: '',},
+        宗教信仰: {type: '', input1: '',},
+        过敏症状表现为以下哪些: {type: '', input1: '',},
+        您是如何知道自己食物过敏: {type: '', input1: '',},
+        备注: {type: '', input1: ''},
+    }
+}
+
 // 第一步:定义子组件里面的方法
 const getData = (str: string) => {
     console.log("子组件获取显示数据!" + str);
@@ -631,9 +693,7 @@
 const openShow = (type: string,mode:tiaochabiaoInfo) => {
     console.log(type)
     if(type==='add'){
-        state.tableData.初次调查日期=formatDate(new Date(),'YYYY-mm-dd')
-        state.tableData.更新日期=formatDate(new Date(),'YYYY-mm-dd')
-        state.tableData.记录者=userInfos.value.userName
+        getPageInfo()
         state.dialogTableVisible = true
     }
     else if(type==='update'){

--
Gitblit v1.8.0