|
|
@ -255,8 +255,8 @@ export default { |
|
|
|
if (!valid) { |
|
|
|
return false |
|
|
|
} |
|
|
|
this.form.project = this.form.project.join(',') |
|
|
|
this.form.preparation = this.form.preparation.join(',') |
|
|
|
const project = this.form.project.join(',') |
|
|
|
const preparation = this.form.preparation.join(',') |
|
|
|
if (!this.isEdit) { |
|
|
|
const params = { |
|
|
|
appointDate: `${this.form.date1} ${this.form.date2}:00`, |
|
|
@ -267,6 +267,8 @@ export default { |
|
|
|
itemName: this.project.itemName, |
|
|
|
...this.form |
|
|
|
} |
|
|
|
params.project = project |
|
|
|
params.preparation = preparation |
|
|
|
this.$http.post('/appoint/saveAppointInfo', params).then(res => { |
|
|
|
if (res.data.code !== 0) { |
|
|
|
return this.$message.error(res.data.msg) |
|
|
@ -283,6 +285,8 @@ export default { |
|
|
|
itemId: this.patientDetail.itemId, |
|
|
|
...this.form |
|
|
|
} |
|
|
|
params.project = project |
|
|
|
params.preparation = preparation |
|
|
|
this.$http.post('/appoint/updateAppointInfo', params).then(() => { |
|
|
|
this.$message.success('修改成功') |
|
|
|
this.$emit('updateAppoint') |
|
|
|