Sfoglia il codice sorgente

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

28169 3 giorni fa
parent
commit
7478fa9a0a

+ 276 - 270
src/pages/main/template/DialysisPrintOrderSeventyeight.vue Vedi File

@@ -1117,7 +1117,7 @@ import { getDialysisRecord } from '@/api/dialysis'
1117 1117
 import { getDataConfig } from '@/utils/data'
1118 1118
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1119 1119
 import LabelBox from '../printItem/LabelBox'
1120
-import {Dialog} from 'vant'
1120
+import {Dialog,Toast} from 'vant'
1121 1121
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1122 1122
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1123 1123
 import print from 'print-js'
@@ -1242,286 +1242,292 @@ export default {
1242 1242
       },
1243 1243
       lastWeight:{},
1244 1244
       scroller:{},
1245
+      new_date:(Date.parse(new Date())/1000),
1245 1246
     }
1246 1247
   },
1247 1248
   methods: {
1248 1249
     checkData() {
1249 1250
       var checkDate =[]
1250 1251
       var monearr = []
1251
-      if (this.predialysis.temperature == '') {
1252
-        const obj = "透前体温"
1253
-        checkDate.push(obj)
1254
-      } if (this.predialysis.pulse_frequency == "") {
1255
-        const obj1 = "透前脉搏"
1256
-        checkDate.push(obj1)
1257
-      } if (this.predialysis.breathing_rate == "") {
1258
-         const obj2 = "透前呼吸频率"
1259
-         checkDate.push(obj2)
1260
-      } if (
1261
-        this.predialysis.systolic_blood_pressure == 0 ||
1262
-        this.predialysis.diastolic_blood_pressure == 0
1263
-      ) {
1264
-        const obj3 = "透前血压"
1265
-        checkDate.push(obj3)
1266
-      } if (this.predialysis.symptom_before_dialysis == "") {
1267
-        const obj5 = "透前症状"
1268
-        checkDate.push(obj5)
1269
-      } if (this.predialysis.internal_fistula == "" || this.predialysis.catheter == "") {
1270
-        const obj6 = "透前内瘘,导管"
1271
-        checkDate.push(obj6)
1272
-      } if (this.predialysis.complication == "" ) {
1273
-        const obj7 = "合并症"
1274
-        checkDate.push(obj7)
1275
-      } if (this.predialysis.dry_weight == '' ) {
1276
-        const obj8 = "干体重"
1277
-        checkDate.push(obj8)
1278
-      } if ( this. predialysis.weight_before == '') {
1279
-        const obj9 = "透前体重"
1280
-        checkDate.push(obj9)
1281
-      } if (this.afterdialysis.temperature == '') {
1282
-        const obj10 = "透后体温"
1283
-        checkDate.push(obj10)
1284
-      } if (this.afterdialysis.pulse_frequency == "") {
1285
-        const obj11 = "透后脉搏"
1286
-        checkDate.push(obj11)
1287
-      } if (this.afterdialysis.breathing_rate == "") {
1288
-        const obj12 = "透后呼吸频率"
1289
-        checkDate.push(obj12)
1290
-      } if (
1291
-        this.afterdialysis.systolic_blood_pressure == 0 ||
1292
-        this.afterdialysis.diastolic_blood_pressure == 0
1293
-      ) {
1294
-        const obj13 = "透后血压"
1295
-        checkDate.push(obj13)
1296
-      } if (this.afterdialysis.cruor == "") {
1297
-        const obj14 = "凝血"
1298
-        checkDate.push(obj14)
1299
-      } if (this.afterdialysis.symptom_after_dialysis == "") {
1300
-        const obj15 = "透后症状"
1301
-        checkDate.push(obj15)
1302
-      } if (this.afterdialysis.internal_fistula == "" || this.afterdialysis.catheter == "") {
1303
-        const obj16 = "透后内瘘,导管"
1304
-        checkDate.push(obj16)
1305
-      }  if (this.afterdialysis.complication == 0) {
1306
-        const obj17 = "并发症"
1307
-        checkDate.push(obj17)
1308
-      } if (this.afterdialysis.actual_displacement == 0 &&
1309
-        (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)) {
1310
-        const obj18 = "实际置换量"
1311
-        checkDate.push(obj18)
1312
-      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1313
-        const obj19 = "实际超滤量"
1314
-        checkDate.push(obj19)
1315
-      } if (this.afterdialysis.weight_after == 0) {
1316
-        const obj20 = "透后体重"
1317
-        checkDate.push(obj20)
1318
-      } if (this.afterdialysis.weight_loss == 0) {
1319
-        const obj21 = "体重减少"
1320
-        checkDate.push(obj21)
1321
-      } if (this.prescription.target_ultrafiltration == 0) {
1322
-        const obj22 = "处方脱水量"
1323
-        checkDate.push(obj22)
1324
-      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1325
-        const obj23 = "超滤总量"
1326
-        checkDate.push(obj23)
1327
-      } if (this.prescription.dialysis_duration_hour == 0) {
1328
-        const obj24 = "透析时长"
1329
-        checkDate.push(obj24)
1330
-      } if (this.prescription.mode == '') {
1331
-        const obj25 = "透析方式"
1332
-        checkDate.push(obj25)
1333
-      } if (this.prescription.displace_liqui_part == '' &&
1334
-      (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1335
-        const obj26 = "置换方式"
1336
-        checkDate.push(obj26)
1337
-      } if (this.prescription.displace_liqui_value == 0 &&
1338
-      (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1339
-        const obj27 = "置换总量"
1340
-        checkDate.push(obj27)
1341
-      } if (this.predialysis.blood_access_part_opera_name == ''){
1342
-        const obj28 = "血管通路"
1343
-        checkDate.push(obj28)
1344
-      } if (this.prescription.blood_flow_volume == 0) {
1345
-        const obj29 = "血流量"
1346
-        checkDate.push(obj29)
1347
-      } if (
1348
-        this.prescription.dialysis_irrigation == '' &&
1349
-        this.prescription.dialysis_dialyszers == '' &&
1350
-        this.prescription.dialysis_strainer == ''
1351
-      ){
1352
-        const obj30 = "透析器"
1353
-        checkDate.push(obj30)
1354
-      } 
1355
-      // if (this.predialysis.machine_type == 0) {
1356
-      //   const obj31 = "透析机型"
1357
-      //   checkDate.push(obj31)
1358
-      // } 
1359
-      if (this.dialysisOrder !=undefined && this.dialysisOrder.DeviceNumber.number == 0) {
1360
-        const obj32 = "机号"
1361
-        checkDate.push(obj32)
1362
-      } if (this.prescription.anticoagulant_name == 0) {
1363
-        const obj33 = "抗凝剂"
1364
-        checkDate.push(obj33)
1365
-      } if (this.prescription.anticoagulant_shouji == 0 &&
1366
-        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1367
-      ) {
1368
-        const obj34 = "首剂"
1369
-        checkDate.push(obj34)
1370
-      }
1371
-      // if (this.prescription.anticoagulant_weichi == 0 &&
1372
-      //   this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1373
-      // ) {
1374
-      //   const obj35 = "维持"
1375
-      //   checkDate.push(obj35)
1376
-      // }
1377
-      if (this.prescription.anticoagulant_zongliang == 0 &&
1378
-        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
1379
-      ) {
1380
-        const obj36 = "总量"
1381
-        checkDate.push(obj36)
1382
-      } if (this.prescription.calcium == 0) {
1383
-        const obj37 = "钙"
1384
-        checkDate.push(obj37)
1385
-      } if (this.prescription.sodium == 0) {
1386
-        const obj38 = "钠"
1387
-        checkDate.push(obj38)
1388
-      } if (this.prescription.kalium == 0) {
1389
-        const obj39 = "钾"
1390
-        checkDate.push(obj39)
1391
-      } if (this.prescription.bicarbonate == 0) {
1392
-        const obj40 = "碳酸氢根"
1393
-        checkDate.push(obj40)
1394
-      } if (this.prescription.dialysate_flow == 0) {
1395
-        const obj41 = "透析液流量"
1396
-        checkDate.push(obj41)
1397
-      } if (
1398
-        this.prescription.anticoagulant_gaimingcheng == "" &&
1399
-        this.prescription.anticoagulant == 5
1400
-      ) {
1401
-        const obj42 = "钙名称"
1402
-        checkDate.push(obj42)
1403
-      } if (
1404
-        this.prescription.anticoagulant_gaijiliang == "" &&
1405
-        this.prescription.anticoagulant == 5
1406
-      ) {
1407
-        const obj43 = "钙剂量"
1408
-        checkDate.push(obj43)
1409
-      } if (
1410
-        this.afterdialysis.actual_treatment_hour == 0 &&
1411
-        this.afterdialysis.actual_treatment_minute == 0
1412
-      ) {
1413
-        const obj44 = "实际治疗时间"
1414
-        checkDate.push(obj44)
1415
-      } if (this.summary.mission == 0) {
1416
-        const obj45 = "透后宣教"
1417
-        checkDate.push(obj45)
1418
-      } if (this.summary.dialysis_summary == "") {
1419
-        const obj46 = "透析小结"
1420
-        checkDate.push(obj46)
1421
-      } if (
1422
-        this.dialysisOrder == null ||
1423
-        this.dialysisOrder.puncture_nurse == 0
1424
-      ) {
1425
-        const obj47 = "穿刺护士"
1426
-        checkDate.push(obj47)
1427
-      } if (
1428
-        this.dialysisOrder == null ||
1429
-        this.dialysisOrder.start_nurse == 0
1430
-      ) {
1431
-        const obj48 = "治疗护士"
1432
-        checkDate.push(obj48)
1433
-      } if (this.dialysisOrder == null && this.check.creater == 0) {
1434
-        const obj49 = "核对人员"
1435
-        checkDate.push(obj49)
1436
-      } else if (
1437
-        this.dialysisOrder != null &&
1438
-        this.dialysisOrder.start_nurse == this.check.modifier &&
1439
-        this.check.creater == 0
1440
-      ) {
1441
-        const obj49 = "核对人员"
1442
-        checkDate.push(obj49)
1443
-      } else if (
1444
-        this.dialysisOrder != null &&
1445
-        this.dialysisOrder.start_nurse == this.check.creater &&
1446
-        this.check.modifier == 0
1447
-      ) {
1448
-        const obj49 = "核对人员"
1449
-        checkDate.push(obj49)
1450
-      } else if (
1451
-        this.dialysisOrder != null &&
1452
-        this.dialysisOrder.start_nurse != this.check.creater &&
1453
-        this.dialysisOrder.start_nurse != this.check.modifier &&
1454
-        this.check.creater == 0
1455
-      ) {
1456
-        const obj49 = "核对人员"
1457
-        checkDate.push(obj49)
1458
-      } if (
1459
-        this.dialysisOrder == null ||
1460
-        this.dialysisOrder.finish_nurse == 0
1461
-      ) {
1462
-        const obj50 = "下机护士"
1463
-        checkDate.push(obj50)
1464
-      } if (this.prescription.creater == 0) {
1465
-        const obj51 = "治疗医生"
1466
-        checkDate.push(obj51)
1467
-      }
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.checker ==0){
1472
-              const obj52 = '执行人员,核对人员'
1473
-              checkDate.push(obj52)
1474
-            }
1475
-          }
1476
-        })
1477
-      }
1478
-      if(this.monitors.length >0){
1479
-        for(let i in this.monitors){
1480
-        if(this.monitors[i].blood_flow_volume ==0){
1481
-        const obj55 = '监测第'+((i*1)+1)+'行血流量'
1482
-        monearr.push(obj55)
1483
-        } if(this.monitors[i].venous_pressure ==0 ||
1484
-        this.monitors[i].transmembrane_pressure ==0
1485
-        ){
1486
-        const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1487
-        monearr.push(obj56)
1488
-        } if(this.monitors[i].ultrafiltration_rate ==0){
1489
-        const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1490
-        monearr.push(obj57)
1491
-        } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1492
-        const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1493
-        monearr.push(obj53)
1494
-        } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'
1252
+      if(this.dialysisOrder != undefined && this.dialysisOrder.end_time > this.new_date){
1253
+          if (this.predialysis.temperature == '') {
1254
+          const obj = "透前体温"
1255
+          checkDate.push(obj)
1256
+        } if (this.predialysis.pulse_frequency == "") {
1257
+          const obj1 = "透前脉搏"
1258
+          checkDate.push(obj1)
1259
+        } if (this.predialysis.breathing_rate == "") {
1260
+          const obj2 = "透前呼吸频率"
1261
+          checkDate.push(obj2)
1262
+        } if (
1263
+          this.predialysis.systolic_blood_pressure == 0 ||
1264
+          this.predialysis.diastolic_blood_pressure == 0
1265
+        ) {
1266
+          const obj3 = "透前血压"
1267
+          checkDate.push(obj3)
1268
+        } if (this.predialysis.symptom_before_dialysis == "") {
1269
+          const obj5 = "透前症状"
1270
+          checkDate.push(obj5)
1271
+        } if (this.predialysis.internal_fistula == "" || this.predialysis.catheter == "") {
1272
+          const obj6 = "透前内瘘,导管"
1273
+          checkDate.push(obj6)
1274
+        } if (this.predialysis.complication == "" ) {
1275
+          const obj7 = "合并症"
1276
+          checkDate.push(obj7)
1277
+        } if (this.predialysis.dry_weight == '' ) {
1278
+          const obj8 = "干体重"
1279
+          checkDate.push(obj8)
1280
+        } if ( this. predialysis.weight_before == '') {
1281
+          const obj9 = "透前体重"
1282
+          checkDate.push(obj9)
1283
+        } if (this.afterdialysis.temperature == '') {
1284
+          const obj10 = "透后体温"
1285
+          checkDate.push(obj10)
1286
+        } if (this.afterdialysis.pulse_frequency == "") {
1287
+          const obj11 = "透后脉搏"
1288
+          checkDate.push(obj11)
1289
+        } if (this.afterdialysis.breathing_rate == "") {
1290
+          const obj12 = "透后呼吸频率"
1291
+          checkDate.push(obj12)
1292
+        } if (
1293
+          this.afterdialysis.systolic_blood_pressure == 0 ||
1294
+          this.afterdialysis.diastolic_blood_pressure == 0
1295
+        ) {
1296
+          const obj13 = "透后血压"
1297
+          checkDate.push(obj13)
1298
+        } if (this.afterdialysis.cruor == "") {
1299
+          const obj14 = "凝血"
1300
+          checkDate.push(obj14)
1301
+        } if (this.afterdialysis.symptom_after_dialysis == "") {
1302
+          const obj15 = "透后症状"
1303
+          checkDate.push(obj15)
1304
+        } if (this.afterdialysis.internal_fistula == "" || this.afterdialysis.catheter == "") {
1305
+          const obj16 = "透后内瘘,导管"
1306
+          checkDate.push(obj16)
1307
+        }  if (this.afterdialysis.complication == 0) {
1308
+          const obj17 = "并发症"
1309
+          checkDate.push(obj17)
1310
+        } if (this.afterdialysis.actual_displacement == 0 &&
1311
+          (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)) {
1312
+          const obj18 = "实际置换量"
1313
+          checkDate.push(obj18)
1314
+        } if (this.afterdialysis.actual_ultrafiltration == 0) {
1315
+          const obj19 = "实际超滤量"
1316
+          checkDate.push(obj19)
1317
+        } if (this.afterdialysis.weight_after == 0) {
1318
+          const obj20 = "透后体重"
1319
+          checkDate.push(obj20)
1320
+        } if (this.afterdialysis.weight_loss == 0) {
1321
+          const obj21 = "体重减少"
1322
+          checkDate.push(obj21)
1323
+        } if (this.prescription.target_ultrafiltration == 0) {
1324
+          const obj22 = "处方脱水量"
1325
+          checkDate.push(obj22)
1326
+        } if (this.afterdialysis.actual_ultrafiltration == 0) {
1327
+          const obj23 = "超滤总量"
1328
+          checkDate.push(obj23)
1329
+        } if (this.prescription.dialysis_duration_hour == 0) {
1330
+          const obj24 = "透析时长"
1331
+          checkDate.push(obj24)
1332
+        } if (this.prescription.mode == '') {
1333
+          const obj25 = "透析方式"
1334
+          checkDate.push(obj25)
1335
+        } if (this.prescription.displace_liqui_part == '' &&
1336
+        (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1337
+          const obj26 = "置换方式"
1338
+          checkDate.push(obj26)
1339
+        } if (this.prescription.displace_liqui_value == 0 &&
1340
+        (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1341
+          const obj27 = "置换总量"
1342
+          checkDate.push(obj27)
1343
+        } if (this.predialysis.blood_access_part_opera_name == ''){
1344
+          const obj28 = "血管通路"
1345
+          checkDate.push(obj28)
1346
+        } if (this.prescription.blood_flow_volume == 0) {
1347
+          const obj29 = "血流量"
1348
+          checkDate.push(obj29)
1349
+        } if (
1350
+          this.prescription.dialysis_irrigation == '' &&
1351
+          this.prescription.dialysis_dialyszers == '' &&
1352
+          this.prescription.dialysis_strainer == ''
1495 1353
         ){
1496
-        const obj58 = '监测第'+((i*1)+1)+'行置换率'
1497
-        monearr.push(obj58)
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
-        }  if(this.monitors[i].sodium_concentration ==0 ){
1502
-        // this.monitors[i].temperature == 0
1503
-        const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1504
-        monearr.push(obj59)
1505
-        } if(this.monitors[i].pulse_frequency ==0){
1506
-        const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1507
-        monearr.push(obj60)
1508
-        } if(this.monitors[i].breathing_rate ==0){
1509
-        const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1510
-        monearr.push(obj61)
1511
-        } if(this.monitors[i].systolic_blood_pressure ==0 ||
1512
-        this.monitors.diastolic_blood_pressure==0){
1513
-        const obj62 = '监测第'+((i*1)+1)+'行血压'
1514
-        monearr.push(obj62)
1354
+          const obj30 = "透析器"
1355
+          checkDate.push(obj30)
1356
+        } 
1357
+        // if (this.predialysis.machine_type == 0) {
1358
+        //   const obj31 = "透析机型"
1359
+        //   checkDate.push(obj31)
1360
+        // } 
1361
+        if (this.dialysisOrder !=undefined && this.dialysisOrder.DeviceNumber.number == 0) {
1362
+          const obj32 = "机号"
1363
+          checkDate.push(obj32)
1364
+        } if (this.prescription.anticoagulant_name == 0) {
1365
+          const obj33 = "抗凝剂"
1366
+          checkDate.push(obj33)
1367
+        } if (this.prescription.anticoagulant_shouji == 0 &&
1368
+          this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1369
+        ) {
1370
+          const obj34 = "首剂"
1371
+          checkDate.push(obj34)
1515 1372
         }
1373
+        // if (this.prescription.anticoagulant_weichi == 0 &&
1374
+        //   this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1375
+        // ) {
1376
+        //   const obj35 = "维持"
1377
+        //   checkDate.push(obj35)
1378
+        // }
1379
+        if (this.prescription.anticoagulant_zongliang == 0 &&
1380
+          this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
1381
+        ) {
1382
+          const obj36 = "总量"
1383
+          checkDate.push(obj36)
1384
+        } if (this.prescription.calcium == 0) {
1385
+          const obj37 = "钙"
1386
+          checkDate.push(obj37)
1387
+        } if (this.prescription.sodium == 0) {
1388
+          const obj38 = "钠"
1389
+          checkDate.push(obj38)
1390
+        } if (this.prescription.kalium == 0) {
1391
+          const obj39 = "钾"
1392
+          checkDate.push(obj39)
1393
+        } if (this.prescription.bicarbonate == 0) {
1394
+          const obj40 = "碳酸氢根"
1395
+          checkDate.push(obj40)
1396
+        } if (this.prescription.dialysate_flow == 0) {
1397
+          const obj41 = "透析液流量"
1398
+          checkDate.push(obj41)
1399
+        } if (
1400
+          this.prescription.anticoagulant_gaimingcheng == "" &&
1401
+          this.prescription.anticoagulant == 5
1402
+        ) {
1403
+          const obj42 = "钙名称"
1404
+          checkDate.push(obj42)
1405
+        } if (
1406
+          this.prescription.anticoagulant_gaijiliang == "" &&
1407
+          this.prescription.anticoagulant == 5
1408
+        ) {
1409
+          const obj43 = "钙剂量"
1410
+          checkDate.push(obj43)
1411
+        } if (
1412
+          this.afterdialysis.actual_treatment_hour == 0 &&
1413
+          this.afterdialysis.actual_treatment_minute == 0
1414
+        ) {
1415
+          const obj44 = "实际治疗时间"
1416
+          checkDate.push(obj44)
1417
+        } if (this.summary.mission == 0) {
1418
+          const obj45 = "透后宣教"
1419
+          checkDate.push(obj45)
1420
+        } if (this.summary.dialysis_summary == "") {
1421
+          const obj46 = "透析小结"
1422
+          checkDate.push(obj46)
1423
+        } if (
1424
+          this.dialysisOrder == null ||
1425
+          this.dialysisOrder.puncture_nurse == 0
1426
+        ) {
1427
+          const obj47 = "穿刺护士"
1428
+          checkDate.push(obj47)
1429
+        } if (
1430
+          this.dialysisOrder == null ||
1431
+          this.dialysisOrder.start_nurse == 0
1432
+        ) {
1433
+          const obj48 = "治疗护士"
1434
+          checkDate.push(obj48)
1435
+        } if (this.dialysisOrder == null && this.check.creater == 0) {
1436
+          const obj49 = "核对人员"
1437
+          checkDate.push(obj49)
1438
+        } else if (
1439
+          this.dialysisOrder != null &&
1440
+          this.dialysisOrder.start_nurse == this.check.modifier &&
1441
+          this.check.creater == 0
1442
+        ) {
1443
+          const obj49 = "核对人员"
1444
+          checkDate.push(obj49)
1445
+        } else if (
1446
+          this.dialysisOrder != null &&
1447
+          this.dialysisOrder.start_nurse == this.check.creater &&
1448
+          this.check.modifier == 0
1449
+        ) {
1450
+          const obj49 = "核对人员"
1451
+          checkDate.push(obj49)
1452
+        } else if (
1453
+          this.dialysisOrder != null &&
1454
+          this.dialysisOrder.start_nurse != this.check.creater &&
1455
+          this.dialysisOrder.start_nurse != this.check.modifier &&
1456
+          this.check.creater == 0
1457
+        ) {
1458
+          const obj49 = "核对人员"
1459
+          checkDate.push(obj49)
1460
+        } if (
1461
+          this.dialysisOrder == null ||
1462
+          this.dialysisOrder.finish_nurse == 0
1463
+        ) {
1464
+          const obj50 = "下机护士"
1465
+          checkDate.push(obj50)
1466
+        } if (this.prescription.creater == 0) {
1467
+          const obj51 = "治疗医生"
1468
+          checkDate.push(obj51)
1469
+        }
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.checker ==0){
1474
+                const obj52 = '执行人员,核对人员'
1475
+                checkDate.push(obj52)
1476
+              }
1477
+            }
1478
+          })
1479
+        }
1480
+        if(this.monitors.length >0){
1481
+          for(let i in this.monitors){
1482
+          if(this.monitors[i].blood_flow_volume ==0){
1483
+          const obj55 = '监测第'+((i*1)+1)+'行血流量'
1484
+          monearr.push(obj55)
1485
+          } if(this.monitors[i].venous_pressure ==0 ||
1486
+          this.monitors[i].transmembrane_pressure ==0
1487
+          ){
1488
+          const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1489
+          monearr.push(obj56)
1490
+          } if(this.monitors[i].ultrafiltration_rate ==0){
1491
+          const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1492
+          monearr.push(obj57)
1493
+          } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1494
+          const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1495
+          monearr.push(obj53)
1496
+          } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'
1497
+          ){
1498
+          const obj58 = '监测第'+((i*1)+1)+'行置换率'
1499
+          monearr.push(obj58)
1500
+          } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1501
+          const obj54 = '监测第'+((i*1)+1)+'行置换量'
1502
+          monearr.push(obj54)
1503
+          }  if(this.monitors[i].sodium_concentration ==0 ){
1504
+          // this.monitors[i].temperature == 0
1505
+          const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1506
+          monearr.push(obj59)
1507
+          } if(this.monitors[i].pulse_frequency ==0){
1508
+          const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1509
+          monearr.push(obj60)
1510
+          } if(this.monitors[i].breathing_rate ==0){
1511
+          const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1512
+          monearr.push(obj61)
1513
+          } if(this.monitors[i].systolic_blood_pressure ==0 ||
1514
+          this.monitors.diastolic_blood_pressure==0){
1515
+          const obj62 = '监测第'+((i*1)+1)+'行血压'
1516
+          monearr.push(obj62)
1517
+          }
1516 1518
 
