瀏覽代碼

Merge branch '20200710_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

See999 4 年之前
父節點
當前提交
daa1520927

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

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

+ 199 - 201
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue 查看文件

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

+ 110 - 84
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

98
             </template>
98
             </template>
99
           </el-table-column>
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
             <template slot-scope="scope">
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
             </template>
109
             </template>
117
           </el-table-column>
110
           </el-table-column>
118
 
111
 
130
             </template>
123
             </template>
131
           </el-table-column>
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
             <template slot-scope="scope">
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
             </template>
135
             </template>
147
           </el-table-column>
136
           </el-table-column>
148
 
137
 
421
             </el-form-item>
410
             </el-form-item>
422
           </el-col>
411
           </el-col>
423
           <el-col :span="8" v-if="isShow('静脉压')">
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
               <el-input
414
               <el-input
426
                 style="width: 140px"
415
                 style="width: 140px"
427
                 v-model="form.venous_pressure"
416
                 v-model="form.venous_pressure"
430
                 size="mini"
419
                 size="mini"
431
                 type="primary"
420
                 type="primary"
432
                 @click="venousPressureChangeOne"
421
                 @click="venousPressureChangeOne"
433
-                >换</el-button
422
+                >换</el-button
434
               >
423
               >
435
             </el-form-item>
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
               <el-input
426
               <el-input
440
                 style="width: 140px"
427
                 style="width: 140px"
441
-                v-model="form.arterial_pressure"
428
+                v-model="form.venous_pressure"
442
               ></el-input>
429
               ></el-input>
443
               <el-button
430
               <el-button
444
                 size="mini"
431
                 size="mini"
445
                 type="primary"
432
                 type="primary"
446
-                @click="venousPressureChangeThree"
447
-                >换</el-button
433
+                @click="venousPressureChangeOne"
434
+                >换</el-button
448
               >
435
               >
449
             </el-form-item>
436
             </el-form-item>
450
           </el-col>
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
           <el-col :span="8" v-if="isShow('血流量')">
449
           <el-col :span="8" v-if="isShow('血流量')">
453
             <el-form-item label="血流量(ml/min):">
450
             <el-form-item label="血流量(ml/min):">
456
           </el-col>
453
           </el-col>
457
 
454
 
458
           <el-col :span="8" v-if="isShow('跨膜压')">
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
             </el-form-item>
463
             </el-form-item>
471
           </el-col>
464
           </el-col>
472
 
465
 
710
         breathing_rated: '', // 呼吸频率
703
         breathing_rated: '', // 呼吸频率
711
         blood_flow_volume: '', // 血流量
704
         blood_flow_volume: '', // 血流量
712
         venous_pressure: '', // 静脉压
705
         venous_pressure: '', // 静脉压
706
+        venous_pressure_type: 1, // 静脉压
713
         transmembrane_pressure: '', // 跨膜压
707
         transmembrane_pressure: '', // 跨膜压
708
+        transmembrane_pressure_type: 1, // 跨膜压
714
         ultrafiltration_volume: '', // 超滤量
709
         ultrafiltration_volume: '', // 超滤量
715
         ultrafiltration_rate: '', // 超滤率
710
         ultrafiltration_rate: '', // 超滤率
716
         arterial_pressure: '', // 动脉压
711
         arterial_pressure: '', // 动脉压
712
+        arterial_pressure_type: 1, // 动脉压
717
         sodium_concentration: '', // 钠浓度
713
         sodium_concentration: '', // 钠浓度
718
         dialysate_temperature: '', // 透析液温度
714
         dialysate_temperature: '', // 透析液温度
719
         replacement_rate: '', // 置换率
715
         replacement_rate: '', // 置换率
780
       }
776
       }
781
     },
777
     },
