瀏覽代碼

10月29日,杏康

yq1 2 週之前
父節點
當前提交
05e017984e
共有 1 個文件被更改,包括 312 次插入23 次删除
  1. 312 23
      src/pages/main/template/DialysisPrintOrdereightyone.vue

+ 312 - 23
src/pages/main/template/DialysisPrintOrdereightyone.vue 查看文件

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box-1">
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
3 4
     <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content" style="margin-left: 10px;">
4 5
       <div style="display:inline-block;width:100%;text-align:center;">
5 6
         <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">{{orgname}}</div>
@@ -7,40 +8,40 @@
7 8
            <span>血液净化治疗记录单</span>
8 9
         </div>
9 10
       </div>
10
-      <div class="row">
11
-        <div class="inline_block">
12
-          姓名
11
+      <div class="row" style="display:flex">
12
+        <div class="inline_block" style="flex: 0.9;">
13
+          姓名:
13 14
           <div class="under_line" style="width: 50px; text-align: center">
14 15
             {{ patientInfo.name }}
15 16
           </div>
16 17
         </div>
17
-        <div class="inline_block" style="margin-left: 10px">
18
-          性别
18
+        <div class="inline_block" style="flex: 0.9;">
19
+          性别:
19 20
           <div class="under_line" style="width: 30px; text-align: center">
20 21
             {{ patientInfo_gender_1 ? "男" : "女" }}
21 22
           </div>
22 23
         </div>
23
-        <div class="inline_block" style="margin-left: 10px">
24
-          年龄
24
+        <div class="inline_block" style="flex: 0.9;">
25
+          年龄:
25 26
           <div class="under_line" style="width: 30px; text-align: center">
26 27
               {{ patientInfo.age }}
27 28
           </div>
28 29
29 30
         </div>
30
-        <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1">
31
-          门诊
31
+        <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1" style="flex: 0.9;">
32
+          门诊:
32 33
           <div class="under_line" style="width: 30px; text-align: center">
33 34
             <check-box :checked="patientInfo_source_1"></check-box>
34 35
           </div>
35 36
         </div>
36
-        <div class="inline_block" v-if="receiverTreatmentAccess.condition==1">
37
-          住院
37
+        <div class="inline_block" v-if="receiverTreatmentAccess.condition==1" style="flex: 0.9;">
38
+          住院:
38 39
           <div class="under_line" style="width: 30px; text-align: center">
39 40
             <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
40 41
           </div>
41 42
         </div>
42
-        <div class="inline_block">
43
-          病区
43
+        <div class="inline_block" style="flex: 0.9;">
44
+          病区:
44 45
           <div class="under_line" style="width: 50px; text-align: center">
45 46
             <span v-if="receiverTreatmentAccess.condition != 1">{{
46 47
               patientInfo.DialysisSchedule.device_zone.name
@@ -49,8 +50,8 @@
49 50
             }}</span>
50 51
           </div>
51 52
         </div>
52
-        <div class="inline_block">
53
-          床号
53
+        <div class="inline_block" style="flex: 1.1;">
54
+          床号:
54 55
           <div class="under_line" style="width: 50px; text-align: center">
55 56
             <span>{{
56 57
               dialysisOrder &&
@@ -61,14 +62,14 @@
61 62
             }}</span>
62 63
           </div>
63 64
         </div>
64
-        <div class="inline_block">
65
-          透析号
66
-          <div class="under_line" style="width: 70px; text-align: center">
65
+        <div class="inline_block" style="flex: 1.1;">
66
+          透析号:
67
+          <div class="under_line" style="width: 60px; text-align: center">
67 68
             {{ patientInfo.dialysis_no }}
68 69
           </div>
69 70
         </div>
70
-        <div class="inline_block" style="margin-left: 5px;">
71
-          住院号/门诊号
71
+        <div class="inline_block" style="flex: 1.5;">
72
+          住院号/门诊号:
72 73
           <div class="under_line" style="width: 70px;text-align: left">
73 74
             <span v-if="receiverTreatmentAccess.admission_number">
74 75
               {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number :'/' }}
@@ -82,7 +83,7 @@
82 83
       </div>
83 84
       <div class="row">
84 85
         <div class="inline_block" style="width: 100%;">
85
-          诊断
86
+          诊断:
86 87
           <div class="under_line"
87 88
             style=" width:95%; text-align: left;word-wrap: break-word;white-space: inherit;"
88 89
           >
@@ -1248,6 +1249,284 @@ export default {
1248 1249
     }
1249 1250
   },