1519
+          }
1520
+        }
1521
+        if(monearr.length>0){
1522
+          checkDate =checkDate.concat(monearr)
1523
+          console.log('1111',checkDate.concat(monearr));
1517 1524
         }
1518
-      }
1519
-      if(monearr.length>0){
1520
-        checkDate =checkDate.concat(monearr)
1521
-        console.log('1111',checkDate.concat(monearr));
1522
-      }
1523 1525
 
1524
-      this.getcheckData(checkDate)
1526
+        this.getcheckData(checkDate)
1527
+      }else{
1528
+        this.$toast('该患者已下机');
1529
+      }
1530
+      
1525 1531
     },
1526 1532
     getDisplaceLiquiPart: function (val) {
1527 1533
       let displace_liqui_part_name = '/'

+ 34 - 33
src/pages/main/template/DialysisPrintOrderThirtyOne.vue Vedi File

@@ -151,14 +151,14 @@
151 151
             <div class="inline_block" style="margin-right:30px;">
152 152
               透析液配方
153 153
               <div class="inline_block under_line" style="width:150px;text-align: center;">
154
-                  {{ prescription.dialysate_formulation_name ? prescription.dialysate_formulation_name : ''}}
154
+                  {{ prescription.dialysate_formulation_name ? prescription.dialysate_formulation_name : '/'}}
155 155
               </div>
156 156
             </div>
157 157
         </div>
158 158
         <div class="row">
159 159
           血管通路部位
160 160
           <div class="inline_block under_line" style="width:200px;text-align: left;">
161
-            {{ predialysis.blood_access_part_id }}
161
+            {{ predialysis.blood_access_part_id ? predialysis.blood_access_part_id :'/' }}
162 162
           </div>
163 163
 
164 164
           血管通路
@@ -191,11 +191,11 @@
191 191
         <div class="row">
192 192
           导管
193 193
           <div class="inline_block under_line" style="width:200px;text-align: left;">
194
-            {{ predialysis.catheter ? predialysis.catheter : "" }}
194
+            {{ predialysis.catheter ? predialysis.catheter : "/" }}
195 195
           </div>
196 196
           内瘘
197 197
           <div class="inline_block under_line" style="width:200px;text-align: left;">
198
-            {{ predialysis.internal_fistula ? predialysis.internal_fistula : "" }}
198
+            {{ predialysis.internal_fistula ? predialysis.internal_fistula : "/" }}
199 199
           </div>
200 200
         </div>
201 201
         <div class="row">
@@ -212,7 +212,7 @@
212 212
             <div class="inline_block">
213 213
               剂量:首次
214 214
               <div class="inline_block" style="width:50px;text-align:center">
215
-                  {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "" }}
215
+                  {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
216 216
               </div>
217 217
               <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
218 218
               <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
@@ -225,7 +225,7 @@
225 225
             <div class="inline_block">
226 226
               追加
227 227
               <div class="inline_block" style="width:50px;text-align:center">
228
-                  {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "" }}
228
+                  {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "/" }}
229 229
               </div>
