Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 4 months ago
parent
commit
cd4880c818
25 changed files with 1875 additions and 623 deletions
  1. 62 0
      src/api/patient.js
  2. 3 3
      src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue
  3. 56 56
      src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue
  4. 5 5
      src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue
  5. 4 5
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive.vue
  6. 22 15
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue
  7. 51 4
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  8. 55 2
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  9. 5 2
      src/xt_pages/dialysis/details/index.vue
  10. 5 5
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  11. 246 174
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue
  12. 22 23
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue
  13. 287 189
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue
  14. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  15. 3 3
      src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue
  16. 30 31
      src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue
  17. 4 4
      src/xt_pages/stock/detail/print.vue
  18. 143 33
      src/xt_pages/user/Informed/Informedconsent.vue
  19. 268 0
      src/xt_pages/user/Informed/components/Death_informed.vue
  20. 342 0
      src/xt_pages/user/Informed/components/hemodialysis.vue
  21. 4 4
      src/xt_pages/user/components/PatientSidebar.vue
  22. 238 47
      src/xt_pages/user/courseOfDisease_new.vue
  23. 3 1
      src/xt_pages/user/deathSummary.vue
  24. 3 3
      src/xt_pages/user/templateSummaryPrint.vue
  25. 13 13
      src/xt_permission.js

+ 62 - 0
src/api/patient.js View File

@@ -1315,3 +1315,65 @@ export function deleteNewCouseOfDisease(id,params){
1315 1315
   })
1316 1316
 }
1317 1317
 
1318
+
1319
+export function savePatientDeathRecord(data){
1320
+   
1321
+  return request({
1322
+    url:"/api/patient/savepatientdeathrecord",
1323
+    method:"post",
1324
+    data:data,
1325
+  })
1326
+}
1327
+
1328
+export function getPatientDeathRecord(params){
1329
+
1330
+  return request({
1331
+    url:"/api/patient/getpatientdeathrecord",
1332
+    method:"Get",
1333
+    params:params
1334
+  })
1335
+}
1336
+
1337
+export function saveCoureseTemplateTitle(data){
1338
+ 
1339
+  return request({
1340
+   url:"/api/patient/savecouresetemplatetitle",
1341
+   method:"post",
1342
+   data:data,
1343
+  })
1344
+}
1345
+
1346
+export function getPatientCoureOfTempalate(params){
1347
+  return request({
1348
+    url:"/api/patient/getpatientcourseoftemplate",
1349
+    method:"Get",
1350
+    params:params,
1351
+  })
1352
+}
1353
+
1354
+export function saveCourseOfNewTemplate(data){
1355
+
1356
+  return request({
1357
+    url:"/api/patient/savecourseofnewtemplate",
1358
+    method:"post",
1359
+    data:data
1360
+  })
1361
+}
1362
+
1363
+export function deleteCourseTempalte(id,params){
1364
+ 
1365
+  return request({
1366
+    url:"/api/patient/deletecourestempalte?id="+id,
1367
+    method:"Get",
1368
+    params:params
1369
+  })
1370
+}
1371
+
1372
+export function getAutoPatientContent(params){
1373
+  
1374
+  return request({
1375
+    url:"/api/patient/getautopatientcontent",
1376
+    method:"get",
1377
+    params:params
1378
+  })
1379
+}

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue View File

@@ -1162,19 +1162,19 @@
1162 1162
                         <div class="under_line"
1163 1163
                           style="width: 70px; text-align: center"
1164 1164
                         >
1165
-                          <span>
1165
+                          <span v-if="predialysis.weight_before !=0 && afterdialysis.weight_after !=0">
1166 1166
                            {{ record.assessment_after_dislysis &&
1167 1167
                             record.assessment_after_dislysis.weight_loss
1168 1168
                               ? record.assessment_after_dislysis.weight_loss
1169 1169
                               : ""}}
1170 1170
                           </span>
1171
-
1171
+                          
1172 1172
                         </div>
1173 1173
                         kg
1174 1174
                       </div>
1175 1175
 
1176 1176
                       <div class="inline_block" style="flex: 1">
1177
-                        <span>透析中入量(L):</span>
1177
+                        <span>透析中入量(g):</span>
1178 1178
                         <div class="under_line"
1179 1179
                           style="width: 70px; text-align: center"
1180 1180
                         >

+ 56 - 56
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue View File

@@ -111,7 +111,7 @@
111 111
             </div>
112 112
           </div>
113 113
 
114
-          <div class="row">
114
+          <div class="row" style="width: 99%;">
115 115
             <table class="proj_table">
116 116
               <tbody>
117 117
                 <tr>
@@ -225,7 +225,7 @@
225 225
                       <div class="inline_block" style="flex: 1.5;">
226 226
                         穿刺方式:
227 227
                         <div class="under_line" style="width: 66%;white-space: normal;">
228
-                          {{record.assessment_before_dislysis.puncture_way ? 
228
+                          {{record.assessment_before_dislysis.puncture_way ?
229 229
                             record.assessment_before_dislysis.puncture_way : '/'}}
230 230
                         </div>
231 231
                       </div>
@@ -235,9 +235,9 @@
235 235
                         血管通路:
236 236
                         <div class="under_line" style="width: 68%;white-space: normal;">
237 237
                           {{ record.assessment_before_dislysis.blood_access_part_id
238
-                              ? record.assessment_before_dislysis.blood_access_part_id:  "" 
238
+                              ? record.assessment_before_dislysis.blood_access_part_id:  ""
239 239
                           }}
240
-                          {{ 
240
+                          {{
241 241
                             bloodAccessParOperaName(record.assessment_before_dislysis.blood_access_part_opera_id)
242 242
                           }}
243 243
                         </div>
@@ -245,19 +245,19 @@
245 245
                       <div class="inline_block" style="flex: 1;">
246 246
                         内瘘:
247 247
                         <div class="under_line" style="width: 68%;white-space: normal;">
248
-                          {{ record.assessment_before_dislysis.internal_fistula ? 
249
-                            record.assessment_before_dislysis.internal_fistula : '/' 
248
+                          {{ record.assessment_before_dislysis.internal_fistula ?
249
+                            record.assessment_before_dislysis.internal_fistula : '/'
250 250
                           }}
251 251
                         </div>
252 252
                       </div>
253
-                      
253
+
254 254
                       <div class="inline_block" style="flex: 1">
255 255
                         导管:
256 256
                         <div class="under_line"
257 257
                           style="width: 60%; text-align: center;white-space: normal;"
258 258
                         >
259
-                          {{ record.assessment_before_dislysis.catheter ? 
260
-                            record.assessment_before_dislysis.catheter : "/" 
259
+                          {{ record.assessment_before_dislysis.catheter ?
260
+                            record.assessment_before_dislysis.catheter : "/"
261 261
                           }}
262 262
                         </div>
263 263
                       </div>
@@ -267,8 +267,8 @@
267 267
                         <div class="under_line"
268 268
                           style="width: 60%; text-align: center;white-space: normal;"
269 269
                         >
270
-                          {{ record.assessment_before_dislysis.puncture_needle ? 
271
-                            record.assessment_before_dislysis.puncture_needle : "/" 
270
+                          {{ record.assessment_before_dislysis.puncture_needle ?
271
+                            record.assessment_before_dislysis.puncture_needle : "/"
272 272
                           }}
273 273
                         </div>
274 274
                       </div>
@@ -298,7 +298,7 @@
298 298
                         <div class="under_line"
299 299
                           style="width: 70px; text-align: center"
300 300
                         >
301
-                          <span> 
301
+                          <span>
302 302
                             {{
303 303
                             record.prescription.replacement_total
304 304
                               ? record.prescription.replacement_total
@@ -320,7 +320,7 @@
320 320
                         </div>
321 321
                         ml/min
322 322
                       </div>
323
-                      
323
+
324 324
                     </div>
325 325
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
326 326
                       <div class="inline_block" style="flex: 1">
@@ -365,7 +365,7 @@
365 365
                         干体重:
366 366
                         <div class="under_line" style="width: 100px; text-align: center">
367 367
                           {{
368
-                            record.assessment_before_dislysis.dry_weight 
368
+                            record.assessment_before_dislysis.dry_weight
369 369
                             ? record.assessment_before_dislysis.dry_weight : "/"
370 370
                           }}
371 371
                         </div>
@@ -399,7 +399,7 @@
399 399
                       </div> -->
400 400
                     </div>
401 401
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
402
-                      
402
+
403 403
                       <div class="inline_block" style="flex: 1">
404 404
                         上次透后体重:
405 405
                         <div class="under_line" style="width: 50px; text-align: center">
@@ -427,25 +427,25 @@
427 427
                       </div>
428 428
                       <div class="inline_block" style="flex: 1">
429 429
                         体重增加:
430
-                      
430
+
431 431
                         <div class="under_line" style="width: 70px; text-align: center">
432 432
                           <span v-if="record.lastafterweight.weight_after>0">
433
-                            {{ record.assessment_before_dislysis.weight_before > 0 && record.lastafterweight.weight_after > 0 
433
+                            {{ record.assessment_before_dislysis.weight_before > 0 && record.lastafterweight.weight_after > 0
434 434
                             ? parseFloat(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.additional_weight
435
-                            - record.lastafterweight.weight_after).toFixed(2): "/" 
435
+                            - record.lastafterweight.weight_after).toFixed(2): "/"
436 436
                           }}
437
-                          </span> 
437
+                          </span>
438 438
 
439 439
                           <span v-if="record.lastafterweight.weight_after<=0 && record.assessment_after_dislysis.last_after_weight>0">
440
-                            {{ record.assessment_before_dislysis.weight_before > 0 && record.assessment_after_dislysis.last_after_weight > 0 
440
+                            {{ record.assessment_before_dislysis.weight_before > 0 && record.assessment_after_dislysis.last_after_weight > 0
441 441
                             ? parseFloat(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.additional_weight
442
-                            - record.assessment_after_dislysis.last_after_weight).toFixed(2): "/" 
442
+                            - record.assessment_after_dislysis.last_after_weight).toFixed(2): "/"
443 443
                           }}
444
-                          </span> 
444
+                          </span>
445 445
 
446 446
                           <span v-if="record.lastafterweight.weight_after<=0 && record.assessment_after_dislysis.last_after_weight ==0">
447 447
                               /
448
-                          </span> 
448
+                          </span>
449 449
                         </div>
450 450
                         kg
451 451
                       </div>
@@ -468,7 +468,7 @@
468 468
                           style="width: 40px; text-align: center"
469 469
                         >
470 470
                         {{ record.prescription.kalium ? record.prescription.kalium : "/" }}
471
-                        
471
+
472 472
                         </div>
473 473
                         mmol/L
474 474
                       </div>
@@ -488,7 +488,7 @@
488 488
                           class="under_line"
489 489
                           style="width: 50px; text-align: center"
490 490
                         >
491
-                        <span> {{ record.prescription.calcium ? record.prescription.calcium : "/" }}</span>                     
491
+                        <span> {{ record.prescription.calcium ? record.prescription.calcium : "/" }}</span>
492 492
                         </div>
493 493
                         mmol/L
494 494
                       </div>
@@ -501,7 +501,7 @@
501 501
                             record.prescription.bicarbonate ? record.prescription.bicarbonate : "/"
502 502
                           }}
503 503
                           </span>
504
-                          
504
+
505 505
                         </div>
506 506
                         mmol/L
507 507
                       </div>
@@ -547,7 +547,7 @@
547 547
                         <span v-if="record.prescription.anticoagulant!=0">
548 548
                           {{ getshouji(record.prescription.anticoagulant) }}
549 549
                         </span>
550
-                        
550
+
551 551
                       </div>
552 552
                       <div class="inline_block" style="flex: 1;">
553 553
                         追加:
@@ -563,7 +563,7 @@
563 563
                         <span v-if="record.prescription.anticoagulant!=0">
564 564
                           {{ getweichi(record.prescription.anticoagulant) }}
565 565
                         </span>
566
-                        
566
+
567 567
                       </div>
568 568
                       <div class="inline_block" style="flex: 1;"
569 569
                         v-if="record.prescription.anticoagulant == 5"
@@ -612,7 +612,7 @@
612 612
                         <span v-if="record.prescription.anticoagulant!=0">
613 613
                           {{ getzongliang(record.prescription.anticoagulant) }}
614 614
                         </span>
615
-                        
615
+
616 616
                       </div>
617 617
                       <div class="inline_block" style="flex: 1">
618 618
                         透析机号:
@@ -630,11 +630,11 @@
630 630
                         型号:
631 631
                         <div class="under_line" style="width: 60%; text-align: center">
632 632
                           <span v-if="record.bed_id !=0 && record.bed_id !=''">
633
-                            {{ getnumberlist(record.bed_id) ? getnumberlist(record.bed_id) :'东丽' }} 
633
+                            {{ getnumberlist(record.bed_id) ? getnumberlist(record.bed_id) :'东丽' }}
634 634
                           </span>
635 635
                         </div>
636 636
                       </div>
637
-                      
637
+
638 638
                     </div>
639 639
                   </td>
640 640
                 </tr>
@@ -724,7 +724,7 @@
724 724
                               </span>
725 725
                             </div>
726 726
                           </td>
727
-                         
727
+
728 728
                         </tr>
729 729
                         <tr v-for="(monitor_record, s) in record.monitor_records2" :key="s">
730 730
                           <td></td>
@@ -888,7 +888,7 @@
888 888
                               <td></td>
889 889
                             </tr>
890 890
                           </template>
891
-                          
891
+
892 892
                         </template>
893 893
                       </tbody>
894 894
                     </table>
@@ -980,7 +980,7 @@
980 980
               </div>
981 981
             </div>
982 982
             <div class="row">
983
-              
983
+
984 984
               <div class="inline_block" style="margin-left: 10px">
985 985
                 诊断:
986 986
                 <div
@@ -999,7 +999,7 @@
999 999
               </div>
1000 1000
             </div>
1001 1001
           </template> -->
1002
-          <div class="row" style="margin-top: -11px; position: relative">
1002
+          <div class="row" style="margin-top: -11px; position: relative;width: 99%;">
1003 1003
             <table class="proj_table">
1004 1004
               <tbody>
1005 1005
                 <tr>
@@ -1050,7 +1050,7 @@
1050 1050
                           }}
1051 1051
                         </div>
1052 1052
                       </div>
1053
-                      
1053
+
1054 1054
                     </div>
1055 1055
 
1056 1056
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
@@ -1234,14 +1234,14 @@
1234 1234
                         </div>
1235 1235
                       </div>
1236 1236
                     </div>
1237
-            
1237
+
1238 1238
                   </td>
1239 1239
                 </tr>
1240 1240
                 <tr>
1241 1241
                   <td>
1242 1242
                     <div class="row"
1243 1243
                       style="padding: 2px 0; line-height: 23px; display: flex"
1244
-                    > 
1244
+                    >
1245 1245
                       <div class="inline_block" style="flex: 1" v-if="record.assessment_before_dislysis.internal_fistula>0">
1246 1246
                         上机护士:
1247 1247
                         <div class="under_line"
@@ -1258,7 +1258,7 @@
1258 1258
                               }}
1259 1259
                           </span>
1260 1260
                           <img
1261
-                            style="height: 30px"
1261
+                            style="height: 40px"
1262 1262
                             :src="
1263 1263
                               setAdminUserES(
1264 1264
                                 record.dialysis_order,'puncture_nurse'
@@ -1287,7 +1287,7 @@
1287 1287
                               }}
1288 1288
                           </span>
1289 1289
                           <img
1290
-                            style="height: 30px"
1290
+                            style="height: 40px"
1291 1291
                             :src="
1292 1292
                               setAdminUserES(
1293 1293
                                 record.dialysis_order,'change_nurse'
@@ -1315,7 +1315,7 @@
1315 1315
                             }}
1316 1316
                         </span>
1317 1317
                         <img
1318
-                          style="height: 30px"
1318
+                          style="height: 40px"
1319 1319
                           :src="
1320 1320
                             setAdminUserES(
1321 1321
                               record.dialysis_order,'start_nurse'
@@ -1327,7 +1327,7 @@
1327 1327
                         />
1328 1328
                         </div>
1329 1329
                       </div>
1330
-                     
1330
+
1331 1331
                       <div class="inline_block" style="flex: 1">
1332 1332
                         核对护士:
1333 1333
                         <div
@@ -1354,7 +1354,7 @@
1354 1354
                             }}
1355 1355
                           </span>
1356 1356
                           <img
1357
-                            style="height: 30px"
1357
+                            style="height: 40px"
1358 1358
                             :src="setAdminUserES(record.check, 'creater')"
1359 1359
                             alt=""
1360 1360
                             srcset=""
@@ -1382,7 +1382,7 @@
1382 1382
                             }}
1383 1383
                           </span>
1384 1384
                           <img
1385
-                            style="height: 30px"
1385
+                            style="height: 40px"
1386 1386
                             :src="setAdminUserES(record.check, 'creater')"
1387 1387
                             alt=""
1388 1388
                             srcset=""
@@ -1412,7 +1412,7 @@
1412 1412
                             }}
1413 1413
                           </span>
1414 1414
                           <img
1415
-                            style="height: 30px"
1415
+                            style="height: 40px"
1416 1416
                             :src="setAdminUserES(record.check, 'modifier')"
1417 1417
                             alt=""
1418 1418
                             srcset=""
@@ -1442,7 +1442,7 @@
1442 1442
                             }}
1443 1443
                           </span>
1444 1444
                           <img
1445
-                            style="height: 30px"
1445
+                            style="height: 40px"
1446 1446
                             :src="setAdminUserES(record.check, 'creater')"
1447 1447
                             alt=""
1448 1448
                             srcset=""
@@ -1455,7 +1455,7 @@
1455 1455
                           v-if="!record.check"
1456 1456
                         ></div> -->
1457 1457
                       </div>
1458
- 
1458
+
1459 1459
                       <div class="inline_block" style="flex: 1">
1460 1460
                         下机护士:
1461 1461
                         <div
@@ -1492,7 +1492,7 @@
1492 1492
                             alt=""
1493 1493
                             srcset=""
1494 1494
                             v-else
1495
-                            style="height: 30px"
1495
+                            style="height: 40px"
1496 1496
                           />
1497 1497
                         </div>
1498 1498
                       </div>
@@ -1510,7 +1510,7 @@
1510 1510
                               }}
1511 1511
                           </span>
1512 1512
                           <img
1513
-                            style="height: 30px"
1513
+                            style="height: 40px"
1514 1514
                             :src="setAdminUserES( record.prescription,'creater')"
1515 1515
                             alt=""
1516 1516
                             srcset=""
@@ -1602,7 +1602,7 @@ export default {
1602 1602
     };
1603 1603
   },
1604 1604
   created() {
1605
-   
1605
+
1606 1606
     var bloodAccessParOpera = getDataConfig(
1607 1607
       "hemodialysis",
1608 1608
       "vascular_access_desc"
@@ -1638,7 +1638,7 @@ export default {
1638 1638
     // }
1639 1639
     console.log(this.bloodAccessParOpera, "this.bloodAccessParOpera");
1640 1640
 
1641
-   
1641
+
1642 1642
 
1643 1643
     this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
1644 1644
 
@@ -1938,7 +1938,7 @@ export default {
1938 1938
                       }
1939 1939
                      }
1940 1940
                     }
1941
-                    
1941
+
1942 1942
                   }
1943 1943
                 })
1944 1944
                 let newArr = Object.values(objInfo);
@@ -1958,7 +1958,7 @@ export default {
1958 1958
               this.records[i].new_his_advices = []
1959 1959
               this.records[i].new_his_advices.push(...newArr)
1960 1960
               console.log('this.records[i].new_his_advices',this.records[i].new_his_advices);
1961
-              
1961
+
1962 1962
             }
1963 1963
           }
1964 1964
           console.log("时间我哦我",this.records)
@@ -2022,7 +2022,7 @@ export default {
2022 2022
       if(id != 0){
2023 2023
         for(let i in options){
2024 2024
           if(id == options[i].id){
2025
-            console.log('anticoagulantsConfit11111',id); 
2025
+            console.log('anticoagulantsConfit11111',id);
2026 2026
             return options[i].shouji_unit
2027 2027
           }
2028 2028
         }
@@ -2311,7 +2311,7 @@ export default {
2311 2311
            name = this.bloodAccessParOpera[i].name
2312 2312
         }
2313 2313
       }
2314
-      
2314
+
2315 2315
       return name
2316 2316
       // if (id in this.bloodAccessParOpera) {
2317 2317
 
@@ -2319,7 +2319,7 @@ export default {
2319 2319
       // }
2320 2320
       // return "";
2321 2321
     },
2322
-    
2322
+
2323 2323
   },
2324 2324
 };
2325 2325
 </script>

+ 5 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue View File

@@ -321,16 +321,16 @@
321 321
                             </td>
322 322
                            <td width="60"></td>
323 323
                             <td width="60">穿刺针:</td>
324
-                            <td width="220">
324
+                            <td width="280">
325 325
                             <div>
326
-                               &nbsp;
327
-                               <label-box :isChecked="record.assessment_before_dislysis.puncture_needle && record.assessment_before_dislysis.puncture_needle.indexOf('16G') > -1 ? true : false" showValue="16G"></label-box>
328
-                               &nbsp;
326
+                                &nbsp;
327
+                                <label-box :isChecked="record.assessment_before_dislysis.puncture_needle && record.assessment_before_dislysis.puncture_needle == '16G' ? true : false" showValue="16G"></label-box>
328
+                                &nbsp;
329 329
                                 <label-box :isChecked="record.assessment_before_dislysis.puncture_needle && record.assessment_before_dislysis.puncture_needle.indexOf('17G') > -1 ? true : false" showValue="17G"></label-box>
