|
@@ -705,7 +705,11 @@
|
705
|
705
|
}
|
706
|
706
|
this.form.user_title = admin.user_title
|
707
|
707
|
this.form.role = admin.role_ids
|
|
708
|
+
|
708
|
709
|
this.form.department_id = admin.department_id
|
|
710
|
+ if(admin.department_id == 0){
|
|
711
|
+ this.form.department_id = ""
|
|
712
|
+ }
|
709
|
713
|
this.form.role_ids = []
|
710
|
714
|
for (let i = 0; i < this.form.role.split(",").length; i++) {
|
711
|
715
|
if (this.form.role.split(',')[i].length > 0) {
|
|
@@ -734,20 +738,43 @@
|
734
|
738
|
}
|
735
|
739
|
this.isSubSuperAdmin = resp.data.isSubSuperAdmin
|
736
|
740
|
this.org = resp.data.org
|
|
741
|
+
|
|
742
|
+
|
737
|
743
|
this.form.sex = admin.sex
|
|
744
|
+ if(admin.sex == 0){
|
|
745
|
+ this.form.sex = ""
|
|
746
|
+ }
|
738
|
747
|
this.form.age = admin.age
|
|
748
|
+ if(admin.age == 0){
|
|
749
|
+ this.form.age = ""
|
|
750
|
+ }
|
739
|
751
|
this.form.nation = admin.nation
|
740
|
752
|
this.form.card_type = admin.card_type
|
|
753
|
+ if(admin.card_type == 0){
|
|
754
|
+ this.form.card_type = ""
|
|
755
|
+ }
|
741
|
756
|
this.form.id_card = admin.id_card
|
742
|
757
|
this.form.education = admin.education
|
|
758
|
+ if(admin.education == 0){
|
|
759
|
+ this.form.education = ""
|
|
760
|
+ }
|
743
|
761
|
this.form.study_major_name = admin.study_major_name
|
744
|
762
|
this.form.work_major_name = admin.work_major_name
|
745
|
763
|
this.form.role_type = admin.role_type
|
|
764
|
+ if(admin.role_type == 0){
|
|
765
|
+ this.form.role_type = ""
|
|
766
|
+ }
|
746
|
767
|
this.form.medical_code = admin.medical_code
|
747
|
768
|
this.form.doctor_code = admin.doctor_code
|
748
|
769
|
this.form.licensing = admin.licensing
|
|
770
|
+ if(admin.licensing == 0){
|
|
771
|
+ this.form.licensing = ""
|
|
772
|
+ }
|
749
|
773
|
this.form.job_number = admin.job_number
|
750
|
774
|
this.form.prescription_qualification_identification = admin.prescription_qualification_identification
|
|
775
|
+ if(admin.prescription_qualification_identification == 0){
|
|
776
|
+ this.form.prescription_qualification_identification = ""
|
|
777
|
+ }
|
751
|
778
|
this.form.identification_outpatients = admin.identification_outpatients
|
752
|
779
|
this.form.start_time = this.getTime(admin.start_time)
|
753
|
780
|
this.form.medical_range_code = admin.medical_range_code
|
|
@@ -760,7 +787,11 @@
|
760
|
787
|
this.form.doctor_number = admin.doctor_number
|
761
|
788
|
this.form.is_active = admin.is_active
|
762
|
789
|
console.log("2222222",this.form.is_active)
|
|
790
|
+
|
763
|
791
|
this.form.active_status = admin.active_status
|
|
792
|
+ if(admin.active_status == 0){
|
|
793
|
+ this.form.active_status = ""
|
|
794
|
+ }
|
764
|
795
|
|
765
|
796
|
var id = 0
|
766
|
797
|
for(let i=0;i<this.numberList.length;i++){
|
|
@@ -770,7 +801,9 @@
|
770
|
801
|
}
|
771
|
802
|
console.log("id2222222",id)
|
772
|
803
|
this.form.outpatient_illnessCategory = id
|
773
|
|
-
|
|
804
|
+ if(id == 0){
|
|
805
|
+ this.form.outpatient_illnessCategory = ""
|
|
806
|
+ }
|
774
|
807
|
//如果当前用户是超级管理员而且编辑自己的信息
|
775
|
808
|
|
776
|
809
|
if(!this.isSubSuperAdmin) {
|