|
@@ -1232,6 +1232,7 @@ import { getDataConfig } from "@/utils/data";
|
1232
|
1232
|
import { jsGetAge, uParseTime } from "@/utils/tools";
|
1233
|
1233
|
import LabelBox from "../printItem/LabelBox";
|
1234
|
1234
|
import { fetchAllAdminUsers } from "@/api/doctor";
|
|
1235
|
+import { Toast, Dialog } from 'vant'
|
1235
|
1236
|
// import BreadCrumb from 'bread-crumb'
|
1236
|
1237
|
// import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
|
1237
|
1238
|
// import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
|
|
@@ -1356,198 +1357,191 @@ export default {
|
1356
|
1357
|
precautions: [],
|
1357
|
1358
|
nursing_record: "",
|
1358
|
1359
|
special_record: "",
|
|
1360
|
+ anticoagulant:'',
|
1359
|
1361
|
};
|
1360
|
1362
|
},
|
1361
|
1363
|
methods: {
|
1362
|
1364
|
checkData() {
|
|
1365
|
+ var checkData = []
|
1363
|
1366
|
if (this.receiverTreatmentAccess.condition == 0) {
|
1364
|
|
- this.$message.error("门诊或住院未填");
|
1365
|
|
- } else if (
|
|
1367
|
+ const obj = '门诊或住院'
|
|
1368
|
+ checkData.push(obj)
|
|
1369
|
+ } if (
|
1366
|
1370
|
this.receiverTreatmentAccess.condition == 1 &&
|
1367
|
1371
|
this.receiverTreatmentAccess.admission_number == ""
|
1368
|
1372
|
) {
|
1369
|
|
- this.$message.error("住院号未填");
|
1370
|
|
- } else if (
|
|
1373
|
+ const obj1 = '住院号'
|
|
1374
|
+ checkData.push(obj1)
|
|
1375
|
+ } if (
|
1371
|
1376
|
this.receiverTreatmentAccess.condition == 2 &&
|
1372
|
1377
|
this.patientInfo.admission_number == ""
|
1373
|
1378
|
) {
|
1374
|
|
- this.$message.error("门诊号未填");
|
1375
|
|
- } else if (this.prescription.mode_id == "") {
|
1376
|
|
- this.$message.error("治疗方式未填");
|
1377
|
|
- } else if (this.predialysis.dry_weight == 0) {
|
1378
|
|
- this.$message.error("干体重未填");
|
1379
|
|
- } else if (this.prescription.conductivity == 0) {
|
1380
|
|
- this.$message.error("电导率未填");
|
1381
|
|
- } else if (this.prescription.calcium == 0) {
|
1382
|
|
- this.$message.error("钙未填");
|
1383
|
|
- } else if (this.prescription.dialysate_temperature == 0) {
|
1384
|
|
- this.$message.error("透析液温度未填");
|
1385
|
|
- } else if (this.predialysis.weight_before == 0) {
|
1386
|
|
- this.$message.error("透前体重未填");
|
1387
|
|
- } else if (this.prescription.target_ultrafiltration == 0) {
|
1388
|
|
- this.$message.error("设定脱水量未填");
|
1389
|
|
- } else if (this.prescription.anticoagulant == 0) {
|
1390
|
|
- this.$message.error("抗凝剂未填");
|
1391
|
|
- } else if (this.afterdialysis.weight_after == 0) {
|
1392
|
|
- this.$message.error("透后体重未填");
|
1393
|
|
- } else if (this.afterdialysis.actual_ultrafiltration == 0) {
|
1394
|
|
- this.$message.error("实际脱水量未填");
|
1395
|
|
- } else if (
|
|
1379
|
+ const obj2 = '门诊号'
|
|
1380
|
+ checkData.push(obj2)
|
|
1381
|
+ } if (this.prescription.mode_id == "") {
|
|
1382
|
+ const obj3 = '治疗方式'
|
|
1383
|
+ checkData.push(obj3)
|
|
1384
|
+ } if (this.predialysis.dry_weight == 0) {
|
|
1385
|
+ const obj4 = '干体重'
|
|
1386
|
+ checkData.push(obj4)
|
|
1387
|
+ } if (this.prescription.conductivity == 0) {
|
|
1388
|
+ const obj5 = '电导率'
|
|
1389
|
+ checkData.push(obj5)
|
|
1390
|
+ } if (this.prescription.calcium == 0) {
|
|
1391
|
+ const obj6 = '钙'
|
|
1392
|
+ checkData.push(obj6)
|
|
1393
|
+ } if (this.prescription.dialysate_temperature == 0) {
|
|
1394
|
+ const obj7 = '透析液温度'
|
|
1395
|
+ checkData.push(obj7)
|
|
1396
|
+ } if (this.predialysis.weight_before == 0) {
|
|
1397
|
+ const obj8 = '透前体重'
|
|
1398
|
+ checkData.push(obj8)
|
|
1399
|
+ } if (this.prescription.target_ultrafiltration == 0) {
|
|
1400
|
+ const obj9 = '设定脱水量'
|
|
1401
|
+ checkData.push(obj9)
|
|
1402
|
+ } if (this.prescription.anticoagulant == 0) {
|
|
1403
|
+ const obj10 = '抗凝剂'
|
|
1404
|
+ checkData.push(obj10)
|
|
1405
|
+ } if (this.afterdialysis.weight_after == 0) {
|
|
1406
|
+ const obj11 = '透后体重'
|
|
1407
|
+ checkData.push(obj11)
|
|
1408
|
+ } if (this.afterdialysis.actual_ultrafiltration == 0) {
|
|
1409
|
+ const obj12 = '实际脱水量'
|
|
1410
|
+ checkData.push(obj12)
|
|
1411
|
+ } if (
|
1396
|
1412
|
this.prescription.dialysis_duration_hour == 0 &&
|
1397
|
1413
|
this.prescription.dialysis_duration_minute == 0
|
1398
|
1414
|
) {
|
1399
|
|
- this.$message.error("透析时间未填");
|
1400
|
|
- } else if (this.prescription.dialyzer_perfusion_apparatus == "") {
|
1401
|
|
- this.$message.error("透析器型号未填");
|
1402
|
|
- } else if (
|
|
1415
|
+ const obj13 = '透析时间'
|
|
1416
|
+ checkData.push(obj13)
|
|
1417
|
+ } if (this.prescription.dialyzer_perfusion_apparatus == "") {
|
|
1418
|
+ const obj14 = '透析器型号'
|
|
1419
|
+ checkData.push(obj14)
|
|
1420
|
+ } if (
|
1403
|
1421
|
this.prescription.displace_liqui_part == 0 &&
|
1404
|
1422
|
(this.prescription.mode_id == 2 ||
|
1405
|
1423
|
this.prescription.mode_id == 5 ||
|
1406
|
1424
|
this.prescription.mode_id == 12)
|
1407
|
1425
|
) {
|
1408
|
|
- this.$message.error("置换方式未填");
|
1409
|
|
- } else if (
|
|
1426
|
+ const obj15 = '置换方式'
|
|
1427
|
+ checkData.push(obj15)
|
|
1428
|
+ } if (
|
1410
|
1429
|
this.prescription.displace_liqui_value == 0 &&
|
1411
|
1430
|
(this.prescription.mode_id == 2 ||
|
1412
|
1431
|
this.prescription.mode_id == 5 ||
|
1413
|
1432
|
this.prescription.mode_id == 12)
|
1414
|
1433
|
) {
|
1415
|
|
- this.$message.error("置换量未填");
|
1416
|
|
- } else if (this.orderForm.start_nurse == "") {
|
1417
|
|
- this.$message.error("责任护士未填");
|
1418
|
|
- } else if (this.orderForm.start_nurse == "") {
|
1419
|
|
- this.$message.error("上机护士未填");
|
1420
|
|
- } else if (this.orderForm.start_nurse == "") {
|
1421
|
|
- this.$message.error("抗凝剂执行护士未填");
|
1422
|
|
- } else if (
|
1423
|
|
- this.prescription.prescription_doctor == 0 &&
|
1424
|
|
- this.prescription.creater == 0
|
1425
|
|
- ) {
|
1426
|
|
- this.$message.error("医生签名未填");
|
1427
|
|
- } else if (this.receiverTreatmentAccess.way == 0) {
|
1428
|
|
- this.$message.error("入科方式未填");
|
1429
|
|
- } else if (this.receiverTreatmentAccess.consciousness == 0) {
|
1430
|
|
- this.$message.error("意识未填");
|
1431
|
|
- } else if (this.receiverTreatmentAccess.appetite == 0) {
|
1432
|
|
- this.$message.error("食欲未填");
|
1433
|
|
- } else if (this.predialysis.temperature == 0) {
|
1434
|
|
- this.$message.error("透前体温未填");
|
1435
|
|
- } else if (this.receiverTreatmentAccess.posture == 0) {
|
1436
|
|
- this.$message.error("体位未填");
|
1437
|
|
- } else if (this.predialysis.blood_access_part_opera_name == "") {
|
1438
|
|
- this.$message.error("内瘘波动及震颤未填");
|
1439
|
|
- } else if (this.predialysis.blood_access_part_id == 0) {
|
1440
|
|
- this.$message.error("中心静脉导管部位未填");
|
1441
|
|
- } else if (this.predialysis.venous_catheterization == 0) {
|
1442
|
|
- this.$message.error("中心静脉导管未填");
|
1443
|
|
- } else if (this.predialysis.catheter == "") {
|
1444
|
|
- this.$message.error("中心静脉导管感染未填");
|
1445
|
|
- } else if (this.predialysis.internal_fistula_skin == "") {
|
1446
|
|
- this.$message.error("血管通路皮肤情况未填");
|
1447
|
|
- } else if (this.predialysis.skin == "") {
|
1448
|
|
- this.$message.error("皮肤未填");
|
1449
|
|
- } else if (this.predialysis.is_hemorrhage == 0) {
|
1450
|
|
- this.$message.error("是否出血未填");
|
1451
|
|
- } else if (
|
|
1434
|
+ const obj15 = '置换量'
|
|
1435
|
+ checkData.push(obj15)
|
|
1436
|
+ } if (this.receiverTreatmentAccess.way == 0) {
|
|
1437
|
+ const obj16 = '入科方式'
|
|
1438
|
+ checkData.push(obj16)
|
|
1439
|
+ } if (this.receiverTreatmentAccess.consciousness == 0) {
|
|
1440
|
+ const obj17 = '意识'
|
|
1441
|
+ checkData.push(obj17)
|
|
1442
|
+ } if (this.receiverTreatmentAccess.appetite == 0) {
|
|
1443
|
+ const obj18 = '食欲'
|
|
1444
|
+ checkData.push(obj18)
|
|
1445
|
+ } if (this.predialysis.temperature == 0) {
|
|
1446
|
+ const obj19 = '透前体温'
|
|
1447
|
+ checkData.push(obj19)
|
|
1448
|
+ } if (this.receiverTreatmentAccess.posture == 0) {
|
|
1449
|
+ const obj20 = '体位'
|
|
1450
|
+ checkData.push(obj20)
|
|
1451
|
+ } if(this.predialysis.blood_access_part_opera_name==0){
|
|
1452
|
+ const obj21 = '血管通路'
|
|
1453
|
+ checkData.push(obj21)
|
|
1454
|
+ } if(this.predialysis.blood_access_part_id==0){
|
|
1455
|
+ const obj22 = '血管通路部位'
|
|
1456
|
+ checkData.push(obj22)
|
|
1457
|
+ } if (this.predialysis.venous_catheterization == 0) {
|
|
1458
|
+ const obj23 = '中心静脉导管'
|
|
1459
|
+ checkData.push(obj23)
|
|
1460
|
+ } if (this.predialysis.internal_fistula_skin == "") {
|
|
1461
|
+ const obj24 = '血管通路皮肤情况'
|
|
1462
|
+ checkData.push(obj24)
|
|
1463
|
+ } if (this.predialysis.skin == "") {
|
|
1464
|
+ const obj25 = '皮肤'
|
|
1465
|
+ checkData.push(obj25)
|
|
1466
|
+ } if (
|
1452
|
1467
|
this.predialysis.is_hemorrhage == 1 &&
|
1453
|
1468
|
this.predialysis.hemorrhage == ""
|
1454
|
1469
|
) {
|
1455
|
|
- this.$message.error("出血影响因素未填");
|
1456
|
|
- } else if (this.predialysis.special_medicine_other == "") {
|
1457
|
|
- this.$message.error("使用特殊药物未填");
|
1458
|
|
- } else if (this.receiverTreatmentAccess.danger_level == 0) {
|
1459
|
|
- this.$message.error("跌倒风险未填");
|
1460
|
|
- } else if (this.receiverTreatmentAccess.precaution == "") {
|
1461
|
|
- this.$message.error("跌倒风险预防措施未填");
|
1462
|
|
- } else if (this.nursing_record == "") {
|
1463
|
|
- this.$message.error("透析护理记录未填");
|
1464
|
|
- } else if (this.afterdialysis.dialysis_process == 0) {
|
1465
|
|
- this.$message.error("透析过程未填");
|
1466
|
|
- } else if (this.afterdialysis.complication == "") {
|
1467
|
|
- this.$message.error("透后并发症未填");
|
1468
|
|
- } else if (this.afterdialysis.actual_displacement == 0) {
|
1469
|
|
- this.$message.error("实际置换量未填");
|
1470
|
|
- } else if (this.afterdialysis.internal_fistula == "") {
|
1471
|
|
- this.$message.error("内瘘搏动及震颤音未填");
|
1472
|
|
- } else if (this.afterdialysis.cruor == "") {
|
1473
|
|
- this.$message.error("透析器及管路凝血情况未填");
|
1474
|
|
- } else if (this.afterdialysis.is_eat == 0) {
|
1475
|
|
- this.$message.error("透析中进食未填");
|
1476
|
|
- } else if (this.afterdialysis.patient_gose == 0) {
|
1477
|
|
- this.$message.error("患者去向未填");
|
1478
|
|
- } else if (this.finshForm.finish_nurse == "") {
|
1479
|
|
- this.$message.error("下机护士未填");
|
1480
|
|
- } else if (this.special_record == "") {
|
1481
|
|
- this.$message.error("特殊记录未填");
|
1482
|
|
- } else if (this.tableAdvice.length > 0 || this.monitors.length > 0) {
|
1483
|
|
- let num = 0;
|
1484
|
|
- if (this.monitors.length > 0) {
|
1485
|
|
- this.monitors.map((item) => {
|
1486
|
|
- if (item.id > 0 && item.operate_time) {
|
1487
|
|
- this.users.map((it) => {
|
1488
|
|
- if (it.id == item.monitoring_nurse) {
|
1489
|
|
- if (it.user_type == 2) {
|
1490
|
|
- num++;
|
1491
|
|
- this.$message.closeAll();
|
1492
|
|
- this.$message.error("存在不是护士保存的监测");
|
1493
|
|
- }
|
1494
|
|
- }
|
1495
|
|
- });
|
1496
|
|
- }
|
1497
|
|
- });
|
1498
|
|
- }
|
1499
|
|
- if (this.tableAdvice.length > 0) {
|
1500
|
|
- this.tableAdvice.map((item) => {
|
1501
|
|
- if (item.id > 0 && (item.created_time || item.start_time)) {
|
1502
|
|
- this.users.map((it) => {
|
1503
|
|
- if (it.id == item.advice_doctor) {
|
1504
|
|
- if (it.user_type == 3) {
|
1505
|
|
- num++;
|
1506
|
|
- this.$message.closeAll();
|
1507
|
|
- this.$message.error("存在不是医生保存的医嘱");
|
1508
|
|
- } else if (
|
1509
|
|
- it.id == item.execution_staff &&
|
1510
|
|
- item.execution_staff > 0
|
1511
|
|
- ) {
|
1512
|
|
- if (it.user_type == 2) {
|
1513
|
|
- num++;
|
1514
|
|
- this.$message.closeAll();
|
1515
|
|
- this.$message.error("存在不是护士执行的医嘱");
|
1516
|
|
- }
|
1517
|
|
- } else if (it.id == item.checker && item.checker > 0) {
|
1518
|
|
- if (it.user_type == 2) {
|
1519
|
|
- num++;
|
1520
|
|
- this.$message.closeAll();
|
1521
|
|
- this.$message.error("存在不是护士核对的医嘱");
|
1522
|
|
- }
|
1523
|
|
- }
|
1524
|
|
- } else if (
|
1525
|
|
- it.id == item.execution_staff &&
|
1526
|
|
- item.execution_staff > 0
|
1527
|
|
- ) {
|
1528
|
|
- if (it.user_type == 2) {
|
1529
|
|
- num++;
|
1530
|
|
- this.$message.closeAll();
|
1531
|
|
- this.$message.error("存在不是护士执行的医嘱");
|
1532
|
|
- }
|
1533
|
|
- } else if (it.id == item.checker && item.checker > 0) {
|
1534
|
|
- if (it.user_type == 2) {
|
1535
|
|
- num++;
|
1536
|
|
- this.$message.closeAll();
|
1537
|
|
- this.$message.error("存在不是护士核对的医嘱");
|
1538
|
|
- }
|
1539
|
|
- }
|
1540
|
|
- });
|
1541
|
|
- }
|
1542
|
|
- });
|
1543
|
|
- }
|
1544
|
|
-
|
1545
|
|
- if (num == 0) {
|
1546
|
|
- this.$message.success("核对完成");
|
|
1470
|
+ const obj26 = '出血影响因素'
|
|
1471
|
+ checkData.push(obj26)
|
|
1472
|
+ } if (this.predialysis.special_medicine_other == "") {
|
|
1473
|
+ const obj27 = '使用特殊药物'
|
|
1474
|
+ checkData.push(obj27)
|
|
1475
|
+ } if (this.receiverTreatmentAccess.danger_level == 0) {
|
|
1476
|
+ const obj28 = '跌倒风险'
|
|
1477
|
+ checkData.push(obj28)
|
|
1478
|
+ } if (this.receiverTreatmentAccess.precaution == "") {
|
|
1479
|
+ const obj29 = '跌倒风险预防措施'
|
|
1480
|
+ checkData.push(obj29)
|
|
1481
|
+ } if (this.afterdialysis.dialysis_process == 0) {
|
|
1482
|
+ const obj30 = '透析过程'
|
|
1483
|
+ checkData.push(obj30)
|
|
1484
|
+ } if(this.dialysis_summary==''){
|
|
1485
|
+ const obj31 = '透后小结'
|
|
1486
|
+ checkData.push(obj31)
|
|
1487
|
+ } if (this.special_record == "") {
|
|
1488
|
+ const obj32 = '特殊记录'
|
|
1489
|
+ checkData.push(obj32)
|
|
1490
|
+ } if (this.finshForm.finish_nurse == "") {
|
|
1491
|
+ const obj32 = '下机护士'
|
|
1492
|
+ checkData.push(obj32)
|
|
1493
|
+ } if (this.dialysisorder== null ||this.dialysisorder.start_nurse == "") {
|
|
1494
|
+ const obj33 = '责任护士'
|
|
1495
|
+ checkData.push(obj33)
|
|
1496
|
+ } if (
|
|
1497
|
+ this.prescription.prescription_doctor == 0 &&
|
|
1498
|
+ this.prescription.creater == 0
|
|
1499
|
+ ) {
|
|
1500
|
+ const obj33 = '医生签名'
|
|
1501
|
+ checkData.push(obj33)
|
|
1502
|
+ } if(this.tableAdvice.length!=0){
|
|
1503
|
+ this.tableAdvice.map((item) => {
|
|
1504
|
+ if (item.execution_staff == 0 &&item.advice_doctor==0) {
|
|
1505
|
+ const obj40 = '医生签名,医嘱执行护士签名'
|
|
1506
|
+ checkData.push(obj40)
|
|
1507
|
+ }
|
|
1508
|
+ })
|
|
1509
|
+ } if(this.monitors.length!=0){
|
|
1510
|
+ for(let i in this.monitors){
|
|
1511
|
+ if(this.monitors[i].temperature==0){
|
|
1512
|
+ const obj41 = '监测第' + ((i * 1) + 1) + '行体温'
|
|
1513
|
+ checkData.push(obj41)
|
|
1514
|
+ }if(this.monitors[i].blood_flow_volume ==''){
|
|
1515
|
+ const obj42 = '监测第' + ((i * 1) + 1) + '行血流量'
|
|
1516
|
+ checkData.push(obj42)
|
|
1517
|
+ }if (this.monitors[i].venous_pressure ==''){
|
|
1518
|
+ const obj43 = '监测第' + ((i * 1) + 1) + '行静脉压'
|
|
1519
|
+ checkData.push(obj43)
|
|
1520
|
+ }if(this.monitors[i].transmembrane_pressure ==''){
|
|
1521
|
+ const obj44 = '监测第' + ((i * 1) + 1) + '行跨膜压'
|
|
1522
|
+ checkData.push(obj44)
|
|
1523
|
+ }if(this.monitors[i].ultrafiltration_volume ==''){
|
|
1524
|
+ const obj45 = '监测第' + ((i * 1) + 1) + '行超滤量'
|
|
1525
|
+ checkData.push(obj45)
|
|
1526
|
+ }if((this.prescription.mode_id == 2 ||
|
|
1527
|
+ this.prescription.mode_id == 5 ||
|
|
1528
|
+ this.prescription.mode_id == 12) &&
|
|
1529
|
+ this.monitors[i].displacement_quantity == ''
|
|
1530
|
+ ){
|
|
1531
|
+ const obj46 = '监测第' + ((i * 1) + 1) + '行置换量'
|
|
1532
|
+ checkData.push(obj46)
|
|
1533
|
+ }if(this.monitors[i].systolic_blood_pressure=='' &&
|
|
1534
|
+ this.monitors[i].diastolic_blood_pressure==''
|
|
1535
|
+ ){
|
|
1536
|
+ const obj47 = '监测第' + ((i * 1) + 1) + '行血压'
|
|
1537
|
+ checkData.push(obj47)
|
|
1538
|
+ } if(this.monitors[i].pulse_frequency==''){
|
|
1539
|
+ const obj48 = '监测第' + ((i * 1) + 1) + '行脉搏'
|
|
1540
|
+ checkData.push(obj48)
|
|
1541
|
+ }
|
1547
|
1542
|
}
|
1548
|
|
- } else {
|
1549
|
|
- this.$message.success("核对完成");
|
1550
|
1543
|
}
|
|
1544
|
+ this.getcheckData(checkData)
|
1551
|
1545
|
},
|
1552
|
1546
|
getUser() {
|
1553
|
1547
|
fetchAllAdminUsers().then((response) => {
|
|
@@ -2041,6 +2035,23 @@ export default {
|
2041
|
2035
|
}
|
2042
|
2036
|
);
|
2043
|
2037
|
},
|
|
2038
|
+ getcheckData(val) {
|
|
2039
|
+ if (val.length > 0) {
|
|
2040
|
+ let message = `记录单未填数据:\n${val.join("\n")}`;
|
|
2041
|
+ Dialog.confirm({
|
|
2042
|
+ allowHtml: true,
|
|
2043
|
+ message: message,
|
|
2044
|
+ }).then(() => {
|
|
2045
|
+
|
|
2046
|
+ })
|
|
2047
|
+ .catch(() => {
|
|
2048
|
+
|
|
2049
|
+ });
|
|
2050
|
+ return message
|
|
2051
|
+ } else {
|
|
2052
|
+ this.$message.success('核对完成')
|
|
2053
|
+ }
|
|
2054
|
+ }
|
2044
|
2055
|
},
|
2045
|
2056
|
watch: {
|
2046
|
2057
|
"patientInfo.gender": function () {
|