See999 5 年之前
父節點
當前提交
4ae1b032a7

+ 2 - 2
config/dev.env.js 查看文件

@@ -6,8 +6,8 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://api.xt.test.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API:'"http://localhost:9531"',
9
+  // BASE_API: '"http://api.xt.test.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
+  BASE_API:'"http://localhost:9531"',
11 11
   SSO_HOST: '"http://testsso.sgjyun.com"',
12 12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13 13
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js 查看文件

@@ -19,8 +19,8 @@ module.exports = {
19 19
 
20 20
     // host: 'xt.test.sgjyun.com',
21 21
     // host: 'xt.kuyicloud.com',
22
-    host: 'xt.test.sgjyun.com',
23
-    //host:'localhost',
22
+    // host: 'xt.test.sgjyun.com',
23
+    host:'localhost',
24 24
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
25 25
     autoOpenBrowser: true,
26 26
     errorOverlay: true,

+ 3 - 3
config/sit.env.js 查看文件

@@ -4,8 +4,8 @@ module.exports = {
4 4
   BASE_API: '"http://new_mobile.xt.api.sgjyun.com"',
5 5
 
6 6
   SSO_HOST: '"https://testsso.sgjyun.com"',
7
-  SRCM_HOST: '"https://test1.sgjyun.com"',
8
-  XT_HOST: '"https://xt.test.sgjyun.com"',
7
+  SRCM_HOST: '"http://test1.sgjyun.com"',
8
+  XT_HOST: '"http://xt.test.sgjyun.com"',
9 9
   MIRCO_MALL_HOST: '"https://mall.test.sgjyun.com"',
10
-  CDM_HOST: '"https://cdm.test.sgjyun.com"',
10
+  CDM_HOST: '"http://cdm.test.sgjyun.com"',
11 11
 }

+ 1 - 5
src/views/layout/components/Navbar.vue 查看文件

@@ -274,10 +274,7 @@ export default {
274 274
       );
275 275
     },
276 276
     toClick() {
277
-      window.location.href = "https://testsso.sgjyun.com/help";
278
-    },
279
-    getCreatorName() {
280
-      getCreatorName().then(response => {});
277
+      window.location.href = "https://sso.kuyicloud.com/help";
281 278
     }
282 279
   },
283 280
   created() {
@@ -294,7 +291,6 @@ export default {
294 291
         }
295 292
       }
296 293
     });
297
-    this.getCreatorName();
298 294
   }
299 295
 };
300 296
 </script>

+ 10 - 10
src/views/layout/components/Sidebar/index.vue 查看文件

@@ -37,14 +37,14 @@
37 37
         :index="index"
38 38
         @a="b"
39 39
       ></sidebar-item>
40
-      <el-menu-item v-if="this.$store.getters.xt_user.cdm_role_exist" index="100">
41
-        <a :href="CDMWebsit()">
42
-          <i class="icon iconfont icon-manbing-xuanzhong" style="margin-right:4px"></i>
43
-          <span
44
-            slot="title"
45
-          >慢病管理</span>
46
-        </a>
47
-      </el-menu-item>
40
+     <el-menu-item v-if="this.$store.getters.xt_user.cdm_role_exist" index="100">
41
+      <a :href="CDMWebsit()">
42
+        <i class="icon iconfont icon-manbing-xuanzhong" style="margin-right:4px"></i>
43
+        <span
44
+          slot="title"
45
+        >慢病管理</span>
46
+      </a>
47
+    </el-menu-item>
48 48
       <el-menu-item v-if="this.$store.getters.xt_user.scrm_role_exist" index="101">
49 49
         <a :href="SCRMWebsit()">
50 50
           <i class="icon iconfont icon-pengyou" style="margin-right:4px"></i>
@@ -58,11 +58,11 @@
58 58
           <i class="icon iconfont icon-service_fill" style="margin-right:4px"></i>
59 59
           <span
60 60
             slot="title"
61
-          >商城</span>
61
+          >分销商城</span>
62 62
         </a>
63 63
       </el-menu-item>
64 64
     </el-menu>
65
-    
65
+
66 66
   </el-scrollbar>
67 67
   <!-- <div class="mianLeft">
68 68
     <div class="logo">

+ 58 - 64
src/xt_pages/dialysis/batch_print/batch_print_order.vue 查看文件

@@ -1137,46 +1137,38 @@
1137 1137
                       </div>
1138 1138
                       <div class="inline_block" style="margin-left: 20px;">
1139 1139
                         透析器凝血:
1140
-                        <check-box
1141
-                          text="0级"
1142
-                          :checked="
1143
-                            isValueIndexOfCheck(
1144
-                              record.assessment_after_dislysis,
1145
-                              'cruor',
1146
-                              '0度'
1147
-                            )
1140
+                        <label-box
1141
+                          :isChecked="
1142
+                            record.assessment_after_dislysis.dialyzer == 1
1143
+                              ? true
1144
+                              : false
1148 1145
                           "
1149
-                        ></check-box>
1150
-                        <check-box
1151
-                          text="Ⅰ级"
1152
-                          :checked="
1153
-                            isValueIndexOfCheck(
1154
-                              record.assessment_after_dislysis,
1155
-                              'cruor',
1156
-                              'Ⅰ度'
1157
-                            )
1146
+                          showValue="0 级"
1147
+                        ></label-box>
1148
+                        <label-box
1149
+                          :isChecked="
1150
+                            record.assessment_after_dislysis.dialyzer == 2
1151
+                              ? true
1152
+                              : false
1158 1153
                           "
1159
-                        ></check-box>
1160
-                        <check-box
1161
-                          text="Ⅱ级"
1162
-                          :checked="
1163
-                            isValueIndexOfCheck(
1164
-                              record.assessment_after_dislysis,
1165
-                              'cruor',
1166
-                              'Ⅱ度'
1167
-                            )
1154
+                          showValue="Ⅰ 级"
1155
+                        ></label-box>
1156
+                        <label-box
1157
+                          :isChecked="
1158
+                            record.assessment_after_dislysis.dialyzer == 3
1159
+                              ? true
1160
+                              : false
1168 1161
                           "
1169
-                        ></check-box>
1170
-                        <check-box
1171
-                          text="Ⅲ级"
1172
-                          :checked="
1173
-                            isValueIndexOfCheck(
1174
-                              record.assessment_after_dislysis,
1175
-                              'cruor',
1176
-                              'Ⅲ度'
1177
-                            )
1162
+                          showValue="Ⅱ 级"
1163
+                        ></label-box>
1164
+                        <label-box
1165
+                          :isChecked="
1166
+                            record.assessment_after_dislysis.dialyzer == 4
1167
+                              ? true
1168
+                              : false
1178 1169
                           "
