浏览代码

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

XMLWAN 4 年前
父节点
当前提交
8f1d30641a

+ 242 - 293
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue 查看文件

602
                             <td width="70">血管通路:</td>
602
                             <td width="70">血管通路:</td>
603
                             <td width="500">
603
                             <td width="500">
604
                               <div>
604
                               <div>
605
-                                <check-box
606
-                                  text="正常"
607
-                                  :checked="
608
-                                    isValueIndexOfCheck(
609
-                                      record.assessment_before_dislysis,
610
-                                      'blood_access_internal_fistula',
611
-                                      '正常'
612
-                                    )
613
-                                  "
614
-                                ></check-box>
615
-                                <check-box
616
-                                  text="震颤"
617
-                                  :checked="
618
-                                    isValueIndexOfCheck(
619
-                                      record.assessment_before_dislysis,
620
-                                      'blood_access_internal_fistula',
621
-                                      '震颤'
622
-                                    )
623
-                                  "
624
-                                ></check-box>
625
-                                <check-box
626
-                                  text="堵塞"
627
-                                  :checked="
628
-                                    isValueIndexOfCheck(
629
-                                      record.assessment_before_dislysis,
630
-                                      'blood_access_internal_fistula',
631
-                                      '堵塞'
632
-                                    )
605
+                                <label-box
606
+                                  showValue="自体内瘘"
607
+                                  :isChecked="
608
+                                    isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '自体内瘘')
633
                                   "
609
                                   "
634
-                                ></check-box>
635
-                                <check-box
636
-                                  text="血肿"
637
-                                  :checked="
638
-                                    isValueIndexOfCheck(
639
-                                      record.assessment_before_dislysis,
640
-                                      'blood_access_internal_fistula',
641
-                                      '血肿'
642
-                                    )
610
+                                ></label-box>
611
+                                <label-box
612
+                                  showValue="人造血管"
613
+                                  :isChecked="
614
+                                    isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '人造血管')
643
                                   "
615
                                   "
644
-                                ></check-box>
645
-                                <check-box
646
-                                  text="淤血"
647
-                                  :checked="
648
-                                    isValueIndexOfCheck(
649
-                                      record.assessment_before_dislysis,
650
-                                      'blood_access_internal_fistula',
651
-                                      '淤血'
652
-                                    )
616
+                                ></label-box>
617
+                                <label-box
618
+                                  showValue="直穿"
619
+                                  :isChecked="
620
+                                    isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '直穿')
653
                                   "
621
                                   "
654
-                                ></check-box>
655
-                                <check-box
656
-                                  text="感染"
657
-                                  :checked="
658
-                                    isValueIndexOfCheck(
659
-                                      record.assessment_before_dislysis,
660
-                                      'blood_access_internal_fistula',
661
-                                      '感染'
662
-                                    )
622
+                                ></label-box>
623
+                                <label-box
624
+                                  showValue="颈内静脉"
625
+                                  :isChecked="
626
+                                    isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '颈内静脉')
663
                                   "
627
                                   "
664
-                                ></check-box>
665
-                                <check-box
666
-                                  text="自体内瘘"
667
-                                  :checked="
668
-                                    isValueIndexOfCheck(
669
-                                      record.assessment_before_dislysis,
670
-                                      'blood_access_internal_fistula',
671
-                                      '自体内瘘'
672
-                                    )
628
+                                ></label-box>
629
+                                <label-box
630
+                                  showValue="股静脉"
631
+                                  :isChecked="
632
+                                    isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '股静脉')
673
                                   "
633
                                   "
674
-                                ></check-box>
675
-                                <check-box
676
-                                  text="人工内瘘"
677
-                                  :checked="
678
-                                    isValueIndexOfCheck(
679
-                                      record.assessment_before_dislysis,
680
-                                      'blood_access_internal_fistula',
681
-                                      '人工内瘘'
682
-                                    )
634
+                                ></label-box>
635
+                                <label-box
636
+                                  showValue="锁骨下"
637
+                                  :isChecked="
638
+                                    isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '锁骨下')
683
                                   "
639
                                   "
684
-                                ></check-box>
640
+                                ></label-box>
685
                               </div>
641
                               </div>
686
                             </td>
642
                             </td>
687
 
643
 
815
                                 &nbsp;{{
771
                                 &nbsp;{{
816
                                   record.prescription.replacement_total
772
                                   record.prescription.replacement_total
817
                                     ? record.prescription.replacement_total
773
                                     ? record.prescription.replacement_total
818
-                                    : ""
774
+                                    : "/"
819
                                 }}
775
                                 }}
820
                               </div>
776
                               </div>
821
                             </td>
777
                             </td>
1205
                     <td width="80" style="line-height:20px">Bp<br />mmHg</td>
1161
                     <td width="80" style="line-height:20px">Bp<br />mmHg</td>
1206
                     <td width="40" style="line-height:20px">P<br />次/分</td>
1162
                     <td width="40" style="line-height:20px">P<br />次/分</td>
1207
                     <td width="60" style="line-height:20px">R<br />次/分</td>
1163
                     <td width="60" style="line-height:20px">R<br />次/分</td>