230 230
               <span v-if="prescription.anticoagulant == '枸橼酸钠'">ml/h</span>
231 231
               <span v-if="prescription.anticoagulant == '阿加曲班'">mg/h</span>
@@ -238,7 +238,7 @@
238 238
             <div class="inline_block">
239 239
               总量
240 240
               <div class="inline_block" style="width:50px;text-align:center">
241
-                  {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : ""}}
241
+                  {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/"}}
242 242
               </div>
243 243
               <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
244 244
               <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
@@ -254,19 +254,19 @@
254 254
             <div class="inline_block" style="margin-right:30px;">
255 255
                 干体重
256 256
                 <div class="inline_block under_line" style="width:100px;">
257
-                    {{ predialysis.dry_weight ? predialysis.dry_weight : " " }}
257
+                    {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}
258 258
                 </div>kg
259 259
             </div>
260 260
             <div class="inline_block" style="margin-right:30px;">
261 261
                 净化前体重
262 262
                 <div class="inline_block under_line" style="width:100px;">
263
-                    {{ predialysis.weight_before ? predialysis.weight_before : " " }}
263
+                    {{ predialysis.weight_before ? predialysis.weight_before : "/" }}
264 264
                 </div>kg
265 265
             </div>
266 266
             <div class="inline_block" style="margin-right:30px;">
267 267
                 预设脱水
268 268
                 <div class="inline_block under_line" style="width:100px;">
269
-                    {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : ' ' }}
269
+                    {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : '/' }}
270 270
                 </div>ml
