Преглед на файлове

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 преди 3 месеца
родител
ревизия
88cf0f6c52
променени са 1 файла, в които са добавени 331 реда и са изтрити 24 реда
  1. 331 24
      src/pages/main/template/DialysisPrintOrdereightyone.vue

+ 331 - 24
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: 1;">
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
           >
@@ -1083,7 +1084,7 @@
1083 1084
                   </div>
1084 1085
                 </div>
1085 1086
                 <div class="inline_block" style="flex: 1">
1086
-                  治疗医
1087
+                  治疗医
1087 1088
                   <div class="under_line"
1088 1089
                     style="width: 80px; text-align: center"
1089 1090
                   >
@@ -1117,6 +1118,7 @@
1117 1118
 import CheckBox from './option_check_box'
1118 1119
 import { getDialysisRecord } from '@/api/dialysis'
1119 1120
 import { getDataConfig } from '@/utils/data'
1121
+import { EasyScroller } from 'easyscroller'
1120 1122
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1121 1123
 import LabelBox from '../printItem/LabelBox'
1122 1124
 
@@ -1245,9 +1247,288 @@ export default {
1245 1247
       },
1246 1248
       lastWeight:{},
1247 1249
       number_list:[],
1250
+      scroller:{},
1248 1251
     }
1249 1252
   },
