Browse Source

修改静脉压单位

张保健 4 years ago
parent
commit
ca9cbe6e42

+ 199 - 201
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue View File

@@ -1161,10 +1161,8 @@
1161 1161
                     <td width="80" style="line-height:20px">Bp<br />mmHg</td>
1162 1162
                     <td width="40" style="line-height:20px">P<br />次/分</td>
1163 1163
                     <td width="60" style="line-height:20px">R<br />次/分</td>
1164
-                    <td width="80" style="line-height:20px">
1165
-                      静脉压<br />mmHg
1166
-                    </td>
1167
-                    <td width="80" style="line-height:20px">TMP<br />mmHg</td>
1164
+                    <td width="80" style="line-height:20px">静脉压<br />{{record.monitor_records[0] && record.monitor_records[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
1165
+                    <td width="80" style="line-height:20px">TMP<br />{{record.monitor_records[0] && record.monitor_records[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
1168 1166
                     <td width="60" style="line-height:20px">
1169 1167
                       血流量<br />ml/min
1170 1168
                     </td>
@@ -2058,18 +2056,18 @@
2058 2056
 </template>
2059 2057
 
2060 2058
 <script>
2061
-import CheckBox from "./option_check_box";
2062
-import LabelBox from "../printItem/LabelBox";
2059
+import CheckBox from './option_check_box'
2060
+import LabelBox from '../printItem/LabelBox'
2063 2061
 import {
2064 2062
   GetBatchPrintDialysisData,
2065 2063
   getLastAfterWeight
2066
-} from "@/api/print_data";
2067
-import { jsGetAge, uParseTime } from "@/utils/tools";
2068
-import { getDataConfig } from "@/utils/data";
2069
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
2064
+} from '@/api/print_data'
2065
+import { jsGetAge, uParseTime } from '@/utils/tools'
2066
+import { getDataConfig } from '@/utils/data'
2067
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
2070 2068
 
2071 2069
 export default {
2072
-  name: "BatchPrintOrderSeven",
2070
+  name: 'BatchPrintOrderSeven',
2073 2071
   components: {
2074 2072
     CheckBox,
2075 2073
     BreadCrumb,
@@ -2081,8 +2079,8 @@ export default {
2081 2079
       consciousness_arr: [],
2082 2080
       isShowZero: false,
2083 2081
       crumbs: [
2084
-        { path: false, name: "透析管理" },
2085
-        { path: false, name: "批量打印" }
2082
+        { path: false, name: '透析管理' },
2083
+        { path: false, name: '批量打印' }
2086 2084
       ],
2087 2085
       records: [
2088 2086
         // 模拟有多条数据
@@ -2096,11 +2094,11 @@ export default {
2096 2094
         // },
2097 2095
       ],
2098 2096
       queryParams: {
2099
-        xtdate: "",
2100
-        xtno: ""
2097
+        xtdate: '',
2098
+        xtno: ''
2101 2099
       },
2102 2100
       loading: false,
2103
-      orgname: "",
2101
+      orgname: '',
2104 2102
       bloodAccessParOpera: {},
2105 2103
       anticoagulantsConfit: {},
2106 2104
       dialysateFormulationOptions: {},
@@ -2115,134 +2113,134 @@ export default {
2115 2113
       blood_access_part: [],
2116 2114
       posture_arr: [],
2117 2115
       complications: [
2118
-        "低血压",
2119
-        "高血压",
2120
-        "心律失常",
2121
-        "头晕",
2122
-        "头痛",
2123
-        "呕吐",
2124
-        "抽搐",
2125
-        "出血",
2126
-        "心衰",
2127
-        "腹痛"
2116
+        '低血压',
2117
+        '高血压',
2118
+        '心律失常',
2119
+        '头晕',
2120
+        '头痛',
2121
+        '呕吐',
2122
+        '抽搐',
2123
+        '出血',
2124
+        '心衰',
2125
+        '腹痛'
2128 2126
       ],
2129 2127
       allName: [],
2130 2128
       NameStatus: 0,
2131 2129
       advices: [],
2132
-      docotorId: "",
2133
-      lastAfterWeight: "",
2130
+      docotorId: '',
2131
+      lastAfterWeight: '',
2134 2132
       appetite_arr: [],
2135 2133
       precaution_arr: [],
2136 2134
       showOne: false,
2137 2135
       showTwo: false
2138
-    };
2136
+    }
2139 2137
   },
2140 2138
   created() {
2141
-    var xtuser = this.$store.getters.xt_user;
2139
+    var xtuser = this.$store.getters.xt_user
2142 2140
     // console.log('xtuser', xtuser)
2143
-    this.orgname = xtuser.org.org_name;
2141
+    this.orgname = xtuser.org.org_name
2144 2142
     //   this.orgname = "遂溪方济医院";
2145
-    this.modeOptions = this.$store.getters.treatment_mode;
2143
+    this.modeOptions = this.$store.getters.treatment_mode
2146 2144
     //   this.replacementWays = this.$store.getters.replacement_ways;
2147 2145
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2148
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2149
-    this.way_arr = getDataConfig("hemodialysis", "way");
2150
-    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
2151
-    this.posture_arr = getDataConfig("hemodialysis", "posture");
2146
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2147
+    this.way_arr = getDataConfig('hemodialysis', 'way')
2148
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
2149
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
2152 2150
     var bloodAccessParOpera = getDataConfig(
2153
-      "hemodialysis",
2154
-      "vascular_access_desc"
2155
-    );
2151
+      'hemodialysis',
2152
+      'vascular_access_desc'
2153
+    )
2156 2154
     for (var key in bloodAccessParOpera) {
2157 2155
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2158
-        bloodAccessParOpera[key];
2156
+        bloodAccessParOpera[key]
2159 2157
     }
2160 2158
 
2161
-    this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
2159
+    this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
2162 2160
 
2163 2161
     var dialysateFormulationOptions = getDataConfig(
2164
-      "hemodialysis",
2165
-      "dialysate_formulation"
2166
-    );
2162
+      'hemodialysis',
2163
+      'dialysate_formulation'
2164
+    )
2167 2165
     for (var key in dialysateFormulationOptions) {
2168 2166
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
2169
-        dialysateFormulationOptions[key];
2167
+        dialysateFormulationOptions[key]
2170 2168
     }
2171
-    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
2172
-    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
2169
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
2170
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
2173 2171
   },
2174 2172
   mounted() {
2175
-    console.log(this.records);
2176
-    this.loading = true;
2177
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
2173
+    console.log(this.records)
2174
+    this.loading = true
2175
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
2178 2176
     if (ids.length == 0) {
2179
-      this.$router.back(-1);
2180
-      return;
2177
+      this.$router.back(-1)
2178
+      return
2181 2179
     }
2182
-    GetBatchPrintDialysisData(ids.join(","))
2180
+    GetBatchPrintDialysisData(ids.join(','))
2183 2181
       .then(rs => {
2184
-        var resp = rs.data;
2182
+        var resp = rs.data
2185 2183
         if (resp.state == 1) {
2186
-          this.org_template_info = resp.data.templateInfo;
2184
+          this.org_template_info = resp.data.templateInfo
2187 2185
 
2188
-          this.records = this.records.concat(resp.data.schedules);
2186
+          this.records = this.records.concat(resp.data.schedules)
2189 2187
 
2190
-          console.log("记录", this.records);
2188
+          console.log('记录', this.records)
2191 2189
 
2192 2190
           for (const recordIndex in this.records) {
2193
-            var dlegh = 0;
2191
+            var dlegh = 0
2194 2192
             if (
2195 2193
               this.records[recordIndex].monitor_records &&
2196 2194
               this.records[recordIndex].monitor_records.length < 8
2197 2195
             ) {
2198
-              dlegh = 8 - this.records[recordIndex].monitor_records.length;
2196
+              dlegh = 8 - this.records[recordIndex].monitor_records.length
2199 2197
             } else {
2200
-              dlegh = 0;
2198
+              dlegh = 0
2201 2199
             }
2202 2200
             if (dlegh > 0) {
2203 2201
               if (
2204 2202
                 typeof this.records[recordIndex].monitor_records ===
2205
-                  "undefined" ||
2203
+                  'undefined' ||
2206 2204
                 this.records[recordIndex].monitor_records == null
2207 2205
               ) {
2208
-                this.records[recordIndex].monitor_records = [];
2206
+                this.records[recordIndex].monitor_records = []
2209 2207
               }
2210 2208
               for (let index = 0; index < dlegh; index++) {
2211
-                this.records[recordIndex].monitor_records.push([]);
2209
+                this.records[recordIndex].monitor_records.push([])
2212 2210
               }
2213 2211
             }
2214 2212
 
2215
-            this.records[recordIndex].isShowZero = false;
2213
+            this.records[recordIndex].isShowZero = false
2216 2214
             if (this.records[recordIndex].patient.user_org_id == 9535) {
2217
-              this.records[recordIndex].isShowZero = true;
2215
+              this.records[recordIndex].isShowZero = true
2218 2216
             }
2219 2217
 
2220
-            var delghTwo = 0;
2218
+            var delghTwo = 0
2221 2219
             if (
2222 2220
               this.records[recordIndex].advices &&
2223 2221
               this.records[recordIndex].advices.length < 14
2224 2222
             ) {
2225
-              delghTwo = 14 - this.records[recordIndex].advices.length;
2223
+              delghTwo = 14 - this.records[recordIndex].advices.length
2226 2224
             } else {
2227
-              delghTwo = 0;
2225
+              delghTwo = 0
2228 2226
             }
2229 2227
 
2230 2228
             if (delghTwo > 0) {
2231 2229
               if (
2232
-                typeof this.records[recordIndex].advices === "undefined" ||
2230
+                typeof this.records[recordIndex].advices === 'undefined' ||
2233 2231
                 this.records[recordIndex].advices == null
2234 2232
               ) {
2235
-                this.records[recordIndex].advices = [];
2233
+                this.records[recordIndex].advices = []
2236 2234
               }
2237 2235
               for (let index = 0; index < delghTwo; index++) {
2238
-                this.records[recordIndex].advices.push([]);
2236
+                this.records[recordIndex].advices.push([])
2239 2237
               }
2240 2238
             }
2241 2239
 
2242
-            var childMap = {};
2240
+            var childMap = {}
2243 2241
             for (const index in this.records[recordIndex].advices) {
2244 2242
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2245
-                continue;
2243
+                continue
2246 2244
               }
2247 2245
               if (
2248 2246
                 !(
@@ -2251,249 +2249,249 @@ export default {
2251 2249
               ) {
2252 2250
                 childMap[
2253 2251
                   this.records[recordIndex].advices[index].parent_id
2254
-                ] = [];
2252
+                ] = []
2255 2253
               }
2256 2254
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2257 2255
                 this.records[recordIndex].advices[index]
2258
-              );
2256
+              )
2259 2257
             }
2260 2258
 
2261
-            var advices = [];
2259
+            var advices = []
2262 2260
             for (const index in this.records[recordIndex].advices) {
2263 2261
               if (this.records[recordIndex].advices[index].parent_id > 0) {
2264
-                continue;
2262
+                continue
2265 2263
               }
2266
-              var item = this.records[recordIndex].advices[index];
2264
+              var item = this.records[recordIndex].advices[index]
2267 2265
               if (item.id in childMap) {
2268
-                item.children = childMap[item.id];
2266
+                item.children = childMap[item.id]
2269 2267
               } else {
2270
-                item.children = [];
2268
+                item.children = []
2271 2269
               }
2272
-              advices.push(item);
2270
+              advices.push(item)
2273 2271
             }
2274 2272
 
2275
-            var leftAdvice = [];
2276
-            var rightAdvice = [];
2277
-            var adlen = advices.length;
2273
+            var leftAdvice = []
2274
+            var rightAdvice = []
2275
+            var adlen = advices.length
2278 2276
 
2279
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2277
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2280 2278
             for (var i = 0; i < halfLen; i++) {
2281
-              leftAdvice.push(advices[i]);
2282
-              var rightIndex = i + halfLen;
2279
+              leftAdvice.push(advices[i])
2280
+              var rightIndex = i + halfLen
2283 2281
               rightAdvice.push(
2284 2282
                 rightIndex in advices ? advices[i + halfLen] : []
2285
-              );
2283
+              )
2286 2284
             }
2287 2285
             if (halfLen < 5) {
2288
-              var nl = 5 - leftAdvice.length;
2286
+              var nl = 5 - leftAdvice.length
2289 2287
               for (let index = 0; index < nl; index++) {
2290
-                leftAdvice.push([]);
2288
+                leftAdvice.push([])
2291 2289
               }
2292
-              var nl = 5 - rightAdvice.length;
2290
+              var nl = 5 - rightAdvice.length
2293 2291
               for (let index = 0; index < nl; index++) {
2294
-                rightAdvice.push([]);
2292
+                rightAdvice.push([])
2295 2293
               }
2296 2294
             }
2297 2295
 
2298
-            this.records[recordIndex].advices = [];
2296
+            this.records[recordIndex].advices = []
2299 2297
             for (var i = 0; i < halfLen; i++) {
2300
-              var item = [];
2301
-              item.push(leftAdvice[i]);
2302
-              item.push(rightAdvice[i]);
2303
-              this.records[recordIndex].advices.push(item);
2298
+              var item = []
2299
+              item.push(leftAdvice[i])
2300
+              item.push(rightAdvice[i])
2301
+              this.records[recordIndex].advices.push(item)
2304 2302
             }
2305 2303
           }
2306 2304
 
2307
-          console.log(" this.records[recordIndex].advices", this.records);
2308
-          this.operators = resp.data.medical_staffs;
2305
+          console.log(' this.records[recordIndex].advices', this.records)
2306
+          this.operators = resp.data.medical_staffs
2309 2307
           if (this.operators.length > 0) {
2310
-            var operatorsLen = this.operators.length;
2308
+            var operatorsLen = this.operators.length
2311 2309
             for (var index = 0; index < operatorsLen; index++) {
2312 2310
               this.$set(
2313 2311
                 this.operatorMaps,
2314 2312
                 this.operators[index].id,
2315 2313
                 this.operators[index]
2316
-              );
2314
+              )
2317 2315
             }
2318 2316
           }
2319 2317
 
2320
-          this.adminUser = resp.data.users;
2321
-          console.log("adminUser", this.adminUser);
2322
-          var name = resp.data.name;
2323
-          this.adminSign = name;
2324
-          console.log("name是", name);
2325
-          this.loading = false;
2318
+          this.adminUser = resp.data.users
2319
+          console.log('adminUser', this.adminUser)
2320
+          var name = resp.data.name
2321
+          this.adminSign = name
2322
+          console.log('name是', name)
2323
+          this.loading = false
2326 2324
         } else {
2327
-          this.loading = false;
2328
-          this.$message.error(resp.msg);
2325
+          this.loading = false
2326
+          this.$message.error(resp.msg)
2329 2327
         }
2330 2328
       })
2331 2329
       .catch(err => {
2332
-        this.$message.error(err);
2333
-      });
2330
+        this.$message.error(err)
2331
+      })
2334 2332
   },