1208
-                    <td width="80" style="line-height:20px">
1209
-                      静脉压<br />mmHg
1210
-                    </td>
1211
-                    <td width="80" style="line-height:20px">TMP<br />mmHg</td>
1164
+                    <td width="80" style="line-height:20px">静脉压<br />{{record.monitor_records[0] && record.monitor_records[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
1165
+                    <td width="80" style="line-height:20px">TMP<br />{{record.monitor_records[0] && record.monitor_records[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
1212
                     <td width="60" style="line-height:20px">
1166
                     <td width="60" style="line-height:20px">
1213
                       血流量<br />ml/min
1167
                       血流量<br />ml/min
1214
                     </td>
1168
                     </td>
2075
                     <td width="80">
2029
                     <td width="80">
2076
                       <div class="under-line">
2030
                       <div class="under-line">
2077
                         &nbsp;
2031
                         &nbsp;
2078
-                        <span
2079
-                          v-if="
2080
-                            setAdminUserES(record.advices[0][0], 'checker') ==
2081
-                              ''
2082
-                          "
2083
-                          >{{
2084
-                            getAdminUser(record.advices[0][0], "checker")
2085
-                          }}</span
2086
-                        >
2087
-                        <img
2088
-                          class="es-img"
2089
-                          :src="setAdminUserES(record.advices[0][0], 'checker')"
2090
-                          alt=""
2091
-                          srcset=""
2092
-                          v-else
2093
-                          style="height: 20px;"
2094
-                        />
2032
+                        <span v-if="record.check != null ? record.advices[0][0].execution_staff != record.check.modifier : false">
2033
+                            <span v-if="setAdminUserES(record.check, record.check == null ? 0 : 'modifier') == ''">
2034
+                            {{ getAdminUser(record.check, record.check == null ? 0 : 'modifier') }}
2035
+                            </span>
2036
+                            <img style="height:30px;" :src="setAdminUserES(record.check, record.check == null ? 0 : 'modifier')" alt srcset v-else />
2037
+                        </span>
2038
+                        <span v-else>
2039
+                            <span v-if="setAdminUserES(record.check, record.check == null ? 0 : 'creater') == ''">
2040
+                            {{ getAdminUser(record.check, "creater") }}
2041
+                            </span>
2042
+                            <img style="height:30px;" :src="setAdminUserES(record.check, record.check == null ? 0 : 'creater')" alt srcset v-else />
2043
+                        </span>
2095
                       </div>
2044
                       </div>
2096
                     </td>
2045
                     </td>
2097
                   </tr>
2046
                   </tr>
2107
 </template>
2056
 </template>
2108
 
2057
 
2109
 <script>
2058
 <script>
2110
-import CheckBox from "./option_check_box";
2111
-import LabelBox from "../printItem/LabelBox";
2059
+import CheckBox from './option_check_box'
2060
+import LabelBox from '../printItem/LabelBox'
2112
 import {
2061
 import {
2113
   GetBatchPrintDialysisData,
2062
   GetBatchPrintDialysisData,
2114
   getLastAfterWeight
2063
   getLastAfterWeight
2115
-} from "@/api/print_data";
2116
-import { jsGetAge, uParseTime } from "@/utils/tools";
2117
-import { getDataConfig } from "@/utils/data";
2118
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
2064
+} from '@/api/print_data'
2065
+import { jsGetAge, uParseTime } from '@/utils/tools'
2066
+import { getDataConfig } from '@/utils/data'
2067
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
2119
 
2068
 
2120
 export default {
2069
 export default {
2121
-  name: "BatchPrintOrderSeven",
2070
+  name: 'BatchPrintOrderSeven',
2122
   components: {
2071
   components: {
2123
     CheckBox,
2072
     CheckBox,
2124
     BreadCrumb,
2073
     BreadCrumb,
2130
       consciousness_arr: [],
2079
       consciousness_arr: [],
2131
       isShowZero: false,
2080
       isShowZero: false,
2132
       crumbs: [
2081
       crumbs: [
2133
-        { path: false, name: "透析管理" },
2134
-        { path: false, name: "批量打印" }
2082
+        { path: false, name: '透析管理' },
2083
+        { path: false, name: '批量打印' }
2135
       ],
2084
       ],
2136
       records: [
2085
       records: [
2137
         // 模拟有多条数据
2086
         // 模拟有多条数据
2145
         // },
2094
         // },
2146
       ],
2095
       ],
2147
       queryParams: {
2096
       queryParams: {
2148
-        xtdate: "",
2149
-        xtno: ""
2097
+        xtdate: '',
2098
+        xtno: ''
2150
       },
2099
       },
2151
       loading: false,
2100
       loading: false,
2152
-      orgname: "",
2101
+      orgname: '',
2153
       bloodAccessParOpera: {},
2102
       bloodAccessParOpera: {},
2154
       anticoagulantsConfit: {},
2103
       anticoagulantsConfit: {},
2155
       dialysateFormulationOptions: {},
2104
       dialysateFormulationOptions: {},
2164
       blood_access_part: [],
2113
       blood_access_part: [],
2165
       posture_arr: [],
2114
       posture_arr: [],
2166
       complications: [
2115
       complications: [
2167
-        "低血压",
2168
-        "高血压",
2169
-        "心律失常",
2170
-        "头晕",
2171
-        "头痛",
2172
-        "呕吐",
2173
-        "抽搐",
2174
-        "出血",
2175
-        "心衰",
2176
-        "腹痛"
2116
+        '低血压',
2117
+        '高血压',
2118
+        '心律失常',
2119
+        '头晕',
2120
+        '头痛',
2121
+        '呕吐',
2122
+        '抽搐',
2123
+        '出血',
2124
+        '心衰',
2125
+        '腹痛'
2177
       ],
2126
       ],
2178
       allName: [],
2127
       allName: [],
2179
       NameStatus: 0,
2128
       NameStatus: 0,
2180
       advices: [],
2129
       advices: [],
2181
-      docotorId: "",
2182
-      lastAfterWeight: "",
2130
+      docotorId: '',
2131
+      lastAfterWeight: '',
2183
       appetite_arr: [],
2132
       appetite_arr: [],
2184
       precaution_arr: [],
2133
       precaution_arr: [],
2185
       showOne: false,
2134
       showOne: false,
2186
       showTwo: false
2135
       showTwo: false
2187
-    };
2136
+    }
2188
   },
2137
   },
2189
   created() {
2138
   created() {
2190
-    var xtuser = this.$store.getters.xt_user;
2139
+    var xtuser = this.$store.getters.xt_user
2191
     // console.log('xtuser', xtuser)
2140
     // console.log('xtuser', xtuser)
2192
-    this.orgname = xtuser.org.org_name;
2141
+    this.orgname = xtuser.org.org_name
2193
     //   this.orgname = "遂溪方济医院";
2142
     //   this.orgname = "遂溪方济医院";
2194
-    this.modeOptions = this.$store.getters.treatment_mode;
2143
+    this.modeOptions = this.$store.getters.treatment_mode
2195
     //   this.replacementWays = this.$store.getters.replacement_ways;
2144
     //   this.replacementWays = this.$store.getters.replacement_ways;
2196
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2145
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2197
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2198
-    this.way_arr = getDataConfig("hemodialysis", "way");
2199
-    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
2200
-    this.posture_arr = getDataConfig("hemodialysis", "posture");
2146
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2147
+    this.way_arr = getDataConfig('hemodialysis', 'way')
2148
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
2149
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
2201
     var bloodAccessParOpera = getDataConfig(
2150
     var bloodAccessParOpera = getDataConfig(
2202
-      "hemodialysis",
2203
-      "vascular_access_desc"
2204
-    );
2151
+      'hemodialysis',
2152
+      'vascular_access_desc'
2153
+    )
2205
     for (var key in bloodAccessParOpera) {
2154
     for (var key in bloodAccessParOpera) {
2206
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2155
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2207
-        bloodAccessParOpera[key];
2156
+        bloodAccessParOpera[key]
2208
     }
2157
     }
2209
 
2158
 
2210
-    this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
2159
+    this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
2211
 
2160
 
2212
     var dialysateFormulationOptions = getDataConfig(
2161
     var dialysateFormulationOptions = getDataConfig(
2213
-      "hemodialysis",
2214
-      "dialysate_formulation"
2215
-    );
2162
+      'hemodialysis',
2163
+      'dialysate_formulation'
2164
+    )
2216
     for (var key in dialysateFormulationOptions) {
2165
     for (var key in dialysateFormulationOptions) {
2217
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
2166
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
2218
-        dialysateFormulationOptions[key];
2167
+        dialysateFormulationOptions[key]
2219
     }
2168
     }
2220
-    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
2221
-    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
2169
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
2170
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
2222
   },
2171
   },
2223
   mounted() {
2172
   mounted() {
2224
-    console.log(this.records);
2225
-    this.loading = true;
2226
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
2173
+    console.log(this.records)
2174
+    this.loading = true
2175
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
2227
     if (ids.length == 0) {
2176
     if (ids.length == 0) {
2228
-      this.$router.back(-1);
2229
-      return;
2177
+      this.$router.back(-1)
2178
+      return
2230
     }
2179
     }
2231
-    GetBatchPrintDialysisData(ids.join(","))
2180
+    GetBatchPrintDialysisData(ids.join(','))
2232
       .then(rs => {
2181
       .then(rs => {
2233
-        var resp = rs.data;
2182
+        var resp = rs.data
2234
         if (resp.state == 1) {
2183
         if (resp.state == 1) {
2235
-          this.org_template_info = resp.data.templateInfo;
2184
+          this.org_template_info = resp.data.templateInfo
2236
 
2185
 
2237
-          this.records = this.records.concat(resp.data.schedules);
2186
+          this.records = this.records.concat(resp.data.schedules)
2238
 
2187
 
2239
-          console.log("记录", this.records);
2188
+          console.log('记录', this.records)
2240
 
2189
 
2241
           for (const recordIndex in this.records) {
2190
           for (const recordIndex in this.records) {
2242
-            var dlegh = 0;
2191
+            var dlegh = 0
2243
             if (
2192
             if (
2244
               this.records[recordIndex].monitor_records &&
2193
               this.records[recordIndex].monitor_records &&
2245
               this.records[recordIndex].monitor_records.length < 8
2194
               this.records[recordIndex].monitor_records.length < 8
2246
             ) {
2195
             ) {
2247
-              dlegh = 8 - this.records[recordIndex].monitor_records.length;
2196
+              dlegh = 8 - this.records[recordIndex].monitor_records.length
2248
             } else {
2197
             } else {
2249
-              dlegh = 0;
2198
+              dlegh = 0
2250
             }
2199
             }
2251
             if (dlegh > 0) {
2200
             if (dlegh > 0) {
2252
               if (
2201
               if (
2253
                 typeof this.records[recordIndex].monitor_records ===
2202
                 typeof this.records[recordIndex].monitor_records ===
2254
-                  "undefined" ||
2203
+                  'undefined' ||
2255
                 this.records[recordIndex].monitor_records == null
2204
                 this.records[recordIndex].monitor_records == null
2256
               ) {
2205
               ) {
2257
-                this.records[recordIndex].monitor_records = [];
2206
+                this.records[recordIndex].monitor_records = []
2258
               }
2207
               }
2259
               for (let index = 0; index < dlegh; index++) {
2208
               for (let index = 0; index < dlegh; index++) {
2260
-                this.records[recordIndex].monitor_records.push([]);
2209
+                this.records[recordIndex].monitor_records.push([])
2261
               }
2210
               }
2262
             }
2211
             }
2263
 
2212
 
2264
-            this.records[recordIndex].isShowZero = false;
2213
+            this.records[recordIndex].isShowZero = false
2265
             if (this.records[recordIndex].patient.user_org_id == 9535) {
2214
             if (this.records[recordIndex].patient.user_org_id == 9535) {
2266
-              this.records[recordIndex].isShowZero = true;
2215
+              this.records[recordIndex].isShowZero = true
2267
             }
2216
             }
2268
 
2217
 
2269
-            var delghTwo = 0;
2218
+            var delghTwo = 0
2270
             if (
2219
             if (
2271
               this.records[recordIndex].advices &&
2220
               this.records[recordIndex].advices &&
2272
               this.records[recordIndex].advices.length < 14
2221
               this.records[recordIndex].advices.length < 14
2273
             ) {
2222
             ) {
2274
-              delghTwo = 14 - this.records[recordIndex].advices.length;
2223
+              delghTwo = 14 - this.records[recordIndex].advices.length
2275
             } else {
2224
             } else {
2276
-              delghTwo = 0;
2225
+              delghTwo = 0
2277
             }
2226
             }
2278
 
2227
 
2279
             if (delghTwo > 0) {
2228
             if (delghTwo > 0) {
2280
               if (
2229
               if (
2281
-                typeof this.records[recordIndex].advices === "undefined" ||
2230
+                typeof this.records[recordIndex].advices === 'undefined' ||
2282
                 this.records[recordIndex].advices == null
2231
                 this.records[recordIndex].advices == null
2283
               ) {
2232
               ) {
2284
-                this.records[recordIndex].advices = [];
2233
+                this.records[recordIndex].advices = []
2285
               }
2234
               }
2286
               for (let index = 0; index < delghTwo; index++) {
2235
               for (let index = 0; index < delghTwo; index++) {
2287
-                this.records[recordIndex].advices.push([]);
2236
+                this.records[recordIndex].advices.push([])
2288
               }
2237
               }
2289
             }
2238
             }
2290
 
2239
 
2291
-            var childMap = {};
2240
+            var childMap = {}
2292
             for (const index in this.records[recordIndex].advices) {
2241
             for (const index in this.records[recordIndex].advices) {
2293
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2242
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2294
-                continue;
2243
+                continue
2295
               }
2244
               }
2296
               if (
2245
               if (
2297
                 !(
2246
                 !(
2300
               ) {
2249
               ) {
2301
                 childMap[
2250
                 childMap[
2302
                   this.records[recordIndex].advices[index].parent_id
2251
                   this.records[recordIndex].advices[index].parent_id
2303
-                ] = [];
2252
+                ] = []
2304
               }
2253
               }
2305
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2254
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2306
                 this.records[recordIndex].advices[index]
2255
                 this.records[recordIndex].advices[index]
2307
-              );
2256
+              )
2308
             }
2257
             }
2309
 
2258
 
2310
-            var advices = [];
2259
+            var advices = []
2311
             for (const index in this.records[recordIndex].advices) {
2260
             for (const index in this.records[recordIndex].advices) {
2312
               if (this.records[recordIndex].advices[index].parent_id > 0) {
2261
               if (this.records[recordIndex].advices[index].parent_id > 0) {
2313
-                continue;
2262
+                continue
2314
               }
2263
               }
2315
-              var item = this.records[recordIndex].advices[index];
2264
+              var item = this.records[recordIndex].advices[index]
2316
               if (item.id in childMap) {
2265
               if (item.id in childMap) {
2317
-                item.children = childMap[item.id];
2266
+                item.children = childMap[item.id]
2318
               } else {
2267
               } else {
2319
-                item.children = [];
2268
+                item.children = []
2320
               }
2269
               }
2321
-              advices.push(item);
2270
+              advices.push(item)
2322
             }
2271
             }
2323
 
2272
 
2324
-            var leftAdvice = [];
2325
-            var rightAdvice = [];
2326
-            var adlen = advices.length;
2273
+            var leftAdvice = []
2274
+            var rightAdvice = []
2275
+            var adlen = advices.length
2327
 
2276
 
2328
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2277
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2329
             for (var i = 0; i < halfLen; i++) {
2278
             for (var i = 0; i < halfLen; i++) {
2330
-              leftAdvice.push(advices[i]);
2331
-              var rightIndex = i + halfLen;
2279
+              leftAdvice.push(advices[i])
2280
+              var rightIndex = i + halfLen
2332
               rightAdvice.push(
2281
               rightAdvice.push(
2333
                 rightIndex in advices ? advices[i + halfLen] : []
2282
                 rightIndex in advices ? advices[i + halfLen] : []
2334
-              );
2283
+              )
2335
             }
2284
             }
2336
             if (halfLen < 5) {
2285
             if (halfLen < 5) {
2337
-              var nl = 5 - leftAdvice.length;
2286
+              var nl = 5 - leftAdvice.length
2338
               for (let index = 0; index < nl; index++) {
2287
               for (let index = 0; index < nl; index++) {
2339
-                leftAdvice.push([]);
2288
+                leftAdvice.push([])
2340
               }
2289
               }
2341
-              var nl = 5 - rightAdvice.length;
2290
+              var nl = 5 - rightAdvice.length
2342
               for (let index = 0; index < nl; index++) {
2291
               for (let index = 0; index < nl; index++) {
2343
-                rightAdvice.push([]);
2292
+                rightAdvice.push([])
2344
               }
2293
               }
2345
             }
2294
             }
2346
 
2295
 
2347
-            this.records[recordIndex].advices = [];
2296
+            this.records[recordIndex].advices = []
2348
             for (var i = 0; i < halfLen; i++) {
2297
             for (var i = 0; i < halfLen; i++) {
2349
-              var item = [];
2350
-              item.push(leftAdvice[i]);
2351
-              item.push(rightAdvice[i]);
2352
-              this.records[recordIndex].advices.push(item);
2298
+              var item = []
2299
+              item.push(leftAdvice[i])
2300
+              item.push(rightAdvice[i])
2301
+              this.records[recordIndex].advices.push(item)
2353
             }
2302
             }
2354
           }
2303
           }
2355
 
2304
 
2356
-          console.log(" this.records[recordIndex].advices", this.records);
2357
-          this.operators = resp.data.medical_staffs;
2305
+          console.log(' this.records[recordIndex].advices', this.records)
2306
+          this.operators = resp.data.medical_staffs
2358
           if (this.operators.length > 0) {
2307
           if (this.operators.length > 0) {
2359
-            var operatorsLen = this.operators.length;
2308
+            var operatorsLen = this.operators.length
2360
             for (var index = 0; index < operatorsLen; index++) {
2309
             for (var index = 0; index < operatorsLen; index++) {
2361
               this.$set(
2310
               this.$set(
2362
                 this.operatorMaps,
2311
                 this.operatorMaps,
2363
                 this.operators[index].id,
2312
                 this.operators[index].id,
2364
                 this.operators[index]
2313
                 this.operators[index]
2365
-              );
2314
+              )
2366
             }
2315
             }
2367
           }
2316
           }
2368
 
2317
 
2369
-          this.adminUser = resp.data.users;
2370
-          console.log("adminUser", this.adminUser);
2371
-          var name = resp.data.name;
2372
-          this.adminSign = name;
2373
-          console.log("name是", name);
2374
-          this.loading = false;
2318
+          this.adminUser = resp.data.users
2319
+          console.log('adminUser', this.adminUser)
2320
+          var name = resp.data.name
2321
+          this.adminSign = name
2322
+          console.log('name是', name)
2323
+          this.loading = false
2375
         } else {
2324
         } else {
2376
-          this.loading = false;
2377
-          this.$message.error(resp.msg);
2325
+          this.loading = false
2326
+          this.$message.error(resp.msg)
2378
         }
2327
         }
2379
       })
2328
       })
2380
       .catch(err => {
2329
       .catch(err => {
2381
-        this.$message.error(err);
2382
-      });
2330
+        this.$message.error(err)
2331
+      })
2383
   },
2332
   },
2384
   methods: {
2333
   methods: {
2385
     getUnit: function(val) {
2334
     getUnit: function(val) {
2386
       if (val.assessment_after_dislysis == null) {
2335
       if (val.assessment_after_dislysis == null) {
2387
-        return "";
2336
+        return ''
2388
       } else if (val.assessment_after_dislysis != null) {
2337
       } else if (val.assessment_after_dislysis != null) {
2389
         switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
2338
         switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
2390
           case 1:
2339
           case 1:
2391
-            return "g";
2392
-            break;
2340
+            return 'g'
2341
+            break
2393
           case 2:
2342
           case 2:
2394
-            return "ml";
2395
-            break;
2343
+            return 'ml'
2344
+            break
2396
         }
2345
         }
2397
       }
2346
       }
2398
     },
2347
     },
2399
     QueryPartById: function(val) {
2348
     QueryPartById: function(val) {
2400
-      let vascular_access_part_name = "/";
2401
-      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
2349
+      let vascular_access_part_name = '/'
2350
+      const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2402
 
2351
 
2403
       for (let i = 0; i < vascular_access.length; i++) {
2352
       for (let i = 0; i < vascular_access.length; i++) {
2404
         if (vascular_access[i].id == val) {
2353
         if (vascular_access[i].id == val) {
2405
-          vascular_access_part_name = vascular_access[i].name;
2354
+          vascular_access_part_name = vascular_access[i].name
2406
         }
2355
         }
2407
       }
2356
       }
2408
-      return vascular_access_part_name;
2357
+      return vascular_access_part_name
2409
     },
2358
     },
2410
     printThisPage() {
2359
     printThisPage() {
2411
-      var ptime = Math.round(new Date().getTime() / 1000);
2412
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
2360
+      var ptime = Math.round(new Date().getTime() / 1000)
2361
+      this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
2413
 
2362
 
2414
       const style =
2363
       const style =
2415
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
2364
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
2416
       const style2 =
2365
       const style2 =
2417
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
2366
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
2418
       printJS({
2367
       printJS({
2419
-        printable: "print_content",
2420
-        type: "html",
2421
-        documentTitle: "  ",
2368
+        printable: 'print_content',
2369
+        type: 'html',
2370
+        documentTitle: '  ',
2422
         style: style,
2371
         style: style,
2423
         scanStyles: false
2372
         scanStyles: false
2424
-      });
2373
+      })
2425
     },
2374
     },
2426
 
2375
 
2427
     complicationsOther: function(record) {
2376
     complicationsOther: function(record) {
2428
-      if (record == null || typeof record === "undefined") {
2429
-        return "";
2377
+      if (record == null || typeof record === 'undefined') {
2378
+        return ''
2430
       }
2379
       }
2431
       if (record.complication.length == 0) {
2380
       if (record.complication.length == 0) {
2432
-        return "";
2381
+        return ''
2433
       }
2382
       }
2434
-      var complications = record.complication.split(",");
2435
-      var complicationOthers = [];
2383
+      var complications = record.complication.split(',')
2384
+      var complicationOthers = []
2436
       for (const index in complications) {
2385
       for (const index in complications) {
2437
         if (
2386
         if (
2438
           this.complications.indexOf(complications[index]) < 0 &&
2387
           this.complications.indexOf(complications[index]) < 0 &&
2439
           complicationOthers.indexOf(complications[index]) < 0
2388
           complicationOthers.indexOf(complications[index]) < 0
2440
         ) {
2389
         ) {
2441
-          complicationOthers.push(complications[index]);
2390
+          complicationOthers.push(complications[index])
2442
         }
2391
         }
2443
       }
2392
       }
2444
-      return complicationOthers.join(",");
2393
+      return complicationOthers.join(',')
2445
     },
2394
     },
2446
     modeName(mode_id) {
2395
     modeName(mode_id) {
2447
       if (mode_id in this.modeOptions) {
2396
       if (mode_id in this.modeOptions) {
2448
-        return this.modeOptions[mode_id].name;
2397
+        return this.modeOptions[mode_id].name
2449
       }
2398
       }
2450
-      return "";
2399
+      return ''
2451
     },
2400
     },
2452
     anticoagulantName: function(key) {
2401
     anticoagulantName: function(key) {
2453
-      if (key == null || typeof key === "undefined") {
2454
-        return "";
2402
+      if (key == null || typeof key === 'undefined') {
2403
+        return ''
2455
       }
2404
       }
2456
-      var id = key.anticoagulant;
2405
+      var id = key.anticoagulant
2457
       if (id in this.anticoagulantsConfit) {
2406
       if (id in this.anticoagulantsConfit) {
2458
-        return this.anticoagulantsConfit[id].name;
2407
+        return this.anticoagulantsConfit[id].name
2459
       }
2408
       }
2460
-      return "";
2409
+      return ''
2461
     },
2410
     },
2462
     bloodAccessParOperaName(id) {
2411
     bloodAccessParOperaName(id) {
2463
       if (id in this.bloodAccessParOpera) {
2412
       if (id in this.bloodAccessParOpera) {
2464
-        return this.bloodAccessParOpera[id].name;
2413
+        return this.bloodAccessParOpera[id].name
2465
       }
2414
       }
2466
-      return "";
2415
+      return ''
2467
     },
2416
     },
2468
     isBbloodAccessParOperaCheck(key, value) {
2417
     isBbloodAccessParOperaCheck(key, value) {
2469
-      if (key == null || typeof key === "undefined") {
2470
-        return false;
2418
+      if (key == null || typeof key === 'undefined') {
2419
+        return false
2471
       }
2420
       }
2472
-      var id = key.blood_access_part_opera_id;
2421
+      var id = key.blood_access_part_opera_id
2473
       if (id in this.bloodAccessParOpera) {
2422
       if (id in this.bloodAccessParOpera) {
2474
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
2423
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
2475
       }
2424
       }
2476
-      return false;
2425
+      return false
2477
     },
2426
     },
2478
     isdialysateFormulatioCheck(key, value) {
2427
     isdialysateFormulatioCheck(key, value) {
2479
-      if (key == null || typeof key === "undefined") {
2480
-        return false;
2428
+      if (key == null || typeof key === 'undefined') {
2429
+        return false
2481
       }
2430
       }
2482
-      var id = key.dialysate_formulation;
2431
+      var id = key.dialysate_formulation
2483
       if (id in this.dialysateFormulationOptions) {
2432
       if (id in this.dialysateFormulationOptions) {
2484
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
2433
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
2485
       }
2434
       }
2486
-      return false;
2435
+      return false
2487
     },
2436
     },
2488
     isValueIndexOfCheck: function(record, key, value) {
2437
     isValueIndexOfCheck: function(record, key, value) {
2489
       if (record == null || record == undefined) {
2438
       if (record == null || record == undefined) {
2490
-        return false;
2439
+        return false
2491
       } else {
2440
       } else {
2492
-        return record[key].indexOf(value) > -1;
2441
+        return record[key].indexOf(value) > -1
2493
       }
2442
       }
2494
     },
2443
     },
2495
     setAdminUserES(key, id) {
2444
     setAdminUserES(key, id) {
2496
       if (
2445
       if (
2497
-        typeof key === "undefined" ||
2446
+        typeof key === 'undefined' ||
2498
         key == null ||
2447
         key == null ||
2499
-        typeof key[id] === "undefined"
2448
+        typeof key[id] === 'undefined'
2500
       ) {
2449
       ) {
2501
-        return "";
2450
+        return ''
2502
       }
2451
       }
2503
       if (key[id] == 0) {
2452
       if (key[id] == 0) {
2504
-        return "";
2453
+        return ''
2505
       }
2454
       }
2506
       if (key[id] in this.operatorMaps) {
2455
       if (key[id] in this.operatorMaps) {
2507
-        return this.operatorMaps[key[id]].es_url;
2456
+        return this.operatorMaps[key[id]].es_url
2508
       } else {
2457
       } else {
2509
-        return "";
2458
+        return ''
2510
       }
2459
       }
2511
     },
2460
     },
2512
     getFloat: function(x) {
2461
     getFloat: function(x) {
2513
-      if (x != ".") {
2514
-        var f = Math.round(x * 100) / 100;
2515
-        var s = f.toString();
2516
-        var rs = s.indexOf(".");
2462
+      if (x != '.') {
2463
+        var f = Math.round(x * 100) / 100
2464
+        var s = f.toString()
2465
+        var rs = s.indexOf('.')
2517
         if (rs <= 0) {
2466
         if (rs <= 0) {
2518
-          rs = s.length;
2519
-          s += ".";
2467
+          rs = s.length
2468
+          s += '.'
2520
         }
2469
         }
2521
         while (s.length <= rs + 1) {
2470
         while (s.length <= rs + 1) {
2522
-          s += "0";
2471
+          s += '0'
2523
         }
2472
         }
2524
-        return s;
2473
+        return s
2525
       } else {
2474
       } else {
2526
-        return "0.0";
2475
+        return '0.0'
2527
       }
2476
       }
2528
     },
2477
     },
2529
     getAdminUser(key, id) {
2478
     getAdminUser(key, id) {
2530
       if (
2479
       if (
2531
-        typeof key === "undefined" ||
2480
+        typeof key === 'undefined' ||
2532
         key == null ||
2481
         key == null ||
2533
-        typeof key[id] === "undefined"
2482
+        typeof key[id] === 'undefined'
2534
       ) {
2483
       ) {
2535
-        return "";
2484
+        return ''
2536
       }
2485
       }
2537
       if (key[id] === 0) {
2486
       if (key[id] === 0) {
2538
-        return "";
2487
+        return ''
2539
       }
2488
       }
2540
       if (key[id] === undefined) {
2489
       if (key[id] === undefined) {
2541
-        return "";
2490
+        return ''
2542
       }
2491
       }
2543
       for (let i = 0; i < this.adminUser.length; i++) {
2492
       for (let i = 0; i < this.adminUser.length; i++) {
2544
         if (this.adminUser[i].id === key[id]) {
2493
         if (this.adminUser[i].id === key[id]) {
2545
-          return this.adminUser[i].name;
2494
+          return this.adminUser[i].name
2546
         }
2495
         }
2547
       }
2496
       }
2548
     },
2497
     },
2550
     getName(id) {
2499
     getName(id) {
2551
       for (let i = 0; i < this.adminSign.length; i++) {
2500
       for (let i = 0; i < this.adminSign.length; i++) {
2552
         if (this.adminSign[i].id === id) {
2501
         if (this.adminSign[i].id === id) {
2553
-          if (this.adminSign[i].url === "") {
2554
-            this.showOne = true;
2555
-            this.showTwo = false;
2556
-            return this.adminSign[i].name;
2502
+          if (this.adminSign[i].url === '') {
2503
+            this.showOne = true
2504
+            this.showTwo = false
2505
+            return this.adminSign[i].name
2557
           } else {
2506
           } else {
2558
-            this.showOne = false;
2559
-            this.showTwo = true;
2560
-            return this.adminSign[i].url;
2507
+            this.showOne = false
2508
+            this.showTwo = true
2509
+            return this.adminSign[i].url
2561
           }
2510
           }
2562
         }
2511
         }
2563
       }
2512
       }
2564
     },
2513
     },
2565
     jsGetAge: function(agetime) {
2514
     jsGetAge: function(agetime) {
2566
       if (agetime === 0) {
2515
       if (agetime === 0) {
2567
-        return "";
2516
+        return ''
2568
       }
2517
       }
2569
-      return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
2518
+      return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
2570
     },
2519
     },
2571
     getTime(value, temp) {
2520
     getTime(value, temp) {
2572
       if (value != undefined) {
2521
       if (value != undefined) {
2573
-        return uParseTime(value, temp);
2522
+        return uParseTime(value, temp)
2574
       }
2523
       }
2575
-      return "";
2524
+      return ''
2576
     },
2525
     },
2577
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2526
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2578
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2527
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2579
     isCheckBoxChecked: function(record, key, target_value) {
2528
     isCheckBoxChecked: function(record, key, target_value) {
2580
       if (record == null || record == undefined) {
2529
       if (record == null || record == undefined) {
2581
-        return false;
2530
+        return false
2582
       } else {
2531
       } else {
2583
-        return record[key] == target_value;
2532
+        return record[key] == target_value
2584
       }
2533
       }
2585
     },
2534
     },
2586
     getAge: function(val) {
2535
     getAge: function(val) {
2587
       if (val.age == 0) {
2536
       if (val.age == 0) {
2588
         if (val.birthday == 0) {
2537
         if (val.birthday == 0) {
2589
-          return "";
2538
+          return ''
2590
         }
2539
         }
2591
-        return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
2540
+        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
2592
       } else {
2541
       } else {
2593
-        return val.age;
2542
+        return val.age
2594
       }
2543
       }
2595
     },
2544
     },
2596
     newAdviceGroupObject: function() {
2545
     newAdviceGroupObject: function() {
2600
           group_no: 0,
2549
           group_no: 0,
2601
           advices: []
2550
           advices: []
2602
         }
2551
         }
2603
-      );
2552
+      )
2604
     },
2553
     },
