huangyw 2 years ago
parent
commit
19b6808f01
1 changed files with 173 additions and 114 deletions
  1. 173 114
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue

+ 173 - 114
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

@@ -154,6 +154,7 @@
154 154
                   "
155 155
                   showValue="女性经期"
156 156
                 ></label-box>
157
+
157 158
                 <div style="display: flex; padding-left: 20px">
158 159
                   其他
159 160
                   <div
@@ -231,13 +232,25 @@
231 232
               <label-box
232 233
                 :isChecked="prescription.anticoagulant == 1 ? true : false"
233 234
                 showValue="无肝素"
234
-              ></label-box>
235
+              ></label-box>&nbsp;&nbsp;
235 236
               <!-- <label-box
236 237
                 :isChecked="prescription.anticoagulant == 5 ? true : false"
237 238
                 showValue="枸橼酸"
238 239
               ></label-box> -->
239
-              <span style="padding-left: 20px">
240
-                其他
240
+              <label-box
241
+                :isChecked="
242
+                  prescription.anticoagulant != 1 &&
243
+                  prescription.anticoagulant != 2 &&
244
+                  prescription.anticoagulant != 3 &&
245
+                  prescription.anticoagulant != 6 &&
246
+                  prescription.anticoagulant != 7 &&
247
+                  prescription.anticoagulant != 0
248
+                    ? true
249
+                    : false
250
+                "
251
+                showValue="其他"
252
+              ></label-box>
253
+              <span style="padding-left: 10px">
241 254
                 <span
242 255
                   style="
243 256
                     display: inline-block;
@@ -253,7 +266,8 @@
253 266
                       prescription.anticoagulant != 2 &&
254 267
                       prescription.anticoagulant != 3 &&
255 268
                       prescription.anticoagulant != 6 &&
256
-                      prescription.anticoagulant != 7
269
+                      prescription.anticoagulant != 7 &&
270
+                      prescription.anticoagulant != 0
257 271
                     "
258 272
                     >{{ prescription.anticoagulant_name
259 273
                     }}{{
@@ -262,7 +276,8 @@
262 276
                       prescription.anticoagulant != 2 &&
263 277
                       prescription.anticoagulant != 3 &&
264 278
                       prescription.anticoagulant != 6 &&
265
-                      prescription.anticoagulant != 7
279
+                      prescription.anticoagulant != 7 &&
280
+                      prescription.anticoagulant != 0
266 281
                         ? prescription.anticoagulant_zongliang
267 282
                         : ""
268 283
                     }}iu;</span
@@ -296,7 +311,10 @@
296 311
             <!-- <td style="border: none"></td> -->
297 312
             <td width="20" style="padding-left: 10px">
298 313
               医师签名:
299
-              <span style="height: 20px" v-if="setAdminUserES(prescription.creater) == ''">
314
+              <span
315
+                style="height: 20px"
316
+                v-if="setAdminUserES(prescription.creater) == ''"
317
+              >
300 318
                 {{ getAdminUser(prescription.creater) }}
301 319
               </span>
302 320
               <img
@@ -349,7 +367,7 @@
349 367
                     {{
350 368
                       prescription.calcium ? prescription.calcium : ""
351 369
                     }} </span
352
-                  >mmol/L&nbsp; 碳酸氢
370
+                  >mmol/L&nbsp; 碳酸氢
353 371
                   <span style="width: 30px; display: inline-block">