2335 2333
   methods: {
2336 2334
     getUnit: function(val) {
2337 2335
       if (val.assessment_after_dislysis == null) {
2338
-        return "";
2336
+        return ''
2339 2337
       } else if (val.assessment_after_dislysis != null) {
2340 2338
         switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
2341 2339
           case 1:
2342
-            return "g";
2343
-            break;
2340
+            return 'g'
2341
+            break
2344 2342
           case 2:
2345
-            return "ml";
2346
-            break;
2343
+            return 'ml'
2344
+            break
2347 2345
         }
2348 2346
       }
2349 2347
     },
2350 2348
     QueryPartById: function(val) {
2351
-      let vascular_access_part_name = "/";
2352
-      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
2349
+      let vascular_access_part_name = '/'
2350
+      const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2353 2351
 
2354 2352
       for (let i = 0; i < vascular_access.length; i++) {
2355 2353
         if (vascular_access[i].id == val) {
2356
-          vascular_access_part_name = vascular_access[i].name;
2354
+          vascular_access_part_name = vascular_access[i].name
2357 2355
         }
2358 2356
       }
2359
-      return vascular_access_part_name;
2357
+      return vascular_access_part_name
2360 2358
     },
2361 2359
     printThisPage() {
2362
-      var ptime = Math.round(new Date().getTime() / 1000);
2363
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
2360
+      var ptime = Math.round(new Date().getTime() / 1000)
2361
+      this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
2364 2362
 
2365 2363
       const style =
2366
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
2364
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
2367 2365
       const style2 =
2368
-        '@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: 3px 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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.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: 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;}';
2366
+        '@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: 3px 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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.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: 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;}'
2369 2367
       printJS({
2370
-        printable: "print_content",
2371
-        type: "html",
2372
-        documentTitle: "  ",
2368
+        printable: 'print_content',
2369
+        type: 'html',
2370
+        documentTitle: '  ',
2373 2371
         style: style,
2374 2372
         scanStyles: false
2375
-      });
2373
+      })
2376 2374
     },
2377 2375
 
2378 2376
     complicationsOther: function(record) {
2379
-      if (record == null || typeof record === "undefined") {
2380
-        return "";
2377
+      if (record == null || typeof record === 'undefined') {
2378
+        return ''
2381 2379
       }
2382 2380
       if (record.complication.length == 0) {
2383
-        return "";
2381
+        return ''
2384 2382
       }
2385
-      var complications = record.complication.split(",");
2386
-      var complicationOthers = [];
2383
+      var complications = record.complication.split(',')
2384
+      var complicationOthers = []
2387 2385
       for (const index in complications) {
2388 2386
         if (
2389 2387
           this.complications.indexOf(complications[index]) < 0 &&
2390 2388
           complicationOthers.indexOf(complications[index]) < 0
2391 2389
         ) {
2392
-          complicationOthers.push(complications[index]);
2390
+          complicationOthers.push(complications[index])
2393 2391
         }
2394 2392
       }
2395
-      return complicationOthers.join(",");
2393
+      return complicationOthers.join(',')
2396 2394
     },
2397 2395
     modeName(mode_id) {
2398 2396
       if (mode_id in this.modeOptions) {
2399
-        return this.modeOptions[mode_id].name;
2397
+        return this.modeOptions[mode_id].name
2400 2398
       }
2401
-      return "";
2399
+      return ''
2402 2400
     },
2403 2401
     anticoagulantName: function(key) {
2404
-      if (key == null || typeof key === "undefined") {
2405
-        return "";
2402
+      if (key == null || typeof key === 'undefined') {
2403
+        return ''
2406 2404
       }
2407
-      var id = key.anticoagulant;
2405
+      var id = key.anticoagulant
2408 2406
       if (id in this.anticoagulantsConfit) {
2409
-        return this.anticoagulantsConfit[id].name;
2407
+        return this.anticoagulantsConfit[id].name
2410 2408
       }
2411
-      return "";
2409
+      return ''
2412 2410
     },
2413 2411
     bloodAccessParOperaName(id) {
2414 2412
       if (id in this.bloodAccessParOpera) {
2415
-        return this.bloodAccessParOpera[id].name;
2413
+        return this.bloodAccessParOpera[id].name
2416 2414
       }
2417
-      return "";
2415
+      return ''
2418 2416
     },
2419 2417
     isBbloodAccessParOperaCheck(key, value) {
2420
-      if (key == null || typeof key === "undefined") {
2421
-        return false;
2418
+      if (key == null || typeof key === 'undefined') {
2419
+        return false
2422 2420
       }
2423
-      var id = key.blood_access_part_opera_id;
2421
+      var id = key.blood_access_part_opera_id
2424 2422
       if (id in this.bloodAccessParOpera) {
2425
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
2423
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
2426 2424
       }
2427
-      return false;
2425
+      return false
2428 2426
     },
2429 2427
     isdialysateFormulatioCheck(key, value) {
2430
-      if (key == null || typeof key === "undefined") {
2431
-        return false;
2428
+      if (key == null || typeof key === 'undefined') {
2429
+        return false
2432 2430
       }
2433
-      var id = key.dialysate_formulation;
2431
+      var id = key.dialysate_formulation
2434 2432
       if (id in this.dialysateFormulationOptions) {
2435
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
2433
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
2436 2434
       }
2437
-      return false;
2435
+      return false
2438 2436
     },
2439 2437
     isValueIndexOfCheck: function(record, key, value) {
2440 2438
       if (record == null || record == undefined) {
2441
-        return false;
2439
+        return false
2442 2440
       } else {
2443
-        return record[key].indexOf(value) > -1;
2441
+        return record[key].indexOf(value) > -1
2444 2442
       }
2445 2443
     },
2446 2444
     setAdminUserES(key, id) {
2447 2445
       if (
2448
-        typeof key === "undefined" ||
2446
+        typeof key === 'undefined' ||
2449 2447
         key == null ||
2450
-        typeof key[id] === "undefined"
2448
+        typeof key[id] === 'undefined'
2451 2449
       ) {
2452
-        return "";
2450
+        return ''
2453 2451
       }
2454 2452
       if (key[id] == 0) {
2455
-        return "";
2453
+        return ''
2456 2454
       }
2457 2455
       if (key[id] in this.operatorMaps) {
2458
-        return this.operatorMaps[key[id]].es_url;
2456
+        return this.operatorMaps[key[id]].es_url
2459 2457
       } else {
2460
-        return "";
2458
+        return ''
2461 2459
       }
2462 2460
     },
2463 2461
     getFloat: function(x) {
2464
-      if (x != ".") {
2465
-        var f = Math.round(x * 100) / 100;
2466
-        var s = f.toString();
2467
-        var rs = s.indexOf(".");
2462
+      if (x != '.') {
2463
+        var f = Math.round(x * 100) / 100
2464
+        var s = f.toString()
2465
+        var rs = s.indexOf('.')
2468 2466
         if (rs <= 0) {
2469
-          rs = s.length;
2470
-          s += ".";
2467
+          rs = s.length
2468
+          s += '.'
2471 2469
         }
2472 2470
         while (s.length <= rs + 1) {
2473
-          s += "0";
2471
+          s += '0'
2474 2472
         }
2475
-        return s;
2473
+        return s
2476 2474
       } else {
2477
-        return "0.0";
2475
+        return '0.0'
2478 2476
       }
2479 2477
     },
2480 2478
     getAdminUser(key, id) {
2481 2479
       if (
2482
-        typeof key === "undefined" ||
2480
+        typeof key === 'undefined' ||
2483 2481
         key == null ||
2484
-        typeof key[id] === "undefined"
2482
+        typeof key[id] === 'undefined'
2485 2483
       ) {
2486
-        return "";
2484
+        return ''
2487 2485
       }
2488 2486
       if (key[id] === 0) {
2489
-        return "";
2487
+        return ''
2490 2488
       }
2491 2489
       if (key[id] === undefined) {
2492
-        return "";
2490
+        return ''
2493 2491
       }
2494 2492
       for (let i = 0; i < this.adminUser.length; i++) {
2495 2493
         if (this.adminUser[i].id === key[id]) {
2496
-          return this.adminUser[i].name;
2494
+          return this.adminUser[i].name
2497 2495
         }
2498 2496
       }
2499 2497
     },
@@ -2501,47 +2499,47 @@ export default {
2501 2499
     getName(id) {
2502 2500
       for (let i = 0; i < this.adminSign.length; i++) {
2503 2501
         if (this.adminSign[i].id === id) {
2504
-          if (this.adminSign[i].url === "") {
2505
-            this.showOne = true;
2506
-            this.showTwo = false;
2507
-            return this.adminSign[i].name;
2502
+          if (this.adminSign[i].url === '') {
2503
+            this.showOne = true
2504
+            this.showTwo = false
2505
+            return this.adminSign[i].name
2508 2506
           } else {
2509
-            this.showOne = false;
2510
-            this.showTwo = true;
2511
-            return this.adminSign[i].url;
2507
+            this.showOne = false
2508
+            this.showTwo = true
2509
+            return this.adminSign[i].url
2512 2510
           }
2513 2511
         }
2514 2512
       }
2515 2513
     },
2516 2514
     jsGetAge: function(agetime) {
2517 2515
       if (agetime === 0) {
2518
-        return "";
2516
+        return ''
2519 2517
       }
2520
-      return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
2518
+      return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
2521 2519
     },
2522 2520
     getTime(value, temp) {
2523 2521
       if (value != undefined) {
2524
-        return uParseTime(value, temp);
2522
+        return uParseTime(value, temp)
2525 2523
       }
2526
-      return "";
2524
+      return ''
2527 2525
     },
2528 2526
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2529 2527
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2530 2528
     isCheckBoxChecked: function(record, key, target_value) {
2531 2529
       if (record == null || record == undefined) {
2532
-        return false;
2530
+        return false
2533 2531
       } else {
2534
-        return record[key] == target_value;
2532
+        return record[key] == target_value
2535 2533
       }
2536 2534
     },
2537 2535
     getAge: function(val) {
2538 2536
       if (val.age == 0) {
2539 2537
         if (val.birthday == 0) {
2540
-          return "";
2538
+          return ''
2541 2539
         }
2542
-        return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
2540
+        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
2543 2541
       } else {
2544
-        return val.age;
2542
+        return val.age
2545 2543
       }
2546 2544
     },
2547 2545
     newAdviceGroupObject: function() {
@@ -2551,7 +2549,7 @@ export default {
2551 2549
           group_no: 0,
2552 2550
           advices: []
2553 2551
         }
2554
-      );
2552
+      )
2555 2553
     },
2556 2554
     // getNumber: function(record) {
2557 2555
     //   console.log(record);
@@ -2561,26 +2559,26 @@ export default {
2561 2559
         return (
2562 2560
           this.patientInfo.DialysisSchedule.device_zone.name +
2563 2561
           this.dialysisOrder.DeviceNumber.number
2564
-        );
2562
+        )
2565 2563
       } else {
2566 2564
         return (
2567 2565
           this.patientInfo.DialysisSchedule.device_zone.name +
2568 2566
           this.patientInfo.DialysisSchedule.device_number.number
2569
-        );
2567
+        )
2570 2568
       }
2571 2569
     },
2572 2570
     getLastAfterWeight(id, assessmentDate) {
2573 2571
       getLastAfterWeight(id, assessmentDate).then(response => {
2574 2572
         if (response.data.state === 1) {
2575
-          var weight = response.data.data.weight;
2573
+          var weight = response.data.data.weight
2576 2574
 
2577
-          this.lastAfterWeight = weight.weight_after.toFixed(1);
2578
-          console.log("weight", weight);
2575
+          this.lastAfterWeight = weight.weight_after.toFixed(1)
2576
+          console.log('weight', weight)
2579 2577
         }
2580
-      });
2578
+      })
2581 2579
     }
2582 2580
   }
2583
-};
2581
+}
2584 2582
 </script>
2585 2583
 
2586 2584
 <style scoped>

+ 110 - 84
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -98,21 +98,14 @@
98 98
             </template>
99 99
           </el-table-column>
100 100
 
101
-          <el-table-column
102
-            prop="venous_pressure"
103
-            align="center"
104
-            label="静脉压/动脉压(mmHg)"
105
-            width="120"
106
-          >
101
+          <el-table-column v-if="monitors[0] && monitors[0]['venous_pressure_type'] == 2" prop="venous_pressure" align="center" label="静脉压/动脉压(kpa)" width="120" >
107 102
             <template slot-scope="scope">
108
-              <span
109
-                >{{
110
-                  scope.row.venous_pressure ? scope.row.venous_pressure : ""
111
-                }}/
112
-                {{
113
-                  scope.row.arterial_pressure ? scope.row.arterial_pressure : ""
114
-                }}</span
115
-              >
103
+              <span>{{ scope.row.venous_pressure ? scope.row.venous_pressure : "" }}/ {{ scope.row.arterial_pressure ? scope.row.arterial_pressure : "" }}</span>
104
+            </template>
105
+          </el-table-column>
106
+          <el-table-column  v-else prop="venous_pressure" align="center" label="静脉压/动脉压(mmHg)" width="120" >
107
+            <template slot-scope="scope">
108
+              <span>{{ scope.row.venous_pressure ? scope.row.venous_pressure : "" }}/ {{ scope.row.arterial_pressure ? scope.row.arterial_pressure : "" }}</span>
116 109
             </template>
117 110
           </el-table-column>
118 111
 
@@ -130,19 +123,15 @@
130 123
             </template>
131 124
           </el-table-column>
132 125
 
133
-          <el-table-column
134
-            prop="transmembrane_pressure"
135
-            align="center"
136
-            label="跨膜压(mmHg)"
137
-            width="120"
138
-            v-if="isShow('跨膜压')"
139
-          >
126
+          <el-table-column prop="transmembrane_pressure" align="center"  label="跨膜压(kpa)" width="120" v-if="isShow('跨膜压') && (monitors[0] && monitors[0]['transmembrane_pressure_type'] == 2)" >
140 127
             <template slot-scope="scope">