330 330
                                 &nbsp;
331 331
                                 <label-box :isChecked="record.assessment_before_dislysis.puncture_needle && record.assessment_before_dislysis.puncture_needle.indexOf('钝针') > -1 ? true : false" showValue="钝针"></label-box>
332 332
                                 &nbsp;
333
-                                <label-box :isChecked="record.assessment_before_dislysis.puncture_needle && record.assessment_before_dislysis.puncture_needle.indexOf('留置针16G') > -1 ? true : false" showValue="留置针16G"></label-box>
333
+                                <label-box :isChecked="record.assessment_before_dislysis.puncture_needle && record.assessment_before_dislysis.puncture_needle == '留置针16G' ? true : false" showValue="留置针16G"></label-box>
334 334
                             </div>
335 335
                             </td>
336 336
                             <td></td>

+ 4 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive.vue View File

@@ -386,10 +386,10 @@
386 386
                           class="inline_block"
387 387
                           style="margin-left: 10px; flex: 1"
388 388
                         >
389
-                          穿刺针
389
+                          穿刺针:
390 390
                           <div
391 391
                             class="under_line"
392
-                            style="width: 100px; text-align: center"
392
+                            style="width: 120px; text-align: center;white-space:normal;"
393 393
                           >
394 394
                             {{
395 395
                               record.assessment_before_dislysis &&
@@ -1634,8 +1634,7 @@
1634 1634
                           </tr>
1635 1635
   
1636 1636
                           <template v-if="record.advices">
1637
-                            <tr
1638
-                              v-for="(advice, advice_index) in record.advices"
1637
+                            <tr v-for="(advice, advice_index) in record.advices"
1639 1638
                               :key="advice_index"
1640 1639
                             >
1641 1640
                               <td height="35px">
@@ -3106,7 +3105,7 @@
3106 3105
                 this.records[recordIndex].advices &&
3107 3106
                 this.records[recordIndex].advices.length < 12
3108 3107
               ) {
3109
-                delghTwo = 12 - this.records[recordIndex].advices.length;
3108
+                delghTwo = 8 - this.records[recordIndex].advices.length;
3110 3109
               } else {
3111 3110
                 delghTwo = 0;
3112 3111
               }

+ 22 - 15
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue View File

@@ -959,7 +959,7 @@
959 959
                                     record.assessment_before_dislysis
960 960
                                       .additional_weight
961 961
                                 ).toFixed(1)
962
-                              : "/"
962
+                              : "未称重"
963 963
                           }}
964 964
                         </div>
965 965
                         kg
@@ -1866,7 +1866,7 @@
1866 1866
                                     <span v-if="item.single_dose !=''">
1867 1867
                                       {{ item.single_dose}}{{ item.single_dose_unit }}
1868 1868
                                     </span>
1869
-                                    
1869
+
1870 1870
                                   </div>
1871 1871
                                 </template>
1872 1872
                                 <span v-if="advice[0].parent_id > 0"></span>
@@ -2378,7 +2378,7 @@
2378 2378
                                     record.assessment_before_dislysis
2379 2379
                                       .additional_weight
2380 2380
                                 ).toFixed(1)
2381
-                              : "/"
2381
+                              : "未称重"
2382 2382
                           }}
2383 2383
                         </div>
2384 2384
                         kg
@@ -2396,12 +2396,19 @@
2396 2396
                               ? record.assessment_after_dislysis.weight_loss
2397 2397
                               : "/"
2398 2398
                           }} -->
2399
-                          {{
2400
-                            record.assessment_after_dislysis &&
2401
-                            (record.assessment_before_dislysis.weight_before - record.assessment_after_dislysis.weight_after).toFixed(2)
2402
-                              ?(record.assessment_before_dislysis.weight_before - record.assessment_after_dislysis.weight_after).toFixed(2)
2403
-                              : "/"
2404
-                          }}
2399
+                          <span v-if="record.assessment_before_dislysis.weight_before !=0 &&
2400
+                                  record.assessment_after_dislysis.weight_after"
2401
+                          >
2402
+                              {{
2403
+                                record.assessment_after_dislysis &&
2404
+                                (record.assessment_before_dislysis.weight_before - record.assessment_after_dislysis.weight_after).toFixed(2)
2405
+                                  ?(record.assessment_before_dislysis.weight_before - record.assessment_after_dislysis.weight_after).toFixed(2)
2406
+                                  : "/"
2407
+                              }}
2408
+                          </span>
2409
+                          <span v-else>
2410
+                            /
2411
+                          </span>
2405 2412
                         </div>
2406 2413
                         kg
2407 2414
                       </div>
@@ -3112,12 +3119,12 @@
3112 3119
               </tbody>
3113 3120
             </table>
3114 3121
           </div>
3115
-          <div style="position: relative;left: 70%;top: 30px;">
3122
+          <div style="position: relative;left: 70%;top: 0px;width: 250px;">
3116 3123
             患者签名:
3117 3124
             <div class="under_line" style="width: 120px;">
3118 3125
               <img
3119 3126
                 v-if="record.dialysis_order.url!=''"
3120
-                style="height: 50px"
3127
+                style="height: 60px"
3121 3128
                 :src="record.dialysis_order == null? 0: record.dialysis_order.url"
3122 3129
                 alt=""
3123 3130
                 srcset=""
@@ -3730,13 +3737,13 @@ export default {
3730 3737
   width: 50%;
3731 3738
 }
3732 3739
 