2605
     // getNumber: function(record) {
2554
     // getNumber: function(record) {
2606
     //   console.log(record);
2555
     //   console.log(record);
2610
         return (
2559
         return (
2611
           this.patientInfo.DialysisSchedule.device_zone.name +
2560
           this.patientInfo.DialysisSchedule.device_zone.name +
2612
           this.dialysisOrder.DeviceNumber.number
2561
           this.dialysisOrder.DeviceNumber.number
2613
-        );
2562
+        )
2614
       } else {
2563
       } else {
2615
         return (
2564
         return (
2616
           this.patientInfo.DialysisSchedule.device_zone.name +
2565
           this.patientInfo.DialysisSchedule.device_zone.name +
2617
           this.patientInfo.DialysisSchedule.device_number.number
2566
           this.patientInfo.DialysisSchedule.device_number.number
2618
-        );
2567
+        )
2619
       }
2568
       }
2620
     },
2569
     },
2621
     getLastAfterWeight(id, assessmentDate) {
2570
     getLastAfterWeight(id, assessmentDate) {
2622
       getLastAfterWeight(id, assessmentDate).then(response => {
2571
       getLastAfterWeight(id, assessmentDate).then(response => {
2623
         if (response.data.state === 1) {
2572
         if (response.data.state === 1) {
2624
-          var weight = response.data.data.weight;
2573
+          var weight = response.data.data.weight
2625
 
2574
 
2626
-          this.lastAfterWeight = weight.weight_after.toFixed(1);
2627
-          console.log("weight", weight);
2575
+          this.lastAfterWeight = weight.weight_after.toFixed(1)
2576
+          console.log('weight', weight)
2628
         }
2577
         }
2629
-      });
2578
+      })
2630
     }
2579
     }
