tanyanfei 10 hónapja
szülő
commit
f3bab7b3a9

+ 4 - 0
src/App.vue

@@ -178,6 +178,10 @@
 
   .picker-item {
     font-size: 14px !important;
+    overflow-x: auto;
+    width: 95%;
+    text-overflow: inherit;
+    margin: auto;
   }
 
   .mint-msgbox {

+ 9 - 2
src/components/PatBleedList.vue

@@ -28,7 +28,7 @@
         <div v-if='!id' class="jbbtn" @click="goPage('/patclockbleed')">出血打卡</div><br>
         <div v-if='!id' class="jbbtn" @click="goPage('/patbleedcount')">出血次数统计</div>
         <div v-else class="jbbtn" @click="goPage('/patbleedcount?id='+id)">出血次数统计</div>
-        <div v-if='pid' class="jbbtn" @click="goPage(1)">患者详情</div>
+        <div v-if='pid' class="jbbtn" @click="goPage(2)">患者详情</div>
       </div>
     </div>
   </div>
@@ -64,12 +64,19 @@
         if(path==-1){
           this.$router.go(-1)
         }else if(path==1){
+          sessionStorage.setItem('id',this.id)
+          this.$router.go(-1)
+
+          
+        }else if(path == 2){
           this.$router.push({name:'病例管理',params:{id:this.id}})
-        }else{
+        }
+        else{
           this.$router.push(path)
         }
       },
       getData() {
+
         let query_form={}
         let id = this.$route.query.id
         if(id){

+ 5 - 3
src/components/PatCaseList.vue

@@ -259,12 +259,14 @@
       console.log(this.$route)
       let authinfo=localStorage.getItem('authinfo')
       if(authinfo) this.id=JSON.parse(authinfo).id
-      if(this.$route.params.id){
+      let pid=sessionStorage.getItem('id')
+      if(pid){
         this.selected=3
         this.curDoctor.id=this.id
         this.queryForm.cur_doctor_id=this.id
-        this.queryForm.patient_id=this.$route.params.id
-        this.curPatient.id=this.$route.params.id
+        this.queryForm.patient_id=pid
+        this.curPatient.id=pid
+        sessionStorage.setItem('id','')
       }
       this.getData()
     },

+ 15 - 2
src/components/PatClockBleed.vue

@@ -180,7 +180,13 @@
         let params = this.form
         this.$api.regPatientClockBleed(params).then(res => {
           if (!res.data.code) {
-            this.goPage("/patclockbleedsuc")
+            
+            if(this.form.bleed_level.indexOf('重度')>=0 || this.form.bleed_level == '自行无法判断'){
+              this.$router.push({name:'患者出血打卡成功',params:{flag:1}})
+            }else{
+              this.goPage("/patclockbleedsuc")
+            }
+            
           }else{
             this.lock=false
           }
@@ -204,6 +210,7 @@
           chux_level:[{...opt}],
           chux_level1:[{...opt}]
         }
+        data.chux_level.push('自行无法判断')
         options.chux_parts[0].values=data.chux_parts
         options.guanjie=data['关节出血']
         options.chux_reason[0].values=data.chux_reason
@@ -211,7 +218,8 @@
         options.chux_level1[0].values=[
           '轻度:轻微出血,关节轻度受限',
           '中度:四肢软组织和肌肉严重出血,关节腔出血,关节功能受限',
-          '重度:内脏,中枢,咽部和髂腰肌等复杂出血乃至危及生命的出血'
+          '重度:内脏,中枢,咽部和髂腰肌等复杂出血乃至危及生命的出血',
+          '自行无法判断'
         ]
         this.options=options
         console.log(options)
@@ -222,6 +230,11 @@
 </script>
 
 <style scoped lang="scss">
+  .picker-item{
+    overflow-x: auto;
+    width: 100%;
+  }
+
   .loginForm {
     width: 84%;
     margin: auto;

+ 6 - 1
src/components/PatClockInBleedSuc.vue

@@ -8,7 +8,8 @@
           <img src="../assets/images/clockinbg.png" width="100%" alt="">
           <div class="clocksucmsg" >您已打卡成功</div>
         </div>
-        <div style="margin-top: 2rem;padding: 0 3rem;">鉴于您的出血情况,请及时联系医生或护士进行咨询。</div>
+          <div v-if='flag' style="margin-top: 2rem;padding: 0 3rem;">鉴于您的出血情况,请及时联系您的主治医生,以免延误病情诊治!</div>
+          <!-- <div v-else style="margin-top: 2rem;padding: 0 3rem;">鉴于您的出血情况,请及时联系医生或护士进行咨询。</div> -->
       </div>
       <div class="footer">
         <div class="jbbtn" @click="goPage('/patindex')">返回</div>
@@ -48,6 +49,10 @@
     },
     created(){
       //获取时间
+      var flag=this.$route.params.flag
+      if(flag){
+        this.flag=flag
+      }
       this.$api.get_patient_timecalc().then(res=>{
         this.timeinfo=res.data.data
       })

+ 4 - 1
src/components/PatInjectionList.vue

@@ -58,7 +58,9 @@
         if(path==-1){
           this.$router.go(-1)
         }else if(path == 1){
-          this.$router.push({name:'病例管理',params:{id:this.id}})
+          sessionStorage.setItem('id',this.id)
+          this.$router.go(-1)
+          // this.$router.push({name:'病例管理',params:{id:this.id}})
         }else{
           this.$router.push({path:path})
         }
@@ -99,6 +101,7 @@
 </script>
 
 <style scoped lang="scss">
+
   .injectionListForm {
     width: 84%;
     margin: auto;