141
-              {{
142
-                scope.row.transmembrane_pressure
143
-                  ? scope.row.transmembrane_pressure
144
-                  : ""
145
-              }}
128
+              {{ scope.row.transmembrane_pressure ? scope.row.transmembrane_pressure : "" }}
129
+            </template>
130
+          </el-table-column>
131
+          
132
+          <el-table-column prop="transmembrane_pressure" align="center"  label="跨膜压(mmHg)" width="120" v-if="isShow('跨膜压') && (monitors[0] && monitors[0]['transmembrane_pressure_type'] != 2)" >
133
+            <template slot-scope="scope">
134
+              {{ scope.row.transmembrane_pressure ? scope.row.transmembrane_pressure : "" }}
146 135
             </template>
147 136
           </el-table-column>
148 137
 
@@ -421,7 +410,7 @@
421 410
             </el-form-item>
422 411
           </el-col>
423 412
           <el-col :span="8" v-if="isShow('静脉压')">
424
-            <el-form-item label="静脉压(mmHg):">
413
+            <el-form-item v-if="form.venous_pressure_type == 2" label="静脉压(kpa):">
425 414
               <el-input
426 415
                 style="width: 140px"
427 416
                 v-model="form.venous_pressure"
@@ -430,24 +419,32 @@
430 419
                 size="mini"
431 420
                 type="primary"
432 421
                 @click="venousPressureChangeOne"
433
-                >换</el-button
422
+                >换</el-button
434 423
               >
435 424
             </el-form-item>
436
-          </el-col>
437
-          <el-col :span="8" v-if="isShow('动脉压')">
438
-            <el-form-item label="动脉压(mmHg):">
425
+            <el-form-item v-else label="静脉压(mmHg):">
439 426
               <el-input
440 427
                 style="width: 140px"
441
-                v-model="form.arterial_pressure"
428
+                v-model="form.venous_pressure"
442 429
               ></el-input>
443 430
               <el-button
444 431
                 size="mini"
445 432
                 type="primary"
446
-                @click="venousPressureChangeThree"
447
-                >换</el-button
433
+                @click="venousPressureChangeOne"
434
+                >换</el-button
448 435
               >
449 436
             </el-form-item>
450 437
           </el-col>
438
+          <el-col :span="8" v-if="isShow('动脉压')">
439
+            <el-form-item v-if="form.arterial_pressure_type == 2" label="动脉压(kpa):">
440
+              <el-input style="width: 140px" v-model="form.arterial_pressure" ></el-input>
441
+              <el-button size="mini" type="primary" @click="venousPressureChangeThree"  >切换</el-button >
442
+            </el-form-item>
443
+            <el-form-item v-else label="动脉压(mmHg):">
444
+              <el-input style="width: 140px" v-model="form.arterial_pressure" ></el-input>
445
+              <el-button size="mini" type="primary" @click="venousPressureChangeThree"  >切换</el-button >
446
+            </el-form-item>
447
+          </el-col>
451 448
 
452 449
           <el-col :span="8" v-if="isShow('血流量')">
453 450
             <el-form-item label="血流量(ml/min):">
@@ -456,17 +453,13 @@
456 453
           </el-col>
457 454
 
458 455
           <el-col :span="8" v-if="isShow('跨膜压')">
459
-            <el-form-item label="跨膜压(mmHg):">
460
-              <el-input
461
-                style="width: 140px"
462
-                v-model="form.transmembrane_pressure"
463
-              ></el-input>
464
-              <el-button
465
-                size="mini"
466
-                type="primary"
467
-                @click="venousPressureChangeTwo"
468
-                >转换</el-button
469
-              >
456
+            <el-form-item v-if="form.transmembrane_pressure_type == 2" label="跨膜压(kpa):">
457
+              <el-input style="width: 140px" v-model="form.transmembrane_pressure" ></el-input>
458
+              <el-button size="mini" type="primary" @click="venousPressureChangeTwo" >切换</el-button >
459
+            </el-form-item>
460
+            <el-form-item v-else label="跨膜压(mmHg):">
461
+              <el-input style="width: 140px" v-model="form.transmembrane_pressure" ></el-input>
462
+              <el-button size="mini" type="primary" @click="venousPressureChangeTwo" >切换</el-button >
470 463
             </el-form-item>
471 464
           </el-col>
472 465
 
@@ -710,10 +703,13 @@ export default {
710 703
         breathing_rated: '', // 呼吸频率
711 704
         blood_flow_volume: '', // 血流量
712 705
         venous_pressure: '', // 静脉压
706
+        venous_pressure_type: 1, // 静脉压
713 707
         transmembrane_pressure: '', // 跨膜压
708
+        transmembrane_pressure_type: 1, // 跨膜压
714 709
         ultrafiltration_volume: '', // 超滤量
715 710
         ultrafiltration_rate: '', // 超滤率
716 711
         arterial_pressure: '', // 动脉压
712
+        arterial_pressure_type: 1, // 动脉压
717 713
         sodium_concentration: '', // 钠浓度
718 714
         dialysate_temperature: '', // 透析液温度
719 715
         replacement_rate: '', // 置换率
@@ -780,53 +776,68 @@ export default {
780 776
       }
781 777
     },
782 778
     venousPressureChangeOne() {
783
-      if (this.valueOne == 0) {
784
-        this.form.venous_pressure = Math.ceil(
785
-          Math.round(this.form.venous_pressure * 7.5)
786
-        )
787
-        this.valueOne = 1
788
-        return false
789
-      }
790
-      if (this.valueOne == 1) {
791
-        this.form.venous_pressure = Math.ceil(
792
-          Math.round(this.form.venous_pressure / 7.5)
793
-        )
794
-        this.valueOne = 0
795
-        return false
779
+      if (this.form.venous_pressure_type == 1) {
780
+        this.form.venous_pressure_type = 2
781
+      } else {
782
+        this.form.venous_pressure_type = 1
796 783
       }
784
+      // if (this.valueOne == 0) {
785
+      //   this.form.venous_pressure = Math.ceil(
786
+      //     Math.round(this.form.venous_pressure * 7.5)
787
+      //   )
788
+      //   this.valueOne = 1
789
+      //   return false
790
+      // }
791
+      // if (this.valueOne == 1) {
792
+      //   this.form.venous_pressure = Math.ceil(
793
+      //     Math.round(this.form.venous_pressure / 7.5)
794
+      //   )
795
+      //   this.valueOne = 0
796
+      //   return false
797
+      // }
797 798
     },
798 799
     venousPressureChangeThree() {
799
-      if (this.valueThree == 0) {
800
-        this.form.arterial_pressure = Math.ceil(
801
-          Math.round(this.form.arterial_pressure * 7.5)
802
-        )
803
-        this.valueThree = 1
804
-        return false
805
-      }
806
-      if (this.valueThree == 1) {
807
-        this.form.arterial_pressure = Math.ceil(
808
-          Math.round(this.form.arterial_pressure / 7.5)
809
-        )
810
-        this.valueThree = 0
811
-        return false
800
+      if (this.form.arterial_pressure_type == 1) {
801
+        this.form.arterial_pressure_type = 2
802
+      } else {
803
+        this.form.arterial_pressure_type = 1
812 804
       }
805
+      // if (this.valueThree == 0) {
806
+      //   this.form.arterial_pressure = Math.ceil(
807
+      //     Math.round(this.form.arterial_pressure * 7.5)
808
+      //   )
809
+      //   this.valueThree = 1
810
+      //   return false
811
+      // }
812
+      // if (this.valueThree == 1) {
813
+      //   this.form.arterial_pressure = Math.ceil(
814
+      //     Math.round(this.form.arterial_pressure / 7.5)
815
+      //   )
816
+      //   this.valueThree = 0
817
+      //   return false
818
+      // }
813 819
     },
814 820
 
815 821
     venousPressureChangeTwo() {
816
-      if (this.valueTwo == 0) {
817
-        this.form.transmembrane_pressure = Math.ceil(
818
-          Math.round(this.form.transmembrane_pressure * 7.5)
819
-        )
820
-        this.valueTwo = 1
821
-        return false
822
-      }
823
-      if (this.valueTwo == 1) {
824
-        this.form.transmembrane_pressure = Math.ceil(
825
-          Math.round(this.form.transmembrane_pressure / 7.5)
826
-        )
827
-        this.valueTwo = 0
828
-        return false
822
+      if (this.form.transmembrane_pressure_type == 1) {
823
+        this.form.transmembrane_pressure_type = 2
824
+      } else {
825
+        this.form.transmembrane_pressure_type = 1
829 826
       }
827
+      // if (this.valueTwo == 0) {
828
+      //   this.form.transmembrane_pressure = Math.ceil(
829
+      //     Math.round(this.form.transmembrane_pressure * 7.5)
830
+      //   )
831
+      //   this.valueTwo = 1
832
+      //   return false
833
+      // }
834
+      // if (this.valueTwo == 1) {
835
+      //   this.form.transmembrane_pressure = Math.ceil(
836
+      //     Math.round(this.form.transmembrane_pressure / 7.5)
837
+      //   )
838
+      //   this.valueTwo = 0
839
+      //   return false
840
+      // }
830 841
     },
831 842
 
832 843
     isShow(name) {
@@ -873,8 +884,11 @@ export default {
873 884
         this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
874 885
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
875 886
         this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
887
+        this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1
876 888
         this.form.arterial_pressure = '' // this.last_monitor_record.arterial_pressure;
889
+        this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1
877 890
         this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
891
+        this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1
878 892
         this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
879 893
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
880 894
         this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
@@ -928,10 +942,13 @@ export default {
928 942
         this.form.blood_flow_volume = ''
929 943
         this.form.temperature = ''
930 944
         this.form.venous_pressure = ''
945
+        this.form.venous_pressure_type = 1
931 946
         this.form.transmembrane_pressure = ''
947
+        this.form.transmembrane_pressure_type = 1
932 948
         this.form.ultrafiltration_volume = ''
933 949
         this.form.ultrafiltration_rate = ''
934 950
         this.form.arterial_pressure = ''
951
+        this.form.arterial_pressure_type = 1
935 952
         this.form.sodium_concentration = ''
936 953
         this.form.dialysate_temperature = ''
937 954
         this.form.replacement_rate = ''
@@ -959,10 +976,13 @@ export default {
959 976
         this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : ''
960 977
         this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : ''
961 978
         this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : ''
979
+        this.form.venous_pressure_type = monitor.venous_pressure_type ? monitor.venous_pressure_type : ''
962 980
         this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ''
981
+        this.form.transmembrane_pressure_type = monitor.transmembrane_pressure_type ? monitor.transmembrane_pressure_type : ''
963 982
         this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : ''
964 983
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''
965 984
         this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : ''
985
+        this.form.arterial_pressure_type = monitor.arterial_pressure_type ? monitor.arterial_pressure_type : ''
966 986
         this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : ''
967 987
         this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : ''
968 988
         this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : ''
@@ -995,10 +1015,13 @@ export default {
995 1015
       this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
996 1016
       this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
997 1017
       this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
1018
+      this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type)
998 1019
       this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
1020
+      this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type)
999 1021
       this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1000 1022
       this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1001 1023
       this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
1024
+      this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type)
1002 1025
       this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1003 1026
       this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1004 1027
       this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
@@ -1046,10 +1069,13 @@ export default {
1046 1069
             this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
1047 1070
             this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
1048 1071
             this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
1072
+            this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type)
1049 1073
             this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
1074
+            this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type)
1050 1075
             this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1051 1076
             this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1052 1077
             this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
1078
+            this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type)
1053 1079
             this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1054 1080
             this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1055 1081
             this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -11,9 +11,9 @@
11 11
           <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
12 12
           <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
13 13
           <th v-if="isShow('呼吸频率')" width="110px">呼吸频率(次/分)</th>
14
-          <th width="76px">静脉压/动脉压(mmHg)</th>
14
+          <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
-          <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmhg)</th>
16
+          <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17 17
           <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19)" width="76px" > 超滤量(ml)</th>
18 18
           <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19"  width="76px"> 超滤量(L) </th>
19 19
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>

+ 287 - 287
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue View File

@@ -771,8 +771,8 @@
771 771
           <td width="80" style="line-height:20px">Bp<br />mmHg</td>
772 772
           <td width="40" style="line-height:20px">P<br />次/分</td>
773 773
           <td width="60" style="line-height:20px">R<br />次/分</td>
774
-          <td width="80" style="line-height:20px">静脉压<br />mmHg</td>
775
-          <td width="80" style="line-height:20px">TMP<br />mmHg</td>
774
+          <td width="80" style="line-height:20px">静脉压<br />{{monitors[0] && monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
775
+          <td width="80" style="line-height:20px">TMP<br />{{monitors[0] && monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
776 776
           <td width="60" style="line-height:20px">血流量<br />ml/min</td>
777 777
           <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
778 778
           <!-- <td width="60">钠浓度<br/>mmol/L</td>
@@ -1603,17 +1603,17 @@
1603 1603
 </template>
1604 1604
 
1605 1605
 <script>
1606
-  import { getDialysisRecord } from "@/api/dialysis";
1607
-  import { getDataConfig } from "@/utils/data";
1608
-  import { jsGetAge, uParseTime } from "@/utils/tools";
1609
-  import LabelBox from "../printItem/LabelBox";
1610
-  import BreadCrumb from "@/xt_pages/components/bread-crumb";
1611
-  // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1612
-  // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1613
-  import print from "print-js";
1614
-
1615
-  export default {
1616
-    name: "dialysisPrintOrderOne",
1606
+  import { getDialysisRecord } from '@/api/dialysis'
1607
+import { getDataConfig } from '@/utils/data'
1608
+import { jsGetAge, uParseTime } from '@/utils/tools'
1609
+import LabelBox from '../printItem/LabelBox'
1610
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
1611
+// import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1612
+// import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1613
+import print from 'print-js'
1614
+
1615
+export default {
1616
+    name: 'dialysisPrintOrderOne',
1617 1617
     components: {
1618 1618
       // DialysisPrintOrderOne,
1619 1619
       // DialysisPrintOrderTwo,
@@ -1632,8 +1632,8 @@
1632 1632
         nutrition_arr: [],
1633 1633
 
1634 1634
         crumbs: [
1635
-          { path: false, name: "透析管理" },
1636
-          { path: false, name: "打印单" }
1635
+          { path: false, name: '透析管理' },
1636
+          { path: false, name: '打印单' }
1637 1637
         ],
1638 1638
         operators: [],
1639 1639
         adminUser: [],
@@ -1643,22 +1643,22 @@
1643 1643
         },
1644 1644
         operatorMaps: {},
1645 1645
         complications: [
1646
-          "低血压",
1647
-          "高血压",
1648
-          "心律失常",
1649
-          "头晕",
1650
-          "头痛",
1651
-          "呕吐",
1652
-          "抽搐",
1653
-          "出血",
1654
-          "心衰",
1655
-          "腹痛",
1656
-          "无"
1646
+          '低血压',
1647
+          '高血压',
1648
+          '心律失常',
1649
+          '头晕',
1650
+          '头痛',
1651
+          '呕吐',
1652
+          '抽搐',
1653
+          '出血',
1654
+          '心衰',
1655
+          '腹痛',
1656
+          '无'
1657 1657
         ],
1658 1658
         jilurow: 0,
1659 1659
         advice_jilurow: 0,
1660 1660
         loading: false,
1661
-        orgname: "",
1661
+        orgname: '',
1662 1662
         patientInfo_gender_1: false,
1663 1663
         patientInfo_gender_2: false,
1664 1664
         patientInfo_source_2: false,
@@ -1671,30 +1671,30 @@
1671 1671
         dialysateFormulationOptions: {},
1672 1672
 
1673 1673
         queryParams: {
1674
-          xtdate: "",
1675
-          xtno: ""
1674
+          xtdate: '',
1675
+          xtno: ''
1676 1676
         },
1677 1677
         patientInfo: {
1678
-          birth: "",
1679
-          age: "",
1678
+          birth: '',
1679
+          age: '',
1680 1680
           DialysisSchedule: {
1681
-            device_number: { number: "" },
1682
-            device_zone: { name: "" }
1681
+            device_number: { number: '' },
1682
+            device_zone: { name: '' }
1683 1683
           },
1684 1684
           gender: 0
1685 1685
         },
1686 1686
         predialysis: {
1687
-          score: "",
1688
-          internal_fistula: "",
1689
-          internal_fistula_skin: "",
1690
-          catheter: "",
1691
-          blood_access_part_opera_name: ""
1687
+          score: '',
1688
+          internal_fistula: '',
1689
+          internal_fistula_skin: '',
1690
+          catheter: '',
1691
+          blood_access_part_opera_name: ''
1692 1692
         },
1693 1693
         afterdialysis: {
1694
-          complications_index: ""
1694
+          complications_index: ''
1695 1695
         },
1696 1696
         prescription: {
1697
-          dialysate_formulation_name: "",
1697
+          dialysate_formulation_name: '',
1698 1698
           device: {}
1699 1699
         },
1700 1700
         advices: [],
@@ -1710,72 +1710,72 @@
1710 1710
 
1711 1711
         AlPanel: {
1712 1712
           id: 0,
1713
-          name: "",
1713
+          name: '',
1714 1714
           type: 1,
1715 1715
           shouji: 2,
1716 1716
           weichi: 2,
1717 1717
           zongliang: 2,
1718 1718
           gaimingcheng: -1,
1719 1719
           gaijiliang: -1,
1720
-          shouji_unit: "mg",
1721
-          weichi_unit: "mg/h",
1722
-          zongliang_unit: "mg",
1723
-          gaimingcheng_unit: "",
1724
-          gaijiliang_unit: ""
1720
+          shouji_unit: 'mg',
1721
+          weichi_unit: 'mg/h',
1722
+          zongliang_unit: 'mg',
1723
+          gaimingcheng_unit: '',
1724
+          gaijiliang_unit: ''
1725 1725
         },
1726 1726
         doctorForm: {
1727
-          doctor: "",
1728
-          url: ""
1727
+          doctor: '',
1728
+          url: ''
1729 1729
         }
1730
-      };
1731
-    },
1730
+      }
1731
+  },
1732 1732
     methods: {
1733 1733
       getAdminUser(id) {
1734 1734
         if (id == 0) {
1735
-          return "";
1735
+          return ''
1736 1736
         }
1737 1737
         if (id == undefined) {
1738
-          return "";
1738
+          return ''
1739 1739
         }
1740 1740
         for (let i = 0; i < this.adminUser.length; i++) {
1741 1741
           if (this.adminUser[i].id == id) {
1742
-            return this.adminUser[i].name;
1742
+            return this.adminUser[i].name
1743 1743
           }
1744 1744
         }
1745 1745
       },
1746 1746
       getTime(value, temp) {
1747 1747
         if (value == 0) {
1748
-          return "";
1748
+          return ''
1749 1749
         }
1750 1750
         if (value != undefined) {
1751
-          return uParseTime(value, temp);
1751
+          return uParseTime(value, temp)
1752 1752
         }
1753
-        return "";
1753
+        return ''
1754 1754
       },
1755 1755
       printThisPage() {
1756
-        var ptime = Math.round(new Date().getTime() / 1000);
1757
-        this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
1756
+        var ptime = Math.round(new Date().getTime() / 1000)
1757
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
1758 1758
 
1759 1759
         const style =
1760
-          '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1760
+          '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
1761 1761
 
1762 1762
         if (this.org_template_info.template_id == 1) {
1763 1763
           printJS({
1764
-            printable: "dialysis-print-box",
1765
-            type: "html",
1764
+            printable: 'dialysis-print-box',
1765
+            type: 'html',
1766 1766
             style: style,
1767 1767
             scanStyles: false
1768
-          });
1768
+          })
1769 1769
         } else if (
1770 1770
           this.org_template_info.template_id == 2 ||
1771 1771
           this.org_template_info.template_id == 0
1772 1772
         ) {
1773 1773
           printJS({
1774
-            printable: "dialysis-print-box-1",
1775
-            type: "html",
1774
+            printable: 'dialysis-print-box-1',
1775
+            type: 'html',
1776 1776
             style: style,
1777 1777
             scanStyles: false
1778
-          });
1778
+          })
1779 1779
         }
1780 1780
       },