2631
   }
2580
   }
2632
-};
2581
+}
2633
 </script>
2582
 </script>
2634
 
2583
 
2635
 <style scoped>
2584
 <style scoped>

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

77
           <span class="content">{{
77
           <span class="content">{{
78
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
78
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
79
           }}</span>
79
           }}</span>
80
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
81
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
80
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
81
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
82
         </li>
82
         </li>
83
         <li v-if="isShow('葡萄糖')">
83
         <li v-if="isShow('葡萄糖')">
84
           <label>葡萄糖 : </label>
84
           <label>葡萄糖 : </label>

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18
             actual_ultrafiltration
18
             actual_ultrafiltration
19
           }}</span>
19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 17) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 " >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9" >L</span>
22
         </li>
22
         </li>
23
         <li v-if="isShow('导管')">
23
         <li v-if="isShow('导管')">
24
           <label>导管 : </label>
24
           <label>导管 : </label>

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

28
           <el-col :span="8" v-if="isShow('实际超滤量')">
28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
             <el-form-item
29
             <el-form-item
30
               label="实际超滤量(ml): "
30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 "  >
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>

+ 36 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

669
               this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
669
               this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
670
             }
670
             }
671
           }
671
           }
672
+          if (this.lastPredialysisEvaluation != null) {
673
+            this.$set(
674
+              this.assessmentBeforeDislysis,
675
+              'additional_weight',
676
+              this.lastPredialysisEvaluation['additional_weight'].toString()
677
+            )
678
+
679
+            this.$set(
680
+              this.assessmentBeforeDislysis,
681
+              'internal_fistula',
682
+              this.lastPredialysisEvaluation['internal_fistula']
683
+            )
684
+            this.$set(
685
+              this.assessmentBeforeDislysis,
686
+              'internal_fistula_skin',
687
+              this.lastPredialysisEvaluation['internal_fistula_skin']
688
+            )
689
+            this.$set(
690
+              this.assessmentBeforeDislysis,
691
+              'blood_access_part_id',
692
+              this.lastPredialysisEvaluation['blood_access_part_id']
693
+            )
694
+            this.$set(
695
+              this.assessmentBeforeDislysis,
696
+              'blood_access_part_opera_id',
697
+              this.lastPredialysisEvaluation['blood_access_part_opera_id']
698
+            )
699
+          }
700
+
672
         } else {
701
         } else {
673
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
702
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
674
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
703
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
675
         }
