Browse Source

改约相关问题修改

360view
bianyaqi 2 years ago
parent
commit
3e8fb1ad1e
  1. 8
      src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue
  2. 4
      src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/number-detail-manage.vue

8
src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue

@ -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')

4
src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/number-detail-manage.vue

@ -89,9 +89,9 @@ export default {
changeOrder(value) {
this.addPatientVisible = true
this.addTitle = '修改预约'
this.curPatient = value
this.isEdit = true
this.$nextTick(() => {
this.curPatient = value
this.isEdit = true
this.$refs.addPatientOrder.init()
})
},

Loading…
Cancel
Save