yq1 преди 2 седмици
родител
ревизия
9b0d813843

+ 299 - 2
src/pages/main/template/DialysisPrintOrderSeventy.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 style="margin-left: 10px;" id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content" >
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>
@@ -1080,7 +1081,6 @@
1080 1081
         <!-- <div  class="print-yema">1</div> -->
1081 1082
       </div>
1082 1083
     </div>
1083
-
1084 1084
   </div>
1085 1085
 
1086 1086
 </template>
@@ -1091,7 +1091,7 @@ import { getDialysisRecord } from '@/api/dialysis'
1091 1091
 import { getDataConfig } from '@/utils/data'
1092 1092
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1093 1093
 import LabelBox from '../printItem/LabelBox'
1094
-
1094
+import {Toast,Dialog} from 'vant'
1095 1095
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1096 1096
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1097 1097
 import print from 'print-js'
@@ -1218,6 +1218,285 @@ export default {
1218 1218
     }
1219 1219
   },
1220 1220
   methods: {
1221
+    checkData() {
1222
+      var checkDate =[]
1223
+      if (this.predialysis.temperature == 0) {
1224
+        const obj = "透前体温"
1225
+        checkDate.push(obj)
1226
+      } if (this.predialysis.pulse_frequency == "") {
1227
+        const obj1 = "透前脉搏"
1228
+        checkDate.push(obj1)
1229
+      } if (this.predialysis.breathing_rate == "") {
1230
+         const obj2 = "透前呼吸频率"
1231
+         checkDate.push(obj2)
1232
+      } if (
1233
+        this.predialysis.systolic_blood_pressure == 0 ||
1234
+        this.predialysis.diastolic_blood_pressure == 0
1235
+      ) {
1236
+        const obj3 = "透前血压"
1237
+        checkDate.push(obj3)
1238
+      } if (
1239
+        this.predialysis.blood_access_part_id == "" &&
1240
+        this.predialysis.blood_access_part_opera_name == ""
1241
+      ) {
1242
+        const obj4 = "血管通路"
1243
+        checkDate.push(obj4)
1244
+      } if(this.predialysis.internal_fistula == "") {
1245
+        const obj5 = '透前内瘘'
1246
+        checkDate.push(obj5)
1247
+      } if (this.predialysis.catheter == "") {
1248
+        const obj6 = '透前导管'
1249
+        checkDate.push(obj6)
1250
+      } if (this.predialysis.puncture_way == "") {
1251
+        const obj7 = '穿刺方式'
1252
+        checkDate.push(obj7)
1253
+      } if (this.predialysis.puncture_needle == "") {
1254
+        const obj8 = '穿刺针'
1255
+        checkDate.push(obj8)
1256
+      } if(this.predialysis.puncture_needle_direction == ''){
1257
+        const obj9 = '穿刺方向'
1258
+        checkDate.push(obj9)
1259
+      } if (this.prescription.mode_id == 0) {
1260
+        const obj10 = '透析方式'
1261
+        checkDate.push(obj10);
1262
+      } if (
1263
+        this.prescription.displace_liqui_part == 0 &&
1264
+        this.prescription.mode_id == 2
1265
+      ) {
1266
+        const obj11 = '置换方式'
1267
+        checkDate.push(obj11);
1268
+      } if (
1269
+        this.prescription.displace_liqui_value == 0 &&
1270
+        this.prescription.mode_id == 2
1271
+      ) {
1272
+        const obj12 = '置换量'
1273
+        checkDate.push(obj12);
1274
+      } if (this.prescription.blood_flow_volume == 0) {
1275
+        const obj13 = '血流量'
1276
+        checkDate.push(obj13);
1277
+      } if (
1278
+        this.prescription.dialysis_duration_hour == 0 &&
1279
+        this.prescription.dialysis_duration_minute == 0
1280
+      ) {
1281
+        const obj14 = '透析时间'
1282
+        checkDate.push(obj14);
1283
+      } if (this.predialysis.symptom_before_dialysis == "") {
1284
+        const obj15 = '透前症状'
1285
+        checkDate.push(obj15);
1286
+      } if ( this.prescription.dialysis_dialyszers == "" ) {
1287
+        const obj16 = '透析(滤)器'
1288
+        checkDate.push(obj16);
1289
+      } if ( this.prescription.dialysis_irrigation == "" ) {
1290
+        const obj17 = '灌流器'
1291
+        checkDate.push(obj17);
1292
+      } if ( this.prescription.dialysis_strainer == "" ) {
1293
+        const obj18 = '滤过器'
1294
+        checkDate.push(obj18);
1295
+      } if(this.predialysis.dry_weight == 0) {
1296
+        const obj19 = '干体重'
1297
+        checkDate.push(obj19);
1298
+      } if(this.predialysis.additional_weight ==0){
1299
+        const obj20 = '衣物重'
1300
+        checkDate.push(obj20);
1301
+      } if(this.predialysis.weight_after_last_transparency ==''){
1302
+        const obj21 = '上次透后体重'
1303
+        checkDate.push(obj21);
1304
+      } if (this.predialysis.weight_before == 0) {
1305
+        const obj22 = '透前体重'
1306
+        checkDate.push(obj22);
1307
+      } if (this.prescription.calcium == 0) {
1308
+        const obj23 = '钙'
1309
+        checkDate.push(obj23);
1310
+      } if (this.prescription.sodium == 0) {
1311
+        const obj24 = '钠'
1312
+        checkDate.push(obj24);
1313
+      } if (this.prescription.kalium == 0) {
1314
+        const obj25 = '钾'
1315
+        checkDate.push(obj25);
1316
+      } if (this.prescription.bicarbonate == 0) {
1317
+        const obj26 = '碳酸氢根'
1318
+        checkDate.push(obj26);
1319
+      } if (this.prescription.dialysate_flow == 0) {
1320
+        const obj27 = '流量'
1321
+        checkDate.push(obj27);
1322
+      } if (this.prescription.anticoagulant == 0) {
1323
+        const obj28 = '抗凝剂'
1324
+        checkDate.push(obj28);
1325
+      } if (
1326
+        this.prescription.anticoagulant_gaimingcheng == "" &&
1327
+        this.prescription.anticoagulant == 5
1328
+      ) {
1329
+        const obj29 = '钙名称'
1330
+        checkDate.push(obj29);
1331
+      } if (
1332
+        this.prescription.anticoagulant_gaijiliang == "" &&
1333
+        this.prescription.anticoagulant == 5
1334
+      ) {
1335
+        const obj29 = '钙剂量'
1336
+        checkDate.push(obj29);
1337
+      }  if (this.prescription.anticoagulant_shouji == 0 &&
1338
+            this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1339
+      ) {
1340
+        const obj30 ='首剂'
1341
+        checkDate.push(obj30)
1342
+      } if (this.prescription.anticoagulant_zongliang == 0 && this.prescription.anticoagulant !=1
1343
+            && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
1344
+      ) {
1345
+        const obj31 ='总量'
1346
+        checkDate.push(obj31)
1347
+      } if (this.dialysisOrder.DeviceNumber.number == 0 &&
1348
+            this.patientInfo.DialysisSchedule.device_number.number ==''
1349
+      ) {
1350
+        const obj32 ='透析机号'
1351
+        checkDate.push(obj32)
1352
+      } if (this.afterdialysis.temperature == 0) {
1353
+        const obj33 ='透后体温'
1354
+        checkDate.push(obj33);
1355
+      } if (this.afterdialysis.pulse_frequency == 0) {
1356
+        const obj34 ='透后脉搏'
1357
+        checkDate.push(obj34);
1358
+      } if (this.afterdialysis.breathing_rate == 0) {
1359
+        const obj35 ='透后呼吸频率'
1360
+        checkDate.push(obj35);
1361
+      } if (
1362
+        this.afterdialysis.systolic_blood_pressure == 0 ||
1363
+        this.afterdialysis.diastolic_blood_pressure == 0
1364
+      ) {
1365
+        const obj36 ='透后血压'
1366
+        checkDate.push(obj36);
1367
+      } if (this.afterdialysis.symptom_after_dialysis == 0) {
1368
+        const obj37 ='透后症状'
1369
+        checkDate.push(obj37);
1370
+      } if (this.afterdialysis.cruor == "") {
1371
+        const obj38 ='凝血程度'
1372
+        checkDate.push(obj38);
1373
+      } if (this.afterdialysis.internal_fistula == "") {
1374
+        const obj39 ='透后内瘘'
1375
+        checkDate.push(obj39);
1376
+      } if (this.afterdialysis.catheter == "") {
1377
+        const obj34 ='透后导管'
1378
+        checkDate.push(obj34);
1379
+      } if (this.afterdialysis.ktv == "") {
1380
+        const obj35 ='KTV(在线)'
1381
+        checkDate.push(obj35);
1382
+      } if (this.afterdialysis.actual_treatment_hour == 0 &&
1383
+            this.afterdialysis.actual_treatment_minute == 0
1384
+      ){
1385
+        const obj36 ='实际治疗时间'
1386
+        checkDate.push(obj36);
1387
+      } if (this.afterdialysis.weight_after == 0) {
1388
+        const obj37 ='透后体重'
1389
+        checkDate.push(obj37);
1390
+      } if (this.afterdialysis.weight_loss == 0) {
1391
+        const obj38 ='透后体重减少'
1392
+        checkDate.push(obj38);
1393
+      } if (this.afterdialysis.dialysis_intakes == 0) {
1394
+        const obj39 ='透析中入量'
1395
+        checkDate.push(obj39);
1396
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1397
+        const obj40 ='实际超滤量'
1398
+        checkDate.push(obj40);
1399
+      } if (this.summary.dialysis_summary == "") {
1400
+        const obj41 ='治疗小结'
1401
+        checkDate.push(obj41);
1402
+      } if (
1403
+        this.dialysisOrder == null ||
1404
+        this.dialysisOrder.puncture_nurse == 0
1405
+      ) {
1406
+        const obj42 ='穿刺护士'
1407
+        checkDate.push(obj42);
1408
+      } if (
1409
+        this.dialysisOrder == null ||
1410
+        this.dialysisOrder.start_nurse == 0
1411
+      ) {
1412
+        const obj43 ='治疗护士'
1413
+        checkDate.push(obj43);
1414
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
1415
+        const obj44 ='核对人员'
1416
+        checkDate.push(obj44);
1417
+      } else if (
1418
+        this.dialysisOrder != null &&
1419
+        this.dialysisOrder.start_nurse == this.check.modifier &&
1420
+        this.check.creater == 0
1421
+      ) {
1422
+        const obj44 ='核对人员'
1423
+        checkDate.push(obj44);
1424
+      } else if (
1425
+        this.dialysisOrder != null &&
1426
+        this.dialysisOrder.start_nurse == this.check.creater &&
1427
+        this.check.modifier == 0
1428
+      ) {
1429
+        const obj44 ='核对人员'
1430
+        checkDate.push(obj44);
1431
+      } else if (
1432
+        this.dialysisOrder != null &&
1433
+        this.dialysisOrder.start_nurse != this.check.creater &&
1434
+        this.dialysisOrder.start_nurse != this.check.modifier &&
1435
+        this.check.creater == 0
1436
+      ) {
1437
+        const obj44 ='核对人员'
1438
+        checkDate.push(obj44);
1439
+      } if (
1440
+        this.dialysisOrder == null ||
1441
+        this.dialysisOrder.finish_nurse == 0
1442
+      ) {
1443
+        const obj45 ='下机护士'
1444
+        checkDate.push(obj45);
1445
+      } if (this.prescription.creater == 0) {
1446
+        const obj46 ='医生签名'
1447
+        checkDate.push(obj46);
1448
+      } if(this.doctor_advices.length > 0){
1449
+        this.doctor_advices.map((item) =>{
1450
+          if(item.id > 0 && (item.created_time || item.start_time)){
1451
+            if(item.execution_staff ==0 || item.advice_doctor ==0){
1452
+              const obj50 = '执行人员,医生签名'
1453
+              checkDate.push(obj50)
1454
+            }
1455
+          }
1456
+        })
1457
+      } if(this.monitors.length >0){
1458
+          for(let i in this.monitors){
1459
+            if(this.monitors[i].dialysate_temperature == 0){
1460
+              const obj51 = '监测第'+((i*1)+1)+'行透析液温度'
1461
+              checkDate.push(obj51)
1462
+            } if(this.monitors[i].pulse_frequency ==0){
1463
+              const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1464
+              checkDate.push(obj60)
1465
+            } if(this.monitors[i].breathing_rate ==0){
1466
+              const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1467
+              checkDate.push(obj61)
1468
+            } if(this.monitors[i].systolic_blood_pressure ==0 ||
1469
+                  this.monitors.diastolic_blood_pressure==0){
1470
+              const obj62 = '监测第'+((i*1)+1)+'行血压'
1471
+              checkDate.push(obj62)
1472
+            }
1473
+            if(this.monitors[i].blood_flow_volume ==0){
1474
+              const obj55 = '监测第'+((i*1)+1)+'行血流量'
1475
+              checkDate.push(obj55)
1476
+            } if(this.monitors[i].arterial_pressure ==0){
1477
+              const obj54 = '监测第'+((i*1)+1)+'动脉压'
1478
+              checkDate.push(obj54)
1479
+            }
1480
+            if(this.monitors[i].venous_pressure ==0 ){
1481
+              const obj56 = '监测第'+((i*1)+1)+'行静脉压'
1482
+              checkDate.push(obj56)
1483
+            } if(this.monitors[i].transmembrane_pressure ==0){
1484
+              const obj52 = '监测第'+((i*1)+1)+'行跨膜压'
1485
+              checkDate.push(obj52)
1486
+            } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1487
+              const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1488
+              checkDate.push(obj53)
1489
+            }
1490
+            if(this.monitors[i].sodium_concentration ==0 ){
1491
+              // this.monitors[i].temperature == 0
1492
+              const obj59 = '监测第'+((i*1)+1)+'行钠浓度'
1493
+              checkDate.push(obj59)
1494
+            }
1495
+
1496
+          }
1497
+      }
1498
+      this.getcheckData(checkDate)
1499
+    },
1221 1500
     getDisplaceLiquiPart: function (val) {
1222 1501
       let displace_liqui_part_name = '/'
1223 1502
       let displace_liqui_part = this.displaceLiquiPartOptions
@@ -1770,6 +2049,24 @@ export default {
1770 2049
           return 'ml'
1771 2050
           break
1772 2051
       }
2052
+    },
2053
+    getcheckData(val){
2054
+      if(val.length >0){
2055
+        let message = `记录单未填数据:\n${val.join("\n")}`;
2056
+        Dialog.confirm({
2057
+          allowHtml:true,
2058
+          message:message,
2059
+        }).then(() => {
2060
+
2061
+          })
2062
+          .catch(() => {
2063
+
2064
+          });
2065
+
2066
+        return message
2067
+      }else{
2068
+        this.$message.success('核对完成')
2069
+      }
1773 2070
     }
