| | |
| | | surveryPerson: userInfos.value.code, |
| | | surveryJsonBody: '', |
| | | suveryFormName:'膳食调查表', |
| | | surveryFormType:0, |
| | | updateTime: '' |
| | | } |
| | | |
| | |
| | | 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, |
| | |
| | | } |
| | | |
| | | } |
| | | 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); |
| | |
| | | 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'){ |