chenyc
2024-12-26 ac6966408a1de4c95c383d91da6bfd45d63ddbb5
src/views/home/components/editDietary2.vue
@@ -916,7 +916,7 @@
        surveryJsonBody: JSON.stringify(state.tableData),
        suveryFormName: '营养膳食调查表',
        surveryFormType: 0,
        updateTime: ''
        updateTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
    }
    console.log(info)
    if (info.id === 0) {
@@ -952,6 +952,8 @@
        console.log(mode)
        state.viewInfo = mode
        state.tableData = JSON.parse(mode.surveryJsonBody)
        state.tableData.初次调查日期=mode.surveryTime
        state.tableData.更新日期=mode.updateTime
        state.dialogTableVisible = true
@@ -1111,6 +1113,18 @@
        作息时间: { type: '', input1: '', input2: '' },
        排便情况: { type: '', input1: '' },
    }
    state.viewInfo= {
        id: 0,
        code: '',
        surveryFormType: 0,
        clientCode: userInfos.value.clientCode,
        patientCode: patientsInfo.value.code,
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName: '营养膳食调查表',
        updateTime: ''
    }
}
// 第二步:暴露方法