1250 1251
   methods: {
1252
+    checkData() {
1253
+      var checkDate =[]
1254
+      var monearr = []
1255
+      if (this.predialysis.symptom_before_dialysis == ""){
1256
+        const obj ='透前症状'
1257
+        checkDate.push(obj)
1258
+      } if (this.predialysis.temperature == "") {
1259
+        const obj1 ='透前体温'
1260
+        checkDate.push(obj1)
1261
+      } if (this.predialysis.pulse_frequency == "") {
1262
+        const obj2 ='透前脉搏'
1263
+        checkDate.push(obj2)
1264
+      } if (this.predialysis.breathing_rate == "") {
1265
+        const obj3 ='透前呼吸'
1266
+        checkDate.push(obj3)
1267
+      } if (this.predialysis.systolic_blood_pressure == 0 ||
1268
+            this.predialysis.diastolic_blood_pressure == 0
1269
+      ) {
1270
+        const obj4 ='透前血压'
1271
+        checkDate.push(obj4)
1272
+      } if (this.predialysis.puncture_way == "") {
1273
+        const obj5 ='穿刺方式'
1274
+        checkDate.push(obj5)
1275
+      } if (this.predialysis.puncture_needle == "") {
1276
+        const obj6 ='穿刺针'
1277
+        checkDate.push(obj6)
1278
+      } if (this.predialysis.blood_access_part_id == "" &&
1279
+            this.predialysis.blood_access_part_opera_name == ""
1280
+      ) {
1281
+        const obj7 ='血管通路'
1282
+        checkDate.push(obj7)
1283
+      } if (this.predialysis.internal_fistula == "") {
1284
+        const obj8 ='透前内瘘'
1285
+        checkDate.push(obj8)
1286
+      } if (this.predialysis.catheter == "") {
1287
+        const obj9 ='透前导管'
1288
+        checkDate.push(obj9)
1289
+      } if (this.prescription.mode_id == 0) {
1290
+        const obj10 ='透析方式'
1291
+        checkDate.push(obj10)
1292
+      } if (this.prescription.displace_liqui_part == 0 &&
1293
+            this.prescription.mode_id == 2
1294
+      ) {
1295
+        const obj11 ='置换方式'
1296
+        checkDate.push(obj11)
1297
+      } if (this.prescription.displace_liqui_value == 0 &&
1298
+            this.prescription.mode_id == 2
1299
+      ) {
1300
+        const obj12 ='置换量'
1301
+        checkDate.push(obj12)
1302
+      } if (this.prescription.blood_flow_volume == 0) {
1303
+        const obj13 ='血流量'
1304
+        checkDate.push(obj13)
1305
+      } if (this.prescription.dialysis_duration_hour == '' &&
1306
+            this.prescription.dialysis_duration_minute == ''
1307
+      ) {
1308
+        const obj14 ='预透时间'
1309
+        checkDate.push(obj14)
1310
+      } if (this.prescription.dialyzer_perfusion_apparatus == '' && 
1311
+            this.prescription.dialysis_dialyszers ==''
1312
+      ) {
1313
+        const obj15 ='透析(滤)器'
1314
+        checkDate.push(obj15)
1315
+      } if (this.prescription.dialysis_irrigation == '') {
1316
+        const obj16 ='灌流器'
1317
+        checkDate.push(obj16)
1318
+      } if (this.predialysis.dry_weight == 0) {
1319
+        const obj17 ='干体重'
1320
+        checkDate.push(obj17)
1321
+      } if (this.lastWeight.weight_after == 0) {
1322
+        const obj18 ='上次透后体重'
1323
+        checkDate.push(obj18)
1324
+      } if (this.predialysis.weight_before == 0) {
1325
+        const obj19 ='透前体重'
1326
+        checkDate.push(obj19)
1327
+      } if (this.prescription.target_ultrafiltration == 0) {
1328
+        const obj20 ='超滤总量'
1329
+        checkDate.push(obj20)
1330
+      } if (this.prescription.calcium == 0) {
1331
+        const obj21 ='钙'
1332
+        checkDate.push(obj21)
1333
+      } if (this.prescription.sodium == 0) {
1334
+        const obj22 ='钠'
1335
+        checkDate.push(obj22)
1336
+      } if (this.prescription.kalium == 0) {
1337
+        const obj23 ='钾'
1338
+        checkDate.push(obj23)
1339
+      } if (this.prescription.bicarbonate == 0) {
1340
+        const obj24 ='碳酸氢根'
1341
+        checkDate.push(obj24)
1342
+      } if (this.prescription.dialysate_flow == 0) {
1343
+        const obj25 ='透析液流量'
1344
+        checkDate.push(obj25)
1345
+      } if (this.prescription.anticoagulant == 0) {
1346
+        const obj26 ='抗凝剂'
1347
+        checkDate.push(obj26)
1348
+      } if (this.prescription.anticoagulant_shouji == 0 &&
1349
+            this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1350
+      ) {
1351
+        const obj27 ='首剂'
1352
+        checkDate.push(obj27)
1353
+      } if (this.prescription.anticoagulant_zongliang == 0 && this.prescription.anticoagulant !=1 
1354
+            && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
1355
+      ) {
1356
+        const obj28 ='总量'
1357
+        checkDate.push(obj28)
1358
+      } if (this.dialysisOrder.DeviceNumber.number == 0 && 
1359
+            this.patientInfo.DialysisSchedule.device_number.number ==''
1360
+      ) {
1361
+        const obj29 ='透析机号'
1362
+        checkDate.push(obj29)
1363
+      } if (this.patientInfo.DialysisSchedule.bed_id == 0 && 
1364
+            this.dialysisOrder && this.dialysisOrder.bed_id ==0
1365
+      ) {
1366
+        const obj30 ='型号'
1367
+        checkDate.push(obj30)
1368
+      } if (
1369
+        this.prescription.anticoagulant_gaimingcheng == "" &&
1370
+        this.prescription.anticoagulant == 5
1371
+      ) {
1372
+        const obj31 ='钙名称'
1373
+        checkDate.push(obj31)
1374
+      } else if (
1375
+        this.prescription.anticoagulant_gaijiliang == "" &&
1376
+        this.prescription.anticoagulant == 5
1377
+      ) {
1378
+        const obj32 ='钙剂量'
1379
+        checkDate.push(obj32)
1380
+      } if(this.afterdialysis.cruor == ''){
1381
+        const obj33 ='透析器凝血'
1382
+        checkDate.push(obj33)
1383
+      } if(this.afterdialysis.internal_fistula == ""){
1384
+        const obj34 ='透后内瘘'
1385
+        checkDate.push(obj34)
1386
+      } if(this.afterdialysis.catheter == ""){
1387
+        const obj35 ='透后导管'
1388
+        checkDate.push(obj35)
1389
+      } if (
1390
+        this.afterdialysis.actual_treatment_hour == 0 &&
1391
+        this.afterdialysis.actual_treatment_minute == 0
1392
+      ) {
1393
+        const obj36 ='实际治疗时间'
1394
+        checkDate.push(obj36)
1395
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1396
+        const obj37 ='实际超滤量'
1397
+        checkDate.push(obj37)
1398
+      } if (this.afterdialysis.weight_after == 0) {
1399
+        const obj38 ='透后体重'
1400
+        checkDate.push(obj38)
1401
+      } if (this.afterdialysis.temperature == 0) {
1402
+        const obj39 ='透后体温'
1403
+        checkDate.push(obj39)
1404
+      } if (this.afterdialysis.pulse_frequency == 0) {
1405
+        const obj40 ='透后脉搏'
1406
+        checkDate.push(obj40)
1407
+      } if (this.afterdialysis.breathing_rate == 0) {
1408
+        const obj41 ='透后呼吸频率'
1409
+        checkDate.push(obj41)
1410
+      } if (
1411
+        this.afterdialysis.systolic_blood_pressure == 0 ||
1412
+        this.afterdialysis.diastolic_blood_pressure == 0
1413
+      ) {
1414
+        const obj42 ='透后血压'
1415
+        checkDate.push(obj42)
1416
+      } if (this.summary.dialysis_summary == "") {
1417
+        const obj43 ='治疗小结'
1418
+        checkDate.push(obj43)
1419
+      } if ( this.summary.mission == '') {
1420
+        const obj44 ='宣教知识'
1421
+        checkDate.push(obj44)
1422
+      } if (
1423
+        this.dialysisOrder == null ||
1424
+        this.dialysisOrder.puncture_nurse == 0
1425
+      ) {
1426
+        const obj45 ='穿刺护士'
1427
+        checkDate.push(obj45)
1428
+      } if (
1429
+        this.dialysisOrder == null ||
1430
+        this.dialysisOrder.start_nurse == 0
1431
+      ) {
1432
+        const obj46 ='治疗护士'
1433
+        checkDate.push(obj46)
1434
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
1435
+        const obj47 ='核对护士'
1436
+        checkDate.push(obj47)
1437
+      } else if (
1438
+        this.dialysisOrder != null &&
1439
+        this.dialysisOrder.start_nurse == this.check.modifier &&
1440
+        this.check.creater == 0
1441
+      ) {
1442
+        const obj47 ='核对护士'
1443
+        checkDate.push(obj47)
1444
+      } else if (
1445
+        this.dialysisOrder != null &&
1446
+        this.dialysisOrder.start_nurse == this.check.creater &&
1447
+        this.check.modifier == 0
1448
+      ) {
1449
+        const obj47 ='核对护士'
1450
+        checkDate.push(obj47)
1451
+      } else if (
1452
+        this.dialysisOrder != null &&
1453
+        this.dialysisOrder.start_nurse != this.check.creater &&
1454
+        this.dialysisOrder.start_nurse != this.check.modifier &&
1455
+        this.check.creater == 0
1456
+      ) {
1457
+        const obj47 ='核对护士'
1458
+        checkDate.push(obj47)
1459
+      } if (
1460
+        this.dialysisOrder == null ||
1461
+        this.dialysisOrder.finish_nurse == 0
1462
+      ) {
1463
+        const obj48 ='下机护士'
1464
+        checkDate.push(obj48)
1465
+      } if (this.prescription.creater == 0) {
1466
+        const obj49 ='医生签名'
1467
+        checkDate.push(obj49)
1468
+      } if(this.doctor_advices.length > 0){
1469
+        this.doctor_advices.map((item) =>{
1470
+          if(item.id > 0 && (item.created_time || item.start_time)){
1471
+            if(item.execution_staff ==0 || item.advice_doctor ==0){
1472
+              const obj50 = '执行人员,医生签名'
1473
+              checkDate.push(obj50)
1474
+            }
1475
+          }
1476
+        })
1477
+      } if(this.monitors.length >0){
1478
+        for(let i in this.monitors){
1479
+          if(this.monitors[i].blood_flow_volume ==0){
1480
+            const obj55 = '监测第'+((i*1)+1)+'行血流量'
1481
+            monearr.push(obj55)
1482
+          } if(this.monitors[i].venous_pressure ==0 ){
1483
+            const obj56 = '监测第'+((i*1)+1)+'行静脉压'
1484
+            monearr.push(obj56)
1485
+          } if(this.monitors[i].ultrafiltration_rate ==0){
1486
+            const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1487
+            monearr.push(obj57)
1488
+          } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1489
+            const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1490
+            monearr.push(obj53)
1491
+          } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'
1492
+          ){
1493
+            const obj58 = '监测第'+((i*1)+1)+'行置换率'
1494
+            monearr.push(obj58)
1495
+          } 
1496
+          // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1497
+          //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
1498
+          //   monearr.push(obj54)
1499
+          // }  
1500
+          if(this.monitors[i].sodium_concentration ==0 ){
1501
+            // this.monitors[i].temperature == 0
1502
+            const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1503
+            monearr.push(obj59)
1504
+          } if(this.monitors[i].pulse_frequency ==0){
1505
+            const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1506
+            monearr.push(obj60)
1507
+          } if(this.monitors[i].breathing_rate ==0){
1508
+            const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1509
+            monearr.push(obj61)
1510
+          } if(this.monitors[i].systolic_blood_pressure ==0 ||
1511
+                this.monitors.diastolic_blood_pressure==0){
1512
+            const obj62 = '监测第'+((i*1)+1)+'行血压'
1513
+            monearr.push(obj62)
1514
+          } if(this.monitors[i].temperature == 0){
1515
+            const obj51 = '监测第'+((i*1)+1)+'行温度'
1516
+            monearr.push(obj51)
1517
+          } if(this.monitors[i].transmembrane_pressure ==0){
1518
+            const obj52 = '监测第'+((i*1)+1)+'行跨膜压'
1519
+            monearr.push(obj52)
1520
+          }
1521
+
1522
+        }
1523
+      }
1524
+      if(monearr.length>0){
1525
+       checkDate =checkDate.concat(monearr)
1526
+        console.log('1111',checkDate.concat(monearr));
1527
+      }
1528
+      this.getcheckData(checkDate)
1529
+    },
1251 1530
     getDisplaceLiquiPart: function (val) {
1252 1531
       let displace_liqui_part_name = '/'
1253 1532
       let displace_liqui_part = this.displaceLiquiPartOptions
@@ -1855,6 +2134,16 @@ export default {
1855 2134
           return options[i].number_type
1856 2135
         }
1857 2136
       }
2137
+    },
2138
+    getcheckData(val){
2139
+      if(val.length >0){
2140
+        const a = val.join(',')
2141
+        console.log('a',a);
2142
+        this.$toast(a +" 未填");
2143
+        return a
2144
+      }else{
2145
+        this.$toast('核对完成');
2146
+      }
1858 2147
     }
1859 2148
   },
1860 2149
   watch: {
@@ -2012,13 +2301,13 @@ export default {
2012 2301
   width: 50%;
2013 2302
 }
2014 2303
 
2015
-.under_line::before {
2304
+/* .under_line::before {
2016 2305
   content: "\00A0";
2017 2306
 }
2018 2307
 
2019 2308
 .under_line::after {
2020 2309
   content: "\00A0";
2021
-}
2310
+} */
2022 2311
 
2023 2312
 .flex {
2024 2313
   display: -webkit-box;