782
     venousPressureChangeOne() {
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
     venousPressureChangeThree() {
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
     venousPressureChangeTwo() {
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
     isShow(name) {
843
     isShow(name) {
873
         this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
884
         this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
874
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
885
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
875
         this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
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
         this.form.arterial_pressure = '' // this.last_monitor_record.arterial_pressure;
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
         this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
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
         this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
892
         this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
879
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
893
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
880
         this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
894
         this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
928
         this.form.blood_flow_volume = ''
942
         this.form.blood_flow_volume = ''
929
         this.form.temperature = ''
943
         this.form.temperature = ''
930
         this.form.venous_pressure = ''
944
         this.form.venous_pressure = ''
945
+        this.form.venous_pressure_type = 1
931
         this.form.transmembrane_pressure = ''
946
         this.form.transmembrane_pressure = ''
947
+        this.form.transmembrane_pressure_type = 1
932
         this.form.ultrafiltration_volume = ''
948
         this.form.ultrafiltration_volume = ''
933
         this.form.ultrafiltration_rate = ''
949
         this.form.ultrafiltration_rate = ''
934
         this.form.arterial_pressure = ''
950
         this.form.arterial_pressure = ''
951
+        this.form.arterial_pressure_type = 1
935
         this.form.sodium_concentration = ''
952
         this.form.sodium_concentration = ''
936
         this.form.dialysate_temperature = ''
953
         this.form.dialysate_temperature = ''
937
         this.form.replacement_rate = ''
954
         this.form.replacement_rate = ''
959
         this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : ''
976
         this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : ''
960
         this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : ''
977
         this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : ''
961
         this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : ''
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
         this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ''
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
         this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : ''
982
         this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : ''
964
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''
983
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''
965
         this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : ''
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
         this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : ''
986
         this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : ''
967
         this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : ''
987
         this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : ''
968
         this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : ''
988
         this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : ''
995
       this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
1015
       this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
996
       this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
1016
       this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
997
       this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
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
       this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
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
       this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1021
       this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1000
       this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1022
       this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1001
       this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
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
       this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1025
       this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1003
       this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1026
       this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1004
       this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
1027
       this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
1046
             this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
1069
             this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
1047
             this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
1070
             this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
1048
             this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
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
             this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
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
             this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1075
             this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1051
             this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1076
             this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1052
             this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
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
             this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1079
             this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1054
             this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1080
             this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1055
             this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
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 查看文件

11
           <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
11
           <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
12
           <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
12
           <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
13
           <th v-if="isShow('呼吸频率')" width="110px">呼吸频率(次/分)</th>
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
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
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
           <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>
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
           <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>
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
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
19
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>

+ 287 - 287
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue 查看文件

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

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

678
                     <td width="10"></td>
678
                     <td width="10"></td>
679
                     <td width="105" colspan="2">
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
                       &nbsp;
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
                       &nbsp;
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
                     </td>
686
                     </td>
687
                     <td></td>
687
                     <td></td>
688
                   </tr>
688
                   </tr>
694
                   <tr>
694
                   <tr>
695
                     <td width="55">并发症:</td>
695
                     <td width="55">并发症:</td>
696
                     <td width="600">
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
                     </td>
708
                     </td>
709
                     <td></td>
709
                     <td></td>
710
                   </tr>
710
                   </tr>
993
 </template>
993
 </template>
994
 
994
 
995
 <script>
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
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1001
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1002
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1002
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1003
-import print from "print-js";
1003
+import print from 'print-js'
1004
 
1004
 
1005
 export default {
1005
 export default {
1006
-  name: "dialysisPrintOrderOne",
1006
+  name: 'dialysisPrintOrderOne',
1007
   components: {
1007
   components: {
1008
     // DialysisPrintOrderOne,
1008
     // DialysisPrintOrderOne,
1009
     // DialysisPrintOrderTwo,
1009
     // DialysisPrintOrderTwo,
1022
       nutrition_arr: [],
1022
       nutrition_arr: [],
1023
 
1023
 
1024
       crumbs: [
1024
       crumbs: [
1025
-        { path: false, name: "透析管理" },
1026
-        { path: false, name: "打印单" }
1025
+        { path: false, name: '透析管理' },
1026
+        { path: false, name: '打印单' }
1027
       ],
1027
       ],
1028
       operators: [],
1028
       operators: [],
1029
       adminUser: [],
1029
       adminUser: [],
1033
       },
1033
       },
1034
       operatorMaps: {},
1034
       operatorMaps: {},
1035
       complications: [
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
       jilurow: 0,
1048
       jilurow: 0,
1049
       advice_jilurow: 0,
1049
       advice_jilurow: 0,
1050
       loading: false,
1050
       loading: false,
1051
-      orgname: "",
1051
+      orgname: '',
1052
       patientInfo_gender_1: false,
1052
       patientInfo_gender_1: false,
1053
       patientInfo_gender_2: false,
1053
       patientInfo_gender_2: false,
1054
       patientInfo_source_2: false,
1054
       patientInfo_source_2: false,
1061
       dialysateFormulationOptions: {},
1061
       dialysateFormulationOptions: {},
1062
 
1062
 
1063
       queryParams: {
1063
       queryParams: {
1064
-        xtdate: "",
1065
-        xtno: ""
1064
+        xtdate: '',
1065
+        xtno: ''
1066
       },
1066
       },
1067
       patientInfo: {
1067
       patientInfo: {
1068
-        birth: "",
1069
-        age: "",
1068
+        birth: '',
1069
+        age: '',
1070
         DialysisSchedule: {
1070
         DialysisSchedule: {
1071
-          device_number: { number: "" },
1072
-          device_zone: { name: "" }
1071
+          device_number: { number: '' },
1072
+          device_zone: { name: '' }
1073
         },
1073
         },
1074
         gender: 0
1074
         gender: 0
1075
       },
1075
       },
1076
       predialysis: {
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
       afterdialysis: {
1083
       afterdialysis: {
1084
-        complications_index: ""
1084
+        complications_index: ''
1085
       },
1085
       },
1086
       prescription: {
1086
       prescription: {
1087
-        dialysate_formulation_name: "",
1087
+        dialysate_formulation_name: '',
1088
         device: {}
1088
         device: {}
1089
       },
1089
       },
1090
       advices: [],
1090
       advices: [],
1100
 
1100
 
1101
       AlPanel: {
1101
       AlPanel: {
1102
         id: 0,
1102
         id: 0,
1103
-        name: "",
1103
+        name: '',
1104
         type: 1,
1104
         type: 1,
1105
         shouji: 2,
1105
         shouji: 2,
1106
         weichi: 2,
1106
         weichi: 2,
1107
         zongliang: 2,
1107
         zongliang: 2,
1108
         gaimingcheng: -1,
1108
         gaimingcheng: -1,
1109
         gaijiliang: -1,
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
   methods: {
1118
   methods: {
1119
     getAdminUser(id) {
1119
     getAdminUser(id) {
1120
       if (id == 0) {
1120
       if (id == 0) {
1121
-        return "";
1121
+        return ''
1122
       }
1122
       }
1123
       if (id == undefined) {
1123
       if (id == undefined) {
1124
-        return "";
1124
+        return ''
1125
       }
1125
       }
1126
       for (let i = 0; i < this.adminUser.length; i++) {
1126
       for (let i = 0; i < this.adminUser.length; i++) {
1127
         if (this.adminUser[i].id == id) {
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
     getTime(value, temp) {
1132
     getTime(value, temp) {
1133
       if (value == 0) {
1133
       if (value == 0) {
1134
-        return "";
1134
+        return ''
1135
       }
1135
       }
1136
       if (value != undefined) {
1136
       if (value != undefined) {
1137
-        return uParseTime(value, temp);
1137
+        return uParseTime(value, temp)
1138
       }
1138
       }
1139
-      return "";
1139
+      return ''
1140
     },
1140
     },
1141
     printThisPage() {
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
       const style =
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
       if (this.org_template_info.template_id == 1) {
1148
       if (this.org_template_info.template_id == 1) {
1149
         printJS({
1149
         printJS({
1150
-          printable: "dialysis-print-box",
1151
-          type: "html",
1150
+          printable: 'dialysis-print-box',
1151
+          type: 'html',
1152
           style: style,
1152
           style: style,
1153
           scanStyles: false
1153
           scanStyles: false
1154
-        });
1154
+        })
1155
       } else if (
1155
       } else if (
1156
         this.org_template_info.template_id == 2 ||
1156
         this.org_template_info.template_id == 2 ||
1157
         this.org_template_info.template_id == 0
1157
         this.org_template_info.template_id == 0
1158
       ) {
1158
       ) {
1159
         printJS({
1159
         printJS({
1160
-          printable: "dialysis-print-box-1",
1161
-          type: "html",
1160
+          printable: 'dialysis-print-box-1',
1161
+          type: 'html',
1162
           style: style,
1162
           style: style,
1163
           scanStyles: false
1163
           scanStyles: false
1164
-        });
1164
+        })
1165
       }
1165
       }
1166
     },
1166
     },
1167
     getNumber() {
1167
     getNumber() {
1169
         return (
1169
         return (
1170
           this.patientInfo.DialysisSchedule.device_zone.name +
1170
           this.patientInfo.DialysisSchedule.device_zone.name +
1171
           this.dialysisOrder.DeviceNumber.number
1171
           this.dialysisOrder.DeviceNumber.number
1172
-        );
1172
+        )
1173
       } else {
1173
       } else {
1174
         return (
1174
         return (
1175
           this.patientInfo.DialysisSchedule.device_zone.name +
1175
           this.patientInfo.DialysisSchedule.device_zone.name +
1176
           this.patientInfo.DialysisSchedule.device_number.number
1176
           this.patientInfo.DialysisSchedule.device_number.number
1177
-        );
1177
+        )
1178
       }
1178
       }
1179
     },
1179
     },
1180
 
1180
 
1181
     getXuserName(id) {
1181
     getXuserName(id) {
1182
       if (id <= 0) {
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
       if (leng == 0) {
1190
       if (leng == 0) {
1191
-        return name;
1191
+        return name
1192
       }
1192
       }
1193
       for (let index = 0; index < leng; index++) {
1193
       for (let index = 0; index < leng; index++) {
1194
         if (this.users[index].id == id) {
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
     setAdminUserES(id) {
1201
     setAdminUserES(id) {
1202
       if (id == 0) {
1202
       if (id == 0) {
1203
-        return "";
1203
+        return ''
1204
       }
1204
       }
1205
       if (id in this.operatorMaps) {
1205
       if (id in this.operatorMaps) {
1206
-        return this.operatorMaps[id].url;
1206
+        return this.operatorMaps[id].url
1207
       } else {
1207
       } else {
1208
-        return "";
1208
+        return ''
1209
       }
1209
       }
1210
     },
1210
     },
1211
     modeName(mode_id) {
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
         ? this.modeOptions[mode_id].name
1214
         ? this.modeOptions[mode_id].name
1215
-        : "";
1215
+        : ''
1216
     },
1216
     },
1217
     getDialysisRecord() {
1217
     getDialysisRecord() {
1218
-      this.loading = true;
1218
+      this.loading = true
1219
 
1219
 
1220
       getDialysisRecord(this.queryParams).then(response => {
1220
       getDialysisRecord(this.queryParams).then(response => {
1221
         if (response.data.state == 1) {
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
           this.patientInfo.birth = uParseTime(
1225
           this.patientInfo.birth = uParseTime(
1226
             this.patientInfo.birthday,
1226
             this.patientInfo.birthday,
1227
-            "{y}-{m}-{d}"
1228
-          );
1227
+            '{y}-{m}-{d}'
1228
+          )
1229
           // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
1229
           // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
1230
           if (response.data.data.patientInfo.first_dialysis_date != 0) {
1230
           if (response.data.data.patientInfo.first_dialysis_date != 0) {
1231
             this.patientInfo.first_dialysis_date = uParseTime(
1231
             this.patientInfo.first_dialysis_date = uParseTime(
1232
               response.data.data.patientInfo.first_dialysis_date,
1232
               response.data.data.patientInfo.first_dialysis_date,
1233
-              "{y}-{m}-{d}"
1234
-            );
1233
+              '{y}-{m}-{d}'
1234
+            )
1235
           } else {
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
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1241
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1242
             this.predialysis.blood_access_part_opera_id
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
           this.dialysisOrder =
1247
           this.dialysisOrder =
1248
             response.data.data.dialysisOrder === null
1248
             response.data.data.dialysisOrder === null
1249
               ? null
1249
               ? null
1250
-              : response.data.data.dialysisOrder;
1250
+              : response.data.data.dialysisOrder
1251
 
1251
 
1252
           if (this.operators.length > 0) {
1252
           if (this.operators.length > 0) {
1253
-            var operatorsLen = this.operators.length;
1253
+            var operatorsLen = this.operators.length
1254
             for (var index = 0; index < operatorsLen; index++) {
1254
             for (var index = 0; index < operatorsLen; index++) {
1255
               this.$set(
1255
               this.$set(
1256
                 this.operatorMaps,
1256
                 this.operatorMaps,
1257
                 this.operators[index].creator,
1257
                 this.operators[index].creator,
1258
                 this.operators[index]
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
           this.afterdialysis.complications = this.afterdialysis.complication.split(
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
           for (let index = 0; index < acllen; index++) {
1283
           for (let index = 0; index < acllen; index++) {
1284
             if (
1284
             if (
1285
               this.complications.indexOf(
1285
               this.complications.indexOf(
1288
             ) {
1288
             ) {
1289
               this.afterdialysis.complications_index.push(
1289
               this.afterdialysis.complications_index.push(
1290
                 this.afterdialysis.complications[index]
1290
                 this.afterdialysis.complications[index]
1291
-              );
1291
+              )
1292
             } else if (
1292
             } else if (
1293
               this.complications.indexOf(
1293
               this.complications.indexOf(
1294
                 this.afterdialysis.complications[index]
1294
                 this.afterdialysis.complications[index]
1299
             ) {
1299
             ) {
1300
               this.afterdialysis.complications_other.push(
1300
               this.afterdialysis.complications_other.push(
1301
                 this.afterdialysis.complications[index]
1301
                 this.afterdialysis.complications[index]
1302
-              );
1302
+              )
1303
             }
1303
             }
1304
           }
1304
           }
1305
           this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
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
           this.receiverTreatmentAccess =
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
           for (let index = 0; index < rwLen; index++) {
1317
           for (let index = 0; index < rwLen; index++) {
1318
             if (
1318
             if (
1319
               this.replacementWays[index].id ==
1319
               this.replacementWays[index].id ==
1320
               this.prescription.replacement_way
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
           this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
1327
           this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
1328
             this.prescription.dialysate_formulation
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
           for (let index = 0; index < paLen; index++) {
1333
           for (let index = 0; index < paLen; index++) {
1334
             if (
1334
             if (
1335
               this.perfusionApparatus[index].id ==
1335
               this.perfusionApparatus[index].id ==
1337
             ) {
1337
             ) {
1338
               this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
1338
               this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
1339
                 index
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
           if (
1349
           if (
1350
-            typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
1350
+            typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
1351
             this.anticoagulantsConfit[thisALID] != null
1351
             this.anticoagulantsConfit[thisALID] != null
1352
           ) {
1352
           ) {
1353
             this.prescription.anticoagulant_name = this.anticoagulantsConfit[
1353
             this.prescription.anticoagulant_name = this.anticoagulantsConfit[
1354
               thisALID
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
           // 配置超滤量和置换量是否要显示0还是空
1363
           // 配置超滤量和置换量是否要显示0还是空
1364
           if (this.org_template_info.org_id == 9535) {
1364
           if (this.org_template_info.org_id == 9535) {
1365
-            this.isShowZero = true;
1365
+            this.isShowZero = true
1366
           }
1366
           }
1367
           if (this.monitors.length < 8) {
1367
           if (this.monitors.length < 8) {
1368
-            var nl = 8 - this.monitors.length;
1368
+            var nl = 8 - this.monitors.length
1369
             for (let index = 0; index < nl; index++) {
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
           for (const index in this.advices) {
1378
           for (const index in this.advices) {
1379
             if (this.advices[index].parent_id == 0) {
1379
             if (this.advices[index].parent_id == 0) {
1380
-              continue;
1380
+              continue
1381
             }
1381
             }
1382
             if (!(this.advices[index].parent_id in childMap)) {
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
           for (const index in this.advices) {
1389
           for (const index in this.advices) {
1390
             if (this.advices[index].parent_id > 0) {
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
             if (item.id in childMap) {
1394
             if (item.id in childMap) {
1395
-              item.children = childMap[item.id];
1395
+              item.children = childMap[item.id]
1396
             } else {
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
           for (var i = 0; i < halfLen; i++) {
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
           if (halfLen < 5) {
1411
           if (halfLen < 5) {
1412
-            var nl = 5 - leftAdvice.length;
1412
+            var nl = 5 - leftAdvice.length
1413
             for (let index = 0; index < nl; index++) {
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
             for (let index = 0; index < nl; index++) {
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
           for (var i = 0; i < halfLen; i++) {
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
           this.doctor_advices =
1431
           this.doctor_advices =
1432
             response.data.data.advices == null
1432
             response.data.data.advices == null
1433
               ? []
1433
               ? []
1434
-              : response.data.data.advices;
1434
+              : response.data.data.advices
1435
 
1435
 
1436
           for (let index = 0; index < this.doctor_advices.length; index++) {
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
           if (this.doctor_advices.length > 0) {
1440
           if (this.doctor_advices.length > 0) {
1441
-            var group = this.newAdviceGroupObject();
1441
+            var group = this.newAdviceGroupObject()
1442
             var initGroupBlock = function(group, advice) {
1442
             var initGroupBlock = function(group, advice) {
1443
-              group.group_no = advice.groupno;
1444
-            };
1443
+              group.group_no = advice.groupno
1444
+            }
1445
             for (
1445
             for (
1446
               let index = this.doctor_advices.length - 1;
1446
               let index = this.doctor_advices.length - 1;
1447
               index >= 0;
1447
               index >= 0;
1448
               index--
1448
               index--
1449
             ) {
1449
             ) {
1450
-              var new_advice_index = 0;
1450
+              var new_advice_index = 0
1451
 
1451
 
1452
               if (
1452
               if (
1453
-                "children" in this.doctor_advices[index] &&
1453
+                'children' in this.doctor_advices[index] &&
1454
                 this.doctor_advices[index].children.length > 0
1454
                 this.doctor_advices[index].children.length > 0
1455
               ) {
1455
               ) {
1456
                 new_advice_index =
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
                 var doctor_advice = {
1459
                 var doctor_advice = {
1460
                   delivery_way: this.doctor_advices[index].delivery_way,
1460
                   delivery_way: this.doctor_advices[index].delivery_way,
1465
                   parent_id: this.doctor_advices[index].parent_id,
1465
                   parent_id: this.doctor_advices[index].parent_id,
1466
                   children: this.doctor_advices[index].children,
1466
                   children: this.doctor_advices[index].children,
1467
                   remark: this.doctor_advices[index].remark
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
                 // this.doctor_advices.push(doctor_advice)
1471
                 // this.doctor_advices.push(doctor_advice)
1472
               }
1472
               }
1473
             }
1473
             }
1474
 
1474
 
1475
             for (let index = 0; index < this.doctor_advices.length; index++) {
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
               if (advice.groupno == 0) {
1477
               if (advice.groupno == 0) {
1478
                 // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
1478
                 // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
1479
                 if (advice.parent_id > 0) {
1479
                 if (advice.parent_id > 0) {
1480
                   if (this.advice_groups.length > 0) {
1480
                   if (this.advice_groups.length > 0) {
1481
                     var parent_group = this.advice_groups[
1481
                     var parent_group = this.advice_groups[
1482
                       this.advice_groups.length - 1
1482
                       this.advice_groups.length - 1
1483
-                    ];
1483
+                    ]
1484
                     if (parent_group.advices.length > 0) {
1484
                     if (parent_group.advices.length > 0) {
1485
                       if (parent_group.advices[0].id == advice.parent_id) {
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
                 } else {
1491
                 } else {
1492
                   if (group.group_no > 0) {
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
               if (group.group_no > 0 && group.group_no != advice.groupno) {
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
               if (group.group_no == 0) {
1509
               if (group.group_no == 0) {
1510
-                initGroupBlock(group, advice);
1510
+                initGroupBlock(group, advice)
1511
               }
1511
               }
1512
               if (group.group_no == advice.groupno) {
1512
               if (group.group_no == advice.groupno) {
1513
-                group.advices.push(advice);
1513
+                group.advices.push(advice)
1514
               }
1514
               }
1515
             }
1515
             }
1516
             if (group.group_no > 0) {
1516
             if (group.group_no > 0) {
1517
               // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
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
         } else {
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
     bloodAccessParOperaName(id) {
1529
     bloodAccessParOperaName(id) {
1530
       if (id in this.bloodAccessParOpera) {
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
     dialysateFormulationName(id) {
1535
     dialysateFormulationName(id) {
1536
       if (id in this.dialysateFormulationOptions) {
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
     getAge: function(val) {
1541
     getAge: function(val) {
1542
       if (val.birthday != 0) {
1542
       if (val.birthday != 0) {
1543
-        return jsGetAge(val.birth, "-");
1543
+        return jsGetAge(val.birth, '-')
1544
       }
1544
       }
1545
-      return "";
1545
+      return ''
1546
     },
1546
     },
1547
     newAdviceGroupObject: function() {
1547
     newAdviceGroupObject: function() {
1548
       return Object.assign(
1548
       return Object.assign(
1556
           // exec_time: 0,
1556
           // exec_time: 0,
1557
           // checker: 0,
1557
           // checker: 0,
1558
         }
1558
         }
1559
-      );
1559
+      )
1560
     }
1560
     }
1561
   },
1561
   },
1562
   watch: {
1562
   watch: {
1563
-    "patientInfo.gender": function() {
1563
+    'patientInfo.gender': function() {
1564
       if (this.patientInfo.gender == 1) {
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
       } else if (this.patientInfo.gender == 2) {
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
       } else {
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
       if (this.patientInfo.source == 1) {
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
       } else if (this.patientInfo.source == 2) {
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
       } else {
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
   created() {
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
     // this.orgname = "遂溪方济医院";
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
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1606
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1607
 
1607
 
1608
     var bloodAccessParOpera = getDataConfig(
1608
     var bloodAccessParOpera = getDataConfig(
1609
-      "hemodialysis",
1610
-      "vascular_access_desc"
1611
-    );
1609
+      'hemodialysis',
1610
+      'vascular_access_desc'
1611
+    )
1612
     for (var key in bloodAccessParOpera) {
1612
     for (var key in bloodAccessParOpera) {
1613
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1613
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1614
-        bloodAccessParOpera[key];
1614
+        bloodAccessParOpera[key]
1615
     }
1615
     }
1616
 
1616
 
1617
     var dialysateFormulationOptions = getDataConfig(
1617
     var dialysateFormulationOptions = getDataConfig(
1618
-      "hemodialysis",
1619
-      "dialysate_formulation"
1620
-    );
1618
+      'hemodialysis',
1619
+      'dialysate_formulation'
1620
+    )
1621
     for (var key in dialysateFormulationOptions) {
1621
     for (var key in dialysateFormulationOptions) {
1622
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
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
     if (
1628
     if (
1629
-      typeof xtdate === "string" &&
1629
+      typeof xtdate === 'string' &&
1630
       xtdate.length > 0 &&
1630
       xtdate.length > 0 &&
1631
-      typeof xtno === "string" &&
1631
+      typeof xtno === 'string' &&
1632
       xtno.length > 0
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
     } else {
1637
     } else {
1638
-      this.$message.error("参数不齐");
1639
-      return false;
1638
+      this.$message.error('参数不齐')
1639
+      return false
1640
     }
1640
     }
1641
   }
1641
   }
1642
-};
1642
+}
1643
 </script>
1643
 </script>
1644
 
1644
 
1645
 <style>
1645
 <style>

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