1781 1781
       getNumber() {
@@ -1783,123 +1783,123 @@
1783 1783
           return (
1784 1784
             //   this.patientInfo.DialysisSchedule.device_zone.name +
1785 1785
             this.dialysisOrder.DeviceNumber.number
1786
-          );
1786
+          )
1787 1787
         } else {
1788 1788
           return (
1789 1789
             //   this.patientInfo.DialysisSchedule.device_zone.name +
1790 1790
             this.patientInfo.DialysisSchedule.device_number.number
1791
-          );
1791
+          )
1792 1792
         }
1793 1793
       },
1794 1794
 
1795 1795
       getXuserName(id) {
1796 1796
         if (id <= 0) {
1797
-          return "";
1797
+          return ''
1798 1798
         }
1799
-        var name = "";
1800
-        if (this.users == null || typeof this.users.length === "undefined") {
1801
-          return name;
1799
+        var name = ''
1800
+        if (this.users == null || typeof this.users.length === 'undefined') {
1801
+          return name
1802 1802
         }
1803
-        var leng = this.users.length;
1803
+        var leng = this.users.length
1804 1804
         if (leng == 0) {
1805
-          return name;
1805
+          return name
1806 1806
         }
1807 1807
         for (let index = 0; index < leng; index++) {
1808 1808
           if (this.users[index].id == id) {
1809
-            name = this.users[index].name;
1810
-            break;
1809
+            name = this.users[index].name
1810
+            break
1811 1811
           }
1812 1812
         }
1813
-        return name;
1813
+        return name
1814 1814
       },
1815 1815
       setAdminUserES(id) {
1816 1816
         if (id == 0) {
1817
-          return "";
1817
+          return ''
1818 1818
         }
1819 1819
         if (id in this.operatorMaps) {
1820
-          return this.operatorMaps[id].url;
1820
+          return this.operatorMaps[id].url
1821 1821
         } else {
1822
-          return "";
1822
+          return ''
1823 1823
         }
1824 1824
       },
1825 1825
       modeName(mode_id) {
1826
-        return typeof this.modeOptions[mode_id] !== "undefined" &&
1827
-        typeof this.modeOptions[mode_id].name !== "undefined"
1826
+        return typeof this.modeOptions[mode_id] !== 'undefined' &&
1827
+        typeof this.modeOptions[mode_id].name !== 'undefined'
1828 1828
           ? this.modeOptions[mode_id].name
1829
-          : "";
1829
+          : ''
1830 1830
       },
1831 1831
       getDialysisRecord() {
1832
-        this.loading = true;
1832
+        this.loading = true
1833 1833
 
1834 1834
         getDialysisRecord(this.queryParams).then(response => {
1835 1835
           if (response.data.state == 1) {
1836
-            this.adminUser = response.data.data.users;
1837
-            this.users = response.data.data.users;
1838
-            this.patientInfo = response.data.data.patientInfo;
1836
+            this.adminUser = response.data.data.users
1837
+            this.users = response.data.data.users
1838
+            this.patientInfo = response.data.data.patientInfo
1839 1839
             this.patientInfo.birth = uParseTime(
1840 1840
               this.patientInfo.birthday,
1841
-              "{y}-{m}-{d}"
1842
-            );
1841
+              '{y}-{m}-{d}'
1842
+            )
1843 1843
             // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
1844 1844
             if (response.data.data.patientInfo.first_dialysis_date != 0) {
1845 1845
               this.patientInfo.first_dialysis_date = uParseTime(
1846 1846
                 response.data.data.patientInfo.first_dialysis_date,
1847
-                "{y}-{m}-{d}"
1848
-              );
1847
+                '{y}-{m}-{d}'
1848
+              )
1849 1849
             } else {
1850
-              this.patientInfo.first_dialysis_date = "";
1850
+              this.patientInfo.first_dialysis_date = ''
1851 1851
             }
1852
-            this.check = response.data.data.check;
1853
-            this.predialysis = response.data.data.PredialysisEvaluation;
1854
-            console.log(11111111111111111111111, this.predialysis);
1852
+            this.check = response.data.data.check
1853
+            this.predialysis = response.data.data.PredialysisEvaluation
1854
+            console.log(11111111111111111111111, this.predialysis)
1855 1855
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1856 1856
               this.predialysis.blood_access_part_opera_id
1857
-            );
1858
-            this.afterdialysis = response.data.data.AssessmentAfterDislysis;
1859
-            console.log(22222222222222222222222222, response.data.data);
1860
-            this.operators = response.data.data.operators;
1857
+            )
1858
+            this.afterdialysis = response.data.data.AssessmentAfterDislysis
1859
+            console.log(22222222222222222222222222, response.data.data)
1860
+            this.operators = response.data.data.operators
1861 1861
             this.dialysisOrder =
1862 1862
               response.data.data.dialysisOrder === null
1863 1863
                 ? null
1864
-                : response.data.data.dialysisOrder;
1864
+                : response.data.data.dialysisOrder
1865 1865
 
1866
-            //医生
1867
-            var doctorname = response.data.data.DoctorName;
1866
+            // 医生
1867
+            var doctorname = response.data.data.DoctorName
1868 1868
             // console.log('医师签名', doctorname)
1869
-            this.doctorForm.doctor = doctorname.user_name;
1870
-            this.doctorForm.url = doctorname.url;
1869
+            this.doctorForm.doctor = doctorname.user_name
1870
+            this.doctorForm.url = doctorname.url
1871 1871
 
1872 1872
             if (this.operators.length > 0) {
1873
-              var operatorsLen = this.operators.length;
1873
+              var operatorsLen = this.operators.length
1874 1874
               for (var index = 0; index < operatorsLen; index++) {
1875 1875
                 this.$set(
1876 1876
                   this.operatorMaps,
1877 1877
                   this.operators[index].creator,
1878 1878
                   this.operators[index]
1879
-                );
1879
+                )
1880 1880
               }
1881 1881
             }
1882 1882
 
1883
-            this.afterdialysis.txqnx = -1;
1884
-            if (this.afterdialysis.cruor.indexOf("0度") > -1) {
1885
-              this.afterdialysis.txqnx = 0;
1883
+            this.afterdialysis.txqnx = -1
1884
+            if (this.afterdialysis.cruor.indexOf('0度') > -1) {
1885
+              this.afterdialysis.txqnx = 0
1886 1886
             }
1887
-            if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
1888
-              this.afterdialysis.txqnx = 1;
1887
+            if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
1888
+              this.afterdialysis.txqnx = 1
1889 1889
             }
1890
-            if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
1891
-              this.afterdialysis.txqnx = 2;
1890
+            if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
1891
+              this.afterdialysis.txqnx = 2
1892 1892
             }
1893
-            if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
1894
-              this.afterdialysis.txqnx = 3;
1893
+            if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
1894
+              this.afterdialysis.txqnx = 3
1895 1895
             }
1896 1896
 
1897 1897
             this.afterdialysis.complications = this.afterdialysis.complication.split(
1898
-              ","
1899
-            );
1900
-            this.afterdialysis.complications_other = [];
1901
-            this.afterdialysis.complications_index = [];
1902
-            var acllen = this.afterdialysis.complications.length;
1898
+              ','
1899
+            )
1900
+            this.afterdialysis.complications_other = []
1901
+            this.afterdialysis.complications_index = []
1902
+            var acllen = this.afterdialysis.complications.length
1903 1903
             for (let index = 0; index < acllen; index++) {
1904 1904
               if (
1905 1905
                 this.complications.indexOf(
@@ -1908,7 +1908,7 @@
1908 1908
               ) {
1909 1909
                 this.afterdialysis.complications_index.push(
1910 1910
                   this.afterdialysis.complications[index]
1911
-                );
1911
+                )
1912 1912
               } else if (
1913 1913
                 this.complications.indexOf(
1914 1914
                   this.afterdialysis.complications[index]
@@ -1919,36 +1919,36 @@
1919 1919
               ) {
1920 1920
                 this.afterdialysis.complications_other.push(
1921 1921
                   this.afterdialysis.complications[index]
1922
-                );
1922
+                )
1923 1923
               }
1924 1924
             }
1925 1925
             this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
1926
-              ","
1927
-            );
1926
+              ','
1927
+            )
1928 1928
 
1929
-            this.prescription = response.data.data.dialysisPrescription;
1929
+            this.prescription = response.data.data.dialysisPrescription
1930 1930
             this.receiverTreatmentAccess =
1931
-              response.data.data.receiverTreatmentAccess;
1931
+              response.data.data.receiverTreatmentAccess
1932 1932
 
1933
-            this.prescription.mode = this.modeName(this.prescription.mode_id);
1934
-            var rwLen = this.replacementWays.length;
1935
-            this.prescription.replacement = "";
1933
+            this.prescription.mode = this.modeName(this.prescription.mode_id)
1934
+            var rwLen = this.replacementWays.length
1935
+            this.prescription.replacement = ''
1936 1936
             for (let index = 0; index < rwLen; index++) {
1937 1937
               if (
1938 1938
                 this.replacementWays[index].id ==
1939 1939
                 this.prescription.replacement_way
1940 1940
               ) {
1941
-                this.prescription.replacement = this.replacementWays[index].name;
1942
-                break;
1941
+                this.prescription.replacement = this.replacementWays[index].name
1942
+                break
1943 1943
               }
1944 1944
             }