271 271
             </div>
272 272
         </div>
@@ -283,19 +283,19 @@
283 283
             <div class="inline_block" style="margin-right:30px;">
284 284
                 净化后体重
285 285
                 <div class="inline_block under_line" style="width:100px;">
286
-                    {{ afterdialysis.weight_after ? parseFloat(afterdialysis.weight_after).toFixed(1) : " " }}
286
+                    {{ afterdialysis.weight_after ? parseFloat(afterdialysis.weight_after).toFixed(1) : "/" }}
287 287
                 </div>kg
288 288
             </div>
289 289
             <div class="inline_block" style="margin-right:30px;">
290 290
                 实际脱水
291 291
                 <div class="inline_block under_line" style="width:100px;">
292
-                    {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : " " }}
292
+                    {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
293 293
                 </div>ml
294 294
             </div>
295 295
             <div class="inline_block" style="margin-right:30px;" v-if="org_id !=10727">
296 296
                 电导度
297 297
                 <div class="inline_block under_line" style="width:100px;">
298
-                    {{ prescription.conductivity ? prescription.conductivity : " " }}
298
+                    {{ prescription.conductivity ? prescription.conductivity : "/" }}
299 299
                 </div>mS/m
300 300
             </div>
301 301
         </div>
@@ -305,40 +305,40 @@
305 305
             <div class="inline_block" style="margin-right:30px;">
306 306
               体温
307 307
               <div class="inline_block" style="width:50px;text-align:center">
308
-                {{ predialysis.temperature ? predialysis.temperature : "" }}
308
+                {{ predialysis.temperature ? predialysis.temperature : "/" }}
309 309
               </div>℃
310 310
             </div>
311 311
             <div class="inline_block" style="margin-right:30px;">
312 312
               血压
313 313
               <div class="inline_block" style="width:100px;text-align:center">
314
-                {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "" }}/
315
-                {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "" }}
314
+                {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "/" }}/
315
+                {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "/" }}
316 316
               </div>mmHg