1774 2071
   },
1775 2072
   watch: {

+ 327 - 56
src/pages/main/template/DialysisPrintOrderSixtyeight.vue Целия файл

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box-1" style="margin-left: 10px;">
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" >
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>
@@ -98,7 +99,7 @@
98 99
         </div>
99 100
       </div>
100 101
 
101
-      <div class="row" :style=" this.totollength > 13?'margin-bottom:400px;':''">
102
+      <div class="row">
102 103
         <table class="proj_table" >
103 104
           <tbody>
104 105
             <tr><td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">透析前情况</td></tr>
@@ -438,10 +439,10 @@
438 439
                     透前称重:
439 440
                     <div class="under_line" style="width: 70px;text-align: center">
440 441
 
441
-                      <span v-if="org_id!=9675 && org_id != 10447">
442
+                      <span v-if="org_id!=9675 && org_id != 10447 && org_id !=10551">
442 443
                         {{predialysis.weight_before?predialysis.weight_before:'/'}}
443 444
                       </span>
444
-                      <span v-if="org_id==9675 || org_id == 10447">
445
+                      <span v-if="org_id==9675 || org_id == 10447 || org_id==10551">
445 446
                         {{predialysis.weight_before?predialysis.weight_before:'未称重'}}
446 447
                       </span>
447 448
                     </div>
@@ -915,7 +916,7 @@
915 916
         </table>
916 917
       </div>
917 918
 
918
-      <template v-if="this.totollength > 13">
919
+      <!-- <template v-if="this.totollength > 13">
919 920
         <div style="display:inline-block;width:100%;text-align:center;">
920 921
           <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">{{orgname}}</div>
921 922
           <div class="order-title" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;" >
@@ -946,7 +947,6 @@
946 947
                   <check-box  :checked="patientInfo_source_1 "></check-box>
947 948
               </div>
948 949
           </div>
949
-          <!-- 门特 -->
950 950
           <div class="inline_block">
951 951
             门特:
952 952
               <div class="under_line" style="width: 30px;text-align: center;">
@@ -1003,18 +1003,14 @@
1003 1003
               v-if="receiverTreatmentAccess.way == item.id"
1004 1004
               style="width: 180px;text-align: left"
1005 1005
             >{{item.name}}</div>
1006
-            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==0" style="width: 180px;text-align: left">  </div>-->
1007
-            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==1" style="width: 180px;text-align: left">步行 </div>-->
1008
-            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==2" style="width: 180px;text-align: left">扶行 </div>-->
1009
-            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==3" style="width: 180px;text-align: left">轮椅 </div>-->
1010
-            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==4" style="width: 180px;text-align: left">平车 </div>-->
1006
+           
1011 1007
           </div>
1012 1008
           <div class="inline_block" style="margin-left: 10px;">
1013 1009
             诊断:
1014 1010
             <div class="under_line" style="width: 180px;text-align: left">{{patientInfo.diagnose}}</div>
1015 1011
           </div>
1016 1012
         </div>
1017
-      </template>
1013
+      </template> -->
1018 1014
       <div class="row" style="margin-top:-11px;position: relative;" >
1019 1015
         <table class="proj_table">
1020 1016
           <tbody>
@@ -1065,11 +1061,7 @@
1065 1061
                       afterdialysis.actual_treatment_hour
1066 1062
                         ? afterdialysis.actual_treatment_hour
1067 1063
                         : "0"
1068
-                    }}小时{{
1069
-                      afterdialysis.actual_treatment_minute
1070
-                        ? afterdialysis.actual_treatment_minute
1071
-                        : "0"
1072
-                    }}分钟
1064
+                    }}
1073 1065
                   </div>
1074 1066
                   h
1075 1067
                   <div class="under_line" style="width: 20px;text-align: center">
@@ -1078,52 +1070,51 @@
1078 1070
                   min
1079 1071
                 </div>
1080 1072
               </div>
1081
-              <div  class="row"  style="padding: 2px 0;line-height:23px;display:flex;"  >
1082
-                  <div class="inline_block" style="flex:2;">
1083
-                    透析器凝血:
1084
-                    <div
1085
-                      class="under_line"
1086
-                      style="width:200px;text-align:center;"
1087
-                    >
1088
-                       {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
1089
-                    </div>
1073
+              <div class="row"  style="padding: 2px 0;line-height:23px;display:flex;"  >
1074
+                <div class="inline_block" style="flex:2;">
1075
+                  透析器凝血:
1076
+                  <div
1077
+                    class="under_line"
1078
+                    style="width:200px;text-align:center;"
1079
+                  >
1080
+                      {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
1090 1081
                   </div>
1091
-                  <div class="inline_block" style="flex:1;" v-if="org_id!=9675 && org_id!=10447">
1092
-                    内瘘:
1093
-                    <div
1094
-                      class="under_line"
1095
-                      style="width: 70px;text-align: center"
1096
-                    >
1097
-                      {{
1098
-                        afterdialysis.internal_fistula
1099
-                          ? afterdialysis.internal_fistula
1100
-                          : "/"
1101
-                      }}
1102
-                    </div>
1082
+                </div>
1083
+                <div class="inline_block" style="flex:1;" v-if="org_id!=9675 && org_id!=10447">
1084
+                  内瘘:
1085
+                  <div
1086
+                    class="under_line"
1087
+                    style="width: 70px;text-align: center"
1088
+                  >
1089
+                    {{
1090
+                      afterdialysis.internal_fistula
1091
+                        ? afterdialysis.internal_fistula
1092
+                        : "/"
1093
+                    }}
1103 1094
                   </div>
1104
-                  <div class="inline_block" style="flex:3;" v-if="org_id!=9675 && org_id!=10447">
1105
-                    导管:
1106
-                    <div
1107
-                      class="under_line"
1108
-                      style="min-width: 120px;text-align: center"
1109
-                    >
1110
-                      {{
1111
-                        afterdialysis.catheter ? afterdialysis.catheter : "/"
1112
-                      }}
1113
-                    </div>
1095
+                </div>
1096
+                <div class="inline_block" style="flex:3;" v-if="org_id!=9675 && org_id!=10447">
1097
+                  导管:
1098
+                  <div
1099
+                    class="under_line"
1100
+                    style="min-width: 120px;text-align: center"
1101
+                  >
1102
+                    {{
1103
+                      afterdialysis.catheter ? afterdialysis.catheter : "/"
1104
+                    }}
1114 1105
                   </div>
1115 1106
                 </div>
1107
+              </div>
1116 1108
 
1117 1109
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
1118
-
1119 1110
                 <div class="inline_block" style="flex:1;">
1120 1111
                   透后体重:
1121 1112
                   <div class="under_line" style="width: 50px;text-align: center">
1122 1113
 
1123
-                    <span v-if="org_id!=9675&&org_id!=9671">
1114
+                    <span v-if="org_id!=9675&&org_id!=9671 && org_id !=10551 && org_id !=0">
1124 1115
                       {{afterdialysis.weight_after?afterdialysis.weight_after:'/'}}
1125 1116
                     </span>
1126
-                    <span v-if="org_id ==9675||org_id==9671">
1117
+                    <span v-if="org_id ==9675||org_id==9671 || org_id==10551">
1127 1118
                       {{afterdialysis.weight_after?afterdialysis.weight_after:'未称重'}}
1128 1119
                     </span>
1129 1120
                   </div>kg
@@ -1132,7 +1123,11 @@
1132 1123
                 <div class="inline_block" style="flex:1;" v-if="org_id != 10677">
1133 1124
                   体重减少:
1134 1125
                   <div class="under_line" style="width: 50px;text-align: center">
1135
-                    {{afterdialysis.weight_loss?afterdialysis.weight_loss:'/'}}
1126
+                    <span v-if="predialysis.weight_before !=0 && afterdialysis.weight_after !=0">
1127
+                      {{(predialysis.weight_before - afterdialysis.weight_after).toFixed(2)}}
1128
+                    </span>
1129
+                    <span v-else> /</span>
1130
+                    <!-- {{afterdialysis.weight_loss?afterdialysis.weight_loss:'/'}} -->
1136 1131
                   </div>kg
1137 1132
                 </div>
1138 1133
 
@@ -1312,7 +1307,7 @@ import { getDialysisRecord } from '@/api/dialysis'
1312 1307
 import { getDataConfig } from '@/utils/data'
1313 1308
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1314 1309
 import LabelBox from '../printItem/LabelBox'
1315
-
1310
+import {Toast,Dialog} from 'vant'
1316 1311
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1317 1312
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1318 1313
 import print from 'print-js'
@@ -1440,6 +1435,264 @@ export default {
1440 1435
     }
1441 1436
   },
1442 1437
   methods: {
1438
+    checkData() {
1439
+      var checkDate =[]
1440
+      if (this.predialysis.temperature == 0) {
1441
+        const obj = "透前体温"
1442
+        checkDate.push(obj)
1443
+      } if (this.predialysis.pulse_frequency == "") {
1444
+        const obj1 = "透前脉搏"
1445
+        checkDate.push(obj1)
1446
+      } if (this.predialysis.breathing_rate == "") {
1447
+         const obj2 = "透前呼吸频率"
1448
+         checkDate.push(obj2)
1449
+      } if (
1450
+        this.predialysis.systolic_blood_pressure == 0 ||
1451
+        this.predialysis.diastolic_blood_pressure == 0
1452
+      ) {
1453
+        const obj3 = "透前血压"
1454
+        checkDate.push(obj3)
1455
+      } if(this.predialysis.puncture_way == ""){
1456
+        const obj4 = "穿刺方式"
1457
+        checkDate.push(obj4)
1458
+      } if(this.predialysis.puncture_needle == ""){
1459
+        const obj5 = "穿刺针"
1460
+        checkDate.push(obj5)
1461
+      } if (
1462
+        this.prescription.dialysis_duration_hour == 0 &&
1463
+        this.prescription.dialysis_duration_minute == 0
1464
+      ) {
1465
+        const obj6 = "透析时间"
1466
+        checkDate.push(obj6)
1467
+      } if(this.dialysisOrder && this.dialysisOrder.DeviceNumber.number ==''&&
1468
+          this.patientInfo.DialysisSchedule.device_number.number ==''
1469
+      ){
1470
+        const obj7 = "透析机号"
1471
+        checkDate.push(obj7)
1472
+      } if(this.predialysis.machine_type ==0){
1473
+        const obj8 = "透析机型"
1474
+        checkDate.push(obj8)
1475
+      } if( this.predialysis.blood_access_part_id == "" &&
1476
+        this.predialysis.blood_access_part_opera_name == ""){
1477
+          const obj9 = "血管通路"
1478
+        checkDate.push(obj9)
1479
+      } if(this.predialysis.internal_fistula == "" && this.predialysis.catheter == ""){
1480
+        const obj10 = "透前内瘘"
1481
+        checkDate.push(obj10)
1482
+      } if (this.predialysis.catheter == "" && this.predialysis.internal_fistula == "") {
1483
+        const obj11 = "透前导管"
1484
+        checkDate.push(obj11)
1485
+      } if (this.prescription.mode_id == 0) {
1486
+        const obj12 = "透析方式"
1487
+        checkDate.push(obj12)
1488
+      } if (this.prescription.displace_liqui_part == 0 &&
1489
+          this.prescription.mode_id == 2
1490
+      ){
1491
+        const obj13 = "置换方式"
1492
+        checkDate.push(obj13)
1493
+      } if(this.prescription.displace_liqui_value == 0 &&
1494
+          this.prescription.mode_id == 2
1495
+      ){
1496
+        const obj14 = "置换量"
1497
+        checkDate.push(obj14)
1498
+      } if(this.prescription.displace_speed == 0){
1499
+        const obj15 = "置换速度"
1500
+        checkDate.push(obj15)
1501
+      } if(this.dialysisOrder&& this.prescription.dialyzer_perfusion_apparatus =='' &&
1502
+          this.prescription.dialysis_dialyszers =='' && this.dialysisOrder.dialysis_dialyszers ==''
1503
+      ){
1504
+        const obj16 = "透析(滤)器"
1505
+        checkDate.push(obj16)
1506
+      } if(this.dialysisOrder && this.prescription.dialysis_irrigation =='' &&
1507
+            this.dialysisOrder.dialysis_irrigation ==''
1508
+      ){
1509
+        const obj17 = "灌流器"
1510
+        checkDate.push(obj17)
1511
+      } if(this.predialysis.symptom_before_dialysis ==''){
1512
+        const obj18 = "透前症状"
1513
+        checkDate.push(obj18)
1514
+      } if(this.lastafterdialysis.weight_after == ''){
1515
+        const obj19 = "上次透后体重"
1516
+        checkDate.push(obj19)
1517
+      } if(this.predialysis.weight_before == 0) {
1518
+        const obj20 = "透前体重"
1519
+        checkDate.push(obj20)
1520
+      } if(this.prescription.prescription_water == 0) {
1521
+        const obj21 = "处方脱水量"
1522
+        checkDate.push(obj21)
1523
+      } if(this.predialysis.dry_weight == 0) {
1524
+        const obj22 = "干体重"
1525
+        checkDate.push(obj22)
1526
+      } if (this.prescription.calcium == 0) {
1527
+        const obj25 = "钙"
1528
+        checkDate.push(obj25)
1529
+      } if (this.prescription.sodium == 0) {
1530
+        const obj26 = "钠"
1531
+        checkDate.push(obj26)
1532
+      } if (this.prescription.kalium == 0) {
1533
+        const obj27 = "钾"
1534
+        checkDate.push(obj27)
1535
+      } if (this.prescription.bicarbonate == 0) {
1536
+        const obj28 = "碳酸氢根"
1537
+        checkDate.push(obj28)
1538
+      } if (this.prescription.dialysate_flow == 0) {
1539
+        const obj29 = "流量"
1540
+        checkDate.push(obj29)
1541
+      } if(this.prescription.anticoagulant == 0) {
1542
+        const obj23 = "抗凝剂"
1543
+        checkDate.push(obj23)
1544
+      } if(this.prescription.anticoagulant_shouji == 0 && 
1545
+          this.prescription.anticoagulant != 5 && 
1546
+          this.prescription.anticoagulant != 1
1547
+      ) {
1548
+        const obj24 = "首剂"
1549
+        checkDate.push(obj24)
1550
+      } 
1551
+      // if(this.prescription.anticoagulant_weichi ==0 && 
1552
+      //       this.prescription.anticoagulant != 1
1553
+      // ){
1554
+      //   const obj30 ='维持'
1555
+      //   checkDate.push(obj30)
1556
+
1557
+      // } 
1558
+      if (
1559
+        this.prescription.anticoagulant_gaimingcheng == "" &&
1560
+        this.prescription.anticoagulant == 5
1561
+      ) {
1562
+        const obj31 ='钙名称'
1563
+        checkDate.push(obj31);
1564
+      } if (
1565
+        this.prescription.anticoagulant_gaijiliang == "" &&
1566
+        this.prescription.anticoagulant == 5
1567
+      ) {
1568
+        const obj32 ='钙剂量'
1569
+        checkDate.push(obj32);
1570
+      } if(this.prescription.anticoagulant_zongliang ==''&& 
1571
+          this.prescription.anticoagulant != 5 && 
1572
+          this.prescription.anticoagulant != 1
1573
+      ){
1574
+        const obj33 ='总量'
1575
+        checkDate.push(obj33);
1576
+      } if(this.prescription.warsh_count ==''){
1577
+        const obj34 ='Ns冲洗量'
1578
+        checkDate.push(obj34);
1579
+      } if(this.prescription.washing_time ==''){
1580
+        const obj35 ='q'
1581
+        checkDate.push(obj35);
1582
+      } if(this.predialysis.remark ==''){
1583
+        const obj35 ='备注'
1584
+        checkDate.push(obj35);
1585
+      } if (this.afterdialysis.temperature == 0) {
1586
+        const obj36 ='透后体温'
1587
+        checkDate.push(obj36);
1588
+      } if (this.afterdialysis.pulse_frequency == 0) {
1589
+        const obj37 ='透后脉搏'
1590
+        checkDate.push(obj37);
1591
+      } if (this.afterdialysis.breathing_rate == 0) {
1592
+        const obj38 ='透后呼吸频率'
1593
+        checkDate.push(obj38);
1594
+      } if (
1595
+        this.afterdialysis.systolic_blood_pressure == 0 ||
1596
+        this.afterdialysis.diastolic_blood_pressure == 0
1597
+      ) {
1598
+        const obj39 ='透后血压'
1599
+        checkDate.push(obj39);
1600
+      } if (
1601
+        this.afterdialysis.actual_treatment_hour == 0 &&
1602
+        this.afterdialysis.actual_treatment_minute == 0
1603
+      ) {
1604
+        const obj40 ='实际治疗时间'
1605
+        checkDate.push(obj40);
1606
+      } if (this.afterdialysis.cruor == "") {
1607
+        const obj41 ='透析器凝血'
1608
+        checkDate.push(obj41);
1609
+      } if (this.afterdialysis.internal_fistula == "" && this.afterdialysis.catheter == "") {
1610
+        const obj42 ='透后内瘘导管'
1611
+        checkDate.push(obj42);
1612
+      } 
1613
+      // if (this.afterdialysis.catheter == "") {
1614
+      //   const obj43 ='透后导管'
1615
+      //   checkDate.push(obj43);
1616
+      // } 
1617
+      if (this.afterdialysis.weight_after == 0) {
1618
+        const obj44 ='透后体重'
1619
+        checkDate.push(obj44);
1620
+      } if (this.afterdialysis.weight_loss == 0) {
1621
+        const obj45 ='透后体重减少'
1622
+        checkDate.push(obj45);
1623
+      } if (this.afterdialysis.dialysis_intakes == 0) {
1624
+        const obj46 ='透析中入量'
1625
+        checkDate.push(obj46);
1626
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1627
+        const obj47 ='实际超滤量'
1628
+        checkDate.push(obj47);
1629
+      } if(this.afterdialysis.stroke_volume == 0){
1630
+        const obj49 ='透析中出量'
1631
+        checkDate.push(obj49);
1632
+      } if (this.summary.dialysis_summary == "") {
1633
+        const obj50 ='透析小结'
1634
+        checkDate.push(obj50);
1635
+      } if (
1636
+        this.dialysisOrder == null ||
1637
+        this.dialysisOrder.puncture_nurse == 0
1638
+      ) {
1639
+        const obj51 ='穿刺护士'
1640
+        checkDate.push(obj51);
1641
+      } if (
1642
+        this.dialysisOrder == null ||
1643
+        this.dialysisOrder.start_nurse == 0
1644
+      ) {
1645
+        const obj52 ='治疗护士'
1646
+        checkDate.push(obj52);
1647
+      } if (this.dialysisOrder == null|| this.check.creater == 0) {
1648
+        const obj53 ='核对人员'
1649
+        checkDate.push(obj53);
1650
+      } else if (
1651
+        this.dialysisOrder != null &&
1652
+        this.dialysisOrder.start_nurse == this.check.modifier &&
1653
+        this.check.creater == 0
1654
+      ) {
1655
+        const obj53 ='核对人员'
1656
+        checkDate.push(obj53);
1657
+      } else if (
1658
+        this.dialysisOrder != null &&
1659
+        this.dialysisOrder.start_nurse == this.check.creater &&
1660
+        this.check.modifier == 0
1661
+      ) {
1662
+        const obj53 ='核对人员'
1663
+        checkDate.push(obj53);
1664
+      } if (
1665
+        this.dialysisOrder != null &&
1666
+        this.dialysisOrder.start_nurse != this.check.creater &&
1667
+        this.dialysisOrder.start_nurse != this.check.modifier &&
1668
+        this.check.creater == 0
1669
+      ) {
1670
+        const obj54 ='穿刺护士'
1671
+        checkDate.push(obj54);("核对人员未填");
1672
+      } if (
1673
+        this.dialysisOrder == null ||
1674
+        this.dialysisOrder.finish_nurse == 0
1675
+      ) {
1676
+        const obj55 ='下机护士'
1677
+        checkDate.push(obj55);
1678
+      } if (this.prescription.creater == 0) {
1679
+        const obj56 ='医生签名'
1680
+        checkDate.push(obj56);
1681
+      } if(this.dialysisOrder != null && this.dialysisOrder.url!=''){
1682
+        const obj57 ='患者签名'
1683
+        checkDate.push(obj57);
1684
+      } if(this.doctor_advices.length > 0){
1685
+        this.doctor_advices.map((item) =>{
1686
+          if(item.id > 0 && (item.created_time || item.start_time)){
1687
+            if(item.execution_staff ==0 || item.advice_doctor ==0 || item.checker ==0){
1688
+              const obj58 = '执行人员,医生签名,核对人员'
1689
+              checkDate.push(obj58)
1690
+            }
1691
+          }
1692
+        })
1693
+      } 
1694
+      this.getcheckData(checkDate)
1695
+    },
1443 1696
     getDisplaceLiquiPart: function (val) {
1444 1697
       let displace_liqui_part_name = '/'
1445 1698
       let displace_liqui_part = this.displaceLiquiPartOptions
@@ -1999,6 +2252,24 @@ export default {
1999 2252
           return 'ml'
2000 2253
           break
2001 2254
       }
2255
+    },
2256
+    getcheckData(val){
2257
+      if(val.length >0){
2258
+        let message = `记录单未填数据:\n${val.join("\n")}`;
2259
+        Dialog.confirm({
2260
+          allowHtml:true,
2261
+          message:message,
2262
+        }).then(() => {
2263
+
2264
+          })
2265
+          .catch(() => {
2266
+
2267
+          });
2268
+
2269
+        return message
2270
+      }else{
2271
+        this.$message.success('核对完成')
2272
+      }
2002 2273
     }
2003 2274
   },
2004 2275
   watch: {
@@ -2144,13 +2415,13 @@ export default {
2144 2415
   width: 50%;
2145 2416
 }
2146 2417
 
2147
-.under_line_two::before {
2418
+/* .under_line_two::before {
2148 2419
   content: "\00A0";
2149 2420
 }
2150 2421
 
2151 2422
 .under_line_two::after {
2152 2423
   content: "\00A0";
2153
-}
2424
+} */
2154 2425
 
2155 2426
 .under_line {
2156 2427
   display: inline-block;
@@ -2160,13 +2431,13 @@ export default {
2160 2431
   width: 50%;
2161 2432
 }
2162 2433
 
2163
-.under_line::before {
2434
+/* .under_line::before {
2164 2435
   content: "\00A0";
2165 2436
 }
2166 2437
 
2167 2438
 .under_line::after {
2168 2439
   content: "\00A0";
2169
-}
2440
+} */
2170 2441
 
2171 2442
 .flex {
2172 2443
   display: -webkit-box;

+ 10 - 10
src/pages/main/template/DialysisPrintOrdereightyone.vue Целия файл

@@ -367,7 +367,7 @@
367 367
                     <div class="inline_block" style="flex: 1">
368 368
                       透前体重:
369 369
                       <div class="under_line" style="width: 70px; text-align: center">
370
-                        <span>{{
370
+                        <span >{{
371 371
                             predialysis.weight_before
372 372
                               ? parseFloat(
373 373
                                   predialysis.weight_before -
@@ -1015,7 +1015,7 @@
1015 1015
                         }}</span
1016 1016
                       >
1017 1017
                       <img
1018
-                        style="height: 30px"
1018
+                        style="height: 40px"
1019 1019
                         :src="
1020 1020
                           setAdminUserES(
1021 1021
                             dialysisOrder == null
@@ -1052,7 +1052,7 @@
1052 1052
                         }}</span
1053 1053
                       >
1054 1054
                       <img
1055
-                        style="height: 30px"
1055
+                        style="height: 40px"
1056 1056
                         :src="
1057 1057
                           setAdminUserES(
1058 1058
                             dialysisOrder == null
@@ -1090,7 +1090,7 @@
1090 1090
                         }}</span
1091 1091
                       >
1092 1092
                       <img
1093
-                        style="height: 30px"
1093
+                        style="height: 40px"
1094 1094
                         :src="
1095 1095
                           setAdminUserES(
1096 1096
                             dialysisOrder == null
@@ -1108,26 +1108,26 @@
1108 1108
                     <span> 核对护士:</span>
1109 1109
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
1110 1110
                       <span style="height:30px;display: inline-block" v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
1111
-                      <img style="height:30px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1111
+                      <img style="height:40px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1112 1112
                     </div>
1113 1113
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
1114 1114
                       <span style="height:30px;display: inline-block" v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
1115
-                      <img style="height:30px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1115
+                      <img style="height:40px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1116 1116
                     </div>
1117 1117
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
1118 1118
                       <span style="height:30px;display: inline-block" v-if="setAdminUserES(check==null?0:check.modifier) == ''">{{getAdminUser(check==null?0:check.modifier)}}</span>
1119
-                      <img style="height:30px;" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
1119
+                      <img style="height:40px;" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
1120 1120
                     </div>
1121 1121
                     <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater&&dialysisOrder.start_nurse != check.modifier">
1122 1122
                       <span style="height:30px;display: inline-block" v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
1123
-                      <img style="height:30px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1123
+                      <img style="height:40px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
1124 1124
                     </div>
1125 1125
                   </div>
1126 1126
                   <div class="inline_block" style="flex:1;">
1127 1127
                     下机护士:
1128 1128
                     <div class="under_line" style="width: 80px;text-align: center">
1129 1129
                       <span style="height:30px;display: inline-block" v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
1130
-                      <img style="height:30px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
1130
+                      <img style="height:40px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
1131 1131
                     </div>
1132 1132
                   </div>
1133 1133
                   <div class="inline_block" style="flex: 1">
@@ -1140,7 +1140,7 @@
1140 1140
                       >
1141 1141
                         {{ getAdminUser(prescription.creater) }}
1142 1142
                       </span>
1143
-                      <img style="height: 30px"
1143
+                      <img style="height: 40px"
1144 1144
                         :src="setAdminUserES( prescription.creater)"
1145 1145
                         alt=""
1146 1146
                         srcset=""