Browse Source

限制未开放时间段不能新增预约

360view
bianyaqi 2 years ago
parent
commit
3b2000a905
  1. 6
      src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue

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

@ -201,6 +201,7 @@ export default {
//
handleSave() {
if (!this.isEdit) {
console.log('asdfasdf')
this.$refs.addPatientForm.validate((valid) => {
if (!valid) {
return false
@ -214,7 +215,10 @@ export default {
itemName: this.project.itemName,
...this.form
}
this.$http.post('/appoint/saveAppointInfo', params).then(() => {
this.$http.post('/appoint/saveAppointInfo', params).then(res => {
if (res.data.code !== 0) {
return this.$message.error(res.data.msg)
}
this.$message.success('添加成功')
this.$emit('updateAppoint')
this.visible = false

Loading…
Cancel
Save