317 317
             </div>
318 318
             <div class="inline_block" style="margin-right:30px;">
319 319
               脉搏
320 320
               <div class="inline_block" style="width:50px;text-align:center">
321
-                {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
321
+                {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "/" }}
322 322
               </div>次/分
323 323
             </div>
324 324
             入室方式
325 325
             <div class="inline_block under_line" style="width:80px;text-align: center;margin-right:30px;">
326
-              {{ receiverTreatmentAccess.way ? receiverTreatmentAccess.way : "" }}
326
+              {{ receiverTreatmentAccess.way ? receiverTreatmentAccess.way : "/" }}
327 327
             </div>
328 328
             透析频次(次/周)
329 329
             <div class="inline_block under_line" style="width:80px;text-align: center;">
330
-              {{ predialysis.dialysis_count ? predialysis.dialysis_count : "" }}
330
+              {{ predialysis.dialysis_count ? predialysis.dialysis_count : "/" }}
331 331
             </div>
332 332
           </div>
333 333
         </div>
334 334
         <div class="row">
335 335
           透析前症状
336 336
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
337
-            {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "" }}
337
+            {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }}
338 338
           </div>
339 339
           水肿
340 340
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
341
-            {{ predialysis.edema ? predialysis.edema : "" }}
341
+            {{ predialysis.edema ? predialysis.edema : "/" }}
342 342
           </div>