1945 1945
 
1946 1946
             this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
1947 1947
               this.prescription.dialysate_formulation
1948
-            );
1948
+            )
1949 1949
 
1950
-            var paLen = this.perfusionApparatus.length;
1951
-            this.prescription.perfusion_apparatus_name = "";
1950
+            var paLen = this.perfusionApparatus.length
1951
+            this.prescription.perfusion_apparatus_name = ''
1952 1952
             for (let index = 0; index < paLen; index++) {
1953 1953
               if (
1954 1954
                 this.perfusionApparatus[index].id ==
@@ -1956,155 +1956,155 @@
1956 1956
               ) {
1957 1957
                 this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
1958 1958
                   index
1959
-                  ].name;
1960
-                break;
1959
+                ].name
1960
+                break
1961 1961
               }
1962 1962
             }
1963 1963
 
1964
-            var acLen = this.anticoagulantsConfit.length;
1965
-            var thisALID = this.prescription.anticoagulant;
1966
-            this.prescription.anticoagulant_name = "";
1964
+            var acLen = this.anticoagulantsConfit.length
1965
+            var thisALID = this.prescription.anticoagulant
1966
+            this.prescription.anticoagulant_name = ''
1967 1967
 
1968 1968
             if (
1969
-              typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
1969
+              typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
1970 1970
               this.anticoagulantsConfit[thisALID] != null
1971 1971
             ) {
1972 1972
               this.prescription.anticoagulant_name = this.anticoagulantsConfit[
1973 1973
                 thisALID
1974
-                ].name;
1975
-              this.AlPanel = this.anticoagulantsConfit[thisALID];
1974
+              ].name
1975
+              this.AlPanel = this.anticoagulantsConfit[thisALID]
1976 1976
             }
1977 1977
 
1978
-            this.advices = response.data.data.advices;
1979
-            console.log("hhhhhhhhhhhh", this.advices);
1980
-            this.monitors = response.data.data.monitors;
1981
-            console.log("哈哈哈哈哈哈哈", this.monitors);
1982
-            console.log(response.data.data);
1983
-            this.summary = response.data.data.summary;
1984
-            this.org_template_info = response.data.data.org_template_info;
1978
+            this.advices = response.data.data.advices
1979
+            console.log('hhhhhhhhhhhh', this.advices)
1980
+            this.monitors = response.data.data.monitors
1981
+            console.log('哈哈哈哈哈哈哈', this.monitors)
1982
+            console.log(response.data.data)
1983
+            this.summary = response.data.data.summary
1984
+            this.org_template_info = response.data.data.org_template_info
1985 1985
             // 配置超滤量和置换量是否要显示0还是空
1986 1986
             if (this.org_template_info.org_id == 9535) {
1987
-              this.isShowZero = true;
1987
+              this.isShowZero = true
1988 1988
             }
1989 1989
             if (this.monitors.length < 8) {
1990
-              var nl = 8 - this.monitors.length;
1990
+              var nl = 8 - this.monitors.length
1991 1991
               for (let index = 0; index < nl; index++) {
1992
-                this.monitors.push([]);
1992
+                this.monitors.push([])
1993 1993
               }
1994 1994
             }
1995
-            this.jilurow = this.monitors.length + 1;
1995
+            this.jilurow = this.monitors.length + 1
1996 1996
 
1997
-            this.advice_jilurow = this.advices.length + 1;
1997
+            this.advice_jilurow = this.advices.length + 1
1998 1998
 
1999
-            var childMap = {};
1999
+            var childMap = {}
2000 2000
             for (const index in this.advices) {
2001 2001
               if (this.advices[index].parent_id == 0) {
2002
-                continue;
2002
+                continue
2003 2003
               }
2004 2004
               if (!(this.advices[index].parent_id in childMap)) {
2005
-                childMap[this.advices[index].parent_id] = [];
2005
+                childMap[this.advices[index].parent_id] = []
2006 2006
               }
2007
-              childMap[this.advices[index].parent_id].push(this.advices[index]);
2007
+              childMap[this.advices[index].parent_id].push(this.advices[index])
2008 2008
             }
2009 2009
 
2010
-            var advices = [];
2010
+            var advices = []
2011 2011
             for (const index in this.advices) {
2012 2012
               if (this.advices[index].parent_id > 0) {
2013
-                continue;
2013
+                continue
2014 2014
               }
2015
-              var item = this.advices[index];
2015
+              var item = this.advices[index]
2016 2016
               if (item.id in childMap) {
2017
-                item.children = childMap[item.id];
2017
+                item.children = childMap[item.id]
2018 2018
               } else {
2019
-                item.children = [];
2019
+                item.children = []
2020 2020
               }
2021
-              advices.push(item);
2021
+              advices.push(item)
2022 2022
             }
2023 2023
 
2024
-            var leftAdvice = [];
2025
-            var rightAdvice = [];
2026
-            var adlen = advices.length;
2024
+            var leftAdvice = []
2025
+            var rightAdvice = []
2026
+            var adlen = advices.length
2027 2027
 
2028
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2028
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2029 2029
             for (var i = 0; i < halfLen; i++) {
2030
-              leftAdvice.push(advices[i]);
2031
-              rightAdvice.push(advices[i + halfLen]);
2030
+              leftAdvice.push(advices[i])
2031
+              rightAdvice.push(advices[i + halfLen])
2032 2032
             }
2033 2033
             if (halfLen < 5) {
2034
-              var nl = 5 - leftAdvice.length;
2034
+              var nl = 5 - leftAdvice.length
2035 2035
               for (let index = 0; index < nl; index++) {
2036
-                leftAdvice.push([]);
2036
+                leftAdvice.push([])
2037 2037
               }
2038
-              var nl = 5 - rightAdvice.length;
2038
+              var nl = 5 - rightAdvice.length
2039 2039
               for (let index = 0; index < nl; index++) {
2040
-                rightAdvice.push([]);
2040
+                rightAdvice.push([])
2041 2041
               }
2042 2042
             }
2043 2043
 
2044
-            this.advices = [];
2044
+            this.advices = []
2045 2045
             for (var i = 0; i < halfLen; i++) {
2046
-              var item = [];
2047
-              item.push(leftAdvice[i]);
2048
-              item.push(rightAdvice[i]);
2049
-              this.advices.push(item);
2046
+              var item = []
2047
+              item.push(leftAdvice[i])
2048
+              item.push(rightAdvice[i])
2049
+              this.advices.push(item)
2050 2050
             }
2051
-            this.loading = false;
2051
+            this.loading = false
2052 2052
 
2053 2053
             this.doctor_advices =
2054 2054
               response.data.data.advices == null
2055 2055
                 ? []
2056
-                : response.data.data.advices;
2056
+                : response.data.data.advices
2057 2057
             for (let index = 0; index < this.doctor_advices.length; index++) {
2058
-              this.doctor_advices[index]["isShow"] = 2;
2058
+              this.doctor_advices[index]['isShow'] = 2
2059 2059
             }
2060 2060
             if (this.doctor_advices.length === 0) {
2061
-              var obj = { advice_name: "", start_time: "" };
2062
-              var obj1 = { advice_name: "", start_time: "" };
2063
-              var obj2 = { advice_name: "", start_time: "" };
2064
-              var obj3 = { advice_name: "", start_time: "" };
2065
-              this.doctor_advices.push(obj);
2066
-              this.doctor_advices.push(obj1);
2067
-              this.doctor_advices.push(obj2);
2068
-              this.doctor_advices.push(obj3);
2061
+              var obj = { advice_name: '', start_time: '' }
2062
+              var obj1 = { advice_name: '', start_time: '' }
2063
+              var obj2 = { advice_name: '', start_time: '' }
2064
+              var obj3 = { advice_name: '', start_time: '' }
2065
+              this.doctor_advices.push(obj)
2066
+              this.doctor_advices.push(obj1)
2067
+              this.doctor_advices.push(obj2)
2068
+              this.doctor_advices.push(obj3)
2069 2069
             }
2070 2070
             if (this.doctor_advices.length === 1) {
2071
-              var obj = { advice_name: "", start_time: "" };
2072
-              var obj1 = { advice_name: "", start_time: "" };
2073
-              var obj2 = { advice_name: "", start_time: "" };
2074
-              this.doctor_advices.push(obj);
2075
-              this.doctor_advices.push(obj1);
2076
-              this.doctor_advices.push(obj2);
2071
+              var obj = { advice_name: '', start_time: '' }
2072
+              var obj1 = { advice_name: '', start_time: '' }
2073
+              var obj2 = { advice_name: '', start_time: '' }
2074
+              this.doctor_advices.push(obj)
2075
+              this.doctor_advices.push(obj1)
2076
+              this.doctor_advices.push(obj2)
2077 2077
             }
2078 2078
             if (this.doctor_advices.length === 2) {
2079
-              var obj = { advice_name: "", start_time: "" };
2080
-              var obj1 = { advice_name: "", start_time: "" };
2081
-              this.doctor_advices.push(obj);
2082
-              this.doctor_advices.push(obj1);
2079
+              var obj = { advice_name: '', start_time: '' }
2080
+              var obj1 = { advice_name: '', start_time: '' }
2081
+              this.doctor_advices.push(obj)
2082
+              this.doctor_advices.push(obj1)
2083 2083
             }
2084 2084
             if (this.doctor_advices.length === 3) {
2085 2085
               // eslint-disable-next-line no-redeclare
2086
-              var obj = { advice_name: "", start_time: "" };
2087
-              this.doctor_advices.push(obj);
2086
+              var obj = { advice_name: '', start_time: '' }
2087
+              this.doctor_advices.push(obj)
2088 2088
             }
2089 2089
 
2090 2090
             if (this.doctor_advices.length > 0) {
2091
-              var group = this.newAdviceGroupObject();
2091
+              var group = this.newAdviceGroupObject()
2092 2092
               var initGroupBlock = function(group, advice) {
2093
-                group.group_no = advice.groupno;
2094
-              };
2093
+                group.group_no = advice.groupno
2094
+              }
2095 2095
               for (
2096 2096
                 let index = this.doctor_advices.length - 1;
2097 2097
                 index >= 0;
2098 2098
                 index--
2099 2099
               ) {
2100
-                var new_advice_index = 0;
2100
+                var new_advice_index = 0
2101 2101
 
2102 2102
                 if (
2103
-                  "children" in this.doctor_advices[index] &&
2103
+                  'children' in this.doctor_advices[index] &&
2104 2104
                   this.doctor_advices[index].children.length > 0
2105 2105
                 ) {
2106 2106
                   new_advice_index =
2107
-                    index + this.doctor_advices[index].children.length + 1;
2107
+                    index + this.doctor_advices[index].children.length + 1
2108 2108
 
2109 2109
                   var doctor_advice = {
2110 2110
                     delivery_way: this.doctor_advices[index].delivery_way,
@@ -2115,84 +2115,84 @@
2115 2115
                     parent_id: this.doctor_advices[index].parent_id,
2116 2116
                     children: this.doctor_advices[index].children,
2117 2117
                     remark: this.doctor_advices[index].remark
2118
-                  };
2119
-                  doctor_advice["isShow"] = 1;
2120
-                  this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
2121
-                  // this.doctor_advices.push(doctor_advice)
2118
+                  }
2119
+                  doctor_advice['isShow'] = 1
2120
+                  this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
2121
+                // this.doctor_advices.push(doctor_advice)
2122 2122
                 }
2123 2123
               }
2124 2124
 
2125 2125
               for (let index = 0; index < this.doctor_advices.length; index++) {
2126
-                const advice = this.doctor_advices[index];
2126
+                const advice = this.doctor_advices[index]
2127 2127
                 if (advice.groupno == 0) {
2128 2128
                   // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
2129 2129
                   if (advice.parent_id > 0) {
2130 2130
                     if (this.advice_groups.length > 0) {
2131 2131
                       var parent_group = this.advice_groups[
2132
-                      this.advice_groups.length - 1
2133
-                        ];
2132
+                        this.advice_groups.length - 1
2133
+                      ]
2134 2134
                       if (parent_group.advices.length > 0) {
2135 2135
                         if (parent_group.advices[0].id == advice.parent_id) {
2136
-                          parent_group.advices.push(advice);
2136
+                          parent_group.advices.push(advice)
2137 2137
                         }
2138 2138
                       }
2139 2139
                     }
2140
-                    continue;
2140
+                    continue
2141 2141
                   } else {
2142 2142
                     if (group.group_no > 0) {
2143
-                      this.advice_groups.push(group);
2144
-                      group = this.newAdviceGroupObject();
2143
+                      this.advice_groups.push(group)
2144
+                      group = this.newAdviceGroupObject()
2145 2145
                     }
2146 2146
 
2147
-                    initGroupBlock(group, advice);
2148
-                    group.advices.push(advice);
2149
-                    this.advice_groups.push(group);
2150
-                    group = this.newAdviceGroupObject();
2151
-                    continue;
2147
+                    initGroupBlock(group, advice)
2148
+                    group.advices.push(advice)
2149
+                    this.advice_groups.push(group)
2150
+                    group = this.newAdviceGroupObject()
2151
+                    continue
2152 2152
                   }
2153 2153
                 }
2154 2154
 
2155 2155
                 if (group.group_no > 0 && group.group_no != advice.groupno) {
2156
-                  this.advice_groups.push(group);
2157
-                  group = this.newAdviceGroupObject();
2156
+                  this.advice_groups.push(group)
2157
+                  group = this.newAdviceGroupObject()
2158 2158
                 }
2159 2159
                 if (group.group_no == 0) {
2160
-                  initGroupBlock(group, advice);
2160
+                  initGroupBlock(group, advice)
2161 2161
                 }
2162 2162
                 if (group.group_no == advice.groupno) {
2163
-                  group.advices.push(advice);
2163
+                  group.advices.push(advice)
2164 2164
                 }
2165 2165
               }
2166 2166
               if (group.group_no > 0) {
2167 2167
                 // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
2168
-                this.advice_groups.push(group);
2168
+                this.advice_groups.push(group)
2169 2169
               }
2170 2170
             }
2171
-            console.log(this.advice_groups);
2171
+            console.log(this.advice_groups)
2172 2172
           } else {
2173
-            this.loading = false;
2174
-            this.$message.error("请求数据失败");
2175
-            return false;
2173
+            this.loading = false
2174
+            this.$message.error('请求数据失败')
2175
+            return false
2176 2176
           }