1179
-                        ></check-box>
1170
+                          showValue="Ⅲ 级"
1171
+                        ></label-box>
1180 1172
                       </div>
1181 1173
                     </div>
1182 1174
                     <div class="row" style="padding: 2px 0;">
@@ -1228,36 +1220,36 @@
1228 1220
                       </div>
1229 1221
                       <div class="inline_block" style="margin-left: 40px;">
1230 1222
                         压迫后内瘘震颤:
1231
-                        <check-box
1232
-                          text="存在"
1233
-                          :checked="
1234
-                            isCheckBoxChecked(
1235
-                              record.assessment_after_dislysis,
1236
-                              'internal_fistula_tremor_ac',
1237
-                              1
1238
-                            )
1223
+                        <label-box
1224
+                          :isChecked="
1225
+                            record.assessment_after_dislysis.internal_fistula.indexOf(
1226
+                              '震颤-存在'
1227
+                            ) > -1
1228
+                              ? true
1229
+                              : false
1239 1230
                           "
1240
-                        ></check-box>
1241
-                        <check-box
1242
-                          text="减弱"
1243
-                          :checked="
1244
-                            isCheckBoxChecked(
1245
-                              record.assessment_after_dislysis,
1246
-                              'internal_fistula_tremor_ac',
1247
-                              2
1248
-                            )
1231
+                          showValue="存在"
1232
+                        ></label-box>
1233
+                        <label-box
1234
+                          :isChecked="
1235
+                            record.assessment_after_dislysis.internal_fistula.indexOf(
1236
+                              '震颤-减弱'
1237
+                            ) > -1
1238
+                              ? true
1239
+                              : false
1249 1240
                           "
1250
-                        ></check-box>
1251
-                        <check-box
1252
-                          text="无"
1253
-                          :checked="
1254
-                            isCheckBoxChecked(
1255
-                              record.assessment_after_dislysis,
1256
-                              'internal_fistula_tremor_ac',
1257
-                              3
1258
-                            )
1241
+                          showValue="减弱"
1242
+                        ></label-box>
1243
+                        <label-box
1244
+                          :isChecked="
1245
+                            record.assessment_after_dislysis.internal_fistula.indexOf(
1246
+                              '震颤-无'
1247
+                            ) > -1
1248
+                              ? true
1249
+                              : false
1259 1250
                           "
1260
-                        ></check-box>
1251
+                          showValue="无"
1252
+                        ></label-box>
1261 1253
                       </div>
1262 1254
                     </div>
1263 1255
                     <div class="row" style="padding: 2px 0;">
@@ -1871,13 +1863,15 @@ import CheckBox from "./option_check_box";
1871 1863
 import { GetBatchPrintDialysisData } from "@/api/print_data";
1872 1864
 import { jsGetAge, uParseTime } from "@/utils/tools";
1873 1865
 import { getDataConfig } from "@/utils/data";
1866
+import LabelBox from "../printItem/LabelBox";
1874 1867
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
1875 1868
 import print from "print-js";
