ソースを参照

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 4 週間 前
コミット
06df0f13d7
共有4 個のファイルを変更した80 個の追加24 個の削除を含む
  1. 8 8
      src/xt_pages/user/components/PatientSidebar.vue
  2. 6 0
      src/xt_pages/user/courseOfDisease_new.vue
  3. 53 3
      src/xt_pages/user/sickHistory_new.vue
  4. 13 13
      src/xt_permission.js

+ 8 - 8
src/xt_pages/user/components/PatientSidebar.vue ファイルの表示

@@ -167,10 +167,10 @@ export default {
167 167
               name: '3-1',
168 168
               label: '病史'
169 169
             },
170
-            // {
171
-            //   name: '3-4',
172
-            //   label: '病史新'
173
-            // },
170
+            {
171
+              name: '3-4',
172
+              label: '病史新'
173
+            },
174 174
             {
175 175
               name: '3-2',
176 176
               label: '体格检查'
@@ -179,10 +179,10 @@ export default {
179 179
             //   name: '3-3',
180 180
             //   label: '体格检查新'
181 181
             // },
182
-            //  {
183
-            //   name: '3-5',
184
-            //   label: '病程记录新'
185
-            //  },
182
+             {
183
+              name: '3-5',
184
+              label: '病程记录新'
185
+             },
186 186
             {
187 187
               name: '1-11',
188 188
               label: '首次病程记录'

+ 6 - 0
src/xt_pages/user/courseOfDisease_new.vue ファイルの表示

@@ -531,11 +531,17 @@
531 531
         this.add_index = 0
532 532
         this.disabled = true
533 533
         console.log("haaaaaaaaaaaaaaa",this.$refs)
534
+
535
+        if(this.record_date.length == 0) {
536
+          this.$message.error('请选择时间')
537
+          return
538
+        }
534 539
         this.new_content = this.$refs.editor.contents
535 540
         if (this.new_content.length == 0) {
536 541
           this.$message.error('请填写病程内容')
537 542
           return
538 543
         }
544
+       
539 545
         var params = {
540 546
           id:this.id,
541 547
           patient_id:this.patient_id,

+ 53 - 3
src/xt_pages/user/sickHistory_new.vue ファイルの表示

@@ -115,7 +115,9 @@
115 115
                     :value="item.value">
116 116
                   </el-option>
117 117
                 </el-select>
118
-                <el-input v-if="shen_guomi == 2" v-model="guominyaowu_desc"></el-input>
118
+              </div>
119
+              <div style="width: 50%;"  v-if="shen_guomi == 2" >
120
+                过敏药物备注:  <el-input v-model="guominyaowu_desc" style="width: 300px;"></el-input>
119 121
               </div>
120 122
             </div>
121 123
 
@@ -622,7 +624,25 @@ export default {
622 624
         this.$message.error('请填写病程内容')
623 625
         return
624 626
       }
627
+      if(this.admin_user_id == 0){
628
+        this.$message.error('请选择医生')
629
+        return
630
+      }
631
+      if(this.sick_history_time.length  == 0){
632
+        this.$message.error('请选择时间')
633
+        return
634
+      }
625 635
       this.uploading_new_record = true
636
+      if(this.shen_yizhi == ""){
637
+        this.shen_yizhi = 0
638
+      }
639
+      if(this.shen_fumo == ""){
640
+        this.shen_fumo = 0
641
+      }
642
+      if(this.shen_guomi == ""){
643
+        this.shen_guomi = 0
644
+      }
645
+    
626 646
       let params = {
627 647
         id:this.id,
628 648
         patient_id: this.patient_id,
@@ -673,6 +693,24 @@ export default {
673 693
         this.$message.error('请填写病程内容')
674 694
         return
675 695
       }
696
+      if(this.admin_user_id == 0){
697
+        this.$message.error('请选择医生')
698
+        return
699
+      }
700
+      if(this.sick_history_time.length  == 0){
701
+        this.$message.error('请选择时间')
702
+        return
703
+      }
704
+      if(this.shen_yizhi == ""){
705
+        this.shen_yizhi = 0
706
+      }
707
+      if(this.shen_fumo == ""){
708
+        this.shen_fumo = 0
709
+      }
710
+      if(this.shen_guomi == ""){
711
+        this.shen_guomi = 0
712
+      }
713
+    
676 714
       let params = {
677 715
         id:this.id,
678 716
         patient_id: this.patient_id,
@@ -780,25 +818,37 @@ export default {
780 818
       return user_name
781 819
     },
782 820
     getTime (time) {
783
-      return uParseTime(time, '{y}-{m}-{d}')
821
+      if(time <0){
822
+        return  ""
823
+      }else{
824
+        return uParseTime(time, '{y}-{m}-{d}')
825
+      }
826
+     
784 827
     },
785 828
     getCurrentChange(val){
829
+      console.log("val--------------",val)
786 830
       this.$refs.editor.contents = val.content
787 831
       this.record_time = this.getTime(val.record_time)
788 832
       this.id = val.id
789 833
       this.guominyaowu_desc = val.hypersusceptibility_desc
790 834
       if(val.is_fumo_dialysis_history>0){
791 835
         this.shen_fumo = val.is_fumo_dialysis_history
836
+      }else{
837
+        this.shen_fumo = ""
792 838
       }
793 839
       if(val.is_shenyizhi_history>0){
794 840
         this.shen_yizhi  = val.is_shenyizhi_history
841
+      }else{
842
+        this.shen_yizhi = ""
795 843
       }
796 844
       if(val.is_hypersusceptibility>0){
797 845
         this.shen_guomi = val.is_hypersusceptibility
846
+      }else{
847
+        this.shen_guomi = ""
798 848
       }
799 849
 
800 850
       this.patient_id = val.patient_id
801
-      this.admin_user_id = val.admin_user_id
851
+      this.admin_user_id = val.recorder?val.doctor_id:"0"
802 852
 
803 853
     },
804 854
     getCurrentChangeOne(val){

+ 13 - 13
src/xt_permission.js ファイルの表示

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
  // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))