704
         }
705
+
706
+
707
+
708
+
709
+
710
+
711
+
676
       },
712
       },
677
       hide() {
713
       hide() {
678
         this.isVisibility = false
714
         this.isVisibility = false

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

64
             </el-form-item>
64
             </el-form-item>
65
           </el-col>
65
           </el-col>
66
 
66
 
67
-          <el-col :span="8" v-if="isShows('目标超滤量') && this.$store.getters.xt_user.template_info.template_id == 17">
67
+          <el-col :span="8" v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9)">
68
             <el-form-item label="目标超滤量(ml):">
68
             <el-form-item label="目标超滤量(ml):">
69
               <el-input
69
               <el-input
70
                 type="number"
70
                 type="number"
73
             </el-form-item>
73
             </el-form-item>
74
           </el-col>
74
           </el-col>
75
 
75
 
76
-          <el-col :span="8" v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17">
76
+          <el-col :span="8" v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9">
77
             <el-form-item label="目标超滤量(L):">
77
             <el-form-item label="目标超滤量(L):">
78
               <el-input
78
               <el-input
79
                 type="number"
79
                 type="number"

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

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

633
     }
633
     }
634
   },
634
   },
635
   created() {
635
   created() {
636
+    if(sessionStorage.getItem("nameActive")){
637
+      this.activeName = sessionStorage.getItem("nameActive")
638
+    }
636
     var patient_id = this.$route.query.patient_id
639
     var patient_id = this.$route.query.patient_id
637
     var date = this.$route.query.date
640
     var date = this.$route.query.date
638
     this.patient_id = patient_id
641
     this.patient_id = patient_id
1190
         }
1193
         }
