From b2d04038df93bed77a49e3ad29004d9fc7eca888 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 27 九月 2024 14:40:23 +0800
Subject: [PATCH] 更新

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

diff --git a/src/views/home/components/editDietary.vue b/src/views/home/components/editDietary.vue
index 109160c..0355f2e 100644
--- a/src/views/home/components/editDietary.vue
+++ b/src/views/home/components/editDietary.vue
@@ -584,6 +584,7 @@
         surveryPerson: userInfos.value.code,
         surveryJsonBody: '',
         suveryFormName:'膳食调查表',
+        surveryFormType:0,
         updateTime: ''
     }
 
@@ -597,6 +598,7 @@
   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,
@@ -623,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);
@@ -633,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