Ver código fonte

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

XMLWAN 5 anos atrás
pai
commit
d71e51af5f

+ 1 - 1
build/cdn.json Ver arquivo

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "1.1.616"
2
+  "version": "1.1.634"
3 3
 }

+ 2 - 1
src/main.js Ver arquivo

@@ -114,7 +114,7 @@ Vue.use(ElementUI);
114 114
 Vue.config.productionTip = false;
115 115
 
116 116
 /* eslint-disable no-new */
117
-new Vue({
117
+var vue = new Vue({
118 118
   el: "#app",
119 119
   router,
120 120
   store,
@@ -123,5 +123,6 @@ new Vue({
123 123
   },
124 124
   template: "<App/>"
125 125
 });
126
+export default vue
126 127
 
127 128
 // eslint-disable-next-line no-undef

+ 6 - 6
src/pages/home/index.vue Ver arquivo

@@ -82,12 +82,12 @@
82 82
             <div>首页</div>
83 83
           </van-tabbar-item>
84 84
         </router-link>
85
-        <router-link to="/active">
86
-          <van-tabbar-item>
87
-            <i class="iconfont icon-jishiben iconOne"></i>
88
-            <div>致敬医护</div>
89
-          </van-tabbar-item>
90
-        </router-link>
85
+        <!--<router-link to="/active">-->
86
+          <!--<van-tabbar-item>-->
87
+            <!--<i class="iconfont icon-jishiben iconOne"></i>-->
88
+            <!--<div>致敬医护</div>-->
89
+          <!--</van-tabbar-item>-->
90
+        <!--</router-link>-->
91 91
         <!--<router-link to="/service">-->
92 92
           <!--<van-tabbar-item>-->
93 93
             <!--<i class="iconfont icon-fuwu2 iconOne"></i>-->

+ 1 - 0
src/pages/homeIndex/index.vue Ver arquivo

@@ -264,6 +264,7 @@ export default {
264 264
           // });
265 265
         } else {
266 266
           Toast(response.data.msg);
267
+
267 268
         }
268 269
       });
269 270
     },

+ 10 - 10
src/pages/main/template/DialysisPrintOrderOne.vue Ver arquivo

@@ -673,25 +673,25 @@
673 673
                   <tr>
674 674
                     <td width="55">并发症:</td>
675 675
                     <td width="600">
676
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('低血压')>-1?true:false"
676
+                      <label-box :isChecked="afterdialysis.complication.indexOf('低血压')>-1?true:false"
677 677
                                  showValue='低血压'></label-box>
678
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('高血压')>-1?true:false"
678
+                      <label-box :isChecked="afterdialysis.complication.indexOf('高血压')>-1?true:false"
679 679
                                  showValue='高血压'></label-box>
680
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('心律失常')>-1?true:false"
680
+                      <label-box :isChecked="afterdialysis.complication.indexOf('心律失常')>-1?true:false"
681 681
                                  showValue='心律失常'></label-box>
682
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('头晕')>-1?true:false"
682
+                      <label-box :isChecked="afterdialysis.complication.indexOf('头晕')>-1?true:false"
683 683
                                  showValue='头晕'></label-box>
684
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('头痛')>-1?true:false"
684
+                      <label-box :isChecked="afterdialysis.complication.indexOf('头痛')>-1?true:false"
685 685
                                  showValue='头痛'></label-box>
686
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('呕吐')>-1?true:false"
686
+                      <label-box :isChecked="afterdialysis.complication.indexOf('呕吐')>-1?true:false"
687 687
                                  showValue='呕吐'></label-box>
688
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('抽搐')>-1?true:false"
688
+                      <label-box :isChecked="afterdialysis.complication.indexOf('抽搐')>-1?true:false"
689 689
                                  showValue='抽搐'></label-box>
690
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('出血')>-1?true:false"
690
+                      <label-box :isChecked="afterdialysis.complication.indexOf('出血')>-1?true:false"
691 691
                                  showValue='出血'></label-box>
692
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('心衰')>-1?true:false"
692
+                      <label-box :isChecked="afterdialysis.complication.indexOf('心衰')>-1?true:false"
693 693
                                  showValue='心衰'></label-box>
694
-                      <label-box :isChecked="afterdialysis.complications_index.indexOf('腹痛')>-1?true:false"
694
+                      <label-box :isChecked="afterdialysis.complication.indexOf('腹痛')>-1?true:false"
695 695
                                  showValue='腹痛'></label-box>
696 696
 
697 697
                     </td>

+ 11 - 3
src/pages/main/template/DialysisPrintOrderTen.vue Ver arquivo

@@ -45,8 +45,8 @@
45 45
         </div>
46 46
         <div class="inline_block" style="margin-left: 5px;">
