|
|
@ -555,33 +555,19 @@ |
|
|
|
codeAndAnswerList, |
|
|
|
finishStatus |
|
|
|
}, false) |
|
|
|
|
|
|
|
if(finishStatus === 1) { |
|
|
|
// console.log('firstinfo', firstAidId) |
|
|
|
this.$emit('next', {firstAidId}) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
console.log('3902390293023', this.patientId) |
|
|
|
// var res = await updateFirstAid(params) |
|
|
|
// const res = await updateFirstAid({ |
|
|
|
// firstAidId, |
|
|
|
// codeAndAnswerList, |
|
|
|
// ...params |
|
|
|
// }) |
|
|
|
const res = await saveAidRecord({ |
|
|
|
firstAidId, |
|
|
|
codeAndAnswerList, |
|
|
|
...params |
|
|
|
}) |
|
|
|
this.$message.success(res.msg) |
|
|
|
} |
|
|
|
// await this.home.updateAidCode({ |
|
|
|
// ...params, |
|
|
|
// codeAndAnswerList, |
|
|
|
// finishStatus |
|
|
|
// }, |
|
|
|
// false |
|
|
|
// ); |
|
|
|
// this.$message.success("操作成功") |
|
|
|
if(finishStatus === 1) { |
|
|
|
console.log('firstinfo', firstAidId) |
|
|
|
this.$emit('next', {firstAidId}) |
|
|
|
// this.setPatientData({}) |
|
|
|
this.$emit('ok') |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|