354 372
                     {{
355 373
                       prescription.bicarbonate ? prescription.bicarbonate : ""
@@ -429,8 +447,26 @@
429 447
                     showValue="锁骨下"
430 448
                   ></label-box>
431 449
                   &nbsp;
450
+                  <label-box
451
+                    :isChecked="
452
+                      predialysis.blood_access_part_opera_name.indexOf(
453
+                        '锁骨下'
454
+                      ) == -1&&predialysis.blood_access_part_opera_name.indexOf(
455
+                        '股静脉'
456
+                      ) == -1&&predialysis.blood_access_part_opera_name.indexOf(
457
+                        '颈内静脉'
458
+                      ) == -1&&predialysis.blood_access_part_opera_name.indexOf(
459
+                        '人造血管'
460
+                      ) == -1&&predialysis.blood_access_part_opera_name.indexOf(
461
+                        '自体内瘘'
462
+                      ) == -1&&predialysis.blood_access_part_opera_name!=''
463
+
464
+                        ? true
465
+                        : false
466
+                    "
467
+                    showValue="其他"
468
+                  ></label-box>
432 469
                   <span style="padding-left: 20px">
433
-                    其他
434 470
                     <span
435 471
                       style="
436 472
                         display: inline-block;
@@ -440,7 +476,6 @@
440 476
                         text-align: center;
441 477
                       "
442 478
                     >
443
-                    
444 479
                       <span
445 480
                         v-if="
446 481
                           predialysis.blood_access_part_opera_name.indexOf(
@@ -745,7 +780,11 @@
745 780
 
746 781
           <td>
747 782
             <span v-if="getTime(monitor.operate_time) != ''">
748
-              {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
783
+              {{
784
+                monitor.transmembrane_pressure
785
+                  ? monitor.transmembrane_pressure
786
+                  : ""
787
+              }}
749 788
             </span>
750 789
           </td>
751 790
 
@@ -791,13 +830,13 @@
791 830
           </td>
792 831
           <td>
793 832
             <span v-if="getTime(monitor.operate_time) != ''">
794
-              {{ monitor.breathing_rate ? monitor.breathing_rate : "0" }}
833
+              {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
795 834
             </span>
796 835
           </td>
797 836
 
798 837
           <td>
799 838
             <span v-if="getTime(monitor.operate_time) != ''">
800
-              {{ monitor.pulse_frequency ? monitor.pulse_frequency : "0" }}
839
+              {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
801 840
             </span>
802 841
           </td>
803 842
 
@@ -863,7 +902,7 @@
863 902
 
864 903
           <tr v-for="(advice, advice_index) in advices">
865 904
             <td>{{ getTime(advice.start_time, "{h}:{i}") }}</td>
866
-            <td style="text-align: left;padding-left:5px;">
905
+            <td style="text-align: left; padding-left: 5px">
867 906
               <span v-if="advice.parent_id > 0">---></span>
868 907
               <span>{{ advice.advice_name }}</span>
869 908
               <span v-if="advice && advice.advice_desc"
@@ -1080,7 +1119,10 @@
1080 1119
       </table> -->
1081 1120
     </div>
1082 1121
     <!-- <div style="position: absolute; top: 1380px; left: 50%"></div> -->
1083
-    <div style="margin-top: 300px;padding-top:50px;" v-if="this.totollength > 20">
1122
+    <div
1123
+      style="margin-top: 300px; padding-top: 50px"
1124
+      v-if="this.totollength > 20"
1125
+    >
1084 1126
       <template v-if="this.totollength > 20">
1085 1127
         <div class="dialysis-print-order">
1086 1128
           <div class="order-yy-name">{{ orgname }}</div>
@@ -1108,7 +1150,6 @@
1108 1150
             </tbody>
1109 1151
           </table>
1110 1152
         </div>
1111
-
1112 1153
       </template>
1113 1154
       <template v-if="doctor_advices_2.length > 0">
1114 1155
         <div class="dialysis-print-order">
@@ -1130,43 +1171,55 @@
1130 1171
                 <td style="width: 60px; height: 20px" v-if="advices.length < 8">
1131 1172
                   <p
1132 1173
                     style="height: 40px; line-height: 20px"
1133
-                    v-if="doctor_advices_2.length == 8&&advices.length < 7"
1174
+                    v-if="doctor_advices_2.length == 8 && advices.length < 7"
1134 1175
                   >
1135 1176
                     上次透后体重
1136 1177
                   </p>
1137 1178
                   <p
1138 1179
                     style="height: 40px; line-height: 20px"
1139
-                    v-else-if="doctor_advices_2.length == 7&&advices.length < 7"
1180
+                    v-else-if="
1181
+                      doctor_advices_2.length == 7 && advices.length < 7
1182
+                    "
1140 1183
                   >
1141 1184
                     透前体重
1142 1185
                   </p>
1143 1186
                   <p
1144 1187
                     style="height: 40px; line-height: 20px"
1145
-                    v-else-if="doctor_advices_2.length == 6&&advices.length < 7"
1188
+                    v-else-if="
1189
+                      doctor_advices_2.length == 6 && advices.length < 7
1190
+                    "
1146 1191
                   >
1147 1192
                     体重增加量
1148 1193
                   </p>
1149 1194
                   <p
1150 1195
                     style="height: 40px; line-height: 20px"
1151
-                    v-else-if="doctor_advices_2.length == 5&&advices.length < 7"
1196
+                    v-else-if="
1197
+                      doctor_advices_2.length == 5 && advices.length < 7
1198
+                    "
1152 1199
                   >
1153 1200
                     干体重(DW)
1154 1201
                   </p>
1155 1202
                   <p
1156 1203
                     style="height: 40px; line-height: 20px"
1157
-                    v-else-if="doctor_advices_2.length == 4&&advices.length < 7"
1204
+                    v-else-if="
1205
+                      doctor_advices_2.length == 4 && advices.length < 7
1206
+                    "
1158 1207
                   >
1159 1208
                     较干体重增加量
1160 1209
                   </p>
1161 1210
                   <p
1162 1211
                     style="height: 40px; line-height: 20px"
1163
-                    v-else-if="doctor_advices_2.length == 3&&advices.length < 7"
1212
+                    v-else-if="
1213
+                      doctor_advices_2.length == 3 && advices.length < 7
1214
+                    "
1164 1215
                   >
1165 1216
                     净脱水量
1166 1217
                   </p>
1167 1218
                   <p
1168 1219
                     style="height: 40px; line-height: 20px"
1169
-                    v-else-if="doctor_advices_2.length == 2&&advices.length < 7"
1220
+                    v-else-if="
1221
+                      doctor_advices_2.length == 2 && advices.length < 7
1222
+                    "
1170 1223
                   >
1171 1224
                     透后体重
1172 1225
                   </p>
@@ -1174,19 +1227,19 @@
1174 1227
                 <td style="width: 60px; height: 40px" v-else></td>
1175 1228
                 <td
1176 1229
                   style="width: 45px; height: 20px"
1177
-                  v-if="doctor_advices_2.length == 8&&advices.length < 7"
1230
+                  v-if="doctor_advices_2.length == 8 && advices.length < 7"
1178 1231
                 >
1179 1232
                   {{ assessmentafter.weight_after }}kg
1180 1233
                 </td>
1181 1234
                 <td
1182 1235
                   style="width: 45px; height: 20px"
1183
-                  v-if="doctor_advices_2.length == 7&&advices.length < 7"
1236
+                  v-if="doctor_advices_2.length == 7 && advices.length < 7"
1184 1237
                 >
1185 1238
                   {{ predialysis.weight_before }}kg
1186 1239
                 </td>
1187 1240
                 <td
1188 1241
                   style="width: 45px; height: 20px"
1189
-                  v-if="doctor_advices_2.length == 6&&advices.length < 7"
1242
+                  v-if="doctor_advices_2.length == 6 && advices.length < 7"
1190 1243
                 >
1191 1244
                   {{
1192 1245
                     (
@@ -1196,13 +1249,13 @@
1196 1249
                 </td>
1197 1250
                 <td
1198 1251
                   style="width: 45px; height: 20px"
1199
-                  v-if="doctor_advices_2.length == 5&&advices.length < 7"
1252
+                  v-if="doctor_advices_2.length == 5 && advices.length < 7"
1200 1253
                 >
1201 1254
                   {{ predialysis.dry_weight }}kg
1202 1255
                 </td>
1203 1256
                 <td
1204 1257
                   style="width: 45px; height: 20px"
1205
-                  v-if="doctor_advices_2.length == 4&&advices.length < 7"
1258
+                  v-if="doctor_advices_2.length == 4 && advices.length < 7"
1206 1259
                 >
1207 1260
                   {{
1208 1261
                     (
@@ -1212,13 +1265,13 @@
1212 1265
                 </td>
1213 1266
                 <td
1214 1267
                   style="width: 45px; height: 20px"
1215
-                  v-if="doctor_advices_2.length == 3&&advices.length < 7"
1268
+                  v-if="doctor_advices_2.length == 3 && advices.length < 7"
1216 1269
                 >
1217 1270
                   {{ afterdialysis.actual_ultrafiltration }}ml
1218 1271
                 </td>
1219 1272
                 <td
1220 1273
                   style="width: 45px; height: 20px"
1221
-                  v-if="doctor_advices_2.length == 2&&advices.length < 7"
1274
+                  v-if="doctor_advices_2.length == 2 && advices.length < 7"
1222 1275
                 >
1223 1276
                   {{ afterdialysis.weight_after }}kg
1224 1277
                 </td>
@@ -1227,7 +1280,7 @@
1227 1280
 
1228 1281
               <tr v-for="(advice, advice_index) in doctor_advices_2">
1229 1282
                 <td>{{ getTime(advice.start_time, "{h}:{i}") }}</td>
1230
-                <td style="text-align: left;padding-left:5px;">
1283
+                <td style="text-align: left; padding-left: 5px">
1231 1284
                   <span v-if="advice.parent_id > 0">---></span>
1232 1285
                   <span>{{ advice.advice_name }}</span>
1233 1286
                   <span v-if="advice && advice.advice_desc"
@@ -1497,96 +1550,102 @@
1497 1550
               </tr>
1498 1551
             </tbody>
1499 1552
           </table>
1500
-        
1501 1553
         </div>
1502 1554
       </template>
1503 1555
       <div class="dialysis-print-order">
1504
-      <table class="print-table" border="1" v-if="doctor_advices_2.length > 0 || this.totollength > 20">
1505
-        <tr style="height: 50px; text-align: left; border: none">
1506
-          <td style="padding-left: 5px; border: none">
1507
-            治疗小结:{{
1508
-              summary.dialysis_summary ? summary.dialysis_summary : ""
1509
-            }}
1510
-          </td>
1511
-        </tr>
1512
-        <tr style="height: 40px">
1513
-          <td
1514
-            rowspan="11"
1515
-            style="border: none; text-align: right; height: 40px"
1516
-          >
1517
-            医生签名
1518
-            <span style="display: inline-block; width: 100px; text-align: left">
1519
-              &nbsp;
1556
+        <table
1557
+          class="print-table"
1558
+          border="1"
1559
+          v-if="doctor_advices_2.length > 0 || this.totollength > 20"
1560
+        >
1561
+          <tr style="height: 50px; text-align: left; border: none">
1562
+            <td style="padding-left: 5px; border: none">
1563
+              治疗小结:{{
1564
+                summary.dialysis_summary ? summary.dialysis_summary : ""
1565
+              }}
1566
+            </td>
1567
+          </tr>
1568
+          <tr style="height: 40px">
1569
+            <td
1570
+              rowspan="11"
1571
+              style="border: none; text-align: right; height: 40px"
1572
+            >
1573
+              医生签名
1520 1574
               <span
1521
-                v-if="
1522
-                  setAdminUserES(
1523
-                    prescription == null
1524
-                      ? 0
1525
-                      : prescription.prescription_doctor
1526
-                      ? prescription.prescription_doctor
1527
-                      : ''
1528
-                  ) == ''
1529
-                "
1575
+                style="display: inline-block; width: 100px; text-align: left"
1530 1576
               >
1531
-                {{
1532
-                  getAdminUser(
1533
-                    prescription == null
1534
-                      ? 0
1535
-                      : prescription.prescription_doctor
1536
-                      ? prescription.prescription_doctor
1537
-                      : ""
1538
-                  )
1539
-                }}
1577
+                &nbsp;
1578
+                <span
1579
+                  v-if="
1580
+                    setAdminUserES(
1581
+                      prescription == null
1582
+                        ? 0
1583
+                        : prescription.prescription_doctor
1584
+                        ? prescription.prescription_doctor
1585
+                        : ''
1586
+                    ) == ''
1587
+                  "
1588
+                >
1589
+                  {{
1590
+                    getAdminUser(
1591
+                      prescription == null
1592
+                        ? 0
1593
+                        : prescription.prescription_doctor
1594
+                        ? prescription.prescription_doctor
1595
+                        : ""
1596
+                    )
1597
+                  }}
1598
+                </span>
1599
+                <img
1600
+                  style="height: 30px"
1601
+                  :src="
1602
+                    setAdminUserES(
1603
+                      prescription == null
1604
+                        ? 0
1605
+                        : prescription.prescription_doctor
1606
+                        ? prescription.prescription_doctor
1607
+                        : ''
1608
+                    )
1609
+                  "
1610
+                  alt=""
1611
+                  srcset=""
1612
+                  v-else
1613
+                />
1540 1614
               </span>
1541
-              <img
1542
-                style="height: 30px"
1543
-                :src="
1544
-                  setAdminUserES(
1545
-                    prescription == null
1546
-                      ? 0
1547
-                      : prescription.prescription_doctor
1548
-                      ? prescription.prescription_doctor
1549
-                      : ''
1550
-                  )
1551
-                "
1552
-                alt=""
1553
-                srcset=""
1554
-                v-else
1555
-              />
1556
-            </span>
1557
-            护士签名
1558
-            <span style="display: inline-block; width: 100px; text-align: left">
1559
-              &nbsp;
1615
+              护士签名
1560 1616
               <span
1561
-                v-if="
1562
-                  setAdminUserES(
1563
-                    dialysisOrder == null ? 0 : dialysisOrder.start_nurse
1564
-                  ) == ''
1565
-                "
1566
-                >{{
1567
-                  getAdminUser(
1568
-                    dialysisOrder == null ? 0 : dialysisOrder.start_nurse
1569
-                  )
1570
-                }}</span
1617
+                style="display: inline-block; width: 100px; text-align: left"
1571 1618
               >
1572
-              <img
1573
-                class="es-img"
1574
-                style="height: 30px"
1575
-                :src="
1576
-                  setAdminUserES(
1577
-                    dialysisOrder == null ? 0 : dialysisOrder.start_nurse
1578
-                  )
1579
-                "
1580
-                alt=""
1581
-                srcset=""
1582
-                v-else
1583
-              />
1584
-            </span>
1585
-          </td>
1586
-        </tr>
1587
-      </table>
1619
+                &nbsp;
1620
+                <span
1621
+                  v-if="
1622
+                    setAdminUserES(
1623
+                      dialysisOrder == null ? 0 : dialysisOrder.start_nurse
1624
+                    ) == ''
1625
+                  "
1626
+                  >{{
1627
+                    getAdminUser(
1628
+                      dialysisOrder == null ? 0 : dialysisOrder.start_nurse
1629
+                    )
1630
+                  }}</span
1631
+                >
1632
+                <img
1633
+                  class="es-img"
1634
+                  style="height: 30px"
1635
+                  :src="
1636
+                    setAdminUserES(
1637
+                      dialysisOrder == null ? 0 : dialysisOrder.start_nurse
1638
+                    )
1639
+                  "
1640
+                  alt=""
1641
+                  srcset=""
1642
+                  v-else
1643
+                />
1644
+              </span>
1645
+            </td>
1646
+          </tr>
1647
+        </table>
1588 1648
       </div>
1589
-     
1590 1649
     </div>
1591 1650
   </div>
1592 1651
 </template>
@@ -1942,7 +2001,7 @@ export default {
1942 2001
           this.prescription = response.data.data.dialysisPrescription;
1943 2002
           this.receiverTreatmentAccess =
1944 2003
             response.data.data.receiverTreatmentAccess;
1945
-          this.assessmentafter = response.data.data.assessmentAfterDislysis;
2004
+          this.assessmentafter = response.data.data.AssessmentAfterDislysis;
1946 2005
 
1947 2006
           this.sick_condition_arr.forEach((o) => {
1948 2007
             if (this.receiverTreatmentAccess.sick_condition == o.id) {
@@ -2348,8 +2407,8 @@ export default {
2348 2407
     ) {
2349 2408
       this.queryParams.xtdate = xtdate;
2350 2409
       this.queryParams.xtno = xtno;
2351
-      this.xtdate = xtdate
2352
-      
2410
+      this.xtdate = xtdate;
2411
+
2353 2412
       this.getDialysisRecord();
2354 2413
     } else {
2355 2414
       this.$message.error("参数不齐");