47 47
           住院号/门诊号:
48
-          <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
49
-            {{patientInfo.admission_number}}
48
+          <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
49
+            {{receiverTreatmentAccess.admission_number}}
50 50
           </div>
51 51
           <div class="under_line" style="width: 70px;text-align: left" v-else>
52 52
             {{'/'}}
@@ -879,11 +879,19 @@
879 879
                 </div>
880 880
                 <div class="inline_block" style="flex:1;">
881 881
                   治疗医生:
882
-                  <div class="under_line" style="width: 80px;text-align: center">
882
+                  <div class="under_line" style="width: 150px;text-align: center">
883
+                    <img style="height:20px;" src="https://images.shengws.com/FgnRnBcx1BgULJ1dn7VKzeBPEvtm" alt="" srcset="">
883 884
                     <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">{{getAdminUser(prescription.prescription_doctor)}}</span>
884 885
                     <img style="height:20px;" :src="setAdminUserES(prescription.prescription_doctor)" alt="" srcset="" v-else>
885 886
                   </div>
886 887
                 </div>
888
+
889
+                <div class="inline_block" style="flex:1;">
890
+                  患者签名:
891
+                  <div class="under_line" style="width: 80px;text-align: center">
892
+                    <span></span>
893
+                  </div>
894
+                </div>
887 895
               </div>
888 896
             </td>
889 897
           </tr>

+ 2 - 2
src/pages/main/template/DialysisPrintOrderTwo.vue Ver arquivo

@@ -864,8 +864,8 @@
864 864
                 </div>
865 865
                 <div class="inline_block">
866 866
                   &emsp;实际超滤量:
867
-                  <div class="under_line" style="width: 70px;text-align: left" v-if="getFloat(prescription.actual_ultrafiltration)">
868
-                    {{getFloat(prescription.ultrafiltration)}}
867
+                  <div class="under_line" style="width: 70px;text-align: left" v-if="getFloat(afterdialysis.actual_ultrafiltration)">
868
+                    {{getFloat(afterdialysis.actual_ultrafiltration)}}
869 869
                   </div>
870 870
                   <div class="under_line" style="width: 70px;" v-else>
871 871
                     {{'/'}}

+ 1 - 1
src/pages/my/index.vue Ver arquivo

@@ -194,7 +194,7 @@ export default {
194 194
             this.isRouterAlive = true;
195 195
           });
196 196
           localStorage.removeItem("searchWord");
197
-          this.$router.replace("/login");
197
+          this.$router.push("/");
198 198
         }
199 199
       });
200 200
     },

+ 24 - 9
src/utils/request.js Ver arquivo

@@ -2,6 +2,9 @@ import axios from "axios";
2 2
 // import { Toast } from 'mint-ui'
3 3
 import { Toast } from "vant";
4 4
 
5
+import context from '../../src/main.js'
6
+
7
+
5 8
 // create an axios instance
6 9
 const service = axios.create({
7 10
   baseURL: process.env.BASE_API, // api的base_url
@@ -9,6 +12,7 @@ const service = axios.create({
9 12
   withCredentials: true
10 13
 });
11 14
 
15
+var self = this;
12 16
 // respone interceptor
13 17
 service.interceptors.response.use(
14 18
   // response => response,
@@ -16,17 +20,28 @@ service.interceptors.response.use(
16 20
     const res = response.data;
17 21
     if (res.state !== 1) {
18 22
       if (res.code === 20049) {
19
-        location.reload();
20
-        return Promise.reject("error");
21
-      } else if (res.code == 20035){
23
+        // this.$router.replace("/")
24
+        // this.$router.replace({ path: "/" });
25
+        // window.location.href=window.location.href+
26
+        // window.location.href = location.href+'?time='+((new Date()).getTime());
27
+        // this.$router.go(0)
28
+        // this.refresh()
29
+        context.$router.replace({ path: "/" })
30
+
31
+        // return
32
+      } else if (res.code === 20035){
22 33
         Toast("你已经被管理员禁用,无法使用该系统");
23
-        location.reload();
24
-        return Promise.reject("error");
25
-      }else if(res.code == 6001){
34
+        context.$router.replace({ path: "/" })
35
+        return
36
+      }else if(res.code === 6001){
26 37
         Toast("登录超时");
27
-        location.reload();
28
-        window.androidinfo.showInfoFromJs("1233");
29
-        return Promise.reject("error");
38
+        context.$router.replace({ path: "/" })
39
+        return
40
+      }else if(res.code === 6002){
41
+        Toast("登录信息丢失,正在刷新页面");
42
+        context.$router.replace({ path: "/" })
43
+        return
44
+
30 45
       }else {
31 46
         return response;
32 47
       }