|
@@ -509,9 +509,15 @@ export default {
|
|
|
this.form = response.data;
|
|
|
this.form.status = response.data.status.toString();
|
|
|
this.form.companyType = response.data.companyType.toString();
|
|
|
- if(this.form.followDoctorIds!=null){
|
|
|
- this.form.followDoctorIds= JSON.parse(this.form.followDoctorIds)
|
|
|
+
|
|
|
+ if (this.form.followDoctorIds==null || this.form.followDoctorIds.length==0){
|
|
|
+ this.form.followDoctorIds=null;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.form.followDoctorIds!=null && this.form.followDoctorIds.length>0){
|
|
|
+ this.form.followDoctorIds= JSON.stringify(this.form.followDoctorIds)
|
|
|
}
|
|
|
+
|
|
|
if(this.form.packageIds!=null){
|
|
|
var packageList=this.form.packageIds.split(",");
|
|
|
packageList.forEach(element => {
|
|
@@ -527,6 +533,15 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
+
|
|
|
+ if (this.form.followDoctorIds==null || this.form.followDoctorIds.length==0){
|
|
|
+ this.form.followDoctorIds=null;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.form.followDoctorIds!=null && this.form.followDoctorIds.length>0){
|
|
|
+ this.form.followDoctorIds= JSON.stringify(this.form.followDoctorIds)
|
|
|
+ }
|
|
|
+
|
|
|
if (this.form.companyId != null) {
|
|
|
updateCompany(this.form).then(response => {
|
|
|
if (response.code === 200) {
|