2177
-        });
2177
+        })
2178 2178
       },
2179 2179
       bloodAccessParOperaName(id) {
2180 2180
         if (id in this.bloodAccessParOpera) {
2181
-          return this.bloodAccessParOpera[id].name;
2181
+          return this.bloodAccessParOpera[id].name
2182 2182
         }
2183
-        return "";
2183
+        return ''
2184 2184
       },
2185 2185
       dialysateFormulationName(id) {
2186 2186
         if (id in this.dialysateFormulationOptions) {
2187
-          return this.dialysateFormulationOptions[id].name;
2187
+          return this.dialysateFormulationOptions[id].name
2188 2188
         }
2189
-        return "";
2189
+        return ''
2190 2190
       },
2191 2191
       getAge: function(val) {
2192 2192
         if (val.birthday != 0) {
2193
-          return jsGetAge(val.birth, "-");
2193
+          return jsGetAge(val.birth, '-')
2194 2194
         }
2195
-        return "";
2195
+        return ''
2196 2196
       },
2197 2197
       newAdviceGroupObject: function() {
2198 2198
         return Object.assign(
@@ -2206,90 +2206,90 @@
2206 2206
             // exec_time: 0,
2207 2207
             // checker: 0,
2208 2208
           }
2209
-        );
2209
+        )
2210 2210
       }
2211 2211
     },
2212 2212
     watch: {
2213
-      "patientInfo.gender": function() {
2213
+      'patientInfo.gender': function() {
2214 2214
         if (this.patientInfo.gender == 1) {
2215
-          this.patientInfo_gender_1 = true;
2216
-          this.patientInfo_gender_2 = false;
2215
+          this.patientInfo_gender_1 = true
2216
+          this.patientInfo_gender_2 = false
2217 2217
         } else if (this.patientInfo.gender == 2) {
2218
-          this.patientInfo_gender_2 = true;
2219
-          this.patientInfo_gender_1 = false;
2218
+          this.patientInfo_gender_2 = true
2219
+          this.patientInfo_gender_1 = false
2220 2220
         } else {
2221
-          this.patientInfo_gender_2 = false;
2222
-          this.patientInfo_gender_1 = false;
2221
+          this.patientInfo_gender_2 = false
2222
+          this.patientInfo_gender_1 = false
2223 2223
         }
2224 2224
       },
2225
-      "patientInfo.source": function() {
2225
+      'patientInfo.source': function() {
2226 2226
         if (this.patientInfo.source == 1) {
2227
-          this.patientInfo_source_1 = true;
2228
-          this.patientInfo_source_2 = false;
2227
+          this.patientInfo_source_1 = true
2228
+          this.patientInfo_source_2 = false
2229 2229
         } else if (this.patientInfo.source == 2) {
2230
-          this.patientInfo_source_2 = true;
2231
-          this.patientInfo_source_1 = false;
2230
+          this.patientInfo_source_2 = true
2231
+          this.patientInfo_source_1 = false
2232 2232
         } else {
2233
-          this.patientInfo_source_2 = false;
2234
-          this.patientInfo_source_1 = false;
2233
+          this.patientInfo_source_2 = false
2234
+          this.patientInfo_source_1 = false
2235 2235
         }
2236 2236
       }
2237 2237
     },
2238 2238
     created() {
2239
-      var xtuser = this.$store.getters.xt_user;
2240
-      this.orgname = xtuser.org.org_name;
2239
+      var xtuser = this.$store.getters.xt_user
2240
+      this.orgname = xtuser.org.org_name
2241 2241
       // this.orgname = "遂溪方济医院";
2242
-      this.modeOptions = this.$store.getters.treatment_mode;
2243
-      this.replacementWays = this.$store.getters.replacement_ways;
2244
-      this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2245
-      this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2246
-
2247
-      this.way_arr = getDataConfig("hemodialysis", "way");
2248
-      this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
2249
-      this.appetite_arr = getDataConfig("hemodialysis", "appetite");
2250
-      this.posture_arr = getDataConfig("hemodialysis", "posture");
2251
-      this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
2252
-      this.precaution_arr = getDataConfig("hemodialysis", "precaution");
2253
-      this.intake_arr = getDataConfig("hemodialysis", "intake");
2254
-      this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
2242
+      this.modeOptions = this.$store.getters.treatment_mode
2243
+      this.replacementWays = this.$store.getters.replacement_ways
2244
+      this.perfusionApparatus = this.$store.getters.perfusion_apparatus
2245
+      this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2246
+
2247
+      this.way_arr = getDataConfig('hemodialysis', 'way')
2248
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
2249
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
2250
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
2251
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
2252
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
2253
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
2254
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
2255 2255
 
2256 2256
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
2257 2257
 
2258 2258
       var bloodAccessParOpera = getDataConfig(
2259
-        "hemodialysis",
2260
-        "vascular_access_desc"
2261
-      );
2259
+        'hemodialysis',
2260
+        'vascular_access_desc'
2261
+      )
2262 2262
       for (var key in bloodAccessParOpera) {
2263 2263
         this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2264
-          bloodAccessParOpera[key];
2264
+          bloodAccessParOpera[key]
2265 2265
       }
2266 2266
 
2267 2267
       var dialysateFormulationOptions = getDataConfig(
2268
-        "hemodialysis",
2269
-        "dialysate_formulation"
2270
-      );
2268
+        'hemodialysis',
2269
+        'dialysate_formulation'
2270
+      )
2271 2271
       for (var key in dialysateFormulationOptions) {
2272 2272
         this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
2273
-          dialysateFormulationOptions[key];
2273
+          dialysateFormulationOptions[key]
2274 2274
       }
2275 2275
 
2276
-      const xtdate = this.$route.query && this.$route.query.xtdate;
2277
-      const xtno = this.$route.query && this.$route.query.xtno;
2276
+      const xtdate = this.$route.query && this.$route.query.xtdate
2277
+      const xtno = this.$route.query && this.$route.query.xtno
2278 2278
       if (
2279
-        typeof xtdate === "string" &&
2279
+        typeof xtdate === 'string' &&
2280 2280
         xtdate.length > 0 &&
2281
-        typeof xtno === "string" &&
2281
+        typeof xtno === 'string' &&
2282 2282
         xtno.length > 0
2283 2283
       ) {
2284
-        this.queryParams.xtdate = xtdate;
2285
-        this.queryParams.xtno = xtno;
2286
-        this.getDialysisRecord();
2284
+        this.queryParams.xtdate = xtdate
2285
+        this.queryParams.xtno = xtno
2286
+        this.getDialysisRecord()
2287 2287
       } else {
2288
-        this.$message.error("参数不齐");
2289
-        return false;
2288
+        this.$message.error('参数不齐')
2289
+        return false
2290 2290
       }
2291 2291
     }
2292
-  };
2292
+  }
2293 2293
 </script>
2294 2294
 
2295 2295
 <style>

+ 264 - 264
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue View File

@@ -678,11 +678,11 @@
678 678
                     <td width="10"></td>
679 679
                     <td width="105" colspan="2">
680 680
                       压迫后内瘘震颤:
681
-                      <label-box :isChecked="afterdialysis.internal_fistula.indexOf('存在') > -1 ? true : false" showValue="存在"></label-box>
681
+                      <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('存在') > -1 ? true : false" showValue="存在"></label-box>
682 682
                       &nbsp;
683
-                      <label-box :isChecked="afterdialysis.internal_fistula.indexOf('减弱') > -1 ? true : false" showValue="减弱"></label-box>
683
+                      <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('减弱') > -1 ? true : false" showValue="减弱"></label-box>
684 684
                       &nbsp;
685
-                      <label-box :isChecked="afterdialysis.internal_fistula.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
685
+                      <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
686 686
                     </td>
687 687
                     <td></td>
688 688
                   </tr>
@@ -694,17 +694,17 @@
694 694
                   <tr>
695 695
                     <td width="55">并发症:</td>
696 696
                     <td width="600">
697
-                      <label-box :isChecked="afterdialysis.complication.indexOf('低血压') > -1 ? true : false" showValue="低血压"></label-box>
698
-                      <label-box :isChecked="afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
699
-                      <label-box :isChecked="afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
700
-                      <label-box :isChecked="afterdialysis.complication.indexOf('头晕') > -1 ? true : false" showValue="头晕"></label-box>
701
-                      <label-box :isChecked="afterdialysis.complication.indexOf('头痛') > -1 ? true : false" showValue="头痛"></label-box>
702
-                      <label-box :isChecked="afterdialysis.complication.indexOf('呕吐') > -1 ? true : false" showValue="呕吐"></label-box>
703
-                      <label-box :isChecked="afterdialysis.complication.indexOf('抽搐') > -1 ? true : false" showValue="抽搐"></label-box>
704
-                      <label-box :isChecked="afterdialysis.complication.indexOf('出血') > -1 ? true : false" showValue="出血"></label-box>
705
-                      <label-box :isChecked="afterdialysis.complication.indexOf('心衰') > -1 ? true : false" showValue="心衰"></label-box>
706
-                      <label-box :isChecked="afterdialysis.complication.indexOf('腹痛') > -1 ? true : false" showValue="腹痛"></label-box>
707
-                      <label-box :isChecked="afterdialysis.complication.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
697
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('低血压') > -1 ? true : false" showValue="低血压"></label-box>
698
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
699
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
700
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('头晕') > -1 ? true : false" showValue="头晕"></label-box>
701
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('头痛') > -1 ? true : false" showValue="头痛"></label-box>
702
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('呕吐') > -1 ? true : false" showValue="呕吐"></label-box>
703
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('抽搐') > -1 ? true : false" showValue="抽搐"></label-box>
704
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('出血') > -1 ? true : false" showValue="出血"></label-box>
705
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('心衰') > -1 ? true : false" showValue="心衰"></label-box>
706
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('腹痛') > -1 ? true : false" showValue="腹痛"></label-box>
707
+                      <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
708 708
                     </td>
709 709
                     <td></td>
710 710
                   </tr>
@@ -993,17 +993,17 @@
993 993
 </template>
994 994
 
995 995
 <script>
996
-import { getDialysisRecord } from "@/api/dialysis";
997
-import { getDataConfig } from "@/utils/data";
998
-import { jsGetAge, uParseTime } from "@/utils/tools";
999
-import LabelBox from "../printItem/LabelBox";
1000
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
996
+import { getDialysisRecord } from '@/api/dialysis'
997
+import { getDataConfig } from '@/utils/data'
998
+import { jsGetAge, uParseTime } from '@/utils/tools'
999
+import LabelBox from '../printItem/LabelBox'
1000
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
1001 1001
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1002 1002
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1003
-import print from "print-js";
1003
+import print from 'print-js'
1004 1004
 
1005 1005
 export default {
1006
-  name: "dialysisPrintOrderOne",
1006
+  name: 'dialysisPrintOrderOne',
1007 1007
   components: {
1008 1008
     // DialysisPrintOrderOne,
1009 1009
     // DialysisPrintOrderTwo,
@@ -1022,8 +1022,8 @@ export default {
1022 1022
       nutrition_arr: [],
1023 1023
 
1024 1024
       crumbs: [
1025
-        { path: false, name: "透析管理" },
1026
-        { path: false, name: "打印单" }
1025
+        { path: false, name: '透析管理' },
1026
+        { path: false, name: '打印单' }
1027 1027
       ],
1028 1028
       operators: [],
1029 1029
       adminUser: [],
@@ -1033,22 +1033,22 @@ export default {
1033 1033
       },
1034 1034
       operatorMaps: {},
1035 1035
       complications: [
1036
-        "低血压",
1037
-        "高血压",
1038
-        "心律失常",
1039
-        "头晕",
1040
-        "头痛",
1041
-        "呕吐",
1042
-        "抽搐",
1043
-        "出血",
1044
-        "心衰",
1045
-        "腹痛",
1046
-        "无"
1036
+        '低血压',
1037
+        '高血压',
1038
+        '心律失常',
1039
+        '头晕',
1040
+        '头痛',
1041
+        '呕吐',
1042
+        '抽搐',
1043
+        '出血',
1044
+        '心衰',
1045
+        '腹痛',
1046
+        '无'
1047 1047
       ],
1048 1048
       jilurow: 0,
1049 1049
       advice_jilurow: 0,
1050 1050
       loading: false,
1051
-      orgname: "",
1051
+      orgname: '',
1052 1052
       patientInfo_gender_1: false,
1053 1053
       patientInfo_gender_2: false,
1054 1054
       patientInfo_source_2: false,
@@ -1061,30 +1061,30 @@ export default {
1061 1061
       dialysateFormulationOptions: {},
1062 1062
 
1063 1063
       queryParams: {
1064
-        xtdate: "",
1065
-        xtno: ""
1064
+        xtdate: '',
1065
+        xtno: ''
1066 1066
       },
1067 1067
       patientInfo: {
1068
-        birth: "",
1069
-        age: "",
1068
+        birth: '',
1069
+        age: '',
1070 1070
         DialysisSchedule: {
1071
-          device_number: { number: "" },
1072
-          device_zone: { name: "" }
1071
+          device_number: { number: '' },
1072
+          device_zone: { name: '' }
1073 1073
         },
1074 1074
         gender: 0
1075 1075
       },
1076 1076
       predialysis: {
1077
-        score: "",
1078
-        internal_fistula: "",
1079
-        internal_fistula_skin: "",
1080
-        catheter: "",
1081
-        blood_access_part_opera_name: ""
1077
+        score: '',
1078
+        internal_fistula: '',
1079
+        internal_fistula_skin: '',
1080
+        catheter: '',
1081
+        blood_access_part_opera_name: ''
1082 1082
       },
1083 1083
       afterdialysis: {
1084
-        complications_index: ""
1084
+        complications_index: ''
1085 1085
       },
1086 1086
       prescription: {
1087
-        dialysate_formulation_name: "",
1087
+        dialysate_formulation_name: '',
1088 1088
         device: {}
1089 1089
       },
1090 1090
       advices: [],
@@ -1100,68 +1100,68 @@ export default {
1100 1100
 
1101 1101
       AlPanel: {
1102 1102
         id: 0,
1103
-        name: "",
1103
+        name: '',
1104 1104
         type: 1,
1105 1105
         shouji: 2,
1106 1106
         weichi: 2,
1107 1107
         zongliang: 2,
1108 1108
         gaimingcheng: -1,
1109 1109
         gaijiliang: -1,
1110
-        shouji_unit: "mg",
1111
-        weichi_unit: "mg/h",
1112
-        zongliang_unit: "mg",
1113
-        gaimingcheng_unit: "",
1114
-        gaijiliang_unit: ""
1110
+        shouji_unit: 'mg',
1111
+        weichi_unit: 'mg/h',
1112
+        zongliang_unit: 'mg',
1113
+        gaimingcheng_unit: '',
1114
+        gaijiliang_unit: ''
1115 1115
       }
1116
-    };
1116
+    }
1117 1117
   },
1118 1118
   methods: {
1119 1119
     getAdminUser(id) {
1120 1120
       if (id == 0) {
1121
-        return "";
1121
+        return ''
1122 1122
       }
1123 1123
       if (id == undefined) {
1124
-        return "";
1124
+        return ''
1125 1125
       }
1126 1126
       for (let i = 0; i < this.adminUser.length; i++) {
1127 1127
         if (this.adminUser[i].id == id) {
1128
-          return this.adminUser[i].name;
1128
+          return this.adminUser[i].name
1129 1129
         }
1130 1130
       }
1131 1131
     },
1132 1132
     getTime(value, temp) {
1133 1133
       if (value == 0) {
1134
-        return "";
1134
+        return ''
1135 1135
       }
1136 1136
       if (value != undefined) {
1137
-        return uParseTime(value, temp);
1137
+        return uParseTime(value, temp)
1138 1138
       }
1139
-      return "";
1139
+      return ''
1140 1140
     },
1141 1141
     printThisPage() {
1142
-      var ptime = Math.round(new Date().getTime() / 1000);
1143
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
1142
+      var ptime = Math.round(new Date().getTime() / 1000)
1143
+      this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
1144 1144
 
1145 1145
       const style =
1146
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1146
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
1147 1147
 
1148 1148
       if (this.org_template_info.template_id == 1) {
1149 1149
         printJS({
1150
-          printable: "dialysis-print-box",
1151
-          type: "html",
1150
+          printable: 'dialysis-print-box',
1151
+          type: 'html',
1152 1152
           style: style,
1153 1153
           scanStyles: false
1154
-        });
1154
+        })
1155 1155
       } else if (
1156 1156
         this.org_template_info.template_id == 2 ||
1157 1157
         this.org_template_info.template_id == 0
1158 1158
       ) {
1159 1159
         printJS({
1160
-          printable: "dialysis-print-box-1",
1161
-          type: "html",
1160
+          printable: 'dialysis-print-box-1',
1161
+          type: 'html',
1162 1162
           style: style,
1163 1163
           scanStyles: false
1164
-        });
1164
+        })
1165 1165
       }