1191
       })
1194
       })
1192
     },
1195
     },
1193
-    handleClick() {
1196
+    handleClick(type) {
1197
+      console.log(99999999999,type)
1198
+      sessionStorage.setItem('nameActive', type.name); 
1194
       this.getData()
1199
       this.getData()
1195
     },
1200
     },
1196
     getData() {
1201
     getData() {

+ 7 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue 查看文件

629
                     <td width="40">入量:</td>
629
                     <td width="40">入量:</td>
630
                     <td width="40">回血:</td>
630
                     <td width="40">回血:</td>
631
                     <td width="50">
631
                     <td width="50">
632
-                        <div class="under-line">&nbsp;{{ afterdialysis.return_blood ? afterdialysis.return_blood : '' }}</div>
632
+                        <div class="under-line">&nbsp;{{ afterdialysis.return_blood ? afterdialysis.return_blood : 0 }}</div>
633
                     </td>
633
                     </td>
634
                     <td width="10">ml</td>
634
                     <td width="10">ml</td>
635
                     <td width="30"></td>
635
                     <td width="30"></td>
636
                     <td width="50">补液量:</td>
636
                     <td width="50">补液量:</td>
637
                     <td width="50">
637
                     <td width="50">
638
-                        <div class="under-line">&nbsp;{{ afterdialysis.rehydration_volume ? afterdialysis.rehydration_volume : "" }}</div>
638
+                        <div class="under-line">&nbsp;{{ afterdialysis.rehydration_volume ? afterdialysis.rehydration_volume : 0 }}</div>
639
                     </td>
639
                     </td>
640
                     <td width="10">ml</td>
640
                     <td width="10">ml</td>
641
                     <td width="30"></td>
641
                     <td width="30"></td>
642
                     <td width="100">透析中进食量:</td>
642
                     <td width="100">透析中进食量:</td>
643
                     <td width="50">
643
                     <td width="50">
644
-                        <div class="under-line">&nbsp;{{ afterdialysis.dialysis_during ? afterdialysis.dialysis_during : "" }}</div>
644
+                        <div class="under-line">&nbsp;{{ afterdialysis.dialysis_during ? afterdialysis.dialysis_during : 0 }}</div>
645
                     </td>
645
                     </td>
646
                     <td width="10">ml</td>
646
                     <td width="10">ml</td>
647
                     <td width="30"></td>
647
                     <td width="30"></td>
648
                     <td width="40">出量:</td>
648
                     <td width="40">出量:</td>
649
                     <td width="50">
649
                     <td width="50">
650
-                        <div class="under-line">&nbsp;{{ afterdialysis.stroke_volume ? afterdialysis.stroke_volume : "" }}</div>
650
+                        <div class="under-line">&nbsp;{{ afterdialysis.stroke_volume ? afterdialysis.stroke_volume : 0 }}</div>
651
                     </td>
651
                     </td>
652
                     <td width="10">ml</td>
652
                     <td width="10">ml</td>
653
                     <td></td>
653
                     <td></td>
662
                     <td width="70">主管医生:</td>
662
                     <td width="70">主管医生:</td>
663
                     <td width="100">
663
                     <td width="100">
664
                       <div>
664
                       <div>
665
-                        <span v-if="setAdminUserES(prescription.creater) == ''">
666
-                            {{ getAdminUser(prescription.creater) }}
665
+                        <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">
666
+                            {{ getAdminUser(prescription.prescription_doctor) }}
667
                         </span>
667
                         </span>
668
-                        <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
668
+                        <img style="height:30px;" :src="setAdminUserES(prescription.prescription_doctor)" alt="" srcset="" v-else />
669
 
669
 
670
                         <!-- {{getXuserName(prescription.prescription_doctor)}} -->
670
                         <!-- {{getXuserName(prescription.prescription_doctor)}} -->
671
                       </div>
671
                       </div>

文件差异内容过多而无法显示
+ 307 - 299
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue


+ 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


+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue 查看文件

294
               <td>&nbsp;{{monitor.conductivity?monitor.conductivity:''}}</td>
294
               <td>&nbsp;{{monitor.conductivity?monitor.conductivity:''}}</td>
295
               <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
295
               <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
296
               <td>&nbsp; <span v-if="monitor.operate_time"> {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }} </span></td>
296
               <td>&nbsp; <span v-if="monitor.operate_time"> {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }} </span></td>