1250 1253
   methods: {
1254
+    checkData() {
1255
+      var checkDate =[]
1256
+      var monearr = []
1257
+      if (this.predialysis.symptom_before_dialysis == ""){
1258
+        const obj ='透前症状'
1259
+        checkDate.push(obj)
1260
+      } if (this.predialysis.temperature == "") {
1261
+        const obj1 ='透前体温'
1262
+        checkDate.push(obj1)
1263
+      } if (this.predialysis.pulse_frequency == "") {
1264
+        const obj2 ='透前脉搏'
1265
+        checkDate.push(obj2)
1266
+      } if (this.predialysis.breathing_rate == "") {
1267
+        const obj3 ='透前呼吸'
1268
+        checkDate.push(obj3)
1269
+      } if (this.predialysis.systolic_blood_pressure == 0 ||
1270
+            this.predialysis.diastolic_blood_pressure == 0
1271
+      ) {
1272
+        const obj4 ='透前血压'
1273
+        checkDate.push(obj4)
1274
+      } if (this.predialysis.puncture_way == "") {
1275
+        const obj5 ='穿刺方式'
1276
+        checkDate.push(obj5)
1277
+      } if (this.predialysis.puncture_needle == "") {
1278
+        const obj6 ='穿刺针'
1279
+        checkDate.push(obj6)
1280
+      } if (this.predialysis.blood_access_part_id == "" &&
1281
+            this.predialysis.blood_access_part_opera_name == ""
1282
+      ) {
1283
+        const obj7 ='血管通路'
1284
+        checkDate.push(obj7)
1285
+      } if (this.predialysis.internal_fistula == "") {
1286
+        const obj8 ='透前内瘘'
1287
+        checkDate.push(obj8)
1288
+      } if (this.predialysis.catheter == "") {
1289
+        const obj9 ='透前导管'
1290
+        checkDate.push(obj9)
1291
+      } if (this.prescription.mode_id == 0) {
1292
+        const obj10 ='透析方式'
1293
+        checkDate.push(obj10)
1294
+      } if (this.prescription.displace_liqui_part == 0 &&
1295
+            this.prescription.mode_id == 2
1296
+      ) {
1297
+        const obj11 ='置换方式'
1298
+        checkDate.push(obj11)
1299
+      } if (this.prescription.displace_liqui_value == 0 &&
1300
+            this.prescription.mode_id == 2
1301
+      ) {
1302
+        const obj12 ='置换量'
1303
+        checkDate.push(obj12)
1304
+      } if (this.prescription.blood_flow_volume == 0) {
1305
+        const obj13 ='血流量'
1306
+        checkDate.push(obj13)
1307
+      } if (this.prescription.dialysis_duration_hour == '' &&
1308
+            this.prescription.dialysis_duration_minute == ''
1309
+      ) {
1310
+        const obj14 ='预透时间'
1311
+        checkDate.push(obj14)
1312
+      } if (this.prescription.dialyzer_perfusion_apparatus == '' && 
1313
+            this.prescription.dialysis_dialyszers ==''
1314
+      ) {
1315
+        const obj15 ='透析(滤)器'
1316
+        checkDate.push(obj15)
1317
+      } if (this.prescription.dialysis_irrigation == '') {
1318
+        const obj16 ='灌流器'
1319
+        checkDate.push(obj16)
1320
+      } if (this.predialysis.dry_weight == 0) {
1321
+        const obj17 ='干体重'
1322
+        checkDate.push(obj17)
1323
+      } if (this.lastWeight.weight_after == 0) {
1324
+        const obj18 ='上次透后体重'
1325
+        checkDate.push(obj18)
1326
+      } if (this.predialysis.weight_before == 0) {
1327
+        const obj19 ='透前体重'
1328
+        checkDate.push(obj19)
1329
+      } if (this.prescription.target_ultrafiltration == 0) {
1330
+        const obj20 ='超滤总量'
1331
+        checkDate.push(obj20)
1332
+      } if (this.prescription.calcium == 0) {
1333
+        const obj21 ='钙'
1334
+        checkDate.push(obj21)
1335
+      } if (this.prescription.sodium == 0) {
1336
+        const obj22 ='钠'
1337
+        checkDate.push(obj22)
1338
+      } if (this.prescription.kalium == 0) {
1339
+        const obj23 ='钾'
1340
+        checkDate.push(obj23)
1341
+      } if (this.prescription.bicarbonate == 0) {
1342
+        const obj24 ='碳酸氢根'
1343
+        checkDate.push(obj24)
1344
+      } if (this.prescription.dialysate_flow == 0) {
1345
+        const obj25 ='透析液流量'
1346
+        checkDate.push(obj25)
1347
+      } if (this.prescription.anticoagulant == 0) {
1348
+        const obj26 ='抗凝剂'
1349
+        checkDate.push(obj26)
1350
+      } if (this.prescription.anticoagulant_shouji == 0 &&
1351
+            this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1352
+      ) {
1353
+        const obj27 ='首剂'
1354
+        checkDate.push(obj27)
1355
+      } if (this.prescription.anticoagulant_zongliang == 0 && this.prescription.anticoagulant !=1 
1356
+            && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
1357
+      ) {
1358
+        const obj28 ='总量'
1359
+        checkDate.push(obj28)
1360
+      } if (this.dialysisOrder.DeviceNumber.number == 0 && 
1361
+            this.patientInfo.DialysisSchedule.device_number.number ==''
1362
+      ) {
1363
+        const obj29 ='透析机号'
1364
+        checkDate.push(obj29)
1365
+      } if (this.patientInfo.DialysisSchedule.bed_id == 0 && 
1366
+            this.dialysisOrder && this.dialysisOrder.bed_id ==0
1367
+      ) {
1368
+        const obj30 ='型号'
1369
+        checkDate.push(obj30)
1370
+      } if (
1371
+        this.prescription.anticoagulant_gaimingcheng == "" &&
1372
+        this.prescription.anticoagulant == 5
1373
+      ) {
1374
+        const obj31 ='钙名称'
1375
+        checkDate.push(obj31)
1376
+      } else if (
1377
+        this.prescription.anticoagulant_gaijiliang == "" &&
1378
+        this.prescription.anticoagulant == 5
1379
+      ) {
1380
+        const obj32 ='钙剂量'
1381
+        checkDate.push(obj32)
1382
+      } if(this.afterdialysis.cruor == ''){
1383
+        const obj33 ='透析器凝血'
1384
+        checkDate.push(obj33)
1385
+      } if(this.afterdialysis.internal_fistula == ""){
1386
+        const obj34 ='透后内瘘'
1387
+        checkDate.push(obj34)
1388
+      } if(this.afterdialysis.catheter == ""){
1389
+        const obj35 ='透后导管'
1390
+        checkDate.push(obj35)
1391
+      } if (
1392
+        this.afterdialysis.actual_treatment_hour == 0 &&
1393
+        this.afterdialysis.actual_treatment_minute == 0
1394
+      ) {
1395
+        const obj36 ='实际治疗时间'
1396
+        checkDate.push(obj36)
1397
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1398
+        const obj37 ='实际超滤量'
1399
+        checkDate.push(obj37)
1400
+      } if (this.afterdialysis.weight_after == 0) {
1401
+        const obj38 ='透后体重'
1402
+        checkDate.push(obj38)
1403
+      } if (this.afterdialysis.temperature == 0) {
1404
+        const obj39 ='透后体温'
1405
+        checkDate.push(obj39)
1406
+      } if (this.afterdialysis.pulse_frequency == 0) {
1407
+        const obj40 ='透后脉搏'
1408
+        checkDate.push(obj40)
1409
+      } if (this.afterdialysis.breathing_rate == 0) {
1410
+        const obj41 ='透后呼吸频率'
1411
+        checkDate.push(obj41)
1412
+      } if (
1413
+        this.afterdialysis.systolic_blood_pressure == 0 ||
1414
+        this.afterdialysis.diastolic_blood_pressure == 0
1415
+      ) {
1416
+        const obj42 ='透后血压'
1417
+        checkDate.push(obj42)
1418
+      } if (this.summary.dialysis_summary == "") {
1419
+        const obj43 ='治疗小结'
1420
+        checkDate.push(obj43)
1421
+      } if ( this.summary.mission == '') {
1422
+        const obj44 ='宣教知识'
1423
+        checkDate.push(obj44)
1424
+      } if (
1425
+        this.dialysisOrder == null ||
1426
+        this.dialysisOrder.puncture_nurse == 0
1427
+      ) {
1428
+        const obj45 ='穿刺护士'
1429
+        checkDate.push(obj45)
1430
+      } if (
1431
+        this.dialysisOrder == null ||
1432
+        this.dialysisOrder.start_nurse == 0
1433
+      ) {
1434
+        const obj46 ='治疗护士'
1435
+        checkDate.push(obj46)
1436
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
1437
+        const obj47 ='核对护士'
1438
+        checkDate.push(obj47)
1439
+      } else if (
1440
+        this.dialysisOrder != null &&
1441
+        this.dialysisOrder.start_nurse == this.check.modifier &&
1442
+        this.check.creater == 0
1443
+      ) {
1444
+        const obj47 ='核对护士'
1445
+        checkDate.push(obj47)
1446
+      } else if (
1447
+        this.dialysisOrder != null &&
1448
+        this.dialysisOrder.start_nurse == this.check.creater &&
1449
+        this.check.modifier == 0
1450
+      ) {
1451
+        const obj47 ='核对护士'
1452
+        checkDate.push(obj47)
1453
+      } else if (
1454
+        this.dialysisOrder != null &&
1455
+        this.dialysisOrder.start_nurse != this.check.creater &&
1456
+        this.dialysisOrder.start_nurse != this.check.modifier &&
1457
+        this.check.creater == 0
1458
+      ) {
1459
+        const obj47 ='核对护士'
1460
+        checkDate.push(obj47)
1461
+      } if (
1462
+        this.dialysisOrder == null ||
1463
+        this.dialysisOrder.finish_nurse == 0
1464
+      ) {
1465
+        const obj48 ='下机护士'
1466
+        checkDate.push(obj48)
1467
+      } if (this.prescription.creater == 0) {
1468
+        const obj49 ='医生签名'
1469
+        checkDate.push(obj49)
1470
+      } if(this.doctor_advices.length > 0){
1471
+        this.doctor_advices.map((item) =>{
1472
+          if(item.id > 0 && (item.created_time || item.start_time)){
1473
+            if(item.execution_staff ==0 || item.advice_doctor ==0){
1474
+              const obj50 = '执行人员,医生签名'
1475
+              checkDate.push(obj50)
1476
+            }
1477
+          }
1478
+        })
1479
+      } if(this.monitors.length >0){
1480
+        for(let i in this.monitors){
1481
+          if(this.monitors[i].blood_flow_volume ==0){
1482
+            const obj55 = '监测第'+((i*1)+1)+'行血流量'
1483
+            monearr.push(obj55)
1484
+          } if(this.monitors[i].venous_pressure ==0 ){
1485
+            const obj56 = '监测第'+((i*1)+1)+'行静脉压'
1486
+            monearr.push(obj56)
1487
+          } if(this.monitors[i].ultrafiltration_rate ==0){
1488
+            const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1489
+            monearr.push(obj57)
1490
+          } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1491
+            const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1492
+            monearr.push(obj53)
1493
+          } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'
1494
+          ){
1495
+            const obj58 = '监测第'+((i*1)+1)+'行置换率'
1496
+            monearr.push(obj58)
1497
+          } 
1498
+          // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1499
+          //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
1500
+          //   monearr.push(obj54)
1501
+          // }  
1502
+          if(this.monitors[i].sodium_concentration ==0 ){
1503
+            // this.monitors[i].temperature == 0
1504
+            const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1505
+            monearr.push(obj59)
1506
+          } if(this.monitors[i].pulse_frequency ==0){
1507
+            const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1508
+            monearr.push(obj60)
1509
+          } if(this.monitors[i].breathing_rate ==0){
1510
+            const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1511
+            monearr.push(obj61)
1512
+          } if(this.monitors[i].systolic_blood_pressure ==0 ||
1513
+                this.monitors.diastolic_blood_pressure==0){
1514
+            const obj62 = '监测第'+((i*1)+1)+'行血压'
1515
+            monearr.push(obj62)
1516
+          } if(this.monitors[i].temperature == 0){
1517
+            const obj51 = '监测第'+((i*1)+1)+'行温度'
1518
+            monearr.push(obj51)
1519
+          } if(this.monitors[i].transmembrane_pressure ==0){
1520
+            const obj52 = '监测第'+((i*1)+1)+'行跨膜压'
1521
+            monearr.push(obj52)
1522
+          }
1523
+
1524
+        }
1525
+      }
1526
+      if(monearr.length>0){
1527
+       checkDate =checkDate.concat(monearr)
1528
+        console.log('1111',checkDate.concat(monearr));
1529
+      }
1530
+      this.getcheckData(checkDate)
1531
+    },
1251 1532
     getDisplaceLiquiPart: function (val) {
1252 1533
       let displace_liqui_part_name = '/'
1253 1534
       let displace_liqui_part = this.displaceLiquiPartOptions
@@ -1855,6 +2136,16 @@ export default {
1855 2136
           return options[i].number_type
1856 2137
         }
1857 2138
       }
