Pārlūkot izejas kodu

中能建打印单修改

XMLWAN 5 gadus atpakaļ
vecāks
revīzija
a018147f62

+ 58 - 64
src/xt_pages/dialysis/batch_print/batch_print_order.vue Parādīt failu

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

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2030 - 604
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2582 - 1018
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue


+ 274 - 248
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Parādīt failu

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

+ 5 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Parādīt failu

1529
                       class="under_line"
1529
                       class="under_line"
1530
                       style="width:200px;text-align:center;"
1530
                       style="width:200px;text-align:center;"
1531
                     >
1531
                     >
1532
-                      <span v-if="afterdialysis.dialyzer == 1">0 级</span>
1533
-                      <span v-if="afterdialysis.dialyzer == 2">Ⅰ 级</span>
1534
-                      <span v-if="afterdialysis.dialyzer == 3">Ⅱ 级</span>
1535
-                      <span v-if="afterdialysis.dialyzer == 4">Ⅲ 级</span>
1532
+                      <span v-if="afterdialysis.dialyzer == 0">/</span>
1533
+                      <span v-if="afterdialysis.dialyzer == 1">透析器0</span>
1534
+                      <span v-if="afterdialysis.dialyzer == 2">透析器+</span>
1535
+                      <span v-if="afterdialysis.dialyzer == 3">透析器++</span>
1536
+                      <span v-if="afterdialysis.dialyzer == 4">透析器+++</span>
1536
                     </div>
1537
                     </div>
1537
                   </div>
1538
                   </div>
1538
                   <div class="inline_block" style="flex:2;">
1539
                   <div class="inline_block" style="flex:2;">

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 3041 - 1473
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue