|
|
@ -158,8 +158,8 @@ export default { |
|
|
|
methods: { |
|
|
|
init() { |
|
|
|
this.visible = true |
|
|
|
this.getDoctorList('视光医生') |
|
|
|
this.getDoctorList('门诊医生') |
|
|
|
this.getDoctorList('视光医师') |
|
|
|
this.getDoctorList('门诊医师') |
|
|
|
this.getProject() |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.dataForm.resetFields() // 重置表单 |
|
|
@ -202,7 +202,7 @@ export default { |
|
|
|
if (!valid) { |
|
|
|
return false |
|
|
|
} |
|
|
|
this.dataForm.zlProjectCode = this.dataForm.zlProjectCode.join(',') |
|
|
|
this.dataForm.zlProjectCode = this.dataForm.zlProjectCode.length && this.dataForm.zlProjectCode.join(',') |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/patient/savePatient', this.dataForm).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|