343 343
           出血
344 344
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:15px;">
@@ -349,7 +349,7 @@
349 349
           <div v-if="org_id!=10727" style="display: inline-block;width: 280px;">
350 350
             跌倒风险预防措施
351 351
             <div class="inline_block under_line" style="width:100px;text-align: center;">
352
-              {{ receiverTreatmentAccess.precaution ? receiverTreatmentAccess.precaution : '' }}
352
+              {{ receiverTreatmentAccess.precaution ? receiverTreatmentAccess.precaution : '/' }}
353 353
             </div>
354 354
           </div>
355 355
           
@@ -517,7 +517,7 @@
517 517
                       <td width="70" style="text-align:left;border:none;">
518 518
                         <div>
519 519
                           <span class="under_line" style="width:50px;display:inline-block;">
520
-                            {{ afterdialysis.temperature ? afterdialysis.temperature : "" }}
520
+                            {{ afterdialysis.temperature ? afterdialysis.temperature : "/" }}
521 521
                           </span>℃
522 522
                         </div>
523 523
                       </td>
@@ -526,8 +526,8 @@
526 526
                       <td width="150" style="text-align:left;border:none;line-height: 30px;">
527 527
                         <div>
528 528
                           <span class="under_line" style="width:100px;display:inline-block">
529
-                            {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "" }}/
530
-                            {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "" }}
529
+                            {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "/" }}/
530
+                            {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "/" }}
531 531
                           </span>mmHg