297
-              <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
297
+              <td>&nbsp;{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
298
               <td> <span v-if="monitor.symptom || monitor.dispose || monitor.result"> {{ monitor.symptom + "," + monitor.dispose + "," + monitor.result }} </span>
298
               <td> <span v-if="monitor.symptom || monitor.dispose || monitor.result"> {{ monitor.symptom + "," + monitor.dispose + "," + monitor.result }} </span>
299
               </td>
299
               </td>
300
             </tr>
300
             </tr>

+ 2 - 2
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue 查看文件

239
                     }
239
                     }
240
 
240
 
241
                     return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
241
                     return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
242
-                      { offset: 0, color: colorList[0] },
242
+                      {offset: 0, color: colorList[index][0]},
243
                       // { offset: 0.5, color: colorList[index][1] },
243
                       // { offset: 0.5, color: colorList[index][1] },
244
-                      { offset: 1, color: colorList[1] }
244
+                      {offset: 1, color: colorList[index][1]}
245
                     ])
245
                     ])
246
                   },
246
                   },
247
                   barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
247
                   barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形

+ 19 - 1
src/xt_pages/qcd/indicatorControlAnalysis/monitor.vue 查看文件

335
                 }
335
                 }
336
               }
336
               }
337
             }
337
             }
338
-          ]
338
+          ],
339
+          dataZoom: [
340
+            {
341
+              //Y轴固定,让内容滚动
342
+              type: "slider",
343
+              show: false,
344
+              xAxisIndex: [0],
345
+              start: 1,
346
+              end: 20, //设置X轴刻度之间的间隔(根据数据量来调整)
347
+              zoomLock: true //锁定区域禁止缩放(鼠标滚动会缩放,所以禁止)
348
+            },
349
+            {
350
+              type: "inside",
351
+              xAxisIndex: [0],
352
+              start: 1,
353
+              end: 20,
354
+              zoomLock: true //锁定区域禁止缩放
355
+            }
356
+          ],
339
         },