1166 1166
     },
1167 1167
     getNumber() {
@@ -1169,117 +1169,117 @@ export default {
1169 1169
         return (
1170 1170
           this.patientInfo.DialysisSchedule.device_zone.name +
1171 1171
           this.dialysisOrder.DeviceNumber.number
1172
-        );
1172
+        )
1173 1173
       } else {
1174 1174
         return (
1175 1175
           this.patientInfo.DialysisSchedule.device_zone.name +
1176 1176
           this.patientInfo.DialysisSchedule.device_number.number
1177
-        );
1177
+        )
1178 1178
       }
1179 1179
     },
1180 1180
 
1181 1181
     getXuserName(id) {
1182 1182
       if (id <= 0) {
1183
-        return "";
1183
+        return ''
1184 1184
       }
1185
-      var name = "";
1186
-      if (this.users == null || typeof this.users.length === "undefined") {
1187
-        return name;
1185
+      var name = ''
1186
+      if (this.users == null || typeof this.users.length === 'undefined') {
1187
+        return name
1188 1188
       }
1189
-      var leng = this.users.length;
1189
+      var leng = this.users.length
1190 1190
       if (leng == 0) {
1191
-        return name;
1191
+        return name
1192 1192
       }
1193 1193
       for (let index = 0; index < leng; index++) {
1194 1194
         if (this.users[index].id == id) {
1195
-          name = this.users[index].name;
1196
-          break;
1195
+          name = this.users[index].name
1196
+          break
1197 1197
         }
1198 1198
       }
1199
-      return name;
1199
+      return name
1200 1200
     },
1201 1201
     setAdminUserES(id) {
1202 1202
       if (id == 0) {
1203
-        return "";
1203
+        return ''
1204 1204
       }
1205 1205
       if (id in this.operatorMaps) {
1206
-        return this.operatorMaps[id].url;
1206
+        return this.operatorMaps[id].url
1207 1207
       } else {
1208
-        return "";
1208
+        return ''
1209 1209
       }
1210 1210
     },
1211 1211
     modeName(mode_id) {
1212
-      return typeof this.modeOptions[mode_id] !== "undefined" &&
1213
-        typeof this.modeOptions[mode_id].name !== "undefined"
1212
+      return typeof this.modeOptions[mode_id] !== 'undefined' &&
1213
+        typeof this.modeOptions[mode_id].name !== 'undefined'
1214 1214
         ? this.modeOptions[mode_id].name
1215
-        : "";
1215
+        : ''
1216 1216
     },
1217 1217
     getDialysisRecord() {
1218
-      this.loading = true;
1218
+      this.loading = true
1219 1219
 
1220 1220
       getDialysisRecord(this.queryParams).then(response => {
1221 1221
         if (response.data.state == 1) {
1222
-          this.adminUser = response.data.data.users;
1223
-          this.users = response.data.data.users;
1224
-          this.patientInfo = response.data.data.patientInfo;
1222
+          this.adminUser = response.data.data.users
1223
+          this.users = response.data.data.users
1224
+          this.patientInfo = response.data.data.patientInfo
1225 1225
           this.patientInfo.birth = uParseTime(
1226 1226
             this.patientInfo.birthday,
1227
-            "{y}-{m}-{d}"
1228
-          );
1227
+            '{y}-{m}-{d}'
1228
+          )
1229 1229
           // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
1230 1230
           if (response.data.data.patientInfo.first_dialysis_date != 0) {
1231 1231
             this.patientInfo.first_dialysis_date = uParseTime(
1232 1232
               response.data.data.patientInfo.first_dialysis_date,
1233
-              "{y}-{m}-{d}"
1234
-            );
1233
+              '{y}-{m}-{d}'
1234
+            )
1235 1235
           } else {
1236
-            this.patientInfo.first_dialysis_date = "";
1236
+            this.patientInfo.first_dialysis_date = ''
1237 1237
           }
1238
-          this.check = response.data.data.check;
1239
-          this.predialysis = response.data.data.PredialysisEvaluation;
1240
-          console.log("透前评估", this.predialysis);
1238
+          this.check = response.data.data.check
1239
+          this.predialysis = response.data.data.PredialysisEvaluation
1240
+          console.log('透前评估', this.predialysis)
1241 1241
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1242 1242
             this.predialysis.blood_access_part_opera_id
1243
-          );
1244
-          this.afterdialysis = response.data.data.AssessmentAfterDislysis;
1245
-          console.log("透后评估数据", this.afterdialysis);
1246
-          this.operators = response.data.data.operators;
1243
+          )
1244
+          this.afterdialysis = response.data.data.AssessmentAfterDislysis
1245
+          console.log('透后评估数据', this.afterdialysis)
1246
+          this.operators = response.data.data.operators
1247 1247
           this.dialysisOrder =
1248 1248
             response.data.data.dialysisOrder === null
1249 1249
               ? null
1250
-              : response.data.data.dialysisOrder;
1250
+              : response.data.data.dialysisOrder
1251 1251
 
1252 1252
           if (this.operators.length > 0) {
1253
-            var operatorsLen = this.operators.length;
1253
+            var operatorsLen = this.operators.length
1254 1254
             for (var index = 0; index < operatorsLen; index++) {
1255 1255
               this.$set(
1256 1256
                 this.operatorMaps,
1257 1257
                 this.operators[index].creator,
1258 1258
                 this.operators[index]
1259
-              );
1259
+              )
1260 1260
             }
1261 1261
           }
1262 1262
 
1263
-          this.afterdialysis.txqnx = -1;
1264
-          if (this.afterdialysis.cruor.indexOf("0度") > -1) {
1265
-            this.afterdialysis.txqnx = 0;
1263
+          this.afterdialysis.txqnx = -1
1264
+          if (this.afterdialysis.cruor.indexOf('0度') > -1) {
1265
+            this.afterdialysis.txqnx = 0
1266 1266
           }
1267
-          if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
1268
-            this.afterdialysis.txqnx = 1;
1267
+          if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
1268
+            this.afterdialysis.txqnx = 1
1269 1269
           }
1270
-          if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
1271
-            this.afterdialysis.txqnx = 2;
1270
+          if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
1271
+            this.afterdialysis.txqnx = 2
1272 1272
           }
1273
-          if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
1274
-            this.afterdialysis.txqnx = 3;
1273
+          if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
1274
+            this.afterdialysis.txqnx = 3
1275 1275
           }
1276 1276
 
1277 1277
           this.afterdialysis.complications = this.afterdialysis.complication.split(
1278
-            ","
1279
-          );
1280
-          this.afterdialysis.complications_other = [];
1281
-          this.afterdialysis.complications_index = [];
1282
-          var acllen = this.afterdialysis.complications.length;
1278
+            ','
1279
+          )
1280
+          this.afterdialysis.complications_other = []
1281
+          this.afterdialysis.complications_index = []
1282
+          var acllen = this.afterdialysis.complications.length
1283 1283
           for (let index = 0; index < acllen; index++) {
1284 1284
             if (
1285 1285
               this.complications.indexOf(
@@ -1288,7 +1288,7 @@ export default {
1288 1288
             ) {
1289 1289
               this.afterdialysis.complications_index.push(
1290 1290
                 this.afterdialysis.complications[index]
1291
-              );
1291
+              )
1292 1292
             } else if (
1293 1293
               this.complications.indexOf(
1294 1294
                 this.afterdialysis.complications[index]
@@ -1299,37 +1299,37 @@ export default {
1299 1299
             ) {
1300 1300
               this.afterdialysis.complications_other.push(
1301 1301
                 this.afterdialysis.complications[index]
1302
-              );
1302
+              )
1303 1303
             }
1304 1304
           }
1305 1305
           this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
1306
-            ","
1307
-          );
1306
+            ','
1307
+          )
1308 1308
 
1309
-          this.prescription = response.data.data.dialysisPrescription;
1310
-          console.log("透析处方", this.prescription);
1309
+          this.prescription = response.data.data.dialysisPrescription
1310
+          console.log('透析处方', this.prescription)
1311 1311
           this.receiverTreatmentAccess =
1312
-            response.data.data.receiverTreatmentAccess;
1312
+            response.data.data.receiverTreatmentAccess
1313 1313
 
1314
-          this.prescription.mode = this.modeName(this.prescription.mode_id);
1315
-          var rwLen = this.replacementWays.length;
1316
-          this.prescription.replacement = "";
1314
+          this.prescription.mode = this.modeName(this.prescription.mode_id)
1315
+          var rwLen = this.replacementWays.length
1316
+          this.prescription.replacement = ''
1317 1317
           for (let index = 0; index < rwLen; index++) {
1318 1318
             if (
1319 1319
               this.replacementWays[index].id ==
1320 1320
               this.prescription.replacement_way
1321 1321
             ) {
1322
-              this.prescription.replacement = this.replacementWays[index].name;
1323
-              break;
1322
+              this.prescription.replacement = this.replacementWays[index].name
1323
+              break
1324 1324
             }
1325 1325
           }
1326 1326
 
1327 1327
           this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
1328 1328
             this.prescription.dialysate_formulation
1329
-          );
1329
+          )
1330 1330
 
1331
-          var paLen = this.perfusionApparatus.length;
1332
-          this.prescription.perfusion_apparatus_name = "";
1331
+          var paLen = this.perfusionApparatus.length
1332
+          this.prescription.perfusion_apparatus_name = ''
1333 1333
           for (let index = 0; index < paLen; index++) {
1334 1334
             if (
1335 1335
               this.perfusionApparatus[index].id ==
@@ -1337,124 +1337,124 @@ export default {
1337 1337
             ) {
1338 1338
               this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
1339 1339
                 index
1340
-              ].name;
1341
-              break;
1340
+              ].name
1341
+              break
1342 1342
             }
1343 1343
           }
1344 1344
 
1345
-          var acLen = this.anticoagulantsConfit.length;
1346
-          var thisALID = this.prescription.anticoagulant;
1347
-          this.prescription.anticoagulant_name = "";
1345
+          var acLen = this.anticoagulantsConfit.length
1346
+          var thisALID = this.prescription.anticoagulant
1347
+          this.prescription.anticoagulant_name = ''
1348 1348
 
1349 1349
           if (
1350
-            typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
1350
+            typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
1351 1351
             this.anticoagulantsConfit[thisALID] != null
1352 1352
           ) {
1353 1353
             this.prescription.anticoagulant_name = this.anticoagulantsConfit[
1354 1354
               thisALID
1355
-            ].name;
1356
-            this.AlPanel = this.anticoagulantsConfit[thisALID];
1355
+            ].name
1356
+            this.AlPanel = this.anticoagulantsConfit[thisALID]
1357 1357
           }
1358 1358
 
1359
-          this.advices = response.data.data.advices;
1360
-          this.monitors = response.data.data.monitors;
1361
-          this.summary = response.data.data.summary;
1362
-          this.org_template_info = response.data.data.org_template_info;
1359
+          this.advices = response.data.data.advices
1360
+          this.monitors = response.data.data.monitors
1361
+          this.summary = response.data.data.summary
1362
+          this.org_template_info = response.data.data.org_template_info
1363 1363
           // 配置超滤量和置换量是否要显示0还是空
1364 1364
           if (this.org_template_info.org_id == 9535) {
1365
-            this.isShowZero = true;
1365
+            this.isShowZero = true
1366 1366
           }
1367 1367
           if (this.monitors.length < 8) {
1368
-            var nl = 8 - this.monitors.length;
1368
+            var nl = 8 - this.monitors.length
1369 1369
             for (let index = 0; index < nl; index++) {
1370
-              this.monitors.push([]);
1370
+              this.monitors.push([])
1371 1371
             }
1372 1372
           }
1373
-          this.jilurow = this.monitors.length + 1;
1373
+          this.jilurow = this.monitors.length + 1
1374 1374
 
1375
-          this.advice_jilurow = this.advices.length + 1;
1375
+          this.advice_jilurow = this.advices.length + 1
1376 1376
 
