|
|
@ -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'); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|