357
         },
340
         bar: {
358
         bar: {
341
           title: {
359
           title: {

+ 38 - 2
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue 查看文件

318
                 }
318
                 }
319
               }
319
               }
320
             }
320
             }
321
-          ]
321
+          ],
322
+          dataZoom: [
323
+            {
324
+              //Y轴固定,让内容滚动
325
+              type: "slider",
326
+              show: false,
327
+              xAxisIndex: [0],
328
+              start: 1,
329
+              end: 20, //设置X轴刻度之间的间隔(根据数据量来调整)
330
+              zoomLock: true //锁定区域禁止缩放(鼠标滚动会缩放,所以禁止)
331
+            },
332
+            {
333
+              type: "inside",
334
+              xAxisIndex: [0],
335
+              start: 1,
336
+              end: 20,
337
+              zoomLock: true //锁定区域禁止缩放
338
+            }
339
+          ],
322
         },
340
         },
323
         bar: {
341
         bar: {
324
           title: {
342
           title: {
397
                 }
415
                 }
398
               }
416
               }
399
             }
417
             }
400
-          ]
418
+          ],
419
+          dataZoom: [
420
+            {
421
+              //Y轴固定,让内容滚动
422
+              type: "slider",
423
+              show: false,
424
+              xAxisIndex: [0],
425
+              start: 1,
426
+              end: 20, //设置X轴刻度之间的间隔(根据数据量来调整)
427
+              zoomLock: true //锁定区域禁止缩放(鼠标滚动会缩放,所以禁止)
428
+            },
429
+            {
430
+              type: "inside",
431
+              xAxisIndex: [0],
432
+              start: 1,
433
+              end: 20,
434
+              zoomLock: true //锁定区域禁止缩放
435
+            }
436
+          ],
401
         }
437
         }
402
 
438
 
403
       }
439
       }

+ 1 - 0
src/xt_pages/user/patients.vue 查看文件

765
 
765
 
766
       },
766
       },
767
       handleSuccess({ results, header }) {
767
       handleSuccess({ results, header }) {
768
+        console.log(results)
768
         if (header != undefined && header.length > 0) {
769
         if (header != undefined && header.length > 0) {
769
           var isHasName = header.includes('*姓名')
770
           var isHasName = header.includes('*姓名')
770
           var isHasGender = header.includes('*性别')
771
           var isHasGender = header.includes('*性别')