1377
-          var childMap = {};
1377
+          var childMap = {}
1378 1378
           for (const index in this.advices) {
1379 1379
             if (this.advices[index].parent_id == 0) {
1380
-              continue;
1380
+              continue
1381 1381
             }
1382 1382
             if (!(this.advices[index].parent_id in childMap)) {
1383
-              childMap[this.advices[index].parent_id] = [];
1383
+              childMap[this.advices[index].parent_id] = []
1384 1384
             }
1385
-            childMap[this.advices[index].parent_id].push(this.advices[index]);
1385
+            childMap[this.advices[index].parent_id].push(this.advices[index])
1386 1386
           }
1387 1387
 
1388
-          var advices = [];
1388
+          var advices = []
1389 1389
           for (const index in this.advices) {
1390 1390
             if (this.advices[index].parent_id > 0) {
1391
-              continue;
1391
+              continue
1392 1392
             }
1393
-            var item = this.advices[index];
1393
+            var item = this.advices[index]
1394 1394
             if (item.id in childMap) {
1395
-              item.children = childMap[item.id];
1395
+              item.children = childMap[item.id]
1396 1396
             } else {
1397
-              item.children = [];
1397
+              item.children = []
1398 1398
             }
1399
-            advices.push(item);
1399
+            advices.push(item)
1400 1400
           }
1401 1401
 
1402
-          var leftAdvice = [];
1403
-          var rightAdvice = [];
1404
-          var adlen = advices.length;
1402
+          var leftAdvice = []
1403
+          var rightAdvice = []
1404
+          var adlen = advices.length
1405 1405
 
1406
-          var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
1406
+          var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
1407 1407
           for (var i = 0; i < halfLen; i++) {
1408
-            leftAdvice.push(advices[i]);
1409
-            rightAdvice.push(advices[i + halfLen]);
1408
+            leftAdvice.push(advices[i])
1409
+            rightAdvice.push(advices[i + halfLen])
1410 1410
           }
1411 1411
           if (halfLen < 5) {
1412
-            var nl = 5 - leftAdvice.length;
1412
+            var nl = 5 - leftAdvice.length
1413 1413
             for (let index = 0; index < nl; index++) {
1414
-              leftAdvice.push([]);
1414
+              leftAdvice.push([])
1415 1415
             }
1416
-            var nl = 5 - rightAdvice.length;
1416
+            var nl = 5 - rightAdvice.length
1417 1417
             for (let index = 0; index < nl; index++) {
1418
-              rightAdvice.push([]);
1418
+              rightAdvice.push([])
1419 1419
             }
1420 1420
           }
1421 1421
 
1422
-          this.advices = [];
1422
+          this.advices = []
1423 1423
           for (var i = 0; i < halfLen; i++) {
1424
-            var item = [];
1425
-            item.push(leftAdvice[i]);
1426
-            item.push(rightAdvice[i]);
1427
-            this.advices.push(item);
1424
+            var item = []
1425
+            item.push(leftAdvice[i])
1426
+            item.push(rightAdvice[i])
1427
+            this.advices.push(item)
1428 1428
           }
1429
-          this.loading = false;
1429
+          this.loading = false
1430 1430
 
1431 1431
           this.doctor_advices =
1432 1432
             response.data.data.advices == null
1433 1433
               ? []
1434
-              : response.data.data.advices;
1434
+              : response.data.data.advices
1435 1435
 
1436 1436
           for (let index = 0; index < this.doctor_advices.length; index++) {
1437
-            this.doctor_advices[index]["isShow"] = 2;
1437
+            this.doctor_advices[index]['isShow'] = 2
1438 1438
           }
1439 1439
 
1440 1440
           if (this.doctor_advices.length > 0) {
1441
-            var group = this.newAdviceGroupObject();
1441
+            var group = this.newAdviceGroupObject()
1442 1442
             var initGroupBlock = function(group, advice) {
1443
-              group.group_no = advice.groupno;
1444
-            };
1443
+              group.group_no = advice.groupno
1444
+            }
1445 1445
             for (
1446 1446
               let index = this.doctor_advices.length - 1;
1447 1447
               index >= 0;
1448 1448
               index--
1449 1449
             ) {
1450
-              var new_advice_index = 0;
1450
+              var new_advice_index = 0
1451 1451
 
1452 1452
               if (
1453
-                "children" in this.doctor_advices[index] &&
1453
+                'children' in this.doctor_advices[index] &&
1454 1454
                 this.doctor_advices[index].children.length > 0
1455 1455
               ) {
1456 1456
                 new_advice_index =
1457
-                  index + this.doctor_advices[index].children.length + 1;
1457
+                  index + this.doctor_advices[index].children.length + 1
1458 1458
 
1459 1459
                 var doctor_advice = {
1460 1460
                   delivery_way: this.doctor_advices[index].delivery_way,
@@ -1465,84 +1465,84 @@ export default {
1465 1465
                   parent_id: this.doctor_advices[index].parent_id,
1466 1466
                   children: this.doctor_advices[index].children,
1467 1467
                   remark: this.doctor_advices[index].remark
1468
-                };
1469
-                doctor_advice["isShow"] = 1;
1470
-                this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
1468
+                }
1469
+                doctor_advice['isShow'] = 1
1470
+                this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
1471 1471
                 // this.doctor_advices.push(doctor_advice)
1472 1472
               }
1473 1473
             }
1474 1474
 
1475 1475
             for (let index = 0; index < this.doctor_advices.length; index++) {
1476
-              const advice = this.doctor_advices[index];
1476
+              const advice = this.doctor_advices[index]
1477 1477
               if (advice.groupno == 0) {
1478 1478
                 // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
1479 1479
                 if (advice.parent_id > 0) {
1480 1480
                   if (this.advice_groups.length > 0) {
1481 1481
                     var parent_group = this.advice_groups[
1482 1482
                       this.advice_groups.length - 1
1483
-                    ];
1483
+                    ]
1484 1484
                     if (parent_group.advices.length > 0) {
1485 1485
                       if (parent_group.advices[0].id == advice.parent_id) {
1486
-                        parent_group.advices.push(advice);
1486
+                        parent_group.advices.push(advice)
1487 1487
                       }
1488 1488
                     }
1489 1489
                   }
1490
-                  continue;
1490
+                  continue
1491 1491
                 } else {
1492 1492
                   if (group.group_no > 0) {
1493
-                    this.advice_groups.push(group);
1494
-                    group = this.newAdviceGroupObject();
1493
+                    this.advice_groups.push(group)
1494
+                    group = this.newAdviceGroupObject()
1495 1495
                   }
1496 1496
 
1497
-                  initGroupBlock(group, advice);
1498
-                  group.advices.push(advice);
1499
-                  this.advice_groups.push(group);
1500
-                  group = this.newAdviceGroupObject();
1501
-                  continue;
1497
+                  initGroupBlock(group, advice)
1498
+                  group.advices.push(advice)
1499
+                  this.advice_groups.push(group)
1500
+                  group = this.newAdviceGroupObject()
1501
+                  continue
1502 1502
                 }
1503 1503
               }
1504 1504
 
1505 1505
               if (group.group_no > 0 && group.group_no != advice.groupno) {
1506
-                this.advice_groups.push(group);
1507
-                group = this.newAdviceGroupObject();
1506
+                this.advice_groups.push(group)
1507
+                group = this.newAdviceGroupObject()
1508 1508
               }
1509 1509
               if (group.group_no == 0) {
1510
-                initGroupBlock(group, advice);
1510
+                initGroupBlock(group, advice)
1511 1511
               }
1512 1512
               if (group.group_no == advice.groupno) {
1513
-                group.advices.push(advice);
1513
+                group.advices.push(advice)
1514 1514
               }
1515 1515
             }
1516 1516
             if (group.group_no > 0) {
1517 1517
               // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
1518
-              this.advice_groups.push(group);
1518
+              this.advice_groups.push(group)
1519 1519
             }
1520 1520
           }
1521
-          console.log(this.advice_groups);
1521
+          console.log(this.advice_groups)
1522 1522
         } else {
1523
-          this.loading = false;
1524
-          this.$message.error("请求数据失败");
1525
-          return false;
1523
+          this.loading = false
1524
+          this.$message.error('请求数据失败')
1525
+          return false
1526 1526
         }
1527
-      });
1527
+      })
1528 1528
     },
1529 1529
     bloodAccessParOperaName(id) {
1530 1530
       if (id in this.bloodAccessParOpera) {
1531
-        return this.bloodAccessParOpera[id].name;
1531
+        return this.bloodAccessParOpera[id].name
1532 1532
       }
1533
-      return "";
1533
+      return ''
1534 1534
     },
1535 1535
     dialysateFormulationName(id) {
1536 1536
       if (id in this.dialysateFormulationOptions) {
1537
-        return this.dialysateFormulationOptions[id].name;
1537
+        return this.dialysateFormulationOptions[id].name
1538 1538
       }
1539
-      return "";
1539
+      return ''
1540 1540
     },
1541 1541
     getAge: function(val) {
1542 1542
       if (val.birthday != 0) {
1543
-        return jsGetAge(val.birth, "-");
1543
+        return jsGetAge(val.birth, '-')
1544 1544
       }
1545
-      return "";
1545
+      return ''
1546 1546
     },
1547 1547
     newAdviceGroupObject: function() {
1548 1548
       return Object.assign(
@@ -1556,90 +1556,90 @@ export default {
1556 1556
           // exec_time: 0,
1557 1557
           // checker: 0,
1558 1558
         }
1559
-      );
1559
+      )
1560 1560
     }
1561 1561
   },
1562 1562
   watch: {
1563
-    "patientInfo.gender": function() {
1563
+    'patientInfo.gender': function() {
1564 1564
       if (this.patientInfo.gender == 1) {
1565
-        this.patientInfo_gender_1 = true;
1566
-        this.patientInfo_gender_2 = false;
1565
+        this.patientInfo_gender_1 = true
1566
+        this.patientInfo_gender_2 = false
1567 1567
       } else if (this.patientInfo.gender == 2) {
1568
-        this.patientInfo_gender_2 = true;
1569
-        this.patientInfo_gender_1 = false;
1568
+        this.patientInfo_gender_2 = true
1569
+        this.patientInfo_gender_1 = false
1570 1570
       } else {
1571
-        this.patientInfo_gender_2 = false;
1572
-        this.patientInfo_gender_1 = false;
1571
+        this.patientInfo_gender_2 = false
1572
+        this.patientInfo_gender_1 = false
1573 1573
       }
1574 1574
     },
1575
-    "patientInfo.source": function() {
1575
+    'patientInfo.source': function() {
1576 1576
       if (this.patientInfo.source == 1) {
1577
-        this.patientInfo_source_1 = true;
1578
-        this.patientInfo_source_2 = false;
1577
+        this.patientInfo_source_1 = true
1578
+        this.patientInfo_source_2 = false
1579 1579
       } else if (this.patientInfo.source == 2) {
1580
-        this.patientInfo_source_2 = true;
1581
-        this.patientInfo_source_1 = false;
1580
+        this.patientInfo_source_2 = true
1581
+        this.patientInfo_source_1 = false
1582 1582
       } else {
1583
-        this.patientInfo_source_2 = false;
1584
-        this.patientInfo_source_1 = false;
1583
+        this.patientInfo_source_2 = false
1584
+        this.patientInfo_source_1 = false
1585 1585
       }
1586 1586
     }
1587 1587
   },
1588 1588
   created() {
1589
-    var xtuser = this.$store.getters.xt_user;
1590
-    this.orgname = xtuser.org.org_name;
1589
+    var xtuser = this.$store.getters.xt_user
1590
+    this.orgname = xtuser.org.org_name
1591 1591
     // this.orgname = "遂溪方济医院";
1592
-    this.modeOptions = this.$store.getters.treatment_mode;
1593
-    this.replacementWays = this.$store.getters.replacement_ways;
1594
-    this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1595
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1596
-
1597
-    this.way_arr = getDataConfig("hemodialysis", "way");
1598
-    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1599
-    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
1600
-    this.posture_arr = getDataConfig("hemodialysis", "posture");
1601
-    this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
1602
-    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1603
-    this.intake_arr = getDataConfig("hemodialysis", "intake");
1604
-    this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1592
+    this.modeOptions = this.$store.getters.treatment_mode
1593
+    this.replacementWays = this.$store.getters.replacement_ways
1594
+    this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1595
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1596
+
1597
+    this.way_arr = getDataConfig('hemodialysis', 'way')
1598
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1599
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1600
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
1601
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1602
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1603
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
1604
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1605 1605
 
1606 1606
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1607 1607
 
1608 1608
     var bloodAccessParOpera = getDataConfig(
1609
-      "hemodialysis",
1610
-      "vascular_access_desc"
1611
-    );
1609
+      'hemodialysis',
1610
+      'vascular_access_desc'
1611
+    )
1612 1612
     for (var key in bloodAccessParOpera) {
1613 1613
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1614
-        bloodAccessParOpera[key];
1614
+        bloodAccessParOpera[key]
1615 1615
     }
1616 1616
 
1617 1617
     var dialysateFormulationOptions = getDataConfig(
1618
-      "hemodialysis",
1619
-      "dialysate_formulation"
1620
-    );
1618
+      'hemodialysis',
1619
+      'dialysate_formulation'
1620
+    )
1621 1621
     for (var key in dialysateFormulationOptions) {
1622 1622
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1623
-        dialysateFormulationOptions[key];
1623
+        dialysateFormulationOptions[key]
1624 1624
     }
1625 1625
 
1626
-    const xtdate = this.$route.query && this.$route.query.xtdate;
1627
-    const xtno = this.$route.query && this.$route.query.xtno;
1626
+    const xtdate = this.$route.query && this.$route.query.xtdate
1627
+    const xtno = this.$route.query && this.$route.query.xtno
1628 1628
     if (
1629
-      typeof xtdate === "string" &&
1629
+      typeof xtdate === 'string' &&
1630 1630
       xtdate.length > 0 &&
1631
-      typeof xtno === "string" &&
1631
+      typeof xtno === 'string' &&
1632 1632
       xtno.length > 0
1633 1633
     ) {
1634
-      this.queryParams.xtdate = xtdate;
1635
-      this.queryParams.xtno = xtno;
1636
-      this.getDialysisRecord();
1634
+      this.queryParams.xtdate = xtdate
1635
+      this.queryParams.xtno = xtno
1636
+      this.getDialysisRecord()
1637 1637
     } else {
1638
-      this.$message.error("参数不齐");
1639
-      return false;
1638
+      this.$message.error('参数不齐')
1639
+      return false
1640 1640
     }
1641 1641
   }
1642
-};
1642
+}
1643 1643
 </script>
1644 1644
 
1645 1645
 <style>

File diff suppressed because it is too large
+ 292 - 292
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue