Browse Source

bug修复

360view
bianyaqi 2 years ago
parent
commit
40319ec0a4
  1. 2
      src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue
  2. 2
      src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue

2
src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue

@ -211,7 +211,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)

2
src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue

@ -198,7 +198,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)

Loading…
Cancel
Save