3733
-.under_line::before {
3740
+/* .under_line::before {
3734 3741
   content: "\00A0";
3735 3742
 }
3736 3743
 
3737 3744
 .under_line::after {
3738 3745
   content: "\00A0";
3739
-}
3746
+} */
3740 3747
 
3741 3748
 .under_line_two {
3742 3749
   display: inline-block;
@@ -3746,13 +3753,13 @@ export default {
3746 3753
   width: 50%;
3747 3754
 }
3748 3755
 
3749
-.under_line_two::before {
3756
+/* .under_line_two::before {
3750 3757
   content: "\00A0";
3751 3758
 }
3752 3759
 
3753 3760
 .under_line_two::after {
3754 3761
   content: "\00A0";
3755
-}
3762
+} */
3756 3763
 
3757 3764
 .flex {
3758 3765
   display: -webkit-box;

+ 51 - 4
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -11,6 +11,25 @@
11 11
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
12 12
       <el-form ref="form" :model="form" label-width="160px">
13 13
         <el-row :gutter="20">
14
+         
15
+          <el-col :span="8" >
16
+            <el-form-item
17
+              label="透后时间 :"
18
+              style="width: 350px"
19
+              :prop="isName('透后时间')"
20
+              v-if="org_id == 0 || org_id ==10599"
21
+            >
22
+              <el-date-picker
23
+                type="datetime"
24
+                format="yyyy-MM-dd HH:mm"
25
+                value-format="yyyy-MM-dd HH:mm"
26
+                placeholder="选择时间"
27
+                v-model="form.start_time"
28
+                style="width: 100%"
29
+              ></el-date-picker>
30
+            </el-form-item>
31
+          </el-col>
32
+
14 33
           <el-col :span="8" v-if="isShow('实际治疗时长')">
15 34
             <el-form-item label="实际治疗时长(时):" prop="actualTreatmentHourShow" :rules="isCheckmust('实际治疗时长')">
16 35
 
@@ -362,7 +381,7 @@
362 381
           </el-form-item>
363 382
         </el-col>
364 383
 
365
-        <el-col :span="8" v-if="isShow('透后症状')">
384
+        <el-col :span="8" v-if="isShow('透后症状') && org_id !=0 && org_id != 10721">
366 385
           <el-form-item label="透后症状: " :prop="isName('透后症状')" :rules="isCheckmust('透后症状')">
367 386
             <el-input
368 387
               v-model="form.symptom_after_dialysis"
@@ -372,6 +391,13 @@
372 391
           </el-form-item>
373 392
         </el-col>
374 393
 
394
+        <el-col :span="8" v-if="(org_id == 0 || org_id == 10721)">
395
+          <el-form-item label="透后症状: ">
396
+            <el-input v-model="form.symptom_after_dialysis_remark"></el-input>
397
+          </el-form-item>
398
+         
399
+        </el-col>
400
+
375 401
         <el-col :span="8" v-if="isShow('透析中入量') && org_id!=10485 && org_id!=10460  && org_id!=10551">
376 402
           <el-form-item label="透析中入量: " :prop="isName('透析中入量')" :rules="isCheckmust('透析中入量')">
377 403
             <el-input v-model="form.dialysis_intakes"></el-input>
@@ -733,7 +759,7 @@ import { postAssessmentAfterDislysis,saveInformation } from '@/api/dialysis'
733 759
 import { uParseTime } from '@/utils/tools'
734 760
 import store from '@/store'
735 761
 import { parseTime } from '@/utils'
736
-
762
+const moment = require('moment');
737 763
 import request from '@/utils/request'
738 764
 
739 765
 export default {
@@ -907,6 +933,8 @@ export default {
907 933
         last_after_weight:"",
908 934
         displace_liqui_value:"",
909 935
         after_weight:"",
936
+        symptom_after_dialysis_remark:"",
937
+        start_time:""
910 938
       },
911 939
       lapseList:[],
912 940
       leaveOfficeMethod:[],
@@ -1058,6 +1086,9 @@ export default {
1058 1086
     }
1059 1087
   },
1060 1088
   methods: {
1089
+    getTimeOne (time) {
1090
+      return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
1091
+    },
1061 1092
     isName(name) {
1062 1093
       let filedList = store.getters.xt_user.fileds;
1063 1094
       for (let i = 0; i < filedList.length; i++) {
@@ -1174,6 +1205,12 @@ export default {
1174 1205
 
1175 1206
           ParamsQuery['patient'] = this.patient.id
1176 1207
           ParamsQuery['record_date'] = this.record_date
1208
+          if(this.form.start_time == ""){
1209
+            ParamsQuery["record_time"] =  moment().format('YYYY-MM-DD HH:mm:ss')
1210
+          }else{
1211
+            ParamsQuery["record_time"] = this.form.start_time
1212
+          }
1213
+        
1177 1214
           ParamsQuery['mode'] = '1'
1178 1215
           if (this.assessment_after_dislysis.creater > 0) {
1179 1216
             ParamsQuery['mode'] = '2'
@@ -1261,6 +1298,10 @@ export default {
1261 1298
           data["transfusion_volume"] = this.form.transfusion_volume
1262 1299
           data["condenser"] = this.form.condenser
1263 1300
           data['displace_liqui_value'] = this.form.displace_liqui_value
1301
+        
1302
+          data["symptom_after_dialysis_remark"] = this.form.symptom_after_dialysis_remark
1303
+        
1304
+        
1264 1305
           if(this.form.last_after_weight >0){
1265 1306
             data["last_after_weight"] = this.form.last_after_weight.toString()
1266 1307
           }else{
@@ -1454,7 +1495,12 @@ export default {
1454 1495
     // 数据开始
1455 1496
     show(predialysis,last_after) {
1456 1497
       console.log("头号好地方阿道夫地方阿道夫阿道夫",this.last_monitor)
1457
-
1498
+      
1499
+      if(this.assessment_after_dislysis!=null && this.assessment_after_dislysis.id>0){
1500
+         this.form.start_time = this.getTimeOne(this.assessment_after_dislysis.record_time) 
1501
+      }
1502
+     
1503
+      
1458 1504
       if(this.$store.getters.xt_user.template_info.org_id == 10679){
1459 1505
         if(this.form.systolic_blood_pressure == 0){
1460 1506
            this.form.systolic_blood_pressure = this.last_monitor.systolic_blood_pressure
@@ -1471,6 +1517,7 @@ export default {
1471 1517
         if(this.form.pulse_frequency == 0){
1472 1518
           this.form.pulse_frequency = this.last_monitor.pulse_frequency
1473 1519
         }
1520
+       
1474 1521
 
1475 1522
       }
1476 1523
       this.isVisibility = true
@@ -1650,7 +1697,7 @@ export default {
1650 1697
   },
1651 1698
   created() {
1652 1699
     // console.log("this.form", this.form.consciousness);
1653
-
1700
+     
1654 1701
     this.org_id = this.$store.getters.xt_user.template_info.org_id
1655 1702
     this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
1656 1703
     this.pip_coagulationOptions = getDataConfig('hemodialysis','pip_coagulation')

+ 55 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -202,7 +202,7 @@
202 202
                     </el-col>
203 203
 
204 204
                     <el-col :span="8" v-if="isShows('是否单超脱水')">
205
-                        <el-form-item label="是否单超脱水:" prop="is_water" :rules="isCheckmust('是否单超脱水')">
205
+                        <el-form-item label="是否单超脱水:" prop="is_water">
206 206
                            <el-select v-model="dialysisPrescription.is_water">
207 207
                                 <el-option
208 208
                                         v-for="(item, index) in waterList"
@@ -214,6 +214,41 @@
214 214
                         </el-form-item>
215 215
                     </el-col>
216 216
 
217
+                    <el-col :span="8" >
218
+                        <el-form-item label="是否先超脱水:" prop="first_super" v-if="isShows('是否先超脱水')">
219
+                           <el-select v-model="dialysisPrescription.first_super">
220
+                                <el-option
221
+                                        v-for="(item, index) in waterListThree"
222
+                                        :label="item.name"
223
+                                        :value="item.id"
224
+                                        :key="index + 's'"
225
+                                ></el-option>
226
+                            </el-select>
227
+                        </el-form-item>
228
+                    </el-col>
229
+
230
+                    
231
+                    <el-col :span="8">
232
+                        <el-form-item label="是否序惯脱水:" prop="is_sequential"  v-if="isShows('是否序惯脱水')">
233
+                           <el-select v-model="dialysisPrescription.is_sequential">
234
+                                <el-option
235
+                                        v-for="(item, index) in waterListTwo"
236
+                                        :label="item.name"
237
+                                        :value="item.id"
238
+                                        :key="index + 't'"
239
+                                ></el-option>
240
+                            </el-select>
241
+                        </el-form-item>
242
+                    </el-col>
243
+
244
+                    <el-col :span="8">
245
+                        <el-form-item label="电导度(mS/cm):" prop="conduct" v-if="isShows('电导度')">
246
+                            <el-input v-model="dialysisPrescription.conduct"></el-input>
247
+                        </el-form-item>
248
+                    </el-col>
249
+
250
+                    
251
+
217 252
 
218 253
                     <el-col :span="8" v-if="isShows('透析液')">
219 254
                         <el-form-item label="透析液:" prop="dialyzate" :rules="isCheckmust('透析液')">
@@ -1901,7 +1936,10 @@
1901 1936
           washing_time:"",
1902 1937
           blood_access_part_id:"",
1903 1938
           anticoagulant_weichi_hour:"",
1904
-          dialyzate:""
1939
+          dialyzate:"",
1940
+          first_super:0,
1941
+          is_sequential:0,
1942
+          conduct:""
1905 1943
         },
1906 1944
 
1907 1945
         anticoagulant: {
@@ -1943,6 +1981,21 @@
1943 1981
           {id:1,name:"是"},
1944 1982
           {id:2,name:"否"}
1945 1983
         ],
1984
+        waterListOne:[
1985
+          {id:0,name:"请选择"},
1986
+          {id:1,name:"是"},
1987
+          {id:2,name:"否"}
1988
+        ],
1989
+        waterListTwo:[
1990
+          {id:0,name:"请选择"},
1991
+          {id:1,name:"是"},
1992
+          {id:2,name:"否"}
1993
+        ],
1994
+        waterListThree:[
1995
+          {id:0,name:"请选择"},
1996
+          {id:1,name:"是"},
1997
+          {id:2,name:"否"}
1998
+        ],
1946 1999
         dialyzateList:[
1947 2000
           {id:0,name:"请选择"},
1948 2001
           {id:1,name:"碳酸"},

+ 5 - 2
src/xt_pages/dialysis/details/index.vue View File

@@ -563,10 +563,12 @@
563 563
                   </div>
564 564
                 </div>
565 565
                 <div class="printCell" style="display:flex;" v-if="org_id ==10635 || org_id == 0">
566
-                  <div>
566
+                  <div style="width: 45%;">
567 567
                     处方脱水量:{{main_collection.prescription.prescription_water}} L
568 568
                   </div>
569
-                  <div></div>
569
+                  <div  style="width: 50%;">
570
+                    血流量:{{main_collection.prescription.blood_flow_volume}} ml/min
571
+                  </div>
570 572
                 </div>
571 573
                 <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
572 574
                   <div style="">透析器:
@@ -1425,6 +1427,7 @@ import print from 'print-js'
1425 1427
 import { uParseTime } from '@/utils/tools'
1426 1428
 import Calendar from 'vue-calendar-component'
1427 1429
 import data from '../../../store/modules/data'
1430
+
1428 1431
 export default {
1429 1432
   name: 'index',
1430 1433
   components: {

+ 5 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue View File

@@ -387,15 +387,15 @@
387 387
                   </td>
388 388
                   <td width='20'></td>
389 389
                   <td width="70">穿刺针:</td>
390
-                  <td width="260" style="text-align:left;">
390
+                  <td width="280" style="text-align:left;">
391 391
                     <div>
392
-                      <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G') > -1 ? true : false" showValue="16G"></label-box>
392
+                      <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle =='16G' ? true : false" showValue="16G"></label-box>
393 393
                       &nbsp;
394 394
                       <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G') > -1 ? true : false" showValue="17G"></label-box>
395 395
                       &nbsp;
396 396
                       <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('钝针') > -1 ? true : false" showValue="钝针"></label-box>
397 397
                       &nbsp;
398
-                      <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('留置针16G') > -1 ? true : false" showValue="留置针16G"></label-box>
398
+                      <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle == '留置针16G' ? true : false" showValue="留置针16G"></label-box>
399 399
                     </div>
400 400
                   </td>
401 401
 
@@ -2200,12 +2200,12 @@ export default {
2200 2200
             }
2201 2201
             this.check = response.data.data.check
2202 2202
             this.predialysis = response.data.data.PredialysisEvaluation
2203
-            console.log(11111111111111111111111, this.predialysis)
2203
+            console.log('11111111111111111111111222', this.predialysis)
2204 2204
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
2205 2205
               this.predialysis.blood_access_part_opera_id
2206 2206
             )
2207 2207
             this.afterdialysis = response.data.data.AssessmentAfterDislysis
2208
-            console.log(22222222222222222222222222, response.data.data)
2208
+            console.log('222222222222222222222222222111', response.data.data)
2209 2209
             this.operators = response.data.data.operators
2210 2210
             this.dialysisOrder =
2211 2211
               response.data.data.dialysisOrder === null

+ 246 - 174
src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue View File

@@ -145,8 +145,7 @@
145 145
             </div>
146 146
           </div>
147 147
         </div>
148
-        <div
149
-          class="row"
148
+        <div class="row"
150 149
           :style="this.totollength > 13 ? 'margin-bottom:400px;' : ''"
151 150
         >
152 151
           <table class="proj_table">
@@ -279,7 +278,7 @@
279 278
                     >
280 279
                       导管:
281 280
                       <div
282
-                        style="width: 90%; text-align: left;display: inline-block;border-bottom: 1px solid #999;"
281
+                        style="width: 85%; text-align: left;display: inline-block;border-bottom: 1px solid #999;"
283 282
                       >
284 283
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
285 284
                       </div>
@@ -673,7 +672,7 @@
673 672
 
674 673
                     <div
675 674
                       class="inline_block"
676
-                      style="margin-left: 10px; flex: 1"
675
+                      style="flex: 1"
677 676
                     >
678 677
                       置换方式:
679 678
                       <div
@@ -688,7 +687,7 @@
688 687
                     <div
689 688
 
690 689
                       class="inline_block"
691
-                      style="margin-left: 10px; flex: 1"
690
+                      style="flex: 1"
692 691
                     >
693 692
                       置换量:
694 693
                       <div
@@ -706,7 +705,7 @@
706 705
                     </div>
707 706
                     <div
708 707
                       class="inline_block"
709
-                      style="margin-left: 10px; flex: 1"
708
+                      style=" flex: 1"
710 709
                     >
711 710
                       血流量:
712 711
                       <div
@@ -721,7 +720,7 @@
721 720
                       </div>
722 721
                       ml/min
723 722
                     </div>
724
-                    <div class="inline_block" style="margin-left: 1px; flex: 1">
723
+                    <div class="inline_block" style=" flex: 1">
725 724
                       透析时间:
726 725
                       <div
727 726
                         class="under_line"
@@ -1927,7 +1926,7 @@
1927 1926
                       </div>
1928 1927
                       mmHg
1929 1928
                     </div>
1930
-                    
1929
+
1931 1930
 
1932 1931
                   </div>
1933 1932
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
@@ -1997,8 +1996,7 @@
1997 1996
                     </div>
1998 1997
                   </div> -->
1999 1998
 
2000
-                  <div
2001
-                    class="row"
1999
+                  <div class="row"
2002 2000
                     style="padding: 2px 0; line-height: 23px; display: flex"
2003 2001
                   >
2004 2002
                     <div class="inline_block" style="flex: 1.1">
@@ -2440,7 +2438,6 @@
2440 2438
         </div>
2441 2439
       </div>
2442 2440
     </div>
2443
-      {{ 'dfasfdafssdfasfad',x_tdate }}
2444 2441
     <div id="dialysis-print-box-1-2" class="dialysis-print-order print-template-two print_page_main_content" style="position: relative;">
2445 2442
       <div class="order-yy-name">{{ orgname }}</div>
2446 2443
       <div class="order_title">血液净化科医嘱及执行单</div>
@@ -2893,219 +2890,283 @@ export default {
2893 2890
     },
2894 2891
 
2895 2892
     checkData() {
2896
-      if (this.receiverTreatmentAccess.way == 0) {
2897
-        this.$message.error("入科方式未填");
2898
-      } else if (this.predialysis.symptom_before_dialysis == "") {
2899
-        this.$message.error("透前症状未填");
2900
-      } else if (this.predialysis.temperature == "") {
2901
-        this.$message.error("透前体温未填");
2902
-      } else if (this.predialysis.pulse_frequency == "") {
2903
-        this.$message.error("透前脉搏未填");
2904
-      } else if (this.predialysis.breathing_rate == "") {
2905
-        this.$message.error("透前呼吸频率未填");
2906
-      } else if (
2893
+      var checkDate =[]
2894
+      if (this.predialysis.temperature == 0) {
2895
+        const obj = "透前体温"
2896
+        checkDate.push(obj)
2897
+      } if (this.predialysis.pulse_frequency == "") {
2898
+        const obj1 = "透前脉搏"
2899
+        checkDate.push(obj1)
2900
+      } if (this.predialysis.breathing_rate == "") {
2901
+         const obj2 = "透前呼吸频率"
2902
+         checkDate.push(obj2)
2903
+      } if (
2907 2904
         this.predialysis.systolic_blood_pressure == 0 ||
2908 2905
         this.predialysis.diastolic_blood_pressure == 0
2909 2906
       ) {
2910
-        this.$message.error("透前血压未填完整");
2911
-      } else if (this.predialysis.puncture_way == "") {
2912
-        this.$message.error("穿刺方式未填");
2913
-      } else if (this.predialysis.puncture_needle == "") {
2914
-        this.$message.error("穿刺针未填");
2915
-      } else if (
2907
+        const obj3 = "透前血压"
2908
+        checkDate.push(obj3)
2909
+      } if (
2916 2910
         this.predialysis.blood_access_part_id == "" &&
2917 2911
         this.predialysis.blood_access_part_opera_name == ""
2918 2912
       ) {
2919
-        this.$message.error("血管通路未填");
2920
-      } else if (this.predialysis.internal_fistula == "") {
2921
-        this.$message.error("透前内瘘未填");
2922
-      } else if (this.predialysis.catheter == "") {
2923
-        this.$message.error("透前导管未填");
2924
-      } else if (this.prescription.mode_id == "") {
2925
-        this.$message.error("透析方式未填");
2926
-      } else if (
2913
+        const obj4 = "血管通路"
2914
+        checkDate.push(obj4)
2915
+      } if(this.predialysis.internal_fistula == "") {
2916
+        const obj5 = '透前内瘘'
2917
+        checkDate.push(obj5)
2918
+      } if (this.predialysis.catheter == "") {
2919
+        const obj6 = '透前导管'
2920
+        checkDate.push(obj6)
2921
+      } if (this.predialysis.puncture_way == "") {
2922
+        const obj7 = '穿刺方式'
2923
+        checkDate.push(obj7)
2924
+      } if (this.predialysis.puncture_needle == "") {
2925
+        const obj8 = '穿刺针'
2926
+        checkDate.push(obj8)
2927
+      } if(this.predialysis.puncture_needle_direction == ''){
2928
+        const obj9 = '穿刺方向'
2929
+        checkDate.push(obj9)
2930
+      } if (this.prescription.mode_id == 0) {
2931
+        const obj10 = '透析方式'
2932
+        checkDate.push(obj10);
2933
+      } if (
2927 2934
         this.prescription.displace_liqui_part == 0 &&
2928 2935
         this.prescription.mode_id == 2
2929 2936
       ) {
2930
-        this.$message.error("置换方式未填");
2931
-      } else if (
2937
+        const obj11 = '置换方式'
2938
+        checkDate.push(obj11);
2939
+      } if (
2932 2940
         this.prescription.displace_liqui_value == 0 &&
2933 2941
         this.prescription.mode_id == 2
2934 2942
       ) {
2935
-        this.$message.error("置换量未填");
2936
-      } else if (this.prescription.blood_flow_volume == 0) {
2937
-        this.$message.error("血流量未填");
2938
-      } else if (
2943
+        const obj12 = '置换量'
2944
+        checkDate.push(obj12);
2945
+      } if (this.prescription.blood_flow_volume == 0) {
2946
+        const obj13 = '血流量'
2947
+        checkDate.push(obj13);
2948
+      } if (
2939 2949
         this.prescription.dialysis_duration_hour == 0 &&
2940 2950
         this.prescription.dialysis_duration_minute == 0
2941 2951
       ) {
2942
-        this.$message.error("透析时间未填");
2943
-      } else if (
2944
-        this.prescription.dialyzer_perfusion_apparatus == "" &&
2945
-        this.prescription.dialysis_dialyszers == ""
2946
-      ) {
2947
-        this.$message.error("透析器未填");
2948
-      } else if (this.prescription.dialysis_irrigation == "") {
2949
-        this.$message.error("灌流器未填");
2950
-      } else if (
2951
-        this.prescription.plasma_separator == "" &&
2952
-        this.org_id == 9538
2953
-      ) {
2954
-        this.$message.error("血浆分离器未填");
2955
-      } else if (
2956
-        this.prescription.bilirubin_adsorption_column == "" &&
2957
-        this.org_id == 9538
2958
-      ) {
2959
-        this.$message.error("胆红素吸附柱未填");
2960
-      } else if (this.predialysis.weight_before == 0) {
2961
-        this.$message.error("透前体重未填");
2962
-      } else if (this.predialysis.dry_weight == 0) {
2963
-        this.$message.error("干体重未填");
2964
-      } else if (this.prescription.target_ultrafiltration == 0) {
2965
-        this.$message.error("计划超滤量未填");
2966
-      } else if (this.prescription.calcium == 0) {
2967
-        this.$message.error("钙未填");
2968
-      } else if (this.prescription.sodium == 0) {
2969
-        this.$message.error("钠未填");
2970
-      } else if (this.prescription.kalium == 0) {
2971
-        this.$message.error("钾未填");
2972
-      } else if (this.prescription.bicarbonate == 0) {
2973
-        this.$message.error("碳酸氢根未填");
2974
-      } else if (this.prescription.dialysate_flow == 0) {
2975
-        this.$message.error("透析液流量未填");
2976
-      } else if (this.prescription.anticoagulant == 0) {
2977
-        this.$message.error("抗凝剂未填");
2978
-      } else if (
2952
+        const obj14 = '透析时间'
2953
+        checkDate.push(obj14);
2954
+      } if (this.predialysis.symptom_before_dialysis == "") {
2955
+        const obj15 = '透前症状'
2956
+        checkDate.push(obj15);
2957
+      } if ( this.prescription.dialysis_dialyszers == "" ) {
2958
+        const obj16 = '透析(滤)器'
2959
+        checkDate.push(obj16);
2960
+      } if ( this.prescription.dialysis_irrigation == "" ) {
2961
+        const obj17 = '灌流器'
2962
+        checkDate.push(obj17);
2963
+      } if ( this.prescription.dialysis_strainer == "" ) {
2964
+        const obj18 = '滤过器'
2965
+        checkDate.push(obj18);
2966
+      } if(this.predialysis.dry_weight == 0) {
2967
+        const obj19 = '干体重'
2968
+        checkDate.push(obj19);
2969
+      } if(this.predialysis.additional_weight ==0){
2970
+        const obj20 = '衣物重'
2971
+        checkDate.push(obj20);
2972
+      } if(this.predialysis.weight_after_last_transparency ==''){
2973
+        const obj21 = '上次透后体重'
2974
+        checkDate.push(obj21);
2975
+      } if (this.predialysis.weight_before == 0) {
2976
+        const obj22 = '透前体重'
2977
+        checkDate.push(obj22);
2978
+      } if (this.prescription.calcium == 0) {
2979
+        const obj23 = '钙'
2980
+        checkDate.push(obj23);
2981
+      } if (this.prescription.sodium == 0) {
2982
+        const obj24 = '钠'
2983
+        checkDate.push(obj24);
2984
+      } if (this.prescription.kalium == 0) {
2985
+        const obj25 = '钾'
2986
+        checkDate.push(obj25);
2987
+      } if (this.prescription.bicarbonate == 0) {
2988
+        const obj26 = '碳酸氢根'
2989
+        checkDate.push(obj26);
2990
+      } if (this.prescription.dialysate_flow == 0) {
2991
+        const obj27 = '流量'
2992
+        checkDate.push(obj27);
2993
+      } if (this.prescription.anticoagulant == 0) {
2994
+        const obj28 = '抗凝剂'
2995
+        checkDate.push(obj28);
2996
+      } if (
2979 2997
         this.prescription.anticoagulant_gaimingcheng == "" &&
2980 2998
         this.prescription.anticoagulant == 5
2981 2999
       ) {
2982
-        this.$message.error("钙名称未填");
2983
-      } else if (
3000
+        const obj29 = '钙名称'
3001
+        checkDate.push(obj29);
3002
+      } if (
2984 3003
         this.prescription.anticoagulant_gaijiliang == "" &&
2985 3004
         this.prescription.anticoagulant == 5
2986 3005
       ) {
2987
-        this.$message.error("钙剂量未填");
2988
-      } else if (this.afterdialysis.temperature == 0) {
2989
-        this.$message.error("透后体温未填");
2990
-      } else if (this.afterdialysis.pulse_frequency == 0) {
2991
-        this.$message.error("透后脉搏未填");
2992
-      } else if (this.afterdialysis.breathing_rate == 0) {
2993
-        this.$message.error("透后呼吸频率未填");
2994
-      } else if (
3006
+        const obj29 = '钙剂量'
3007
+        checkDate.push(obj29);
3008
+      }  if (this.prescription.anticoagulant_shouji == 0 &&
3009
+            this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
3010
+      ) {
3011
+        const obj30 ='首剂'
3012
+        checkDate.push(obj30)
3013
+      } if (this.prescription.anticoagulant_zongliang == 0 && this.prescription.anticoagulant !=1
3014
+            && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
3015
+      ) {
3016
+        const obj31 ='总量'
3017
+        checkDate.push(obj31)
3018
+      } if (this.dialysisOrder.DeviceNumber.number == 0 &&
3019
+            this.patientInfo.DialysisSchedule.device_number.number ==''
3020
+      ) {
3021
+        const obj32 ='透析机号'
3022
+        checkDate.push(obj32)
3023
+      } if (this.afterdialysis.temperature == 0) {
3024
+        const obj33 ='透后体温'
3025
+        checkDate.push(obj33);
3026
+      } if (this.afterdialysis.pulse_frequency == 0) {
3027
+        const obj34 ='透后脉搏'
3028
+        checkDate.push(obj34);
3029
+      } if (this.afterdialysis.breathing_rate == 0) {
3030
+        const obj35 ='透后呼吸频率'
3031
+        checkDate.push(obj35);
3032
+      } if (
2995 3033
         this.afterdialysis.systolic_blood_pressure == 0 ||
2996 3034
         this.afterdialysis.diastolic_blood_pressure == 0
2997 3035
       ) {
2998
-        this.$message.error("透后血压未填完整");
2999
-      } else if (
3000
-        this.afterdialysis.actual_treatment_hour == 0 &&
3001
-        this.afterdialysis.actual_treatment_minute == 0
3002
-      ) {
3003
-        this.$message.error("实际治疗时间未填");
3004
-      } else if (this.afterdialysis.cruor == "") {
3005
-        this.$message.error("透析器凝血未填");
3006
-      } else if (this.afterdialysis.internal_fistula == "") {
3007
-        this.$message.error("透后内瘘未填");
3008
-      } else if (this.afterdialysis.catheter == "") {
3009
-        this.$message.error("透后导管未填");
3010
-      } else if (this.afterdialysis.weight_after == 0) {
3011
-        this.$message.error("透后体重未填");
3012
-      } else if (this.afterdialysis.weight_loss == 0) {
3013
-        this.$message.error("透后体重减少未填");
3014
-      } else if (this.afterdialysis.dialysis_intakes == 0) {
3015
-        this.$message.error("透析中入量未填");
3016
-      } else if (this.afterdialysis.actual_ultrafiltration == 0) {
3017
-        this.$message.error("实际超滤量未填");
3018
-      } else if (this.summary.dialysis_summary == "") {
3019
-        this.$message.error("透析小结未填");
3020
-      } else if (
3036
+        const obj36 ='透后血压'
3037
+        checkDate.push(obj36);
3038
+      } if (this.afterdialysis.symptom_after_dialysis == 0) {
3039
+        const obj37 ='透后症状'
3040
+        checkDate.push(obj37);
3041
+      } if (this.afterdialysis.cruor == "") {
3042
+        const obj38 ='凝血程度'
3043
+        checkDate.push(obj38);
3044
+      } if (this.afterdialysis.internal_fistula == "") {
3045
+        const obj39 ='透后内瘘'
3046
+        checkDate.push(obj39);
3047
+      } if (this.afterdialysis.catheter == "") {
3048
+        const obj34 ='透后导管'
3049
+        checkDate.push(obj34);
3050
+      } if (this.afterdialysis.ktv == "") {
3051
+        const obj35 ='KTV(在线)'
3052
+        checkDate.push(obj35);
3053
+      } if (this.afterdialysis.actual_treatment_hour == 0 &&
3054
+            this.afterdialysis.actual_treatment_minute == 0
3055
+      ){
3056
+        const obj36 ='实际治疗时间'
3057
+        checkDate.push(obj36);
3058
+      } if (this.afterdialysis.weight_after == 0) {
3059
+        const obj37 ='透后体重'
3060
+        checkDate.push(obj37);
3061
+      } if (this.afterdialysis.weight_loss == 0) {
3062
+        const obj38 ='透后体重减少'
3063
+        checkDate.push(obj38);
3064
+      } if (this.afterdialysis.dialysis_intakes == 0) {
3065
+        const obj39 ='透析中入量'
3066
+        checkDate.push(obj39);
3067
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
3068
+        const obj40 ='实际超滤量'
3069
+        checkDate.push(obj40);
3070
+      } if (this.summary.dialysis_summary == "") {
3071
+        const obj41 ='治疗小结'
3072
+        checkDate.push(obj41);
3073
+      } if (
3021 3074
         this.dialysisOrder == null ||
3022 3075
         this.dialysisOrder.puncture_nurse == 0
3023 3076
       ) {
3024
-        this.$message.error("穿刺护士未填");
3025
-      } else if (
3077
+        const obj42 ='穿刺护士'
3078
+        checkDate.push(obj42);
3079
+      } if (
3026 3080
         this.dialysisOrder == null ||
3027 3081
         this.dialysisOrder.start_nurse == 0
3028 3082
       ) {
3029
-        this.$message.error("治疗护士未填");
3030
-      } else if (this.dialysisOrder == null && this.check.creater == 0) {
3031
-        this.$message.error("核对人员未填");
3083
+        const obj43 ='治疗护士'
3084
+        checkDate.push(obj43);
3085
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
3086
+        const obj44 ='核对人员'
3087
+        checkDate.push(obj44);
3032 3088
       } else if (
3033 3089
         this.dialysisOrder != null &&
3034 3090
         this.dialysisOrder.start_nurse == this.check.modifier &&
3035 3091
         this.check.creater == 0
3036 3092
       ) {
3037
-        this.$message.error("核对人员未填");
3093
+        const obj44 ='核对人员'
3094
+        checkDate.push(obj44);
3038 3095
       } else if (
3039 3096
         this.dialysisOrder != null &&
3040 3097
         this.dialysisOrder.start_nurse == this.check.creater &&
3041 3098
         this.check.modifier == 0
3042 3099
       ) {
3043
-        this.$message.error("核对人员未填");
3100
+        const obj44 ='核对人员'
3101
+        checkDate.push(obj44);
3044 3102
       } else if (
3045 3103
         this.dialysisOrder != null &&
3046 3104
         this.dialysisOrder.start_nurse != this.check.creater &&
3047 3105
         this.dialysisOrder.start_nurse != this.check.modifier &&
3048 3106
         this.check.creater == 0
3049 3107
       ) {
3050
-        this.$message.error("核对人员未填");
3051
-      } else if (
3108
+        const obj44 ='核对人员'
3109
+        checkDate.push(obj44);
3110
+      } if (
3052 3111
         this.dialysisOrder == null ||
3053 3112
         this.dialysisOrder.finish_nurse == 0
3054 3113
       ) {
3055
-        this.$message.error("下机护士未填");
3056
-      } else if (this.prescription.creater == 0) {
3057
-        this.$message.error("医生签名未填");
3058
-      } else if (this.tableAdvice.length > 0) {
3059
-        let num = 0;
3060
-        this.tableAdvice.map((item) => {
3061
-          if (item.id > 0 && (item.created_time || item.start_time)) {
3062
-            this.users.map((it) => {
3063
-              if (it.id == item.advice_doctor) {
3064
-                if (it.user_type == 3) {
3065
-                  num++;
3066
-                  this.$message.closeAll();
3067
-                  this.$message.error("存在不是医生保存的医嘱");
3068
-                } else if (
3069
-                  it.id == item.execution_staff &&
3070
-                  item.execution_staff > 0
3071
-                ) {
3072
-                  if (it.user_type == 2) {
3073
-                    num++;
3074
-                    this.$message.closeAll();
3075
-                    this.$message.error("存在不是护士执行的医嘱");
3076
-                  }
3077
-                } else if (it.id == item.checker && item.checker > 0) {
3078
-                  if (it.user_type == 2) {
3079
-                    num++;
3080
-                    this.$message.closeAll();
3081
-                    this.$message.error("存在不是护士核对的医嘱");
3082
-                  }
3083
-                }
3084
-              } else if (
3085
-                it.id == item.execution_staff &&
3086
-                item.execution_staff > 0
3087
-              ) {
3088
-                if (it.user_type == 2) {
3089
-                  num++;
3090
-                  this.$message.closeAll();
3091
-                  this.$message.error("存在不是护士执行的医嘱");
3092
-                }
3093
-              } else if (it.id == item.checker && item.checker > 0) {
3094
-                if (it.user_type == 2) {
3095
-                  num++;
3096
-                  this.$message.closeAll();
3097
-                  this.$message.error("存在不是护士核对的医嘱");
3098
-                }
3099
-              }
3100
-            });
3114
+        const obj45 ='下机护士'
3115
+        checkDate.push(obj45);
3116
+      } if (this.prescription.creater == 0) {
3117
+        const obj46 ='医生签名'
3118
+        checkDate.push(obj46);
3119
+      } if(this.doctor_advices.length > 0){
3120
+        this.doctor_advices.map((item) =>{
3121
+          if(item.id > 0 && (item.created_time || item.start_time)){
3122
+            if(item.execution_staff ==0 || item.advice_doctor ==0){
3123
+              const obj50 = '执行人员,医生签名'
3124
+              checkDate.push(obj50)
3125
+            }
3126
+          }
3127
+        })
3128
+      } if(this.monitors.length >0){
3129
+          for(let i in this.monitors){
3130
+            if(this.monitors[i].dialysate_temperature == 0){
3131
+              const obj51 = '监测第'+((i*1)+1)+'行透析液温度'
3132
+              checkDate.push(obj51)
3133
+            } if(this.monitors[i].pulse_frequency ==0){
3134
+              const obj60 = '监测第'+((i*1)+1)+'行脉搏'
3135
+              checkDate.push(obj60)
3136
+            } if(this.monitors[i].breathing_rate ==0){
3137
+              const obj61 = '监测第'+((i*1)+1)+'行呼吸'
3138
+              checkDate.push(obj61)
3139
+            } if(this.monitors[i].systolic_blood_pressure ==0 ||
3140
+                  this.monitors.diastolic_blood_pressure==0){
3141
+              const obj62 = '监测第'+((i*1)+1)+'行血压'
3142
+              checkDate.push(obj62)
3143
+            }
3144
+            if(this.monitors[i].blood_flow_volume ==0){
3145
+              const obj55 = '监测第'+((i*1)+1)+'行血流量'
3146
+              checkDate.push(obj55)
3147
+            } if(this.monitors[i].arterial_pressure ==0){
3148
+              const obj54 = '监测第'+((i*1)+1)+'动脉压'
3149
+              checkDate.push(obj54)
3150
+            }
3151
+            if(this.monitors[i].venous_pressure ==0 ){
3152
+              const obj56 = '监测第'+((i*1)+1)+'行静脉压'
3153
+              checkDate.push(obj56)
3154
+            } if(this.monitors[i].transmembrane_pressure ==0){
3155
+              const obj52 = '监测第'+((i*1)+1)+'行跨膜压'
3156
+              checkDate.push(obj52)
3157
+            } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
3158
+              const obj53 = '监测第'+((i*1)+1)+'行超滤量'
3159
+              checkDate.push(obj53)
3160
+            }
3161
+            if(this.monitors[i].sodium_concentration ==0 ){
3162
+              // this.monitors[i].temperature == 0
3163
+              const obj59 = '监测第'+((i*1)+1)+'行钠浓度'
3164
+              checkDate.push(obj59)
3165
+            }
3166
+
3101 3167
           }
3102
-        });
3103
-        if (num == 0) {
3104
-          this.$message.success("核对完成");
3105
-        }
3106
-      } else {
3107
-        this.$message.success("核对完成");
3108 3168
       }
3169
+      this.getcheckData(checkDate)
3109 3170
     },
3110 3171
     getDisplaceLiquiPart: function (val) {
3111 3172
       let displace_liqui_part_name = "/";
@@ -3816,7 +3877,18 @@ export default {
3816 3877
         return "0.0";
3817 3878
       }
3818 3879
     },
3819
-
3880
+    getcheckData(val){
3881
+      if(val.length >0){
3882
+        let message = `记录单未填数据:<br/>&nbsp;${val.join("<br/>&nbsp;")}`;
3883
+        this.$alert(message, '提示', {
3884
+          confirmButtonText: '确定',
3885
+          type: 'warning',
3886
+          dangerouslyUseHTMLString: true,
3887
+        });
3888
+      }else{
3889
+        this.$message.success('核对完成')
3890
+      }
3891
+    }
3820 3892
   },
3821 3893
   watch: {
3822 3894
     "patientInfo.gender": function () {

+ 22 - 23
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue View File

@@ -120,30 +120,29 @@
120 120
             </div>
121 121
           </div>
122 122
         </div>
123
-        <div
124
-            class="row"
123
+        <div class="row"
125 124
             style="padding: 2px 0; line-height: 23px; display: flex"
125
+        >
126
+          <div
127
+            class="inline_block"
128
+            style="flex: 1; display: inline-block"
129
+          >
130
+            身份证:
131
+            <div
132
+              class="under_line"
133
+              style="
134
+                width: 860px;
135
+                line-height: 25px;
136
+                text-align: left;
137
+                margin-left: 2px;
138
+                display: inline-block;
139
+                white-space: normal;
140
+              "
126 141
             >
127
-              <div
128
-                class="inline_block"
129
-                style="flex: 1; display: inline-block"
130
-              >
131
-                身份证:
132
-                <div
133
-                  class="under_line"
134
-                  style="
135
-                    width: 860px;
136
-                    line-height: 25px;
137
-                    text-align: left;
138
-                    margin-left: 2px;
139
-                    display: inline-block;
140
-                    white-space: normal;
141
-                  "
142
-                >
143
-                  {{ patientInfo.id_card_no }}
144
-                </div>
145
-              </div>
142
+              {{ patientInfo.id_card_no }}
146 143
             </div>
144
+          </div>
145
+        </div>
147 146
         <div class="row">
148 147
           <div class="inline_block">
149 148
             入科方式:
@@ -358,10 +357,10 @@
358 357
                       class="inline_block"
359 358
                       style="margin-left: 10px; flex: 1"
360 359
                     >
361
-                      穿刺针
360
+                      穿刺针:
362 361
                       <div
363 362
                         class="under_line"
364
-                        style="width: 100px; text-align: center"
363
+                        style="width: 120px; text-align: center;white-space:normal;"
365 364
                       >
366 365
                         {{
367 366
                           predialysis.puncture_needle

+ 287 - 189
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue View File

@@ -220,8 +220,7 @@
220 220
                   <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
221 221
                     <div class="inline_block" style="flex: 1;">
222 222
                       T:
223
-                      <div
224
-                        class="under_line"
223
+                      <div class="under_line"
225 224
                         style="width: 50px; text-align: center"
226 225
                       >
227 226
                         {{
@@ -837,7 +836,6 @@
837 836
                             : ""
838 837
                         }}
839 838
                       </div>
840
-
841 839
                     </div>
842 840
 
843 841
                     <div class="inline_block" style="flex: 0.8" >
@@ -900,13 +898,13 @@
900 898
                         class="under_line"
901 899
                         style="width: 70px; text-align: center"
902 900
                       >
903
-                      <span>{{
901
+                      <span v-if="org_id !=10447 && org_id != 9675">{{
904 902
                           predialysis.weight_before
905 903
                             ? parseFloat(
906 904
                                 predialysis.weight_before -
907 905
                                   predialysis.additional_weight
908 906
                               ).toFixed(1)
909
-                            : "/"
907
+                            : "未称重"
910 908
                         }}
911 909
                       </span>
912 910
                        <span v-if="org_id==10447 || org_id == 9675">
@@ -1195,7 +1193,6 @@
1195 1193
 
1196 1194
                   </div>
1197 1195
 
1198
-
1199 1196
                   <div class="row" style="padding: 2px 0; line-height: 23px">
1200 1197
                     <div class="inline_block">
1201 1198
                       备注:
@@ -1281,7 +1278,7 @@
1281 1278
                         <td width="50" v-if="org_id != 10121">
1282 1279
                           <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490"> 电导度<br />(ms/cm)</span>
1283 1280
                           <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span>
1284
-                          <span v-if="org_id == 0 || org_id == 10490"> 置换液的速度<br />(ml/h)</span>
1281
+                          <span v-if="org_id == 10490"> 置换液的速度<br />(ml/h)</span>
1285 1282
                         </td>
1286 1283
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1287 1284
                         <td width="50" v-if="org_id == 10375 || org_id == 0">置换率<br />(ml/h)</td>
@@ -2160,7 +2157,7 @@
2160 2157
                                 afterdialysis.weight_after -
2161 2158
                                   afterdialysis.additional_weight
2162 2159
                               ).toFixed(1)
2163
-                            : "/"
2160
+                            : "未称重"
2164 2161
                         }}
2165 2162
                       </span>
2166 2163
                       </div>
@@ -2178,7 +2175,12 @@
2178 2175
                             ? afterdialysis.weight_loss
2179 2176
                             : "/"
2180 2177
                         }} -->
2181
-                        {{(predialysis.weight_before - afterdialysis.weight_after).toFixed(2)}}
2178
+                        <span v-if="predialysis.weight_before !=0 && afterdialysis.weight_after !=0">
2179
+                          {{(predialysis.weight_before - afterdialysis.weight_after).toFixed(2)}}
2180
+                        </span>
2181
+                        <span v-else>
2182
+                          /
2183
+                        </span>
2182 2184
                       </div>
2183 2185
                       kg
2184 2186
                     </div>
@@ -2547,9 +2549,9 @@
2547 2549
                         class="under_line"
2548 2550
                         style="width: 80px; text-align: center"
2549 2551
                       >
2550
-                      <span
2552
+                        <span
2551 2553
                             style="height: 30px; display: inline-block"
2552
-                            v-if="setAdminUserES(doctor_advices[0].advice_doctor) == ''"
2554
+                            v-if=" setAdminUserES(doctor_advices[0].advice_doctor) == ''"
2553 2555
                           >
2554 2556
                             {{ getAdminUser(doctor_advices[0].advice_doctor) }}
2555 2557
                           </span>
@@ -2566,7 +2568,7 @@
2566 2568
                 </td>
2567 2569
               </tr>
2568 2570
               <!--  -->
2569
-              <tr v-if="(org_id ==10677 || org_id == 0) && dialysisOrder.quality_nurse_id>0">
2571
+              <tr v-if="dialysisOrder != null&&(org_id ==10677 || org_id == 0) && dialysisOrder.quality_nurse_id>0">
2570 2572
                 <td colspan="7" >
2571 2573
                   <div
2572 2574
                     class="row"
@@ -2622,12 +2624,12 @@
2622 2624
         </div>
2623 2625
 
2624 2626
          <!-- 患者签名 -->
2625
-         <div style="position: relative; left: 70%;top: 20px;">
2627
+         <div style="position: relative; left: 70%;top: 10px;width: 250px;">
2626 2628
           患者签名:
2627 2629
           <div class="under_line" style="width: 120px;">
2628 2630
             <img
2629
-              v-if="dialysisOrder.url!=''"
2630
-              style="height: 50px"
2631
+              v-if="dialysisOrder != null&& dialysisOrder.url!=''"
2632
+              style="height: 60px"
2631 2633
               :src="dialysisOrder == null? 0: dialysisOrder.url"
2632 2634
               alt=""
2633 2635
               srcset=""
@@ -2638,7 +2640,6 @@
2638 2640
     </div>
2639 2641
 
2640 2642
 
2641
-
2642 2643
     <div id="dialysis-print-box-1-2" class="dialysis-print-order print-template-two print_page_main_content" style="position: relative;">
2643 2644
       <div class="order-yy-name">{{ orgname }}</div>
2644 2645
       <div class="order_title">血液净化科医嘱及执行单</div>
@@ -2993,219 +2994,305 @@ export default {
2993 2994
     },
2994 2995
 
2995 2996
     checkData() {
2996
-      if (this.receiverTreatmentAccess.way == 0) {
2997
-        this.$message.error("入科方式未填");
2998
-      } else if (this.predialysis.symptom_before_dialysis == "") {
2999
-        this.$message.error("透前症状未填");
3000
-      } else if (this.predialysis.temperature == "") {
3001
-        this.$message.error("透前体温未填");
3002
-      } else if (this.predialysis.pulse_frequency == "") {
3003
-        this.$message.error("透前脉搏未填");
3004
-      } else if (this.predialysis.breathing_rate == "") {
3005
-        this.$message.error("透前呼吸频率未填");
3006
-      } else if (
2997
+      var checkDate =[]
2998
+      if (this.predialysis.temperature == 0) {
2999
+        const obj = "透前体温"
3000
+        checkDate.push(obj)
3001
+      } if (this.predialysis.pulse_frequency == "") {
3002
+        const obj1 = "透前脉搏"
3003
+        checkDate.push(obj1)
3004
+      } if (this.predialysis.breathing_rate == "") {
3005
+         const obj2 = "透前呼吸频率"
3006
+         checkDate.push(obj2)
3007
+      } if (
3007 3008
         this.predialysis.systolic_blood_pressure == 0 ||
3008 3009
         this.predialysis.diastolic_blood_pressure == 0
3009 3010
       ) {
3010
-        this.$message.error("透前血压未填完整");
3011
-      } else if (this.predialysis.puncture_way == "") {
3012
-        this.$message.error("穿刺方式未填");
3013
-      } else if (this.predialysis.puncture_needle == "") {
3014
-        this.$message.error("穿刺针未填");
3015
-      } else if (
3016
-        this.predialysis.blood_access_part_id == "" &&
3017
-        this.predialysis.blood_access_part_opera_name == ""
3018
-      ) {
3019
-        this.$message.error("血管通路未填");
3020
-      } else if (this.predialysis.internal_fistula == "") {
3021
-        this.$message.error("透前内瘘未填");
3022
-      } else if (this.predialysis.catheter == "") {
3023
-        this.$message.error("透前导管未填");
3024
-      } else if (this.prescription.mode_id == "") {
3025
-        this.$message.error("透析方式未填");
3026
-      } else if (
3027
-        this.prescription.displace_liqui_part == 0 &&
3028
-        this.prescription.mode_id == 2
3029
-      ) {
3030
-        this.$message.error("置换方式未填");
3031
-      } else if (
3032
-        this.prescription.displace_liqui_value == 0 &&
3033
-        this.prescription.mode_id == 2
3034
-      ) {
3035
-        this.$message.error("置换量未填");
3036
-      } else if (this.prescription.blood_flow_volume == 0) {
3037
-        this.$message.error("血流量未填");
3038
-      } else if (
3011
+        const obj3 = "透前血压"
3012
+        checkDate.push(obj3)
3013
+      } if(this.predialysis.puncture_way == ""){
3014
+        const obj4 = "穿刺方式"
3015
+        checkDate.push(obj4)
3016
+      } if(this.predialysis.puncture_needle == ""){
3017
+        const obj5 = "穿刺针"
3018
+        checkDate.push(obj5)
3019
+      } if (
3039 3020
         this.prescription.dialysis_duration_hour == 0 &&
3040 3021
         this.prescription.dialysis_duration_minute == 0
3041 3022
       ) {
3042
-        this.$message.error("透析时间未填");
3043
-      } else if (
3044
-        this.prescription.dialyzer_perfusion_apparatus == "" &&
3045
-        this.prescription.dialysis_dialyszers == ""
3046
-      ) {
3047
-        this.$message.error("透析器未填");
3048
-      } else if (this.prescription.dialysis_irrigation == "") {
3049
-        this.$message.error("灌流器未填");
3050
-      } else if (
3051
-        this.prescription.plasma_separator == "" &&
3052
-        this.org_id == 9538
3053
-      ) {
3054
-        this.$message.error("血浆分离器未填");
3055
-      } else if (
3056
-        this.prescription.bilirubin_adsorption_column == "" &&
3057
-        this.org_id == 9538
3023
+        const obj6 = "透析时间"
3024
+        checkDate.push(obj6)
3025
+      } if(this.dialysisOrder && this.dialysisOrder.DeviceNumber.number ==''&&
3026
+          this.patientInfo.DialysisSchedule.device_number.number ==''
3027
+      ){
3028
+        const obj7 = "透析机号"
3029
+        checkDate.push(obj7)
3030
+      } if(this.predialysis.machine_type ==0){
3031
+        const obj8 = "透析机型"
3032
+        checkDate.push(obj8)
3033
+      } if( this.predialysis.blood_access_part_id == "" &&
3034
+        this.predialysis.blood_access_part_opera_name == ""){
3035
+          const obj9 = "血管通路"
3036
+        checkDate.push(obj9)
3037
+      } if(this.predialysis.internal_fistula == "" && this.predialysis.catheter == ""){
3038
+        const obj10 = "透前内瘘"
3039
+        checkDate.push(obj10)
3040
+      } if (this.predialysis.catheter == "" && this.predialysis.internal_fistula == "") {
3041
+        const obj11 = "透前导管"
3042
+        checkDate.push(obj11)
3043
+      } if (this.prescription.mode_id == 0) {
3044
+        const obj12 = "透析方式"
3045
+        checkDate.push(obj12)
3046
+      } if (this.prescription.displace_liqui_part == 0 &&
3047
+          this.prescription.mode_id == 2
3048
+      ){
3049
+        const obj13 = "置换方式"
3050
+        checkDate.push(obj13)
3051
+      } if(this.prescription.displace_liqui_value == 0 &&
3052
+          this.prescription.mode_id == 2
3053
+      ){
3054
+        const obj14 = "置换量"
3055
+        checkDate.push(obj14)
3056
+      } if(this.prescription.displace_speed == 0){
3057
+        const obj15 = "置换速度"
3058
+        checkDate.push(obj15)
3059
+      } if(this.dialysisOrder&& this.prescription.dialyzer_perfusion_apparatus =='' &&
3060
+          this.prescription.dialysis_dialyszers =='' && this.dialysisOrder.dialysis_dialyszers ==''
3061
+      ){
3062
+        const obj16 = "透析(滤)器"
3063
+        checkDate.push(obj16)
3064
+      } if(this.dialysisOrder && this.prescription.dialysis_irrigation =='' &&
3065
+            this.dialysisOrder.dialysis_irrigation ==''
3066
+      ){
3067
+        const obj17 = "灌流器"
3068
+        checkDate.push(obj17)
3069
+      } if(this.predialysis.symptom_before_dialysis ==''){
3070
+        const obj18 = "透前症状"
3071
+        checkDate.push(obj18)
3072
+      } if(this.lastafterdialysis.weight_after == ''){
3073
+        const obj19 = "上次透后体重"
3074
+        checkDate.push(obj19)
3075
+      } if(this.predialysis.weight_before == 0) {
3076
+        const obj20 = "透前体重"
3077
+        checkDate.push(obj20)
3078
+      } if(this.prescription.prescription_water == 0) {
3079
+        const obj21 = "处方脱水量"
3080
+        checkDate.push(obj21)
3081
+      } if(this.predialysis.dry_weight == 0) {
3082
+        const obj22 = "干体重"
3083
+        checkDate.push(obj22)
3084
+      } if (this.prescription.calcium == 0) {
3085
+        const obj25 = "钙"
3086
+        checkDate.push(obj25)
3087
+      } if (this.prescription.sodium == 0) {
3088
+        const obj26 = "钠"
3089
+        checkDate.push(obj26)
3090
+      } if (this.prescription.kalium == 0) {
3091
+        const obj27 = "钾"
3092
+        checkDate.push(obj27)
3093
+      } if (this.prescription.bicarbonate == 0) {
3094
+        const obj28 = "碳酸氢根"
3095
+        checkDate.push(obj28)
3096
+      } if (this.prescription.dialysate_flow == 0) {
3097
+        const obj29 = "流量"
3098
+        checkDate.push(obj29)
3099
+      } if(this.prescription.anticoagulant == 0) {
3100
+        const obj23 = "抗凝剂"
3101
+        checkDate.push(obj23)
3102
+      } if(this.prescription.anticoagulant_shouji == 0 &&
3103
+          this.prescription.anticoagulant != 5 &&
3104
+          this.prescription.anticoagulant != 1
3058 3105
       ) {
3059
-        this.$message.error("胆红素吸附柱未填");
3060
-      } else if (this.predialysis.weight_before == 0) {
3061
-        this.$message.error("透前体重未填");
3062
-      } else if (this.predialysis.dry_weight == 0) {
3063
-        this.$message.error("干体重未填");
3064
-      } else if (this.prescription.target_ultrafiltration == 0) {
3065
-        this.$message.error("计划超滤量未填");
3066
-      } else if (this.prescription.calcium == 0) {
3067
-        this.$message.error("钙未填");
3068
-      } else if (this.prescription.sodium == 0) {
3069
-        this.$message.error("钠未填");
3070
-      } else if (this.prescription.kalium == 0) {
3071
-        this.$message.error("钾未填");
3072
-      } else if (this.prescription.bicarbonate == 0) {
3073
-        this.$message.error("碳酸氢根未填");
3074
-      } else if (this.prescription.dialysate_flow == 0) {
3075
-        this.$message.error("透析液流量未填");
3076
-      } else if (this.prescription.anticoagulant == 0) {
3077
-        this.$message.error("抗凝剂未填");
3078
-      } else if (
3106
+        const obj24 = "首剂"
3107
+        checkDate.push(obj24)
3108
+      }
3109
+      // if(this.prescription.anticoagulant_weichi ==0 &&
3110
+      //       this.prescription.anticoagulant != 1
3111
+      // ){
3112
+      //   const obj30 ='维持'
3113
+      //   checkDate.push(obj30)
3114
+
3115
+      // }
3116
+      if (
3079 3117
         this.prescription.anticoagulant_gaimingcheng == "" &&
3080 3118
         this.prescription.anticoagulant == 5
3081 3119
       ) {
3082
-        this.$message.error("钙名称未填");
3083
-      } else if (
3120
+        const obj31 ='钙名称'
3121
+        checkDate.push(obj31);
3122
+      } if (
3084 3123
         this.prescription.anticoagulant_gaijiliang == "" &&
3085 3124
         this.prescription.anticoagulant == 5
3086 3125
       ) {
3087
-        this.$message.error("钙剂量未填");
3088
-      } else if (this.afterdialysis.temperature == 0) {
3089
-        this.$message.error("透后体温未填");
3090
-      } else if (this.afterdialysis.pulse_frequency == 0) {
3091
-        this.$message.error("透后脉搏未填");
3092
-      } else if (this.afterdialysis.breathing_rate == 0) {
3093
-        this.$message.error("透后呼吸频率未填");
3094
-      } else if (
3126
+        const obj32 ='钙剂量'
3127
+        checkDate.push(obj32);
3128
+      } if(this.prescription.anticoagulant_zongliang ==''&&
3129
+          this.prescription.anticoagulant != 5 &&
3130
+          this.prescription.anticoagulant != 1
3131
+      ){
3132
+        const obj33 ='总量'
3133
+        checkDate.push(obj33);
3134
+      } if(this.prescription.warsh_count ==''){
3135
+        const obj34 ='Ns冲洗量'
3136
+        checkDate.push(obj34);
3137
+      } if(this.prescription.washing_time ==''){
3138
+        const obj35 ='q'
3139
+        checkDate.push(obj35);
3140
+      } if(this.predialysis.remark ==''){
3141
+        const obj35 ='备注'
3142
+        checkDate.push(obj35);
3143
+      } if (this.afterdialysis.temperature == 0) {
3144
+        const obj36 ='透后体温'
3145
+        checkDate.push(obj36);
3146
+      } if (this.afterdialysis.pulse_frequency == 0) {
3147
+        const obj37 ='透后脉搏'
3148
+        checkDate.push(obj37);
3149
+      } if (this.afterdialysis.breathing_rate == 0) {
3150
+        const obj38 ='透后呼吸频率'
3151
+        checkDate.push(obj38);
3152
+      } if (
3095 3153
         this.afterdialysis.systolic_blood_pressure == 0 ||
3096 3154
         this.afterdialysis.diastolic_blood_pressure == 0
3097 3155
       ) {
3098
-        this.$message.error("透后血压未填完整");
3099
-      } else if (
3156
+        const obj39 ='透后血压'
3157
+        checkDate.push(obj39);
3158
+      } if (
3100 3159
         this.afterdialysis.actual_treatment_hour == 0 &&
3101 3160
         this.afterdialysis.actual_treatment_minute == 0
3102 3161
       ) {
3103
-        this.$message.error("实际治疗时间未填");
3104
-      } else if (this.afterdialysis.cruor == "") {
3105
-        this.$message.error("透析器凝血未填");
3106
-      } else if (this.afterdialysis.internal_fistula == "") {
3107
-        this.$message.error("透后内瘘未填");
3108
-      } else if (this.afterdialysis.catheter == "") {
3109
-        this.$message.error("透后导管未填");
3110
-      } else if (this.afterdialysis.weight_after == 0) {
3111
-        this.$message.error("透后体重未填");
3112
-      } else if (this.afterdialysis.weight_loss == 0) {
3113
-        this.$message.error("透后体重减少未填");
3114
-      } else if (this.afterdialysis.dialysis_intakes == 0) {
3115
-        this.$message.error("透析中入量未填");
3116
-      } else if (this.afterdialysis.actual_ultrafiltration == 0) {
3117
-        this.$message.error("实际超滤量未填");
3118
-      } else if (this.summary.dialysis_summary == "") {
3119
-        this.$message.error("透析小结未填");
3120
-      } else if (
3162
+        const obj40 ='实际治疗时间'
3163
+        checkDate.push(obj40);
3164
+      } if (this.afterdialysis.cruor == "") {
3165
+        const obj41 ='透析器凝血'
3166
+        checkDate.push(obj41);
3167
+      } if (this.afterdialysis.internal_fistula == "" && this.afterdialysis.catheter == "") {
3168
+        const obj42 ='透后内瘘导管'
3169
+        checkDate.push(obj42);
3170
+      }
3171
+      // if (this.afterdialysis.catheter == "") {
3172
+      //   const obj43 ='透后导管'
3173
+      //   checkDate.push(obj43);
3174
+      // }
3175
+      if (this.afterdialysis.weight_after == 0) {
3176
+        const obj44 ='透后体重'
3177
+        checkDate.push(obj44);
3178
+      } if (this.afterdialysis.weight_loss == 0) {
3179
+        const obj45 ='透后体重减少'
3180
+        checkDate.push(obj45);
3181
+      } if (this.afterdialysis.dialysis_intakes == 0) {
3182
+        const obj46 ='透析中入量'
3183
+        checkDate.push(obj46);
3184
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
3185
+        const obj47 ='实际超滤量'
3186
+        checkDate.push(obj47);
3187
+      } if(this.afterdialysis.stroke_volume == 0){
3188
+        const obj49 ='透析中出量'
3189
+        checkDate.push(obj49);
3190
+      } if (this.summary.dialysis_summary == "") {
3191
+        const obj50 ='透析小结'
3192
+        checkDate.push(obj50);
3193
+      } if (
3121 3194
         this.dialysisOrder == null ||
3122 3195
         this.dialysisOrder.puncture_nurse == 0
3123 3196
       ) {
3124
-        this.$message.error("穿刺护士未填");
3125
-      } else if (
3197
+        const obj51 ='穿刺护士'
3198
+        checkDate.push(obj51);
3199
+      } if (
3126 3200
         this.dialysisOrder == null ||
3127 3201
         this.dialysisOrder.start_nurse == 0
3128 3202
       ) {
3129
-        this.$message.error("治疗护士未填");
3130
-      } else if (this.dialysisOrder == null && this.check.creater == 0) {
3131
-        this.$message.error("核对人员未填");
3203
+        const obj52 ='治疗护士'
3204
+        checkDate.push(obj52);
3205
+      } if (this.dialysisOrder == null|| this.check.creater == 0) {
3206
+        const obj53 ='核对人员'
3207
+        checkDate.push(obj53);
3132 3208
       } else if (
3133 3209
         this.dialysisOrder != null &&
3134 3210
         this.dialysisOrder.start_nurse == this.check.modifier &&
3135 3211
         this.check.creater == 0
3136 3212
       ) {
3137
-        this.$message.error("核对人员未填");
3213
+        const obj53 ='核对人员'
3214
+        checkDate.push(obj53);
3138 3215
       } else if (
3139 3216
         this.dialysisOrder != null &&
3140 3217
         this.dialysisOrder.start_nurse == this.check.creater &&
3141 3218
         this.check.modifier == 0
3142 3219
       ) {
3143
-        this.$message.error("核对人员未填");
3144
-      } else if (
3220
+        const obj53 ='核对人员'
3221
+        checkDate.push(obj53);
3222
+      } if (
3145 3223
         this.dialysisOrder != null &&
3146 3224
         this.dialysisOrder.start_nurse != this.check.creater &&
3147 3225
         this.dialysisOrder.start_nurse != this.check.modifier &&
3148 3226
         this.check.creater == 0
3149 3227
       ) {
3150
-        this.$message.error("核对人员未填");
3151
-      } else if (
3228
+        const obj54 ='穿刺护士'
3229
+        checkDate.push(obj54);("核对人员未填");
3230
+      } if (
3152 3231
         this.dialysisOrder == null ||
3153 3232
         this.dialysisOrder.finish_nurse == 0
3154 3233
       ) {
3155
-        this.$message.error("下机护士未填");
3156
-      } else if (this.prescription.creater == 0) {
3157
-        this.$message.error("医生签名未填");
3158
-      } else if (this.tableAdvice.length > 0) {
3159
-        let num = 0;
3160
-        this.tableAdvice.map((item) => {
3161
-          if (item.id > 0 && (item.created_time || item.start_time)) {
3162
-            this.users.map((it) => {
3163
-              if (it.id == item.advice_doctor) {
3164
-                if (it.user_type == 3) {
3165
-                  num++;
3166
-                  this.$message.closeAll();
3167
-                  this.$message.error("存在不是医生保存的医嘱");
3168
-                } else if (
3169
-                  it.id == item.execution_staff &&
3170
-                  item.execution_staff > 0
3171
-                ) {
3172
-                  if (it.user_type == 2) {
3173
-                    num++;
3174
-                    this.$message.closeAll();
3175
-                    this.$message.error("存在不是护士执行的医嘱");
3176
-                  }
3177
-                } else if (it.id == item.checker && item.checker > 0) {
3178
-                  if (it.user_type == 2) {
3179
-                    num++;
3180
-                    this.$message.closeAll();
3181
-                    this.$message.error("存在不是护士核对的医嘱");
3182
-                  }
3183
-                }
3184
-              } else if (
3185
-                it.id == item.execution_staff &&
3186
-                item.execution_staff > 0
3187
-              ) {
3188
-                if (it.user_type == 2) {
3189
-                  num++;
3190
-                  this.$message.closeAll();
3191
-                  this.$message.error("存在不是护士执行的医嘱");
3192
-                }
3193
-              } else if (it.id == item.checker && item.checker > 0) {
3194
-                if (it.user_type == 2) {
3195
-                  num++;
3196
-                  this.$message.closeAll();
3197
-                  this.$message.error("存在不是护士核对的医嘱");
3198
-                }
3199
-              }
3200
-            });
3234
+        const obj55 ='下机护士'
3235
+        checkDate.push(obj55);
3236
+      } if (this.prescription.creater == 0) {
3237
+        const obj56 ='医生签名'
3238
+        checkDate.push(obj56);
3239
+      } if(this.dialysisOrder != null && this.dialysisOrder.url!=''){
3240
+        const obj57 ='患者签名'
3241
+        checkDate.push(obj57);
3242
+      } if(this.doctor_advices.length > 0){
3243
+        this.doctor_advices.map((item) =>{
3244
+          if(item.id > 0 && (item.created_time || item.start_time)){
3245
+            if(item.execution_staff ==0 || item.advice_doctor ==0 || item.checker ==0){
3246
+              const obj58 = '执行人员,医生签名,核对人员'
3247
+              checkDate.push(obj58)
3248
+            }
3201 3249
           }
3202
-        });
3203
-        if (num == 0) {
3204
-          this.$message.success("核对完成");
3205
-        }
3206
-      } else {
3207
-        this.$message.success("核对完成");
3250
+        })
3208 3251
       }
3252
+      this.getcheckData(checkDate)
3253
+      // if(this.monitors.length >0){
3254
+      //     for(let i in this.monitors){
3255
+      //       if(this.monitors[i].systolic_blood_pressure ==0 ||
3256
+      //             this.monitors.diastolic_blood_pressure==0){
3257
+      //         const obj62 = '监测第'+((i*1)+1)+'行血压'
3258
+      //         checkDate.push(obj62)
3259
+      //       } if(this.monitors[i].pulse_frequency ==0){
3260
+      //         const obj60 = '监测第'+((i*1)+1)+'行脉搏'
3261
+      //         checkDate.push(obj60)
3262
+      //       } if(this.monitors[i].breathing_rate ==0){
3263
+      //         const obj61 = '监测第'+((i*1)+1)+'行呼吸'
3264
+      //         checkDate.push(obj61)
3265
+      //       }  if(this.monitors[i].arterial_pressure ==0){
3266
+      //         const obj63 = '监测第'+((i*1)+1)+'动脉压'
3267
+      //         checkDate.push(obj63)
3268
+      //       }
3269
+      //       if(this.monitors[i].venous_pressure ==0 ){
3270
+      //         const obj64 = '监测第'+((i*1)+1)+'行静脉压'
3271
+      //         checkDate.push(obj64)
3272
+      //       }
3273
+      //       if(this.monitors[i].blood_flow_volume ==0){
3274
+      //         const obj65 = '监测第'+((i*1)+1)+'行血流量'
3275
+      //         checkDate.push(obj65)
3276
+      //       } if(this.monitors[i].transmembrane_pressure ==0){
3277
+      //         const obj66 = '监测第'+((i*1)+1)+'行跨膜压'
3278
+      //         checkDate.push(obj66)
3279
+      //       }
3280
+      //       if(this.monitors[i].dialysate_temperature == 0){
3281
+      //         const obj67 = '监测第'+((i*1)+1)+'行透析液温度'
3282
+      //         checkDate.push(obj67)
3283
+      //       } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
3284
+      //         const obj53 = '监测第'+((i*1)+1)+'行超滤量'
3285
+      //         checkDate.push(obj53)
3286
+      //       }
3287
+      //       if(this.monitors[i].sodium_concentration ==0 ){
3288
+      //         // this.monitors[i].temperature == 0
3289
+      //         const obj59 = '监测第'+((i*1)+1)+'行钠浓度'
3290
+      //         checkDate.push(obj59)
3291
+      //       }
3292
+
3293
+      //     }
3294
+      // }
3295
+
3209 3296
     },
3210 3297
     getDisplaceLiquiPart: function (val) {
3211 3298
       let displace_liqui_part_name = "/";
@@ -3874,7 +3961,18 @@ export default {
3874 3961
         return "0.0";
3875 3962
       }
3876 3963
     },
3877
-
3964
+    getcheckData(val){
3965
+      if(val.length >0){
3966
+        let message = `记录单未填数据:<br/>&nbsp;${val.join("<br/>&nbsp;")}`;
3967
+        this.$alert(message, '提示', {
3968
+          confirmButtonText: '确定',
3969
+          type: 'warning',
3970
+          dangerouslyUseHTMLString: true,
3971
+        });
3972
+      }else{
3973
+        this.$message.success('核对完成')
3974
+      }
3975
+    }
3878 3976
   },
3879 3977
   watch: {
3880 3978
     "patientInfo.gender": function () {
@@ -4026,13 +4124,13 @@ export default {
4026 4124
   width: 50%;
4027 4125
 }
4028 4126
 
4029
-.under_line_two::before {
4127
+/* .under_line_two::before {
4030 4128
   content: "\00A0";
4031 4129
 }
4032 4130
 
4033 4131
 .under_line_two::after {
4034 4132
   content: "\00A0";
4035
-}
4133
+} */
4036 4134
 
4037 4135
 .under_line {
4038 4136
   display: inline-block;
@@ -4042,13 +4140,13 @@ export default {
4042 4140
   width: 50%;
4043 4141
 }
4044 4142
 
4045
-.under_line::before {
4143
+/* .under_line::before {
4046 4144
   content: "\00A0";
4047 4145
 }
4048 4146
 
4049 4147
 .under_line::after {
4050 4148
   content: "\00A0";
4051
-}
4149
+} */
4052 4150
 
4053 4151
 .flex {
4054 4152
   display: -webkit-box;

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue View File

@@ -592,7 +592,7 @@
592 592
                         <div>
593 593
                           <span class="under_line" style="width:50px;display:inline-block">
594 594
                             {{ afterdialysis.dialysis_during ? afterdialysis.dialysis_during : '/' }}
595
-                          </span><span v-if="org_id==10028">ml</span><span v-else>g</span>
595
+                          </span><span>g</span>
596 596
                         </div>
597 597
                       </td>
598 598
                       <td width="100" style="border:none;padding-left:5px">透析器凝血:</td>

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue View File

@@ -1020,16 +1020,16 @@
1020 1020
                             : "/"
1021 1021
                            }}
1022 1022
                          </span> -->
1023
-                         <span>
1023
+                         <span v-if="predialysis.weight_before !=0 && afterdialysis.weight_after !=0">
1024 1024
                           {{(predialysis.weight_before - afterdialysis.weight_after).toFixed(2)}}
1025 1025
                          </span>
1026
-
1026
+                         <span v-else></span>
1027 1027
                       </div>
1028 1028
                       kg
1029 1029
                     </div>
1030 1030
 
1031 1031
                     <div class="inline_block" style="flex: 1">
1032
-                      透析中入量(L):
1032
+                      透析中入量(g):
1033 1033
                       <div class="under_line"
1034 1034
                         style="width: 70px; text-align: center"
1035 1035
                       >

+ 30 - 31
src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue View File

@@ -4,7 +4,7 @@
4 4
     <el-button type="primary" @click="toUpload">一键上传</el-button>
5 5
 
6 6
     <div id="dialysis-print-box-1"  ref="pdfContent">
7
-      <div id="dialysis-print-box-1-1"
7
+      <div id="dialysis-print-box-1-1" style="box-sizing: border-box;"
8 8
         class="dialysis-print-order print-template-two print_page_main_content"
9 9
       >
10 10
         <div style="display: inline-block; width: 100%; text-align: center">
@@ -98,7 +98,7 @@
98 98
           </div>
99 99
         </div>
100 100
 
101
-        <div class="row">
101
+        <div class="row" style="width: 99%;">
102 102
           <table class="proj_table">
103 103
             <tbody>
104 104
               <tr>
@@ -204,7 +204,7 @@
204 204
                     </div>
205 205
                     <div class="inline_block" style="flex: 1.5;">
206 206
                       穿刺方式:
207
-                      <div class="under_line" style="width: 68%;white-space: normal;">
207
+                      <div class="under_line" style="width: 65%;white-space: normal;">
208 208
                         {{predialysis.puncture_way ? predialysis.puncture_way : '/'}}
209 209
                       </div>
210 210
                     </div>
@@ -213,7 +213,7 @@
213 213
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
214 214
                     <div class="inline_block" style="flex: 1;">
215 215
                       血管通路:
216
-                      <div class="under_line" style="width: 68%;white-space: normal;">
216
+                      <div class="under_line" style="width: 65%;white-space: normal;">
217 217
                         {{ predialysis.blood_access_part_id }}
218 218
                         {{ predialysis.blood_access_part_opera_name }}
219 219
                       </div>
@@ -270,7 +270,7 @@
270 270
                       <div class="under_line"
271 271
                         style="width: 70px; text-align: center"
272 272
                       >
273
-                        <span> 
273
+                        <span>
274 274
                           <!-- {{
275 275
                           prescription.displace_liqui_value
276 276
                             ? prescription.displace_liqui_value
@@ -381,10 +381,10 @@
381 381
                       上次透后体重:
382 382
                       <div class="under_line" style="width: 50px; text-align: center">
383 383
                         <!-- {{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}} -->
384
-                       
385
-                        
386
-                        <span v-if="lastafterdialysis.weight_after>0">{{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}}</span> 
387
-                        <span v-if="lastafterdialysis.weight_after<=0">{{afterdialysis.last_after_weight?afterdialysis.last_after_weight:"未称重"}}</span> 
384
+
385
+
386
+                        <span v-if="lastafterdialysis.weight_after>0">{{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}}</span>
387
+                        <span v-if="lastafterdialysis.weight_after<=0">{{afterdialysis.last_after_weight?afterdialysis.last_after_weight:"未称重"}}</span>
388 388
                       </div>
389 389
                       kg
390 390
                     </div>
@@ -410,13 +410,13 @@
410 410
                           <!-- {{ (predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2)}} -->
411 411
                           <span v-if="lastafterdialysis.weight_after>0"
412 412
                             >{{ (predialysis.weight_before - predialysis.additional_weight - lastafterdialysis.weight_after).toFixed(2)}}
413
-                          </span> 
413
+                          </span>
414 414
                           <span v-if="lastafterdialysis.weight_after<=0 && afterdialysis.last_after_weight>0">
415 415
                             {{ (predialysis.weight_before - predialysis.additional_weight -afterdialysis.last_after_weight).toFixed(2)}}
416
-                          </span> 
416
+                          </span>
417 417
                           <span v-if="lastafterdialysis.weight_after<=0 && afterdialysis.last_after_weight==0">
418 418
                             /
419
-                          </span> 
419
+                          </span>
420 420
                         </span>
421 421
                       </div>
422 422
                       kg
@@ -841,7 +841,7 @@
841 841
           </table>
842 842
         </div>
843 843
 
844
-        <div class="row" style="margin-top: -11px; position: relative">
844
+        <div class="row" style="margin-top: -11px; position: relative;width: 99%;">
845 845
           <table class="proj_table">
846 846
             <tbody>
847 847
               <tr>
@@ -1050,10 +1050,9 @@
1050 1050
                     >
1051 1051
                       治疗小结:
1052 1052
                       <div class="under_line"
1053
-                        style=" width: 860px;
1053
+                        style=" width: 90%;
1054 1054
                           line-height: 25px;
1055 1055
                           text-align: left;
1056
-                          margin-left: 2px;
1057 1056
                           display: inline-block;
1058 1057
                           white-space: normal;
1059 1058
                         "
@@ -1074,10 +1073,9 @@
1074 1073
                       <div
1075 1074
                         class="under_line"
1076 1075
                         style="
1077
-                          width: 860px;
1076
+                          width: 90%;
1078 1077
                           line-height: 25px;
1079 1078
                           text-align: left;
1080
-                          margin-left: 2px;
1081 1079
                           display: inline-block;
1082 1080
                           white-space: normal;
1083 1081
                         "
@@ -1124,7 +1122,7 @@
1124 1122
                           }}</span
1125 1123
                         >
1126 1124
                         <img
1127
-                          style="height: 30px"
1125
+                          style="height: 40px"
1128 1126
                           :src="
1129 1127
                             setAdminUserES(
1130 1128
                               dialysisOrder == null
@@ -1161,7 +1159,7 @@
1161 1159
                           }}</span
1162 1160
                         >
1163 1161
                         <img
1164
-                          style="height: 30px"
1162
+                          style="height: 40px"
1165 1163
                           :src="
1166 1164
                             setAdminUserES(
1167 1165
                               dialysisOrder == null
@@ -1200,7 +1198,7 @@
1200 1198
                           }}</span
1201 1199
                         >
1202 1200
                         <img
1203
-                          style="height: 30px"
1201
+                          style="height: 40px"
1204 1202
                           :src="
1205 1203
                             setAdminUserES(
1206 1204
                               dialysisOrder == null
@@ -1232,7 +1230,7 @@
1232 1230
                           {{ getAdminUser(check == null ? 0 : check.creater) }}
1233 1231
                         </span>
1234 1232
                         <img
1235
-                          style="height: 30px"
1233
+                          style="height: 40px"
1236 1234
                           :src="
1237 1235
                             setAdminUserES(check == null ? 0 : check.creater)
1238 1236
                           "
@@ -1259,7 +1257,7 @@
1259 1257
                           {{ getAdminUser(check == null ? 0 : check.creater) }}
1260 1258
                         </span>
1261 1259
                         <img
1262
-                          style="height: 30px"
1260
+                          style="height: 40px"
1263 1261
                           :src="
1264 1262
                             setAdminUserES(check == null ? 0 : check.creater)
1265 1263
                           "
@@ -1287,7 +1285,7 @@
1287 1285
                           {{ getAdminUser(check == null ? 0 : check.modifier) }}
1288 1286
                         </span>
1289 1287
                         <img
1290
-                          style="height: 30px"
1288
+                          style="height: 40px"
1291 1289
                           :src="
1292 1290
                             setAdminUserES(check == null ? 0 : check.modifier)
1293 1291
                           "
@@ -1315,7 +1313,7 @@
1315 1313
                           {{ getAdminUser(check == null ? 0 : check.creater) }}
1316 1314
                         </span>
1317 1315
                         <img
1318
-                          style="height: 30px"
1316
+                          style="height: 40px"
1319 1317
                           :src="
1320 1318
                             setAdminUserES(check == null ? 0 : check.creater)
1321 1319
                           "
@@ -1351,7 +1349,7 @@
1351 1349
                           }}
1352 1350
                         </span>
1353 1351
                         <img
1354
-                          style="height: 30px"
1352
+                          style="height: 40px"
1355 1353
                           :src="
1356 1354
                             setAdminUserES(
1357 1355
                               dialysisOrder == null
@@ -1370,14 +1368,15 @@
1370 1368
                       治疗医生:
1371 1369
                       <div class="under_line"
1372 1370
                         style="width: 80px; text-align: center"
1373
-                      >
1371
+                      > 
1372
+                      <!-- {{ getAdminUser(prescription.creater) }} -->
1374 1373
                         <span style="height: 30px; display: inline-block"
1375 1374
                           v-if=" setAdminUserES(prescription.creater) == ''"
1376 1375
                         >
1377 1376
                           {{ getAdminUser(prescription.creater) }}
1378 1377
                         </span>
1379
-                        <img style="height: 30px"
1380
-                          :src="setAdminUserES( prescription.creater)"
1378
+                        <img style="height: 40px"
1379
+                          :src="setAdminUserES(prescription.creater)"
1381 1380
                           alt=""
1382 1381
                           srcset=""
1383 1382
                           v-else
@@ -1999,7 +1998,7 @@ export default {
1999 1998
         return "";
2000 1999
       }
2001 2000
       for (let i = 0; i < this.adminUser.length; i++) {
2002
-        if (this.adminUser[i].id == id) {
2001
+        if (this.adminUser[i].id == id) {        
2003 2002
           return this.adminUser[i].name;
2004 2003
         }
2005 2004
       }
@@ -2205,7 +2204,7 @@ export default {
2205 2204
           this.afterdialysis.complications_other.join(",");
2206 2205
 
2207 2206
         this.prescription = response.data.data.dialysisPrescription;
2208
-        // console.log("透析处方", this.prescription);
2207
+        console.log("透析处方", this.prescription);
2209 2208
         this.receiverTreatmentAccess =
2210 2209
           response.data.data.receiverTreatmentAccess;
2211 2210
         this.prescription.mode = this.modeName(this.prescription.mode_id);
@@ -2772,7 +2771,7 @@ export default {
2772 2771
           cancelButtonText: '取消',
2773 2772
           type: 'warning',
2774 2773
           dangerouslyUseHTMLString: true,
2775
-        })       
2774
+        })
2776 2775
       }else{
2777 2776
         this.$message.success('核对完成')
2778 2777
       }

+ 4 - 4
src/xt_pages/stock/detail/print.vue View File

@@ -60,13 +60,13 @@
60 60
               <td style="line-height: 50px">
61 61
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
62 62
                 <span v-if="type == 2">
63
-                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583 || org_id == 0 || org_id == 10402">
63
+                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583 || org_id == 0 || org_id == 10402 || org_id == 10721 || org_id == 10726 || org_id == 10697">
64 64
                     <!-- {{getStockCount(item.good_id) }} -->
65 65
                     {{getMySelfCount(item.good_id) }}
66 66
                   </span>
67 67
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
68 68
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191  || org_id ==10485">{{getWarehouseOut(item.good_id)}}</span>
69
-                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191 && org_id!=0 && org_id!=10402 && org_id!=10485">{{getStockCount(item.good_id) }}</span>
69
+                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191 && org_id!=0 && org_id!=10402 && org_id!=10485 && org_id!=10721 && org_id!=10726 && org_id!=10697">{{getStockCount(item.good_id) }}</span>
70 70
                 </span>
71 71
 
72 72
                 <span v-if="type == 4"> {{ item.count }}</span>
@@ -95,9 +95,9 @@
95 95
                      {{(getMySelfCount(item.good_id) * item.buy_price).toFixed(2)}}
96 96
                      
97 97
                   </span>
98
-                  <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
98
+                  <span v-if="org_id == 10265 || org_id == 10215 || org_id == 10721 || org_id ==10726 || org_id == 10697 ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
99 99
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{(getWarehouseOut(item.good_id)*item.packing_price).toFixed(2)}}</span>
100
-                  <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919&&org_id!=10215&&org_id!=9671 && org_id!=9675 && org_id!=9679 && org_id!=10188 && org_id!=10217 && org_id!= 9956 && org_id!=10191 && org_id!=10402&& org_id!=0">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
100
+                  <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919&&org_id!=10215&&org_id!=9671 && org_id!=9675 && org_id!=9679 && org_id!=10188 && org_id!=10217 && org_id!= 9956 && org_id!=10191 && org_id!=10402&& org_id!=0 && org_id!=10721 && org_id!=10726 && org_id!=10697">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
101 101
                 </span>
102 102
                 <span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
103 103
               </td>

+ 143 - 33
src/xt_pages/user/Informed/Informedconsent.vue View File

@@ -78,6 +78,10 @@
78 78
                       label="知情同意书模板"
79 79
                       align="center"
80 80
                     >
81
+                    <template slot-scope="scope">
82
+                      <div v-if="org_id == 10731 && scope.row.date =='血液透析知情同意书'">{{ scope.row.date }}</div>
83
+                      <div v-if="org_id !=10731 && scope.row.value !=21">{{ scope.row.date }}</div>
84
+                    </template>
81 85
                     </el-table-column>
82 86
                   </el-table>
83 87
                 </div>
@@ -124,7 +128,7 @@
124 128
                   <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity" @getPatientMeDicalList="getPatientMeDicalList"></Medicalhistory>
125 129
                 </div>
126 130
                 <div v-if="show14">
127
-                  <heal_informed :patient_id ="this.patientID" ref="childSeventy" ::patientTreamentPlan="patientTreamentPlan" @getTreamentPlan="getTreamentPlan"></heal_informed>
131
+                  <heal_informed :patient_id ="this.patientID" ref="childSeventy" :patientTreamentPlan="patientTreamentPlan" @getTreamentPlan="getTreamentPlan"></heal_informed>
128 132
                 </div>
129 133
                 <div v-if="show16">
130 134
                   <criticalpatient_informed2 :patient_id ="this.patientID" ref="childSixty" :patientCritaicalInformedOnePrint="patientCritaicalInformedOnePrint" @getPatientCriticalOneList="getPatientCriticalOneList"></criticalpatient_informed2>
@@ -141,7 +145,12 @@
141 145
                 <div v-if="show20">
142 146
                   <Terminate_informed :patient_id ="this.patientID" ref="childtwoty"></Terminate_informed>
143 147
                 </div>
144
-
148
+                <div v-if="show21">
149
+                  <hemodialysis :patient_id ="this.patientID" ref="childrtwotyone"></hemodialysis>
150
+                </div>
151
+                <div v-if="show22">
152
+                  <Death_informed :patient_id ="this.patientID" ref="childrtwotytwo" :patientDeathPlan="patientDeathPlan" @getPatientDeathRecord="getPatientDeathRecord"></Death_informed>
153
+                </div>
145 154
               </div>
146 155
             </div>
147 156
           </el-tab-pane>
@@ -168,16 +177,17 @@ import dialyzer_informed from './components/dialyzer_informed'//透析器(滤
168 177
 import therapy_informed from './components/therapy_informed'//透析器(滤过)治疗
169 178
 import Medicalhistory from './components/Medicalhistory'
170 179
 import heal_informed from './components/heal_informed'
171
-import criticalpatient_informed from './components/criticalpatient_informed'
180
+import Death_informed from './components/Death_informed'
172 181
 import criticalpatient_informed2 from './components/criticalpatient_informed2'
173 182
 import Disease_diagnosis from './components/Disease_diagnosis'
174 183
 import nonheparin_informed from './components/nonheparin_informed'
175 184
 import CRRT_informed from './components/CRRT_informed'
176 185
 import Terminate_informed from './components/Terminate_informed'
186
+import hemodialysis from './components/hemodialysis'
177 187
 import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,
178 188
   getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,
179 189
   getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed,
180
-  getPatientCriticalList,getPatientCriticalOneList,getTreamentPlan } from '@/api/patient'
190
+  getPatientCriticalList,getPatientCriticalOneList,getTreamentPlan,getPatientDeathRecord } from '@/api/patient'
181 191
 export default {
182 192
   components: {
183 193
     PatientSidebar,
@@ -195,15 +205,17 @@ export default {
195 205
     therapy_informed,
196 206
     Medicalhistory,
197 207
     heal_informed,
198
-    criticalpatient_informed,
208
+    Death_informed,
199 209
     criticalpatient_informed2,
200 210
     Disease_diagnosis,
201 211
     nonheparin_informed,
202 212
     CRRT_informed,
203
-    Terminate_informed
213
+    Terminate_informed,
214
+    hemodialysis
204 215
   },
205 216
   data() {
206 217
     return {
218
+      org_id:'',
207 219
       // patient_id:0,{date:'透析器(滤器)重复使用知情同意书',value:'11'},{date:'危重病人知情同意书',value:'15'},
208 220
       activeName:'second',
209 221
       templates:[{date:'人脸识别知情同意书',value:'1'},{date:'血液透析(滤过、灌流)治疗知情同意书',value:'2'},{date:'深静脉透析导管拔管术知情同意书',value:'3'},{date:'动静脉内瘘穿刺知情同意书',value:'4'},
@@ -213,6 +225,8 @@ export default {
213 225
                 {date:'治疗处理方案知情同意书',value:'14'},{date:'危重病人知情同意书',value:'16'},
214 226
                 // {date:'疾病诊断证明书',value:'17'},{date:'无肝素血液透析风险知情同意书',value:'18'},
215 227
                 // {date:'连续肾脏替代治疗(CRRT)治疗知情同意书',value:'19'},{date:'患方要求终止治疗及风险、责任承担承诺书',value:'20'},
228
+                // {date:'血液透析知情同意书',value:'21'}
229
+                {date:'死亡病例讨论记录',value:'22'}
216 230
       ],
217 231
 
218 232
       face_show:true,
@@ -234,6 +248,8 @@ export default {
234 248
       show17:false,
235 249
       show19:false,
236 250
       show20:false,
251
+      show21:false,
252
+      show22:false,
237 253
       patientID:0,
238 254
       patient:{},
239 255
       tableData:[],
@@ -253,7 +269,8 @@ export default {
253 269
       therapyinformePrint:{},
254 270
       patientCritaicalInformedPrint:{},
255 271
       patientCritaicalInformedOnePrint:{},
256
-      patientTreamentPlan:{}
272
+      patientTreamentPlan:{},
273
+      patientDeathPlan:{}
257 274
     }
258 275
 
259 276
   },
@@ -261,19 +278,20 @@ export default {
261 278
     const id = this.$route.params && this.$route.params.id
262 279
     this.patientID = parseInt(id)
263 280
     console.log("病人id",this.patientID)
281
+    this.org_id = this.$store.getters.xt_user.org.id
264 282
     // this.queryParams.patient_id = this.patientID;
265 283
   },
266 284
   methods: {
267 285
     getlist(){
268 286
 
269
-    getPatientDetailInformedconsent(this.patientID).then(response=>{
270
-      if(response.data.state == 1){
271
-        var patient =  response.data.data.patients
272
-        console.log("patinet",patient)
273
-        this.patient =patient
274
-      }
275
-    })
276
-   },
287
+      getPatientDetailInformedconsent(this.patientID).then(response=>{
288
+        if(response.data.state == 1){
289
+          var patient =  response.data.data.patients
290
+          console.log("patinet",patient)
291
+          this.patient =patient
292
+        }
293
+      })
294
+    },
277 295
 
278 296
    getPatientMeDicalList(){
279 297
       var params = {
@@ -426,6 +444,17 @@ export default {
426 444
         }
427 445
       })
428 446
     },
447
+    getPatientDeathRecord(){
448
+       getPatientDeathRecord().then(response=>{
449
+         if(response.data.state == 1){
450
+            var list = response.data.data.record
451
+          
452
+            this.patientDeathPlan = list
453
+            console.log("list=================",this.patientDeathPlan)
454
+            this.$refs.childrtwotytwo.show(list)
455
+         }
456
+       })
457
+    },
429 458
 
430 459
     rowClick(row, column, event){
431 460
      console.log('1111',row);
@@ -451,7 +480,9 @@ export default {
451 480
           this.show17=false,
452 481
           this.show18=false,
453 482
           this.show19 = false,
454
-          this.show20 = false
483
+          this.show20 = false,
484
+          this.show21 = false,
485
+          this.show22 = false
455 486
           this.getFallOutBedPrintList()
456 487
         }
457 488
         if(row.value==2){
@@ -472,7 +503,9 @@ export default {
472 503
           this.show17=false,
473 504
           this.show18=false,
474 505
           this.show19 = false,
475
-          this.show20 = false
506
+          this.show20 = false,
507
+          this.show21 = false,
508
+          this.show22 = false
476 509
           this.getFilterInformed()
477 510
         }
478 511
         if(row.value==3){
@@ -493,7 +526,9 @@ export default {
493 526
           this.show17=false,
494 527
           this.show18=false,
495 528
           this.show19 = false,
496
-          this.show20 = false
529
+          this.show20 = false,
530
+          this.show21 = false,
531
+          this.show22 = false
497 532
           this.getProfundaInformed()
498 533
         }
499 534
         if(row.value==4){
@@ -514,7 +549,9 @@ export default {
514 549
           this.show17=false,
515 550
           this.show18=false,
516 551
           this.show19 = false,
517
-          this.show20 = false
552
+          this.show20 = false,
553
+          this.show21 = false,
554
+          this.show22 = false
518 555
           this.getArterOvernous()
519 556
         }
520 557
         if(row.value==5){
@@ -535,7 +572,9 @@ export default {
535 572
           this.show17=false,
536 573
           this.show18=false,
537 574
           this.show19 = false,
538
-          this.show20 = false
575
+          this.show20 = false,
576
+          this.show21 = false,
577
+          this.show22 = false
539 578
           this.getHighRiskInformed()
540 579
         }
541 580
         if(row.value==6){
@@ -556,7 +595,9 @@ export default {
556 595
           this.show17=false,
557 596
           this.show18=false,
558 597
           this.show19 = false,
559
-          this.show20 = false
598
+          this.show20 = false,
599
+          this.show21 = false,
600
+          this.show22 = false
560 601
           this.getAnticoagulationInformed()
561 602
         }
562 603
         if(row.value==7){
@@ -577,7 +618,9 @@ export default {
577 618
           this.show17=false,
578 619
           this.show18=false,
579 620
           this.show19 = false,
580
-          this.show20 = false
621
+          this.show20 = false,
622
+          this.show21 = false,
623
+          this.show22 = false
581 624
           this.getCriticalInformed()
582 625
         }
583 626
         if(row.value==8){
@@ -598,7 +641,9 @@ export default {
598 641
           this.show17=false,
599 642
           this.show18=false,
600 643
           this.show19 = false,
601
-          this.show20 = false
644
+          this.show20 = false,
645
+          this.show21 = false,
646
+          this.show22 = false
602 647
           this.getHemoperfusionInformed()
603 648
         }
604 649
         if(row.value==9){
@@ -619,7 +664,9 @@ export default {
619 664
           this.show17=false,
620 665
           this.show18=false,
621 666
           this.show19 = false,
622
-          this.show20 = false
667
+          this.show20 = false,
668
+          this.show21 = false,
669
+          this.show22 = false
623 670
           this.getInformedConsent()
624 671
         }
625 672
         if(row.value==10){
@@ -640,7 +687,9 @@ export default {
640 687
           this.show17=false,
641 688
           this.show18=false,
642 689
           this.show19 = false,
643
-          this.show20 = false
690
+          this.show20 = false,
691
+          this.show21 = false,
692
+          this.show22 = false
644 693
         }
645 694
         // if(row.value==11){
646 695
         //   this.face_show=false
@@ -680,7 +729,9 @@ export default {
680 729
           this.show17=false,
681 730
           this.show18=false,
682 731
           this.show19 = false,
683
-          this.show20 = false
732
+          this.show20 = false,
733
+          this.show21 = false,
734
+          this.show22 = false
684 735
           this.getTherapyInformed()
685 736
         }
686 737
         if(row.value==13){
@@ -701,7 +752,9 @@ export default {
701 752
           this.show17=false,
702 753
           this.show18=false,
703 754
           this.show19 = false,
704
-          this.show20 = false
755
+          this.show20 = false,
756
+          this.show21 = false,
757
+          this.show22 = false
705 758
           this.getPatientMeDicalList()
706 759
         }
707 760
         if(row.value==14){
@@ -722,7 +775,9 @@ export default {
722 775
           this.show17=false,
723 776
           this.show18=false,
724 777
           this.show19 = false,
725
-          this.show20 = false
778
+          this.show20 = false,
779
+          this.show21 = false,
780
+          this.show22 = false
726 781
           this.getTreamentPlan()
727 782
         }
728 783
         // if(row.value==15){
@@ -762,7 +817,9 @@ export default {
762 817
           this.show17=false,
763 818
           this.show18=false,
764 819
           this.show19 = false,
765
-          this.show20 = false
820
+          this.show20 = false,
821
+          this.show21 = false,
822
+          this.show22 = false
766 823
           this.getPatientCriticalOneList()
767 824
         }
768 825
         if(row.value==17){
@@ -783,7 +840,9 @@ export default {
783 840
           this.show17=true,
784 841
           this.show18=false,
785 842
           this.show19 = false,
786
-          this.show20 = false
843
+          this.show20 = false,
844
+          this.show21 = false,
845
+          this.show22 = false
787 846
         }
788 847
         if(row.value==18){
789 848
           this.filter_show=false
@@ -803,7 +862,9 @@ export default {
803 862
           this.show17=false,
804 863
           this.show18=true,
805 864
           this.show19 = false,
806
-          this.show20 = false
865
+          this.show20 = false,
866
+          this.show21 = false,
867
+          this.show22 = false
807 868
         }
808 869
         if(row.value==19){
809 870
           this.filter_show=false
@@ -823,7 +884,9 @@ export default {
823 884
           this.show17=false,
824 885
           this.show18=false,
825 886
           this.show19 = true,
826
-          this.show20 = false
887
+          this.show20 = false,
888
+          this.show21 = false,
889
+          this.show22 = false
827 890
         }
828 891
         if(row.value==20){
829 892
           this.filter_show=false
@@ -843,7 +906,54 @@ export default {
843 906
           this.show17=false,
844 907
           this.show18=false,
845 908
           this.show19 = false,
846
-          this.show20 = true
909
+          this.show20 = true,
910
+          this.show21 = false,
911
+          this.show22 = false
912
+        }
913
+        if(row.value==21){
914
+          this.filter_show=false
915
+          this.face_show=false
916
+          this.profunda_show=false,
917
+          this.arteriovenous_show=false,
918
+          this.Highrisk_show=false,
919
+          this.anticoagulation_show=false,
920
+          this.critical_show=false,
921
+          this.hemoperfusion_show=false,
922
+          this.Bring_show=false,
923
+          this.catheterization_show=false,
924
+          this.therapy_show=false,
925
+          this.history_show=false,
926
+          this.show14=false,
927
+          this.show16=false,
928
+          this.show17=false,
929
+          this.show18=false,
930
+          this.show19 = false,
931
+          this.show20 = false,
932
+          this.show21 = true,
933
+          this.show22 = false
934
+        }
935
+        if(row.value==22){
936
+          this.filter_show=false
937
+          this.face_show=false
938
+          this.profunda_show=false,
939
+          this.arteriovenous_show=false,
940
+          this.Highrisk_show=false,
941
+          this.anticoagulation_show=false,
942
+          this.critical_show=false,
943
+          this.hemoperfusion_show=false,
944
+          this.Bring_show=false,
945
+          this.catheterization_show=false,
946
+          this.therapy_show=false,
947
+          this.history_show=false,
948
+          this.show14=false,
949
+          this.show16=false,
950
+          this.show17=false,
951
+          this.show18=false,
952
+          this.show19 = false,
953
+          this.show20 = false,
954
+          this.show21 = false,
955
+          this.show22 = true
956
+          this.getPatientDeathRecord()
847 957
         }
848 958
     },
849 959
 

+ 268 - 0
src/xt_pages/user/Informed/components/Death_informed.vue View File

@@ -0,0 +1,268 @@
1
+<!-- 抗凝 -->
2
+<template>
3
+  <div style="border:1px solid gainsboro ;padding:10px">
4
+      <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;">
5
+        <!-- <el-button type="primary">主要按钮</el-button> -->
6
+         <el-button type="primary" style=""  @click="bianji">
7
+              编辑
8
+          </el-button>
9
+       <!-- <el-button type="danger" style=""  @click="">
10
+              删除
11
+        </el-button> -->
12
+        <el-button type="success" style=""  @click="printThisPage">
13
+            打印
14
+        </el-button>
15
+      </div>
16
+      <div id="print_content">
17
+        <div class="print_page_main_content">
18
+          <div class="content">
19
+              <h2 style="text-align: center;">{{orgname}}<br/>死亡病例讨论记录</h2>
20
+
21
+              <div style="text-align: right;">
22
+                透析号:{{ patient.dialysis_no }}
23
+              </div>
24
+              <div style="display: flex;margin: 10px 0;">
25
+                <div style="flex:1">姓名:{{ patient.name }}</div>
26
+                <div style="flex:1">性别:
27
+                  <span v-if="patient.gender == 1">男</span>
28
+                   <span v-if="patient.gender == 2">女</span>
29
+                </div>
30
+                <div style="flex:1">年龄:
31
+                  {{ getAge(patient) }}
32
+                </div>
33
+                <div style="flex:1">住院(门诊)号:
34
+                  {{ patient.admission_number }}
35
+                </div>
36
+              </div>
37
+              <div style="border-bottom: 1px solid gainsboro;margin-bottom: 10px;">
38
+                诊断:
39
+                {{ patient.diagnose }}
40
+              </div>
41
+              <div>
42
+
43
+              </div>
44
+              <div v-html="content"></div>
45
+          </div>
46
+        </div>
47
+      </div>
48
+
49
+      <el-dialog
50
+        title="提示"
51
+        :visible.sync="dialogVisible"
52
+        width="60%"
53
+        >
54
+        <div>
55
+          <h2 style="text-align: center;">危重病人知情同意书</h2>
56
+
57
+          <div style="text-align: right;">
58
+            透析号:{{ patient.dialysis_no }}
59
+          </div>
60
+          <div style="display: flex;margin: 10px 0;">
61
+            <div style="flex:1">姓名:{{ patient.name }}</div>
62
+            <div style="flex:1">性别:
63
+              <span v-if="patient.gender == 1">男</span>
64
+                <span v-if="patient.gender == 2">女</span>
65
+            </div>
66
+            <div style="flex:1">年龄:
67
+              {{ getAge(patient) }}
68
+            </div>
69
+            <div style="flex:1">住院(门诊)号:
70
+              {{ patient.admission_number }}
71
+            </div>
72
+          </div>
73
+          <div style="border-bottom: 1px solid gainsboro;">
74
+            诊断:
75
+            {{ patient.diagnose }}
76
+          </div>
77
+          <keep-alive>
78
+            <editor ref="editor"
79
+                    id="editor"
80
+                    style="width: 100%"
81
+                    :content="content">
82
+            </editor>
83
+          </keep-alive>
84
+        </div>
85
+        <span slot="footer" class="dialog-footer">
86
+          <el-button @click="dialogVisible = false">取 消</el-button>
87
+          <el-button type="primary" @click="savePatientCritaicalInformed">确 定</el-button>
88
+        </span>
89
+      </el-dialog>
90
+
91
+  </div>
92
+</template>
93
+
94
+<script>
95
+import print from "print-js";
96
+// import Editor from '@/components/Editor'
97
+import Editor from '@/components/Uedtior'
98
+import { getPatientDetailInformedconsent,savePatientDeathRecord  } from '@/api/patient'
99
+import { jsGetAge, uParseTime } from "@/utils/tools";
100
+const content=`<p style="display: flex;margin-bottom: 5px;">
101
+                  <span style="flex:1">讨论目期:</span>
102
+                  <span style="flex:1">讨论目期:</span>
103
+                </p>
104
+                <p style="display: flex;margin-bottom: 5px;">
105
+                  <span style="flex:1">讨论主持人:</span>
106
+                  <span style="flex:1">参加人员:</span>
107
+                </p>
108
+                <p style='margin-bottom: 5px;'>医生汇报病情:&nbsp;&nbsp;&nbsp;&nbsp;岁,于&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;月份因恶心呕吐,双下肢水肿,血肌升高,在丽水市中心医院诊断为“慢性肾功能不全,尿毒症期”,采用颈内静脉长期置管做为血管通路,开始血液透析治疗,每周三次。该患平时而压较高,波动在130-190/60-98mHg之间,脱水在1.5
109
+3.0Kg。辅助检查化验血红蛋白基本正常,CI提示主动脉、冠状动脉、二尖多发钙化,甲状腺钙化结石,超声提示双侧颈动脉内膜不均匀增厚伴斑块形成,右锁骨下动脉斑块形成。于7月7日凌晨3点30分许,患者去卫生局解手,突然发生量厥并摔倒,家人立即去察看,发现患者呼吸心跳已停止立即平卧,胸外心脏按压,并拨打120急救,医生到达后确认患者已死亡。
110
+                </p>
111
+                <p style='margin-bottom: 5px;'>讨论摘要:患者老年女性,长期血透病史达7年多,根据患者病史、症状及体征,结合辅助检查,诊
112
+断:肾病综合征,慢性肾功能衰竭,肾性高血压,肾性贫血,继发性甲状旁腺功能亢进。患者平时经常漏服降压药物,血液控制较差,波动较大,透析间期体重增长较多,常常超过干体重的5,心脏功能较差,经常发生进行左心衰竭,来我中心行急诊透析治疗。多次向患者本人及家属交代病
113
+情,告知高血压及体重增长过多对身体各脏器的损害,患者本人及家属均表示已知晓。本次发病于?月7日凌晨3:30许,患者去卫生局时突发意外死亡,但死亡原因不明确。考虑是否为大动脉斑块脱落致重要器官栓塞,或血压突然升高致颅内出血,导致呼吸心跳停而死亡。
114
+                </p>
115
+                <p style='margin-bottom: 5px;'>
116
+                  总结:患者为长期透析病人,依从性差,容量管理不佳,水负荷较重,心功能差,血压控制不好,本次突发意外致呼吸心跳骒停。
117
+                </p>
118
+                <p style="display: flex;">
119
+                  <span style="flex:1">主持人签名:</span>
120
+                  <span style="flex:1">记录日期:</span>
121
+                </p>`
122
+export default{
123
+  props: {
124
+    patient_id: {
125
+        type: Number,
126
+    },
127
+    patientDeathPlan:{
128
+      type:Object,
129
+    }
130
+  },
131
+  components:{
132
+    Editor
133
+  },
134
+
135
+  data(){
136
+  return{
137
+    patient:{},
138
+    dialogVisible:false,
139
+    content:content,
140
+    orgname:'',
141
+
142
+  }
143
+  },
144
+  methods:{
145
+    getlist(){
146
+
147
+      getPatientDetailInformedconsent(this.patient_id).then(response=>{
148
+        if(response.data.state == 1){
149
+          var patient =  response.data.data.patients
150
+          console.log("patinet",patient)
151
+          this.patient =patient
152
+        }
153
+      })
154
+    },
155
+    printThisPage(){
156
+        const style = '@media print {.content p{font-size: 16px;font-family: 新宋体;  margin-bottom: 5px;}}'
157
+        printJS({
158
+            printable: 'print_content',
159
+            type: 'html',
160
+            documentTitle: '  ',
161
+            style: style,
162
+            scanStyles: false
163
+        })
164
+    },
165
+    getAge: function(val) {
166
+        if (val.id_card_no == undefined) {
167
+          return false
168
+        }
169
+        var thisLen = val.id_card_no.length
170
+        var birth = ''
171
+        if (thisLen == 15) {
172
+          birth = '19' + val.id_card_no.substr(6, 6)
173
+        } else {
174
+          birth = val.id_card_no.substr(6, 8)
175
+        }
176
+        var birthtwo =
177
+          birth.substr(0, 4) +
178
+          '-' +
179
+          birth.substr(4, 2) +
180
+          '-' +
181
+          birth.substr(6, 2)
182
+
183
+        var age = jsGetAge(birthtwo, '-')
184
+        return age
185
+    },
186
+    show(val){
187
+      console.log("val--------------",val)
188
+      if(val!=null){
189
+        if(val.content!=""){
190
+          this.content = ""
191
+          this.content = val.content
192
+        }
193
+      }
194
+    },
195
+    bianji(){
196
+      this.dialogVisible=true
197
+    },
198
+    savePatientCritaicalInformed(){
199
+      console.log('1111',this.$refs);
200
+      var params = {
201
+        content:this.$refs.editor.contents,
202
+      }
203
+      savePatientDeathRecord(params).then(response=>{
204
+        if(response.data.state ==1){
205
+          var list = response.data.data.list
206
+          this.$message.success("保存成功!")
207
+          this.dialogVisible = false
208
+          this.$emit("getPatientDeathRecord","");
209
+        }
210
+      })
211
+    }
212
+  },
213
+  created(){
214
+    this.orgname = this.$store.getters.xt_user.org.org_name;
215
+    console.log("patientDeathPlan-------------",this.patientDeathPlan)
216
+    if(this.patientDeathPlan!=null && this.patientDeathPlan.id >0){
217
+       this.content = ""
218
+       this.content = this.patientDeathPlan.content
219
+    }
220
+    this.getlist()
221
+  }
222
+}
223
+</script>
224
+<style lang="scss" scoped>
225
+
226
+*{
227
+  // margin: 0;
228
+  // padding: 0;
229
+  border: 0;
230
+}
231
+  .content{
232
+      p{
233
+        font-size: 16px;
234
+        font-family: '新宋体';
235
+        line-height: 22px;
236
+        // padding-left: 20px;
237
+        margin-bottom: 5px;
238
+        text-align: justify;
239
+      }
240
+      .wsgl-module-wrap * {
241
+          font-family: 新宋体,NSimSun,宋体,SimSun;
242
+          color: #333;
243
+          font-size: 16px;
244
+      }
245
+      .ws-module-part {
246
+        line-height: 25px;
247
+        margin-top: 10px;
248
+        margin-bottom: 4px;
249
+        text-align: justify;
250
+      }
251
+      .abs-title {
252
+          position: relative;
253
+          padding-left: 20px;
254
+      }
255
+    .ws-module-content {
256
+        line-height: 25px;
257
+        padding-left: 20px;
258
+        margin-bottom: 4px;
259
+        text-align: justify;
260
+    }
261
+  }
262
+  .print_page_main_content {
263
+    background-color: white;
264
+    width: 100%;
265
+    padding: 0 0 0 0;
266
+    page-break-after: always;
267
+  }
268
+</style>

+ 342 - 0
src/xt_pages/user/Informed/components/hemodialysis.vue View File

@@ -0,0 +1,342 @@
1
+<!-- 透析器(滤过)治疗 -->
2
+<template>
3
+  <div style="border:1px solid gainsboro ;padding:10px">
4
+      <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;">
5
+        <!-- <el-button type="primary">主要按钮</el-button> -->
6
+        <el-button type="primary" style=""  @click="bianji">
7
+              编辑
8
+          </el-button>
9
+        <!-- <el-button type="danger" style=""  @click="">
10
+              删除
11
+        </el-button> -->
12
+        <el-button type="success" style=""  @click="printThisPage">
13
+            打印
14
+        </el-button>
15
+      </div>
16
+      <div id="print_content">
17
+          <div class="print_page_main_content">
18
+          <div class="content">
19
+              <div style="text-align: center;font-size: 20px;">{{ orgname }}</div>
20
+              <h2 style="text-align: center;">血液透析知情同意书</h2>
21
+              <!-- <div v-if="org_id!=10571"> -->
22
+              <div style="text-align: right;" v-if="org_id!=10571">
23
+                透析号:{{ patient.dialysis_no }}
24
+              </div>
25
+              <div style="display: flex;margin: 10px 0;">
26
+                <div style="flex:1">姓名:
27
+                  {{ patient.name }}
28
+                </div>
29
+                <div style="flex:1">性别:
30
+                  <span v-if="patient.gender == 1">男</span>
31
+                  <span v-if="patient.gender == 2">女</span>
32
+                </div>
33
+                <div style="flex:1">年龄:
34
+                  {{ getAge(patient) }}
35
+                </div>
36
+                <div style="flex:1" v-if="org_id!=10571">住院(门诊)号:
37
+                  {{ patient.admission_number }}
38
+                </div>
39
+                <div style="flex:1" v-if="org_id==10571">门诊号:
40
+                  {{ patient.admission_number }}
41
+                </div>
42
+              </div>
43
+              <div style="display: flex;margin: 10px 0; ">
44
+                <div style="flex:1" v-if="org_id==10571">住院号:
45
+                  {{ patient.admission_number }}
46
+                </div>
47
+
48
+                <div style="flex:1" v-if="org_id==10571">
49
+                  血管通路
50
+                </div>
51
+              </div>
52
+              <div style="border-bottom: 1px solid gainsboro;margin-bottom: 10px;">
53
+                诊断:
54
+                {{ patient.diagnose }}
55
+              </div>
56
+              <div v-html="content" ></div>
57
+          </div>
58
+        </div>
59
+      </div>
60
+      <el-dialog
61
+        title="提示"
62
+        :visible.sync="dialogVisible"
63
+        width="60%"
64
+        >
65
+        <div>
66
+          <h2 style="text-align: center;">血液透析知情同意书</h2>
67
+          <div style="text-align: right;" v-if="org_id!=10571">
68
+            透析号:{{ patient.dialysis_no }}
69
+          </div>
70
+          <div style="display: flex;margin: 10px 0;">
71
+            <div style="flex:1">姓名:
72
+              {{ patient.name }}
73
+            </div>
74
+            <div style="flex:1">性别:
75
+              <span v-if="patient.gender == 1">男</span>
76
+              <span v-if="patient.gender == 2">女</span>
77
+            </div>
78
+            <div style="flex:1">年龄:
79
+              {{ getAge(patient) }}
80
+            </div>
81
+            <div style="flex:1" v-if="org_id!=10571">住院(门诊)号:
82
+              {{ patient.admission_number }}
83
+            </div>
84
+            <div style="flex:1" v-if="org_id==10571">门诊号:
85
+              {{ patient.admission_number }}
86
+            </div>
87
+          </div>
88
+          <div style="display: flex;margin: 10px 0; ">
89
+            <div style="flex:1" v-if="org_id==10571">住院号:
90
+              {{ patient.admission_number }}
91
+            </div>
92
+
93
+            <div style="flex:1" v-if="org_id==10571">
94
+              血管通路
95
+            </div>
96
+          </div>
97
+          <div style="border-bottom: 1px solid gainsboro;">
98
+            诊断:
99
+            {{ patient.diagnose }}
100
+          </div>
101
+          <keep-alive>
102
+            <editor ref="editor"
103
+                    id="editor"
104
+                    style="width: 100%"
105
+                    v-bind:r_content="content">
106
+            </editor>
107
+          </keep-alive>
108
+        </div>
109
+        <span slot="footer" class="dialog-footer">
110
+          <el-button @click="dialogVisible = false">取 消</el-button>
111
+          <el-button type="primary" @click="saveTherapyInformed">保 存</el-button>
112
+        </span>
113
+      </el-dialog>
114
+  </div>
115
+</template>
116
+
117
+<script>
118
+import print from "print-js";
119
+import Editor from '@/components/Editor'
120
+import { getPatientDetailInformedconsent,saveTherapyInformed  } from '@/api/patient'
121
+import { jsGetAge, uParseTime } from "@/utils/tools";
122
+const content=`
123
+<p>
124
+<table border='1' class="table" style="border-collapse: collapse;">
125
+    <tr>
126
+      <td colspan="2">
127
+        <span>尊敬的患者/患者亲属/法定监护人  </span><br/>
128
+        <span>您好!根据您目前的病情,我们特向您详细介绍和说明如下内容,同时对您的疑问和要求进行咨询和答复。以帮助您了解相关知识,做出选择。</span><br/>
129
+        <span style="text-align: right;display: inline-block;width: 100%;">•您是否需要文化援助 口不需要 口需要 (口盲文 口手语 口翻译 等)</span>
130
+      </td>
131
+    </tr>
132
+    <tr>
133
+      <td style="padding: 10px 0;text-align: center" colspan="2" >
134
+        患者姓名: &nbsp;&nbsp;&nbsp;&nbsp;          年龄:&nbsp;&nbsp;&nbsp;&nbsp;
135
+        科室:&nbsp;&nbsp;&nbsp;&nbsp;                  性别:
136
+      </td>
137
+    </tr>
138
+    <tr>
139
+      <td style="width: 10%;text-align: center;align-items: center;">医<br/>嘱<br/>告<br/>知</td>
140
+      <td>
141
+    疾病介绍目前诊断:<br/>
142
+诊疗方案;<br/>
143
+•治疗目的及预期效果:<br/>
144
+•治疗存在但是不限于以下潜在风险:<br/>
145
+1.任何所用药物都可能产生副作用、包括轻度的的恶心、皮疹等症状到严重的过敏性休克、甚至危及生命。
146
+2.呼吸、心脏骤停。<br/>
147
+3.肌肉痉挛或抽搐。<br/>
148
+4.低血压或高血压、心律失常、心力衰竭、心肌梗塞。<br/>
149
+5.首次使用综合症、失衡综合征、电解质酸碱平衡紊乱。<br/>
150
+6.脑出血、局部或全身出血倾向。<br/>
151
+7.过敏反应、发热反应等。<br/>
152
+8.溶血、出血、严重感染或原有感染播散。<br/>
153
+9.透析过程中发生空气栓塞或其他栓塞。<br/>
154
+10.血液传播性疾病(乙肝等各型肝炎、梅毒、艾滋病等)、慢性并发症几其他不良反应。<br/>
155
+11.部分病人因为出血倾向、活动性出血或手术后需要无肝素、减少肝素使用剂量或使用分子肝素抗凝或其他特殊的抗凝方法,可能会造成体外凝血,体内循环的血液不能回输体内,造成部分血液丢失。<br/>
156
+12.部分病人因为出血倾向、活动性出血或手术后需要枸橼盐酸纳注射液抗凝方法,可能会出过敏反应,甚至是过敏性休克;枸橼盐酸纳注射液蓄积可能出现低钙症。引起抽搐和心肌收缩抑制,或者出现严重代谢性碱中毒,甚至导致死亡。<br/>
157
+13.肾性骨病、消化道疾病。<br/>
158
+14.瘘管堵塞、感染。<br/>
159
+15.由于医学的复杂性,可能发生其他不可预见的并发症。<br/>
160
+16.治疗过程中可能因患者无法耐受而必须中断治疗。<br/>
161
+17.各种血管通路均有可能发生感染、血栓形成可能。<br/>
162
+18.其他不可预见的风险和并发症。<br/>
163
+19. 患者自身存在高危风险:肝功能不全、静脉血栓等疾病或者有吸烟史(如患者自身不存在高危风险,则删除此条款),以上这些高危风险因素可能导致治疗风险加大,或者在治疗中或治疗后出现相关的病情加重或心脑血管意外,甚至死亡。<br/>除上述情况外,本医疗措施尚有可能发生的其他的并发症或者需要提前请患者家属特别注意的其他事项。<br/>
164
+•血液净化治疗费用昂贵,须有患者家属或工作单位按时付清。若停止付费,经医院通知后仍不缴纳费用,本中心将暂停透析治疗。<br/>
165
+•患者应积极配合治疗,服从医护人员对透析方式及时间的安排,如有特殊情况需更改时间,请提前一天中心人员取得联系并得到许可,患者因不能按时来做透析而造成后果,由患者自负。<br/>
166
+•为了您的安全,门诊血液净化治疗患者来中心治疗时必须有家属陪护,负责路途中发生意外后果自负。<br/>
167
+•长期血液透析治疗的患者,依据卫生部血液净化规范条例要求,必须半年复查一次血液传播疾病的病毒学检查,包括乙肝、丙肝、艾滋病、梅毒。<br/>
168
+•如不实施该治疗方案,可采取的代替方案:对症治疗,该代替方案评价:稳定病情。我们将以高度的责任心,严格遵守医疗常规及规范,对上述可能发生得情况尽最大力
169
+量给予救治。但由于医疗救助水平的局限性、药物固有的不良反应及个人体制的差异,意外风险不能做到绝对避免,且不能确保救治完全成功,可能会出现残疾、组织器官损
170
+伤导致功能障碍、甚至死亡等不良后果,及其他不可预见且为能告知的特殊情况,敬请谅解。<br/>
171
+我己向患者解释了此知情同意书的全部内容和条款。<br/>
172
+        <p style="padding: 5px;">
173
+          <span>主管医师签字: &nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
174
+          <span>签字时间:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      年 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   月 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   日</span>
175
+        </p>
176
+      </td>
177
+    </tr>
178
+    <tr>
179
+      <td style="width: 10%;text-align: center;align-items: center;">患<br/>者<br/>知<br/>情<br/>选<br/>择</td>
180
+      <td>
181
+        患者/患者亲属/法定监护人/授权人(姓名)<br/>
182
+我的医生已经告知我将要进行的治疗方式、此次治疗及治疗后可能发生的并发和风险、可能存在的其他治疗方法并且解答了我关于此次治疗的相关问题。<br/>
183
+•我同意在治疗中医生可以根据我的病情对预定的治疗方法做出调整。<br/>
184
+•我理解我的治疗方案的实施需要多位医生和护士共同进行。<br/>
185
+•我并未得到治疗百分百成功的许诺。<br/>患者知情选择<br/>
186
+•医师已经向我解释治疗过程中如果出现紧急情况会按相关应急预案进行处理。<br/>
187
+•医师已经向我告知可能发生的费用情况,我已理解并愿承担。<br/>
188
+基于以上陈述,在此本人授权医师:<br/>
189
+•在发生紧急情况下,为保障本人的生命安全,医师有权按照医学常规给予紧急处置,更改并选择最适宜的治疗方案实施必要的抢救。<br/>
190
+•我  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;接受该治疗方案,并对产生的不良后果已做好了充分思想准备。<br/>
191
+请患者签署“同意”字样<br/>
192
+•我  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;接受该治疗方案,并愿意承担因拒绝治疗而发生的一切后果。<br/>
193
+请患者注明“不同意”字样<br/>
194
+患者签字:      &nbsp;&nbsp;&nbsp;&nbsp;  与患者关系:&nbsp;&nbsp;&nbsp;&nbsp;
195
+签字时间:     &nbsp;&nbsp;&nbsp;&nbsp;年   &nbsp;&nbsp; 月    &nbsp;&nbsp;日    &nbsp;&nbsp;时   &nbsp;&nbsp;分
196
+      </td>
197
+    </tr>
198
+    <tr>
199
+      <td style="width: 10%;text-align: center;align-items: center;">文<br/>化<br/>援<br/>助</td>
200
+      <td>
201
+        我提供了 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(请填写盲文、手语或者患者具体语言)的翻译,我翻译的内容包括此知情同意书的内容及医师与患者或患者委托人关系的一切书面信息。<br/>
202
+翻译签字:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;签字时间:&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
203
+&nbsp;&nbsp;&nbsp;&nbsp;时&nbsp;&nbsp;&nbsp;&nbsp;分
204
+      </td>
205
+    </tr>
206
+  </table>
207
+</p>`
208
+export default{
209
+  props: {
210
+    patient_id: {
211
+        type: Number,
212
+      },
213
+      therapyinformePrint:{
214
+        type:Object,
215
+      }
216
+   },
217
+  components:{
218
+    Editor
219
+  },
220
+  data(){
221
+    return{
222
+      patient:{},
223
+      org_id:0,
224
+      dialogVisible:false,
225
+      content:content,
226
+      orgname:'',
227
+    }
228
+  },
229
+  methods:{
230
+     getlist(){
231
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
232
+          if(response.data.state == 1){
233
+            var patient =  response.data.data.patients
234
+            console.log("patinet",patient)
235
+            this.patient =patient
236
+          }
237
+        })
238
+      },
239
+      printThisPage(){
240
+          const style = '@media print { .table tr{page-break-inside:avoid} .table tr td{border: 1px solid black;text-align: center;align-items: center;}}'
241
+          printJS({
242
+              printable: 'print_content',
243
+              type: 'html',
244
+              documentTitle: '  ',
245
+              style: style,
246
+              scanStyles: false
247
+          })
248
+      },
249
+      getAge: function(val) {
250
+          if (val.id_card_no == undefined) {
251
+            return false
252
+          }
253
+          var thisLen = val.id_card_no.length
254
+          var birth = ''
255
+          if (thisLen == 15) {
256
+            birth = '19' + val.id_card_no.substr(6, 6)
257
+          } else {
258
+            birth = val.id_card_no.substr(6, 8)
259
+          }
260
+          var birthtwo =
261
+            birth.substr(0, 4) +
262
+            '-' +
263
+            birth.substr(4, 2) +
264
+            '-' +
265
+            birth.substr(6, 2)
266
+
267
+          var age = jsGetAge(birthtwo, '-')
268
+          return age
269
+      },
270
+      bianji(){
271
+        this.dialogVisible=true
272
+      },
273
+      show(val){
274
+
275
+       if(val!=null){
276
+        console.log("valw233223",val)
277
+         if(val.content!=""){
278
+           this.content = ""
279
+           this.content = val.content
280
+         }
281
+
282
+       }
283
+     },
284
+      saveTherapyInformed(){
285
+         var params = {
286
+          content:this.$refs.editor.content
287
+         }
288
+        saveTherapyInformed(params).then(response=>{
289
+
290
+          if(response.data.state ==1){
291
+            var list = response.data.data.list
292
+            this.$message.success("保存成功!")
293
+            this.dialogVisible = false
294
+            this.$emit("getTherapyInformed","");
295
+          }
296
+        })
297
+      }
298
+
299
+  },
300
+  created(){
301
+    this.orgname = this.$store.getters.xt_user.org.org_name;
302
+    if(this.therapyinformePrint!=null && this.therapyinformePrint.id >0){
303
+       this.content = ""
304
+       this.content = this.therapyinformePrint.content
305
+    }
306
+    this.getlist()
307
+    this.org_id = this.$store.getters.xt_user.org.id
308
+  }
309
+}
310
+</script>
311
+<style lang="scss" scoped>
312
+
313
+*{
314
+  // margin: 0;
315
+  // padding: 0;
316
+  border: 0;
317
+}
318
+  .content{
319
+      p{
320
+        font-size: 16px;
321
+        font-family: '新宋体';
322
+        line-height: 22px;
323
+        // padding-left: 20px;
324
+        // margin-bottom: 5px;
325
+        text-align: justify;
326
+      }
327
+  }
328
+  .print_page_main_content {
329
+    background-color: white;
330
+    width: 100%;
331
+    padding: 0 0 0 0;
332
+    page-break-after: always;
333
+  }
334
+  .table tr{
335
+    page-break-inside:avoid
336
+  }
337
+  .table tr td{
338
+    border: 1px solid black;
339
+    // text-align: center;
340
+    // align-items: center;
341
+  }
342
+</style>

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue View File

@@ -179,10 +179,10 @@ export default {
179 179
             //   name: '3-3',
180 180
             //   label: '体格检查新'
181 181
             // },
182
-            // {
183
-            //   name: '3-5',
184
-            //   label: '病程记录新'
185
-            // },
182
+            {
183
+              name: '3-5',
184
+              label: '病程记录新'
185
+            },
186 186
             {
187 187
               name: '1-11',
188 188
               label: '首次病程记录'

+ 238 - 47
src/xt_pages/user/courseOfDisease_new.vue View File

@@ -1,8 +1,11 @@
1 1
 <template>
2
- 
2
+  <!-- <div class="main-contain">
3
+      <div class="position">
4
+         <bread-crumb></bread-crumb>
5
+      </div> -->
3 6
   <div class="patient-container">
4 7
     <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
5
-   
8
+
6 9
     <div v-loading="loading">
7 10
       <div class="patient-app-container advice-container app-container" style="">
8 11
         <div style="display: flex;">
@@ -22,7 +25,7 @@
22 25
                 :highlight-current-row="true"
23 26
                 @current-change="getCurrentChangeOne"
24 27
                 style="width: 100%">
25
-                
28
+
26 29
                 <el-table-column prop="index" label="序号" width="50">
27 30
                   <template slot-scope="scope">
28 31
                      {{ scope.$index + 1 }}
@@ -90,7 +93,7 @@
90 93
                   自动生成
91 94
                 </el-button>
92 95
               </div>
93
-             
96
+
94 97
               <ueditor ref="editor" id="editors" :content="new_content"></ueditor>
95 98
             </div>
96 99
           </div>
@@ -105,11 +108,11 @@
105 108
         center>
106 109
         <div>
107 110
           模板名称:
108
-          <el-input v-model="template_name" placeholder="请输入内容" style="width: 160px;"></el-input>
111
+          <el-input v-model="title" placeholder="请输入内容" style="width: 160px;"></el-input>
109 112
         </div>
110 113
         <span slot="footer" class="dialog-footer">
111 114
           <el-button @click="template_dialog = false">取 消</el-button>
112
-          <el-button type="primary" @click="template_save">确 定</el-button>
115
+          <el-button type="primary" @click="saveTemplate">确 定</el-button>
113 116
         </span>
114 117
       </el-dialog>
115 118
       <el-dialog
@@ -122,19 +125,21 @@
122 125
           <div style="display: flex;">
123 126
             <div style="width: 27%;">
124 127
               <el-table
125
-                :data="tableData"
128
+                :data="templateList"
126 129
                 :highlight-current-row="true"
127 130
                 @row-click="rowclick"
131
+                 ref="record_table_one"
132
+                 @current-change="getCurrentChangeTwo"
128 133
                 style="width: 100%">
129
-                <el-table-column
130
-                  prop="index"
131
-                  label="序号"
132
-                  width="">
134
+                <el-table-column prop="index" label="序号"  width="">
135
+                  <template slot-scope="scope">
136
+                       {{ scope.$index + 1 }}
137
+                   </template>
133 138
                 </el-table-column>
134
-                <el-table-column
135
-                  prop="name"
136
-                  label="模板名称"
137
-                  width="">
139
+                <el-table-column prop="name" label="模板名称" width="">
140
+                  <template slot-scope="scope">
141
+                       {{ scope.row.title }}
142
+                   </template>
138 143
                 </el-table-column>
139 144
               </el-table>
140 145
             </div>
@@ -142,7 +147,7 @@
142 147
               <div class="Second_title">模板内容</div>
143 148
               <div style="">
144 149
                 <keep-alive>
145
-                  <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
150
+                  <ueditor ref="editorOne" id="editors" :content="new_content"></ueditor>
146 151
                 </keep-alive>
147 152
               </div>
148 153
             </div>
@@ -151,7 +156,7 @@
151 156
         <span slot="footer" class="dialog-footer" style="text-align: center;">
152 157
           <el-button type="danger" @click="template_dele">删除模板</el-button>
153 158
           <el-button type="primary" @click="template_save">保存模板</el-button>
154
-          <el-button type="primary" @click="template_save">应用</el-button>
159
+          <el-button type="primary" @click="toContentPint">应用</el-button>
155 160
           <el-button @click="library_dialog = false">取消</el-button>
156 161
         </span>
157 162
       </el-dialog>
@@ -162,10 +167,10 @@
162 167
         top="0"
163 168
         >
164 169
         <div>
165
-          <div style="display:flex">
170
+          <div style="display:flex;position: absolute;top: 20px;left: 20%;">
166 171
             <div>
167 172
               取值时间:
168
-              <el-select v-model="quzhi_date" placeholder="请选择" style="width: 120px;">
173
+              <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
169 174
                 <el-option
170 175
                   v-for="item in quzhi_options"
171 176
                   :key="item.value"
@@ -201,14 +206,14 @@
201 206
             </div>
202 207
           </div>
203 208
         </div>
204
-       
209
+
205 210
       </el-dialog>
206 211
 
207 212
 
208 213
 
209 214
 
210
-    
211
- 
215
+
216
+
212 217
     </div>
213 218
   </div>
214 219
 
@@ -226,7 +231,12 @@
226 231
     createNewCourseOfDiseaseRecord,
227 232
     deleteNewCouseOfDisease,
228 233
     modifyCourseOfDiseaseRecord,
229
-    getPatientCourseOfDiseaseList
234
+    getPatientCourseOfDiseaseList,
235
+    saveCoureseTemplateTitle,
236
+    getPatientCoureOfTempalate,
237
+    saveCourseOfNewTemplate,
238
+    deleteCourseTempalte,
239
+    getAutoPatientContent
230 240
   } from '@/api/patient'
231 241
   import { fetchAllDoctorAndNurse } from "@/api/doctor";
232 242
   import { parseTime } from '@/utils'
@@ -281,12 +291,17 @@
281 291
         admin_user_id:0,
282 292
         record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
283 293
         template_name:"",
284
-        id:0
294
+        id:0,
295
+        doctorOptions:[],
296
+        template_content:"",
297
+        template_id:0,
298
+        title:"",
299
+        templateList:[]
285 300
       }
286 301
     },
287 302
     created() {
288 303
       this.admin_user_id = this.$store.getters.xt_user.user.id
289
-    
304
+
290 305
       this.patient_id = parseInt(this.$route.query.id)
291 306
       this.org_id = this.$store.getters.xt_user.template_info.org_id;
292 307
       if (isNaN(this.patient_id) || this.patient_id <= 0) {
@@ -300,21 +315,73 @@
300 315
 
301 316
       this.fetchAllDoctorAndNurse()
302 317
       this.getlist()
303
-     
318
+
304 319
 
305 320
     },
306 321
     methods: {
307
-      template_dele(){
308 322
 
323
+      toContentPint(){
324
+        this.$refs.editor.contents = this.template_content
325
+        this.library_dialog = false
326
+      },
327
+      getCurrentChangeOne(val){
328
+        this.$refs.editor.contents = val.content
329
+        this.record_date = this.getTime(val.record_time)
330
+        this.id = val.id
309 331
       },
310
-      rowclick(){
332
+      getCurrentChangeTwo(val){
333
+
334
+        this.$refs.editorOne.contents = val.content
335
+        this.template_content = ""
336
+        this.template_content = val.content
337
+        this.template_id = val.id
338
+     },
339
+     template_dele(){
340
+       deleteCourseTempalte(this.template_id).then(response=>{
341
+        if(response.data.state == 1){
342
+          var msg =  response.data.data.msg
343
+          this.$message.success("删除成功!")
344
+          this.library_dialog = false
345
+          this.getPatientCoureOfTempalateOne()
346
+        }
347
+      })
348
+     },
349
+     getPatientCoureOfTempalateOne(){
350
+
351
+     },
352
+     rowclick(){
311 353
 
312 354
       },
313 355
       prints(){
314 356
 
357
+      },
358
+      saveTemplate(){
359
+
360
+        var params = {
361
+          title:this.title,
362
+          content: this.$refs.editor.contents,
363
+        }
364
+      saveCoureseTemplateTitle(params).then(response=>{
365
+        if(response.data.state == 1){
366
+          var courseTemplate =  response.data.data.courseTemplate
367
+          this.$message.success("保存成功!")
368
+          this.template_dialog = false
369
+        }
370
+        })
315 371
       },
316 372
       template_save(){
373
+        var params = {
374
+         template_id:this.template_id,
375
+         content:this.$refs.editorOne.contents
376
+        }
317 377
 
378
+        saveCourseOfNewTemplate(params).then(response=>{
379
+           if(response.data.state == 1){
380
+              var msg = response.data.data.msg
381
+              this.$message.success("保存成功")
382
+              this.library_dialog = false
383
+           }
384
+        })
318 385
       },
319 386
       getDocName(admin_user_id){
320 387
         var user_name = ""
@@ -334,7 +401,7 @@
334 401
                var list = response.data.data.list
335 402
               this.tableData = []
336 403
               this.tableData = list
337
-             
404
+
338 405
             }
339 406
         })
340 407
      },
@@ -347,8 +414,13 @@
347 414
        });
348 415
       },
349 416
       add_click(){
350
-        this.add_index = 1
417
+        this.admin_user_id = ""
418
+        this.admin_user_id = this.$store.getters.xt_user.user.id
419
+        this.fetchAllDoctorAndNurse()
420
+        this.$refs.editor.contents = ""
421
+        this.id = 0
351 422
         this.disabled = false
423
+        this.add_index = 1
352 424
       },
353 425
       showCancel(){
354 426
         this.add_index = 0
@@ -379,7 +451,7 @@
379 451
          }
380 452
 
381 453
         }).catch(error => {
382
-         
454
+
383 455
         })
384 456
       },
385 457
       template_click(){
@@ -388,8 +460,20 @@
388 460
         if(this.add_index ==0){
389 461
           this.template_dialog = true
390 462
         }else{
391
-          this.library_dialog = true
392
-        }
463
+         getPatientCoureOfTempalate().then(response=>{
464
+          if(response.data.state == 1){
465
+            this.library_dialog = true
466
+            this.templateList = response.data.data.templateList
467
+            console.log("hahhahahaha",this.$refs)
468
+            if(this.templateList!=null && this.templateList.length>0){
469
+              this.$refs.record_table_one.setCurrentRow(this.templateList[0])
470
+            }
471
+            console.log("haaaaaaaaaaaaa",this.templateList)
472
+
473
+          }
474
+        })
475
+
476
+       }
393 477
       },
394 478
       auto_click(){
395 479
         this.auto_dialog = true
@@ -397,6 +481,96 @@
397 481
       autotext_click(){
398 482
         this.auto_dialog = false
399 483
       },
484
+      // 本周
485
+      getFirstDayOfWeek(date){
486
+        var weekday = date.getDay()
487
+        date.setDate(date.getDate()-weekday+1);//往前算(weekday-1)天,年份、月份会自动变化
488
+        return this.timeFormat(date);
489
+      },
490
+      // 上周
491
+      getlastweek(date){
492
+        date.setDate(date.getDate()-7 - date.getDay() + 1);
493
+        var m =''
494
+        var d = ''
495
+        if(date.getMonth() + 1<10){
496
+          m = '0'+(date.getMonth() + 1)
497
+        }else{
498
+            m = date.getMonth() + 1
499
+        }
500
+        if(date.getDate()<10){
501
+            d = '0'+date.getDate()
502
+        }else{
503
+          d = date.getDate()
504
+        }
505
+        // this.start_date = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() ;
506
+        this.start_date = date.getFullYear() + "-" + m + "-" + d ;
507
+        date.setDate(date.getDate() +6);
508
+        var mm = ''
509
+        var dd = ''
510
+        if(date.getMonth() + 1<10){
511
+          mm = '0'+(date.getMonth() + 1)
512
+        }else{
513
+          mm = date.getMonth() + 1
514
+        }
515
+        if(date.getDate()<10){
516
+          dd = '0'+date.getDate()
517
+        }else{
518
+          dd = date.getDate()
519
+        }
520
+        // if(date.getMonth() + 1<10)
521
+        // this.end_date = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
522
+        this.end_date = date.getFullYear() + "-" + mm + "-" + dd ;
523
+        console.log('this.end_date',this.end_date);
524
+      },
525
+      // 本月
526
+      getFirstDayOfMonth (date) {
527
+        date.setDate(1);
528
+        return this.timeFormat(date);
529
+      },
530
+       //上个月第一天
531
+      getLastMonthFirstDay() {
532
+          var date = new Date();
533
+          date.setDate(0);
534
+          var y = date.getFullYear(); //获取年份
535
+          var m = date.getMonth() + 1; //获取月份
536
+          m = m < 10 ? "0" + m : m;
537
+          this.start_date = [y, m, '01'].join("-")
538
+          // return [y, m, '01'].join("-");
539
+      },
540
+      // 上个月最后一天
541
+      getLastMonthLastDay() {
542
+          var date = new Date();
543
+          date.setDate(0);
544
+          var y = date.getFullYear(); //获取年份
545
+          var m = date.getMonth() + 1; //获取月份
546
+          var d = new Date(y, m, 0).getDate(); //获取当月最后一日
547
+          m = m < 10 ? "0" + m : m; //月份补 0
548
+          d = d < 10 ? "0" + d : d; //日数补 0
549
+          this.end_date = [y, m, d].join("-")
550
+          // return [y, m, d].join("-");
551
+      },
552
+      // 日期格式化
553
+      timeFormat(date) {
554
+          if (!date || typeof(date) === "string") {
555
+            this.error("参数异常,请检查...");
556
+          }
557
+          var y = date.getFullYear(); //年
558
+          if(date.getMonth() + 1<10){
559
+            var m ='0'+(date.getMonth() + 1); //月
560
+          }else{
561
+            var m =date.getMonth() + 1; //月
562
+          }
563
+          if(date.getDate()<10){
564
+            var d ='0'+date.getDate(); //日
565
+          }else{
566
+            var d = date.getDate(); //日
567
+          }
568
+          // var d = date.getDate(); //日
569
+
570
+          return y + "-" + m + "-" + d;
571
+      },
572
+
573
+
400 574
       requestCourseRecords: function() {
401 575
         this.loading = true
402 576
         getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
@@ -470,7 +644,7 @@
470 644
       createAction() {
471 645
         console.log("haaaaaaaaaaaaaaa",this.$refs)
472 646
         this.new_content = this.$refs.editor.contents
473
-        
647
+
474 648
         if (this.new_content.length == 0) {
475 649
           this.$message.error('请填写病程内容')
476 650
           return
@@ -490,7 +664,7 @@
490 664
          }
491 665
 
492 666
         }).catch(error => {
493
-         
667
+
494 668
         })
495 669
       },
496 670
       didSelectTemplate: function(templateContent) {
@@ -524,7 +698,7 @@
524 698
           deleteNewCouseOfDisease(this.id).then(response=>{
525 699
             if (response.data.state==1) {
526 700
               var msg = response.data.data.msg
527
-              this.$message.success("保存成功!")
701
+              this.$message.success("删除成功!")
528 702
               this.getlist()
529 703
             }
530 704
           });
@@ -535,16 +709,9 @@
535 709
 
536 710
       },
537 711
       showEdit() {
538
-        if (this.table_current_index == -1) {
539
-          this.$message.error('请选择要修改的病程内容')
540
-          return
541
-        }
542
-        this.show_edit_dialog = true
543
-        this.edit_course_of_disease_time = this.recordTime(this.records[this.table_current_index].record_time)
544
-        this.edit_new_content = this.records[this.table_current_index].content
545
-        this.edit_current_id = this.records[this.table_current_index].id
546
-        this.edit_title = this.records[this.table_current_index].title
547
-        this.$refs.record_table.setCurrentRow(null)
712
+
713
+        this.add_index =1
714
+        this.disabled = false
548 715
 
549 716
       }, tableRow({ row, rowIndex }) {
550 717
         // 把每一行的索引放进row
@@ -703,11 +870,28 @@
703 870
         return anticoagulant_name
704 871
       },
705 872
       getTime (time) {
706
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
873
+      return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
707 874
       },
708 875
       getTimeOne (time) {
709 876
       return uParseTime(time, '{y}-{m}-{d}')
710 877
       },
878
+      getAutoPatientContent(){
879
+        if(this.start_date == ""){
880
+          this.$message.error("")
881
+        }
882
+        if(this.end_date == ""){
883
+          this.$message.error("")
884
+        }
885
+        var params = {
886
+          start_date:this.start_date,
887
+          end_date:this.end_date,
888
+          patient_id:this.patient_id,
889
+        }
890
+       getAutoPatientContent(params).then(response=>{
891
+
892
+       })
893
+
894
+      }
711 895
     }
712 896
   }
713 897
 </script>
@@ -809,4 +993,11 @@
809 993
       text-align: center;
810 994
     }
811 995
   }
996
+  .course{
997
+    .el-dialog{
998
+      height: 90%;
999
+      // position: fixed !important;
1000
+      // top: 10% !important;
1001
+    }
1002
+  }
812 1003
 </style>

+ 3 - 1
src/xt_pages/user/deathSummary.vue View File

@@ -518,7 +518,7 @@
518 518
           transplant:transplant,
519 519
           patient_id:this.patientID,
520 520
           remark:this.remark,
521
-          last_record_date:this.last_record_date
521
+          last_record_date:this.last_record_date?this.last_record_date:""
522 522
         }
523 523
         console.log("parasm===============",params)
524 524
        
@@ -609,6 +609,8 @@
609 609
                }
610 610
                if(deathSummary.last_record_date>0){
611 611
                 this.last_record_date = this.getTime(deathSummary.last_record_date)
612
+               }else{
613
+                this.last_record_date = ""
612 614
                }
613 615
                 this.updateShow = true
614 616
                 this.deathDisabed = true

+ 3 - 3
src/xt_pages/user/templateSummaryPrint.vue View File

@@ -8,7 +8,7 @@
8 8
       <div class="order-yy-name"></div>
9 9
       <div class="order-title">{{ orgname }}血液透析患者诊疗阶段小结</div>
10 10
       
11
-      <div style="padding-bottom:20px;border-bottom:1px solid #000;margin-top:40px;">
11
+      <div style="padding-bottom:20px;border-bottom:1px solid #000;margin-top:40px;" v-if="org_id !=10013 &&org_id !=10014">
12 12
          <span>姓名:{{patientList.patient.name}}</span>  
13 13
          <span style="margin-left:20px;">年龄:{{getNewAge(patientList.patient.id_card_no)}}</span>  
14 14
          <span style="margin-left:20px;">性别:
@@ -17,7 +17,7 @@
17 17
          </span> 
18 18
          <span style="margin-left:20px;">诊断:{{patientList.patient.diagnose}}</span> 
19 19
       </div>
20
-      <div style="padding:20px 0;border-bottom:1px solid #000;font-weight:bold;">
20
+      <div style="padding:20px 0;border-bottom:1px solid #000;font-weight:bold;" v-if="org_id !=10013 &&org_id !=10014">
21 21
         <span>阶段评估时间:{{getTime(patientList.record_time)}}</span>  
22 22
       </div>
23 23
        <!-- <div style="padding:20px 0;border-bottom:1px solid #000;">
@@ -46,7 +46,7 @@
46 46
           </div>
47 47
         </div>
48 48
       </div> -->
49
-      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
49
+      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;" v-if="org_id !=10013 &&org_id !=10014">
50 50
         <span style="font-weight:bold;">阶段小结总结:</span>
51 51
           <!-- {{patientList.template_summary_content}} -->
52 52
           <div style="line-height:24px; word-break: break-all;word-wrap: break-word" 

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))