532 532
                         </div>
533 533
                       </td>
@@ -535,7 +535,7 @@
535 535
                       <td width="120" style="text-align:left;border:none;">
536 536
                         <div>
537 537
                           <span class="under_line" style="width:50px;display:inline-block">
538
-                            {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "" }}
538
+                            {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "/" }}
539 539
                           </span>次/分
540 540
                         </div>
541 541
                       </td>
@@ -559,7 +559,7 @@
559 559
                       <td width="120" style="text-align:left;border:none;">
560 560
                         <div>
561 561
                           <span class="under_line" style="width:100px;display:inline-block">
562
-                            {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "" }}
562
+                            {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "/" }}
563 563
                           </span>
564 564
                         </div>
565 565
                       </td>
@@ -568,7 +568,8 @@
568 568
                         <div>
569 569
                           <span class="under_line" style="width:120px;display:inline-block">
570 570
                             <span v-if='afterdialysis.is_eat == 1'>是</span>
571
-                            <span v-if='afterdialysis.is_eat == 2'>否</span>
571
+                            <span v-else-if='afterdialysis.is_eat == 2'>否</span>
572
+                            <span v-else>/</span>
572 573
                           </span>
573 574
                         </div>
574 575
                       </td>
@@ -626,7 +627,7 @@
626 627
                       <td width="400" colspan="3" style="text-align:left;border:none;">