1876 1869
 export default {
1877 1870
   name: "BatchPrintOrder",
1878 1871
   components: {
1879 1872
     CheckBox,
1880
-    BreadCrumb
1873
+    BreadCrumb,
1874
+    LabelBox
1881 1875
   },
1882 1876
   data() {
1883 1877
     return {

文件差異過大導致無法顯示
+ 2030 - 604
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue


文件差異過大導致無法顯示
+ 2582 - 1018
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue


+ 274 - 248
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

@@ -13,7 +13,6 @@
13 13
     </div>
14 14
     <div class="app-container">
15 15
       <div id="print_content">
16
-
17 16
         <div
18 17
           v-for="(record, index) in records"
19 18
           :key="index"
@@ -100,56 +99,58 @@
100 99
             <div class="inline_block">
101 100
               入科方式:
102 101
               <!--<check-box-->
103
-                <!--v-for="(item, index) in way_arr"-->
104
-                <!--:key="index"-->
105
-                <!--:text="item.name"-->
106
-                <!--:checked="-->
107
-                            <!--isCheckBoxChecked(-->
108
-                              <!--record.receive_assessment,-->
109
-                              <!--'way',-->
110
-                              <!--item.id-->
111
-                            <!--)-->
112
-                          <!--"-->
102
+              <!--v-for="(item, index) in way_arr"-->
103
+              <!--:key="index"-->
104
+              <!--:text="item.name"-->
105
+              <!--:checked="-->
106
+              <!--isCheckBoxChecked(-->
107
+              <!--record.receive_assessment,-->
108
+              <!--'way',-->
109
+              <!--item.id-->
110
+              <!--)-->
111
+              <!--"-->
113 112
               <!--&gt;</check-box>-->
114 113
               <!--<div-->
115
-                <!--class="under_line"-->
116
-                <!--v-if="record.receive_assessment.way == 0"-->
117
-                <!--style="width: 180px;text-align: left"-->
114
+              <!--class="under_line"-->
115
+              <!--v-if="record.receive_assessment.way == 0"-->
116
+              <!--style="width: 180px;text-align: left"-->
118 117
               <!--&gt;</div>-->
119 118
 
120 119
               <div
121
-                v-for="item,index in way_arr"
120
+                v-for="(item, index) in way_arr"
122 121
                 class="under_line"
123 122
                 v-if="record.receive_assessment.way == item.id"
124 123
                 style="width: 180px;text-align: left"
125
-              >{{item.name}}</div>
124
+              >
125
+                {{ item.name }}
126
+              </div>
126 127
               <!--<div-->
127
-                <!--class="under_line"-->
128
-                <!--v-if="C.receive_assessment.way == 1"-->
129
-                <!--style="width: 180px;text-align: left"-->
128
+              <!--class="under_line"-->
129
+              <!--v-if="C.receive_assessment.way == 1"-->
130
+              <!--style="width: 180px;text-align: left"-->
130 131
               <!--&gt;-->
131
-                <!--步行-->
132
+              <!--步行-->
132 133
               <!--</div>-->
133 134
               <!--<div-->
134
-                <!--class="under_line"-->
135
-                <!--v-if="record.receive_assessment.way == 2"-->
136
-                <!--style="width: 180px;text-align: left"-->
135
+              <!--class="under_line"-->
136
+              <!--v-if="record.receive_assessment.way == 2"-->
137
+              <!--style="width: 180px;text-align: left"-->
137 138
               <!--&gt;-->
138
-                <!--扶行-->
139
+              <!--扶行-->
139 140
               <!--</div>-->
140 141
               <!--<div-->
141
-                <!--class="under_line"-->
142
-                <!--v-if="record.receive_assessment.way == 3"-->
143
-                <!--style="width: 180px;text-align: left"-->
142
+              <!--class="under_line"-->
143
+              <!--v-if="record.receive_assessment.way == 3"-->
144
+              <!--style="width: 180px;text-align: left"-->
144 145
               <!--&gt;-->
145
-                <!--轮椅-->
146
+              <!--轮椅-->
146 147
               <!--</div>-->
147 148
               <!--<div-->
148
-                <!--class="under_line"-->
149
-                <!--v-if="record.receive_assessment.way == 4"-->
150
-                <!--style="width: 180px;text-align: left"-->
149
+              <!--class="under_line"-->
150
+              <!--v-if="record.receive_assessment.way == 4"-->
151
+              <!--style="width: 180px;text-align: left"-->
151 152
               <!--&gt;-->
152
-                <!--平车-->
153
+              <!--平车-->
153 154
               <!--</div>-->
154 155
             </div>
155 156
             <div class="inline_block" style="margin-left: 10px;">
@@ -1213,43 +1214,45 @@
1213 1214
               <div class="inline_block">
1214 1215
                 入科方式:
1215 1216
                 <div
1216
-                  v-for="item,index in way_arr"
1217
+                  v-for="(item, index) in way_arr"
1217 1218
                   class="under_line"
1218 1219
                   v-if="record.receive_assessment.way == item.id"
1219 1220
                   style="width: 180px;text-align: left"
1220
-                >{{item.name}}</div>
1221
+                >
1222
+                  {{ item.name }}
1223
+                </div>
1221 1224
                 <!--<div-->
1222
-                  <!--class="under_line"-->
1223
-                  <!--v-if="record.receive_assessment.way == 0"-->
1224
-                  <!--style="width: 180px;text-align: left"-->
1225
+                <!--class="under_line"-->
1226
+                <!--v-if="record.receive_assessment.way == 0"-->
1227
+                <!--style="width: 180px;text-align: left"-->
1225 1228
                 <!--&gt;</div>-->
1226 1229
                 <!--<div-->
1227
-                  <!--class="under_line"-->
1228
-                  <!--v-if="record.receive_assessment == 1"-->
1229
-                  <!--style="width: 180px;text-align: left"-->
1230
+                <!--class="under_line"-->
1231
+                <!--v-if="record.receive_assessment == 1"-->
1232
+                <!--style="width: 180px;text-align: left"-->
1230 1233
                 <!--&gt;-->
1231
-                  <!--步行-->
1234
+                <!--步行-->
1232 1235
                 <!--</div>-->
1233 1236
                 <!--<div-->
1234
-                  <!--class="under_line"-->
1235
-                  <!--v-if="record.receive_assessment == 2"-->
1236
-                  <!--style="width: 180px;text-align: left"-->
1237
+                <!--class="under_line"-->
1238
+                <!--v-if="record.receive_assessment == 2"-->
1239
+                <!--style="width: 180px;text-align: left"-->
1237 1240
                 <!--&gt;-->
1238
-                  <!--扶行-->
1241
+                <!--扶行-->
1239 1242
                 <!--</div>-->
1240 1243
                 <!--<div-->
1241
-                  <!--class="under_line"-->
1242
-                  <!--v-if="record.receive_assessment == 3"-->
1243
-                  <!--style="width: 180px;text-align: left"-->
1244
+                <!--class="under_line"-->
1245
+                <!--v-if="record.receive_assessment == 3"-->
1246
+                <!--style="width: 180px;text-align: left"-->
1244 1247
                 <!--&gt;-->
1245
-                  <!--轮椅-->
1248
+                <!--轮椅-->
1246 1249
                 <!--</div>-->
1247 1250
                 <!--<div-->
1248
-                  <!--class="under_line"-->
1249
-                  <!--v-if="record.receive_assessment == 4"-->
1250
-                  <!--style="width: 180px;text-align: left"-->
1251
+                <!--class="under_line"-->
1252
+                <!--v-if="record.receive_assessment == 4"-->
1253
+                <!--style="width: 180px;text-align: left"-->
1251 1254
                 <!--&gt;-->
1252
-                  <!--平车-->
1255
+                <!--平车-->
1253 1256
                 <!--</div>-->
1254 1257
               </div>
1255 1258
               <div class="inline_block" style="margin-left: 10px;">
@@ -1376,12 +1379,36 @@
1376 1379
                           class="under_line"
1377 1380
                           style="width: 100px;text-align: center"
1378 1381
                         >
1379
-                          {{
1380
-                            record.assessment_after_dislysis &&
1381
-                            record.assessment_after_dislysis.cruor
1382
-                              ? record.assessment_after_dislysis.cruor
1383
-                              : "/"
1384
-                          }}
1382
+                          <span
1383
+                            v-if="
1384
+                              record.assessment_after_dislysis.dialyzer == 0
1385
+                            "
1386
+                            >/</span
1387
+                          >
1388
+                          <span
1389
+                            v-if="
1390
+                              record.assessment_after_dislysis.dialyzer == 1
1391
+                            "
1392
+                            >透析器0</span
1393
+                          >
1394
+                          <span
1395
+                            v-if="
1396
+                              record.assessment_after_dislysis.dialyzer == 2
1397
+                            "
1398
+                            >透析器+</span
1399
+                          >
1400
+                          <span
1401
+                            v-if="
1402
+                              record.assessment_after_dislysis.dialyzer == 3
1403
+                            "
1404
+                            >透析器++</span
1405
+                          >
1406
+                          <span
1407
+                            v-if="
1408
+                              record.assessment_after_dislysis.dialyzer == 4
1409
+                            "
1410
+                            >透析器+++</span
1411
+                          >
1385 1412
                         </div>
1386 1413
                       </div>
1387 1414
                       <div class="inline_block" style="flex:1;">
@@ -1533,7 +1560,9 @@
1533 1560
                           style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;"
1534 1561
                         >
1535 1562
                           {{
1536
-                            record.summer && record.summer.dialysis_summary? record.summer.dialysis_summary: "/"
1563
+                            record.summer && record.summer.dialysis_summary
1564
+                              ? record.summer.dialysis_summary
1565
+                              : "/"
1537 1566
                           }}
1538 1567
                         </div>
1539 1568
                       </div>
@@ -1796,14 +1825,14 @@
1796 1825
 </template>
1797 1826
 
1798 1827
 <script>
1799
-import CheckBox from './option_check_box'
1800
-import { GetBatchPrintDialysisData } from '@/api/print_data'
1801
-import { jsGetAge, uParseTime } from '@/utils/tools'
1802
-import { getDataConfig } from '@/utils/data'
1803
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
1804
-import print from 'print-js'
1828
+import CheckBox from "./option_check_box";
1829
+import { GetBatchPrintDialysisData } from "@/api/print_data";
1830
+import { jsGetAge, uParseTime } from "@/utils/tools";
1831
+import { getDataConfig } from "@/utils/data";
1832
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
1833
+import print from "print-js";
1805 1834
 export default {
1806
-  name: 'BatchPrintOrderSix',
1835
+  name: "BatchPrintOrderSix",
1807 1836
   components: {
1808 1837
     CheckBox,
1809 1838
     BreadCrumb
@@ -1811,8 +1840,8 @@ export default {
1811 1840
   data() {
1812 1841
     return {
1813 1842
       crumbs: [
1814
-        { path: false, name: '透析管理' },
1815
-        { path: false, name: '批量打印' }
1843
+        { path: false, name: "透析管理" },
1844
+        { path: false, name: "批量打印" }
1816 1845
       ],
1817 1846
 
1818 1847
       way_arr: [],
@@ -1824,8 +1853,6 @@ export default {
1824 1853
       intake_arr: [],
1825 1854
       nutrition_arr: [],
1826 1855
 
1827
-
1828
-
1829 1856
       records: [
1830 1857
         // 模拟有多条数据
1831 1858
         // {
@@ -1838,7 +1865,7 @@ export default {
1838 1865
         // },
1839 1866
       ],
1840 1867
       loading: false,
1841
-      orgname: '',
1868
+      orgname: "",
1842 1869
       bloodAccessParOpera: {},
1843 1870
       anticoagulantsConfit: {},
1844 1871
       dialysateFormulationOptions: {},
@@ -1851,58 +1878,57 @@ export default {
1851 1878
       advice_groups_2: [],
1852 1879
       blood_access_part: [],
1853 1880
       complications: [
1854
-        '低血压',
1855
-        '高血压',
1856
-        '心律失常',
1857
-        '头晕',
1858
-        '头痛',
1859
-        '呕吐',
1860
-        '抽搐',
1861
-        '出血',
1862
-        '心衰',
1863
-        '腹痛'
1881
+        "低血压",
1882
+        "高血压",
1883
+        "心律失常",
1884
+        "头晕",
1885
+        "头痛",
1886
+        "呕吐",
1887
+        "抽搐",
1888
+        "出血",
1889
+        "心衰",
1890
+        "腹痛"
1864 1891
       ]
1865
-    }
1892
+    };
1866 1893
   },
1867 1894
   created() {
1868
-    this.way_arr = getDataConfig('hemodialysis', 'way')
1869
-    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1870
-    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1871
-    this.posture_arr = getDataConfig('hemodialysis', 'posture')
1872
-    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1873
-    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1874
-    this.intake_arr = getDataConfig('hemodialysis', 'intake')
1875
-    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1876
-
1877
-
1878
-    console.log('触发模板6')
1879
-    var xtuser = this.$store.getters.xt_user
1880
-    console.log('xtuser', xtuser)
1881
-    this.orgname = xtuser.org.org_name
1895
+    this.way_arr = getDataConfig("hemodialysis", "way");
1896
+    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1897
+    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
1898
+    this.posture_arr = getDataConfig("hemodialysis", "posture");
1899
+    this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
1900
+    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1901
+    this.intake_arr = getDataConfig("hemodialysis", "intake");
1902
+    this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1903
+
1904
+    console.log("触发模板6");
1905
+    var xtuser = this.$store.getters.xt_user;
1906
+    console.log("xtuser", xtuser);
1907
+    this.orgname = xtuser.org.org_name;
1882 1908
     //   this.orgname = "遂溪方济医院";
1883
-    this.modeOptions = this.$store.getters.treatment_mode
1909
+    this.modeOptions = this.$store.getters.treatment_mode;
1884 1910
     //   this.replacementWays = this.$store.getters.replacement_ways;
1885 1911
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1886
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1912
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1887 1913
 
1888 1914
     var bloodAccessParOpera = getDataConfig(
1889
-      'hemodialysis',
1890
-      'vascular_access_desc'
1891
-    )
1915
+      "hemodialysis",
1916
+      "vascular_access_desc"
1917
+    );
1892 1918
     for (var key in bloodAccessParOpera) {
1893 1919
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1894
-        bloodAccessParOpera[key]
1920
+        bloodAccessParOpera[key];
1895 1921
     }
1896 1922
 
1897
-    this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
1923
+    this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
1898 1924
 
1899 1925
     var dialysateFormulationOptions = getDataConfig(
1900
-      'hemodialysis',
1901
-      'dialysate_formulation'
1902
-    )
1926
+      "hemodialysis",
1927
+      "dialysate_formulation"
1928
+    );
1903 1929
     for (var key in dialysateFormulationOptions) {
1904 1930
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1905
-        dialysateFormulationOptions[key]
1931
+        dialysateFormulationOptions[key];
1906 1932
     }
1907 1933
 
1908 1934
     // const xtdate = this.$route.query && this.$route.query.xtdate;
@@ -1917,22 +1943,22 @@ export default {
1917 1943
     //   }
1918 1944
   },
1919 1945
   mounted() {
1920
-    this.loading = true
1921
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
1946
+    this.loading = true;
1947
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
1922 1948
     if (ids.length == 0) {
1923
-      this.$router.back(-1)
1924
-      return
1949
+      this.$router.back(-1);
1950
+      return;
1925 1951
     }
1926
-    GetBatchPrintDialysisData(ids.join(','))
1952
+    GetBatchPrintDialysisData(ids.join(","))
1927 1953
       .then(rs => {
1928
-        var resp = rs.data
1954
+        var resp = rs.data;
1929 1955
         if (resp.state == 1) {
1930
-          this.records = this.records.concat(resp.data.schedules)
1931
-          console.log('this', this.records)
1956
+          this.records = this.records.concat(resp.data.schedules);
1957
+          console.log("this", this.records);
1932 1958
           for (const recordIndex in this.records) {
1933
-            this.advice_groups = []
1934
-            this.advice_groups_2 = []
1935
-            var dlegh = 0
1959
+            this.advice_groups = [];
1960
+            this.advice_groups_2 = [];
1961
+            var dlegh = 0;
1936 1962
             if (
1937 1963
               (this.records[recordIndex].assessment_before_dislysis &&
1938 1964
                 this.records[recordIndex].assessment_before_dislysis
@@ -1952,20 +1978,20 @@ export default {
1952 1978
                 this.records[recordIndex].assessment_before_dislysis
1953 1979
                   .temperature != 0)
1954 1980
             ) {
1955
-              var nl = 6
1956
-              this.records[recordIndex].print_length = 8
1981
+              var nl = 6;
1982
+              this.records[recordIndex].print_length = 8;
1957 1983
               if (this.records[recordIndex].length > 8) {
1958
-                this.records[recordIndex].classname = 'margin-bottom-900'
1984
+                this.records[recordIndex].classname = "margin-bottom-900";
1959 1985
               } else {
1960
-                this.records[recordIndex].classname = 'margin-bottom-300'
1986
+                this.records[recordIndex].classname = "margin-bottom-300";
1961 1987
               }
1962 1988
             } else {
1963
-              var nl = 6
1964
-              this.records[recordIndex].print_length = 9
1989
+              var nl = 6;
1990
+              this.records[recordIndex].print_length = 9;
1965 1991
               if (this.records[recordIndex].length > 9) {
1966
-                this.records[recordIndex].classname = 'margin-bottom-900'
1992
+                this.records[recordIndex].classname = "margin-bottom-900";
1967 1993
               } else {
1968
-                this.records[recordIndex].classname = 'margin-bottom-300'
1994
+                this.records[recordIndex].classname = "margin-bottom-300";
1969 1995
               }
1970 1996
             }
1971 1997
             if (
@@ -1978,64 +2004,64 @@ export default {
1978 2004
               ].assessment_before_dislysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1979 2005
                 this.records[recordIndex].assessment_before_dislysis
1980 2006
                   .blood_access_part_opera_id
1981
-              )
2007
+              );
1982 2008
             }
1983 2009
 
1984 2010
             if (recordIndex == this.records.length - 1) {
1985
-              this.records[recordIndex].classname = ' '
2011
+              this.records[recordIndex].classname = " ";
1986 2012
             }
1987 2013
 
1988
-            this.records[recordIndex].monitor_records2 = []
2014
+            this.records[recordIndex].monitor_records2 = [];
1989 2015
             if (
1990 2016
               this.records[recordIndex].monitor_records &&
1991 2017
               this.records[recordIndex].monitor_records.length < 7
1992 2018
             ) {
1993
-              dlegh = nl - this.records[recordIndex].monitor_records.length
2019
+              dlegh = nl - this.records[recordIndex].monitor_records.length;
1994 2020
             }
1995 2021
             if (this.records[recordIndex].monitor_records.length <= 0) {
1996
-              dlegh = nl
2022
+              dlegh = nl;
1997 2023
             }
1998 2024
             if (dlegh > 0) {
1999 2025
               if (
2000 2026
                 typeof this.records[recordIndex].monitor_records ===
2001
-                  'undefined' ||
2027
+                  "undefined" ||
2002 2028
                 this.records[recordIndex].monitor_records == null
2003 2029
               ) {
2004
-                this.records[recordIndex].monitor_records = []
2030
+                this.records[recordIndex].monitor_records = [];
2005 2031
               }
2006 2032
               for (let index = 0; index < dlegh; index++) {
2007
-                this.records[recordIndex].monitor_records2.push([])
2033
+                this.records[recordIndex].monitor_records2.push([]);
2008 2034
               }
2009 2035
             }
2010 2036
 
2011
-            var tempmonitorflag = true
2037
+            var tempmonitorflag = true;
2012 2038
             for (
2013 2039
               let index = 0;
2014 2040
               index < this.records[recordIndex].monitor_records.length;
2015 2041
               index++
2016 2042
             ) {
2017
-              const monitor = this.records[recordIndex].monitor_records[index]
2018
-              this.records[recordIndex].monitor_records[index].end = ''
2043
+              const monitor = this.records[recordIndex].monitor_records[index];
2044
+              this.records[recordIndex].monitor_records[index].end = "";
2019 2045
               if (Object.keys(monitor).length > 0 && index > 1) {
2020 2046
                 if (
2021 2047
                   monitor.operate_time ==
2022 2048
                   this.records[recordIndex].dialysis_order.end_time
2023 2049
                 ) {
2024 2050
                   this.records[recordIndex].monitor_records[index].end =
2025
-                    '【结束透析】'
2026
-                  tempmonitorflag = false
2051
+                    "【结束透析】";
2052
+                  tempmonitorflag = false;
2027 2053
                 }
2028 2054
                 if (
2029 2055
                   tempmonitorflag &&
2030 2056
                   index == this.records[recordIndex].monitor_records.length - 1
2031 2057
                 ) {
2032 2058
                   this.records[recordIndex].monitor_records[index].end =
2033
-                    '【结束透析】'
2059
+                    "【结束透析】";
2034 2060
                 }
2035 2061
               }
2036 2062
             }
2037 2063
 
2038
-            this.monitor_records = this.records[recordIndex].monitor_records
2064
+            this.monitor_records = this.records[recordIndex].monitor_records;
2039 2065
 
2040 2066
             // this.records[recordIndex].monitor_records2 = []
2041 2067
             // if (this.records[recordIndex].monitor_records.length > 13){
@@ -2053,10 +2079,10 @@ export default {
2053 2079
             // this.records[recordIndex].monitor_records2 = tempMonitors2
2054 2080
             // }
2055 2081
 
2056
-            var childMap = {}
2082
+            var childMap = {};
2057 2083
             for (const index in this.records[recordIndex].advices) {
2058 2084
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2059
-                continue
2085
+                continue;
2060 2086
               }
2061 2087
               if (
2062 2088
                 !(
@@ -2065,33 +2091,33 @@ export default {
2065 2091
               ) {
2066 2092
                 childMap[
2067 2093
                   this.records[recordIndex].advices[index].parent_id
2068
-                ] = []
2094
+                ] = [];
2069 2095
               }
2070 2096
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2071 2097
                 this.records[recordIndex].advices[index]
2072
-              )
2098
+              );
2073 2099
             }
2074 2100
 
2075
-            var advices = []
2101
+            var advices = [];
2076 2102
             for (const index in this.records[recordIndex].advices) {
2077 2103
               if (this.records[recordIndex].advices[index].parent_id > 0) {
2078
-                continue
2104
+                continue;
2079 2105
               }
2080
-              var item = this.records[recordIndex].advices[index]
2106
+              var item = this.records[recordIndex].advices[index];
2081 2107
               if (item.id in childMap) {
2082
-                item.children = childMap[item.id]
2108
+                item.children = childMap[item.id];
2083 2109
               } else {
2084
-                item.children = []
2110
+                item.children = [];
2085 2111
               }
2086
-              advices.push(item)
2112
+              advices.push(item);
2087 2113
             }
2088 2114
 
2089 2115
             this.doctor_advices =
2090 2116
               this.records[recordIndex].advices == null
2091 2117
                 ? []
2092
-                : this.records[recordIndex].advices
2118
+                : this.records[recordIndex].advices;
2093 2119
             for (let index = 0; index < this.doctor_advices.length; index++) {
2094
-              this.doctor_advices[index]['isShow'] = 2
2120
+              this.doctor_advices[index]["isShow"] = 2;
2095 2121
             }
2096 2122
 
2097 2123
             // if (this.doctor_advices.length > 0) {
@@ -2231,243 +2257,243 @@ export default {
2231 2257
             // }
2232 2258
 
2233 2259
             if (this.doctor_advices.length <= 6) {
2234
-              var nl = 6
2235
-              this.print_length = 6
2260
+              var nl = 6;
2261
+              this.print_length = 6;
2236 2262
 
2237 2263
               for (let index = 0; index < nl; index++) {
2238 2264
                 if (
2239 2265
                   this.doctor_advices[index] == undefined ||
2240 2266
                   this.doctor_advices[index].length <= 0
2241 2267
                 ) {
2242
-                  this.doctor_advices.push([])
2268
+                  this.doctor_advices.push([]);
2243 2269
                 } else {
2244
-                  continue
2270
+                  continue;
2245 2271
                 }
2246 2272
               }
2247 2273
             }
2248
-            this.records[recordIndex].advices = []
2249
-            this.records[recordIndex].advices2 = []
2250
-            this.records[recordIndex].advices = this.doctor_advices
2251
-            this.records[recordIndex].advices2 = this.advice_groups_2
2274
+            this.records[recordIndex].advices = [];
2275
+            this.records[recordIndex].advices2 = [];
2276
+            this.records[recordIndex].advices = this.doctor_advices;
2277
+            this.records[recordIndex].advices2 = this.advice_groups_2;
2252 2278
 
2253 2279
             this.records[recordIndex].totallength =
2254
-              this.doctor_advices.length + this.monitor_records.length
2280
+              this.doctor_advices.length + this.monitor_records.length;
2255 2281
           }
2256 2282
 
2257
-          this.operators = resp.data.medical_staffs
2283
+          this.operators = resp.data.medical_staffs;
2258 2284
           if (this.operators.length > 0) {
2259
-            var operatorsLen = this.operators.length
2285
+            var operatorsLen = this.operators.length;
2260 2286
             for (var index = 0; index < operatorsLen; index++) {
2261 2287
               this.$set(
2262 2288
                 this.operatorMaps,
2263 2289
                 this.operators[index].id,
2264 2290
                 this.operators[index]
2265
-              )
2291
+              );
2266 2292
             }
2267 2293
           }
2268 2294
 
2269
-          this.adminUser = resp.data.users
2270
-          console.log("使用者",this.adminUser)
2271
-          this.loading = false
2295
+          this.adminUser = resp.data.users;
2296
+          console.log("使用者", this.adminUser);
2297
+          this.loading = false;
2272 2298
         } else {
2273
-          this.loading = false
2274
-          this.$message.error(resp.msg)
2299
+          this.loading = false;
2300
+          this.$message.error(resp.msg);
2275 2301
         }
2276 2302
       })
2277 2303
       .catch(err => {
2278
-        this.$message.error(err)
2279
-      })
2304
+        this.$message.error(err);
2305
+      });
2280 2306
   },
2281 2307
   methods: {
2282 2308
     getUnit: function(val) {
2283 2309
       if (val.assessment_after_dislysis == null) {
2284
-        return ''
2310
+        return "";
2285 2311
       } else if (val.assessment_after_dislysis != null) {
2286 2312
         switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
2287 2313
           case 1:
2288
-            return 'g'
2289
-            break
2314
+            return "g";
2315
+            break;
2290 2316
           case 2:
2291
-            return 'ml'
2292
-            break
2317
+            return "ml";
2318
+            break;
2293 2319
         }
2294 2320
       }
2295 2321
     },
2296 2322
     QueryPartById: function(val) {
2297
-      let vascular_access_part_name = '/'
2298
-      const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2323
+      let vascular_access_part_name = "/";
2324
+      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
2299 2325
 
2300 2326
       for (let i = 0; i < vascular_access.length; i++) {
2301 2327
         if (vascular_access[i].id == val) {
2302
-          vascular_access_part_name = vascular_access[i].name
2328
+          vascular_access_part_name = vascular_access[i].name;
2303 2329
         }
2304 2330
       }
2305
-      return vascular_access_part_name
2331
+      return vascular_access_part_name;
2306 2332
     },
2307 2333
     printAction: function() {
2308 2334
       const style =
2309
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
2335
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
2310 2336
 
2311 2337
       printJS({
2312
-        printable: 'print_content',
2313
-        type: 'html',
2314
-        documentTitle: '  ',
2338
+        printable: "print_content",
2339
+        type: "html",
2340
+        documentTitle: "  ",
2315 2341
         style: style,
2316 2342
         scanStyles: false
2317
-      })
2343
+      });
2318 2344
     },
2319 2345
 
2320 2346
     complicationsOther: function(record) {
2321
-      if (record == null || typeof record === 'undefined') {
2322
-        return ''
2347
+      if (record == null || typeof record === "undefined") {
2348
+        return "";
2323 2349
       }
2324 2350
       if (record.complication.length == 0) {
2325
-        return ''
2351
+        return "";
2326 2352
       }
2327
-      var complications = record.complication.split(',')
2328
-      var complicationOthers = []
2353
+      var complications = record.complication.split(",");
2354
+      var complicationOthers = [];
2329 2355
       for (const index in complications) {
2330 2356
         if (
2331 2357
           this.complications.indexOf(complications[index]) < 0 &&
2332 2358
           complicationOthers.indexOf(complications[index]) < 0
2333 2359
         ) {
2334
-          complicationOthers.push(complications[index])
2360
+          complicationOthers.push(complications[index]);
2335 2361
         }
2336 2362
       }
2337
-      return complicationOthers.join(',')
2363
+      return complicationOthers.join(",");
2338 2364
     },
2339 2365
     modeName(mode_id) {
2340 2366
       if (mode_id in this.modeOptions) {
2341
-        return this.modeOptions[mode_id].name
2367
+        return this.modeOptions[mode_id].name;
2342 2368
       }
2343
-      return ''
2369
+      return "";
2344 2370
     },
2345 2371
     anticoagulantName: function(key) {
2346
-      if (key == null || typeof key === 'undefined') {
2347
-        return ''
2372
+      if (key == null || typeof key === "undefined") {
2373
+        return "";
2348 2374
       }
2349
-      var id = key.anticoagulant
2375
+      var id = key.anticoagulant;
2350 2376
       if (id in this.anticoagulantsConfit) {
2351
-        return this.anticoagulantsConfit[id].name
2377
+        return this.anticoagulantsConfit[id].name;
2352 2378
       }
2353
-      return ''
2379
+      return "";
2354 2380
     },
2355 2381
     bloodAccessParOperaName(id) {
2356 2382
       if (id in this.bloodAccessParOpera) {
2357
-        return this.bloodAccessParOpera[id].name
2383
+        return this.bloodAccessParOpera[id].name;
2358 2384
       }
2359
-      return ''
2385
+      return "";
2360 2386
     },
2361 2387
     isBbloodAccessParOperaCheck(key, value) {
2362
-      if (key == null || typeof key === 'undefined') {
2363
-        return false
2388
+      if (key == null || typeof key === "undefined") {
2389
+        return false;
2364 2390
       }
2365
-      var id = key.blood_access_part_opera_id
2391
+      var id = key.blood_access_part_opera_id;
2366 2392
       if (id in this.bloodAccessParOpera) {
2367
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
2393
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
2368 2394
       }
2369
-      return false
2395
+      return false;
2370 2396
     },
2371 2397
     isdialysateFormulatioCheck(key, value) {
2372
-      if (key == null || typeof key === 'undefined') {
2373
-        return false
2398
+      if (key == null || typeof key === "undefined") {
2399
+        return false;
2374 2400
       }
2375
-      var id = key.dialysate_formulation
2401
+      var id = key.dialysate_formulation;
2376 2402
       if (id in this.dialysateFormulationOptions) {
2377
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
2403
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
2378 2404
       }
2379
-      return false
2405
+      return false;
2380 2406
     },
2381 2407
     isValueIndexOfCheck: function(record, key, value) {
2382 2408
       if (record == null || record == undefined) {
2383
-        return false
2409
+        return false;
2384 2410
       } else {
2385
-        return record[key].indexOf(value) > -1
2411
+        return record[key].indexOf(value) > -1;
2386 2412
       }
2387 2413
     },
2388 2414
     setAdminUserES(key, id) {
2389 2415
       if (
2390
-        typeof key === 'undefined' ||
2416
+        typeof key === "undefined" ||
2391 2417
         key == null ||
2392
-        typeof key[id] === 'undefined'
2418
+        typeof key[id] === "undefined"
2393 2419
       ) {
2394
-        return ''
2420
+        return "";
2395 2421
       }
2396 2422
       if (key[id] == 0) {
2397
-        return ''
2423
+        return "";
2398 2424
       }
2399 2425
       if (key[id] in this.operatorMaps) {
2400
-        return this.operatorMaps[key[id]].es_url
2426
+        return this.operatorMaps[key[id]].es_url;
2401 2427
       } else {
2402
-        return ''
2428
+        return "";
2403 2429
       }
2404 2430
     },
2405 2431
     getFloat: function(x) {
2406
-      if (x != '.') {
2407
-        var f = Math.round(x * 100) / 100
2408
-        var s = f.toString()
2409
-        var rs = s.indexOf('.')
2432
+      if (x != ".") {
2433
+        var f = Math.round(x * 100) / 100;
2434
+        var s = f.toString();
2435
+        var rs = s.indexOf(".");
2410 2436
         if (rs <= 0) {
2411
-          rs = s.length
2412
-          s += '.'
2437
+          rs = s.length;
2438
+          s += ".";
2413 2439
         }
2414 2440
         while (s.length <= rs + 1) {
2415
-          s += '0'
2441
+          s += "0";
2416 2442
         }
2417
-        return s
2443
+        return s;
2418 2444
       } else {
2419
-        return '0.0'
2445
+        return "0.0";
2420 2446
       }
2421 2447
     },
2422 2448
     getAdminUser(key, id) {
2423 2449
       if (
2424
-        typeof key === 'undefined' ||
2450
+        typeof key === "undefined" ||
2425 2451
         key == null ||
2426
-        typeof key[id] === 'undefined'
2452
+        typeof key[id] === "undefined"
2427 2453
       ) {
2428
-        return ''
2454
+        return "";
2429 2455
       }
2430 2456
       if (key[id] == 0) {
2431
-        return ''
2457
+        return "";
2432 2458
       }
2433 2459
       if (key[id] == undefined) {
2434
-        return ''
2460
+        return "";
2435 2461
       }
2436 2462
       for (let i = 0; i < this.adminUser.length; i++) {
2437 2463
         if (this.adminUser[i].id == key[id]) {
2438
-          return this.adminUser[i].name
2464
+          return this.adminUser[i].name;
2439 2465
         }
2440 2466
       }
2441 2467
     },
2442 2468
     jsGetAge: function(agetime) {
2443 2469
       if (agetime == 0) {
2444
-        return ''
2470
+        return "";
2445 2471
       }
2446
-      return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
2472
+      return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
2447 2473
     },
2448 2474
     getTime(value, temp) {
2449 2475
       if (value != undefined) {
2450
-        return uParseTime(value, temp)
2476
+        return uParseTime(value, temp);
2451 2477
       }
2452
-      return ''
2478
+      return "";
2453 2479
     },
2454 2480
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2455 2481
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2456 2482
     isCheckBoxChecked: function(record, key, target_value) {
2457 2483
       if (record == null || record == undefined) {
2458
-        return false
2484
+        return false;
2459 2485
       } else {
2460
-        return record[key] == target_value
2486
+        return record[key] == target_value;
2461 2487
       }
2462 2488
     },
2463 2489
     getAge: function(val) {
2464 2490
       if (val.age == 0) {
2465 2491
         if (val.birthday == 0) {
2466
-          return ''
2492
+          return "";
2467 2493
         }
2468
-        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
2494
+        return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
2469 2495
       } else {
2470
-        return val.age
2496
+        return val.age;
2471 2497
       }
2472 2498
     },
2473 2499
     newAdviceGroupObject: function() {
@@ -2477,13 +2503,13 @@ export default {
2477 2503
           group_no: 0,
2478 2504
           advices: []
2479 2505
         }
2480
-      )
2506
+      );
2481 2507
     },
2482 2508
     getNumber: function(record) {
2483
-      console.log(record)
2509
+      console.log(record);
2484 2510
     }
2485 2511
   }
2486
-}
2512
+};
2487 2513
 </script>
2488 2514
 
2489 2515
 <style scoped>

+ 17 - 15
src/xt_pages/dialysis/details/assessmentBefore.vue 查看文件

@@ -13,14 +13,6 @@
13 13
           <span class="unit" v-if="weight_before != '0'">kg</span>
14 14
         </li>
15 15
 
16
-        <li v-if="isShow('前次透析后')">
17
-          <label>前次透析后: </label>
18
-          <span class="content" v-if="last_post_dialysis != '0'">{{
19
-            last_post_dialysis
20
-          }}</span>
21
-          <span class="unit" v-if="last_post_dialysis != '0'"></span>
22
-        </li>
23
-
24 16
         <li v-if="isShow('干体重')">
25 17
           <label>干体重 : </label>
26 18
           <span class="content" v-if="dry_weight != '0'">{{ dry_weight }}</span>
@@ -112,13 +104,7 @@
112 104
           <span class="content">{{ catheter }}</span>
113 105
           <span class="unit"></span>
114 106
         </li>
115
-        <li v-if="isShow('透析期间')">
116
-          <label>透析期间 : </label>
117
-          <span class="content" v-if="dialysis_interphase != '0'">{{
118
-            dialysis_interphase
119
-          }}</span>
120
-          <span class="unit" v-if="dialysis_interphase != '0'"></span>
121
-        </li>
107
+
122 108
         <li v-if="isShow('呼吸频率')">
123 109
           <label>呼吸频率 : </label>
124 110
           <span class="content" v-if="breathing_rate != '0'">{{
@@ -212,12 +198,28 @@
212 198
           }}</span>
213 199
           <span class="unit" v-if="temperature != '0'">℃</span>
214 200
         </li>
201
+
202
+        <li v-if="isShow('前次透析后症状')">
203
+          <label>前次透析后症状: </label>
204
+          <span class="content" v-if="last_post_dialysis != '0'">{{
205
+            last_post_dialysis
206
+          }}</span>
207
+          <span class="unit" v-if="last_post_dialysis != '0'"></span>
208
+        </li>
215 209
         <li v-if="isShow('透析前症状')">
216 210
           <label>透析前症状 : </label>
217 211
           <span class="content">{{ symptom_before_dialysis }}</span>
218 212
           <span class="unit"></span>
219 213
         </li>
220 214
 
215
+        <li v-if="isShow('透析期间')">
216
+          <label>透析期间 : </label>
217
+          <span class="content" v-if="dialysis_interphase != '0'">{{
218
+            dialysis_interphase
219
+          }}</span>
220
+          <span class="unit" v-if="dialysis_interphase != '0'"></span>
221
+        </li>
222
+
221 223
         <li v-if="isShow('透析机型号')">
222 224
           <label>透析机型号:</label>
223 225
           <span class="content" v-if="machine_type != '0'">

+ 1 - 1
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -236,7 +236,7 @@
236 236
               <td>张三</td>
237 237
               <td>2018-90-09</td>
238 238
               <td>张三</td>
239
-              <td>88</td>
239
+              <td>888</td>
240 240
             </tr>
241 241
             </tbody>
242 242
           </table>

+ 13 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue 查看文件

@@ -632,10 +632,10 @@
632 632
                 <td></td>
633 633
                 <td width="95">透析器凝血:</td>
634 634
                 <td width="220">
635
-                  <label-box :isChecked="afterdialysis.txqnx==0?true:false" showValue='0 级'></label-box>
636
-                  <label-box :isChecked="afterdialysis.txqnx==1?true:false" showValue='Ⅰ 级'></label-box>
637
-                  <label-box :isChecked="afterdialysis.txqnx==2?true:false" showValue='Ⅱ 级'></label-box>
638
-                  <label-box :isChecked="afterdialysis.txqnx==3?true:false" showValue='Ⅲ 级'></label-box>
635
+                  <label-box :isChecked="afterdialysis.dialyzer==1?true:false" showValue='0 级'></label-box>
636
+                  <label-box :isChecked="afterdialysis.dialyzer==2?true:false" showValue='Ⅰ 级'></label-box>
637
+                  <label-box :isChecked="afterdialysis.dialyzer==3?true:false" showValue='Ⅱ 级'></label-box>
638
+                  <label-box :isChecked="afterdialysis.dialyzer==4?true:false" showValue='Ⅲ 级'></label-box>
639 639
                 </td>
640 640
               </tr>
641 641
               </tbody>
@@ -663,12 +663,14 @@
663 663
                 <td width="10"></td>
664 664
                 <td width="105">压迫后内瘘震颤:</td>
665 665
                 <td width="140">
666
-                  <label-box :isChecked="afterdialysis.internal_fistula_tremor_ac==1?true:false"
667
-                             showValue='存在'></label-box>
668
-                  <label-box :isChecked="afterdialysis.internal_fistula_tremor_ac==2?true:false"
669
-                             showValue='减弱'></label-box>
670
-                  <label-box :isChecked="afterdialysis.internal_fistula_tremor_ac==3?true:false"
671
-                             showValue='无'></label-box>
666
+                  <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-存在')>-1?true:false"
667
+                               showValue='存在'></label-box>
668
+                    &nbsp;
669
+                    <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-减弱')>-1?true:false"
670
+                               showValue='减弱'></label-box>
671
+                    &nbsp;
672
+                    <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-无')>-1?true:false"
673
+                               showValue='无'></label-box>
672 674
                 </td>
673 675
                 <td width="">
674 676
                 </td>
@@ -1242,6 +1244,7 @@
1242 1244
             this.predialysis = response.data.data.PredialysisEvaluation
1243 1245
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
1244 1246
             this.afterdialysis = response.data.data.AssessmentAfterDislysis
1247
+            console.log("透后评估数据",this.afterdialysis)
1245 1248
             this.operators = response.data.data.operators
1246 1249
             this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
1247 1250
 

文件差異過大導致無法顯示
+ 514 - 347
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue


文件差異過大導致無法顯示
+ 3041 - 1473
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue