Преглед изворни кода

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

yq1 пре 1 недеља
родитељ
комит
b53843343b
2 измењених фајлова са 29 додато и 29 уклоњено
  1. 16 16
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  2. 13 13
      src/xt_permission.js

+ 16 - 16
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -10,7 +10,7 @@
10 10
                 class="newDialog"
11 11
         >
12 12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
13
-            <div style="position: absolute;left: 20%;top: 3%;width: 75%;">
13
+            <div style="position: absolute;left: 20%;top: 3%;width: 80%;">
14 14
               <span  v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
15 15
                 透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
16 16
               </span>&nbsp;&nbsp;
@@ -28,7 +28,7 @@
28 28
                 <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span>
29 29
               </span>&nbsp;&nbsp;
30 30
             </div>
31
-            <div style="position: absolute;left: 20%;top: 10%;width: 75%;">
31
+            <div style="position: absolute;left: 20%;top: 10%;width: 80%;">
32 32
               <span style="display: inline-block;" v-if="this.$store.getters.xt_user.template_info.org_id==0||this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id ==10721">
33 33
                 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
34 34
               </span>&nbsp;&nbsp;
@@ -48,7 +48,7 @@
48 48
               </span>
49 49
             </div>
50 50
 
51
-            
51
+
52 52
             <!-- <span style="position: absolute;left: 48%;top: 3%"  :modal = 'false'>
53 53
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
54 54
             </span> -->
@@ -951,7 +951,7 @@
951 951
                     </el-col>
952 952
 
953 953
                     <el-col :span="8">
954
-                       
954
+
955 955
                     </el-col>
956 956
 
957 957
                     <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
@@ -2636,7 +2636,7 @@ mu
2636 2636
       },
2637 2637
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2638 2638
         console.log("除非=======================")
2639
-      
2639
+
2640 2640
         if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635  || this.$store.getters.xt_user.template_info.org_id==0   || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10726){
2641 2641
           if(this.predialysis!=undefined){
2642 2642
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
@@ -3105,7 +3105,7 @@ mu
3105 3105
         if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726){
3106 3106
           this.getPatientBefor()
3107 3107
         }
3108
-      
3108
+
3109 3109
 
3110 3110
         let last_weight_after = 0
3111 3111
         let weight_before = 0
@@ -3241,14 +3241,14 @@ mu
3241 3241
         }
3242 3242
 
3243 3243
         if(this.$store.getters.xt_user.template_info.org_id ==10635 || this.$store.getters.xt_user.template_info.org_id ==0 || this.$store.getters.xt_user.template_info.org_id ==10702 ||  this.$store.getters.xt_user.template_info.org_id == 10727 ||  this.$store.getters.xt_user.template_info.org_id == 10721){
3244
-         
3244
+
3245 3245
           if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
3246
-          
3246
+
3247 3247
              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
3248
-          
3248
+
3249 3249
           }
3250 3250
         }
3251
-      
3251
+
3252 3252
       },
3253 3253
       hide() {
3254 3254
         this.isVisibility = false
@@ -3364,7 +3364,7 @@ mu
3364 3364
                 ParamsQuery['mode'] = '1'
3365 3365
                 ParamsQuery['patient_id'] = this.patient.id
3366 3366
                 console.log('第一', ParamsQuery)
3367
-             
3367
+
3368 3368
 
3369 3369
                 postPrescription(ParamsQuery).then(response => {
3370 3370
                   if (response.data.state == 0) {
@@ -4893,7 +4893,7 @@ mu
4893 4893
         })
4894 4894
     },
4895 4895
     getPatientBefor(){
4896
-     
4896
+
4897 4897
        var patient_id = 0
4898 4898
        var record_date =""
4899 4899
        if(this.$route.query.patient_id!=undefined){
@@ -4931,13 +4931,13 @@ mu
4931 4931
             // }
4932 4932
           }
4933 4933
           if(prescription!=undefined){
4934
-           
4934
+
4935 4935
             this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
4936 4936
             this.dialysisPrescription.prescription_water = prescription.prescription_water
4937 4937
           }
4938 4938
 
4939 4939
          }
4940
-      }) 
4940
+      })
4941 4941
     },
4942 4942
     unique(arr) {
4943 4943
       const res = new Map()
@@ -5561,7 +5561,7 @@ mu
5561 5561
 
5562 5562
         }
5563 5563
 
5564
-      
5564
+
5565 5565
 
5566 5566
       },
5567 5567
       stockType: function() {
@@ -5631,7 +5631,7 @@ mu
5631 5631
 
5632 5632
       this.org_id = this.$store.getters.xt_user.org.id
5633 5633
       console.log('this.org_id',this.org_id);
5634
-      
5634
+
5635 5635
     }
5636 5636
   }
5637 5637
 </script>

+ 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))