2139
+    },
2140
+    getcheckData(val){
2141
+      if(val.length >0){
2142
+        const a = val.join(',')
2143
+        console.log('a',a);
2144
+        this.$toast(a +" 未填");
2145
+        return a
2146
+      }else{
2147
+        this.$toast('核对完成');
2148
+      }
1858 2149
     }
1859 2150
   },
1860 2151
   watch: {
@@ -1944,6 +2235,22 @@ export default {
1944 2235
       this.$message.error('参数不齐')
1945 2236
       return false
1946 2237
     }
2238
+  },
2239
+  mounted(){
2240
+    const ele = document.querySelector('#dialysis-print-box-1-1');
2241
+    this.scroller = new EasyScroller(ele, {
2242
+      scrollingX: true,
2243
+      scrollingY: true,
2244
+      zooming: true,
2245
+      minZoom: 0.5,    //最小缩放
2246
+      maxZoom: 5,    //最大缩放
2247
+      zoomLevel: 1, //初始值缩放
2248
+      bouncing: false,
2249
+    });
2250
+    console.log('ssssssss',this.scroller);
2251
+  },
2252
+  beforeDestroy(){
2253
+    this.scroller.destroy()
1947 2254
   }
1948 2255
 }
1949 2256
 </script>
@@ -2012,13 +2319,13 @@ export default {
2012 2319
   width: 50%;
2013 2320
 }
2014 2321
 
2015
-.under_line::before {
2322
+/* .under_line::before {
2016 2323
   content: "\00A0";
2017 2324
 }
2018 2325
 
2019 2326
 .under_line::after {
2020 2327
   content: "\00A0";
2021
-}
2328
+} */
2022 2329
 
2023 2330
 .flex {
2024 2331
   display: -webkit-box;