From 40319ec0a40bb470ac9a65a438c275a780b97784 Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Tue, 11 Apr 2023 16:17:15 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/outpatientManagement/call/patient-add-or-update.vue | 2 +- .../outpatientManagement/treat/patient-add-or-update.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue b/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue index 7b17539..bc68718 100644 --- a/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue +++ b/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) diff --git a/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue b/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue index e0e6218..3c6743c 100644 --- a/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue +++ b/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)