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)