28169 2 anos atrás
pai
commit
e68fbc0c73
1 arquivos alterados com 16 adições e 0 exclusões
  1. 16 0
      src/xt_pages/user/firstDisease.vue

+ 16 - 0
src/xt_pages/user/firstDisease.vue Ver arquivo

@@ -791,6 +791,12 @@
791 791
          if(this.form.doctor == ""){
792 792
             this.form.doctor = 0
793 793
          }
794
+         if(this.projectIndate == undefined){
795
+           this.projectIndate = ""
796
+         }
797
+         if(this.projectStr == undefined){
798
+            this.project_id = ""
799
+         }
794 800
          var params = {
795 801
           patient_id:parseInt(this.patient_id),
796 802
           title:this.form.title,
@@ -806,6 +812,9 @@
806 812
           inspect_date:this.projectIndate,
807 813
          
808 814
          }
815
+         if(params.project_id == undefined){
816
+            params.project_id = ""
817
+         }
809 818
          console.log("params",params)
810 819
         
811 820
          createFirstDisease(params).then(response=>{
@@ -910,6 +919,13 @@
910 919
            this.form.dean = 0
911 920
          }
912 921
 
922
+         if(this.projectIndate == undefined){
923
+           this.projectIndate = ""
924
+         }
925
+         if(this.project_id == undefined){
926
+            this.project_id = ""
927
+         }
928
+
913 929
          var main_content = ""
914 930
          var patient_case = ""
915 931
          var tentative_diagnosis = ""