Browse Source

患者信息录入相关界面

master
aBin 4 years ago
parent
commit
91b73801eb
  1. 37
      src/views/PatientInfo/PatientInfo.vue

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

Loading…
Cancel
Save