28169 9 månader sedan
förälder
incheckning
07c90e8417
2 ändrade filer med 32 tillägg och 21 borttagningar
  1. 19 8
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue
  2. 13 13
      src/xt_permission.js

+ 19 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue Visa fil

@@ -727,7 +727,9 @@
727 727
                           class="under_line"
728 728
                           style="width: 100px; text-align: center"
729 729
                         >
730
-                          /
730
+                        {{
731
+                          getDisplaceLiquiPart(record.prescription.displace_liqui_part)
732
+                        }}
731 733
                         </div>
732 734
                       </div>
733 735
                       <div
@@ -1748,7 +1750,7 @@
1748 1750
                               font-weight: 520;
1749 1751
                               font-size: 16px;
1750 1752
                               padding: 6px 8px;
1751
-                              line-height: 30px;
1753
+                              line-height: 24px;
1752 1754
                             "
1753 1755
                           >
1754 1756
                             医嘱内容
@@ -1785,7 +1787,7 @@
1785 1787
                             </td>
1786 1788
 
1787 1789
                             <td
1788
-                              height="35px"
1790
+                              height="26px"
1789 1791
                               colspan="2"
1790 1792
                               class="advice-name"
1791 1793
                               style="padding-left: 7px"
@@ -3118,9 +3120,11 @@ export default {
3118 3120
         "腹痛",
3119 3121
       ],
3120 3122
       org_id: "",
3123
+      displaceLiquiPartOptions:[]
3121 3124
     };
3122 3125
   },
3123 3126
   created() {
3127
+    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
3124 3128
     var bloodAccessParOpera = getDataConfig(
3125 3129
       "hemodialysis",
3126 3130
       "vascular_access_desc"
@@ -3233,11 +3237,8 @@ export default {
3233 3237
             }
3234 3238
 
3235 3239
             var delghTwo = 0;
3236
-            if (
3237
-              this.records[recordIndex].advices &&
3238
-              this.records[recordIndex].advices.length < 14
3239
-            ) {
3240
-              delghTwo = 14 - this.records[recordIndex].advices.length;
3240
+            if (this.records[recordIndex].advices &&this.records[recordIndex].advices.length < 18) {
3241
+              delghTwo =  this.records[recordIndex].advices.length;
3241 3242
             } else {
3242 3243
               delghTwo = 0;
3243 3244
             }
@@ -3348,6 +3349,16 @@ export default {
3348 3349
       });
3349 3350
   },
3350 3351
   methods: {
3352
+    getDisplaceLiquiPart: function (val) {
3353
+      let displace_liqui_part_name = "/";
3354
+      const displace_liqui_part = this.displaceLiquiPartOptions;
3355
+      for (let i = 0; i < displace_liqui_part.length; i++) {
3356
+        if (displace_liqui_part[i].id == val) {
3357
+          displace_liqui_part_name = displace_liqui_part[i].name;
3358
+        }
3359
+      }
3360
+      return displace_liqui_part_name;
3361
+    },
3351 3362
     getUnit: function (val) {
3352 3363
       if (val.assessment_after_dislysis == null) {
3353 3364
         return "";

+ 13 - 13
src/xt_permission.js Visa fil

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