627 628
                         <div>
628 629
                           <span class="under_line" style="width:300px;display:inline-block;">
629
-                            {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "" }}
630
+                            {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "/" }}
630 631
                           </span>
631 632
                         </div>
632 633
                       </td>
@@ -657,14 +658,14 @@
657 658
           <tr style="line-height:25px;text-align:left;border:none;">
658 659
             <td style="padding-left:5px;border:none">
659 660
                 <div style="padding-bottom:10px;">
660
-                  透析小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}
661
+                  透析小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "/" }}
661 662
                 </div>
662 663
             </td>
663 664
           </tr>
664 665
           <tr style="line-height:25px;text-align:left;border:none;">
665 666
             <td style="padding-left:5px;border:none">
666 667
                 <div style="padding-bottom:10px;">
667
-                  病情记录:{{ summary.special_record ? summary.special_record : "" }}
668
+                  病情记录:{{ summary.special_record ? summary.special_record : "/" }}
668 669
                 </div>
669 670
             </td>
670 671
           </tr>
@@ -1084,7 +1085,7 @@ export default {
1084 1085
     },
1085 1086
     getAdminUser (id) {
1086 1087
       if (id == 0) {
1087
-        return ''
1088
+        return '/'
1088 1089
       }
1089 1090
       if (id == undefined) {
1090 1091
         return ''
@@ -1173,7 +1174,7 @@ export default {
1173 1174
     },
1174 1175
     setAdminUserES (id) {
1175 1176
       if (id == 0) {
1176
-        return ''
1177
+        return '/'
1177 1178
       }
1178 1179
       if (id in this.operatorMaps) {
1179 1180
         return this.operatorMaps[id].url