diff --git a/src/views/PatientInfo/PatientInfo.vue b/src/views/PatientInfo/PatientInfo.vue index 3df55ea..16260a1 100644 --- a/src/views/PatientInfo/PatientInfo.vue +++ b/src/views/PatientInfo/PatientInfo.vue @@ -984,25 +984,24 @@ export default { }, // 提交表单 async setData() { - await console.log(this.patientId); - // try { - // const params = { - // param: { - // list: this.contentList, - // patientId: this.patientId, - // timeSlot: this.subDateTime ? this.subDateTime : this.$moment(this.dateChoose).format('YYYY-MM-DD'), - // }, - // }; - // const res = await saveCaseMes(params); - // const { code, msg, data } = res.data; - // if (code === 200) { - // this.$message.success('提交成功'); - // } else { - // this.$message.error('提交失败'); - // } - // } catch (error) { - // this.$message.error('error'); - // } + try { + const params = { + param: { + list: this.contentList, + patientId: this.patientId, + timeSlot: this.subDateTime ? this.subDateTime : this.$moment(this.dateChoose).format('YYYY-MM-DD'), + }, + }; + const res = await saveCaseMes(params); + const { code, msg, data } = res.data; + if (code === 200) { + this.$message.success('提交成功'); + } else { + this.$message.error('提交失败'); + } + } catch (error) { + this.$message.error('error'); + } }, }, };