Selaa lähdekoodia

Merge branch '20220812' of http://git.shengws.com/csx/Vue_New into 2022-10-17_vue_schedule_branch

csx 2 vuotta sitten
vanhempi
commit
078c3f6179
100 muutettua tiedostoa jossa 35680 lisäystä ja 4388 poistoa
  1. 48 0
      src/api/advice.js
  2. 8 0
      src/api/config.js
  3. 64 0
      src/api/dialysis.js
  4. 14 4
      src/api/dialysis_record.js
  5. 40 0
      src/api/drug/drug.js
  6. 1 0
      src/api/drug/drug_stock.js
  7. 8 0
      src/api/his/his_config.js
  8. 8 0
      src/api/schedule.js
  9. 8 0
      src/api/stock.js
  10. 1 0
      src/lang/en.js
  11. 1 0
      src/lang/zh.js
  12. 12 6
      src/router/index_路由未分离前.js
  13. 108 0
      src/router/modules/dialysis.js
  14. 16 0
      src/router/modules/stock.js
  15. 31 0
      src/router/modules/workforce.js
  16. 3 3
      src/store/modules/globalConfig.js
  17. 13 2
      src/utils/tools.js
  18. 51 26
      src/xt_pages/Pharmacy/DrugDispensing.vue
  19. 31 1
      src/xt_pages/data/basicConfig.vue
  20. 82 21
      src/xt_pages/data/components/dialysisAfter.vue
  21. 88 11
      src/xt_pages/data/components/dialysisBefore.vue
  22. 82 21
      src/xt_pages/data/components/dialysisComputer.vue
  23. 81 20
      src/xt_pages/data/components/dialysisMonitor.vue
  24. 0 65
      src/xt_pages/data/components/dialysisOff.vue
  25. 86 19
      src/xt_pages/data/components/dialysisPrescription.vue
  26. 81 19
      src/xt_pages/data/components/dialysisSummary.vue
  27. 84 24
      src/xt_pages/data/components/doubleCheck.vue
  28. 85 20
      src/xt_pages/data/components/receiveTreatmentAsses.vue
  29. 25 1
      src/xt_pages/data/showConfig.vue
  30. 91 60
      src/xt_pages/dialysis/PatientBox.vue
  31. 3382 0
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftynine.vue
  32. 4 3
      src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue
  33. 11 1
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue
  34. 7 6
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue
  35. 288 195
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  36. 3213 0
      src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue
  37. 3267 0
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyOne.vue
  38. 2231 726
      src/xt_pages/dialysis/batch_print/batch_print_order_twentyEight.vue
  39. 34 0
      src/xt_pages/dialysis/bloodPresssWatch.vue
  40. 2 6
      src/xt_pages/dialysis/components/consumables.vue
  41. 171 14
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  42. 14 2
      src/xt_pages/dialysis/details/NavIgation.vue
  43. 11 1
      src/xt_pages/dialysis/details/acceptsAssessment.vue
  44. 2 2
      src/xt_pages/dialysis/details/assessmentAfter.vue
  45. 25 0
      src/xt_pages/dialysis/details/assessmentBefore.vue
  46. 442 46
      src/xt_pages/dialysis/details/consumable/dialysisDrug.vue
  47. 395 0
      src/xt_pages/dialysis/details/consumable/dialysisDrugCountPrint.vue
  48. 300 0
      src/xt_pages/dialysis/details/consumable/dialysisDrugPrint.vue
  49. 1497 130
      src/xt_pages/dialysis/details/consumable/dialysisGood.vue
  50. 1016 0
      src/xt_pages/dialysis/details/consumable/dialysisGoodCountPrint.vue
  51. 689 0
      src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue
  52. 1049 44
      src/xt_pages/dialysis/details/consumable/dialysisParameter.vue
  53. 433 0
      src/xt_pages/dialysis/details/consumable/dialysisParameterCountPrint.vue
  54. 376 0
      src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue
  55. 6 6
      src/xt_pages/dialysis/details/consumable/index.vue
  56. 592 0
      src/xt_pages/dialysis/details/consumable/signPrint.vue
  57. 35 3
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  58. 48 12
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  59. 17 5
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  60. 59 6
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  61. 30 3
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  62. 31 1
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  63. 270 14
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  64. 373 49
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  65. 55 1
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  66. 112 51
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  67. 1 0
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  68. 71 2
      src/xt_pages/dialysis/details/dialysisComputer.vue
  69. 10 10
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  70. 6 0
      src/xt_pages/dialysis/details/dialysisOff.vue
  71. 199 9
      src/xt_pages/dialysis/details/index.vue
  72. 2 6
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  73. 60 5
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  74. 1548 0
      src/xt_pages/dialysis/newDoctorAdvice.vue
  75. 24 16
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  76. 4 1
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyEight.vue
  77. 20 202
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyNine.vue
  78. 3122 1515
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  79. 14 5
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  80. 814 763
      src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue
  81. 3 3
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue
  82. 6 3
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  83. 52 41
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  84. 3495 0
      src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue
  85. 3843 0
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyOne.vue
  86. 2 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  87. 20 1
      src/xt_pages/hospitalStation/components/chargeDialog.vue
  88. 1 0
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  89. 17 6
      src/xt_pages/hospitalStation/doctorDesk.vue
  90. 2 1
      src/xt_pages/management/components/PlanForm.vue
  91. 11 1
      src/xt_pages/management/components/UserForm.vue
  92. 8 1
      src/xt_pages/management/home.vue
  93. 17 10
      src/xt_pages/outpatientCharges/components/chargeDialog.vue
  94. 102 102
      src/xt_pages/outpatientCharges/invoicePrint.vue
  95. 23 2
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  96. 384 0
      src/xt_pages/outpatientCharges/statementTemplate/printSeven.vue
  97. 19 19
      src/xt_pages/outpatientCharges/summary.vue
  98. 3 0
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  99. 39 14
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  100. 0 0
      src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue

+ 48 - 0
src/api/advice.js Näytä tiedosto

@@ -504,6 +504,14 @@ export function getSchedualDoctors(params) {
504 504
   })
505 505
 }
506 506
 
507
+export function getNewSchedualDoctors(params) {
508
+  return request({
509
+    url: '/api/schedule/new/advices',
510
+    method: 'get',
511
+    params: params
512
+  })
513
+}
514
+
507 515
 export function getDoctorAdviceCount(params) {
508 516
   return request({
509 517
     url: '/api/schedule/getdoctoradvicecount',
@@ -519,3 +527,43 @@ export function GetOrderDoctorAdvice(params) {
519 527
     params: params
520 528
   })
521 529
 }
530
+
531
+export function getPatientSchedule(params) {
532
+  return request({
533
+    url: '/api/schedule/getpatientshedule',
534
+    method: 'get',
535
+    params: params
536
+  })
537
+}
538
+
539
+export function excutionDoctorAdvice(params) {
540
+  return request({
541
+    url: '/api/schedule/excutiondoctoradvice',
542
+    method: 'Get',
543
+    params: params
544
+  })
545
+}
546
+
547
+export function checkNewDoctorAdvice(params) {
548
+  return request({
549
+    url: '/api/schedule/checknewdoctoradvice',
550
+    method: 'get',
551
+    params: params
552
+  })
553
+}
554
+
555
+export function settleNewDoctorAdvice(params) {
556
+  return request({
557
+    url: '/api/schedule/settlenewdoctoradvice',
558
+    method: 'Get',
559
+    params: params
560
+  })
561
+}
562
+
563
+export function excutionDoctorAdviceById(params) {
564
+  return request({
565
+    url: '/api/schedule/excutiondoctoradvicebyid',
566
+    method: 'get',
567
+    params: params
568
+  })
569
+}

+ 8 - 0
src/api/config.js Näytä tiedosto

@@ -209,3 +209,11 @@ export function changeDrugOpenConfig(params) {
209 209
     params: params
210 210
   })
211 211
 }
212
+
213
+export function changeSettleOpenConfig(params) {
214
+  return request({
215
+    url: '/api/changesettleopenconfig',
216
+    method: 'get',
217
+    params: params
218
+  })
219
+}

+ 64 - 0
src/api/dialysis.js Näytä tiedosto

@@ -331,3 +331,67 @@ export function getDialysisSetting(params) {
331 331
     params: params
332 332
   })
333 333
 }
334
+
335
+export function getDialysisParameter(params) {
336
+  return request({
337
+    url: '/api/patient/getdialysisparameter',
338
+    method: 'get',
339
+    params: params
340
+  })
341
+}
342
+
343
+export function getDialysisGoodTotalCount(params) {
344
+  return request({
345
+    url: '/api/patient/getdialysisgoodtotalcount',
346
+    method: 'get',
347
+    params: params
348
+  })
349
+}
350
+
351
+export function getDialysisAdviceSchedudeList(params) {
352
+  return request({
353
+    url: '/api/patient/getdialysisadvicescheduelist',
354
+    method: 'get',
355
+    params: params
356
+  })
357
+}
358
+
359
+export function getDialysisParameterGoodList(params) {
360
+  return request({
361
+    url: '/api/patient/getdialysisparametergoodlist',
362
+    method: 'get',
363
+    params: params
364
+  })
365
+}
366
+
367
+export function saveHisDialysis(params) {
368
+  return request({
369
+    url: '/api/patient/savehisdialysis',
370
+    method: 'get',
371
+    params: params
372
+  })
373
+}
374
+
375
+export function getHisDialysisGoodCount(params) {
376
+  return request({
377
+    url: '/api/patient/gethisdialysisgoodcount',
378
+    method: 'get',
379
+    params: params
380
+  })
381
+}
382
+
383
+export function getSchedualPrintList(params) {
384
+  return request({
385
+    url: '/api/patient/getscheduleprintlist',
386
+    method: 'get',
387
+    params: params
388
+  })
389
+}
390
+
391
+export function getSolutionlistByOrgId(params) {
392
+  return request({
393
+    url: '/api/patient/getsolutionlistbyorgid',
394
+    method: 'get',
395
+    params: params
396
+  })
397
+}

+ 14 - 4
src/api/dialysis_record.js Näytä tiedosto

@@ -47,7 +47,7 @@ export function editMonitor(patient_id, schedule_date, data, mode) {
47 47
   })
48 48
 }
49 49
 
50
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing) {
50
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date, schedule_remark, order_remark) {
51 51
   var params = {
52 52
     patient_id: patient_id,
53 53
     date: schedule_date,
@@ -62,7 +62,16 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
62 62
     change_nurse: change_nurse,
63 63
     difficult_puncture_nurse: difficult_puncture_nurse,
64 64
     new_fistula_nurse: new_fistula_nurse,
65
-    blood_drawing: blood_drawing
65
+    blood_drawing: blood_drawing,
66
+    quality_nurse_id: quality_nurse,
67
+    puncture_needle: puncture_needle,
68
+    puncture_way: puncture_way,
69
+    dialysis_dialyszers: dialysis_dialyszers,
70
+    dialysis_irrigation: dialysis_irrigation,
71
+    blood_access_id: blood_access_id,
72
+    nuclein_date: nuclein_date,
73
+    schedule_remark: schedule_remark,
74
+    order_remark: order_remark
66 75
   }
67 76
   console.log('params', params)
68 77
   return request({
@@ -74,7 +83,7 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
74 83
   })
75 84
 }
76 85
 
77
-export function finishDialysis(patient_id, schedule_date, end_time, nurse_id, mode, puncture_point_haematoma, internal_fistula, catheter, cruor) {
86
+export function finishDialysis(patient_id, schedule_date, end_time, nurse_id, mode, puncture_point_haematoma, internal_fistula, catheter, cruor, mission) {
78 87
   var params = {
79 88
     patient_id: patient_id,
80 89
     date: schedule_date,
@@ -84,7 +93,8 @@ export function finishDialysis(patient_id, schedule_date, end_time, nurse_id, mo
84 93
     puncture_point_haematoma: puncture_point_haematoma,
85 94
     internal_fistula: internal_fistula,
86 95
     catheter: catheter,
87
-    cruor: cruor
96
+    cruor: cruor,
97
+    mission: mission
88 98
   }
89 99
   return request({
90 100
     url: '/api/dialysis/finish',

+ 40 - 0
src/api/drug/drug.js Näytä tiedosto

@@ -595,3 +595,43 @@ export function toSendGoodInfomation(params) {
595 595
     params: params
596 596
   })
597 597
 }
598
+
599
+export function getNewPurchaseStockQuery(params) {
600
+  return request({
601
+    url: '/api/stock/getnewpurchasestockquery',
602
+    method: 'Get',
603
+    params: params
604
+  })
605
+}
606
+
607
+export function getPurchaseNewDrugQuery(params) {
608
+  return request({
609
+    url: '/api/stock/getpurchasenewdrugquery',
610
+    method: 'get',
611
+    params: params
612
+  })
613
+}
614
+
615
+export function getGoodOverCount(params) {
616
+  return request({
617
+    url: '/api/stock/getgoodovercount',
618
+    method: 'get',
619
+    params: params
620
+
621
+  })
622
+}
623
+export function getDrugOverCount(params) {
624
+  return request({
625
+    url: '/api/stock/getdrugovercount',
626
+    method: 'Get',
627
+    params: params
628
+  })
629
+}
630
+
631
+export function getDrugInventoryWarehouseInfoList(params) {
632
+  return request({
633
+    url: '/api/stock/getdruginfolist',
634
+    method: 'Get',
635
+    params: params
636
+  })
637
+}

+ 1 - 0
src/api/drug/drug_stock.js Näytä tiedosto

@@ -644,3 +644,4 @@ export function getDrugInitDataList(params) {
644 644
     params: params
645 645
   })
646 646
 }
647
+

+ 8 - 0
src/api/his/his_config.js Näytä tiedosto

@@ -8,6 +8,14 @@ export function getPatientList(params) {
8 8
   })
9 9
 }
10 10
 
11
+export function getPatientListTwenty(params) {
12
+  return request({
13
+    url: '/api/his/patient/getpatientlisttwenty',
14
+    method: 'Get',
15
+    params: params
16
+  })
17
+}
18
+
11 19
 export function getPrescriptionTemplateList(params) {
12 20
   return request({
13 21
     url: '/api/his/prescriptiontemplate/list',

+ 8 - 0
src/api/schedule.js Näytä tiedosto

@@ -134,6 +134,14 @@ export function getNextScheduleWeekDay(params) {
134 134
   })
135 135
 }
136 136
 
137
+export function getNextScheduleWeekDayOne(params) {
138
+  return request({
139
+    url: '/api/schedule/getnextscheduleweekdayone',
140
+    method: 'get',
141
+    params: params
142
+  })
143
+}
144
+
137 145
 export function getThreeWeekList(params) {
138 146
   return request({
139 147
     url: '/api/schedule/getthreeweeklist',

+ 8 - 0
src/api/stock.js Näytä tiedosto

@@ -1064,3 +1064,11 @@ export function getPrintList(params) {
1064 1064
     params: params
1065 1065
   })
1066 1066
 }
1067
+
1068
+export function getwarehouseinfolist(params) {
1069
+  return request({
1070
+    url: '/api/stock/getwarehouseinfolist',
1071
+    method: 'get',
1072
+    params: params
1073
+  })
1074
+}

+ 1 - 0
src/lang/en.js Näytä tiedosto

@@ -92,6 +92,7 @@ export default {
92 92
     appointment: 'appointment',
93 93
     sign: 'sign',
94 94
     remind: 'remind',
95
+    schedulePrint: 'schedulePrint',
95 96
     signWeight: 'signWeight',
96 97
     deviceZoneManage: 'Device Zone Manage',
97 98
     deviceGroupManage: 'Device Group Manage',

+ 1 - 0
src/lang/zh.js Näytä tiedosto

@@ -106,6 +106,7 @@ export default {
106 106
     appointment: '排班管理',
107 107
     sign: '治疗签到',
108 108
     remind: '排班提醒',
109
+    schedulePrint: '排班打印',
109 110
     signWeight: '签到称重',
110 111
     deviceZoneManage: '分区管理',
111 112
     deviceGroupManage: '分组管理',

+ 12 - 6
src/router/index_路由未分离前.js Näytä tiedosto

@@ -694,6 +694,12 @@ export const xt_asyncRouterMap = [
694 694
         name: 'remind',
695 695
         meta: { title: 'remind', noCache: true }
696 696
       },
697
+      // {
698
+      //   path: '/workforce/schedulePrint',
699
+      //   component: () => import('@/xt_pages/workforce/schedulePrint'),
700
+      //   name: 'schedulePrint',
701
+      //   meta: { title: 'schedulePrint', noCache: true }
702
+      // },
697 703
       {
698 704
         path: '/workforce/template',
699 705
         component: () => import('@/xt_pages/workforce/template'),
@@ -818,12 +824,12 @@ export const xt_asyncRouterMap = [
818 824
         name: 'otherCancelStockOrder',
819 825
         meta: { title: 'otherCancelStockOrder', noCache: true }
820 826
       },
821
-      // {
822
-      //   path: '/stock/query',
823
-      //   component: () => import('@/xt_pages/stock/stockQuery'),
824
-      //   name: 'stockQuery',
825
-      //   meta: { title: 'stockQuery' }
826
-      // },
827
+      {
828
+        path: '/stock/query',
829
+        component: () => import('@/xt_pages/stock/stockQuery'),
830
+        name: 'stockQuery',
831
+        meta: { title: 'stockQuery' }
832
+      },
827 833
       {
828 834
         path: '/stock/detail',
829 835
         component: () => import('@/xt_pages/stock/stockDetailIndex'),

+ 108 - 0
src/router/modules/dialysis.js Näytä tiedosto

@@ -47,6 +47,15 @@ export default {
47 47
         noCache: true
48 48
       }
49 49
     },
50
+    // {
51
+    //   path: '/dialysis/dialysisDoctorAdvice',
52
+    //   component: () => import('@/xt_pages/dialysis/newDoctorAdvice'),
53
+    //   name: '透析医嘱',
54
+    //   meta: {
55
+    //     title: '透析医嘱',
56
+    //     noCache: true
57
+    //   }
58
+    // },
50 59
     {
51 60
       path: '/dialysis/doctorAdvicePrint',
52 61
       component: () => import('@/xt_pages/dialysis/doctorAdvicePrint'),
@@ -58,6 +67,7 @@ export default {
58 67
         noCache: true
59 68
       }
60 69
     },
70
+
61 71
     {
62 72
       path: '/dialysis/signPrint',
63 73
       component: () => import('@/xt_pages/dialysis/signPrint'),
@@ -87,6 +97,79 @@ export default {
87 97
         noCache: true
88 98
       }
89 99
     },
100
+    {
101
+      path: '/dialysis/consumable/dialysisdrugprint',
102
+      component: () => import('@/xt_pages/dialysis/details/consumable/dialysisDrugPrint'),
103
+      name: '透析药品',
104
+      meta: {
105
+        title: '透析药品',
106
+        noCache: true
107
+      },
108
+      is_menu: false,
109
+      hidden: true
110
+    },
111
+    {
112
+      path: '/dialysis/consumable/dialysisdrugcountprint',
113
+      component: () => import('@/xt_pages/dialysis/details/consumable/dialysisDrugCountPrint'),
114
+      name: '透析药品',
115
+      meta: {
116
+        title: '透析药品',
117
+        noCache: true
118
+      },
119
+      is_menu: false,
120
+      hidden: true
121
+    },
122
+    {
123
+      path: '/dialysis/consumable/dialysisgoodprint',
124
+      component: () => import('@/xt_pages/dialysis/details/consumable/dialysisGoodPrint'),
125
+      name: '透前耗材',
126
+      meta: {
127
+        title: '透前耗材',
128
+        noCache: true
129
+      },
130
+      is_menu: false,
131
+      hidden: true
132
+    },
133
+    {
134
+      path: '/dialysis/consumable/dialysisgoodcountprint',
135
+      component: () => import('@/xt_pages/dialysis/details/consumable/dialysisGoodCountPrint'),
136
+      name: '透前统计耗材',
137
+      meta: {
138
+        title: '透前统计耗材',
139
+        noCache: true
140
+      },
141
+      is_menu: false,
142
+      hidden: true
143
+    },
144
+    {
145
+      path: '/dialysis/consumable/dialysis/print',
146
+      component: () => import('@/xt_pages/dialysis/details/consumable/signPrint'),
147
+      name: '标签打印',
148
+      is_menu: false,
149
+      hidden: true
150
+    },
151
+    {
152
+      path: '/dialysis/consumable/dialysis/parameter/print',
153
+      component: () => import('@/xt_pages/dialysis/details/consumable/dialysisParameterPrint'),
154
+      name: '透析统计耗材',
155
+      meta: {
156
+        title: '透析统计耗材',
157
+        noCache: true
158
+      },
159
+      is_menu: false,
160
+      hidden: true
161
+    },
162
+    {
163
+      path: '/dialysis/consumable/dialysis/count/print',
164
+      component: () => import('@/xt_pages/dialysis/details/consumable/dialysisParameterCountPrint'),
165
+      name: '透析参数耗材',
166
+      meta: {
167
+        title: '透析参数耗材',
168
+        noCache: true
169
+      },
170
+      is_menu: false,
171
+      hidden: true
172
+    },
90 173
     {
91 174
       path: '/dialysis/consumableDrugs_print',
92 175
       component: () => import('@/xt_pages/dialysis/consumableDrugs_print'),
@@ -120,6 +203,7 @@ export default {
120 203
         noCache: true
121 204
       }
122 205
     },
206
+
123 207
     {
124 208
       path: '/dialysis/allSummary_print',
125 209
       component: () => import('@/xt_pages/dialysis/allSummary_print'),
@@ -251,6 +335,30 @@ export default {
251 335
         noCache: true
252 336
       }
253 337
     },
338
+    {
339
+      path: '/dialysis/print/batch/fiftynine',
340
+      component: () =>
341
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_fiftynine'),
342
+      hidden: true,
343
+      is_menu: false,
344
+      name: 'dialysis_batch_fiftynine',
345
+      meta: {
346
+        title: '批量打印',
347
+        noCache: true
348
+      }
349
+    },
350
+    {
351
+      path: '/dialysis/print/batch/sixty',
352
+      component: () =>
353
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_sixty'),
354
+      hidden: true,
355
+      is_menu: false,
356
+      name: 'dialysis_batch_sixty',
357
+      meta: {
358
+        title: '批量打印',
359
+        noCache: true
360
+      }
361
+    },
254 362
     {
255 363
       path: '/dialysis/print/batch/seven',
256 364
       component: () =>

+ 16 - 0
src/router/modules/stock.js Näytä tiedosto

@@ -421,6 +421,14 @@ export default {
421 421
       is_menu: false,
422 422
       meta: { title: 'purchaseStockQueryPrint', noCache: true }
423 423
     },
424
+    {
425
+      path: '/purchase/new/stock/query/print',
426
+      component: () => import('@/xt_pages/stock/query/purchaseNewStockQueryPrint'),
427
+      name: 'purchaseNewStockQueryPrint',
428
+      hidden: true,
429
+      is_menu: false,
430
+      meta: { title: 'purchaseNewStockQueryPrint', noCache: true }
431
+    },
424 432
     {
425 433
       path: '/expiry/date/query/print',
426 434
       component: () => import('@/xt_pages/stock/query/expiryDateQueryPrint'),
@@ -445,6 +453,14 @@ export default {
445 453
       is_menu: false,
446 454
       meta: { title: 'purchaseDrugQueryPrint', noCache: true }
447 455
     },
456
+    {
457
+      path: '/drugs/purchase/new/query/print',
458
+      component: () => import('@/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint'),
459
+      name: 'purchaseDrugNewQueryPrint',
460
+      hidden: true,
461
+      is_menu: false,
462
+      meta: { title: 'purchaseDrugNewQueryPrint', noCache: true }
463
+    },
448 464
     {
449 465
       path: '/drugs/expiry/date/query/print',
450 466
       component: () => import('@/xt_pages/stock/drugs/components/expiryDateDrugQueryPrint'),

+ 31 - 0
src/router/modules/workforce.js Näytä tiedosto

@@ -38,6 +38,26 @@ export default {
38 38
       noCache: true
39 39
     }
40 40
   },
41
+  {
42
+    path: '/workforce/schedulePrint',
43
+    component: () => import('@/xt_pages/workforce/schedulePrint'),
44
+    name: 'schedulePrint',
45
+    meta: {
46
+      title: 'schedulePrint',
47
+      noCache: true
48
+    }
49
+  },
50
+  {
51
+    path: '/workforce/schedule/printone',
52
+    component: () => import('@/xt_pages/workforce/printOne'),
53
+    name: 'printOne',
54
+    hidden: true,
55
+    is_menu: false,
56
+    meta: {
57
+      title: 'printOne',
58
+      noCache: true
59
+    }
60
+  },
41 61
   {
42 62
     path: '/workforce/template',
43 63
     component: () => import('@/xt_pages/workforce/template'),
@@ -93,6 +113,17 @@ export default {
93 113
       noCache: true
94 114
     }
95 115
   },
116
+  {
117
+    path: '/schedule/remind/print/setting/one',
118
+    component: () => import('@/xt_pages/workforce/remind_print_setting_one'),
119
+    name: 'remind_print_setting_one',
120
+    hidden: true,
121
+    is_menu: false,
122
+    meta: {
123
+      title: 'remind_print_setting_one',
124
+      noCache: true
125
+    }
126
+  },
96 127
   {
97 128
     path: '/scheduleTablePrint',
98 129
     component: () => import('@/xt_pages/workforce/scheduleTablePrint'),

+ 3 - 3
src/store/modules/globalConfig.js Näytä tiedosto

@@ -876,9 +876,9 @@ const global_config = {
876 876
         id: 13,
877 877
         name: '那屈肝素钙',
878 878
         type: 1,
879
-        shouji: 2,
880
-        weichi: 2,
881
-        zongliang: 2,
879
+        shouji: 1,
880
+        weichi: 1,
881
+        zongliang: 1,
882 882
         gaimingcheng: -1,
883 883
         gaijiliang: -1,
884 884
         shouji_unit: 'mg',

+ 13 - 2
src/utils/tools.js Näytä tiedosto

@@ -152,7 +152,15 @@ export function uParseTime(time, cFormat) {
152 152
   return time_str
153 153
 }
154 154
 
155
-export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
155
+export function replacementFlow(bloodflowvolume) {
156
+  bloodflowvolume = parseFloat(bloodflowvolume)
157
+  if (isNaN(bloodflowvolume)) {
158
+    return 0
159
+  }
160
+  return bloodflowvolume * 0.25
161
+}
162
+
163
+export function calculateAnticoagulantZL(type, shouji, shichang, weichi, add_amount, reduce_amount) {
156 164
   console.log('t', type)
157 165
   var t = 0.5
158 166
   if (type == 1) {
@@ -165,11 +173,14 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
165 173
   shouji = parseFloat(shouji) ? parseFloat(shouji) : 0
166 174
   shichang = parseFloat(shichang) ? parseFloat(shichang) : 0
167 175
   weichi = parseFloat(weichi) ? parseFloat(weichi) : 0
176
+  shouji = parseFloat(shouji) ? parseFloat(shouji) : 0
177
+  add_amount = parseFloat(add_amount) ? parseFloat(add_amount) : 0
178
+  reduce_amount = parseFloat(reduce_amount) ? parseFloat(reduce_amount) : 0
168 179
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
169 180
     return 0
170 181
   }
171 182
   console.log((shouji + (shichang - t) * weichi).toFixed(1))
172
-  return (shouji + (shichang - t) * weichi).toFixed(1)
183
+  return (shouji + (shichang - t) * weichi + add_amount - reduce_amount).toFixed(1)
173 184
 }
174 185
 
175 186
 export function formatDate(date, format) {

+ 51 - 26
src/xt_pages/Pharmacy/DrugDispensing.vue Näytä tiedosto

@@ -383,7 +383,7 @@
383 383
         <!-- <div style="background-color: #f5f7fa;display:flex;padding: 10px;justify-content:space-around;position:absolute;width:75.6%;margin-top: 27.5%;
384 384
 "><div style="width: 40%;padding-left:3%">合计 </div> <div style="width: 40%;display: flex;justify-content:center;padding-left: 37%">{{total}}</div></div> -->
385 385
         <div style="margin-top: 25px; display: flex" v-if="state == 1">
386
-          <span style="line-height: 36px;">领药人:</span> 
386
+          <span style="line-height: 36px">领药人:</span>
387 387
           <el-select v-model="admin_user_id" placeholder="请选择">
388 388
             <el-option
389 389
               v-for="item in doctorList"
@@ -541,6 +541,37 @@ export default {
541 541
         return arr.indexOf(item, 0) === index;
542 542
       });
543 543
     },
544
+    // 获取单位
545
+    getDose_unit(val) {
546
+      // console.log(val);
547
+      var newLength = 0;
548
+      var singleChar = "";
549
+      var newStr = "";
550
+      var chineseRegex = /[^\x00-\xff]/g;
551
+      let strLength = val.replace(chineseRegex, "**").length;
552
+      // console.log(strLength, "strLength");
553
+      for (var i = 0; i < strLength; i++) {
554
+        singleChar = val.charAt(i).toString();
555
+        // console.log(singleChar,'singleChar')
556
+        // console.log(singleChar.match(chineseRegex),'')
557
+        if (singleChar.match(chineseRegex) != null) {
558
+          newLength += 2;
559
+          newStr += singleChar;
560
+        } else {
561
+          newLength++;
562
+        }
563
+        if (newLength > strLength) {
564
+          break;
565
+        }
566
+        // newStr += singleChar;
567
+      }
568
+
569
+      // if (hasDot && strLength > len) {
570
+      //   newStr += "...";
571
+      // }
572
+      // console.log(newStr,'newStr')
573
+      return newStr;
574
+    },
544 575
 
545 576
     getSummaries_t1(param) {
546 577
       const { columns, data } = param;
@@ -556,16 +587,18 @@ export default {
556 587
         if (index === 7) {
557 588
           // 单位裁切
558 589
           data.forEach((el, index) => {
559
-            dose_unit.push(el.total.substr(el.total.length - 1, 1));
590
+            dose_unit.push(this.getDose_unit(el.total));
560 591
           });
592
+        
561 593
           dose_unit = this.unique_unit(dose_unit);
562
-          // 数据合计
594
+          console.log(dose_unit,'dose_unit')
595
+          // // 数据合计
563 596
           data.forEach((el, index) => {
564
-            if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
565
-              unit_1.push(el.total.substr(0, el.total.length - 1));
597
+            if (this.getDose_unit(el.total) === dose_unit[0]) {
598
+              unit_1.push(parseInt(el.total));
566 599
             }
567
-            if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
568
-              unit_2.push(el.total.substr(0, el.total.length - 1));
600
+            if (this.getDose_unit(el.total) === dose_unit[1]) {
601
+              unit_2.push(parseInt(el.total));
569 602
             }
570 603
           });
571 604
           unit_1 = eval(unit_1.join("+"));
@@ -599,16 +632,16 @@ export default {
599 632
         if (index === 6) {
600 633
           // 单位裁切
601 634
           data.forEach((el, index) => {
602
-            dose_unit.push(el.total.substr(el.total.length - 1, 1));
635
+            dose_unit.push(this.getDose_unit(el.total));
603 636
           });
604 637
           dose_unit = this.unique_unit(dose_unit);
605 638
           // 数据合计
606 639
           data.forEach((el, index) => {
607
-            if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
608
-              unit_1.push(el.total.substr(0, el.total.length - 1));
640
+            if (this.getDose_unit(el.total) === dose_unit[0]) {
641
+              unit_1.push(parseInt(el.total));
609 642
             }
610
-            if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
611
-              unit_2.push(el.total.substr(0, el.total.length - 1));
643
+            if (this.getDose_unit(el.total) === dose_unit[1]) {
644
+              unit_1.push(parseInt(el.total));
612 645
             }
613 646
           });
614 647
           unit_1 = eval(unit_1.join("+"));
@@ -839,7 +872,6 @@ export default {
839 872
     //列表选择与合计
840 873
     handleSelectionChange(val) {
841 874
       this.multipleSelection = val;
842
-
843 875
       let coculate = val;
844 876
       let sums = "";
845 877
       let dose_unit = [];
@@ -847,21 +879,20 @@ export default {
847 879
       let unit_2 = [];
848 880
 
849 881
       coculate.forEach((el, index) => {
850
-        dose_unit.push(el.total.substr(el.total.length - 1, 1));
882
+        // dose_unit.push(el.total.substr(el.total.length - 1, 1));
883
+        dose_unit.push(this.getDose_unit(el.total))
851 884
       });
852 885
       dose_unit = this.unique_unit(dose_unit);
853
-
854 886
       // 数据合计
855 887
       coculate.forEach((el, index) => {
856
-        if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
857
-          unit_1.push(el.total.substr(0, el.total.length - 1));
888
+        if (this.getDose_unit(el.total) === dose_unit[0]) {
889
+          unit_1.push(parseInt(el.total));
858 890
         }
859 891
       });
860 892
 
861 893
       coculate.forEach((el, index) => {
862
-        if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
863
-          console.log(el, "oooel");
864
-          unit_2.push(el.total.substr(0, el.total.length - 1));
894
+        if (this.getDose_unit(el.total) === dose_unit[1]) {
895
+          unit_2.push(parseInt(el.total));
865 896
         }
866 897
       });
867 898
 
@@ -891,7 +922,6 @@ export default {
891 922
     },
892 923
     //包装selectedbydefault
893 924
     fun2() {
894
-      console.log("3333333this.waitmount_data", this.waiting_drug);
895 925
       // return new Promise((resolve, reject) => {
896 926
       if (this.state == 1 && this.waiting_drug.length > 0) {
897 927
         this.$refs.table01.setCurrentRow(this.waiting_drug[0]);
@@ -997,13 +1027,11 @@ export default {
997 1027
         if (res.data.state == 1) {
998 1028
           this.waiting_drug = res.data.data.list;
999 1029
         }
1000
-        console.log("fun1lil1111i");
1001 1030
       });
1002 1031
       await dispensemedicine(params).then((res) => {
1003 1032
         if (res.data.state == 1) {
1004 1033
           this.issued_drug = res.data.data.list;
1005 1034
         }
1006
-        console.log("fun122222222");
1007 1035
       });
1008 1036
       console.log("fun1");
1009 1037
     },
@@ -1011,7 +1039,6 @@ export default {
1011 1039
     morencreatename() {
1012 1040
       var param = {};
1013 1041
       getcurrentname(param).then((res) => {
1014
-        console.log("res(药)", res);
1015 1042
         if (res.data.state == 1) {
1016 1043
           this.admin_user_id = res.data.data.list;
1017 1044
           console.log("this.admin_user_id(药)", this.admin_user_id);
@@ -1027,7 +1054,6 @@ export default {
1027 1054
       getTodayAdviceList(params).then((response) => {
1028 1055
         if (response.data.state == 1) {
1029 1056
           this.doctorList = response.data.data.doctorlist;
1030
-          console.log("this.admin_user_id(药2)", this.admin_user_id);
1031 1057
           // this.admin_user_id = this.doctorList[0].admin_user_id
1032 1058
           // this.admin_user_id = this.tmp
1033 1059
         }
@@ -1041,7 +1067,6 @@ export default {
1041 1067
     },
1042 1068
     handleCurrentChange(val) {
1043 1069
       this.currentRow = val;
1044
-      console.log("currentRow", this.currentRow);
1045 1070
       this.total = "";
1046 1071
       if (this.state == 1) {
1047 1072
         this.getdrugsdetails(0);

+ 31 - 1
src/xt_pages/data/basicConfig.vue Näytä tiedosto

@@ -42,6 +42,10 @@
42 42
             <p style="margin-top:20px;">药品在保存处方时出库:
43 43
                 <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
44 44
             </p>
45
+
46
+            <p style="margin-top:20px;">药品耗材在结算时出库:
47
+                <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
48
+            </p>
45 49
         </div>
46 50
 
47 51
 
@@ -97,7 +101,7 @@
97 101
 
98 102
 <script>
99 103
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
100
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig} from '@/api/config'
104
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig} from '@/api/config'
101 105
 
102 106
 export default {
103 107
   name: "printTemplate",
@@ -119,6 +123,7 @@ export default {
119 123
       is_open_advice_xt_his:false,
120 124
       is_open_prescription_xt_his:false,
121 125
       drug_out_open:false,
126
+      drug_settle_open:false,
122 127
     };
123 128
   },
124 129
   methods: {
@@ -164,6 +169,12 @@ export default {
164 169
               this.drug_out_open = false
165 170
             }
166 171
 
172
+            if(response.data.data.is_seetle_open == 1){
173
+               this.drug_settle_open = true
174
+            }else{
175
+              this.drug_settle_open = false
176
+            }
177
+
167 178
           } else {
168 179
             this.$message.error(response.data.msg)
169 180
           }
@@ -405,6 +416,25 @@ export default {
405 416
         }
406 417
       })
407 418
 
419
+    },
420
+
421
+    changeSettleOpen(){
422
+      var settle_open = 0
423
+      if(this.drug_settle_open == false){
424
+        settle_open = 2
425
+      }
426
+      if(this.drug_settle_open == true){
427
+       settle_open = 1
428
+      }
429
+      var params= {
430
+        drug_settle_open:settle_open,
431
+      }
432
+      changeSettleOpenConfig(params).then(response=>{
433
+          if(response.data.state == 1){
434
+            this.$message.success("保存成功!")
435
+            this.getInitIsOpenConfig()
436
+          }
437
+      })
408 438
     }
409 439
 
410 440
   },

+ 82 - 21
src/xt_pages/data/components/dialysisAfter.vue Näytä tiedosto

@@ -22,47 +22,57 @@
22 22
           <span>{{ scope.row.filed_name }}</span>
23 23
         </template>
24 24
       </el-table-column>
25
-
25
+    
26 26
       <el-table-column align="center" label="是否显示">
27 27
         <template slot-scope="scope">
28 28
           <span v-if="scope.row.is_show == 1">是</span>
29 29
           <span v-if="scope.row.is_show == 2">否</span>
30 30
         </template>
31 31
       </el-table-column>
32
+    
33
+     <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
32 39
 
33
-      <el-table-column label="操作" align="center">
40
+
41
+       <el-table-column label="操作" align="center">
34 42
         <template slot-scope="scope">
35
-          <el-tooltip
36
-            class="item"
37
-            effect="dark"
38
-            content="不展示"
39
-            placement="top"
40
-            v-if="scope.row.is_show == 1"
41
-          >
42 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 50
             </el-button>
49
-          </el-tooltip>
50
-
51
-          <el-tooltip
52
-            class="item"
53
-            effect="dark"
54
-            content="展示"
55
-            placement="top"
56
-            v-if="scope.row.is_show == 2"
57
-          >
58 51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -113,7 +123,7 @@ export default {
113 123
         type: "warning"
114 124
       })
115 125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117 127
             if (response.data.state == 1) {
118 128
               let params = {
119 129
                 id: response.data.data.id,
@@ -129,6 +139,57 @@ export default {
129 139
           });
130 140
         })
131 141
         .catch(() => {});
142
+    },
143
+
144
+    handleHideOne: function(index, row) {
145
+      this.$confirm("是否将该字段设为不必填?", "提示", {
146
+        confirmButtonText: "确 定",
147
+        cancelButtonText: "取 消",
148
+        type: "warning"
149
+      }).then(() => {
150
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
151
+          
152
+            if (response.data.state == 1) {
153
+              this.is_write = response.data.data.is_write
154
+              let params = {
155
+                id: response.data.data.id,
156
+                is_show: response.data.data.is_show,
157
+                is_write:response.data.data.is_write,
158
+              };
159
+              store.dispatch("updateFiledConfigList", params).then(() => {});
160
+              this.$emit("change", params);
161
+            }
162
+          });
163
+          this.$message({
164
+            type: "success",
165
+            message: "设置成功!"
166
+          });
167
+        }).catch(() => {});
168
+    },
169
+  
170
+    handleShowOne: function(index, row) {
171
+      this.$confirm("是否将该字段设为必填?", "提示", {
172
+        confirmButtonText: "确 定",
173
+        cancelButtonText: "取 消",
174
+        type: "warning"
175
+      }).then(() => {
176
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
177
+            if (response.data.state == 1) {
178
+              this.is_write = response.data.data.is_write
179
+              let params = {
180
+                id: response.data.data.id,
181
+                is_show: response.data.data.is_show,
182
+                is_write:response.data.data.is_write,
183
+              };
184
+              store.dispatch("updateFiledConfigList", params).then(() => {});
185
+              this.$emit("change", params);
186
+            }
187
+          });
188
+          this.$message({
189
+            type: "success",
190
+            message: "设置成功!"
191
+          });
192
+        }).catch(() => {});
132 193
     }
133 194
   }
134 195
 };

+ 88 - 11
src/xt_pages/data/components/dialysisBefore.vue Näytä tiedosto

@@ -30,26 +30,49 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
-      <el-table-column label="操作" align="center">
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+
41
+       <el-table-column label="操作" align="center">
34 42
         <template slot-scope="scope">
35
-          <el-tooltip class="item" effect="dark" content="不展示" placement="top" v-if="scope.row.is_show == 1">
36 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
37 45
               size="small"
38 46
               type="danger"
39 47
               icon="el-icon-remove-outline"
40
-              @click="handleHide(scope.$index, scope.row)">
48
+              @click="handleHide(scope.$index, scope.row)"
49
+            >
50
+            </el-button>
51
+            <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
41 58
             </el-button>
42
-          </el-tooltip>
43 59
 
44
-          <el-tooltip class="item" effect="dark" content="展示" placement="top"  v-if="scope.row.is_show == 2">
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
62
+              size="small"
63
+              type="primary"
64
+              icon="el-icon-view"
65
+              @click="handleShow(scope.$index, scope.row)"
66
+            >
67
+            </el-button>
45 68
             <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
46 70
               size="small"
47 71
               type="primary"
48 72
               icon="el-icon-view"
49
-              @click="handleShow(scope.$index, scope.row)">
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
50 75
             </el-button>
51
-          </el-tooltip>
52
-
53 76
         </template>
54 77
       </el-table-column>
55 78
     </el-table>
@@ -77,7 +100,7 @@
77 100
           cancelButtonText: '取 消',
78 101
           type: 'warning'
79 102
         }).then(() => {
80
-          updateFieldIsShow(row.id, 2,0).then(response => {
103
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
81 104
             if (response.data.state == 1) {
82 105
               const params = {
83 106
                 id: response.data.data.id,
@@ -103,7 +126,7 @@
103 126
           cancelButtonText: '取 消',
104 127
           type: 'warning'
105 128
         }).then(() => {
106
-          updateFieldIsShow(row.id, 1,1).then(response => {
129
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
107 130
             if (response.data.state == 1) {
108 131
               const params = {
109 132
                 id: response.data.data.id,
@@ -122,7 +145,61 @@
122 145
         }).catch(() => {
123 146
 
124 147
         })
125
-      }
148
+      },
149
+
150
+     handleHideOne: function(index, row) {
151
+      this.$confirm("是否将该字段设为不必填?", "提示", {
152
+        confirmButtonText: "确 定",
153
+        cancelButtonText: "取 消",
154
+        type: "warning"
155
+      })
156
+        .then(() => {
157
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
158
+          
159
+            if (response.data.state == 1) {
160
+              this.is_write = response.data.data.is_write
161
+              let params = {
162
+                id: response.data.data.id,
163
+                is_show: response.data.data.is_show,
164
+                is_write:response.data.data.is_write,
165
+              };
166
+              store.dispatch("updateFiledConfigList", params).then(() => {});
167
+              this.$emit("change", params);
168
+            }
169
+          });
170
+          this.$message({
171
+            type: "success",
172
+            message: "设置成功!"
173
+          });
174
+        })
175
+        .catch(() => {});
176
+    },
177
+  
178
+    handleShowOne: function(index, row) {
179
+      this.$confirm("是否将该字段设为必填?", "提示", {
180
+        confirmButtonText: "确 定",
181
+        cancelButtonText: "取 消",
182
+        type: "warning"
183
+      }).then(() => {
184
+         
185
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
186
+            if (response.data.state == 1) {
187
+              this.is_write = response.data.data.is_write
188
+              let params = {
189
+                id: response.data.data.id,
190
+                is_show: response.data.data.is_show,
191
+                is_write:response.data.data.is_write,
192
+              };
193
+              store.dispatch("updateFiledConfigList", params).then(() => {});
194
+              this.$emit("change", params);
195
+            }
196
+          });
197
+          this.$message({
198
+            type: "success",
199
+            message: "设置成功!"
200
+          });
201
+        }).catch(() => {});
202
+    }
126 203
 
127 204
     },
128 205
     created() {

+ 82 - 21
src/xt_pages/data/components/dialysisComputer.vue Näytä tiedosto

@@ -32,39 +32,49 @@
32 32
 
33 33
    
34 34
 
35
-      <el-table-column label="操作" align="center">
35
+       <el-table-column align="center" label="是否必填">
36
+        <template slot-scope="scope">
37
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
38
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
39
+        </template>
40
+      </el-table-column>
41
+
42
+
43
+       <el-table-column label="操作" align="center">
36 44
         <template slot-scope="scope">
37
-          <el-tooltip
38
-            class="item"
39
-            effect="dark"
40
-            content="不展示"
41
-            placement="top"
42
-            v-if="scope.row.is_show == 1"
43
-          >
44 45
             <el-button
46
+              v-if="scope.row.is_show == 1"
45 47
               size="small"
46 48
               type="danger"
47 49
               icon="el-icon-remove-outline"
48 50
               @click="handleHide(scope.$index, scope.row)"
49 51
             >
50 52
             </el-button>
51
-          </el-tooltip>
52
-
53
-          <el-tooltip
54
-            class="item"
55
-            effect="dark"
56
-            content="展示"
57
-            placement="top"
58
-            v-if="scope.row.is_show == 2"
59
-          >
60 53
             <el-button
54
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
55
+              size="small"
56
+              type="danger"
57
+              icon="el-icon-remove-outline"
58
+              @click="handleHideOne(scope.$index, scope.row)"
59
+            >
60
+            </el-button>
61
+
62
+             <el-button
63
+              v-if="scope.row.is_show == 2"
61 64
               size="small"
62 65
               type="primary"
63 66
               icon="el-icon-view"
64 67
               @click="handleShow(scope.$index, scope.row)"
65 68
             >
66 69
             </el-button>
67
-          </el-tooltip>
70
+            <el-button
71
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72
+              size="small"
73
+              type="primary"
74
+              icon="el-icon-view"
75
+              @click="handleShowOne(scope.$index, scope.row)"
76
+            >
77
+            </el-button>
68 78
         </template>
69 79
       </el-table-column>
70 80
     </el-table>
@@ -91,7 +101,7 @@
91 101
           type: "warning"
92 102
         })
93 103
           .then(() => {
94
-            updateFieldIsShow(row.id, 2,0).then(response => {
104
+            updateFieldIsShow(row.id, 2,row.is_write).then(response => {
95 105
               if (response.data.state == 1) {
96 106
                 let params = {
97 107
                   id: response.data.data.id,
@@ -115,7 +125,7 @@
115 125
           type: "warning"
116 126
         })
117 127
           .then(() => {
118
-            updateFieldIsShow(row.id, 1,1).then(response => {
128
+            updateFieldIsShow(row.id, 1,row.is_write).then(response => {
119 129
               if (response.data.state == 1) {
120 130
                 let params = {
121 131
                   id: response.data.data.id,
@@ -131,7 +141,58 @@
131 141
             });
132 142
           })
133 143
           .catch(() => {});
134
-      }
144
+      },
145
+
146
+     handleHideOne: function(index, row) {
147
+      this.$confirm("是否将该字段设为不必填?", "提示", {
148
+        confirmButtonText: "确 定",
149
+        cancelButtonText: "取 消",
150
+        type: "warning"
151
+      }).then(() => {
152
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
153
+          
154
+            if (response.data.state == 1) {
155
+              this.is_write = response.data.data.is_write
156
+              let params = {
157
+                id: response.data.data.id,
158
+                is_show: response.data.data.is_show,
159
+                is_write:response.data.data.is_write,
160
+              };
161
+              store.dispatch("updateFiledConfigList", params).then(() => {});
162
+              this.$emit("change", params);
163
+            }
164
+          });
165
+          this.$message({
166
+            type: "success",
167
+            message: "设置成功!"
168
+          });
169
+        }).catch(() => {});
170
+    },
171
+  
172
+    handleShowOne: function(index, row) {
173
+      this.$confirm("是否将该字段设为必填?", "提示", {
174
+        confirmButtonText: "确 定",
175
+        cancelButtonText: "取 消",
176
+        type: "warning"
177
+      }).then(() => {
178
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
179
+            if (response.data.state == 1) {
180
+              this.is_write = response.data.data.is_write
181
+              let params = {
182
+                id: response.data.data.id,
183
+                is_show: response.data.data.is_show,
184
+                is_write:response.data.data.is_write,
185
+              };
186
+              store.dispatch("updateFiledConfigList", params).then(() => {});
187
+              this.$emit("change", params);
188
+            }
189
+          });
190
+          this.$message({
191
+            type: "success",
192
+            message: "设置成功!"
193
+          });
194
+        }).catch(() => {});
195
+    }
135 196
     },
136 197
     watch: {
137 198
 

+ 81 - 20
src/xt_pages/data/components/dialysisMonitor.vue Näytä tiedosto

@@ -30,39 +30,49 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
-      <el-table-column label="操作" align="center">
33
+     <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+
41
+       <el-table-column label="操作" align="center">
34 42
         <template slot-scope="scope">
35
-          <el-tooltip
36
-            class="item"
37
-            effect="dark"
38
-            content="不展示"
39
-            placement="top"
40
-            v-if="scope.row.is_show == 1"
41
-          >
42 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 50
             </el-button>
49
-          </el-tooltip>
50
-
51
-          <el-tooltip
52
-            class="item"
53
-            effect="dark"
54
-            content="展示"
55
-            placement="top"
56
-            v-if="scope.row.is_show == 2"
57
-          >
58 51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -113,7 +123,7 @@ export default {
113 123
         type: "warning"
114 124
       })
115 125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117 127
             if (response.data.state == 1) {
118 128
               let params = {
119 129
                 id: response.data.data.id,
@@ -129,6 +139,57 @@ export default {
129 139
           });
130 140
         })
131 141
         .catch(() => {});
142
+    },
143
+
144
+    handleHideOne: function(index, row) {
145
+      this.$confirm("是否将该字段设为不必填?", "提示", {
146
+        confirmButtonText: "确 定",
147
+        cancelButtonText: "取 消",
148
+        type: "warning"
149
+      }).then(() => {
150
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
151
+          
152
+            if (response.data.state == 1) {
153
+              this.is_write = response.data.data.is_write
154
+              let params = {
155
+                id: response.data.data.id,
156
+                is_show: response.data.data.is_show,
157
+                is_write:response.data.data.is_write,
158
+              };
159
+              store.dispatch("updateFiledConfigList", params).then(() => {});
160
+              this.$emit("change", params);
161
+            }
162
+          });
163
+          this.$message({
164
+            type: "success",
165
+            message: "设置成功!"
166
+          });
167
+        }).catch(() => {});
168
+    },
169
+  
170
+    handleShowOne: function(index, row) {
171
+      this.$confirm("是否将该字段设为必填?", "提示", {
172
+        confirmButtonText: "确 定",
173
+        cancelButtonText: "取 消",
174
+        type: "warning"
175
+      }).then(() => {
176
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
177
+            if (response.data.state == 1) {
178
+              this.is_write = response.data.data.is_write
179
+              let params = {
180
+                id: response.data.data.id,
181
+                is_show: response.data.data.is_show,
182
+                is_write:response.data.data.is_write,
183
+              };
184
+              store.dispatch("updateFiledConfigList", params).then(() => {});
185
+              this.$emit("change", params);
186
+            }
187
+          });
188
+          this.$message({
189
+            type: "success",
190
+            message: "设置成功!"
191
+          });
192
+        }).catch(() => {});
132 193
     }
133 194
   }
134 195
 };

+ 0 - 65
src/xt_pages/data/components/dialysisOff.vue Näytä tiedosto

@@ -72,71 +72,6 @@
72 72
               @click="handleShowOne(scope.$index, scope.row)"
73 73
             >
74 74
             </el-button>
75
-          <!-- <el-tooltip
76
-            class="item"
77
-            effect="dark"
78
-            content="不展示"
79
-            placement="top"
80
-            v-if="scope.row.is_show == 1"
81
-          >
82
-            <el-button
83
-              size="small"
84
-              type="danger"
85
-              icon="el-icon-remove-outline"
86
-              @click="handleHide(scope.$index, scope.row)"
87
-            >
88
-            </el-button>
89
-          </el-tooltip>
90
-
91
-           <el-tooltip
92
-            class="item"
93
-            effect="dark"
94
-            content="不必填"
95
-            placement="top"
96
-            v-if="scope.row.is_write == 1"
97
-          >
98
-            <el-button
99
-              size="small"
100
-              type="danger"
101
-              icon="el-icon-remove-outline"
102
-              @click="handleHideOne(scope.$index, scope.row)"
103
-            >
104
-            </el-button>
105
-          </el-tooltip>
106
-
107
-          <el-tooltip
108
-            class="item"
109
-            effect="dark"
110
-            content="展示"
111
-            placement="top"
112
-            v-if="scope.row.is_show == 2"
113
-          >
114
-            <el-button
115
-              size="small"
116
-              type="primary"
117
-              icon="el-icon-view"
118
-              @click="handleShow(scope.$index, scope.row)"
119
-            >
120
-            </el-button>
121
-           
122
-          </el-tooltip>
123
-
124
-           <el-tooltip
125
-            class="item"
126
-            effect="dark"
127
-            content="必填"
128
-            placement="top"
129
-            v-if="scope.row.is_write == 2"
130
-          >
131
-            <el-button
132
-              size="small"
133
-              type="primary"
134
-              icon="el-icon-view"
135
-              @click="handleShowOne(scope.$index, scope.row)"
136
-            >
137
-            </el-button>
138
-           
139
-          </el-tooltip> -->
140 75
         </template>
141 76
       </el-table-column>
142 77
     </el-table>

+ 86 - 19
src/xt_pages/data/components/dialysisPrescription.vue Näytä tiedosto

@@ -30,39 +30,49 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+    
33 41
       <el-table-column label="操作" align="center">
34 42
         <template slot-scope="scope">
35
-          <el-tooltip
36
-            class="item"
37
-            effect="dark"
38
-            content="不展示"
39
-            placement="top"
40
-            v-if="scope.row.is_show == 1"
41
-          >
42 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 50
             </el-button>
49
-          </el-tooltip>
50
-
51
-          <el-tooltip
52
-            class="item"
53
-            effect="dark"
54
-            content="展示"
55
-            placement="top"
56
-            v-if="scope.row.is_show == 2"
57
-          >
58 51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -113,7 +123,7 @@ export default {
113 123
         type: "warning"
114 124
       })
115 125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117 127
             if (response.data.state == 1) {
118 128
               let params = {
119 129
                 id: response.data.data.id,
@@ -129,7 +139,64 @@ export default {
129 139
           });
130 140
         })
131 141
         .catch(() => {});
142
+    },
143
+    handleHideOne: function(index, row) {
144
+      this.$confirm("是否将该字段设为不必填?", "提示", {
145
+        confirmButtonText: "确 定",
146
+        cancelButtonText: "取 消",
147
+        type: "warning"
148
+      })
149
+        .then(() => {
150
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
151
+          
152
+            if (response.data.state == 1) {
153
+              this.is_write = response.data.data.is_write
154
+              let params = {
155
+                id: response.data.data.id,
156
+                is_show: response.data.data.is_show,
157
+                is_write:response.data.data.is_write,
158
+              };
159
+              store.dispatch("updateFiledConfigList", params).then(() => {});
160
+              this.$emit("change", params);
161
+            }
162
+          });
163
+          this.$message({
164
+            type: "success",
165
+            message: "设置成功!"
166
+          });
167
+        })
168
+        .catch(() => {});
169
+    },
170
+  
171
+    handleShowOne: function(index, row) {
172
+      this.$confirm("是否将该字段设为必填?", "提示", {
173
+        confirmButtonText: "确 定",
174
+        cancelButtonText: "取 消",
175
+        type: "warning"
176
+      }).then(() => {
177
+         
178
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
179
+            if (response.data.state == 1) {
180
+              this.is_write = response.data.data.is_write
181
+              let params = {
182
+                id: response.data.data.id,
183
+                is_show: response.data.data.is_show,
184
+                is_write:response.data.data.is_write,
185
+              };
186
+              store.dispatch("updateFiledConfigList", params).then(() => {});
187
+              this.$emit("change", params);
188
+            }
189
+          });
190
+          this.$message({
191
+            type: "success",
192
+            message: "设置成功!"
193
+          });
194
+        })
195
+        .catch(() => {});
132 196
     }
197
+  },
198
+ created(){
199
+    console.log("dialysis_prescription_data",this.dialysis_prescription_data)
133 200
   }
134 201
 };
135 202
 </script>

+ 81 - 19
src/xt_pages/data/components/dialysisSummary.vue Näytä tiedosto

@@ -30,39 +30,49 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
+       <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+
33 41
       <el-table-column label="操作" align="center">
34 42
         <template slot-scope="scope">
35
-          <el-tooltip
36
-            class="item"
37
-            effect="dark"
38
-            content="不展示"
39
-            placement="top"
40
-            v-if="scope.row.is_show == 1"
41
-          >
42 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 50
             </el-button>
49
-          </el-tooltip>
50
-
51
-          <el-tooltip
52
-            class="item"
53
-            effect="dark"
54
-            content="展示"
55
-            placement="top"
56
-            v-if="scope.row.is_show == 2"
57
-          >
58 51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -113,7 +123,7 @@ export default {
113 123
         type: "warning"
114 124
       })
115 125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117 127
             if (response.data.state == 1) {
118 128
               let params = {
119 129
                 id: response.data.data.id,
@@ -129,6 +139,58 @@ export default {
129 139
           });
130 140
         })
131 141
         .catch(() => {});
142
+    },
143
+
144
+
145
+    handleHideOne: function(index, row) {
146
+      this.$confirm("是否将该字段设为不必填?", "提示", {
147
+        confirmButtonText: "确 定",
148
+        cancelButtonText: "取 消",
149
+        type: "warning"
150
+      }).then(() => {
151
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
152
+          
153
+            if (response.data.state == 1) {
154
+              this.is_write = response.data.data.is_write
155
+              let params = {
156
+                id: response.data.data.id,
157
+                is_show: response.data.data.is_show,
158
+                is_write:response.data.data.is_write,
159
+              };
160
+              store.dispatch("updateFiledConfigList", params).then(() => {});
161
+              this.$emit("change", params);
162
+            }
163
+          });
164
+          this.$message({
165
+            type: "success",
166
+            message: "设置成功!"
167
+          });
168
+        }).catch(() => {});
169
+    },
170
+  
171
+    handleShowOne: function(index, row) {
172
+      this.$confirm("是否将该字段设为必填?", "提示", {
173
+        confirmButtonText: "确 定",
174
+        cancelButtonText: "取 消",
175
+        type: "warning"
176
+      }).then(() => {
177
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
178
+            if (response.data.state == 1) {
179
+              this.is_write = response.data.data.is_write
180
+              let params = {
181
+                id: response.data.data.id,
182
+                is_show: response.data.data.is_show,
183
+                is_write:response.data.data.is_write,
184
+              };
185
+              store.dispatch("updateFiledConfigList", params).then(() => {});
186
+              this.$emit("change", params);
187
+            }
188
+          });
189
+          this.$message({
190
+            type: "success",
191
+            message: "设置成功!"
192
+          });
193
+        }).catch(() => {});
132 194
     }
133 195
   },
134 196
     watch: {

+ 84 - 24
src/xt_pages/data/components/doubleCheck.vue Näytä tiedosto

@@ -30,39 +30,49 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
-      <el-table-column label="操作" align="center">
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+
41
+       <el-table-column label="操作" align="center">
34 42
         <template slot-scope="scope">
35
-          <el-tooltip
36
-            class="item"
37
-            effect="dark"
38
-            content="不展示"
39
-            placement="top"
40
-            v-if="scope.row.is_show == 1"
41
-          >
42 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 50
             </el-button>
49
-          </el-tooltip>
50
-
51
-          <el-tooltip
52
-            class="item"
53
-            effect="dark"
54
-            content="展示"
55
-            placement="top"
56
-            v-if="scope.row.is_show == 2"
57
-          >
58 51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -103,8 +113,7 @@ export default {
103 113
             type: "success",
104 114
             message: "设置成功!"
105 115
           });
106
-        })
107
-        .catch(() => {});
116
+        }).catch(() => {});
108 117
     },
109 118
     handleShow: function(index, row) {
110 119
       this.$confirm("是否将该字段设为可见?", "提示", {
@@ -112,7 +121,7 @@ export default {
112 121
         cancelButtonText: "取 消",
113 122
         type: "warning"
114 123
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1,1).then(response => {
124
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
116 125
             if (response.data.state == 1) {
117 126
               let params = {
118 127
                 id: response.data.data.id,
@@ -126,8 +135,59 @@ export default {
126 135
             type: "success",
127 136
             message: "设置成功!"
128 137
           });
129
-        })
130
-        .catch(() => {});
138
+        }).catch(() => {});
139
+    },
140
+
141
+
142
+    handleHideOne: function(index, row) {
143
+      this.$confirm("是否将该字段设为不必填?", "提示", {
144
+        confirmButtonText: "确 定",
145
+        cancelButtonText: "取 消",
146
+        type: "warning"
147
+      }).then(() => {
148
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
149
+          
150
+            if (response.data.state == 1) {
151
+              this.is_write = response.data.data.is_write
152
+              let params = {
153
+                id: response.data.data.id,
154
+                is_show: response.data.data.is_show,
155
+                is_write:response.data.data.is_write,
156
+              };
157
+              store.dispatch("updateFiledConfigList", params).then(() => {});
158
+              this.$emit("change", params);
159
+            }
160
+          });
161
+          this.$message({
162
+            type: "success",
163
+            message: "设置成功!"
164
+          });
165
+        }).catch(() => {});
166
+    },
167
+  
168
+    handleShowOne: function(index, row) {
169
+      this.$confirm("是否将该字段设为必填?", "提示", {
170
+        confirmButtonText: "确 定",
171
+        cancelButtonText: "取 消",
172
+        type: "warning"
173
+      }).then(() => {
174
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
175
+            if (response.data.state == 1) {
176
+              this.is_write = response.data.data.is_write
177
+              let params = {
178
+                id: response.data.data.id,
179
+                is_show: response.data.data.is_show,
180
+                is_write:response.data.data.is_write,
181
+              };
182
+              store.dispatch("updateFiledConfigList", params).then(() => {});
183
+              this.$emit("change", params);
184
+            }
185
+          });
186
+          this.$message({
187
+            type: "success",
188
+            message: "设置成功!"
189
+          });
190
+        }).catch(() => {});
131 191
     }
132 192
   },
133 193
  

+ 85 - 20
src/xt_pages/data/components/receiveTreatmentAsses.vue Näytä tiedosto

@@ -30,39 +30,49 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+        
33 41
       <el-table-column label="操作" align="center">
34 42
         <template slot-scope="scope">
35
-          <el-tooltip
36
-            class="item"
37
-            effect="dark"
38
-            content="不展示"
39
-            placement="top"
40
-            v-if="scope.row.is_show == 1"
41
-          >
42 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 50
             </el-button>
49
-          </el-tooltip>
50
-
51
-          <el-tooltip
52
-            class="item"
53
-            effect="dark"
54
-            content="展示"
55
-            placement="top"
56
-            v-if="scope.row.is_show == 2"
57
-          >
58 51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59 62
               size="small"
60 63
               type="primary"
61
-              icon="el-icon-edit-outline"
64
+              icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -88,7 +98,7 @@ export default {
88 98
         type: "warning"
89 99
       })
90 100
         .then(() => {
91
-          updateFieldIsShow(row.id, 2,0).then(response => {
101
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
92 102
             if (response.data.state == 1) {
93 103
               let params = {
94 104
                 id: response.data.data.id,
@@ -112,7 +122,7 @@ export default {
112 122
         type: "warning"
113 123
       })
114 124
         .then(() => {
115
-          updateFieldIsShow(row.id, 1,1).then(response => {
125
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
116 126
             if (response.data.state == 1) {
117 127
               let params = {
118 128
                 id: response.data.data.id,
@@ -128,6 +138,61 @@ export default {
128 138
           });
129 139
         })
130 140
         .catch(() => {});
141
+    },
142
+
143
+    handleHideOne: function(index, row) {
144
+      this.$confirm("是否将该字段设为不必填?", "提示", {
145
+        confirmButtonText: "确 定",
146
+        cancelButtonText: "取 消",
147
+        type: "warning"
148
+      })
149
+        .then(() => {
150
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
151
+          
152
+            if (response.data.state == 1) {
153
+              this.is_write = response.data.data.is_write
154
+              let params = {
155
+                id: response.data.data.id,
156
+                is_show: response.data.data.is_show,
157
+                is_write:response.data.data.is_write,
158
+              };
159
+              store.dispatch("updateFiledConfigList", params).then(() => {});
160
+              this.$emit("change", params);
161
+            }
162
+          });
163
+          this.$message({
164
+            type: "success",
165
+            message: "设置成功!"
166
+          });
167
+        })
168
+        .catch(() => {});
169
+    },
170
+  
171
+    handleShowOne: function(index, row) {
172
+      this.$confirm("是否将该字段设为必填?", "提示", {
173
+        confirmButtonText: "确 定",
174
+        cancelButtonText: "取 消",
175
+        type: "warning"
176
+      }).then(() => {
177
+         
178
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
179
+            if (response.data.state == 1) {
180
+              this.is_write = response.data.data.is_write
181
+              let params = {
182
+                id: response.data.data.id,
183
+                is_show: response.data.data.is_show,
184
+                is_write:response.data.data.is_write,
185
+              };
186
+              store.dispatch("updateFiledConfigList", params).then(() => {});
187
+              this.$emit("change", params);
188
+            }
189
+          });
190
+          this.$message({
191
+            type: "success",
192
+            message: "设置成功!"
193
+          });
194
+        })
195
+        .catch(() => {});
131 196
     }
132 197
   }
133 198
 };

+ 25 - 1
src/xt_pages/data/showConfig.vue Näytä tiedosto

@@ -122,6 +122,9 @@ export default {
122 122
       for (let i = 0; i < this.dialysis_prescription_data.length; i++) {
123 123
         if (this.dialysis_prescription_data[i].id == object.id) {
124 124
           this.dialysis_prescription_data[i].is_show = object.is_show;
125
+           if(object.is_write!=undefined){
126
+           this.dialysis_prescription_data[i].is_write = object.is_write
127
+          }
125 128
         }
126 129
       }
127 130
     },
@@ -129,6 +132,9 @@ export default {
129 132
       for (let i = 0; i < this.receive_treatment_asses_data.length; i++) {
130 133
         if (this.receive_treatment_asses_data[i].id == object.id) {
131 134
           this.receive_treatment_asses_data[i].is_show = object.is_show;
135
+           if(object.is_write!=undefined){
136
+           this.receive_treatment_asses_data[i].is_write = object.is_write
137
+          }
132 138
         }
133 139
       }
134 140
     },
@@ -136,12 +142,18 @@ export default {
136 142
       for (let i = 0; i < this.dialysis_before_data.length; i++) {
137 143
         if (this.dialysis_before_data[i].id == object.id) {
138 144
           this.dialysis_before_data[i].is_show = object.is_show;
145
+           if(object.is_write!=undefined){
146
+           this.dialysis_before_data[i].is_write = object.is_write
147
+          }
139 148
         }
140 149
       }
141 150
     },changeComputerData:function(object){
142 151
       for (let i = 0; i < this.dialysis_computer_data.length; i++) {
143 152
         if (this.dialysis_computer_data[i].id == object.id) {
144 153
           this.dialysis_computer_data[i].is_show = object.is_show;
154
+           if(object.is_write!=undefined){
155
+           this.dialysis_computer_data[i].is_write = object.is_write
156
+          }
145 157
         }
146 158
       }
147 159
     },
@@ -149,6 +161,9 @@ export default {
149 161
       for (let i = 0; i < this.dialysis_monitor_data.length; i++) {
150 162
         if (this.dialysis_monitor_data[i].id == object.id) {
151 163
           this.dialysis_monitor_data[i].is_show = object.is_show;
164
+           if(object.is_write!=undefined){
165
+           this.dialysis_monitor_data[i].is_write = object.is_write
166
+          }
152 167
         }
153 168
       }
154 169
     },
@@ -156,6 +171,9 @@ export default {
156 171
       for (let i = 0; i < this.dialysis_after_data.length; i++) {
157 172
         if (this.dialysis_after_data[i].id == object.id) {
158 173
           this.dialysis_after_data[i].is_show = object.is_show;
174
+           if(object.is_write!=undefined){
175
+           this.dialysis_after_data[i].is_write = object.is_write
176
+          }
159 177
         }
160 178
       }
161 179
     },
@@ -163,6 +181,9 @@ export default {
163 181
       for (let i = 0; i < this.dialysis_summary_data.length; i++) {
164 182
         if (this.dialysis_summary_data[i].id == object.id) {
165 183
           this.dialysis_summary_data[i].is_show = object.is_show;
184
+           if(object.is_write!=undefined){
185
+           this.dialysis_summary_data[i].is_write = object.is_write
186
+          }
166 187
         }
167 188
       }
168 189
     },
@@ -171,6 +192,9 @@ export default {
171 192
      for (let i = 0; i < this.double_check_date.length; i++) {
172 193
         if (this.double_check_date[i].id == object.id) {
173 194
           this.double_check_date[i].is_show = object.is_show;
195
+          if(object.is_write!=undefined){
196
+           this.double_check_date[i].is_write = object.is_write
197
+          }
174 198
         }
175 199
       }
176 200
     },
@@ -179,7 +203,7 @@ export default {
179 203
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
180 204
         if (this.dialysis_off_data[i].id == object.id) {
181 205
           this.dialysis_off_data[i].is_show = object.is_show;
182
-          if(obj.is_write!=undefined){
206
+          if(object.is_write!=undefined){
183 207
            this.dialysis_off_data[i].is_write = object.is_write
184 208
           }
185 209
           

+ 91 - 60
src/xt_pages/dialysis/PatientBox.vue Näytä tiedosto

@@ -93,67 +93,85 @@
93 93
       </div>
94 94
       <div class="dislysisInfo">
95 95
         <p>
96
-          体重(前/后kg):
97
-          {{
98
-            schedule.assessment_before_dislysis
99
-              ? schedule.assessment_before_dislysis.weight_before
100
-              : ""
101
-          }}
102
-          <span
103
-            v-if="
104
-              schedule.assessment_after_dislysis &&
105
-              schedule.assessment_after_dislysis.weight_after > 0
106
-            "
107
-            >/{{
108
-              schedule.assessment_after_dislysis
109
-                ? schedule.assessment_after_dislysis.weight_after
110
-                : ""
111
-            }}</span
112
-          >
96
+          <span  v-if="$store.getters.xt_user.org.id!=9671 && $store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340 ">
97
+            体重(前/后kg):
98
+            {{schedule.assessment_before_dislysis? schedule.assessment_before_dislysis.weight_before: ""}}
99
+            <span v-if="schedule.assessment_after_dislysis &&schedule.assessment_after_dislysis.weight_after > 0">/{{schedule.assessment_after_dislysis? schedule.assessment_after_dislysis.weight_after: ""}}</span>
100
+          </span>
101
+          <span v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
102
+            核酸检测日期:<span v-if="schedule.dialysis_order!=null">{{getTimeOne(schedule.dialysis_order.nuclein_date)}}</span>
103
+          </span>
113 104
         </p>
114 105
         <p>
115
-          目标超滤量:
116
-          <span
117
-            v-if="
118
-              schedule.prescription &&
119
-              schedule.prescription.target_ultrafiltration > 0
120
-            "
121
-            >{{
122
-              schedule.prescription
123
-                ? schedule.prescription.target_ultrafiltration
124
-                : ""
125
-            }}</span
126
-          >
106
+          <span v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
107
+            透析时长:
108
+             <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_duration_hour >0">{{schedule.prescription.dialysis_duration_hour}}时</span>
109
+             <span v-if="schedule.prescription!=null && schedule.prescription.dialysis_duration_minute>0">{{schedule.prescription.dialysis_duration_minute}}分</span>
110
+          </span>
127 111
         </p>
128
-        <p
129
-          :title="
130
-            schedule.prescription
131
-              ? schedule.prescription.dialyzer_perfusion_apparatus
132
-              : ''
133
-          "
134
-        >
135
-          透析器/灌流器:{{
136
-            schedule.prescription
137
-              ? schedule.prescription.dialyzer_perfusion_apparatus
138
-              : ""
139
-          }}
140
-          <span v-if="schedule.prescription != null">{{
141
-            schedule.prescription
142
-              ? schedule.prescription.dialysis_dialyszers
143
-              : ""
144
-          }}</span>
145
-          <span
146
-            v-if="
147
-              schedule.prescription != null &&
148
-              schedule.prescription.dialysis_irrigation != ''
149
-            "
150
-            >/</span
151
-          >
152
-          <span v-if="schedule.prescription != null">{{
153
-            schedule.prescription
154
-              ? schedule.prescription.dialysis_irrigation
155
-              : ""
156
-          }}</span>
112
+        <p>
113
+          <span>
114
+              目标超滤量:
115
+            <span v-if=" schedule.prescription && schedule.prescription.target_ultrafiltration > 0">
116
+               <span v-if="$store.getters.xt_user.org.id==10340"> {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}ml</span>
117
+               <span v-if="$store.getters.xt_user.org.id!=10340"> {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}</span>
118
+            </span>
119
+          </span>
120
+        </p>
121
+        <p>
122
+           <span  v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
123
+             抗凝剂:
124
+             <span v-if="schedule.prescription!=null">
125
+                <span v-if="schedule.prescription.anticoagulant == 1">无肝素</span>
126
+                <span v-if="schedule.prescription.anticoagulant == 2">普通肝素</span>
127
+                <span v-if="schedule.prescription.anticoagulant == 3">低分子肝素</span>
128
+                <span v-if="schedule.prescription.anticoagulant == 4">阿加曲班</span>
129
+                <span v-if="schedule.prescription.anticoagulant == 5">枸橼酸钠</span>
130
+                <span v-if="schedule.prescription.anticoagulant == 6">低分子肝素钙</span>
131
+                <span v-if="schedule.prescription.anticoagulant == 7">低分子肝素钠</span>
132
+                <span v-if="schedule.prescription.anticoagulant == 8">依诺肝素</span>
133
+                <span v-if="schedule.prescription.anticoagulant == 9">达肝素</span>
134
+                <span v-if="schedule.prescription.anticoagulant == 10">体外抗凝</span>
135
+                <span v-if="schedule.prescription.anticoagulant == 11">那屈肝素</span>
136
+                <span v-if="schedule.prescription.anticoagulant == 12">无抗凝剂</span>
137
+                <span v-if="schedule.prescription.anticoagulant == 13">那屈肝素钙</span>
138
+             </span>
139
+          </span>
140
+        </p>
141
+        <p  v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
142
+           总量:
143
+              <span v-if="schedule.prescription!=null">
144
+              <span v-if="schedule.prescription.anticoagulant == 1">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
145
+              <span v-if="schedule.prescription.anticoagulant == 2">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
146
+              <span v-if="schedule.prescription.anticoagulant == 3">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
147
+              <span v-if="schedule.prescription.anticoagulant == 4">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
148
+              <span v-if="schedule.prescription.anticoagulant == 5">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
149
+              <span v-if="schedule.prescription.anticoagulant == 6">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
150
+              <span v-if="schedule.prescription.anticoagulant == 7">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
151
+              <span v-if="schedule.prescription.anticoagulant == 8">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
152
+              <span v-if="schedule.prescription.anticoagulant == 9">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
153
+              <span v-if="schedule.prescription.anticoagulant == 10">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
154
+              <span v-if="schedule.prescription.anticoagulant == 11">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
155
+              <span v-if="schedule.prescription.anticoagulant == 12">{{schedule.prescription.anticoagulant_zongliang}}iu</span>
156
+              <span v-if="schedule.prescription.anticoagulant == 13">{{schedule.prescription.anticoagulant_zongliang}}mg</span>
157
+             </span>
158
+        </p>
159
+
160
+
161
+        <p v-if="$store.getters.xt_user.org.id!=9671 && $store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
162
+          透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
163
+          <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
164
+          <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
165
+          <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
166
+        </p>
167
+        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
168
+             透析器/灌流器:
169
+             <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
170
+             <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
171
+        </p>
172
+      
173
+        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
174
+           备注:{{schedule.patient.sch_remark}}
157 175
         </p>
158 176
       </div>
159 177
       <div
@@ -234,6 +252,7 @@
234 252
 </template>
235 253
 
236 254
 <script>
255
+import { uParseTime } from '@/utils/tools'
237 256
 import { parseTime } from "@/utils";
238 257
 import { jsGetAge } from "@/utils/tools";
239 258
 import dialysisPrescriptionDialog from "../dialysis/details/dialog/dialysisPrescriptionDialog";
@@ -344,6 +363,13 @@ export default {
344 363
   },
345 364
 
346 365
   methods: {
366
+    getTimeOne(val) {
367
+      if(val == ""){
368
+      return ""
369
+      }else {
370
+      return uParseTime(val, '{y}-{m}-{d}')
371
+      }
372
+    },
347 373
     stateColor: function (schedual) {
348 374
       var state = this.computeState(schedual);
349 375
       if (state == 1) {
@@ -568,7 +594,8 @@ export default {
568 594
             lastPredialysisEvaluation,
569 595
             lastDialysisPrescribe,
570 596
             lastDryWeightDislysis,
571
-            system_prescribe
597
+            system_prescribe,
598
+            resp.data.doctors
572 599
           );
573 600
 
574 601
           var headNurses = resp.data.headNurse;
@@ -625,6 +652,7 @@ export default {
625 652
           // this.$refs.monitoring.setRecords(this.monitor_records)
626 653
 
627 654
           this.admin_users = resp.data.doctors;
655
+          this.$refs.prescription.showOne(this.prescription,this.admin_users)
628 656
           this.devices = resp.data.devices;
629 657
           this.device_numbers = resp.data.device_numbers;
630 658
 
@@ -716,12 +744,14 @@ export default {
716 744
       this.$emit("advice");
717 745
     },
718 746
     open(schedual) {
747
+    
719 748
       this.date = schedual.schedule_date;
720 749
       this.patient_id = schedual.patient_id;
721 750
       this.modedata = 1;
722 751
       this.getScheduleDetail();
723 752
       // this.getLongAdvice()
724
-      this.$refs.prescription.show(this.prescription, schedual);
753
+      this.$refs.prescription.show(this.prescription, schedual,"","","",this.admin_users);
754
+
725 755
     },
726 756
     open1(schedual) {
727 757
       this.date = schedual.schedule_date;
@@ -755,6 +785,7 @@ export default {
755 785
         return "modePurple";
756 786
       }
757 787
     },
788
+    
758 789
   },
759 790
 };
760 791
 </script>

File diff suppressed because it is too large
+ 3382 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fiftynine.vue


+ 4 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue Näytä tiedosto

@@ -430,7 +430,7 @@
430 430
                                     &nbsp;{{ record.prescription.displace_liqui_value ? record.prescription.displace_liqui_value : "" }}
431 431
                                 </div>
432 432
                                 </td>
433
-                                <td width="10">ml)</td>
433
+                                <td width="10"><span v-if="org_id==10157||org_id==9675">L)</span> <span v-else>ml)</span></td>
434 434
                                 <td width="50"><label-box :isChecked="record.prescription.mode_id != 5 && record.prescription.mode_id != 1 && record.prescription.mode_id != 2 ? true : false" showValue="其他"></label-box></td>
435 435
                                 <td width="50">
436 436
                                 <div class="under-line">&nbsp;
@@ -805,7 +805,7 @@
805 805
                               <td width="50">
806 806
                                   <div class="under-line">&nbsp;{{ record.assessment_after_dislysis.actual_displacement ? record.assessment_after_dislysis.actual_displacement : "" }}</div>
807 807
                               </td>
808
-                              <td width="20">ml</td>
808
+                              <td width="20"><span v-if="org_id==10157||org_id==9675">L)</span> <span v-else>ml)</span></td>
809 809
                               <td></td>
810 810
                           </tr>
811 811
                           </tbody>
@@ -1078,7 +1078,7 @@ export default {
1078 1078
       precaution_arr: [],
1079 1079
       intake_arr: [],
1080 1080
       nutrition_arr: [],
1081
-
1081
+      org_id:0,
1082 1082
       loading: false,
1083 1083
       orgname: "",
1084 1084
       org_template_info: {},
@@ -1105,6 +1105,7 @@ export default {
1105 1105
     };
1106 1106
   },
1107 1107
   created() {
1108
+    this.org_id = this.$store.getters.xt_user.org.id
1108 1109
     var xtuser = this.$store.getters.xt_user;
1109 1110
     this.orgname = xtuser.org.org_name;
1110 1111
     //   this.orgname = "遂溪方济医院";

+ 11 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue Näytä tiedosto

@@ -543,6 +543,15 @@
543 543
                                 <span v-if="record.prescription.anticoagulant == 7"
544 544
                                     >&nbsp;低分子肝素钠</span
545 545
                                 >
546
+                                <span v-if="record.prescription.anticoagulant == 8">&nbsp;依诺肝素</span>
547
+                                <span v-if="record.prescription.anticoagulant == 9">&nbsp;达肝素</span>
548
+                                 <span v-if="record.prescription.anticoagulant == 10">&nbsp;体外抗凝</span>
549
+                                 <span v-if="record.prescription.anticoagulant == 11">&nbsp;那屈肝素</span>
550
+                                 <span v-if="record.prescription.anticoagulant == 12">&nbsp;无抗凝剂</span>
551
+                                <span v-if="record.prescription.anticoagulant == 13">&nbsp;那屈肝素钙</span>
552
+                                
553
+                               
554
+                             
546 555
                                 </div>
547 556
                             </div>
548 557
                             <div class="inline_block" style="margin-left:20px;" v-if="record.prescription.anticoagulant != 5">
@@ -928,7 +937,8 @@ export default {
928 937
       arr:[],
929 938
       arrtwo:[],
930 939
       bloodAccess: [],
931
-      displaceLiquiPartOptions:[]
940
+      displaceLiquiPartOptions:[],
941
+      org_id:0,
932 942
     }
933 943
   },
934 944
   created() {

+ 7 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue Näytä tiedosto

@@ -323,7 +323,7 @@
323 323
                         <td width="60">时间</td>
324 324
                         <td width="80" style="height:20px;line-height:20px">血压<br />mmHg</td>
325 325
                         <td width="60" style="height:20px;line-height:20px">脉搏<br />(次/分)</td>
326
-                        <td width="60" style="height:20px;line-height:20px">KTV</td>
326
+                        <td width="60" style="height:20px;line-height:20px" v-if="org_id!=10215">KTV</td>
327 327
                         <td width="60" style="height:20px;line-height:20px">血流量<br />(ml/min)</td>
328 328
                         <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
329 329
                         <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
@@ -333,7 +333,7 @@
333 333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
334 334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
335 335
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换量<br /><br />ml</td>-->
336
-                        <td width="60" style="height:20px;line-height:20px">血容量<br />L</td>
336
+                        <td width="60" style="height:20px;line-height:20px" v-if="org_id!=10215">血容量<br />L</td>
337 337
                         <td width="">病情变化及处理</td>
338 338
                     </tr>
339 339
 
@@ -346,7 +346,7 @@
346 346
                             </span>
347 347
                         </td>
348 348
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.pulse_frequency ? monitor.pulse_frequency : "/" }}</span></td>
349
-                        <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ktv ? monitor.ktv : "/" }}</span></td>
349
+                        <td v-if="org_id!=10215">&nbsp;<span v-if="monitor.operate_time" >{{ monitor.ktv ? monitor.ktv : "/" }}</span></td>
350 350
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "/" }}</span></td>
351 351
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.venous_pressure ? monitor.venous_pressure : "/" }}</span></td>
352 352
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span></td>
@@ -357,7 +357,7 @@
357 357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
358 358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
359 359
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.displacement_quantity ? monitor.displacement_quantity : "/" }}</span></td>-->
360
-                        <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : "/" }}</span></td>
360
+                        <td v-if="org_id!=10215">&nbsp;<span v-if="monitor.operate_time">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : "/" }}</span></td>
361 361
                         <td style="text-align:left;padding-left:10px;">
362 362
                             <div style="line-height:20px;text-align: left;display: inline-block;">
363 363
                                 &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}
@@ -654,7 +654,8 @@ export default {
654 654
         "出血",
655 655
         "心衰",
656 656
         "腹痛"
657
-      ]
657
+      ],
658
+      org_id: "",
658 659
     };
659 660
   },
660 661
   created() {
@@ -666,7 +667,7 @@ export default {
666 667
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
667 668
     this.intake_arr = getDataConfig("hemodialysis", "intake");
668 669
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
669
-
670
+    this.org_id = this.$store.getters.xt_user.org.id;
670 671
     var xtuser = this.$store.getters.xt_user;
671 672
     this.orgname = xtuser.org.org_name;
672 673
     //   this.orgname = "遂溪方济医院";

+ 288 - 195
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Näytä tiedosto

@@ -1207,7 +1207,11 @@
1207 1207
                           <td width="60" v-if="org_id == 9836">体温(°C)</td>
1208 1208
                           <td
1209 1209
                             width="50"
1210
-                            v-if=" org_id != 9538 && org_id != 10121 && org_id != 9675 && org_id != 0
1210
+                            v-if="
1211
+                              org_id != 9538 &&
1212
+                              org_id != 10121 &&
1213
+                              org_id != 9675 &&
1214
+                              org_id != 0
1211 1215
                             "
1212 1216
                           >
1213 1217
                             电导度<br />(ms/cm)
@@ -1234,13 +1238,20 @@
1234 1238
 
1235 1239
                           <td
1236 1240
                             width="50"
1237
-                            v-if="org_id == 9919 || org_id == 9538 || org_id == 9675 || org_id == 9671 "
1241
+                            v-if="
1242
+                              org_id == 9919 ||
1243
+                              org_id == 9538 ||
1244
+                              org_id == 9675 ||
1245
+                              org_id == 9671
1246
+                            "
1238 1247
                           >
1239 1248
                             KT/V
1240 1249
                           </td>
1241 1250
                           <td
1242 1251
                             width="50"
1243
-                            v-if="org_id == 9538 || org_id == 9675 || org_id == 9671"
1252
+                            v-if="
1253
+                              org_id == 9538 || org_id == 9675 || org_id == 9671
1254
+                            "
1244 1255
                           >
1245 1256
                             血容量<br />(L)
1246 1257
                           </td>
@@ -1253,55 +1264,116 @@
1253 1264
                           :key="j"
1254 1265
                         >
1255 1266
                           <td>
1256
-                            {{getTime(monitor_record.operate_time, "{h}:{i}")}}
1267
+                            {{
1268
+                              getTime(monitor_record.operate_time, "{h}:{i}")
1269
+                            }}
1257 1270
                           </td>
1258 1271
                           <td>
1259
-                            {{ monitor_record.systolic_blood_pressure? monitor_record.systolic_blood_pressure + "/": ""}}
1260
-                            {{ monitor_record.diastolic_blood_pressure? monitor_record.diastolic_blood_pressure: ""}}
1272
+                            {{
1273
+                              monitor_record.systolic_blood_pressure
1274
+                                ? monitor_record.systolic_blood_pressure + "/"
1275
+                                : ""
1276
+                            }}
1277
+                            {{
1278
+                              monitor_record.diastolic_blood_pressure
1279
+                                ? monitor_record.diastolic_blood_pressure
1280
+                                : ""
1281
+                            }}
1261 1282
                           </td>
1262 1283
                           <td>
1263
-                            {{monitor_record.pulse_frequency? monitor_record.pulse_frequency: ""}}
1284
+                            {{
1285
+                              monitor_record.pulse_frequency
1286
+                                ? monitor_record.pulse_frequency
1287
+                                : ""
1288
+                            }}
1264 1289
                           </td>
1265 1290
                           <td>
1266
-                            {{ monitor_record.breathing_rate ? monitor_record.breathing_rate: ""}}
1291
+                            {{
1292
+                              monitor_record.breathing_rate
1293
+                                ? monitor_record.breathing_rate
1294
+                                : ""
1295
+                            }}
1267 1296
                           </td>
1268 1297
                           <td>
1269
-                            {{monitor_record.blood_flow_volume? monitor_record.blood_flow_volume: ""}}
1298
+                            {{
1299
+                              monitor_record.blood_flow_volume
1300
+                                ? monitor_record.blood_flow_volume
1301
+                                : ""
1302
+                            }}
1270 1303
                           </td>
1271 1304
                           <td>
1272
-                            {{monitor_record.venous_pressure? monitor_record.venous_pressure: ""}}
1305
+                            {{
1306
+                              monitor_record.venous_pressure
1307
+                                ? monitor_record.venous_pressure
1308
+                                : ""
1309
+                            }}
1273 1310
                           </td>
1274 1311
                           <td>
1275
-                             {{monitor_record.transmembrane_pressure ? monitor_record.transmembrane_pressure: ""}}
1312
+                            {{
1313
+                              monitor_record.transmembrane_pressure
1314
+                                ? monitor_record.transmembrane_pressure
1315
+                                : ""
1316
+                            }}
1276 1317
                           </td>
1277 1318
                           <td v-if="org_id != 9836">
1278
-                            {{ monitor_record.dialysate_temperature? monitor_record.dialysate_temperature: ""}}
1319
+                            {{
1320
+                              monitor_record.dialysate_temperature
1321
+                                ? monitor_record.dialysate_temperature
1322
+                                : ""
1323
+                            }}
1279 1324
                           </td>
1280 1325
                           <td v-if="org_id == 9836">
1281
-                            {{monitor_record.temperature? monitor_record.temperature: ""}}
1326
+                            {{
1327
+                              monitor_record.temperature
1328
+                                ? monitor_record.temperature
1329
+                                : ""
1330
+                            }}
1282 1331
                           </td>
1283 1332
 
1284 1333
                           <!-- <td v-if="org_id != 10121 && org_id != 9675 && org_id != 0">
1285 1334
                             {{monitor_record.conductivity? monitor_record.conductivity : ""}}
1286 1335
                           </td> -->
1287
-                         <td v-if=" org_id != 9538 &&org_id != 10121 && org_id != 9675 &&org_id != 0">
1336
+                          <td
1337
+                            v-if="
1338
+                              org_id != 9538 &&
1339
+                              org_id != 10121 &&
1340
+                              org_id != 9675 &&
1341
+                              org_id != 0
1342
+                            "
1343
+                          >
1288 1344
                             {{
1289
-                              monitor_record.conductivity ? monitor_record.conductivity : ""
1345
+                              monitor_record.conductivity
1346
+                                ? monitor_record.conductivity
1347
+                                : ""
1290 1348
                             }}
1291 1349
                           </td>
1292 1350
 
1293
-                          <td v-if="org_id == 10121 || org_id == 9675 || org_id == 0">
1294
-                            {{monitor_record.blood_oxygen_saturation? monitor_record.blood_oxygen_saturation: ""}}
1351
+                          <td
1352
+                            v-if="
1353
+                              org_id == 10121 || org_id == 9675 || org_id == 0
1354
+                            "
1355
+                          >
1356
+                            {{
1357
+                              monitor_record.blood_oxygen_saturation
1358
+                                ? monitor_record.blood_oxygen_saturation
1359
+                                : ""
1360
+                            }}
1295 1361
                           </td>
1296 1362
 
1297
-                        
1298
-
1299 1363
                           <td v-if="org_id == 9538">
1300
-                            {{ monitor_record.sodium_concentration? monitor_record.sodium_concentration: ""}}
1364
+                            {{
1365
+                              monitor_record.sodium_concentration
1366
+                                ? monitor_record.sodium_concentration
1367
+                                : ""
1368
+                            }}
1301 1369
                           </td>
1302 1370
 
1303 1371
                           <td>
1304
-                            <span>{{monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: ""}}</span>
1372
+                            <span>{{
1373
+                              monitor_record.ultrafiltration_volume
1374
+                                ? monitor_record.ultrafiltration_volume
1375
+                                : ""
1376
+                            }}</span>
1305 1377
                           </td>
1306 1378
 
1307 1379
                           <td
@@ -1320,13 +1392,20 @@
1320 1392
                           </td>
1321 1393
                           <td
1322 1394
                             width="50"
1323
-                            v-if="org_id == 9919 || org_id == 9538 || org_id == 9675  || org_id == 9671"
1395
+                            v-if="
1396
+                              org_id == 9919 ||
1397
+                              org_id == 9538 ||
1398
+                              org_id == 9675 ||
1399
+                              org_id == 9671
1400
+                            "
1324 1401
                           >
1325 1402
                             {{ monitor_record.ktv }}
1326 1403
                           </td>
1327 1404
                           <td
1328 1405
                             width="50"
1329
-                            v-if="org_id == 9538 || org_id == 9675 || org_id == 9671"
1406
+                            v-if="
1407
+                              org_id == 9538 || org_id == 9675 || org_id == 9671
1408
+                            "
1330 1409
                           >
1331 1410
                             {{ monitor_record.accumulated_blood_volume }}
1332 1411
                           </td>
@@ -1446,7 +1525,7 @@
1446 1525
                         <!-- <tr style="line-height:35px;padding:8px 5px;">
1447 1526
                                             <td colspan="4" style="font-size: 16px">开医嘱</td>
1448 1527
                                             <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1449
-                                        </tr> -->
1528
+                            </tr> -->
1450 1529
                         <tr style="line-height: 35px; padding: 8px 5px">
1451 1530
                           <td style="font-size: 16px" width="10%">时间</td>
1452 1531
                           <td style="font-size: 16px" colspan="2" width="45%">
@@ -1460,100 +1539,113 @@
1460 1539
                           <td style="font-size: 16px" width="10%">时间</td>
1461 1540
                         </tr>
1462 1541
                         <!-- <template v-for="group in doctor_advices" > -->
1463
-                        <tr
1464
-                          v-for="(advice, advice_index) in record.advices"
1465
-                          :key="advice_index"
1466
-                        >
1467
-                          <td height="35px">
1468
-                            <span v-if="advice.start_time">
1469
-                              {{ getTime(advice.start_time, "{h}:{i}") }}
1470
-                            </span>
1471
-                          </td>
1472 1542
 
1473
-                          <td
1474
-                            height="35px"
1475
-                            colspan="2"
1476
-                            class="advice-name"
1477
-                            style="padding-left: 7px"
1543
+                        <template v-if="record.advices">
1544
+                          <tr
1545
+                            v-for="(advice, advice_index) in record.advices"
1546
+                            :key="advice_index"
1478 1547
                           >
1479
-                            <span v-if="advice.parent_id > 0">---></span>
1480
-                            <span>{{ advice.advice_name }}</span>
1548
+                            <td height="35px">
1549
+                              <span v-if="advice[0].start_time">
1550
+                                {{ getTime(advice[0].start_time, "{h}:{i}") }}
1551
+                              </span>
1552
+                            </td>
1481 1553
 
1482
-                            <span
1483
-                              v-if="
1484
-                                advice[advice_index] &&
1485
-                                advice.advice_desc != undefined
1486
-                              "
1554
+                            <td
1555
+                              height="35px"
1556
+                              colspan="2"
1557
+                              class="advice-name"
1558
+                              style="padding-left: 7px"
1487 1559
                             >
1488
-                              ({{ advice.advice_desc
1489
-                              }}{{ advice.drug_spec_unit }} )
1490
-                            </span>
1560
+                              <span v-if="advice[0].parent_id > 0">---></span>
1561
+                              <span>{{ advice[0].advice_name }}</span>
1491 1562
 
1492
-                            <span v-if="advice.prescribing_number"
1493
-                              >&nbsp;&nbsp; {{ advice.prescribing_number
1494
-                              }}{{ advice.prescribing_number_unit }}</span
1495
-                            >
1496
-                            <span v-if="advice.single_dose != 0">
1497
-                              {{ advice.single_dose
1498
-                              }}{{ advice.single_dose_unit }}</span
1499
-                            >
1563
+                              <span
1564
+                                v-if="
1565
+                                  advice[0] &&
1566
+                                  advice[0].advice_desc != undefined
1567
+                                "
1568
+                              >
1569
+                                ({{ advice[0].advice_desc
1570
+                                }}{{ advice[0].drug_spec_unit }} )
1571
+                              </span>
1500 1572
 
1501
-                            <span v-if="advice.parent_id == 0">{{
1502
-                              advice.delivery_way
1503
-                            }}</span>
1504
-                            <span v-if="advice.parent_id == 0">{{
1505
-                              advice.execution_frequency
1506
-                            }}</span>
1507
-                            <span
1508
-                              v-if="
1509
-                                advice.parent_id == 0 &&
1510
-                                advice.remark.length > 0
1511
-                              "
1512
-                              >({{ advice.remark }})</span
1513
-                            >
1514
-                          </td>
1573
+                              <span v-if="advice[0].prescribing_number"
1574
+                                >&nbsp;&nbsp; {{ advice[0].prescribing_number
1575
+                                }}{{ advice[0].prescribing_number_unit }}</span
1576
+                              >
1577
+                              <span v-if="advice[0].single_dose != 0">
1578
+                                {{ advice[0].single_dose
1579
+                                }}{{ advice[0].single_dose_unit }}</span
1580
+                              >
1515 1581
 
1516
-                          <td height="35px">
1517
-                            <span
1518
-                              v-if="
1519
-                                setAdminUserES(advice, 'advice_doctor') == ''
1520
-                              "
1521
-                              >{{ getAdminUser(advice, "advice_doctor") }}</span
1522
-                            >
1523
-                            <img
1524
-                              class="es-img"
1525
-                              :src="setAdminUserES(advice, 'advice_doctor')"
1526
-                              alt=""
1527
-                              srcset=""
1528
-                              v-else
1529
-                              style="height: 40px"
1530
-                            />
1531
-                          </td>
1582
+                              <span v-if="advice[0].parent_id == 0">{{
1583
+                                advice[0].delivery_way
1584
+                              }}</span>
1585
+                              <span v-if="advice[0].parent_id == 0">{{
1586
+                                advice[0].execution_frequency
1587
+                              }}</span>
1588
+                              <span
1589
+                                v-if="
1590
+                                  advice[0].parent_id == 0 &&
1591
+                                  advice[0].remark.length > 0
1592
+                                "
1593
+                                >({{ advice[0].remark }})</span
1594
+                              >
1595
+                            </td>
1532 1596
 
1533
-                          <td height="35px">
1534
-                            <span
1535
-                              v-if="
1536
-                                setAdminUserES(advice, 'execution_staff') == ''
1537
-                              "
1538
-                              >{{
1539
-                                getAdminUser(advice, "execution_staff")
1540
-                              }}</span
1541
-                            >
1542
-                            <img
1543
-                              class="es-img"
1544
-                              :src="setAdminUserES(advice, 'execution_staff')"
1545
-                              alt=""
1546
-                              srcset=""
1547
-                              v-else
1548
-                              style="height: 40px"
1549
-                            />
1550
-                          </td>
1551
-                          <td height="35px">
1552
-                            <span v-if="advice.execution_time">{{
1553
-                              getTime(advice.execution_time, " {h}:{i}")
1554
-                            }}</span>
1555
-                          </td>
1556
-                        </tr>
1597
+                            <td height="35px">
1598
+                              <span
1599
+                                v-if="
1600
+                                  setAdminUserES(advice[0], 'advice_doctor') ==
1601
+                                  ''
1602
+                                "
1603
+                                >{{
1604
+                                  getAdminUser(advice[0], "advice_doctor")
1605
+                                }}</span
1606
+                              >
1607
+                              <img
1608
+                                class="es-img"
1609
+                                :src="
1610
+                                  setAdminUserES(advice[0], 'advice_doctor')
1611
+                                "
1612
+                                alt=""
1613
+                                srcset=""
1614
+                                v-else
1615
+                                style="height: 40px"
1616
+                              />
1617
+                            </td>
1618
+
1619
+                            <td height="35px">
1620
+                              <span
1621
+                                v-if="
1622
+                                  setAdminUserES(
1623
+                                    advice[0],
1624
+                                    'execution_staff'
1625
+                                  ) == ''
1626
+                                "
1627
+                                >{{
1628
+                                  getAdminUser(advice[0], "execution_staff")
1629
+                                }}</span
1630
+                              >
1631
+                              <img
1632
+                                class="es-img"
1633
+                                :src="
1634
+                                  setAdminUserES(advice[0], 'execution_staff')
1635
+                                "
1636
+                                alt=""
1637
+                                srcset=""
1638
+                                v-else
1639
+                                style="height: 40px"
1640
+                              />
1641
+                            </td>
1642
+                            <td height="35px">
1643
+                              <span v-if="advice[0].execution_time">{{
1644
+                                getTime(advice[0].execution_time, " {h}:{i}")
1645
+                              }}</span>
1646
+                            </td>
1647
+                          </tr>
1648
+                        </template>
1557 1649
                       </tbody>
1558 1650
                     </table>
1559 1651
                   </td>
@@ -1653,6 +1745,7 @@
1653 1745
                 入科方式:
1654 1746
                 <div
1655 1747
                   v-for="(item, index) in way_arr"
1748
+                  :key="index"
1656 1749
                   class="under_line"
1657 1750
                   v-if="record.receive_assessment.way == item.id"
1658 1751
                   style="width: 180px; text-align: left"
@@ -2705,92 +2798,92 @@ export default {
2705 2798
               this.records[recordIndex].isShowZero = true;
2706 2799
             }
2707 2800
 
2708
-            // var delghTwo = 0;
2709
-            // if (
2710
-            //   this.records[recordIndex].advices &&
2711
-            //   this.records[recordIndex].advices.length < 12
2712
-            // ) {
2713
-            //   delghTwo = 12 - this.records[recordIndex].advices.length;
2714
-            // } else {
2715
-            //   delghTwo = 0;
2716
-            // }
2717
-
2718
-            // if (delghTwo > 0) {
2719
-            //   if (
2720
-            //     typeof this.records[recordIndex].advices === "undefined" ||
2721
-            //     this.records[recordIndex].advices == null
2722
-            //   ) {
2723
-            //     this.records[recordIndex].advices = [];
2724
-            //   }
2725
-            //   for (let index = 0; index < delghTwo; index++) {
2726
-            //     this.records[recordIndex].advices.push([]);
2727
-            //   }
2728
-            // }
2729
-
2730
-            // var childMap = {};
2731
-            // for (const index in this.records[recordIndex].advices) {
2732
-            //   if (this.records[recordIndex].advices[index].parent_id == 0) {
2733
-            //     continue;
2734
-            //   }
2735
-            //   if (
2736
-            //     !(
2737
-            //       this.records[recordIndex].advices[index].parent_id in childMap
2738
-            //     )
2739
-            //   ) {
2740
-            //     childMap[
2741
-            //       this.records[recordIndex].advices[index].parent_id
2742
-            //     ] = [];
2743
-            //   }
2744
-            //   childMap[this.records[recordIndex].advices[index].parent_id].push(
2745
-            //     this.records[recordIndex].advices[index]
2746
-            //   );
2747
-            // }
2748
-
2749
-            // var advices = [];
2750
-            // for (const index in this.records[recordIndex].advices) {
2751
-            //   if (this.records[recordIndex].advices[index].parent_id > 0) {
2752
-            //     continue;
2753
-            //   }
2754
-            //   var item = this.records[recordIndex].advices[index];
2755
-            //   if (item.id in childMap) {
2756
-            //     item.children = childMap[item.id];
2757
-            //   } else {
2758
-            //     item.children = [];
2759
-            //   }
2760
-            //   advices.push(item);
2761
-            // }
2762
-
2763
-            // var leftAdvice = [];
2764
-            // var rightAdvice = [];
2765
-            // var adlen = advices.length;
2766
-
2767
-            // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2768
-            // for (var i = 0; i < halfLen; i++) {
2769
-            //   leftAdvice.push(advices[i]);
2770
-            //   var rightIndex = i + halfLen;
2771
-            //   rightAdvice.push(
2772
-            //     rightIndex in advices ? advices[i + halfLen] : []
2773
-            //   );
2774
-            // }
2775
-            // if (halfLen < 5) {
2776
-            //   var nl = 5 - leftAdvice.length;
2777
-            //   for (let index = 0; index < nl; index++) {
2778
-            //     leftAdvice.push([]);
2779
-            //   }
2780
-            //   var nl = 5 - rightAdvice.length;
2781
-            //   for (let index = 0; index < nl; index++) {
2782
-            //     rightAdvice.push([]);
2783
-            //   }
2784
-            // }
2785
-
2786
-            // this.records[recordIndex].advices = [];
2787
-            // for (var i = 0; i < halfLen; i++) {
2788
-            //   var item = [];
2789
-            //   item.push(leftAdvice[i]);
2790
-            //   item.push(rightAdvice[i]);
2791
-            //   this.records[recordIndex].advices.push(item);
2792
-            // }
2801
+            var delghTwo = 0;
2802
+            if (
2803
+              this.records[recordIndex].advices &&
2804
+              this.records[recordIndex].advices.length < 12
2805
+            ) {
2806
+              delghTwo = 12 - this.records[recordIndex].advices.length;
2807
+            } else {
2808
+              delghTwo = 0;
2809
+            }
2810
+
2811
+            if (delghTwo > 0) {
2812
+              if (
2813
+                typeof this.records[recordIndex].advices === "undefined" ||
2814
+                this.records[recordIndex].advices == null
2815
+              ) {
2816
+                this.records[recordIndex].advices = [];
2817
+              }
2818
+              for (let index = 0; index < delghTwo; index++) {
2819
+                this.records[recordIndex].advices.push([]);
2820
+              }
2821
+            }
2822
+
2823
+            var childMap = {};
2824
+            for (const index in this.records[recordIndex].advices) {
2825
+              if (this.records[recordIndex].advices[index].parent_id == 0) {
2826
+                continue;
2827
+              }
2828
+              if (
2829
+                !(
2830
+                  this.records[recordIndex].advices[index].parent_id in childMap
2831
+                )
2832
+              ) {
2833
+                childMap[this.records[recordIndex].advices[index].parent_id] =
2834
+                  [];
2835
+              }
2836
+              childMap[this.records[recordIndex].advices[index].parent_id].push(
2837
+                this.records[recordIndex].advices[index]
2838
+              );
2839
+            }
2840
+
2841
+            var advices = [];
2842
+            for (const index in this.records[recordIndex].advices) {
2843
+              if (this.records[recordIndex].advices[index].parent_id > 0) {
2844
+                continue;
2845
+              }
2846
+              var item = this.records[recordIndex].advices[index];
2847
+              if (item.id in childMap) {
2848
+                item.children = childMap[item.id];
2849
+              } else {
2850
+                item.children = [];
2851
+              }
2852
+              advices.push(item);
2853
+            }
2854
+
2855
+            var leftAdvice = [];
2856
+            var rightAdvice = [];
2857
+            var adlen = advices.length;
2858
+
2859
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2860
+            for (var i = 0; i < halfLen; i++) {
2861
+              leftAdvice.push(advices[i]);
2862
+              var rightIndex = i + halfLen;
2863
+              rightAdvice.push(
2864
+                rightIndex in advices ? advices[i + halfLen] : []
2865
+              );
2866
+            }
2867
+            if (halfLen < 5) {
2868
+              var nl = 5 - leftAdvice.length;
2869
+              for (let index = 0; index < nl; index++) {
2870
+                leftAdvice.push([]);
2871
+              }
2872
+              var nl = 5 - rightAdvice.length;
2873
+              for (let index = 0; index < nl; index++) {
2874
+                rightAdvice.push([]);
2875
+              }
2876
+            }
2877
+
2878
+            this.records[recordIndex].advices = [];
2879
+            for (var i = 0; i < halfLen; i++) {
2880
+              var item = [];
2881
+              item.push(leftAdvice[i]);
2882
+              item.push(rightAdvice[i]);
2883
+              this.records[recordIndex].advices.push(item);
2884
+            }
2793 2885
           }
2886
+          console.log(this.records, "this.records");
2794 2887
           // this.records.forEach(o => {
2795 2888
           //   console.log(o,'jj')
2796 2889
           //   this.blood_access_part_opera_name = this.bloodAccessParOperaName(

File diff suppressed because it is too large
+ 3213 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue


File diff suppressed because it is too large
+ 3267 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyOne.vue


File diff suppressed because it is too large
+ 2231 - 726
src/xt_pages/dialysis/batch_print/batch_print_order_twentyEight.vue


+ 34 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Näytä tiedosto

@@ -319,6 +319,34 @@
319 319
           >批量打印</el-button
320 320
         >
321 321
       </template>
322
+      <template v-if="this.template_id == 59">
323
+        <el-button
324
+          size="small"
325
+          icon="el-icon-printer"
326
+          :disabled="selecting_schs.length == 0"
327
+          @click="batchPrintAction"
328
+          type="primary"
329
+          >打印</el-button>
330
+      </template>
331
+      <template v-if="this.template_id == 60">
332
+        <el-button
333
+          size="small"
334
+          icon="el-icon-printer"
335
+          :disabled="selecting_schs.length == 0"
336
+          @click="batchPrintAction"
337
+          type="primary"
338
+          >批量打印</el-button>
339
+      </template>
340
+      <template v-if="this.template_id == 61">
341
+        <el-button
342
+          size="small"
343
+          icon="el-icon-printer"
344
+          :disabled="selecting_schs.length == 0"
345
+          @click="batchPrintAction"
346
+          type="primary"
347
+          >批量打印</el-button>
348
+      </template>
349
+      
322 350
 
323 351
     </div>
324 352
     <div class="app-container">
@@ -958,6 +986,12 @@ export default {
958 986
         this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
959 987
       } else if (this.template_id == 48) {
960 988
         this.$router.push({ path: "/dialysis/print/batch/six" });
989
+      }else if (this.template_id == 59) {
990
+        this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
991
+      }else if (this.template_id == 60) {
992
+        this.$router.push({ path: "/dialysis/print/batch/sixty" });
993
+      }else if (this.template_id == 61) {
994
+        this.$router.push({ path: "/dialysis/print/batch/sixtyOne" });
961 995
       }
962 996
     },
963 997
     batchPrintActionOne: function() {

+ 2 - 6
src/xt_pages/dialysis/components/consumables.vue Näytä tiedosto

@@ -309,7 +309,7 @@
309 309
           this.list.map(item => {
310 310
             a.push(item.good_type)
311 311
           })
312
-          // console.log('aaaaaaaaa',a)
312
+          console.log('aaaaaaaaa',a)
313 313
           let b = []
314 314
 
315 315
           a.map(item => {
@@ -326,7 +326,7 @@
326 326
             b.push(obj)
327 327
           })
328 328
           var temp = []
329
-          // console.log('bbbbbbbbbb',b)
329
+          console.log('bbbbbbbbbb',b)
330 330
           for(let i=0;i<b.length;i++){
331 331
             var objC = {...b[i]}
332 332
             temp.push(objC)
@@ -346,7 +346,6 @@
346 346
               obj2[str] = i[str]
347 347
             })
348 348
             tempTwo.push(obj2)
349
-            // console.log(325556574342354234234,tempTwo)
350 349
           })
351 350
 
352 351
           this.arrList.push(...tempTwo)
@@ -400,9 +399,6 @@
400 399
 
401 400
        exportList(){
402 401
          import('@/vendor/Export2Excel').then(excel => {
403
-
404
-
405
-
406 402
          var arrTwo = []
407 403
          for(let i=0;i<this.arrKey.length;i++){
408 404
             arrTwo.push('name'+i)

+ 171 - 14
src/xt_pages/dialysis/details/DialysisPrescription.vue Näytä tiedosto

@@ -60,17 +60,48 @@
60 60
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
61 61
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 10234">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
62 62
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 10234 )">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
63
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
63
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >
64
+            
65
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675">
66
+                  {{ anticoagulant_zongliang != "0" ? "mg" : "" }}
67
+              </span>
68
+              <span v-else>
69
+                {{ anticoagulant_zongliang != "0" ? "iu" : "" }}
70
+              </span>
71
+            </span>
64 72
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
73
+             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
74
+               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675">
75
+                  {{ anticoagulant_zongliang != "0" ? "mg" : "" }}
76
+              </span>
77
+              <span v-else>
78
+                {{ anticoagulant_zongliang != "0" ? "iu" : "" }}
79
+              </span>
80
+            </span>
65 81
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
66 82
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span>
67
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
68
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
83
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">
84
+               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675">
85
+                  {{ anticoagulant_zongliang != "0" ? "mg" : "" }}
86
+              </span>
87
+              <span v-else>
88
+                {{ anticoagulant_zongliang != "0" ? "iu" : "" }}
89
+              </span>
90
+            </span>
91
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">
92
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675">
93
+                  {{ anticoagulant_zongliang != "0" ? "mg" : "" }}
94
+              </span>
95
+              <span v-else>
96
+                {{ anticoagulant_zongliang != "0" ? "iu" : "" }}
97
+              </span>
98
+            </span>
69 99
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
70 100
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
71 101
           </span>
72 102
           <span v-else>
73
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
103
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">
104
+              {{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
74 105
             <span class="unit" v-else>{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
75 106
           </span>
76 107
         </li>
@@ -111,8 +142,8 @@
111 142
           <label>目标超滤量 : </label>
112 143
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
113 144
           
114
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10249"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
115
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10249" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
145
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
146
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
116 147
         </li>
117 148
 
118 149
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
@@ -149,12 +180,27 @@
149 180
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
150 181
             <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 ">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
151 182
             <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
152
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
183
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
184
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
185
+                 {{ anticoagulant_shouji != "0" ? "mg" : "" }}
186
+              </span>
187
+              <span v-else> {{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
188
+            </span>
153 189
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
154 190
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
155 191
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
156
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span >
157
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
192
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >
193
+             <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
194
+                 {{ anticoagulant_shouji != "0" ? "mg" : "" }}
195
+              </span>
196
+              <span v-else> {{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
197
+            </span >
198
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >
199
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
200
+                 {{ anticoagulant_shouji != "0" ? "mg" : "" }}
201
+              </span>
202
+              <span v-else> {{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
203
+            </span>
158 204
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
159 205
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
160 206
           </span>
@@ -245,12 +291,27 @@
245 291
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
246 292
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 ">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
247 293
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
248
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
294
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
295
+              <span v-if="this.$store.getters.xt_user.template_info.org_id ==9671">
296
+              {{ anticoagulant_weichi != "0" ? "mg/h" : "" }}
297
+              </span> 
298
+              <span v-else>{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
299
+            </span>
249 300
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
250 301
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
251 302
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span>
252
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
253
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
303
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">
304
+             <span v-if="this.$store.getters.xt_user.template_info.org_id ==9671">
305
+              {{ anticoagulant_weichi != "0" ? "mg/h" : "" }}
306
+              </span> 
307
+              <span v-else>{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
308
+            </span>
309
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">
310
+             <span v-if="this.$store.getters.xt_user.template_info.org_id ==9671">
311
+              {{ anticoagulant_weichi != "0" ? "mg/h" : "" }}
312
+              </span> 
313
+              <span v-else>{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
314
+            </span>
254 315
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
255 316
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
256 317
           </span>
@@ -352,16 +413,21 @@
352 413
         </li>
353 414
 
354 415
         <li v-if="isShow('单超脱水')">
355
-          <label>单超脱水(L): </label>
416
+          <label>单超脱水(ml): </label>
356 417
           <span class="content">{{this.prescription.single_water}}</span>
357 418
         </li>
358 419
 
359 420
 
360
-         <li v-if="isShow('置换流量')">
421
+         <li v-if="isShow('置换流量') && this.$store.getters.xt_user.template_info.org_id!=10340">
361 422
           <label>置换流量(L/h): </label>
362 423
           <span class="content">{{this.prescription.replacement_flow}}</span>
363 424
         </li>
364 425
 
426
+        <li v-if="isShow('置换流量') && this.$store.getters.xt_user.template_info.org_id==10340">
427
+          <label>置换流量(ml/min): </label>
428
+          <span class="content">{{this.prescription.replacement_flow}}</span>
429
+        </li>
430
+
365 431
         <li v-if="isShow('血浆分离器')">
366 432
           <label>血浆分离器: </label>
367 433
           <span class="content">{{this.prescription.plasma_separator}}</span>
@@ -400,6 +466,91 @@
400 466
             <span>{{this.prescription.max_ultrafiltration_rate}}</span>
401 467
            </span>
402 468
         </li>
469
+
470
+    
471
+        <li v-if="isShow('曲线脱水')">
472
+          <label>曲线脱水(ml): </label>
473
+          <span class="content">{{this.prescription.drhy_water}}</span>
474
+        </li>
475
+
476
+         <li v-if="isShow('带水上机')">
477
+          <label>带水上机: </label>
478
+          <span class="content">{{this.prescription.water_machine}}</span>
479
+        </li>
480
+
481
+        <li v-if=" isShow('追加肝素量')" >
482
+          <label>追加肝素量 : </label>
483
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ add_amount != "0" ? add_amount : "" }}</span>
484
+          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
485
+            <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
486
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 ">{{ add_amount != "0" ? "iu" : "" }}</span>
487
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)" >{{ add_amount != "0" ? "mg" : "" }}</span>
488
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
489
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
490
+                 {{ add_amount != "0" ? "mg" : "" }}
491
+              </span>
492
+              <span v-else> {{ add_amount != "0" ? "iu" : "" }}</span>
493
+            </span>
494
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ add_amount != "0" ? "mg" : "" }}</span>
495
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ add_amount != "0" ? "mg" : "" }}</span >
496
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ add_amount != "0" ? "mg" : "" }}</span>
497
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >
498
+             <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
499
+                 {{ add_amount != "0" ? "mg" : "" }}
500
+              </span>
501
+              <span v-else> {{ add_amount != "0" ? "iu" : "" }}</span>
502
+            </span >
503
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >
504
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
505
+                 {{ add_amount != "0" ? "mg" : "" }}
506
+              </span>
507
+              <span v-else> {{ add_amount != "0" ? "iu" : "" }}</span>
508
+            </span>
509
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ add_amount != "0" ? "iu" : "" }}</span>
510
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ add_amount != "0" ? "iu" : "" }}</span>
511
+          </span>
512
+          <span v-else>
513
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">{{ add_amount != "0" ? "mg" : "" }}</span>
514
+            <span class="unit"  v-else>{{ add_amount != "0" ? "iu" : "" }}</span>
515
+          </span>
516
+        </li>
517
+
518
+       <li v-if=" isShow('减肝素量')" >
519
+          <label>减肝素量 : </label>
520
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ reduce_amount != "0" ? reduce_amount : "" }}</span>
521
+          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
522
+            <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
523
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 ">{{ reduce_amount != "0" ? "iu" : "" }}</span>
524
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)" >{{ reduce_amount != "0" ? "mg" : "" }}</span>
525
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
526
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
527
+                 {{ reduce_amount != "0" ? "mg" : "" }}
528
+              </span>
529
+              <span v-else> {{ reduce_amount != "0" ? "iu" : "" }}</span>
530
+            </span>
531
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ reduce_amount != "0" ? "mg" : "" }}</span>
532
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ reduce_amount != "0" ? "mg" : "" }}</span >
533
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ reduce_amount != "0" ? "mg" : "" }}</span>
534
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >
535
+             <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
536
+                 {{ reduce_amount != "0" ? "mg" : "" }}
537
+              </span>
538
+              <span v-else> {{ reduce_amount != "0" ? "iu" : "" }}</span>
539
+            </span >
540
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >
541
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
542
+                 {{ reduce_amount != "0" ? "mg" : "" }}
543
+              </span>
544
+              <span v-else> {{ reduce_amount != "0" ? "iu" : "" }}</span>
545
+            </span>
546
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ reduce_amount != "0" ? "iu" : "" }}</span>
547
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ reduce_amount != "0" ? "iu" : "" }}</span>
548
+          </span>
549
+          <span v-else>
550
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">{{ reduce_amount != "0" ? "mg" : "" }}</span>
551
+            <span class="unit"  v-else>{{ reduce_amount != "0" ? "iu" : "" }}</span>
552
+          </span>
553
+        </li>
403 554
        
404 555
       </ul>
405 556
     </div>
@@ -718,6 +869,12 @@ export default {
718 869
     displace_speed:function(){
719 870
       return this.getValueStr('displace_speed','displace_speed')
720 871
     },
872
+    add_amount:function(){
873
+       return this.getValueStr('add_amount','add_amount')
874
+    },
875
+    reduce_amount:function(){
876
+       return this.getValueStr('reduce_amount','reduce_amount')
877
+    }
721 878
   
722 879
   },
723 880
   created() {

+ 14 - 2
src/xt_pages/dialysis/details/NavIgation.vue Näytä tiedosto

@@ -91,6 +91,7 @@
91 91
       :stockType="stockType"
92 92
       :lastAssessment="lastAssessment"
93 93
       :mode_id="mode_id"
94
+    
94 95
     ></dialysis-prescription-dialog>
95 96
 
96 97
     <double-check-dialog
@@ -151,6 +152,8 @@
151 152
       :device_numbers="device_numbers"
152 153
       :special_premission="special_premission"
153 154
       :patient="patient"
155
+      :stockType="stockType"
156
+      :lastOrder="lastOrder"
154 157
     ></computer-dialog>
155 158
 
156 159
     <monitor-dialog
@@ -178,6 +181,8 @@
178 181
       ref="assessment_after_dislysis"
179 182
       :assessment_after_dislysis="assessment_after_dislysis"
180 183
       :patient="patient"
184
+      :prescription="prescription"
185
+      :predialysis_evaluation="predialysis_evaluation"
181 186
       :dialysis_order="dialysis_order"
182 187
     ></assessment-after-dislysis>
183 188
   </div>
@@ -552,6 +557,13 @@ export default {
552 557
         return 0;
553 558
       }
554 559
     },
560
+   lastOrder: {
561
+      // 患者排班信息
562
+      type: Object,
563
+      default: () => {
564
+        return { id: 0 };
565
+      }
566
+    },
555 567
   },
556 568
   methods: {
557 569
     getUnReadNum: function() {
@@ -644,13 +656,13 @@ export default {
644 656
       this.$refs.doctor_advice.show(this.his_is_open,this.is_advice_open);
645 657
     },
646 658
     showComputerDialog: function() {
647
-      this.$refs.computer_dialog.show(this.dialysis_order);
659
+      this.$refs.computer_dialog.show(this.dialysis_order,this.lastOrder);
648 660
     },
649 661
     showFinishDialog: function() {
650 662
       this.$refs.finish_dialog.show(this.dialysis_order);
651 663
     },
652 664
     showPrescription: function() {
653
-      this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open);
665
+      this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open,this.admin_users);
654 666
     },
655 667
     showAccepts: function() {
656 668
       this.$refs.accepts.show(this.receiver_treatment_access);

+ 11 - 1
src/xt_pages/dialysis/details/acceptsAssessment.vue Näytä tiedosto

@@ -69,10 +69,20 @@
69 69
       </ul>
70 70
       <ul>
71 71
         <li v-if="this.record.condition == 1">
72
-          <label> 住院号</label>
72
+          <label> 住院号:</label>
73 73
           <span class="content">{{ this.record.admission_number }}</span>
74 74
         </li>
75 75
 
76
+        <li v-if="this.record.condition == 1">
77
+          <label> 住院科室:</label>
78
+          <span class="content">{{ this.record.his_department }}</span>
79
+        </li>
80
+
81
+        <li v-if="this.record.condition == 1">
82
+          <label> 住院床位:</label>
83
+          <span class="content">{{ this.record.his_bed }}</span>
84
+        </li>
85
+
76 86
         <li v-if="isShow('病人意识')">
77 87
           <label>病人意识 :</label>
78 88
           <span class="content">{{ consciousness }}</span>

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue Näytä tiedosto

@@ -17,8 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.org_id == 9555) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 44 &&  this.$store.getters.xt_user.template_info.org_id == 9555 " >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10340 ||  this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10430 ||  this.$store.getters.xt_user.template_info.org_id == 10432 ) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 44 && this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10340 &&  this.$store.getters.xt_user.template_info.org_id!= 10387 &&  this.$store.getters.xt_user.template_info.org_id!= 10430 &&  this.$store.getters.xt_user.template_info.org_id!= 10432"  >L</span>
22 22
         </li>
23 23
         <li v-if="isShow('导管')">
24 24
           <label>导管 : </label>

+ 25 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue Näytä tiedosto

@@ -25,6 +25,19 @@
25 25
           <span class="content" v-if="dry_weight != '0'">{{ dry_weight }}</span>
26 26
           <span class="unit" v-if="dry_weight != '0'">kg</span>
27 27
         </li>
28
+
29
+        <li v-if="isShow('身高')">
30
+          <label>身高 : </label>
31
+          <span class="content">
32
+            {{this.record.height}}
33
+          </span>
34
+        </li>
35
+        <li v-if="isShow('年龄')">
36
+          <label>年龄 : </label>
37
+          <span class="content">
38
+            {{this.record.age}}
39
+          </span>
40
+        </li>
28 41
         <li v-if="isShow('脉搏')">
29 42
           <label>脉搏 : </label>
30 43
           <span class="content" v-if="pulse_frequency != '0'">{{
@@ -391,6 +404,18 @@
391 404
           <span class="unit"></span>
392 405
         </li>
393 406
 
407
+         <li v-if="isShow('住院科室')">
408
+          <label>住院科室: </label>
409
+          <span class="content">{{this.record.his_department}}</span>
410
+          <span class="unit"></span>
411
+        </li>
412
+
413
+          <li v-if="isShow('住院床位')">
414
+          <label>住院床位: </label>
415
+          <span class="content">{{this.record.his_bed}}</span>
416
+          <span class="unit"></span>
417
+        </li>
418
+
394 419
       </ul>
395 420
     </div>
396 421
     <div class="note">

+ 442 - 46
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue Näytä tiedosto

@@ -20,7 +20,8 @@
20 20
                       :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date"
21 21
                       format="yyyy-MM-dd"
22 22
                       value-format="yyyy-MM-dd"
23
-                      placeholder="选择日期时间" align="right"></el-date-picker>
23
+                      placeholder="选择日期时间" align="right"
24
+                     :picker-options="pickerOptions"></el-date-picker>
24 25
       <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
25 26
                 class="filter-item" v-model="query.keywords"/>
26 27
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
@@ -42,8 +43,9 @@
42 43
         </div>
43 44
       </div>
44 45
       <div>
45
-        <el-button size="small" icon="el-icon-printer" @click="exportList" type="primary">导出</el-button>
46 46
         <el-button size="small" type="primary" @click="statistics">统计表</el-button>
47
+        <el-button size="small"  @click="exportList" type="primary">导出</el-button>
48
+        <el-button size="small" icon="el-icon-printer"  @click="toPrint" type="primary">打印</el-button>
47 49
       </div>
48 50
     </div>
49 51
   
@@ -56,7 +58,13 @@
56 58
           backgroundColor: 'rgb(245, 247, 250)',
57 59
           color: '#606266'
58 60
         }"
61
+        @selection-change="handleSelectionChange"
59 62
       >
63
+        <el-table-column
64
+          align="center"
65
+          type="selection"
66
+          width="55">
67
+        </el-table-column>
60 68
         <el-table-column label="序号" align="center"  width="55">
61 69
            <template slot-scope="scope">
62 70
              {{scope.$index + 1}}
@@ -65,7 +73,7 @@
65 73
 
66 74
         <el-table-column label="透析机号" align="center" width="55">
67 75
            <template slot-scope="scope">
68
-              {{scope.row.device_number.number}}
76
+              {{scope.row.device_number.zone.name}}  {{scope.row.device_number.number}}
69 77
            </template>
70 78
         </el-table-column>
71 79
 
@@ -83,8 +91,8 @@
83 91
 
84 92
         <el-table-column label="推送医嘱" align="center" width="1280">
85 93
            <template slot-scope="scope">
86
-             {{getAdviceContent(scope.row.patient_id)}}
87
-             {{getHisAdviceContent(scope.row.patient_id)}}
94
+             <span v-if="config.is_open !=1">{{getAdviceContent(scope.row.patient_id)}}</span> 
95
+            <span v-if="config.is_open == 1"> {{getHisAdviceContent(scope.row.patient_id)}}</span>
88 96
            </template>
89 97
         </el-table-column>
90 98
      
@@ -105,13 +113,83 @@
105 113
     >
106 114
     </el-pagination>
107 115
 
108
-   
116
+    
117
+     <el-dialog
118
+      title="药品统计表"
119
+      :visible.sync="startdialogVisible"
120
+      width="70%">
121
+      <span>
122
+        <div class="cell clearfix">
123
+          <label class="title"> <span class="name">排班班次</span> : </label>
124
+           <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleType">
125
+            <el-option
126
+              v-for="item in schedulArr"
127
+              :key="item.value"
128
+              :label="item.label"
129
+              :value="item.value">
130
+            </el-option>
131
+           </el-select>
132
+           <label class="title"> <span class="name">病区选择</span> : </label>
133
+           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
134
+            <el-option
135
+              v-for="item in partitionArr"
136
+              :key="item.id"
137
+              :label="item.name"
138
+              :value="item.id">
139
+            </el-option>
140
+           </el-select>
141
+           <el-button size="small" icon="el-icon-printer"  @click="toPrintOne" type="primary">打印</el-button>
142
+           <el-button size="small"  @click="toExportListOne" type="primary">导出</el-button>
143
+        </div> 
144
+
145
+       <el-table
146
+        :data="tableList"
147
+        border
148
+        :row-style="{ color: '#303133' }"
149
+        :header-cell-style="{
150
+          backgroundColor: 'rgb(245, 247, 250)',
151
+          color: '#606266'
152
+        }"
153
+      >
154
+         <el-table-column  align="center"  label="序号">
155
+           <template slot-scope="scope">
156
+              {{scope.$index+1}}
157
+           </template>
158
+        </el-table-column>
159
+        <el-table-column  align="center"   label="药品名称">
160
+         <template slot-scope="scope">
161
+            {{scope.row.advice_name}}
162
+          </template>
163
+        </el-table-column>
164
+        <el-table-column  align="center"  label="规格">
165
+           <template slot-scope="scope">
166
+             {{scope.row.specification_name}}
167
+           </template>
168
+        </el-table-column>
169
+       
170
+        <el-table-column  align="center"   label="数量">
171
+           <template slot-scope="scope">
172
+             <span v-if="config.is_open!=1">{{getCount(scope.row.child)}}</span>
173
+             <span v-if="config.is_open ==1">{{getHisCount(scope.row.child,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
174
+           </template>
175
+        </el-table-column>
176
+        
177
+     
178
+
179
+      </el-table>
180
+      </span>
181
+      <span slot="footer" class="dialog-footer">
182
+        <el-button @click="startdialogVisible = false">取 消</el-button>
183
+        <el-button type="primary" @click="startdialogVisible = false">确 定</el-button>
184
+      </span>
185
+    </el-dialog>
186
+
109 187
   </div>
110 188
 </template>
111 189
 
112 190
 
113 191
 <script>
114
-  import { GetAllZone,getDialysisAdviceTemplateList } from '@/api/dialysis'
192
+  import { GetAllZone,getDialysisAdviceTemplateList,getDialysisAdviceSchedudeList } from '@/api/dialysis'
115 193
 
116 194
   import { uParseTime } from "@/utils/tools";
117 195
 
@@ -125,11 +203,13 @@
125 203
           total:"",
126 204
           schedule_date:"",
127 205
           schedule_type:0,
206
+        
128 207
           partition_id:0,
129 208
           page:1,
130 209
           limit:10,
131 210
           keywords:"",
132 211
           good_type:0,
212
+          ids:"",
133 213
         },
134 214
         schedulType: 0,
135 215
         schedulArr: [
@@ -164,7 +244,20 @@
164 244
         arrList:[],
165 245
         total:0,
166 246
         adviceList:[],
167
-        templateList:[]
247
+        templateList:[],
248
+        startdialogVisible:false,
249
+        schedule_type:0,
250
+        partion_type:0,
251
+        druglist:[],
252
+        tableList:[],
253
+        config:{},
254
+        ids:"",
255
+        pickerOptions:{ //禁用当前日期之前的日期
256
+           disabledDate(v) {
257
+            //Date.now()是javascript中的内置函数,它返回自1970年1月1日00:00:00 UTC以来经过的毫秒数。
258
+            return v.getTime() < new Date().getTime() - 86400000;
259
+          },
260
+        },
168 261
       }
169 262
     },
170 263
     created() {
@@ -178,6 +271,7 @@
178 271
         y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
179 272
 
180 273
       this.selected_date = date
274
+      this.query.ids = this.ids
181 275
       this.query.schedule_date = schedule_date
182 276
       this.query.schedule_type = 0
183 277
       this.query.partition_id = 0
@@ -185,6 +279,10 @@
185 279
       this.getlist()
186 280
     },
187 281
     methods: {
282
+      open(){
283
+       this.templateList = []
284
+       this.getlist()
285
+      },
188 286
       getlist(){
189 287
         getDialysisAdviceTemplateList(this.query).then(response=>{
190 288
           if(response.data.state == 1){
@@ -194,8 +292,48 @@
194 292
             this.total = response.data.data.total
195 293
             var adviceList = response.data.data.adviceList
196 294
             this.adviceList = adviceList
197
-            var templateList = response.data.data.templateList
198
-            this.templateList = templateList
295
+          
296
+            var druglist = response.data.data.drugList
297
+          
298
+           
299
+            this.config = response.data.data.config
300
+             
301
+            var tablelist =  response.data.data.tablelist
302
+             console.log("tablelist233232232",tablelist)
303
+             var hisArr= []
304
+             if(tablelist!=null && tablelist.length > 0){
305
+               for(let i=0;i<tablelist.length;i++){
306
+                 if(tablelist[i].his_prescription_template!=null){
307
+                  if(tablelist[i].his_prescription_template.his_prescription_info!=null){
308
+                    for(let j=0;j<tablelist[i].his_prescription_template.his_prescription_info.length>0;j++){
309
+                      if(tablelist[i].his_prescription_template.his_prescription_info[j].his_advice!=null){
310
+                         for(let z=0;z<tablelist[i].his_prescription_template.his_prescription_info[j].his_advice.length>0;z++){
311
+                          hisArr.push(tablelist[i].his_prescription_template.his_prescription_info[j].his_advice[z])
312
+                         }
313
+                      }
314
+                    }
315
+                   }
316
+                 }
317
+               }
318
+             }
319
+            console.log("hisArr223323323223",hisArr)
320
+            var newHisArr = []
321
+            for(let i=0;i<hisArr.length;i++){
322
+              for(let j=0;j<druglist.length;j++){
323
+                if(hisArr[i].drug_id == druglist[j].id){
324
+                   newHisArr.push(hisArr[i])
325
+                }
326
+              }
327
+            }
328
+            for(let i=0;i<newHisArr.length;i++){
329
+              newHisArr[i].advice_desc = ""
330
+             for(let j=0;j<druglist.length;j++){
331
+               if(newHisArr[i].drug_id == druglist[j].id){
332
+                 newHisArr[i].advice_desc = druglist[j].dose + druglist[j].dose_unit +"*" +druglist[j].min_number+ druglist[j].min_unit +"/"+druglist[j].max_unit
333
+               }
334
+             }
335
+            }
336
+            this.templateList = newHisArr
199 337
           }
200 338
         })
201 339
       },
@@ -265,7 +403,169 @@
265 403
         })
266 404
       },
267 405
       statistics() {
268
-        this.$refs.consumables.show()
406
+         this.tableList = []
407
+          var params = {
408
+            schedule_type:this.schedule_type,
409
+            partion_type:this.partion_type,
410
+            selected_date:this.query.schedule_date,
411
+          }
412
+        // console.log("params2332232wo",params)
413
+        getDialysisAdviceSchedudeList(params).then(response=>{
414
+          if(response.data.state == 1){
415
+             var doctorList = []
416
+             var druglist = response.data.data.drug
417
+            //  console.log("druglsit",druglist)
418
+             this.druglist = druglist
419
+             this.startdialogVisible = true
420
+             var list = response.data.data.list
421
+            //  console.log("listwo222222",list)
422
+             var adviceList = response.data.data.adviceList
423
+            //  console.log("adviceList",adviceList)
424
+             var config = response.data.data.config
425
+            //  console.log("config",config)
426
+             
427
+             if(list!=null && list.length > 0){
428
+               for(let i=0;i<list.length;i++){
429
+                for(let j=0;j<adviceList.length;j++){
430
+                  if(list[i].patient_id == adviceList[j].patient_id){
431
+                     doctorList.push(adviceList[j])
432
+                  }
433
+                }
434
+               }
435
+             }
436
+            //  console.log("doctorlist23323232232332",doctorList)
437
+
438
+             if(config.is_open!=1){
439
+               if(doctorList!=null && doctorList.length > 0){
440
+                let dataInfo = {}
441
+                  doctorList.forEach((item, index) => {
442
+                  let { advice_name } = item
443
+                  if (!dataInfo[advice_name]) {
444
+                    dataInfo[advice_name] = {
445
+                      advice_name:item.advice_name,
446
+                      child: [],
447
+                      count:0,
448
+                      drug_id:item.drug_id,
449
+                      specification_name:item.advice_desc +item.drug_spec_unit,
450
+                      patient_id:item.patient_id,
451
+                    }
452
+                  }
453
+                })
454
+                let arr = Object.values(dataInfo)
455
+                // console.log("arr23332323232",arr)
456
+
457
+
458
+                if(arr.length > 0){
459
+                  for(let i=0;i<doctorList.length;i++){
460
+                    for(let j=0;j<arr.length;j++){
461
+                      if(doctorList[i].advice_name == arr[j].advice_name){
462
+                          arr[j].child.push(doctorList[i])
463
+                      }
464
+                    }
465
+                  }
466
+                }
467
+               
468
+                this.tableList = []
469
+                for(let i=0;i<list.length;i++){
470
+                  for(let j=0;j<arr.length;j++){
471
+                    if(list[i].patient_id == arr[j].patient_id){
472
+                      this.tableList.push(arr[j])
473
+                    }
474
+                  }
475
+                }
476
+               
477
+              }
478
+             }
479
+                       
480
+             var tablelist =  response.data.data.tablelist
481
+            //  console.log("tablelist233232232",tablelist)
482
+             var hisArr= []
483
+             if(tablelist!=null && tablelist.length > 0){
484
+               for(let i=0;i<tablelist.length;i++){
485
+                 if(tablelist[i].his_prescription_template!=null){
486
+                  if(tablelist[i].his_prescription_template.his_prescription_info!=null){
487
+                    for(let j=0;j<tablelist[i].his_prescription_template.his_prescription_info.length>0;j++){
488
+                      if(tablelist[i].his_prescription_template.his_prescription_info[j].his_advice!=null){
489
+                         for(let z=0;z<tablelist[i].his_prescription_template.his_prescription_info[j].his_advice.length>0;z++){
490
+                          hisArr.push(tablelist[i].his_prescription_template.his_prescription_info[j].his_advice[z])
491
+                         }
492
+                      }
493
+                    }
494
+                   }
495
+                 
496
+                 }
497
+               }
498
+             }
499
+          //  console.log("下盘子5555555555",hisArr)
500
+          
501
+            var newHisArr = []
502
+            for(let i=0;i<hisArr.length;i++){
503
+               hisArr[i].count_one = 0
504
+               if(hisArr[i].prescribing_number_unit == hisArr[i].drug.max_unit){
505
+                  hisArr[i].prescribing_number = parseInt(hisArr[i].prescribing_number) * hisArr[i].drug.min_number
506
+                  hisArr[i].count_one =  parseInt(hisArr[i].prescribing_number) * hisArr[i].drug.min_number
507
+               }
508
+            }
509
+
510
+            for(let i=0;i<hisArr.length;i++){
511
+              for(let j=0;j<druglist.length;j++){
512
+                if(hisArr[i].drug_id == druglist[j].id){
513
+                    newHisArr.push(hisArr[i])
514
+                }
515
+              }
516
+            }
517
+            console.log("下盘子3223323223",newHisArr)
518
+            
519
+             if(config.is_open == 1){
520
+               if(newHisArr!=null && newHisArr.length > 0){
521
+                  let dataInfoOne = {}
522
+                  newHisArr.forEach((item, index) => {
523
+                  let { advice_name } = item
524
+                  if (!dataInfoOne[advice_name]) {
525
+                    dataInfoOne[advice_name] = {
526
+                      advice_name:item.advice_name,
527
+                      child: [],
528
+                      count:0,
529
+                      specification_name:this.getSpecification(item.drug_id),
530
+                      drug_id:item.drug_id,
531
+                      patient_id:item.patient_id,
532
+                      min_number:item.drug.min_number,
533
+                      max_unit:item.drug.max_unit,
534
+                      min_unit:item.drug.min_unit
535
+                    }
536
+                  }
537
+                })
538
+                let hisarr = Object.values(dataInfoOne)
539
+                console.log("hisarr233232233232",hisarr)
540
+                if(hisarr.length > 0){
541
+                  for(let i=0;i<newHisArr.length;i++){
542
+                    for(let j=0;j<hisarr.length;j++){
543
+                      if(newHisArr[i].drug_id == hisarr[j].drug_id){
544
+                          hisarr[j].child.push(newHisArr[i])
545
+                      }
546
+                    }
547
+                  }
548
+                }
549
+                console.log("hisarr",hisarr)
550
+                this.tableList = []
551
+                 for(let i=0;i<list.length;i++){
552
+                  for(let j=0;j<hisarr.length;j++){
553
+                    if(list[i].patient_id == hisarr[j].patient_id){
554
+                      this.tableList.push(hisarr[j])
555
+                    }
556
+                  }
557
+                }
558
+              }
559
+
560
+              console.log("中国人民解放军",this.tableList)
561
+             }
562
+     
563
+           
564
+           
565
+            
566
+          }
567
+        })
568
+        
269 569
       },
270 570
       handleScheduleDateChange(val) {
271 571
         this.query.schedule_date = val
@@ -277,69 +577,165 @@
277 577
         this.getlist()
278 578
       },
279 579
 
280
-       exportList(){
281
-         import('@/vendor/Export2Excel').then(excel => {
282
-
283
-
284
-
285
-         var arrTwo = []
286
-         for(let i=0;i<this.arrKey.length;i++){
287
-            arrTwo.push('name'+i)
288
-         }
289
-         console.log("arrKey88888",arrTwo)
580
+      exportList(){
581
+        import('@/vendor/Export2Excel').then(excel => { 
582
+          if(this.list!=null && this.list.length > 0){
583
+            for(let i=0;i<this.list.length;i++){
584
+              this.list[i].index = i+1
585
+              this.list[i].number =this.list[i].device_number.zone.name + this.list[i].device_number.number
586
+              this.list[i].patient_name = this.list[i].patient.name
587
+              this.list[i].dialysis_no = this.list[i].patient.dialysis_no
588
+              if(this.config.is_open != 1){
589
+                this.list[i].str_content = this.getAdviceContent(this.list[i].patient_id)
590
+              }
591
+              if(this.config.is_open == 1){
592
+               this.list[i].str_content = this.getHisAdviceContent(this.list[i].patient_id)
593
+              }
594
+            }
595
+          }
596
+          const tHeader = ['序号','透析机号','姓名','透析号','医嘱']
597
+          const filterVal = ['index','number','patient_name','dialysis_no','str_content']
290 598
 
291
-        //  console.log("9999999",this.list)
292
-         const tHeader = this.good_types
293
-         const filterVal = arrTwo
294
-         console.log("thedad",tHeader)
295
-         console.log("filterval",filterVal)
296
-         console.log("33333",this.arrList)
297
-         const data = this.formatJson(filterVal,this.arrList)
298
-         console.log("data",data)
599
+          const data = this.formatJson(filterVal, this.list)
600
+          excel.export_json_to_excel({
601
+            header: tHeader,
602
+            data,
603
+            filename: '透析药品'
604
+          })
605
+            this.downloadLoading = false
606
+          })  
607
+      },
608
+      toExportListOne(){
609
+        import('@/vendor/Export2Excel').then(excel => { 
610
+         
611
+          if(this.tableList!=null && this.tableList.length > 0){
612
+            for(let i=0;i<this.tableList.length;i++){
613
+              this.tableList[i].index = i+1
614
+              if(this.config.is_open == 1){
615
+                this.tableList[i].total_count = this.getHisCount(this.tableList[i].child,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
616
+              }
617
+              if(this.config.is_open!=1){
618
+                this.tableList[i].total_count = this.getCount(this.tableList[i].child)
619
+              }
620
+             
621
+            }
622
+          }
623
+          const tHeader = ['序号','药品名称','规格','数量']
624
+          const filterVal = ['index','advice_name','specification_name','total_count']
299 625
 
300
-         excel.export_json_to_excel({
301
-           header: tHeader,
302
-           data,
303
-           filename: '透析耗材查询'
304
-         })
305
-          this.downloadLoading = false
306
-        })
307
-       },
626
+          const data = this.formatJson(filterVal, this.tableList)
627
+          excel.export_json_to_excel({
628
+            header: tHeader,
629
+            data,
630
+            filename: '药品统计'
631
+          })
632
+            this.downloadLoading = false
633
+          })  
634
+      },
308 635
       formatJson(filterVal, jsonData) {
309 636
         return jsonData.map(v => filterVal.map(j => v[j]));
310 637
       },
638
+   
311 639
       getAdviceContent(patient_id){
312 640
         var newArr = []
313 641
         var his_str = ""
314
-        if(this.templateList!=null && this.templateList.length > 0){
315
-          for(let i=0;i<this.templateList.length;i++){
316
-            if(patient_id == this.templateList[i].patient_id){
317
-              newArr.push(this.templateList[i])
642
+        if(this.adviceList!=null && this.adviceList.length > 0){
643
+          for(let i=0;i<this.adviceList.length;i++){
644
+            if(patient_id == this.adviceList[i].patient_id){
645
+              newArr.push(this.adviceList[i])
318 646
             }
319 647
           }
320 648
         }
321 649
         if(newArr!=null && newArr.length > 0){
322 650
           for(let i=0;i<newArr.length;i++){
323
-            his_str += newArr[i].advice_name +''+newArr[i].advice_desc +''+ newArr[i].prescribing_number +''+newArr[i].prescribing_number_unit + "。"
651
+            his_str += newArr[i].advice_name +' '+newArr[i].advice_desc  +newArr[i].drug_spec_unit +' ' +newArr[i].prescribing_number  +newArr[i].prescribing_number_unit + "。"
324 652
           }
325 653
         }
326 654
         return his_str
327 655
       },
328 656
       getHisAdviceContent(patient_id){
329 657
         var arr = []
330
-        for(let i=0;i<this.adviceList.length;i++){
331
-          if(patient_id == this.adviceList[i].patient_id){
332
-             arr.push(this.adviceList[i])
658
+        for(let i=0;i<this.templateList.length;i++){
659
+          if(patient_id == this.templateList[i].patient_id){
660
+             arr.push(this.templateList[i])
333 661
           }
334 662
         } 
335 663
         var str = ""
336 664
         if(arr!=null && arr.length > 0){
337 665
           for(let i=0;i<arr.length;i++){
338
-            str += arr[i].advice_name +''+ arr[i].advice_desc+'' + arr[i].prescribing_number+'' + arr[i].prescribing_number_unit +  "。"
666
+            str += arr[i].advice_name +' '+ arr[i].advice_desc+' ' + arr[i].prescribing_number+' ' + arr[i].prescribing_number_unit +  "。"
339 667
           }
340 668
         }
341 669
         return str 
670
+      },
671
+      getSpecification(id){
672
+        var specification_name = ""
673
+        for(let i=0;i<this.druglist.length;i++){
674
+          if(id == this.druglist[i].id){
675
+            specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
676
+          }
677
+        }
678
+        return specification_name
679
+      },
680
+      getCount(val){
681
+       var count = 0
682
+       if(val!=null && val.length > 0){
683
+        for(let i=0;i<val.length;i++){
684
+          count += parseInt(val[i].prescribing_number)
685
+        }
686
+       }
687
+       if(count > 0){
688
+        return count
689
+       }else{
690
+        return 0
691
+       }
692
+      },
693
+      getHisCount(val,max_unit,min_unit,min_number){
694
+        var total = 0
695
+        var max_str = "";
696
+        var min_str = "";
697
+        for(let i=0;i<val.length;i++){
698
+          total+=parseInt(val[i].prescribing_number)
699
+        }
700
+        if (total < min_number) {
701
+        min_str = total + min_unit;
702
+      }
703
+      if (total == 0) {
704
+        min_str = "";
705
+        max_str = "";
342 706
       }
707
+      if (total >= min_number) {
708
+        if (parseInt(total / min_number) != 0) {
709
+          max_str = parseInt(total / min_number) + max_unit;
710
+        }
711
+        if (total % min_number != 0) {
712
+          min_str = (total % min_number) + min_unit;
713
+        }
714
+      }
715
+      return max_str + min_str;
716
+        
717
+      },
718
+      handleSelectionChange(val){
719
+        var arr = []
720
+        for(let i=0;i<val.length;i++){
721
+          arr.push(val[i].id)
722
+        }
723
+        this.ids = arr.join(",")
724
+      },
725
+      toPrint(){
726
+       this.$router.push({path:'/dialysis/consumable/dialysisdrugprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
727
+      },
728
+      toPrintOne(){
729
+        this.$router.push({path:'/dialysis/consumable/dialysisdrugcountprint?schedule_type='+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.config.is_open})
730
+      },
731
+     changeScheduleType(){
732
+      this.tableList = []
733
+      this.statistics()
734
+     },
735
+     changePartionType(){
736
+      this.tableList = []
737
+      this.statistics()
738
+     }
343 739
     }
344 740
   }
345 741
 </script>

+ 395 - 0
src/xt_pages/dialysis/details/consumable/dialysisDrugCountPrint.vue Näytä tiedosto

@@ -0,0 +1,395 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+        </el-col>
9
+      </el-row>
10
+    </div>
11
+    <div class="app-container" style="background-color: white;">
12
+
13
+      <div id="print_content">
14
+        <div class="print_main_content">
15
+          <div class="order_title_panl">
16
+            <span class="main_title"> &nbsp;
17
+              透析药品
18
+            </span>
19
+            <span  style="float:right;">打印日期: &nbsp;
20
+               {{$route.query.schedule_date}}
21
+            </span>
22
+          </div>
23
+          <div class="table_panel">
24
+
25
+            <table class="table">
26
+              <thead>
27
+              <tr>
28
+                <td width="50">序号</td>
29
+                <td width="100">药品名称</td>
30
+                <td width="100">规格</td>
31
+                <td width="100">数量</td>
32
+                
33
+              </tr>
34
+              </thead>
35
+              <tbody>
36
+               <tr v-for="(item,i) in tableList" :key="i">
37
+                <td>{{i+1}}</td>
38
+                <td>{{item.advice_name}}</td>
39
+                 <td>{{item.specification_name}}</td>
40
+                <td>
41
+                  <span v-if="config.is_open == 1">{{getHisCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
42
+                  <span v-if="config.is_open != 1">{{getCount(item.child)}}</span>
43
+                </td>
44
+               </tr>
45
+              </tbody>
46
+            </table>
47
+          </div>
48
+        </div>
49
+      </div>
50
+    </div>
51
+  </div>
52
+</template>
53
+
54
+<script>
55
+  import { getDialysisAdviceSchedudeList } from '@/api/dialysis'
56
+  import { parseTime } from '@/utils'
57
+  import { uParseTime } from '@/utils/tools'
58
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
59
+  import print from 'print-js'
60
+  import { getDataConfig } from '@/utils/data'
61
+  export default {
62
+    name: 'SchedulePrint',
63
+    data() {
64
+      return {
65
+        crumbs: [
66
+          { path: false, name: '排班管理' },
67
+          { path: false, name: '排班打印' }
68
+        ],
69
+        td_1_width: '8%',
70
+        td_2_width: '8%',
71
+        td_3_width: '64%',
72
+        td_4_width: '20%',
73
+        month: 1,
74
+        begin_day: 1,
75
+        total:[],
76
+        list:[],
77
+        schedule_date:"",
78
+        schedule_type:0,
79
+        partition_type:0,
80
+        keywords:"",
81
+        loading:false,
82
+        tableData:[],
83
+        numberList:[],
84
+        partitionArr:[],
85
+        his_config:{},
86
+        typeList:[],
87
+        rowList:[],
88
+        dialysate_formulation:[],
89
+        body_fluid_option:[],
90
+        displace_liqui_part_option:[],
91
+        blood_access_option:[],
92
+        hemodialysisPipelinesOptions:[],
93
+        tableList:[],
94
+        druglist:[],
95
+        config:{}
96
+      }
97
+    },
98
+    components: {
99
+      BreadCrumb
100
+    },
101
+    created() {
102
+      this.getDialysisAdviceSchedudeList()
103
+    },
104
+    methods: {
105
+      getDialysisAdviceSchedudeList() {
106
+          var params = {
107
+            schedule_type:this.$route.query.schedule_type,
108
+            partion_type:this.$route.query.partion_type,
109
+            selected_date:this.$route.query.schedule_date,
110
+          }
111
+        console.log("params2332232wo",params)
112
+        getDialysisAdviceSchedudeList(params).then(response=>{
113
+          if(response.data.state == 1){
114
+            var doctorList = []
115
+             var druglist = response.data.data.drug
116
+             this.druglist = druglist
117
+             this.startdialogVisible = true
118
+             var list = response.data.data.list
119
+             var adviceList = response.data.data.adviceList
120
+             var config = response.data.data.config
121
+             this.config = config
122
+             if(list!=null && list.length > 0){
123
+               for(let i=0;i<list.length;i++){
124
+                for(let j=0;j<adviceList.length;j++){
125
+                  if(list[i].patient_id == adviceList[j].patient_id){
126
+                     doctorList.push(adviceList[j])
127
+                  }
128
+                }
129
+               }
130
+             }
131
+             if(config.is_open!=1){
132
+               if(doctorList!=null && doctorList.length > 0){
133
+                let dataInfo = {}
134
+                  doctorList.forEach((item, index) => {
135
+                  let { advice_name } = item
136
+                  if (!dataInfo[advice_name]) {
137
+                    dataInfo[advice_name] = {
138
+                      advice_name:item.advice_name,
139
+                      child: [],
140
+                      count:0,
141
+                      drug_id:item.drug_id,
142
+                      specification_name:item.advice_desc+item.drug_spec_unit,
143
+                      patient_id:item.patient_id,
144
+                     
145
+                    }
146
+                  }
147
+                })
148
+                let arr = Object.values(dataInfo)
149
+                if(arr.length > 0){
150
+                  for(let i=0;i<doctorList.length;i++){
151
+                    for(let j=0;j<arr.length;j++){
152
+                      if(doctorList[i].advice_name == arr[j].advice_name){
153
+                          arr[j].child.push(doctorList[i])
154
+                      }
155
+                    }
156
+                  }
157
+                }
158
+               
159
+                this.tableList = []
160
+                for(let i=0;i<list.length;i++){
161
+                  for(let j=0;j<arr.length;j++){
162
+                    if(list[i].patient_id == arr[j].patient_id){
163
+                      this.tableList.push(arr[j])
164
+                    }
165
+                  }
166
+                }
167
+               
168
+              }
169
+             }
170
+             var tablelist =  response.data.data.tablelist
171
+             console.log("tablelist233232232",tablelist)
172
+            
173
+             var hisArr= []
174
+             if(tablelist!=null && tablelist.length > 0){
175
+               for(let i=0;i<tablelist.length;i++){
176
+                 if(tablelist[i].his_prescription_template!=null){
177
+                  if(tablelist[i].his_prescription_template.his_prescription_info!=null){
178
+                    for(let j=0;j<tablelist[i].his_prescription_template.his_prescription_info.length>0;j++){
179
+                      if(tablelist[i].his_prescription_template.his_prescription_info[j].his_advice!=null){
180
+                         for(let z=0;z<tablelist[i].his_prescription_template.his_prescription_info[j].his_advice.length>0;z++){
181
+                          hisArr.push(tablelist[i].his_prescription_template.his_prescription_info[j].his_advice[z])
182
+                         }
183
+                      }
184
+                    }
185
+                   }
186
+                 
187
+                 }
188
+               }
189
+             }
190
+            var newHisArr = []
191
+            for(let i=0;i<hisArr.length;i++){
192
+               hisArr[i].count_one = 0
193
+                 if(hisArr[i].prescribing_number_unit == hisArr[i].drug.max_unit){
194
+                    hisArr[i].prescribing_number = parseInt(hisArr[i].prescribing_number) * hisArr[i].drug.min_number
195
+                    hisArr[i].count_one =  parseInt(hisArr[i].prescribing_number) * hisArr[i].drug.min_number
196
+                 }
197
+            }
198
+            for(let i=0;i<hisArr.length;i++){
199
+              for(let j=0;j<druglist.length;j++){
200
+                if(hisArr[i].drug_id == druglist[j].id){
201
+                    newHisArr.push(hisArr[i])
202
+                }
203
+              }
204
+            }
205
+            console.log("下盘子3223323223",newHisArr)
206
+             if(config.is_open == 1){
207
+               if(newHisArr!=null && newHisArr.length > 0){
208
+                  let dataInfoOne = {}
209
+                  newHisArr.forEach((item, index) => {
210
+                  let { advice_name } = item
211
+                  if (!dataInfoOne[advice_name]) {
212
+                    dataInfoOne[advice_name] = {
213
+                      advice_name:item.advice_name,
214
+                      child: [],
215
+                      count:0,
216
+                      specification_name:this.getSpecification(item.drug_id),
217
+                      drug_id:item.drug_id,
218
+                      patient_id:item.patient_id,
219
+                      min_number:item.drug.min_number,
220
+                      max_unit:item.drug.max_unit,
221
+                      min_unit:item.drug.min_unit
222
+                    }
223
+                  }
224
+                })
225
+                let hisarr = Object.values(dataInfoOne)
226
+               
227
+                if(hisarr.length > 0){
228
+                  for(let i=0;i<newHisArr.length;i++){
229
+                    for(let j=0;j<hisarr.length;j++){
230
+                      if(newHisArr[i].drug_id == hisarr[j].drug_id){
231
+                          hisarr[j].child.push(newHisArr[i])
232
+                      }
233
+                    }
234
+                  }
235
+                }
236
+                console.log("hisarr",hisarr)
237
+                this.tableList = []
238
+                 for(let i=0;i<list.length;i++){
239
+                  for(let j=0;j<hisarr.length;j++){
240
+                    if(list[i].patient_id == hisarr[j].patient_id){
241
+                      this.tableList.push(hisarr[j])
242
+                    }
243
+                  }
244
+                }
245
+                console.log("h2hh32h3223h32",this.tableList)
246
+              }
247
+             }
248
+          }
249
+        })
250
+      },
251
+     getTimeOne(val) {
252
+        if(val == ""){
253
+        return ""
254
+        }else {
255
+        return uParseTime(val, '{y}-{m}-{d}')
256
+        }
257
+     },
258
+     getCount(val){
259
+       var count = 0
260
+       if(val!=null && val.length > 0){
261
+        for(let i=0;i<val.length;i++){
262
+          count += parseInt(val[i].prescribing_number)
263
+        }
264
+       }
265
+       if(count > 0){
266
+        return count
267
+       }else{
268
+        return 0
269
+       }
270
+     },
271
+    printAction: function() {
272
+    const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
273
+
274
+    printJS({
275
+        printable: 'print_content',
276
+        type: 'html',
277
+        documentTitle: '  ',
278
+        style: style,
279
+        scanStyles: false
280
+     })
281
+    },
282
+    getSpecification(id){
283
+        var specification_name = ""
284
+        for(let i=0;i<this.druglist.length;i++){
285
+          if(id == this.druglist[i].id){
286
+            specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
287
+          }
288
+        }
289
+        return specification_name
290
+      },
291
+     getHisCount(val,max_unit,min_unit,min_number){
292
+        var total = 0
293
+        var max_str = "";
294
+        var min_str = "";
295
+        for(let i=0;i<val.length;i++){
296
+          total+=parseInt(val[i].prescribing_number)
297
+        }
298
+        if (total < min_number) {
299
+        min_str = total + min_unit;
300
+      }
301
+      if (total == 0) {
302
+        min_str = "";
303
+        max_str = "";
304
+      }
305
+      if (total >= min_number) {
306
+        if (parseInt(total / min_number) != 0) {
307
+          max_str = parseInt(total / min_number) + max_unit;
308
+        }
309
+        if (total % min_number != 0) {
310
+          min_str = (total % min_number) + min_unit;
311
+        }
312
+      }
313
+      return max_str + min_str;
314
+        
315
+      },
316
+   }
317
+  }
318
+</script>
319
+
320
+<style rel="stylesheet/scss" lang="scss" scoped>
321
+  .print_main_content {
322
+    background-color: white;
323
+    width: 960px;
324
+    margin: 0 auto;
325
+    padding: 0 0 20px 0;
326
+
327
+  .order_title_panl {
328
+    text-align: center;
329
+
330
+  .main_title {
331
+    font-size: 18px;
332
+    line-height: 40px;
333
+    font-weight: 500;
334
+  }
335
+
336
+  }
337
+  .table_panel {
338
+
339
+  .table {
340
+    width: 100%;
341
+    border: 1px solid;
342
+    border-collapse: collapse;
343
+    padding: 2px;
344
+
345
+  thead {
346
+
347
+  tr {
348
+
349
+  td {
350
+    border: 1px solid;
351
+    text-align: center;
352
+    font-size: 20px;
353
+    padding: 15px 5px;
354
+  }
355
+
356
+  }
357
+  }
358
+  tbody {
359
+
360
+  tr {
361
+
362
+  td {
363
+    border: 1px solid;
364
+    text-align: center;
365
+    font-size: 18px;
366
+    padding: 10px 5px;
367
+
368
+  .proj {
369
+    padding: 5px 0;
370
+    text-align: left;
371
+
372
+  .proj_title {
373
+    font-size: 16px;
374
+    font-weight: 500;
375
+    line-height: 25px;
376
+  }
377
+
378
+  .proj_item {
379
+    font-size: 15px;
380
+    line-height: 20px;
381
+
382
+  .zone_name {
383
+    font-weight: 500;
384
+  }
385
+
386
+  }
387
+  }
388
+  }
389
+  }
390
+  }
391
+  }
392
+  }
393
+  }
394
+</style>
395
+

+ 300 - 0
src/xt_pages/dialysis/details/consumable/dialysisDrugPrint.vue Näytä tiedosto

@@ -0,0 +1,300 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+        </el-col>
9
+      </el-row>
10
+    </div>
11
+    <div class="app-container" style="background-color: white;">
12
+
13
+      <div id="print_content">
14
+        <div class="print_main_content">
15
+          <div class="order_title_panl">
16
+            <span class="main_title"> &nbsp;
17
+              透析药品
18
+            </span>
19
+            <span  style="float:right;">打印日期: &nbsp;
20
+               {{$route.query.schedule_date}}
21
+            </span>
22
+          </div>
23
+          <div class="table_panel">
24
+
25
+            <table class="table">
26
+              <thead>
27
+              <tr>
28
+                <td width="50">序号</td>
29
+                <td width="100">透析机号</td>
30
+                <td width="100">姓名</td>
31
+                <td width="100">透析号</td>
32
+                <td width="800">推送医嘱</td>
33
+             
34
+              </tr>
35
+              </thead>
36
+              <tbody>
37
+               <tr v-for="(item,i) in list" :key="i">
38
+                <td>{{i+1}}</td>
39
+                <td> {{item.device_number.zone.name}}  {{item.device_number.number}}</td>
40
+                <td>{{item.patient.name}}</td>
41
+                <td>{{item.patient.dialysis_no}}</td>
42
+                 <td width="800">
43
+                     <span v-if="config.is_open !=1">{{getAdviceContent(item.patient_id)}}</span> 
44
+                     <span v-if="config.is_open == 1"> {{getHisAdviceContent(item.patient_id)}}</span>
45
+                 </td>
46
+               </tr>
47
+              </tbody>
48
+            </table>
49
+            
50
+         
51
+
52
+          </div>
53
+        </div>
54
+      </div>
55
+    </div>
56
+  </div>
57
+</template>
58
+
59
+<script>
60
+ import { getDialysisAdviceTemplateList } from '@/api/dialysis'
61
+  import { parseTime } from '@/utils'
62
+  import { uParseTime } from '@/utils/tools'
63
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
64
+  import print from 'print-js'
65
+  import { getDataConfig } from '@/utils/data'
66
+  export default {
67
+    name: 'SchedulePrint',
68
+    data() {
69
+      return {
70
+        crumbs: [
71
+          { path: false, name: '排班管理' },
72
+          { path: false, name: '排班打印' }
73
+        ],
74
+        td_1_width: '8%',
75
+        td_2_width: '8%',
76
+        td_3_width: '64%',
77
+        td_4_width: '20%',
78
+        month: 1,
79
+        begin_day: 1,
80
+        total:[],
81
+        list:[],
82
+        schedule_date:"",
83
+        schedule_type:0,
84
+        partition_type:0,
85
+        keywords:"",
86
+        loading:false,
87
+        tableData:[],
88
+        numberList:[],
89
+        partitionArr:[],
90
+        his_config:{},
91
+        typeList:[],
92
+        rowList:[],
93
+        dialysate_formulation:[],
94
+        body_fluid_option:[],
95
+        displace_liqui_part_option:[],
96
+        blood_access_option:[],
97
+        hemodialysisPipelinesOptions:[],
98
+        adviceList:[],
99
+        templateList:[],
100
+        config:{},
101
+        list:[],
102
+        druglist:[]
103
+      }
104
+    },
105
+    components: {
106
+      BreadCrumb
107
+    },
108
+    created() {
109
+   
110
+     this.getlist()
111
+    },
112
+    methods: {
113
+
114
+      getlist(){
115
+         var params = {
116
+          schedule_date:this.$route.query.schedule_date,
117
+          limit:this.$route.query.limit,
118
+          page:this.$route.query.page,
119
+          partition_id:this.$route.query.partition_id,
120
+          ids:this.$route.query.ids,
121
+         }
122
+        getDialysisAdviceTemplateList(params).then(response=>{
123
+          if(response.data.state == 1){
124
+          
125
+            var list = response.data.data.list
126
+            this.list = list
127
+            this.total = response.data.data.total
128
+            var adviceList = response.data.data.adviceList
129
+            this.adviceList = adviceList
130
+          
131
+            var druglist = response.data.data.drugList
132
+            this.druglist = druglist
133
+           
134
+             var tablelist =  response.data.data.tablelist
135
+             console.log("tablelist233232232",tablelist)
136
+             var hisArr= []
137
+             if(tablelist!=null && tablelist.length > 0){
138
+               for(let i=0;i<tablelist.length;i++){
139
+                 if(tablelist[i].his_prescription_template!=null){
140
+                  if(tablelist[i].his_prescription_template.his_prescription_info!=null){
141
+                    for(let j=0;j<tablelist[i].his_prescription_template.his_prescription_info.length>0;j++){
142
+                      if(tablelist[i].his_prescription_template.his_prescription_info[j].his_advice!=null){
143
+                         for(let z=0;z<tablelist[i].his_prescription_template.his_prescription_info[j].his_advice.length>0;z++){
144
+                          hisArr.push(tablelist[i].his_prescription_template.his_prescription_info[j].his_advice[z])
145
+                         }
146
+                      }
147
+                    }
148
+                   }
149
+                 }
150
+               }
151
+             }
152
+            console.log("hisArr223323323223",hisArr)
153
+
154
+            for(let i=0;i<hisArr.length;i++){
155
+              hisArr[i].advice_desc = ""
156
+             for(let j=0;j<druglist.length;j++){
157
+               if(hisArr[i].drug_id == druglist[j].id){
158
+                 hisArr[i].advice_desc = druglist[j].dose + druglist[j].dose_unit +"*"+druglist[j].min_number+druglist[j].min_unit +"/"+druglist[j].max_unit
159
+               }
160
+             }
161
+            }
162
+            this.templateList = hisArr
163
+           
164
+            this.config = response.data.data.config
165
+            
166
+          }
167
+        })
168
+      },
169
+     getTimeOne(val) {
170
+        if(val == ""){
171
+        return ""
172
+        }else {
173
+        return uParseTime(val, '{y}-{m}-{d}')
174
+        }
175
+     },
176
+      printAction: function() {
177
+        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
178
+
179
+        printJS({
180
+          printable: 'print_content',
181
+          type: 'html',
182
+          documentTitle: '  ',
183
+          style: style,
184
+          scanStyles: false
185
+        })
186
+      },
187
+    
188
+      getAdviceContent(patient_id){
189
+        var newArr = []
190
+        var his_str = ""
191
+        if(this.adviceList!=null && this.adviceList.length > 0){
192
+          for(let i=0;i<this.adviceList.length;i++){
193
+            if(patient_id == this.adviceList[i].patient_id){
194
+              newArr.push(this.adviceList[i])
195
+            }
196
+          }
197
+        }
198
+        if(newArr!=null && newArr.length > 0){
199
+          for(let i=0;i<newArr.length;i++){
200
+            his_str += newArr[i].advice_name +' '+newArr[i].advice_desc + newArr[i].drug_spec_unit +' ' +newArr[i].prescribing_number  +newArr[i].prescribing_number_unit + "。"
201
+          }
202
+        }
203
+        return his_str
204
+      },
205
+      getHisAdviceContent(patient_id){
206
+        var arr = []
207
+        for(let i=0;i<this.templateList.length;i++){
208
+          if(patient_id == this.templateList[i].patient_id){
209
+             arr.push(this.templateList[i])
210
+          }
211
+        } 
212
+        var str = ""
213
+        if(arr!=null && arr.length > 0){
214
+          for(let i=0;i<arr.length;i++){
215
+            str += arr[i].advice_name +' '+ arr[i].advice_desc+' ' + arr[i].prescribing_number+' ' + arr[i].prescribing_number_unit +  "。"
216
+          }
217
+        }
218
+        return str 
219
+      },
220
+    
221
+    }
222
+  }
223
+</script>
224
+
225
+<style rel="stylesheet/scss" lang="scss" scoped>
226
+  .print_main_content {
227
+    background-color: white;
228
+    width: 960px;
229
+    margin: 0 auto;
230
+    padding: 0 0 20px 0;
231
+
232
+  .order_title_panl {
233
+    text-align: center;
234
+
235
+  .main_title {
236
+    font-size: 18px;
237
+    line-height: 40px;
238
+    font-weight: 500;
239
+  }
240
+
241
+  }
242
+  .table_panel {
243
+
244
+  .table {
245
+    width: 100%;
246
+    border: 1px solid;
247
+    border-collapse: collapse;
248
+    padding: 2px;
249
+
250
+  thead {
251
+
252
+  tr {
253
+
254
+  td {
255
+    border: 1px solid;
256
+    text-align: center;
257
+    font-size: 20px;
258
+    padding: 15px 5px;
259
+  }
260
+
261
+  }
262
+  }
263
+  tbody {
264
+
265
+  tr {
266
+
267
+  td {
268
+    border: 1px solid;
269
+    text-align: center;
270
+    font-size: 18px;
271
+    padding: 10px 5px;
272
+
273
+  .proj {
274
+    padding: 5px 0;
275
+    text-align: left;
276
+
277
+  .proj_title {
278
+    font-size: 16px;
279
+    font-weight: 500;
280
+    line-height: 25px;
281
+  }
282
+
283
+  .proj_item {
284
+    font-size: 15px;
285
+    line-height: 20px;
286
+
287
+  .zone_name {
288
+    font-weight: 500;
289
+  }
290
+
291
+  }
292
+  }
293
+  }
294
+  }
295
+  }
296
+  }
297
+  }
298
+  }
299
+</style>
300
+

File diff suppressed because it is too large
+ 1497 - 130
src/xt_pages/dialysis/details/consumable/dialysisGood.vue


File diff suppressed because it is too large
+ 1016 - 0
src/xt_pages/dialysis/details/consumable/dialysisGoodCountPrint.vue


+ 689 - 0
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue Näytä tiedosto

@@ -0,0 +1,689 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+        </el-col>
9
+      </el-row>
10
+    </div>
11
+    <div class="app-container" style="background-color: white;">
12
+
13
+      <div id="print_content">
14
+        <div class="print_main_content">
15
+          <div class="order_title_panl">
16
+            <span class="main_title"> &nbsp;
17
+              透析耗材
18
+            </span>
19
+            <span  style="float:right;">打印日期: &nbsp;
20
+               {{$route.query.schedule_date}}
21
+            </span>
22
+          </div>
23
+          <div class="table_panel">
24
+
25
+            <table class="table" v-if="his_config.is_open != 1">
26
+              <thead>
27
+              <tr>
28
+                <td width="50">序号</td>
29
+                <td width="100">透析机号</td>
30
+                <td width="100">姓名</td>
31
+                <td width="100">透析机号</td>
32
+                <td width="200" v-for="(item,index) in rowList" :key="index">
33
+                  {{item.filed_name_cn}} 
34
+                </td>
35
+              </tr>
36
+              </thead>
37
+              <tbody>
38
+               <tr v-for="(item,i) in tableData" :key="i">
39
+                <td>{{i+1}}</td>
40
+                <td> {{item.device_number.zone.name}} {{item.device_number.number}}</td>
41
+                 <td>{{item.patient.name}}</td>
42
+                <td>{{item.patient.dialysis_no}}</td>
43
+                <td v-for="(it,index) in rowList" :key="index">
44
+                  {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}
45
+                </td>
46
+               </tr>
47
+              </tbody>
48
+            </table>
49
+            
50
+             <table class="table" v-if="his_config.is_open == 1">
51
+              <thead>
52
+              <tr>
53
+                <td width="50">序号</td>
54
+                <td width="100">透析机号</td>
55
+                <td width="100">姓名</td>
56
+                <td width="100">透析机号</td>
57
+                <td width="200" v-for="(item,index) in typeList" :key="index">
58
+                  {{item.type_name}} 
59
+                </td>
60
+              </tr>
61
+              </thead>
62
+              <tbody>
63
+               <tr v-for="(item,i) in tableData" :key="i">
64
+                <td>{{i+1}}</td>
65
+                <td> {{item.device_number.zone.name}} {{item.device_number.number}}</td>
66
+                 <td>{{item.patient.name}}</td>
67
+                <td>{{item.patient.dialysis_no}}</td>
68
+                <td v-for="(it,index) in typeList" :key="index">
69
+                  {{getStr(item.typeList[index].id,item.projectList,item.patient_id)}}
70
+                </td>
71
+               </tr>
72
+              </tbody>
73
+            </table>
74
+
75
+          </div>
76
+        </div>
77
+      </div>
78
+    </div>
79
+  </div>
80
+</template>
81
+
82
+<script>
83
+  import { GetAllZone,getPatientDialysisSolutionGroupList,getDialysisGoodTotalCount,saveHisDialysis,getHisDialysisGoodCount } from '@/api/dialysis'
84
+  import { parseTime } from '@/utils'
85
+  import { uParseTime } from '@/utils/tools'
86
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
87
+  import print from 'print-js'
88
+  import { getDataConfig } from '@/utils/data'
89
+  export default {
90
+    name: 'SchedulePrint',
91
+    data() {
92
+      return {
93
+        crumbs: [
94
+          { path: false, name: '排班管理' },
95
+          { path: false, name: '排班打印' }
96
+        ],
97
+        td_1_width: '8%',
98
+        td_2_width: '8%',
99
+        td_3_width: '64%',
100
+        td_4_width: '20%',
101
+        month: 1,
102
+        begin_day: 1,
103
+        total:[],
104
+        list:[],
105
+        schedule_date:"",
106
+        schedule_type:0,
107
+        partition_type:0,
108
+        keywords:"",
109
+        loading:false,
110
+        tableData:[],
111
+        numberList:[],
112
+        partitionArr:[],
113
+        his_config:{},
114
+        typeList:[],
115
+        rowList:[],
116
+        dialysate_formulation:[],
117
+        body_fluid_option:[],
118
+        displace_liqui_part_option:[],
119
+        blood_access_option:[],
120
+        hemodialysisPipelinesOptions:[],
121
+      }
122
+    },
123
+    components: {
124
+      BreadCrumb
125
+    },
126
+    created() {
127
+       this.dialysate_formulation =  getDataConfig(  
128
+            'hemodialysis',
129
+            'dialysate_formulation'
130
+      )
131
+      this.body_fluid_option = this.$store.getters.body_fluid
132
+      this.displace_liqui_part_option = this.$store.getters.displace_liqui
133
+      this.blood_access_option = this.$store.getters.blood_access
134
+      this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
135
+      this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
136
+      var filedList = this.$store.getters.xt_user.fileds
137
+      for (let i = 0; i < filedList.length; i++) {
138
+        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针')) {
139
+          this.rowList.push(filedList[i])
140
+        }
141
+      }
142
+      this.getlist()
143
+    },
144
+    methods: {
145
+     getlist(){
146
+      var params = {
147
+        keywords:this.$route.query.keywords,
148
+        limit:this.$route.query.limit,
149
+        page:this.$route.query.page,
150
+        partition_id:this.$route.query.partition_id,
151
+        schedule_date:this.$route.query.schedule_date,
152
+        schedule_type:this.$route.query.schedule_type,
153
+        ids:this.$route.query.ids,
154
+      }
155
+      getPatientDialysisSolutionGroupList(params).then(response=>{
156
+        if(response.data.state == 1){
157
+            var list = response.data.data.list
158
+            
159
+            var total = response.data.data.total
160
+            this.total = total
161
+            var goodType = response.data.data.goodType
162
+            var config = response.data.data.config
163
+            this.his_config = config
164
+
165
+            if(config.is_open !=1){
166
+            if(list!=null){
167
+            for(let i=0;i<list.length;i++){
168
+                list[i].rowList = []
169
+                list[i].rowList = this.rowList
170
+            }
171
+            }
172
+            this.tableData= []
173
+            this.tableData = list
174
+            }
175
+            if(config.is_open == 1){
176
+            if(list!=null){
177
+                this.typeList= []
178
+                for(let i=0;i<goodType.length;i++){
179
+                if(goodType[i].is_open == 1){
180
+                    this.typeList.push(goodType[i])
181
+                }
182
+                }
183
+            for(let i=0;i<list.length;i++){
184
+                list[i].projectList = []
185
+                list[i].typeList = []
186
+                list[i].typeList = this.typeList
187
+            }
188
+            
189
+                for(let i=0;i<list.length;i++){
190
+                if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length >0){
191
+                for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
192
+                    for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
193
+                    list[i].projectList.push(list[i].his_prescription_template.his_prescription_info[j].project[z])
194
+                    }
195
+                }
196
+                }
197
+                
198
+                }
199
+                console.log("list列表",list)
200
+                this.tableData = []
201
+                this.tableData = list 
202
+            }
203
+            }
204
+        }
205
+      }) 
206
+     },
207
+     getTimeOne(val) {
208
+        if(val == ""){
209
+        return ""
210
+        }else {
211
+        return uParseTime(val, '{y}-{m}-{d}')
212
+        }
213
+     },
214
+      printAction: function() {
215
+        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
216
+
217
+        printJS({
218
+          printable: 'print_content',
219
+          type: 'html',
220
+          documentTitle: '  ',
221
+          style: style,
222
+          scanStyles: false
223
+        })
224
+      },
225
+      getStr(good_type_id,arrNew,patient_id){
226
+        var arr= []
227
+        var str = ""
228
+        if(arrNew!=null && arrNew.length > 0){
229
+            for(let i=0;i<arrNew.length;i++){
230
+            arrNew[i].good_type_id = 0
231
+            arrNew[i].good_type_id = arrNew[i].good_info.good_type_id
232
+            arrNew[i].good_id = 0
233
+            arrNew[i].good_id = arrNew[i].good_info.id
234
+            if(arrNew[i].patient_id == patient_id && arrNew[i].good_info.good_type_id == good_type_id){
235
+                arr.push(arrNew[i])
236
+            }
237
+            }
238
+        }
239
+      
240
+       let dataInfo = {}
241
+       if(arr!=null && arr.length > 0){
242
+        arr.forEach((item, index) => {
243
+          let { good_id } = item
244
+          if (!dataInfo[good_id]) {
245
+            dataInfo[good_id] = {
246
+              good_id:item.good_id,
247
+              child: [],
248
+              count:0,
249
+              specification_name:item.good_info.specification_name
250
+            }
251
+          }
252
+        })
253
+         let newArr = Object.values(dataInfo)
254
+         console.log("newArr",newArr)
255
+          for(let i=0;i<arr.length;i++){
256
+            for(let j=0;j<newArr.length;j++){
257
+              if( arr[i].good_info.id == newArr[j].good_id){
258
+                newArr[j].child.push(arr[i])
259
+              }
260
+            }
261
+          }
262
+            
263
+          if(newArr!=null && newArr.length > 0){
264
+            for(let j=0;j<newArr.length;j++){
265
+              for(let z=0;z<newArr[j].child.length;z++){
266
+                  newArr[j].count += parseInt(newArr[j].child[z].count)
267
+              }
268
+             }
269
+            for(let j=0;j<newArr.length;j++){
270
+              str += newArr[j].specification_name + "*" + newArr[j].count + " "
271
+            }
272
+          }
273
+       }
274
+    
275
+      return str
276
+    },
277
+
278
+    getName(filed_name_cn,val){
279
+        if(filed_name_cn == "透析模式"){
280
+          return this.getModeName(val.mode_id)
281
+        }
282
+        if(filed_name_cn == "血流量"){
283
+          if(val.blood_flow_volume > 0){
284
+           return val.blood_flow_volume
285
+          }else{
286
+           return ""
287
+          }
288
+          
289
+        }
290
+        if(filed_name_cn == "目标超滤量"){
291
+          return val.target_ultrafiltration?val.target_ultrafiltration:""
292
+        }
293
+        if(filed_name_cn == "透析液配方"){
294
+          return this.getDialysateFormulation(val.dialysate_formulation)
295
+        }
296
+        if(filed_name_cn == "抗凝剂"){
297
+          return this.getAnticoagulant(val.anticoagulant)
298
+        }
299
+        if(filed_name_cn == "首剂"){
300
+          return val.anticoagulant_shouji?val.anticoagulant_shouji:""
301
+        }
302
+        if(filed_name_cn == "维持"){
303
+          return val.anticoagulant_weichi?val.anticoagulant_weichi:""
304
+        }
305
+        if(filed_name_cn == "总量"){
306
+          return val.anticoagulant_zongliang?val.anticoagulant_zongliang:""
307
+        }
308
+        if(filed_name_cn == "置换量"){
309
+           return val.replacement_total?val.replacement_total:""
310
+        }
311
+        if(filed_name_cn == "钾"){
312
+          return val.kalium?val.kalium:""
313
+        }
314
+        if(filed_name_cn == "钠"){
315
+           return val.sodium?val.sodium:""
316
+        }
317
+        if(filed_name_cn == "钙"){
318
+           return val.calcium?val.calcium:""
319
+        }
320
+        if(filed_name_cn == "碳酸氢盐"){
321
+           return val.bicarbonate?val.bicarbonate:""
322
+        }
323
+        if(filed_name_cn == "透析液流量"){
324
+            return val.dialysate_flow?val.dialysate_flow:""
325
+        }
326
+        if(filed_name_cn == "透析液温度"){
327
+           return val.dialysate_temperature?val.dialysate_temperature:""
328
+        }
329
+        if(filed_name_cn == "电导度"){
330
+           return val.conductivity?val.conductivity:""
331
+        }
332
+        if(filed_name_cn == "透析器/灌流器"){
333
+           return val.dialyzer_perfusion_apparatus?val.dialyzer_perfusion_apparatus:""
334
+        }
335
+        if(filed_name_cn == "钙名称"){
336
+          return val.anticoagulant_gaimingcheng?val.anticoagulant_gaimingcheng:""
337
+        }
338
+       if(filed_name_cn == "钙剂量"){
339
+           return val.anticoagulant_gaijiliang?val.anticoagulant_gaijiliang:""
340
+        }
341
+       if(filed_name_cn == "体液过多症状"){
342
+          return this.getBodyFluid(val.body_fluid)
343
+        }
344
+        if(filed_name_cn == "透析前使用特殊药物"){
345
+          return val.special_medicine?val.special_medicine:""
346
+        }
347
+       if(filed_name_cn == "透析前使用其他特殊药物"){
348
+         return val.special_medicine_other?val.special_medicine_other:""
349
+        }
350
+        if(filed_name_cn == "置换液"){
351
+          return this.getDisplace(val.displace_liqui_part) 
352
+        }
353
+        if(filed_name_cn == "血管通路"){
354
+          return this.getBloodAccess(val.blood_access)
355
+        }
356
+        if(filed_name_cn == "体液过多其他症状"){
357
+          return val.body_fluid_other?val.body_fluid_other:""
358
+        }  
359
+        if(filed_name_cn == "透析时长"){
360
+          return   val.dialysis_duration_hour + "小时" + val.dialysis_duration_minute + "分钟"
361
+        }
362
+        if(filed_name_cn == "置换液总量"){
363
+         return val.displace_liqui_value?val.displace_liqui_value:""
364
+        }
365
+        if(filed_name_cn == "透析器"){
366
+          return val.dialysis_dialyszers
367
+        }
368
+        if(filed_name_cn == "注射器"){
369
+           return ""
370
+        }
371
+        if(filed_name_cn == "抗凝提前停止"){
372
+          return ""
373
+        }
374
+        if(filed_name_cn == "肝素钠"){
375
+           return ""
376
+        }
377
+        if(filed_name_cn == "鱼精蛋白"){
378
+           return ""
379
+        }
380
+        if(filed_name_cn == "下机前推住鱼精蛋白"){
381
+            return ""
382
+        }
383
+        if(filed_name_cn == "无肝素钠备注"){
384
+           return ""
385
+        }
386
+        if(filed_name_cn == "灌流器"){
387
+          return val.dialysis_irrigation
388
+        }
389
+        if(filed_name_cn == "抗凝剂商品名称"){
390
+          return ""
391
+        }
392
+        if(filed_name_cn == "置换速度"){
393
+          return  ""
394
+        }
395
+        if(filed_name_cn == "病情"){
396
+          return ""
397
+        }
398
+        if(filed_name_cn == "葡萄糖"){
399
+           return val.amylaceum?val.amylaceum:""
400
+        }
401
+        if(filed_name_cn == "单超时长"){
402
+           return  ""
403
+        }
404
+        if(filed_name_cn == "单超脱水"){
405
+           return ""
406
+        }
407
+        if(filed_name_cn == "置换流量"){
408
+          return  ""
409
+        }
410
+        if(filed_name_cn == "血浆分离器"){
411
+           return val.plasma_separator?val.plasma_separator:""
412
+        }
413
+       if(filed_name_cn == "透析管路"){
414
+          return this.getHemodialysisPipelines(val.hemodialysis_pipelines)
415
+        }
416
+       if(filed_name_cn == "透析管路支数"){
417
+          return ""
418
+        }
419
+       if(filed_name_cn == "穿刺针"){
420
+          return val.puncture_needle?val.puncture_needle:""
421
+        }
422
+      
423
+       if(filed_name_cn == "促红素"){
424
+          return val.epo_count?val.epo_count:""
425
+        }
426
+        if(filed_name_cn == "促红素支数"){
427
+          return val.epo_count?val.epo_count:""
428
+        }
429
+        if(filed_name_cn == "最大超滤率"){
430
+          return val.max_ultrafiltration_rate?val.max_ultrafiltration_rate:""
431
+        }
432
+      },
433
+
434
+       getModeName(id){
435
+        var name = ""
436
+        if(id == 1){
437
+          name = "HD"
438
+        }
439
+        if(id == 2){
440
+          name = "HDF"
441
+        }
442
+        if(id == 3){
443
+          name = "HD+HP"
444
+        }
445
+        if(id == 4){
446
+          name = "HP"
447
+        }
448
+        if(id == 5){
449
+          name = "HF"
450
+        }
451
+        if(id == 6){
452
+          name = "SCUF"
453
+        }
454
+        if(id == 7){
455
+          name = "IUF"
456
+        }
457
+        if(id == 8){
458
+          name = "HFHD"
459
+        }
460
+        if(id == 9){
461
+          name = "HFHD+HP"
462
+        }
463
+        if(id == 10){
464
+          name = "PHF"
465
+        }
466
+        if(id == 11){
467
+          name = "HFR"
468
+        }
469
+        if(id == 12){
470
+          name = "HDF+HP"
471
+        }
472
+        if(id == 13){
473
+          name = "CRRT"
474
+        }
475
+        if(id == 14){
476
+          name = "腹水回输"
477
+        }
478
+        if(id == 19){
479
+          name = "IUF+HD"
480
+        }
481
+        if(id == 20){
482
+          name = "UF"
483
+        }
484
+        if(id == 21){
485
+          name = "HD+"
486
+        }
487
+        if(id == 22){
488
+          name = "血浆胆红素吸附+HDF"
489
+        }
490
+        if(id == 23){
491
+          name = "血浆胆红素吸附"
492
+        }
493
+        if(id == 24){
494
+          name = "I-HDF"
495
+        }
496
+        if(id == 25){
497
+          name = "HD高通"
498
+        }
499
+        if(id == 26){
500
+          name = "CVVH"
501
+        }
502
+         if(id == 27){
503
+          name = "CVVHD"
504
+        }
505
+         if(id == 28){
506
+          name = "CVVHDF"
507
+        }
508
+         if(id == 29){
509
+          name = "PE"
510
+        }
511
+         if(id == 30){
512
+          name = "血浆胆红素吸附+HP"
513
+        }
514
+         if(id == 31){
515
+          name = "HPD"
516
+        }
517
+         if(id == 32){
518
+          name = "HDP"
519
+        }
520
+        return name
521
+      },
522
+    getDialysateFormulation(id){
523
+      var name = ""
524
+      for(let i=0;i<this.dialysate_formulation.length;i++){
525
+        if(id == this.dialysate_formulation[i].id){
526
+          name = this.dialysate_formulation[i].name
527
+        }
528
+      }
529
+      return name
530
+    },
531
+    getAnticoagulant(id){
532
+      var name = ""
533
+      if(id == 1){
534
+         name = "无肝素"
535
+      }
536
+      if(id == 2){
537
+        name = "普通肝素"
538
+      }
539
+      if(id == 3){
540
+        name = "低分子肝素"
541
+      }
542
+      if(id == 4){
543
+        name = "阿加曲班"
544
+      }
545
+      if(id == 5){
546
+         name ="枸橼酸钠"
547
+      }
548
+      if(id == 6){
549
+        name = "低分子肝素钙"
550
+      }
551
+      if(id == 7){
552
+        name = "低分子肝素钠"
553
+      }
554
+      if(id ==8){
555
+        name = "依诺肝素"
556
+      }
557
+      if(id ==9){
558
+        name = "达肝素"
559
+      }
560
+      if(id ==10){
561
+        name = "体外抗凝"
562
+      }
563
+      if(id ==11){
564
+        name = "那曲肝素"
565
+      }
566
+      if(id ==12){
567
+        name = "无抗凝剂"
568
+      }
569
+     if(id ==13){
570
+        name = "那曲肝素钙"
571
+      }
572
+      return name
573
+    },
574
+    getBodyFluid(id){
575
+     var name = ""
576
+     for(let i=0;i<this.body_fluid_option.length;i++){
577
+       if(id == this.body_fluid_option[i].id){
578
+          name = this.body_fluid_option[i].name
579
+       }
580
+     }
581
+     return name
582
+    },
583
+    getDisplace(id){
584
+      var name = ""
585
+      for(let i=0;i<this.displace_liqui_part_option.length;i++){
586
+        if(id == this.displace_liqui_part_option[i].id){
587
+           name = this.displace_liqui_part_option[i].name
588
+        } 
589
+      }
590
+      return name
591
+    },
592
+    getBloodAccess(id){
593
+      var name = ""
594
+      for(let i=0;i<this.blood_access_option.length;i++){
595
+        if(id == this.blood_access_option[i].id){
596
+           name = this.blood_access_option[i].name
597
+        }
598
+      }
599
+      return name
600
+    },
601
+     getHemodialysisPipelines(id){
602
+      var name = ""
603
+      for(let i=0;i<this.hemodialysisPipelinesOptions.length;i++){
604
+        if(id == this.hemodialysisPipelinesOptions[i].id){
605
+            name = this.hemodialysisPipelinesOptions[i].name
606
+        }
607
+      }
608
+      return name
609
+    },
610
+    }
611
+  }
612
+</script>
613
+
614
+<style rel="stylesheet/scss" lang="scss" scoped>
615
+  .print_main_content {
616
+    background-color: white;
617
+    width: 960px;
618
+    margin: 0 auto;
619
+    padding: 0 0 20px 0;
620
+
621
+  .order_title_panl {
622
+    text-align: center;
623
+
624
+  .main_title {
625
+    font-size: 18px;
626
+    line-height: 40px;
627
+    font-weight: 500;
628
+  }
629
+
630
+  }
631
+  .table_panel {
632
+
633
+  .table {
634
+    width: 100%;
635
+    border: 1px solid;
636
+    border-collapse: collapse;
637
+    padding: 2px;
638
+
639
+  thead {
640
+
641
+  tr {
642
+
643
+  td {
644
+    border: 1px solid;
645
+    text-align: center;
646
+    font-size: 20px;
647
+    padding: 15px 5px;
648
+  }
649
+
650
+  }
651
+  }
652
+  tbody {
653
+
654
+  tr {
655
+
656
+  td {
657
+    border: 1px solid;
658
+    text-align: center;
659
+    font-size: 18px;
660
+    padding: 10px 5px;
661
+
662
+  .proj {
663
+    padding: 5px 0;
664
+    text-align: left;
665
+
666
+  .proj_title {
667
+    font-size: 16px;
668
+    font-weight: 500;
669
+    line-height: 25px;
670
+  }
671
+
672
+  .proj_item {
673
+    font-size: 15px;
674
+    line-height: 20px;
675
+
676
+  .zone_name {
677
+    font-weight: 500;
678
+  }
679
+
680
+  }
681
+  }
682
+  }
683
+  }
684
+  }
685
+  }
686
+  }
687
+  }
688
+</style>
689
+

File diff suppressed because it is too large
+ 1049 - 44
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue


+ 433 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameterCountPrint.vue Näytä tiedosto

@@ -0,0 +1,433 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+        </el-col>
9
+      </el-row>
10
+    </div>
11
+    <div class="app-container" style="background-color: white;">
12
+
13
+      <div id="print_content">
14
+        <div class="print_main_content">
15
+          <div class="order_title_panl">
16
+            <span class="main_title"> &nbsp;
17
+              透析药品
18
+            </span>
19
+            <span  style="float:right;">打印日期: &nbsp;
20
+               {{$route.query.schedule_date}}
21
+            </span>
22
+          </div>
23
+          <div class="table_panel">
24
+
25
+            <table class="table">
26
+              <thead>
27
+              <tr>
28
+                <td width="50">序号</td>
29
+                <td width="100">名称</td>
30
+                <td width="100">规格</td>
31
+                <td width="100">数量</td>
32
+              </tr>
33
+              </thead>
34
+              <tbody>
35
+               <tr v-for="(item,i) in tableList" :key="i">
36
+                <td>{{i+1}}</td>
37
+                <td>{{item.name}}</td>
38
+                <td>{{item.specification_name}}</td>
39
+                <td>{{item.count}}</td>
40
+               </tr>
41
+              </tbody>
42
+            </table>
43
+            
44
+         
45
+
46
+          </div>
47
+        </div>
48
+      </div>
49
+    </div>
50
+  </div>
51
+</template>
52
+
53
+<script>
54
+ import { getDialysisParameterGoodList } from '@/api/dialysis'
55
+  import { parseTime } from '@/utils'
56
+  import { uParseTime } from '@/utils/tools'
57
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
58
+  import print from 'print-js'
59
+  import { getDataConfig } from '@/utils/data'
60
+  export default {
61
+    name: 'SchedulePrint',
62
+    data() {
63
+      return {
64
+        crumbs: [
65
+          { path: false, name: '排班管理' },
66
+          { path: false, name: '排班打印' }
67
+        ],
68
+        td_1_width: '8%',
69
+        td_2_width: '8%',
70
+        td_3_width: '64%',
71
+        td_4_width: '20%',
72
+        month: 1,
73
+        begin_day: 1,
74
+        total:[],
75
+        list:[],
76
+        schedule_date:"",
77
+        schedule_type:0,
78
+        partition_type:0,
79
+        keywords:"",
80
+        loading:false,
81
+        tableData:[],
82
+        numberList:[],
83
+        partitionArr:[],
84
+        his_config:{},
85
+        typeList:[],
86
+        rowList:[],
87
+        dialysate_formulation:[],
88
+        body_fluid_option:[],
89
+        displace_liqui_part_option:[],
90
+        blood_access_option:[],
91
+        hemodialysisPipelinesOptions:[],
92
+        adviceList:[],
93
+        templateList:[],
94
+        config:{},
95
+        list:[],
96
+        tableList:[]
97
+      }
98
+    },
99
+    components: {
100
+      BreadCrumb
101
+    },
102
+    created() {
103
+     this.getDialysisParameterGoodList()
104
+    },
105
+    methods: {
106
+    
107
+     getTimeOne(val) {
108
+        if(val == ""){
109
+        return ""
110
+        }else {
111
+        return uParseTime(val, '{y}-{m}-{d}')
112
+        }
113
+     },
114
+      printAction: function() {
115
+        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
116
+
117
+        printJS({
118
+          printable: 'print_content',
119
+          type: 'html',
120
+          documentTitle: '  ',
121
+          style: style,
122
+          scanStyles: false
123
+        })
124
+      },
125
+
126
+     getDialysisParameterGoodList() {
127
+         var params = {
128
+          schedule_type:this.$route.query.schedule_type,
129
+          partion_type:this.$route.query.partion_type,
130
+          selected_date:this.$route.query.schedule_date,
131
+        }
132
+        getDialysisParameterGoodList(params).then(response=>{
133
+           if(response.data.state == 1){
134
+            this.startdialogVisible = true
135
+            var list = response.data.data.list
136
+            console.log("list232323223222wid",list)
137
+            
138
+            var anticoagulantList = []
139
+            if(list!=null && list.length>0){
140
+              for(let i=0;i<list.length;i++){
141
+                 list[i].dialysis_dialyszers_arr = []
142
+                 list[i].dialyzer_perfusion_apparatus_arr = []
143
+                 list[i].dialysis_irrigation_arr = []
144
+                 if(list[i].dialysis_solution.dialysis_dialyszers!=""){
145
+                   list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
146
+                 }
147
+                 if(list[i].dialysis_solution.dialyzer_perfusion_apparatus!=""){
148
+                   list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_solution.dialyzer_perfusion_apparatus.split(",")
149
+                 }
150
+                 if(list[i].dialysis_solution.dialysis_irrigation!=""){
151
+                   list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
152
+                 }
153
+
154
+                 if(list[i].dialysis_solution.anticoagulant == 1){
155
+                    anticoagulantList.push(list[i].dialysis_solution)
156
+                 }
157
+                 if(list[i].dialysis_solution.anticoagulant == 2){
158
+                    anticoagulantList.push(list[i].dialysis_solution)
159
+                 }
160
+                if(list[i].dialysis_solution.anticoagulant == 3){
161
+                    anticoagulantList.push(list[i].dialysis_solution)
162
+                 }
163
+                 if(list[i].dialysis_solution.anticoagulant == 4){
164
+                    anticoagulantList.push(list[i].dialysis_solution)
165
+                 }
166
+                if(list[i].dialysis_solution.anticoagulant == 5){
167
+                   anticoagulantList.push(list[i].dialysis_solution)
168
+                 }
169
+                  if(list[i].dialysis_solution.anticoagulant == 6){
170
+                    anticoagulantList.push(list[i].dialysis_solution)
171
+                 }
172
+                  if(list[i].dialysis_solution.anticoagulant == 7){
173
+                   anticoagulantList.push(list[i].dialysis_solution)
174
+                 }
175
+                  if(list[i].dialysis_solution.anticoagulant == 8){
176
+                   anticoagulantList.push(list[i].dialysis_solution)
177
+                 }
178
+                 if(list[i].dialysis_solution.anticoagulant == 9){
179
+                   anticoagulantList.push(list[i].dialysis_solution)
180
+                 }
181
+                  if(list[i].dialysis_solution.anticoagulant == 10){
182
+                    anticoagulantList.push(list[i].dialysis_solution)
183
+                 }
184
+                  if(list[i].dialysis_solution.anticoagulant == 11){
185
+                    anticoagulantList.push(list[i].dialysis_solution)
186
+                 }
187
+                  if(list[i].dialysis_solution.anticoagulant == 12){
188
+                    anticoagulantList.push(list[i].dialysis_solution)
189
+                 }
190
+                 if(list[i].dialysis_solution.anticoagulant == 13){
191
+                   anticoagulantList.push(list[i].dialysis_solution)
192
+                 }
193
+              }
194
+            }
195
+            console.log("anticoagulantList",anticoagulantList)
196
+            this.tableList = []
197
+            if(anticoagulantList!=null && anticoagulantList.length > 0){
198
+                  let dataInfoOne = {}
199
+                  anticoagulantList.forEach((item, index) => {
200
+                  let { anticoagulant } = item
201
+                  if (!dataInfoOne[anticoagulant]) {
202
+                    dataInfoOne[anticoagulant] = {
203
+                      anticoagulant:item.anticoagulant,
204
+                      name: "抗凝剂",
205
+                      specification_name:this.getAnticoagualnt(item.anticoagulant),
206
+                      count:0,
207
+                      child:[]
208
+                    }
209
+                  }
210
+                })
211
+              let hisarr = Object.values(dataInfoOne)
212
+              if(hisarr!=null && hisarr.length > 0){
213
+                for(let i=0;i<anticoagulantList.length;i++){
214
+                  for(let j=0;j<hisarr.length;j++){
215
+                    if(anticoagulantList[i].anticoagulant == hisarr[j].anticoagulant){
216
+                      hisarr[j].child.push(anticoagulantList[i])
217
+                    }
218
+                  }
219
+                }
220
+              }
221
+              for(let i=0;i<hisarr.length;i++){
222
+                hisarr[i].count = hisarr[i].child.length
223
+                this.tableList.push(hisarr[i])
224
+              }
225
+             
226
+            }
227
+            var dialysisDialyszersArr = []
228
+            var dialyzerPerfusionApparaArr = []
229
+            var dialysisIrrigationArr = []
230
+            for(let i=0;i<list.length;i++){
231
+             for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
232
+              
233
+               dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])  
234
+             }
235
+             for(let z=0;z<list[i].dialyzer_perfusion_apparatus_arr.length;z++){
236
+              dialyzerPerfusionApparaArr.push(list[i].dialyzer_perfusion_apparatus_arr[z])
237
+             }
238
+             for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
239
+              dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
240
+             }
241
+            }
242
+            console.log("透析器",dialysisDialyszersArr)
243
+            console.log("透析器/灌流器",dialyzerPerfusionApparaArr)
244
+            console.log("灌流器",dialysisIrrigationArr)
245
+             
246
+           let obj = {}
247
+           let objOne = {}
248
+           let objTwo = {}
249
+           for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
250
+            if(obj[dialysisDialyszersArr[i]]){
251
+               obj[dialysisDialyszersArr[i]] +=1
252
+            }else{
253
+              obj[dialysisDialyszersArr[i]] = 1
254
+            }
255
+           }
256
+           let Arr = [];
257
+            for (let i in obj) {
258
+              let a = {};
259
+              a[i] = obj[i];
260
+              a.name = "透析器"
261
+              a.count = obj[i]
262
+              a.specification_name = i
263
+              Arr.push(a);
264
+            }
265
+          
266
+           for(let i=0;i<dialyzerPerfusionApparaArr.length;i++){
267
+            if(objOne[dialyzerPerfusionApparaArr[i]]){
268
+                objOne[dialyzerPerfusionApparaArr[i]] +=1
269
+             }else{
270
+              objOne[dialyzerPerfusionApparaArr[i]] = 1
271
+             }   
272
+           }
273
+           
274
+           for (let i in objOne) {
275
+              let a = {};
276
+              a[i] = objOne[i];
277
+              a.name = "透析器/灌流器"
278
+              a.count = objOne[i]
279
+              a.specification_name = i
280
+              Arr.push(a);
281
+            }
282
+
283
+           for(let i=0;i<dialysisIrrigationArr.length;i++){
284
+            if(objTwo[dialysisIrrigationArr[i]]){
285
+              objTwo[dialysisIrrigationArr[i]] +=1
286
+             }else{
287
+              objTwo[dialysisIrrigationArr[i]] = 1
288
+             }   
289
+           }
290
+
291
+           for (let i in objTwo) {
292
+              let a = {};
293
+              a[i] = objTwo[i];
294
+              a.name = "灌流器"
295
+              a.count = objTwo[i]
296
+              a.specification_name = i
297
+              Arr.push(a);
298
+            }
299
+            console.log("newa",Arr)
300
+           
301
+         
302
+            if(Arr.length >0){
303
+              for(let i=0;i<Arr.length;i++){
304
+                 this.tableList.push(Arr[i])
305
+              }
306
+            }
307
+           }
308
+        })
309
+      },
310
+
311
+      getAnticoagualnt(id){
312
+       var name = ""
313
+       if(id == 1){
314
+         name = "无肝素"
315
+       }
316
+       if(id == 2){
317
+        name = "普通肝素"
318
+       }
319
+       if(id == 3){
320
+         name ="低分子肝素"
321
+       }
322
+       if(id == 4){
323
+         name ="阿加曲班"
324
+       }
325
+       if(id == 5){
326
+         name ="枸橼酸钠"
327
+       }
328
+       if(id == 6){
329
+         name ="低分子肝素钙"
330
+       }
331
+       if(id == 7){
332
+         name ="低分子肝素钠"
333
+       }
334
+       if(id == 8){
335
+         name ="依诺肝素"
336
+       }
337
+       if(id == 9){
338
+         name ="达肝素"
339
+       }
340
+       if(id == 10){
341
+         name ="体外抗凝"
342
+       }
343
+       if(id == 11){
344
+         name ="那屈肝素"
345
+       }
346
+       if(id == 12){
347
+         name ="无抗凝剂"
348
+       }
349
+       if(id == 13){
350
+         name ="那屈肝素钙"
351
+       }
352
+       return name
353
+     },
354
+    }
355
+  }
356
+</script>
357
+
358
+<style rel="stylesheet/scss" lang="scss" scoped>
359
+  .print_main_content {
360
+    background-color: white;
361
+    width: 960px;
362
+    margin: 0 auto;
363
+    padding: 0 0 20px 0;
364
+
365
+  .order_title_panl {
366
+    text-align: center;
367
+
368
+  .main_title {
369
+    font-size: 18px;
370
+    line-height: 40px;
371
+    font-weight: 500;
372
+  }
373
+
374
+  }
375
+  .table_panel {
376
+
377
+  .table {
378
+    width: 100%;
379
+    border: 1px solid;
380
+    border-collapse: collapse;
381
+    padding: 2px;
382
+
383
+  thead {
384
+
385
+  tr {
386
+
387
+  td {
388
+    border: 1px solid;
389
+    text-align: center;
390
+    font-size: 20px;
391
+    padding: 15px 5px;
392
+  }
393
+
394
+  }
395
+  }
396
+  tbody {
397
+
398
+  tr {
399
+
400
+  td {
401
+    border: 1px solid;
402
+    text-align: center;
403
+    font-size: 18px;
404
+    padding: 10px 5px;
405
+
406
+  .proj {
407
+    padding: 5px 0;
408
+    text-align: left;
409
+
410
+  .proj_title {
411
+    font-size: 16px;
412
+    font-weight: 500;
413
+    line-height: 25px;
414
+  }
415
+
416
+  .proj_item {
417
+    font-size: 15px;
418
+    line-height: 20px;
419
+
420
+  .zone_name {
421
+    font-weight: 500;
422
+  }
423
+
424
+  }
425
+  }
426
+  }
427
+  }
428
+  }
429
+  }
430
+  }
431
+  }
432
+</style>
433
+

+ 376 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue Näytä tiedosto

@@ -0,0 +1,376 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+        </el-col>
9
+      </el-row>
10
+    </div>
11
+    <div class="app-container" style="background-color: white;">
12
+
13
+      <div id="print_content">
14
+        <div class="print_main_content">
15
+          <div class="order_title_panl">
16
+            <span class="main_title"> &nbsp;
17
+              透析参数
18
+            </span>
19
+            <span  style="float:right;">打印日期: &nbsp;
20
+               {{$route.query.schedule_date}}
21
+            </span>
22
+          </div>
23
+          <div class="table_panel">
24
+
25
+            <table class="table">
26
+              <thead>
27
+              <tr>
28
+                <td width="50">序号</td>
29
+                <td width="100"  v-if="dialysisSett.device_number==1">透析机号</td>
30
+                <td width="100"  v-if="dialysisSett.name==1">姓名</td>
31
+                <td width="100" v-if="dialysisSett.dialysis_no==1">透析号</td>
32
+                <td width="100" v-if="dialysisSett.admission_number==1">住院(门诊)号</td>
33
+                <td width="100"  v-if="dialysisSett.weight_befor==1">透前体重</td>
34
+                <td width="100"  v-if="dialysisSett.dry_weight==1">干体重</td>
35
+                <td width="100"  v-if="dialysisSett.blood_pressure==1">透前血压</td>
36
+                <td width="100" v-if="dialysisSett.ultrafiltration_volume==1">目标脱水量</td>
37
+                <td width="200" v-if="dialysisSett.anticoagulant==1">抗凝剂(首剂)(维持)(总量)</td>
38
+                <td width="100" v-if="dialysisSett.dialysis_time ==1">透析时长</td>
39
+                <td width="100"  v-if="dialysisSett.device_type==1">设备型号</td>
40
+                <td width="100" v-if="dialysisSett.dialyzer_perfusion_apparatus == 1">透析器/灌流器</td>
41
+                <td width="100"  v-if="dialysisSett.dialysis_dialyszers == 1">透析器</td>
42
+                <td width="100" v-if="dialysisSett.dialysis_irrigation ==1">灌流器</td>
43
+                 <td width="100" v-if="dialysisSett.displace_liqui_part==1">置换液</td>
44
+                <td width="100"  v-if="dialysisSett.displace_liqui_value==1">置换液总量</td>
45
+                <td width="100" v-if="dialysisSett.kalium==1">钾</td>
46
+                <td width="100"  v-if="dialysisSett.sodium==1">钠</td>
47
+                <td width="100" v-if="dialysisSett.calcium==1">钙</td>
48
+                <td width="100" v-if="dialysisSett.bicarbonate == 1">碳酸氢盐</td>
49
+                <td width="100" v-if="dialysisSett.blood_access==1">血管通路</td>
50
+                <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1">封管液</td>
51
+                <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
52
+                <td width="100"  v-if="dialysisSett.blood_flow_volume==1">血流量</td>
53
+              </tr>
54
+              </thead>
55
+              <tbody>
56
+               <tr v-for="(item,i) in list" :key="i">
57
+                <td width="50">{{i+1}}</td>
58
+                <td width="100"  v-if="dialysisSett.device_number==1">
59
+                   {{item.device_number.zone.name}}{{item.device_number.number}}
60
+                </td>
61
+                <td width="100"  v-if="dialysisSett.name==1">
62
+                   {{item.patient.name}}
63
+                </td>
64
+                <td width="100" v-if="dialysisSett.dialysis_no==1">
65
+                   {{item.patient.dialysis_no}}
66
+                </td>
67
+                <td width="100" v-if="dialysisSett.admission_number==1">
68
+                   {{item.xt_receive_treatment_asses.admission_number}}
69
+                </td>
70
+                <td width="100"  v-if="dialysisSett.weight_befor==1">
71
+                  <span v-if="item.assessment_befor_dislysis.weight_before > 0">{{item.assessment_befor_dislysis.weight_before}} </span>  
72
+                </td>
73
+                <td width="100"  v-if="dialysisSett.dry_weight==1">
74
+                   <span v-if="item.assessment_befor_dislysis.dry_weight > 0">{{item.assessment_befor_dislysis.dry_weight}} </span> 
75
+                </td>
76
+                <td width="100"  v-if="dialysisSett.blood_pressure==1">
77
+                    <span v-if="item.assessment_befor_dislysis.systolic_blood_pressure>0">{{item.assessment_befor_dislysis.systolic_blood_pressure}}</span>
78
+                    <span v-if="item.assessment_befor_dislysis.diastolic_blood_pressure>0">/{{item.assessment_befor_dislysis.diastolic_blood_pressure}}</span> 
79
+                </td>
80
+                <td width="100" v-if="dialysisSett.ultrafiltration_volume==1">
81
+                   <span v-if="item.dialysis_solution.target_ultrafiltration>0">{{item.dialysis_solution.target_ultrafiltration}}</span>
82
+                </td>
83
+                <td width="200" v-if="dialysisSett.anticoagulant==1">
84
+                  <span>{{getAnticoagualnt(item.dialysis_solution.anticoagulant)}}</span>
85
+                  <span v-if="item.dialysis_solution.anticoagulant_shouji > 0">({{item.dialysis_solution.anticoagulant_shouji}})</span>
86
+                  <span v-if="item.dialysis_solution.anticoagulant_weichi > 0">({{item.dialysis_solution.anticoagulant_weichi}})</span>
87
+                  <span v-if="item.dialysis_solution.anticoagulant_zongliang > 0">({{item.dialysis_solution.anticoagulant_zongliang}})</span>
88
+                </td>
89
+                <td width="100" v-if="dialysisSett.dialysis_time ==1">
90
+                   <span v-if="item.dialysis_solution.dialysis_duration_hour >0">{{item.dialysis_solution.dialysis_duration_hour}}时</span>
91
+                   <span v-if="item.dialysis_solution.dialysis_duration_minute >0">{{item.dialysis_solution.dialysis_duration_minute}}分</span>
92
+                </td>
93
+                <td width="100"  v-if="dialysisSett.device_type==1">
94
+                   <span>{{item.assessment_befor_dislysis.machine_type}}</span>
95
+                </td>
96
+                <td width="100" v-if="dialysisSett.dialyzer_perfusion_apparatus == 1">
97
+                    <span>{{item.dialysis_solution.dialyzer_perfusion_apparatus}}</span>
98
+                </td>
99
+                <td width="100"  v-if="dialysisSett.dialysis_dialyszers == 1">
100
+                   <span>{{item.dialysis_solution.dialysis_dialyszers}}</span>
101
+                </td>
102
+                <td width="100" v-if="dialysisSett.dialysis_irrigation ==1">
103
+                     <span>{{item.dialysis_solution.dialysis_irrigation}}</span>
104
+                </td>
105
+                <td width="100"  v-if="dialysisSett.displace_liqui_part==1">
106
+                  <span>{{getDisplaceLiquiPart(item.dialysis_solution.displace_liqui_part)}}</span>
107
+                </td>
108
+                <td width="100"  v-if="dialysisSett.displace_liqui_value==1">
109
+                  <span v-if="item.dialysis_solution.displace_liqui_value > 0">{{item.dialysis_solution.displace_liqui_value}}</span>
110
+                </td>
111
+                <td width="100" v-if="dialysisSett.kalium==1">
112
+                   <span v-if="item.dialysis_solution.kalium >0">{{item.dialysis_solution.kalium}}</span>
113
+                </td>
114
+                <td width="100"  v-if="dialysisSett.sodium==1">
115
+                   <span v-if="item.dialysis_solution.sodium > 0">{{item.dialysis_solution.sodium}}</span>
116
+                </td>
117
+                <td width="100" v-if="dialysisSett.calcium==1">
118
+                  <span v-if="item.dialysis_solution.calcium >0">{{item.dialysis_solution.calcium}}</span>
119
+                </td>
120
+                <td width="100" v-if="dialysisSett.bicarbonate == 1">
121
+                   <span v-if="item.dialysis_solution.bicarbonate >0">{{item.dialysis_solution.bicarbonate}}</span>
122
+                </td>
123
+                <td width="100" v-if="dialysisSett.blood_access==1">
124
+                  <span>{{getBloodAccessOption(item.dialysis_solution.blood_access)}}</span>
125
+                </td>
126
+                <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1">
127
+                   <span> {{item.xt_assesment_after_dislysis.sealing_fluid_dispose}} </span>
128
+                </td>
129
+                <td width="100"  v-if="dialysisSett.glucose==1">
130
+                   <span>{{item.dialysis_solution.amylaceum?item.dialysis_solution.amylaceum:""}}</span> 
131
+                </td>
132
+                <td width="100"  v-if="dialysisSett.blood_flow_volume==1">
133
+                   <span>{{item.dialysis_solution.blood_flow_volume?item.dialysis_solution.blood_flow_volume:""}}</span> 
134
+                </td>
135
+               </tr>
136
+              </tbody>
137
+            </table>
138
+          </div>
139
+        </div>
140
+      </div>
141
+    </div>
142
+  </div>
143
+</template>
144
+
145
+<script>
146
+  import { getDialysisParameter } from '@/api/dialysis'
147
+  import { parseTime } from '@/utils'
148
+  import { uParseTime } from '@/utils/tools'
149
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
150
+  import print from 'print-js'
151
+  import { getDataConfig } from '@/utils/data'
152
+  export default {
153
+    name: 'SchedulePrint',
154
+    data() {
155
+      return {
156
+        crumbs: [
157
+          { path: false, name: '排班管理' },
158
+          { path: false, name: '透析参数打印' }
159
+        ],
160
+        td_1_width: '8%',
161
+        td_2_width: '8%',
162
+        td_3_width: '64%',
163
+        td_4_width: '20%',
164
+        month: 1,
165
+        begin_day: 1,
166
+        total:[],
167
+        list:[],
168
+        schedule_date:"",
169
+        schedule_type:0,
170
+        partition_type:0,
171
+        keywords:"",
172
+        loading:false,
173
+        tableData:[],
174
+        numberList:[],
175
+        partitionArr:[],
176
+        his_config:{},
177
+        typeList:[],
178
+        rowList:[],
179
+        dialysate_formulation:[],
180
+        body_fluid_option:[],
181
+        displace_liqui_part_option:[],
182
+        blood_access_option:[],
183
+        hemodialysisPipelinesOptions:[],
184
+        tableList:[],
185
+        list:[],
186
+        dialysisSett:{},
187
+      }
188
+    },
189
+    components: {
190
+      BreadCrumb
191
+    },
192
+    created() {
193
+      this.displace_liqui_part_option = this.$store.getters.displace_liqui
194
+      this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
195
+      this.getlist()
196
+    },
197
+    methods: {
198
+    getlist(){
199
+       var params = {
200
+         schedule_date:this.$route.query.schedule_date,
201
+         schedule_type:this.$route.query.schedule_type,
202
+         partion_id:this.$route.query.partion_id,
203
+         page:this.$route.query.page,
204
+         limit:this.$route.query.limit,
205
+         ids:this.$route.query.ids,
206
+       }
207
+      console.log("params",params)
208
+      getDialysisParameter(params).then(response=>{
209
+          if(response.data.state == 1){
210
+            var list = response.data.data.list
211
+            this.list = list
212
+            this.dialysisSett = response.data.data.dialysisSett
213
+            console.log("设置",this.dialysisSett)
214
+          }
215
+      }) 
216
+     },
217
+     getTimeOne(val) {
218
+        if(val == ""){
219
+        return ""
220
+        }else {
221
+        return uParseTime(val, '{y}-{m}-{d}')
222
+        }
223
+     },
224
+      printAction: function() {
225
+        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
226
+
227
+        printJS({
228
+          printable: 'print_content',
229
+          type: 'html',
230
+          documentTitle: '  ',
231
+          style: style,
232
+          scanStyles: false
233
+       })
234
+      },
235
+      getAnticoagualnt(id){
236
+       var name = ""
237
+       if(id == 1){
238
+         name = "无肝素"
239
+       }
240
+       if(id == 2){
241
+        name = "普通肝素"
242
+       }
243
+       if(id == 3){
244
+         name ="低分子肝素"
245
+       }
246
+       if(id == 4){
247
+         name ="阿加曲班"
248
+       }
249
+       if(id == 5){
250
+         name ="枸橼酸钠"
251
+       }
252
+       if(id == 6){
253
+         name ="低分子肝素钙"
254
+       }
255
+       if(id == 7){
256
+         name ="低分子肝素钠"
257
+       }
258
+       if(id == 8){
259
+         name ="依诺肝素"
260
+       }
261
+       if(id == 9){
262
+         name ="达肝素"
263
+       }
264
+       if(id == 10){
265
+         name ="体外抗凝"
266
+       }
267
+       if(id == 11){
268
+         name ="那屈肝素"
269
+       }
270
+       if(id == 12){
271
+         name ="无抗凝剂"
272
+       }
273
+       if(id == 13){
274
+         name ="那屈肝素钙"
275
+       }
276
+       return name
277
+     },
278
+     getBloodAccessOption(id){
279
+       var name = ""
280
+       for(let i=0;i<this.blood_access_option.length;i++){
281
+         if(id == this.blood_access_option[i].id){
282
+            name = this.blood_access_option[i].name
283
+         }
284
+       }
285
+       return name
286
+     },
287
+     getDisplaceLiquiPart(id){
288
+       var name = ""
289
+       for(let i=0;i<this.displace_liqui_part_option.length;i++){
290
+         if(id == this.displace_liqui_part_option[i].id){
291
+            name = this.displace_liqui_part_option[i].name
292
+         }
293
+       }
294
+       return name
295
+     }
296
+    
297
+    }
298
+  }
299
+</script>
300
+
301
+<style rel="stylesheet/scss" lang="scss" scoped>
302
+  .print_main_content {
303
+    background-color: white;
304
+    width: 960px;
305
+    margin: 0 auto;
306
+    padding: 0 0 20px 0;
307
+
308
+  .order_title_panl {
309
+    text-align: center;
310
+
311
+  .main_title {
312
+    font-size: 18px;
313
+    line-height: 40px;
314
+    font-weight: 500;
315
+  }
316
+
317
+  }
318
+  .table_panel {
319
+
320
+  .table {
321
+    width: 100%;
322
+    border: 1px solid;
323
+    border-collapse: collapse;
324
+    padding: 2px;
325
+
326
+  thead {
327
+
328
+  tr {
329
+
330
+  td {
331
+    border: 1px solid;
332
+    text-align: center;
333
+    font-size: 20px;
334
+    padding: 15px 5px;
335
+  }
336
+
337
+  }
338
+  }
339
+  tbody {
340
+
341
+  tr {
342
+
343
+  td {
344
+    border: 1px solid;
345
+    text-align: center;
346
+    font-size: 18px;
347
+    padding: 10px 5px;
348
+
349
+  .proj {
350
+    padding: 5px 0;
351
+    text-align: left;
352
+
353
+  .proj_title {
354
+    font-size: 16px;
355
+    font-weight: 500;
356
+    line-height: 25px;
357
+  }
358
+
359
+  .proj_item {
360
+    font-size: 15px;
361
+    line-height: 20px;
362
+
363
+  .zone_name {
364
+    font-weight: 500;
365
+  }
366
+
367
+  }
368
+  }
369
+  }
370
+  }
371
+  }
372
+  }
373
+  }
374
+  }
375
+</style>
376
+

+ 6 - 6
src/xt_pages/dialysis/details/consumable/index.vue Näytä tiedosto

@@ -7,13 +7,13 @@
7 7
      <div class="app-container ">
8 8
         <el-tabs v-model="activeName" @tab-click="handleClick">
9 9
             <el-tab-pane label="透析耗材" name="first">
10
-              <DialysisGood></DialysisGood>
10
+              <DialysisGood ref="mychild"></DialysisGood>
11 11
             </el-tab-pane>
12 12
             <el-tab-pane label="药品" name="second">
13
-               <DialysisDrug ref="mychild"></DialysisDrug>
13
+               <DialysisDrug ref="mychildOne"></DialysisDrug>
14 14
            </el-tab-pane>
15 15
             <el-tab-pane label="透析参数" name="third">
16
-               <DialysisParameter ref="mychildOne"></DialysisParameter>
16
+               <DialysisParameter ref="mychildtwo"></DialysisParameter>
17 17
             </el-tab-pane>
18 18
         
19 19
         </el-tabs>
@@ -49,13 +49,13 @@ export default {
49 49
   },
50 50
   methods:{
51 51
     handleClick(val){
52
-      if(val.name == "second"){
52
+      if(val.name == "first"){
53 53
        this.$refs.mychild.open()
54 54
       }   
55
-      if(val.name == "third"){
55
+      if(val.name == "second"){
56 56
        this.$refs.mychildOne.open()
57 57
       }
58
-      if(val.name == "fourth"){
58
+      if(val.name == "third"){
59 59
         this.$refs.mychildtwo.open()
60 60
       }
61 61
     }

+ 592 - 0
src/xt_pages/dialysis/details/consumable/signPrint.vue Näytä tiedosto

@@ -0,0 +1,592 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button
8
+            size="small"
9
+            icon="el-icon-printer"
10
+            type="primary"
11
+            @click="printAction"
12
+            >打印</el-button
13
+          >
14
+        </el-col>
15
+      </el-row>
16
+    </div>
17
+    <div class="app-container" style="background-color: white;">
18
+      <div id="print_content">
19
+        <div class="print_main_content">
20
+          <div class="table_panel">
21
+            <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
22
+              <div class="signPrint" v-if="org_id != 10188 && org_id!=10217  && org_id!=10340 && org_id!=9671 && org_id!=9675">
23
+                <div>
24
+                 <span v-if="printObj.zone == 1">分区/</span>
25
+                 <span v-if="printObj.number == 1">床位号:</span>
26
+                 <span v-if="printObj.zone == 1">{{main_collection.zone.name}}/</span> 
27
+                 <span v-if="printObj.number == 1">{{main_collection.device_number.number}}</span>
28
+                </div>
29
+                <div>姓名:
30
+                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
31
+                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
32
+                </div>
33
+                <div v-if="printObj.anticoagulant == 1">抗凝剂:
34
+                  <span v-if="org_id == 10138 ">{{ main_collection.dialysis_solution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
35
+                  <span v-else >
36
+                   <span>{{getAnticoagulant(main_collection.dialysis_solution.mode_id)}}</span>
37
+                  </span>
38
+                </div>
39
+               <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
40
+                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</div>
41
+                <div v-if="printObj.anticoagulant_zongliang == 1">
42
+                  用量:
43
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 1">
44
+                   {{main_collection.dialysis_solution.anticoagulant_zongliang}}mg
45
+                  </span>
46
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 2">
47
+                    {{main_collection.dialysis_solution.anticoagulant_zongliang}}mg
48
+                  </span>
49
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 3">
50
+                    {{main_collection.dialysis_solution.anticoagulant_zongliang}}iu
51
+                  </span>
52
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 4">
53
+                    {{main_collection.dialysis_solution.anticoagulant_zongliang}}mg
54
+                  </span>
55
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 5">
56
+                     {{main_collection.dialysis_solution.anticoagulant_zongliang}}mg
57
+                   </span>
58
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 6">
59
+                   {{main_collection.dialysis_solution.anticoagulant_zongliang}}iu
60
+                  </span>
61
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 7">
62
+                    {{main_collection.dialysis_solution.anticoagulant_zongliang}}iu
63
+                   </span>
64
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 8">
65
+                     {{main_collection.dialysis_solution.anticoagulant_zongliang}}iu
66
+                  </span>
67
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 9">
68
+                     {{main_collection.dialysis_solution.anticoagulant_zongliang}}iu
69
+                  </span>
70
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 10">
71
+                     {{main_collection.dialysis_solution.anticoagulant_zongliang}}iu
72
+                    </span>
73
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 11">
74
+                    {{main_collection.dialysis_solution.anticoagulant_zongliang}}iu
75
+                   </span>
76
+                </div>
77
+                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">干体重:{{main_collection.assessment_befor_dislysis.dry_weight}}</div>
78
+                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">透前体重:{{main_collection.assessment_befor_dislysis.weight_before}}</div>
79
+                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">体重增加:{{(main_collection.assessment_befor_dislysis.weight_before - main_collection.assessment_befor_dislysis.dry_weight).toFixed(2)}}</div>
80
+                <div>用法:静脉注射</div>
81
+                <div>打印时间:{{currentDate}}</div>
82
+              </div>
83
+              <div class="signPrint" style="font-size:16px;" v-else>
84
+                <div style="margin-left:50px;">姓名:
85
+                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
86
+                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
87
+                  ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
88
+                </div>
89
+                <div class="printCell">
90
+                  <span>
91
+                    床号:{{ main_collection.device_number.number }}
92
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
93
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
94
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
95
+                  </span>
96
+                  <span>{{ printDate }}</span>
97
+                </div>
98
+                <div class="printCell">
99
+                  <span>干体重:{{main_collection.assessment_befor_dislysis.dry_weight}}Kg</span>
100
+                  <span>抗凝剂:{{ main_collection.dialysis_solution.anticoagulant ? anticoagulants_confit[main_collection.dialysis_solution.anticoagulant].name : ''}}</span>
101
+                </div>
102
+                <div class="printCell">
103
+                  <span>净重值:{{ main_collection.assessment_befor_dislysis.weight_before - main_collection.assessment_befor_dislysis.additional_weight }}Kg</span>
104
+                 首剂:<span v-if="main_collection.dialysis_solution.anticoagulant == 1">{{main_collection.dialysis_solution.anticoagulant_shouji}} mg</span>
105
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 2">
106
+                    {{main_collection.dialysis_solution.anticoagulant_shouji}}mg
107
+                  </span>
108
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 3">
109
+                    {{main_collection.dialysis_solution.anticoagulant_shouji}}iu
110
+                  </span>
111
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 4">
112
+                   {{main_collection.dialysis_solution.anticoagulant_shouji}}mg
113
+                  </span>
114
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 5">
115
+                   {{main_collection.dialysis_solution.anticoagulant_shouji}} mg
116
+                   </span>
117
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 6">
118
+                   {{main_collection.dialysis_solution.anticoagulant_shouji}}iu
119
+                  </span>
120
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 7">
121
+                    {{main_collection.dialysis_solution.anticoagulant_shouji}}iu
122
+                   </span>
123
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 8">
124
+                    {{main_collection.dialysis_solution.anticoagulant_shouji}}iu
125
+                  </span>
126
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 9">
127
+                    {{main_collection.dialysis_solution.anticoagulant_shouji}}iu
128
+                  </span>
129
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 10">
130
+                     {{main_collection.dialysis_solution.anticoagulant_shouji}}iu
131
+                    </span>
132
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 11">
133
+                    {{main_collection.dialysis_solution.anticoagulant_shouji}}iu
134
+                   </span>
135
+                 
136
+                </div>
137
+                <div class="printCell">
138
+                  <span>体重增加:{{ (main_collection.assessment_befor_dislysis.weight_before - main_collection.lastafterweight.weight_after).toFixed(2) }}Kg</span>
139
+                  维持:{{main_collection.dialysis_solution.anticoagulant_weichi}}
140
+                   <span v-if="main_collection.dialysis_solution.anticoagulant == 1">
141
+                    mg/h
142
+                  </span>
143
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 2">
144
+                    mg/h
145
+                  </span>
146
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 3">
147
+                   iu/h
148
+                  </span>
149
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 4">
150
+                    mg/h
151
+                  </span>
152
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 5">
153
+                    mg/h
154
+                   </span>
155
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 6">
156
+                   iu/h
157
+                  </span>
158
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 7">
159
+                   iu/h
160
+                   </span>
161
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 8">
162
+                    iu/h
163
+                  </span>
164
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 9">
165
+                    iu/h
166
+                  </span>
167
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 10">
168
+                    iu/h
169
+                    </span>
170
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 11">
171
+                    iu/h
172
+                   </span>
173
+              
174
+                </div>
175
+                <div class="printCell">
176
+                  <span>处方脱水量:{{ main_collection.dialysis_solution.target_ultrafiltration }}L</span>
177
+                  总量:{{main_collection.dialysis_solution.anticoagulant_zongliang}}
178
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 1">
179
+                    mg
180
+                  </span>
181
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 2">
182
+                    mg
183
+                  </span>
184
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 3">
185
+                    iu
186
+                  </span>
187
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 4">
188
+                   mg
189
+                  </span>
190
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 5">
191
+                    mg
192
+                   </span>
193
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 6">
194
+                   iu
195
+                  </span>
196
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 7">
197
+                    iu
198
+                   </span>
199
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 8">
200
+                     iu
201
+                  </span>
202
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 9">
203
+                   iu
204
+                  </span>
205
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 10">
206
+                    iu
207
+                    </span>
208
+                  <span v-if="main_collection.dialysis_solution.anticoagulant == 11">
209
+                   iu
210
+                   </span>
211
+          
212
+                </div>
213
+              </div>
214
+           </div>
215
+          </div>
216
+        </div>
217
+      </div>
218
+    </div>
219
+  </div>
220
+</template>
221
+
222
+<script>
223
+  import { getScheduleList,getPrintList,getNextScheduleWeekDay } from '@/api/schedule'
224
+  import { getDialysisParameter } from '@/api/dialysis'
225
+  import { parseTime } from '@/utils'
226
+  import { uParseTime } from '@/utils/tools'
227
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
228
+  import print from 'print-js'
229
+  const moment = require('moment')
230
+  export default {
231
+    name: 'SchedulePrint',
232
+    data() {
233
+      return {
234
+        crumbs: [
235
+          { path: false, name: '透析参数' },
236
+          { path: false, name: '标签打印' }
237
+        ],
238
+        scheduleData:[],
239
+        week_type: 0,
240
+        day:'',
241
+        td_1_width: '10%',
242
+        td_2_width: '10%',
243
+        td_3_width: '25%',
244
+        td_4_width: '45%',
245
+        modeOptions: null,
246
+        anticoagulants_confit:null,
247
+        currentDate:'',
248
+        start_time:moment().week(moment().week() + 1).startOf('week').unix(),
249
+        end_time:moment().week(moment().week() + 1).endOf('week').unix(),
250
+        org_id:0,
251
+        now_time:0,
252
+        zone:"",
253
+        pre_status:0,
254
+        printObj:{},
255
+        type:1,
256
+        printDate:'',
257
+        schedule_type:0,
258
+        schedule_date:0,
259
+        keyword:"",
260
+        page:0,
261
+        limit:0,
262
+      }
263
+    },
264
+    components: {
265
+      BreadCrumb
266
+    },
267
+    created() {
268
+     this.schedule_type = this.$route.query.schedule_type
269
+     this.partion_id = this.$route.query.partion_id
270
+     this.schedule_date = this.$route.query.schedule_date
271
+     this.keyword = this.$route.query.keyword
272
+     this.page = this.$route.query.page
273
+     this.limit = this.$route.query.limit
274
+     this.org_id = this.$store.getters.xt_user.org.id
275
+    
276
+     console.log("机构ID",this.org_id)
277
+     this.currentDate = this.getCurrentDate()
278
+
279
+    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
280
+    this.modeOptions = this.$store.getters.treatment_mode
281
+    this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
282
+    this.getPrintList()
283
+    
284
+
285
+    },
286
+    methods: {
287
+     getPrintList(){
288
+      getPrintList().then(response=>{
289
+         if(response.data.state == 1){
290
+           var list = response.data.data.list
291
+           console.log("打印设置",list)
292
+           this.printObj = list
293
+           this.getlist()
294
+         }
295
+      })
296
+     },
297
+      getlist(){
298
+         var params = {
299
+          schedule_type:this.schedule_type,
300
+          partion_id:this.partion_id,
301
+          schedule_date:this.schedule_date,
302
+          keywords:this.keyword,
303
+          page:this.page,
304
+          limit:this.limit,
305
+         }
306
+        getDialysisParameter(params).then(response=>{
307
+            if(response.data.state == 1){
308
+              var list = response.data.data.list
309
+              this.scheduleData = list
310
+             
311
+            }
312
+        }) 
313
+      },
314
+      getAdvice:function(doctor_advice) {
315
+        if (doctor_advice != null) {
316
+
317
+        let name = ""
318
+        for (let i = 0; i< doctor_advice.length; i++) {
319
+
320
+          let prescribing_number = ''
321
+          let single_dose = ''
322
+          let drug_spec = ''
323
+
324
+          if (doctor_advice[i].prescribing_number > 0) {
325
+            prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
326
+          }
327
+          if (doctor_advice[i].single_dose > 0) {
328
+            single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
329
+          }
330
+
331
+          if (doctor_advice[i].drug_spec > 0) {
332
+            drug_spec = doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
333
+          }
334
+
335
+          name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
336
+
337
+          if (doctor_advice[i].child.length > 0) {
338
+
339
+            for (let a = 0; a < doctor_advice[i].child.length; a++) {
340
+
341
+              if (doctor_advice[i].child[a].prescribing_number > 0) {
342
+                doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
343
+              } else {
344
+                doctor_advice[i].child[a]['presc'] = ''
345
+              }
346
+
347
+              if (doctor_advice[i].child[a].single_dose > 0) {
348
+                doctor_advice[i].child[a]['single'] = " " + ' 单次用量 ' + " " + doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
349
+              } else {
350
+                doctor_advice[i].child[a]['single'] = ''
351
+              }
352
+
353
+              name = name + "▲" + doctor_advice[i].child[a].advice_name + ""
354
+                + doctor_advice[i].child[a].advice_desc
355
+                + doctor_advice[i].child[a].drug_spec_unit
356
+                + doctor_advice[i].child[a].presc
357
+                + doctor_advice[i].child[a].single + "\n"
358
+            }
359
+
360
+          }
361
+        }
362
+          return name
363
+
364
+
365
+        }
366
+
367
+      },
368
+      printAction: function() {
369
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
370
+        const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 170px;} @page {margin-top:10px;}}'
371
+        if(this.org_id == 10188 || this.org_id == 10217 || this.org_id == 10340){
372
+          printJS({
373
+            printable: 'print_content',
374
+            type: 'html',
375
+            documentTitle: '  ',
376
+            style: style1,
377
+            scanStyles: false
378
+          })
379
+        }else{
380
+          printJS({
381
+            printable: 'print_content',
382
+            type: 'html',
383
+            documentTitle: '  ',
384
+            style: style,
385
+            scanStyles: false
386
+          })
387
+        }
388
+        
389
+      }, getSchedulesType: function(type) {
390
+        let type_name = ''
391
+        switch (type) {
392
+          case 1:
393
+            type_name = '上午'
394
+            break
395
+          case 2:
396
+            type_name = '下午'
397
+            break
398
+          case 3:
399
+            type_name = '晚上'
400
+            break
401
+        }
402
+        return type_name
403
+      },
404
+      getCurrentDate: function () {
405
+        console.log(this.$route.query.week_type)
406
+        var myDate = new Date();
407
+        var year = myDate.getFullYear(); //年
408
+        var month = myDate.getMonth() + 1; //月
409
+        var day = myDate.getDate() + 7; //日
410
+        var newday = myDate.getDay();
411
+        var days = parseInt(this.$route.query.week_type);
412
+        var dayNum = parseInt(this.$route.query.week_type);
413
+        switch(days) {
414
+          case 1:
415
+            days = '星期一';
416
+            break;
417
+          case 2:
418
+            days = '星期二';
419
+            break;
420
+          case 3:
421
+            days = '星期三';
422
+            break;
423
+          case 4:
424
+            days = '星期四';
425
+            break;
426
+          case 5:
427
+            days = '星期五';
428
+            break;
429
+          case 6:
430
+            days = '星期六';
431
+            break;
432
+          case 7:
433
+            days = '星期日';
434
+            break;
435
+        }
436
+        if(newday > dayNum){
437
+          let lastDay = day - (newday - dayNum)
438
+          console.log("lastDay1",lastDay)
439
+          var str = year + "年" + month + "月" + lastDay + "日  " + days;
440
+          return str;
441
+        }else if(newday < dayNum){
442
+          let lastDay = day + (dayNum - newday)
443
+          console.log("lastDay2",lastDay)
444
+          var str = year + "年" + month + "月" + lastDay + "日  " + days;
445
+          return str;
446
+        }else{
447
+          var str = year + "年" + month + "月" + day + "日  " + days;
448
+          return str;
449
+        }
450
+
451
+
452
+      },
453
+
454
+       compare(property) {
455
+       return function (a, b) {
456
+          var value1 = a[property];
457
+          var value2 = b[property];
458
+          return value1 - value2;
459
+      }
460
+     },
461
+     getTime(val) {
462
+         if(val == ""){
463
+          return ""
464
+         }else {
465
+          return uParseTime(val, '{y}-{m}-{d}')
466
+         }
467
+      },
468
+    getAnticoagulant(name){
469
+     
470
+      if(name == 0){
471
+         name = ""
472
+       }
473
+       if(name == 1){
474
+         name = "无肝素"
475
+       }
476
+       if(name == 2){
477
+         name = "普通肝素"
478
+       }
479
+       if(name == 3){
480
+         name ="低分子肝素"
481
+       }
482
+
483
+       if(name == 4){
484
+         name = "阿加曲班"
485
+       }
486
+        if(name == 5){
487
+         name = "枸橼酸钠"
488
+       }
489
+        if(name == 6){
490
+         name = "低分子肝素钙"
491
+       }
492
+        if(name == 7){
493
+         name = "低分子肝素钠"
494
+       }
495
+
496
+       return name
497
+     },
498
+     getAnticoagulantZonliang(arr,mode_id){
499
+       var name = 0
500
+       if(arr.length > 0){
501
+         for(let i=0;i<arr.length;i++){
502
+          if(mode_id == arr[i].mode_id){
503
+            name = arr[i].anticoagulant_zongliang
504
+          }
505
+        } 
506
+       }
507
+       return name
508
+     }
509
+    }
510
+  }
511
+</script>
512
+
513
+<style rel="stylesheet/scss" lang="scss" scoped>
514
+.print_main_content {
515
+  background-color: white;
516
+  max-width: 1500px;
517
+  margin: 0 auto;
518
+  padding: 0 0 20px 0;
519
+
520
+  .order_title_panl {
521
+    text-align: center;
522
+
523
+    .main_title {
524
+      font-size: 18px;
525
+      line-height: 40px;
526
+      font-weight: 500;
527
+    }
528
+  }
529
+  .table_panel {
530
+    .table {
531
+      width: 100%;
532
+      border: 1px solid;
533
+      border-collapse: collapse;
534
+      padding: 2px;
535
+
536
+      thead {
537
+        tr {
538
+          td {
539
+            border: 1px solid;
540
+            text-align: center;
541
+            font-size: 20px;
542
+            padding: 15px 5px;
543
+          }
544
+        }
545
+      }
546
+      tbody {
547
+        tr {
548
+          td {
549
+            border: 1px solid;
550
+            text-align: center;
551
+            font-size: 18px;
552
+            padding: 10px 5px;
553
+
554
+            .proj {
555
+              padding: 5px 0;
556
+              text-align: left;
557
+
558
+              .proj_title {
559
+                font-size: 16px;
560
+                font-weight: 500;
561
+                line-height: 25px;
562
+              }
563
+
564
+              .proj_item {
565
+                font-size: 15px;
566
+                line-height: 20px;
567
+
568
+                .zone_name {
569
+                  font-weight: 500;
570
+                }
571
+              }
572
+            }
573
+          }
574
+        }
575
+      }
576
+    }
577
+  }
578
+}
579
+.signPrint{
580
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
581
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
582
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
583
+  margin-bottom: 20px;
584
+  padding: 20px 10px;
585
+}
586
+.printCell{
587
+  span{
588
+    display: inline-block;
589
+    width: 180px;
590
+  }
591
+}
592
+</style>

+ 35 - 3
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Näytä tiedosto

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432"  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>
@@ -682,7 +682,21 @@ export default {
682 682
       default: () => {
683 683
         return { id: 0 }
684 684
       }
685
-    }
685
+    },
686
+     prescription: {
687
+      // 透析记录
688
+      type: Object,
689
+      default: () => {
690
+        return { id: 0 }
691
+      }
692
+    },
693
+    predialysis_evaluation: {
694
+      // 透析记录
695
+      type: Object,
696
+      default: () => {
697
+        return { id: 0 }
698
+      }
699
+    },
686 700
   },
687 701
   data() {
688 702
     return {
@@ -1179,7 +1193,7 @@ export default {
1179 1193
 
1180 1194
     // 数据开始
1181 1195
     show(predialysis,last_after) {
1182
-      console.log("predialysis",predialysis)
1196
+      console.log("透后体重2332233223wo",predialysis)
1183 1197
       this.isVisibility = true
1184 1198
       this.predialysis = predialysis
1185 1199
       this.form.observation_content = predialysis.observation_content
@@ -1197,6 +1211,17 @@ export default {
1197 1211
       if(predialysis.id > 0){
1198 1212
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1199 1213
       }
1214
+     
1215
+      //针对长沙南雅 ,透后体重 - 目标超滤量
1216
+      // if(predialysis.id > 0){
1217
+      //  if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340){
1218
+      //    if(predialysis.weight_after == 0){
1219
+      //      if(this.predialysis_evaluation!=null && this.prescription.target_ultrafiltration!=null){
1220
+      //        this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1221
+      //      }  
1222
+      //    }
1223
+      //  }
1224
+      // }
1200 1225
 
1201 1226
 
1202 1227
 
@@ -1223,6 +1248,13 @@ export default {
1223 1248
         if(last_after.id > 0){
1224 1249
           this.form.hypopiesia = last_after.hypopiesia.toString()
1225 1250
         }
1251
+        //针对长沙南雅 ,透后体重 - 目标超滤量
1252
+        // if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340){
1253
+        //    if(this.prescription!=null && this.predialysis_evaluation!=null){
1254
+        //     this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1255
+        //    }
1256
+          
1257
+        // }
1226 1258
       }
1227 1259
 
1228 1260
 

+ 48 - 12
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Näytä tiedosto

@@ -290,7 +290,7 @@
290 290
           </template>
291 291
         </el-table-column>
292 292
         <el-table-column
293
-          v-if="template_id != 6"
293
+          v-if="template_id != 6 && org_id!=10223"
294 294
           prop="checker"
295 295
           min-width="30px"
296 296
           align="center"
@@ -591,6 +591,7 @@
591 591
       :patientID="patient.id"
592 592
       :adviceTableData="doctor_advices"
593 593
       :recordDate="record_date"
594
+      :schedulePatient="schedulePatient"
594 595
       ref="addGroupForm"
595 596
     ></add-group-advice>
596 597
 
@@ -623,7 +624,8 @@
623 624
     EditDoctorAdvice,
624 625
     ExecDoctorAdvice,
625 626
     getAdviceConfig,
626
-    GetLastOrNextDoctorAdvice
627
+    GetLastOrNextDoctorAdvice,
628
+    getPatientSchedule
627 629
   } from '@/api/advice'
628 630
   import { getDataConfig } from '@/utils/data'
629 631
 
@@ -780,6 +782,7 @@
780 782
         drug_id: 0,
781 783
         src_type:"",
782 784
         org_id:0,
785
+        schedulePatient:{},
783 786
       }
784 787
     },
785 788
     watch: {
@@ -954,6 +957,12 @@
954 957
               this.showAdviceForm = false
955 958
               this.showAdvicePanel = true
956 959
               var advice = response.data.data.advice
960
+              var single_dose_unit = ""
961
+              if(advice.single_dose_unit > 0){
962
+                single_dose_unit = this.getUnit(advice.single_dose_unit)
963
+              }else{
964
+                single_dose_unit = advice.single_dose_unit
965
+              }
957 966
               this.doctor_advices[this.currentIndex].drug_spec = advice.drug_spec
958 967
               this.doctor_advices[this.currentIndex].drug_spec_unit =
959 968
                 advice.drug_spec_unit
@@ -965,8 +974,7 @@
965 974
                 advice.advice_desc
966 975
               this.doctor_advices[this.currentIndex].single_dose =
967 976
                 advice.single_dose
968
-              this.doctor_advices[this.currentIndex].single_dose_unit =
969
-                advice.single_dose_unit
977
+              this.doctor_advices[this.currentIndex].single_dose_unit = single_dose_unit
970 978
               this.doctor_advices[this.currentIndex].delivery_way =
971 979
                 advice.delivery_way
972 980
               this.doctor_advices[this.currentIndex].execution_frequency =
@@ -1660,12 +1668,12 @@
1660 1668
           this.$message.error('你没有执行医嘱的权限')
1661 1669
           return false
1662 1670
         }
1663
-        if(this.org_id == 9675 || this.org_id ==10340 ){
1664
-           if(this.currentRow.checker == 0){
1665
-              this.$message.error("请先核对医嘱")
1666
-              return
1667
-           }
1668
-        }
1671
+        // if(this.org_id == 9671){
1672
+        //    if(this.currentRow.checker == 0){
1673
+        //       this.$message.error("请先核对医嘱")
1674
+        //       return
1675
+        //    }
1676
+        // }
1669 1677
         this.execTimeDialogVisible = true
1670 1678
         if (this.current_select_object == 1) {
1671 1679
           var isExecution = true
@@ -2559,14 +2567,41 @@
2559 2567
        console.log("this.form.drug_id",this.form.drug_id)
2560 2568
 
2561 2569
        // this.form.id = tmp.id
2562
-     }
2570
+     },
2571
+     getPatientSchedule(){
2572
+        var params = {
2573
+          patient_id:this.$route.query.patient_id,
2574
+          schedule_date:this.$route.query.date,
2575
+        }
2576
+       getPatientSchedule(params).then(response=>{
2577
+           if(response.data.state == 1){
2578
+              var schedulePatient = response.data.data.schedulePatient
2579
+              console.log("schedulePatient23332322323wo",schedulePatient)
2580
+              this.schedulePatient = schedulePatient
2581
+           }
2582
+       })
2583
+     },
2584
+      getDataConfig(module, filed_name) {
2585
+        return getDataConfig(module, filed_name)
2586
+      },
2587
+      getUnit(id){
2588
+         var name = ""
2589
+         for(let i=0;i<this.unitsOption.length;i++){
2590
+           if(id == this.unitsOption[i].id){
2591
+              name = this.unitsOption[i].name
2592
+           }
2593
+         }
2594
+         console.log("nam e23233232322323wo",name)
2595
+         return name
2596
+      }
2563 2597
     },
2564 2598
     created() {
2599
+    
2565 2600
       var date = this.$route.query && this.$route.query.date
2566 2601
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
2567 2602
       this.form.advice_date = this.record_date
2568 2603
       this.getAdviceConfig()
2569
-      this.unitsOption = getDataConfig('hemodialysis', 'units')
2604
+      this.unitsOption = this.getDataConfig('hemodialysis', 'units')
2570 2605
       this.template_id = this.$store.getters.xt_user.template_info.template_id
2571 2606
       this.org_id = this.$store.getters.xt_user.org.id
2572 2607
       this.patientid = this.$route.query.patient_id
@@ -2576,6 +2611,7 @@
2576 2611
       // this.getDialysisScheduleDetail()
2577 2612
        //获取自备药
2578 2613
       this.getSelfMedicalList()
2614
+      this.getPatientSchedule()
2579 2615
     },
2580 2616
     components: {
2581 2617
       AddGroupAdvice,

+ 17 - 5
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Näytä tiedosto

@@ -72,6 +72,21 @@
72 72
         <el-input v-model="receiveTreatmentAsses.admission_number"></el-input>
73 73
       </el-form-item>
74 74
 
75
+      <el-form-item
76
+        label="住院科室 : "
77
+        v-if="isShow('住院科室')&&this.receiveTreatmentAsses.condition == '1'"
78
+      >
79
+        <el-input v-model="receiveTreatmentAsses.his_department"></el-input>
80
+      </el-form-item>
81
+      
82
+      <el-form-item
83
+        label="住院床位 : "
84
+        v-if="isShow('住院床位')&&this.receiveTreatmentAsses.condition == '1'"
85
+      >
86
+        <el-input v-model="receiveTreatmentAsses.his_bed"></el-input>
87
+      </el-form-item>
88
+      
89
+
75 90
       <el-form-item
76 91
         label="诊断:" v-if="isShow('诊断') && this.receiveTreatmentAsses.condition == '1'"
77 92
       >
@@ -86,11 +101,6 @@
86 101
           v-model="receiveTreatmentAsses.posture"
87 102
           >{{ item.name }}
88 103
         </el-radio>
89
-        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="1">自动体位</el-radio>-->
90
-        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="2">平卧位</el-radio>-->
91
-        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="3">半卧位</el-radio>-->
92
-        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="4">端坐位</el-radio>-->
93
-        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="5">躁动不安</el-radio>-->
94 104
       </el-form-item>
95 105
 
96 106
       <el-form-item label="病情: " v-if="isShow('病情')">
@@ -295,6 +305,8 @@ export default {
295 305
         admission_number: "",
296 306
         diacrisis:"",
297 307
         tumble:"",
308
+        his_department:"",
309
+        his_bed:"",
298 310
       },
299 311
       precautionTwo: []
300 312
     };

+ 59 - 6
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Näytä tiedosto

@@ -161,8 +161,10 @@
161 161
                 <template slot-scope="scope">
162 162
 <!--                  //从1到20-->
163 163
                   <span v-if="scope.row.single_dose != 0" @click="lili(scope.row)">
164
-<!--                    {{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}-->
165
-                    <span v-if="scope.row.single_dose_unit == 1" >{{ scope.row.single_dose}}g</span>
164
+                   {{ scope.row.single_dose}}
165
+                   <span v-if="scope.row.single_dose_unit >0"> {{getUnit(scope.row.single_dose_unit )}}</span> 
166
+                   <span v-else>{{ scope.row.single_dose_unit }}</span> 
167
+                    <!-- <span v-if="scope.row.single_dose_unit == 1" >{{ scope.row.single_dose}}g</span>
166 168
                     <span v-else-if="scope.row.single_dose_unit == 2" >{{ scope.row.single_dose}}mg</span>
167 169
                     <span v-else-if="scope.row.single_dose_unit == 3" >{{ scope.row.single_dose}}u</span>
168 170
                     <span v-else-if="scope.row.single_dose_unit == 4" >{{ scope.row.single_dose}}ml</span>
@@ -182,7 +184,7 @@
182 184
                     <span v-else-if="scope.row.single_dose_unit == 18" >{{ scope.row.single_dose}}瓶</span>
183 185
                     <span v-else-if="scope.row.single_dose_unit == 19" >{{ scope.row.single_dose}}瓶(袋)</span>
184 186
                     <span v-else-if="scope.row.single_dose_unit == 20" >{{ scope.row.single_dose}}次</span>
185
-                    <span v-else >{{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}</span>
187
+                    <span v-else >{{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}</span> -->
186 188
                   </span>
187 189
 
188 190
 
@@ -569,7 +571,7 @@ import {
569 571
   getDoctorAdviceList,
570 572
   StopDoctorAdvice
571 573
 } from "@/api/advice";
572
-
574
+import { getDataConfig } from '@/utils/data'
573 575
 import {getSelfMedicalList,getDrugDescByDrugName } from "@/api/drug/drug"
574 576
 import { duration } from 'moment';
575 577
 export default {
@@ -653,6 +655,7 @@ export default {
653 655
       drug_name_id:"",
654 656
       src_type:"",
655 657
       private_drug_config:{},
658
+      units:[],
656 659
     };
657 660
   },
658 661
   props: {
@@ -706,7 +709,12 @@ export default {
706 709
         return { id: 0 }
707 710
       }
708 711
     },
709
-
712
+    schedulePatient:{
713
+      type: Object,
714
+      default: () => {
715
+        return { id: 0 }
716
+      }
717
+    }
710 718
   },
711 719
   methods: {
712 720
     lili(val){
@@ -1551,6 +1559,37 @@ export default {
1551 1559
           this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
1552 1560
         }
1553 1561
       }
1562
+      
1563
+      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340){
1564
+         var date = new Date()
1565
+          var year = date.getFullYear()
1566
+          var month = date.getMonth() + 1
1567
+          var day = date.getDate()
1568
+
1569
+          var hours = date.getHours()
1570
+          var minites = date.getMinutes()
1571
+
1572
+          if (month < 10) {
1573
+            month = '0' + month
1574
+          }
1575
+          if (day < 10) {
1576
+            day = '0' + day
1577
+          }
1578
+          if (hours < 10) {
1579
+            hours = '0' + hours
1580
+          }
1581
+          if (minites < 10) {
1582
+            minites = '0' + minites
1583
+          }
1584
+          if (this.schedulePatient.schedule_type == 1) {
1585
+            this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
1586
+          } else if (this.schedulePatient.schedule_type == 2) {
1587
+            this.groupForm.start_time= year + '-' + month + '-' + day + ' ' + '11:00'
1588
+          } else if (this.schedulePatient.schedule_type == 3) {
1589
+           this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
1590
+          }
1591
+      }
1592
+
1554 1593
     },
1555 1594
     selectAllTemplateAdvice(selection) {
1556 1595
       console.log("params",selection)
@@ -1766,6 +1805,18 @@ export default {
1766 1805
       },
1767 1806
       handleSelect1(){
1768 1807
 
1808
+      },
1809
+      getDataConfig(module, filed_name) {
1810
+        return getDataConfig(module, filed_name)
1811
+      },
1812
+      getUnit(id){
1813
+         var name = ""
1814
+         for(let i=0;i<this.units.length;i++){
1815
+           if(id == this.units[i].id){
1816
+              name = this.units[i].name
1817
+           }
1818
+         }
1819
+         return name
1769 1820
       }
1770 1821
   },
1771 1822
   watch: {
@@ -1774,7 +1825,9 @@ export default {
1774 1825
     }
1775 1826
   },
1776 1827
   created(){
1777
-    //获取自备药
1828
+    this.units =  this.getDataConfig('hemodialysis','units')
1829
+    console.log("单位32322323232我的",this.units)
1830
+   //获取自备药
1778 1831
     this.getSelfMedicalList()
1779 1832
 
1780 1833
   }

+ 30 - 3
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Näytä tiedosto

@@ -149,10 +149,13 @@
149 149
                 align="center"
150 150
               >
151 151
                 <template slot-scope="scope">
152
-                  <span v-if="scope.row.single_dose != 0"
152
+                  <!-- <span v-if="scope.row.single_dose != 0"
153 153
                     >{{ scope.row.single_dose
154 154
                     }}{{ scope.row.single_dose_unit }}</span
155
-                  >
155
+                  > -->
156
+                 {{ scope.row.single_dose}}
157
+                <span v-if="scope.row.single_dose_unit >0"> {{getUnit(scope.row.single_dose_unit )}}</span> 
158
+                <span v-else>{{ scope.row.single_dose_unit }}</span> 
156 159
                 </template>
157 160
               </el-table-column>
158 161
               <el-table-column
@@ -276,6 +279,7 @@
276 279
                   >{{ scope.row.single_dose
277 280
                   }}{{ scope.row.single_dose_unit }}</span
278 281
                 >
282
+               
279 283
               </template>
280 284
             </el-table-column>
281 285
             <el-table-column
@@ -574,6 +578,7 @@ import {
574 578
   StopDoctorAdvice,
575 579
   SaveEditAdvices
576 580
 } from "@/api/advice";
581
+import { getDataConfig } from '@/utils/data'
577 582
 import { jsGetAge, uParseTime } from "@/utils/tools";
578 583
 import { getSelfMedicalList,getDrugDescByDrugName } from "@/api/drug/drug"
579 584
 export default {
@@ -658,6 +663,7 @@ export default {
658 663
       drug_id: 0,
659 664
       src_type:"",
660 665
       drug_name_id:0,
666
+      units:[],
661 667
     };
662 668
   },
663 669
   props: {
@@ -896,6 +902,13 @@ export default {
896 902
       this.$refs[formName].validate(valid => {
897 903
         if (valid) {
898 904
           if (_this.nameForm.isEdit) {
905
+            var single_dose_unit = ""
906
+            if(_this.nameForm.single_dose_unit > 0){
907
+               single_dose_unit = this.getUnit(_this.nameForm.single_dose_unit)
908
+            }else{
909
+              single_dose_unit = _this.nameForm.single_dose_unit
910
+            }
911
+            console.log("single_dose_unit332323223",single_dose_unit)
899 912
             var submitForm = {
900 913
               advice_type: _this.groupForm.advice_type,
901 914
               advice_date: _this.groupForm.advice_date,
@@ -904,7 +917,7 @@ export default {
904 917
               advice_name: _this.nameForm.advice_name,
905 918
               advice_desc: _this.nameForm.advice_desc,
906 919
               single_dose: "" + _this.nameForm.single_dose,
907
-              single_dose_unit: _this.nameForm.single_dose_unit,
920
+              single_dose_unit: single_dose_unit,
908 921
               drug_spec: "" + _this.nameForm.drug_spec,
909 922
               drug_spec_unit: _this.nameForm.drug_spec_unit,
910 923
               prescribing_number: "" + _this.nameForm.prescribing_number,
@@ -2471,6 +2484,18 @@ export default {
2471 2484
         console.log('results',results)
2472 2485
         cb(results);
2473 2486
       },
2487
+     getDataConfig(module, filed_name) {
2488
+        return getDataConfig(module, filed_name)
2489
+    },
2490
+     getUnit(id){
2491
+         var name = ""
2492
+         for(let i=0;i<this.units.length;i++){
2493
+           if(id == this.units[i].id){
2494
+              name = this.units[i].name
2495
+           }
2496
+         }
2497
+         return name
2498
+      }
2474 2499
   },
2475 2500
   watch: {
2476 2501
     "selectedTemp.list": function() {
@@ -2478,6 +2503,8 @@ export default {
2478 2503
     }
2479 2504
   },
2480 2505
   created(){
2506
+    this.units =  this.getDataConfig('hemodialysis','units')
2507
+    console.log("32322323232我的",this.units)
2481 2508
      //获取自备药
2482 2509
     this.getSelfMedicalList()
2483 2510
   }

+ 31 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Näytä tiedosto

@@ -43,6 +43,19 @@
43 43
             </el-form-item>
44 44
           </el-col>
45 45
 
46
+          <el-col :span="8">
47
+            <el-form-item label="身高(cm):"
48
+                          v-if="isShow('身高')">
49
+              <el-input  v-model="assessmentBeforeDislysis.height"></el-input>
50
+            </el-form-item>
51
+          </el-col>
52
+
53
+          <el-col :span="8">
54
+            <el-form-item label="年龄(岁):" v-if="isShow('年龄')">
55
+              <el-input  v-model="assessmentBeforeDislysis.age" ></el-input>
56
+            </el-form-item>
57
+          </el-col>
58
+
46 59
           <el-col :span="8">
47 60
             <el-form-item label="衣物重(kg):" v-if="isShow('衣物重')">
48 61
               <el-input type="number" v-model="assessmentBeforeDislysis.additional_weight"></el-input>
@@ -553,13 +566,26 @@
553 566
             </el-form-item>
554 567
           </el-col>
555 568
 
569
+          <el-col :span="8" v-if="isShow('住院科室')">
570
+            <el-form-item label="住院科室:" label-width="150px">
571
+              <el-input v-model="assessmentBeforeDislysis.his_department"></el-input>
572
+            </el-form-item>
573
+          </el-col>
556 574
 
575
+         <el-col :span="8" v-if="isShow('住院床位')">
576
+            <el-form-item label="住院床位:" label-width="150px">
577
+              <el-input v-model="assessmentBeforeDislysis.his_bed"></el-input>
578
+            </el-form-item>
579
+          </el-col>
580
+          
581
+        
557 582
           <el-col :span="8">
558 583
             <el-form-item label="抽吸:" v-if="isShow('抽吸')">
559 584
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
560 585
             </el-form-item>
561 586
           </el-col>
562
-
587
+         
588
+        
563 589
  
564 590
          
565 591
           <el-col :span="24">
@@ -734,6 +760,10 @@
734 760
           urea_befor:"",
735 761
           suction:"",
736 762
           weight_befor_remake:"",
763
+          height:"",
764
+          age:"",
765
+          his_department:"",
766
+          his_bed:"",
737 767
         },
738 768
 
739 769
         InnerDialogProps: {

+ 270 - 14
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Näytä tiedosto

@@ -2,6 +2,13 @@
2 2
   <div>
3 3
     <el-dialog title="透析上机" class="newDialog" :visible.sync="visible" width="854px" :modal-append-to-body="false">
4 4
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
5
+
6
+      <multi-select-box
7
+        :propsForm="InnerDialogProps"
8
+        v-on:dialog-comfirm="innerDialogComfirm"
9
+        v-on:dialog-cancle="innerDialogCancle"
10
+      ></multi-select-box>
11
+
5 12
       <el-form :model="form" label-width="100px">
6 13
 
7 14
         <el-form-item label="班次" v-if="isShowFiled('班次')">
@@ -26,6 +33,12 @@
26 33
             <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
27 34
           </el-select>
28 35
         </el-form-item>
36
+        
37
+        <el-form-item label="质控护士"  v-if="isShowFiled('质控护士')">
38
+          <el-select v-model="form.quality_nurse_id" placeholder="请选择质控护士">
39
+            <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
40
+          </el-select>
41
+        </el-form-item>
29 42
 
30 43
         <el-form-item label="换药护士"  v-if="isShowFiled('换药护士')">
31 44
           <el-select v-model="form.change_nurse" placeholder="换药护士">
@@ -53,10 +66,79 @@
53 66
         </el-form-item>
54 67
 
55 68
 
69
+
70
+
56 71
         <el-form-item label="引血(ml/min)" v-if="isShowFiled('引血')">
57 72
           <el-input type="number" v-model="form.blood_drawing" style="width:200px;"></el-input>
58 73
         </el-form-item>
59 74
 
75
+       
76
+       
77
+        <el-form-item label="穿刺针" v-if="isShowFiled('穿刺针')">
78
+            <el-input v-model="form.puncture_needle"
79
+                      @focus="showInnerDialog('11')" style="width:200px;"></el-input>
80
+        </el-form-item>
81
+
82
+      
83
+       <el-form-item label="穿刺方式: " v-if="isShowFiled('穿刺方式')">
84
+          <el-input v-model="form.puncture_way" readonly 
85
+           style="width:200px;"
86
+                  @focus="showInnerDialog('13')">
87
+          </el-input>
88
+        </el-form-item>
89
+
90
+     
91
+      
92
+        <el-form-item label="透析器:" v-if="isShowFiled('透析器')">
93
+            <el-input v-model="form.dialysis_dialyszers"
94
+             style="width:200px;"
95
+                      @focus="showInnerDialog('7')"></el-input>
96
+        </el-form-item>
97
+       
98
+         <el-form-item label="灌流器:" v-if="isShowFiled('灌流器')">
99
+            <el-input v-model="form.dialysis_irrigation"
100
+             style="width:200px;"
101
+                      @focus="showInnerDialog('8')"></el-input>
102
+        </el-form-item>
103
+      
104
+        <el-form-item label="血管通路:"  v-if="isShowFiled('血管通路')">
105
+            <el-select
106
+                    v-model="form.blood_access_id"
107
+                    placeholder="请选择"
108
+            >
109
+                <el-option :key="0" label="请选择" :value="0"></el-option>
110
+
111
+                <el-option
112
+                        v-for="(option, index) in blood_access_option"
113
+                        :key="index + 'i'"
114
+                        :label="option.name"
115
+                        :value="option.id"
116
+                ></el-option>
117
+            </el-select>
118
+       </el-form-item>
119
+
120
+       <el-form-item label="核酸检测日期:" style="width:300px"  v-if="isShowFiled('核酸检测日期')">
121
+          <el-date-picker
122
+            type="date"
123
+            format="yyyy-MM-dd"
124
+            value-format="yyyy-MM-dd"
125
+            placeholder="选择时间"
126
+            v-model="form.nuclein_date"
127
+            style="width:100%;"
128
+          ></el-date-picker>
129
+        </el-form-item>
130
+
131
+      
132
+        <el-form-item label="上机备注:" style="width:300px"  v-if="isShowFiled('上机备注')">
133
+          <el-input style="width:200px" v-model="form.order_remark"></el-input>
134
+        </el-form-item>
135
+
136
+         <el-form-item label="排班备注:" style="width:300px"  v-if="isShowFiled('排班备注')">
137
+          <el-input style="width:200px" v-model="form.schedule_remark"></el-input>
138
+        </el-form-item>
139
+
140
+
141
+
60 142
         <el-form-item label="上机时间 :" style="width:300px"  v-if="isShowFiled('上机时间')">
61 143
           <el-date-picker
62 144
             type="datetime"
@@ -67,6 +149,7 @@
67 149
             style="width:100%;"
68 150
           ></el-date-picker>
69 151
         </el-form-item>
152
+
70 153
         <el-form-item>
71 154
           <el-button v-if="dialysis_order.id == 0" @click="submit" type="primary" :loading="loading">执行上机</el-button>
72 155
           <el-button v-else type="info" :disabled="true">已上机</el-button>
@@ -85,13 +168,18 @@
85 168
 <script>
86 169
   import axios from 'axios'
87 170
   import { GetSchedualNumber, PostModifyStartDialysis, startDialysis } from '@/api/dialysis_record'
171
+  import { uParseTime } from '@/utils/tools'
172
+  import { getDataConfig } from '@/utils/data'
88 173
   import { parseTime } from '@/utils'
89 174
   import store from '@/store'
90
-
175
+  import multiSelectBox from './MultiSelectBox'
91 176
   import request from '@/utils/request'
92
-
177
+  const moment = require('moment')
93 178
   export default {
94 179
     name: 'ComputerDialog',
180
+    components: {
181
+      multiSelectBox
182
+    },
95 183
     data() {
96 184
       return {
97 185
         showTxt:'',
@@ -114,7 +202,17 @@
114 202
           change_nurse:"",
115 203
           difficult_puncture_nurse:"",
116 204
           new_fistula_nurse:"",
205
+          quality_nurse_id:"",
206
+          puncture_needle:"",
207
+          puncture_way:"",
208
+          dialysis_dialyszers:"",
209
+          dialysis_irrigation:"",
210
+          blood_access_id:"",
211
+          nuclein_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
212
+          schedule_remark:"",
213
+          order_remark:"",
117 214
         },
215
+        blood_access_option:[],
118 216
         schedual_type: 0,
119 217
         schedules_type: [
120 218
           { id: 1, name: '上午' },
@@ -123,7 +221,19 @@
123 221
         ], // 该排班的区里的床位
124 222
         isPremission: false,
125 223
         adminRoles:[{id:0,name:"请选择"}],
126
-        org_id:0
224
+        org_id:0,
225
+        punctureNeedleOptions:[],
226
+        puncture_ways:[],
227
+        InnerDialogProps: {
228
+          values: [],
229
+          visibility: false,
230
+          isShowTextArea: true,
231
+          customContent: '',
232
+          titles: '',
233
+          type: '' // 不同弹框类型,用来匹配数据
234
+        },
235
+        dialyzers:[],
236
+        irrigations:[],
127 237
       }
128 238
     },
129 239
     props: {
@@ -144,7 +254,16 @@
144 254
       },
145 255
       patient:{
146 256
         type: Object
147
-      }
257
+      },
258
+      stockType: {
259
+        type: Array,
260
+        default: () => {
261
+          return []
262
+        }
263
+      },
264
+      lastOrder:{
265
+        type: Object
266
+      },
148 267
     }, mounted() {
149 268
 
150 269
     },
@@ -157,7 +276,7 @@
157 276
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
158 277
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
159 278
       this.form.washpipe_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.washpipe_nurse
160
-
279
+  
161 280
 
162 281
       if (this.form.puncture_nurse_id == 0) {
163 282
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
@@ -177,6 +296,22 @@
177 296
       if(this.form.new_fistula_nurse == 0){
178 297
         this.form.new_fistula_nurse = this.$store.getters.xt_user.user.id
179 298
       }
299
+      console.log("dialysis_order9999999999wo",this.dialysis_order)
300
+      this.form.puncture_needle = this.dialysis_order.puncture_needle
301
+      this.form.puncture_way = this.dialysis_order.puncture_way
302
+      this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers
303
+      this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
304
+      this.form.blood_access_id = this.dialysis_order.blood_access_id
305
+      this.form.schedule_remark = this.dialysis_order.schedule_remark
306
+      this.form.order_remark = this.dialysis_order.order_remark
307
+      this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
308
+      this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
309
+      this.blood_access_option = getDataConfig(
310
+          'hemodialysis',
311
+          'vascular_access_desc'
312
+        )
313
+      this.form.schedule_remark = this.dialysis_order.schedule_remark
314
+      this.form.order_remark = this.dialysis_order.order_remark
180 315
     },
181 316
     watch: {
182 317
       patient:{
@@ -195,7 +330,15 @@
195 330
         this.form.change_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.change_nurse
196 331
         this.form.difficult_puncture_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id:this.dialysis_order.difficult_puncture_nurse
197 332
         this.form.new_fistula_nurse = this.dialysis_order.id ==0?this.$store.getters.xt_user.user.id:this.dialysis_order.new_fistula_nurse
198
-
333
+        this.form.quality_nurse_id = this.dialysis_order.id == 0?this.$store.getters.xt_user.user.id:this.dialysis_order.quality_nurse_id
334
+        this.form.puncture_needle = this.dialysis_order.puncture_needle
335
+        this.form.puncture_way = this.dialysis_order.puncture_way
336
+        this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers
337
+        this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
338
+        this.form.blood_access_id = this.dialysis_order.blood_access_id
339
+        this.form.nuclein_date = this.dialysis_order.id == 0?this.getTimeOne(this.lastOrder.nuclein_date): this.getTimeOne(this.dialysis_order.nuclein_date)
340
+        this.form.schedule_remark = this.dialysis_order.id == 0?this.lastOrder.schedule_remark:this.dialysis_order.schedule_remark
341
+        this.form.order_remark = this.dialysis_order.id == 0?this.lastOrder.order_remark:this.dialysis_order.order_remark
199 342
         var nowDate = new Date()
200 343
         var nowYear = nowDate.getFullYear()
201 344
         var nowMonth = nowDate.getMonth() + 1
@@ -220,7 +363,36 @@
220 363
           }
221 364
         }
222 365
         console.log("人员",this.adminRoles)
223
-      }
366
+      },
367
+        stockType: function() {
368
+        console.log('stockType', this.stockType)
369
+        var arr = []
370
+        var arrTwo = []
371
+        for (let i = 0; i < this.stockType.length; i++) {
372
+          if (this.stockType[i].stock_attribute == 2) {
373
+            arr.push(this.stockType[i])
374
+          }
375
+          if (this.stockType[i].stock_attribute == 3) {
376
+            arrTwo.push(this.stockType[i])
377
+          }
378
+        }
379
+        var dialyzator = []
380
+        var irrigation = []
381
+        for (let i = 0; i < arr.length; i++) {
382
+          for (let j = 0; j < arr[i].GoodInfo.length; j++) {
383
+            dialyzator.push(arr[i].GoodInfo[j])
384
+          }
385
+        }
386
+        this.dialyzers = dialyzator
387
+
388
+        for (let i = 0; i < arrTwo.length; i++) {
389
+          for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
390
+            irrigation.push(arrTwo[i].GoodInfo[j])
391
+          }
392
+        }
393
+        this.irrigations = irrigation
394
+       
395
+      },
224 396
     },
225 397
     computed: {},
226 398
     methods: {
@@ -306,9 +478,16 @@
306 478
         }
307 479
         return ''
308 480
       },
309
-      show: function(dialysis) {
481
+      getTimeOne(val) {
482
+      if(val == ""){
483
+      return ""
484
+      }else {
485
+      return uParseTime(val, '{y}-{m}-{d}')
486
+      }
487
+    },
488
+      show: function(dialysis,lastOrder) {
310 489
         this.record = dialysis
311
-        console.log("上机",dialysis)
490
+     
312 491
         this.getPermission()
313 492
         this.visible = true
314 493
 
@@ -319,7 +498,9 @@
319 498
         var nowHours = nowDate.getHours()
320 499
         var nowMinutes = nowDate.getMinutes()
321 500
         var nowSeconds = nowDate.getSeconds()
322
-
501
+        this.form.nuclein_date = this.dialysis_order.id == 0?this.getTimeOne(lastOrder.nuclein_date): this.getTimeOne(this.dialysis_order.nuclein_date)
502
+        this.form.schedule_remark = this.dialysis_order.id == 0?this.lastOrder.schedule_remark: this.dialysis_order.schedule_remark
503
+        this.form.order_remark = this.dialysis_order.id == 0?this.lastOrder.order_remark: this.dialysis_order.order_remark
323 504
         if (this.dialysis_order.id != 0) {
324 505
           this.form.start_time = this.getTime(this.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}')
325 506
         } else {
@@ -344,6 +525,7 @@
344 525
           } else if (hour >= 18) {
345 526
             this.schedual_type = 3
346 527
           }
528
+         
347 529
         } else {
348 530
 
349 531
           this.schedual_type = this.dialysis_order.schedual_type
@@ -372,7 +554,10 @@
372 554
         this.loading = true
373 555
         let mode = '1'
374 556
         var blood_drawing =  this.form.blood_drawing.toString()
375
-        startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing).then(rs => {
557
+        console.log("质控护士",this.form.quality_nurse_id)
558
+        console.log("this.form.nuclein_date",this.form.nuclein_date)
559
+       
560
+        startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing,this.form.quality_nurse_id,this.form.puncture_needle,this.form.puncture_way,this.form.dialysis_dialyszers,this.form.dialysis_irrigation,this.form.blood_access_id,this.form.nuclein_date,this.form.schedule_remark,this.form.order_remark).then(rs => {
376 561
           this.loading = false
377 562
           var resp = rs.data
378 563
           if (resp.state == 1) {
@@ -407,7 +592,16 @@
407 592
         ParamsQuery['difficult_puncture_nurse'] = this.form.difficult_puncture_nurse
408 593
         ParamsQuery['new_fistula_nurse'] = this.form.new_fistula_nurse
409 594
         ParamsQuery["blood_drawing"] = this.form.blood_drawing
595
+        ParamsQuery["quality_nurse"] = this.form.quality_nurse_id
596
+        ParamsQuery["puncture_needle"] = this.form.puncture_needle
597
+        ParamsQuery["puncture_way"] = this.form.puncture_way
598
+        ParamsQuery["dialysis_dialyszers"] = this.form.dialysis_dialyszers
599
+        ParamsQuery["dialysis_irrigation"] = this.form.dialysis_irrigation
600
+        ParamsQuery["blood_access_id"] = this.form.blood_access_id
601
+        ParamsQuery["nuclein_date"] = this.form.nuclein_date
410 602
         ParamsQuery['mode'] = "2"
603
+        ParamsQuery["schedule_remark"] = this.form.schedule_remark
604
+        ParamsQuery["order_remark"] = this.form.order_remark
411 605
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
412 606
           ParamsQuery['mode'] = "3"
413 607
         }
@@ -415,7 +609,7 @@
415 609
           var resp = rs.data
416 610
           if (resp.state == 1) {
417 611
             this.$message.success('修改成功')
418
-
612
+            this.hide()
419 613
             var resp_dialysis_order = resp.data.dialysis_order
420 614
             var this_order = this.dialysis_order
421 615
             for (const key in resp_dialysis_order) {
@@ -463,8 +657,70 @@
463 657
             }
464 658
           }
465 659
         })
466
-      }
467
-
660
+      },
661
+      showInnerDialog: function(val) {
662
+        console.log("val32323223232323wi",val)
663
+        this.InnerDialogProps.visibility = true
664
+        switch (val) {
665
+           case '7': // 透析器
666
+
667
+            for (let i = 0; i < this.dialyzers.length; i++) {
668
+              this.dialyzers[i].name = this.dialyzers[i].specification_name
669
+            }
670
+            this.InnerDialogProps.values = this.dialyzers
671
+            this.InnerDialogProps.titles = '透析器'
672
+            this.InnerDialogProps.type = 'dialyzers'
673
+            this.InnerDialogProps.selected = this.form.dialysis_dialyszers
674
+            this.InnerDialogProps.isShowTextArea = false
675
+            break
676
+          case '8':
677
+            for (let i = 0; i < this.irrigations.length; i++) {
678
+              this.irrigations[i].name = this.irrigations[i].specification_name
679
+            }
680
+            this.InnerDialogProps.values = this.irrigations
681
+            this.InnerDialogProps.titles = '灌流器'
682
+            this.InnerDialogProps.type = 'irrigations'
683
+            this.InnerDialogProps.selected = this.form.dialysis_irrigation
684
+            this.InnerDialogProps.isShowTextArea = false
685
+            break
686
+          case '11': //穿刺针
687
+
688
+            this.InnerDialogProps.values = this.punctureNeedleOptions
689
+            this.InnerDialogProps.titles = '穿刺针'
690
+            this.InnerDialogProps.type = 'puncture_needle'
691
+            this.InnerDialogProps.selected = this.form.puncture_needle
692
+            this.InnerDialogProps.isShowTextArea = false
693
+            break
694
+            case '13': // 穿刺方式
695
+            this.InnerDialogProps.values =  this.puncture_ways
696
+            this.InnerDialogProps.titles = '穿刺方式'
697
+            this.InnerDialogProps.type = 'puncture_way'
698
+            this.InnerDialogProps.selected = this.form.puncture_way
699
+            this.InnerDialogProps.isShowTextArea = false
700
+
701
+            break
702
+        }
703
+      },
704
+      innerDialogComfirm: function(val) {
705
+        this.InnerDialogProps.visibility = false
706
+         switch (val.type) {
707
+          case 'puncture_needle':
708
+            this.form.puncture_needle = val.value.join(',')
709
+            break
710
+          case 'puncture_way':
711
+            this.form.puncture_way = val.value.join(',')
712
+            break
713
+          case 'dialyzers':
714
+            this.form.dialysis_dialyszers = val.value.join(',')
715
+            break
716
+          case 'irrigations':
717
+            this.form.dialysis_irrigation = val.value.join(',')
718
+            break
719
+        }
720
+      },
721
+      innerDialogCancle: function() {
722
+        this.InnerDialogProps.visibility = false
723
+      },
468 724
     }
469 725
   }
470 726
 </script>

+ 373 - 49
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Näytä tiedosto

@@ -19,6 +19,7 @@
19 19
                     <el-col :span="8" v-if="isShows('透析模式')">
20 20
                         <el-form-item label="透析模式">
21 21
                             <el-select
22
+                                   filterable
22 23
                                     v-model="dialysisPrescription.mode_id"
23 24
                                     @change="changePrescription(dialysisPrescription.mode_id)"
24 25
                             >
@@ -60,6 +61,18 @@
60 61
                         </el-form-item>
61 62
                     </el-col>
62 63
 
64
+                   <el-col :span="8" v-if="isShows('置换流量') &&  this.$store.getters.xt_user.template_info.org_id != 10340">
65
+                        <el-form-item label="置换流量(L/h):">
66
+                            <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
67
+                        </el-form-item>
68
+                    </el-col>
69
+
70
+                    <el-col :span="8" v-if="isShows('置换流量')  &&  this.$store.getters.xt_user.template_info.org_id == 10340">
71
+                        <el-form-item label="置换流量(ml/min):">
72
+                            <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
73
+                        </el-form-item>
74
+                    </el-col>
75
+
63 76
 
64 77
                     <el-col :span="8"
65 78
                             v-if="isShows('预冲量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 36 ||  this.$store.getters.xt_user.template_info.org_id == 10345)">
@@ -82,7 +95,7 @@
82 95
                     </el-col>
83 96
 
84 97
                     <el-col :span="8"
85
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249)">
98
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432)">
86 99
                         <el-form-item label="目标超滤量(ml):">
87 100
                             <el-input
88 101
                                     type="number"
@@ -93,7 +106,7 @@
93 106
 
94 107
 
95 108
                     <el-col :span="8"
96
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249">
109
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432">
97 110
                         <el-form-item label="目标超滤量(L):">
98 111
                             <el-input
99 112
                                     type="number"
@@ -102,19 +115,57 @@
102 115
                         </el-form-item>
103 116
                     </el-col>
104 117
 
118
+                   <el-col :span="8" v-if="isShows('带水上机')">
119
+                        <el-form-item label="带水上机:">
120
+                           <el-select v-model="dialysisPrescription.water_machine">
121
+                                <el-option
122
+                                        v-for="(item, index) in machineList"
123
+                                        :label="item.name"
124
+                                        :value="item.name"
125
+                                        :key="index + 'q'"
126
+                                ></el-option>
127
+                            </el-select>
128
+                        </el-form-item>
129
+                    </el-col> 
130
+                   
131
+                    <el-col :span="8" v-if="isShows('是否单超脱水')">
132
+                        <el-form-item label="是否单超脱水:">
133
+                           <el-select v-model="dialysisPrescription.is_water">
134
+                                <el-option
135
+                                        v-for="(item, index) in waterList"
136
+                                        :label="item.name"
137
+                                        :value="item.id"
138
+                                        :key="index + 'q'"
139
+                                ></el-option>
140
+                            </el-select>
141
+                        </el-form-item>
142
+                    </el-col>
105 143
 
106
-                    <el-col :span="8" v-if="isShows('单超时长')">
144
+                    <el-col :span="8" v-if="isShows('单超时长') && dialysisPrescription.is_water == 1">
107 145
                         <el-form-item label="单超时长(h):">
108 146
                             <el-input v-model="dialysisPrescription.single_time"></el-input>
109 147
                         </el-form-item>
110 148
                     </el-col>
111 149
 
112
-                    <el-col :span="8" v-if="isShows('单超脱水')">
113
-                        <el-form-item label="单超脱水(L):">
150
+                    <el-col :span="8" v-if="isShows('单超脱水') && dialysisPrescription.is_water == 1">
151
+                        <el-form-item label="单超脱水(ml):">
114 152
                             <el-input v-model="dialysisPrescription.single_water"></el-input>
115 153
                         </el-form-item>
116 154
                     </el-col>
117 155
 
156
+                  
157
+                    <el-col :span="8" v-if="isShows('曲线脱水')">
158
+                        <el-form-item label="曲线脱水(ml):">
159
+                            <el-input v-model="dialysisPrescription.drhy_water"></el-input>
160
+                        </el-form-item>
161
+                    </el-col>
162
+
163
+                    <el-col :span="8" v-if="isShows('曲线脱水时长')">
164
+                        <el-form-item label="曲线脱水时长(h):">
165
+                            <el-input v-model="dialysisPrescription.dry_water_hour"></el-input>
166
+                        </el-form-item>
167
+                    </el-col>
168
+
118 169
                     <el-col :span="8" v-if="isShows('透析液配方')">
119 170
                         <el-form-item label="透析液配方:">
120 171
                             <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
@@ -172,9 +223,9 @@
172 223
 
173 224
                     <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
174 225
                         <el-form-item label="鱼精蛋白(mg/h):">
175
-                            <el-input
226
+                            <el-input肝素
176 227
                                     v-model="dialysisPrescription.nucleoprotamine"
177
-                            ></el-input>
228
+                            ></el-input肝素>
178 229
                         </el-form-item>
179 230
                     </el-col>
180 231
 
@@ -186,26 +237,69 @@
186 237
                         </el-form-item>
187 238
                     </el-col>
188 239
 
189
-                    <el-col :span="8" v-if="isShows('无肝素备注') && dialysisPrescription.anticoagulant ==1">
190
-                        <el-form-item label="无肝素备注:">
191
-                            <el-input
192
-                                    v-model="dialysisPrescription.no_heparin_remarks"
193
-                            ></el-input>
194
-                        </el-form-item>
240
+                    <el-col :span="8" v-if="isShows('追加肝素量')">
241
+                       <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'追加肝素量(mg) : '">
242
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
243
+                                          v-model="dialysisPrescription.add_amount"></el-input>
244
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
245
+                                          v-model="dialysisPrescription.add_amount"></el-input>
246
+                            </el-form-item>
247
+
248
+                            <el-form-item v-else :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '">
249
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
250
+                                          v-model="dialysisPrescription.add_amount"></el-input>
251
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
252
+                                          v-model="dialysisPrescription.add_amount"></el-input>
253
+                            </el-form-item>
254
+                    </el-col>
255
+
256
+                   
257
+                  <el-col :span="8" v-if="isShows('减肝素量')">
258
+                       <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'减肝素量(mg) : '">
259
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
260
+                                          v-model="dialysisPrescription.calculateAnticoagulantZL" v-on:input="searchReduceAmount"></el-input>
261
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
262
+                                          v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
263
+                            </el-form-item>
264
+
265
+                            <el-form-item v-else :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '">
266
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
267
+                                          v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
268
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
269
+                                          v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
270
+                            </el-form-item>
195 271
                     </el-col>
196 272
 
197 273
                     <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
198
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54">
274
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
199 275
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
200 276
                             <el-form-item
201
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987'
277
+                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id!=9990'
202 278
                                     :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
279
+
203 280
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
204 281
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
282
+
283
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
284
+                                          v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
285
+                            </el-form-item>
286
+
287
+                            <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7 && this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(mg):'"> 
288
+                               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
289
+                                          v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
290
+
291
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
292
+                                          v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
293
+                            </el-form-item>
294
+                           <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" :label="'首剂(iu):'"> 
295
+                               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
296
+                                          v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
297
+
205 298
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
206 299
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
207 300
                             </el-form-item>
208 301
 
302
+
209 303
                             <el-form-item
210 304
                                     v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 && dialysisPrescription.anticoagulant == 2'
211 305
                                     :label="'首剂(mg) : '">
@@ -215,7 +309,7 @@
215 309
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
216 310
                             </el-form-item>
217 311
 
218
-
312
+ 
219 313
 
220 314
                           </div>
221 315
 
@@ -248,29 +342,34 @@
248 342
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
249 343
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
250 344
                             </el-form-item>
251
-
345
+                           
346
+                           
252 347
                         </div>
253 348
 
254 349
                     </el-col>
255 350
 
256 351
 
257 352
                     <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
258
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 ">
259
-                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
353
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
354
+                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 ">
260 355
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
261
-                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987  && this.$store.getters.xt_user.template_info.org_id != 54">
356
+                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987  && this.$store.getters.xt_user.template_info.org_id != 54 && this.$store.getters.xt_user.template_info.org_id != 9990">
262 357
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
263 358
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
264 359
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
265 360
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
266 361
                             </el-form-item>
267 362
                             <el-form-item :label="'维持(mg/h) : '"
268
-                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 54 ||  this.$store.getters.xt_user.template_info.org_id == 10346 ||  this.$store.getters.xt_user.template_info.org_id == 10387">
363
+                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 54 ||  this.$store.getters.xt_user.template_info.org_id == 10346 ||  this.$store.getters.xt_user.template_info.org_id == 10387  ||  this.$store.getters.xt_user.template_info.org_id == 9990">
269 364
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
270 365
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
271 366
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
272 367
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
273 368
                             </el-form-item>
369
+                           
370
+             
371
+                         
372
+
274 373
                           </div>
275 374
                           <div v-else>
276 375
                             <el-form-item :label="'维持(iu/h) : '"
@@ -287,8 +386,13 @@
287 386
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
288 387
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
289 388
                             </el-form-item>
389
+                           
390
+                           
391
+                
290 392
                           </div>
291 393
                         </div>
394
+
395
+
292 396
                         <div v-else>
293 397
                             <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '">
294 398
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -302,15 +406,18 @@
302 406
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
303 407
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
304 408
                             </el-form-item>
409
+
305 410
                         </div>
306 411
 
307 412
                     </el-col>
308 413
 
414
+
415
+
309 416
                     <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
310
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
417
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
311 418
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
312 419
                             <el-form-item
313
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387'
420
+                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990'
314 421
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
315 422
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
316 423
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -325,6 +432,21 @@
325 432
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
326 433
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
327 434
                             </el-form-item>
435
+
436
+                             <el-form-item
437
+                                    v-if='this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant == 7 && this.$store.getters.xt_user.template_info.template_id!=6'
438
+                                    :label="'总量(mg)'">
439
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
440
+                                          v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
441
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
442
+                                          v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
443
+                            </el-form-item>
444
+                            <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" :label="'总量(iu)'">
445
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
446
+                                          v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
447
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
448
+                                          v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
449
+                            </el-form-item>
328 450
                           </div>
329 451
                           <div v-else>
330 452
                             <el-form-item
@@ -700,11 +822,7 @@
700 822
                     </el-col>
701 823
 
702 824
 
703
-                    <el-col :span="8" v-if="isShows('置换流量')">
704
-                        <el-form-item label="置换流量(L/h):">
705
-                            <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
706
-                        </el-form-item>
707
-                    </el-col>
825
+               
708 826
 
709 827
                     <el-col :span="8" v-if="isShows('吸氧')">
710 828
                         <el-form-item label="吸氧:">
@@ -813,6 +931,15 @@
813 931
                     </el-col>
814 932
 
815 933
 
934
+                    <el-col :span="8" v-if="isShows('处方医生')">
935
+                        <el-form-item label="处方医生">
936
+                            <el-select  v-model="dialysisPrescription.admin_user_id"  placeholder="请选择" style="width:100%;">
937
+                               <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
938
+                            </el-select>
939
+                        </el-form-item>
940
+                    </el-col>
941
+
942
+
816 943
                 </el-row>
817 944
 
818 945
 
@@ -966,7 +1093,7 @@
966 1093
 <script>
967 1094
   import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution } from '@/api/dialysis'
968 1095
   import { getDataConfig } from '@/utils/data'
969
-  import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
1096
+  import { calculateAnticoagulantZL, uParseTime,replacementFlow } from '@/utils/tools'
970 1097
   import store from '@/store'
971 1098
   import MsgTip from './MsgTip'
972 1099
   import request from '@/utils/request'
@@ -1185,7 +1312,10 @@
1185 1312
         default: () => {
1186 1313
           return { id: 0 }
1187 1314
         }
1188
-      }
1315
+      },
1316
+      admins: {
1317
+        type: Array
1318
+      },
1189 1319
     },
1190 1320
     computed: {
1191 1321
       dialysis_date: function() {
@@ -1332,6 +1462,14 @@
1332 1462
           punctureNeedleOptions: [],
1333 1463
           epoOptions: [],
1334 1464
           impulse:0,
1465
+          admin_user_id:"",
1466
+          drhy_water:"",
1467
+          is_water:0,
1468
+          dry_water_hour:"",
1469
+          water_machine:"否",
1470
+          add_amount:"",
1471
+          reduce_amount:"",
1472
+          
1335 1473
         },
1336 1474
 
1337 1475
         anticoagulant: {
@@ -1365,7 +1503,18 @@
1365 1503
         oxygenShow: false,
1366 1504
         hemodialysisPipelinesOptions: [],
1367 1505
         epoOptions: [],
1368
-        isLoading: false
1506
+        isLoading: false,
1507
+        adminRoles:[{id:0,name:"请选择"}],
1508
+        waterList:[
1509
+          {id:0,name:"请选择"},
1510
+          {id:1,name:"是"},
1511
+          {id:2,name:"否"}
1512
+        ],
1513
+        machineList:[
1514
+          {id:1,name:"是"},
1515
+          {id:2,name:"否"}
1516
+        ],
1517
+        zongliang:""
1369 1518
       }
1370 1519
     },
1371 1520
     methods: {
@@ -1946,9 +2095,27 @@
1946 2095
       getTime(val) {
1947 2096
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1948 2097
       },
1949
-      show(pre, schedual, last, his_is_open,is_advice_open) {
1950
-
2098
+      showOne(prescription,admins){
2099
+       console.log("prescription",prescription)
2100
+       if(prescription!=null && prescription.id == 0){
2101
+         console.log("开始啊",admins)
2102
+         this.dialysisPrescription.admin_user_id = this.$store.getters.xt_user.user.id
2103
+       }else{
2104
+          this.dialysisPrescription.admin_user_id = prescription.admin_user_id
2105
+       }
2106
+      
2107
+       this.adminRoles = []
2108
+        if(admins.length > 0 ){
2109
+          for(let i=0;i<admins.length;i++){
2110
+            this.adminRoles.push(admins[i])
2111
+          }
2112
+        }
2113
+        console.log("admin_user_+id2332323223332", this.$store.getters.xt_user.user.id)
2114
+      },
2115
+      show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2116
+        console.log("pres",pre)
1951 2117
         if (pre != undefined) {
2118
+          this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
1952 2119
           if (pre.oxygen_uptake == 1) {
1953 2120
             this.oxygenShow = true
1954 2121
           }
@@ -2034,7 +2201,7 @@
2034 2201
           }
2035 2202
           if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4 || this.$store.getters.xt_user.org.id == 10013 || this.$store.getters.xt_user.org.id == 10014 ) {
2036 2203
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2037
-          }else if(this.$store.getters.xt_user.org.id == 10234 || this.$store.getters.xt_user.org.id == 9671){
2204
+          }else if(this.$store.getters.xt_user.org.id == 10234 || this.$store.getters.xt_user.org.id == 9990 || this.$store.getters.xt_user.org.id==10432){
2038 2205
             if (schedual.schedule_type == 1) {
2039 2206
               this.start_time = year + '-' + month + '-' + day + ' ' + '06:00'
2040 2207
             } else if (schedual.schedule_type == 2) {
@@ -2042,6 +2209,14 @@
2042 2209
             } else if (schedual.schedule_type == 3) {
2043 2210
               this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2044 2211
             }
2212
+           }else if(this.$store.getters.xt_user.org.id == 9671 ||this.$store.getters.xt_user.org.id == 10340){
2213
+              if (schedual.schedule_type == 1) {
2214
+              this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
2215
+            } else if (schedual.schedule_type == 2) {
2216
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2217
+            } else if (schedual.schedule_type == 3) {
2218
+              this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2219
+            }
2045 2220
            } else {
2046 2221
             if (schedual.schedule_type == 1) {
2047 2222
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
@@ -2063,6 +2238,8 @@
2063 2238
         this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
2064 2239
         if (pre.id > 0) {
2065 2240
           this.dialysisPrescription.mode_id = pre.mode_id
2241
+          this.dialysisPrescription.water_machine = pre.water_machine
2242
+          this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
2066 2243
         }
2067 2244
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2068 2245
         // console.log('this.schedual', schedual.mode_id)
@@ -2100,8 +2277,16 @@
2100 2277
         } else {
2101 2278
           last_weight_after = this.last_record.weight_after
2102 2279
         }
2103
-        console.log("last2323232323232332",last)
2280
+        console.log("last2323232323232332wode",this.predialysis)
2281
+        if(this.predialysis!=null && this.predialysis.id == 0){
2282
+            if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 ){
2283
+              this.dialysisPrescription.sodium = 138
2284
+              this.dialysisPrescription.bicarbonate = 31.1
2285
+              this.dialysisPrescription.dialysate_flow = 500
2286
+            }
2287
+        }
2104 2288
         if (this.predialysis == null || this.predialysis.id == 0) {
2289
+          
2105 2290
           if (last != null) {
2106 2291
 
2107 2292
             this.dialysisPrescription.niprocart = last.niprocart
@@ -2118,13 +2303,15 @@
2118 2303
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
2119 2304
             this.dialysisPrescription.package = last.package
2120 2305
             this.dialysisPrescription.a_liquid = last.a_liquid
2121
-
2306
+            this.zongliang = last.anticoagulant_zongliang
2307
+            this.remark = last.remark
2122 2308
             weight_before = 0
2123 2309
 
2124 2310
           }
2125 2311
 
2126 2312
         } else {
2127 2313
           weight_before = this.predialysis.weight_before
2314
+          
2128 2315
         }
2129 2316
 
2130 2317
 
@@ -2142,6 +2329,12 @@
2142 2329
             this.checkedCities.push(this.targetAdvices[i].id)
2143 2330
           }
2144 2331
         }
2332
+        if(admins.length > 0 ){
2333
+          for(let i=0;i<admins.length;i++){
2334
+            this.adminRoles.push(admins[i])
2335
+          }
2336
+        }
2337
+        console.log("admin_user_+id2332323223332", this.adminRoles)
2145 2338
       },
2146 2339
       hide() {
2147 2340
         this.isVisibility = false
@@ -3312,6 +3505,8 @@
3312 3505
           } else {
3313 3506
             console.log('切换数据', response.data.data.solution)
3314 3507
             this.$message.success('切换成功')
3508
+            console.log("dialysisPrescription",response.data.data.dialysisPrescription)
3509
+            
3315 3510
             if (response.data.data.solution != null) {
3316 3511
               for (const key in response.data.data.solution) {
3317 3512
                 // 长期处方不为空
@@ -3322,6 +3517,15 @@
3322 3517
                     response.data.data.solution[key]
3323 3518
                 }
3324 3519
               }
3520
+               if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340) {
3521
+                console.log('抠门;哦啊', response.data.data.dialysisPrescription.remark)
3522
+                this.dialysisPrescription.sodium = 138
3523
+                this.dialysisPrescription.bicarbonate = 31.1
3524
+                this.dialysisPrescription.dialysate_flow = 500
3525
+                if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
3526
+                  this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
3527
+                }
3528
+              }
3325 3529
             } else {
3326 3530
               if (response.data.data.prescription != null) {
3327 3531
                 // 临时处方不为空
@@ -3355,9 +3559,30 @@
3355 3559
                 }
3356 3560
                 this.dialysisPrescription.mode_id = id
3357 3561
               }
3562
+               if (this.$store.getters.xt_user.template_info.org_id == 9671 ||this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
3563
+                this.dialysisPrescription.sodium = 138
3564
+                this.dialysisPrescription.bicarbonate = 31.1
3565
+                this.dialysisPrescription.dialysate_flow = 500
3566
+                if (this.last_prescription != null && response.data.data.system_prescription != null && response.data.data.system_prescription.remark == '') {
3567
+                  this.dialysisPrescription.remark = response.data.data.system_prescription.remark
3568
+                }
3569
+              }
3358 3570
             }
3359
-          }
3360 3571
 
3572
+            if(response.data.data.dialysisPrescription!=null){
3573
+               this.dialysisPrescription.remark =  response.data.data.dialysisPrescription.remark 
3574
+            }
3575
+          }
3576
+         if (response.data.data.solution == null) {
3577
+              if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
3578
+                this.dialysisPrescription.sodium = 138
3579
+                this.dialysisPrescription.bicarbonate = 31.1
3580
+                this.dialysisPrescription.dialysate_flow = 500
3581
+                if (this.last_prescription != null) {
3582
+                  this.dialysisPrescription.remark = this.last_prescription.remark
3583
+                }
3584
+              }
3585
+            }
3361 3586
           if (
3362 3587
             this.dialysisPrescription.dialysis_duration_hour === '' ||
3363 3588
             this.dialysisPrescription.dialysis_duration_minute === ''
@@ -3468,11 +3693,13 @@
3468 3693
         const res = new Map()
3469 3694
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
3470 3695
       },
3471
-   
3472 3696
 
3473 3697
     },
3474 3698
 
3475 3699
     watch: {
3700
+      'dialysisPrescription.blood_flow_volume': function () {
3701
+        this.dialysisPrescription.replacement_flow = replacementFlow(this.dialysisPrescription.blood_flow_volume)
3702
+      },
3476 3703
       'dialysisPrescription.dialysis_duration_hour': function() {
3477 3704
         let dialysis_duration_minute = 0
3478 3705
         let dialysis_duration_hour = 0
@@ -3493,10 +3720,11 @@
3493 3720
         }
3494 3721
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
3495 3722
 
3496
-        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
3723
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
3497 3724
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3498 3725
           this.dialysisPrescription.anticoagulant_zongliang = ''
3499 3726
         }
3727
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3500 3728
       },
3501 3729
       'dialysisPrescription.dialysis_duration_minute': function() {
3502 3730
         let dialysis_duration_minute = 0
@@ -3520,7 +3748,7 @@
3520 3748
           parseFloat(dialysis_duration_minute) / 60
3521 3749
 
3522 3750
         this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
3523
-          this.dialysisPrescription.anticoagulant_weichi
3751
+          this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount
3524 3752
         )
3525 3753
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3526 3754
           this.dialysisPrescription.anticoagulant_zongliang = ''
@@ -3551,17 +3779,20 @@
3551 3779
           1,
3552 3780
           this.dialysisPrescription.anticoagulant_shouji,
3553 3781
           duration,
3554
-          this.dialysisPrescription.anticoagulant_weichi
3782
+          this.dialysisPrescription.anticoagulant_weichi,
3783
+          this.dialysisPrescription.add_amount,
3784
+          this.dialysisPrescription.reduce_amount
3555 3785
         )
3786
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3556 3787
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3557 3788
           this.dialysisPrescription.anticoagulant_zongliang = ''
3558 3789
         }
3559
-
3790
+    
3560 3791
       if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3561 3792
           this.dialysisPrescription.anticoagulant_zongliang = ""
3562 3793
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3563 3794
        }
3564
-
3795
+ 
3565 3796
       },
3566 3797
       'dialysisPrescription.anticoagulant_weichi': function() {
3567 3798
         let dialysis_duration_minute = 0
@@ -3583,16 +3814,20 @@
3583 3814
         }
3584 3815
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
3585 3816
 
3586
-        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
3817
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
3587 3818
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3588 3819
           this.dialysisPrescription.anticoagulant_zongliang = ''
3589 3820
         }
3590
-
3821
+         this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3591 3822
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3592 3823
          this.dialysisPrescription.anticoagulant_zongliang = ""
3593 3824
          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3594 3825
        }
3826
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3827
+     
3595 3828
       },
3829
+   
3830
+   
3596 3831
       'prescription.id': {
3597 3832
         immediate: true,
3598 3833
         deep: true,
@@ -3948,6 +4183,84 @@
3948 4183
           }
3949 4184
         }
3950 4185
       },
4186
+      'dialysisPrescription.add_amount': function() {
4187
+        let dialysis_duration_minute = 0
4188
+        let dialysis_duration_hour = 0
4189
+        let duration = 0
4190
+        if (this.dialysisPrescription.dialysis_duration_minute == '') {
4191
+          dialysis_duration_minute = 0
4192
+        } else {
4193
+          dialysis_duration_minute = this.dialysisPrescription
4194
+            .dialysis_duration_minute
4195
+        }
4196
+        if (this.dialysisPrescription.dialysis_duration_hour == '') {
4197
+          dialysis_duration_hour = 0
4198
+        } else {
4199
+          dialysis_duration_hour = this.dialysisPrescription
4200
+            .dialysis_duration_hour
4201
+        }
4202
+        duration =
4203
+          parseFloat(dialysis_duration_hour) +
4204
+          parseFloat(dialysis_duration_minute) / 60
4205
+
4206
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
4207
+          1,
4208
+          this.dialysisPrescription.anticoagulant_shouji,
4209
+          duration,
4210
+          this.dialysisPrescription.anticoagulant_weichi,
4211
+          this.dialysisPrescription.add_amount,
4212
+          this.dialysisPrescription.reduce_amount
4213
+        )
4214
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
4215
+        if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
4216
+          this.dialysisPrescription.anticoagulant_zongliang = ''
4217
+        }
4218
+    
4219
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
4220
+          this.dialysisPrescription.anticoagulant_zongliang = ""
4221
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
4222
+       }
4223
+ 
4224
+      },
4225
+      'dialysisPrescription.reduce_amount': function() {
4226
+        let dialysis_duration_minute = 0
4227
+        let dialysis_duration_hour = 0
4228
+        let duration = 0
4229
+        if (this.dialysisPrescription.dialysis_duration_minute == '') {
4230
+          dialysis_duration_minute = 0
4231
+        } else {
4232
+          dialysis_duration_minute = this.dialysisPrescription
4233
+            .dialysis_duration_minute
4234
+        }
4235
+        if (this.dialysisPrescription.dialysis_duration_hour == '') {
4236
+          dialysis_duration_hour = 0
4237
+        } else {
4238
+          dialysis_duration_hour = this.dialysisPrescription
4239
+            .dialysis_duration_hour
4240
+        }
4241
+        duration =
4242
+          parseFloat(dialysis_duration_hour) +
4243
+          parseFloat(dialysis_duration_minute) / 60
4244
+
4245
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
4246
+          1,
4247
+          this.dialysisPrescription.anticoagulant_shouji,
4248
+          duration,
4249
+          this.dialysisPrescription.anticoagulant_weichi,
4250
+          this.dialysisPrescription.add_amount,
4251
+          this.dialysisPrescription.reduce_amount
4252
+        )
4253
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
4254
+        if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
4255
+          this.dialysisPrescription.anticoagulant_zongliang = ''
4256
+        }
4257
+    
4258
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
4259
+          this.dialysisPrescription.anticoagulant_zongliang = ""
4260
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
4261
+       }
4262
+ 
4263
+      },
3951 4264
       stockType: function() {
3952 4265
         console.log('stockType', this.stockType)
3953 4266
         var arr = []
@@ -3975,19 +4288,30 @@
3975 4288
           }
3976 4289
         }
3977 4290
         this.irrigations = irrigation
3978
-        console.log('透析器', this.dialyzers)
3979
-        console.log('灌流器', this.irrigations)
4291
+       
3980 4292
       },
3981
-   
4293
+      
4294
+      admin_user_id:function(){
4295
+        console.log("处方医生",this.admins)
4296
+        if(this.admins.length > 0 ){
4297
+          for(let i=0;i<this.admins.length;i++){
4298
+            this.adminRoles.push(this.admins[i])
4299
+          }
4300
+        }
4301
+        console.log(" 人员",this.adminRoles)
4302
+      }
3982 4303
     },
3983 4304
     created() {
3984
-      console.log("schedual232323323232323232",this.schedual)
4305
+      console.log("schedual232323323232323232",this.adminRoles)
3985 4306
       this.illnessList = getDataConfig('hemodialysis', 'illness')
3986 4307
 
3987 4308
       this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
3988 4309
 
3989 4310
       this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
3990 4311
 
4312
+      
4313
+
4314
+
3991 4315
     }
3992 4316
   }
3993 4317
 </script>

+ 55 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue Näytä tiedosto

@@ -47,6 +47,31 @@
47 47
           ></el-input>
48 48
        </el-form-item>
49 49
 
50
+        <el-form-item label="宣教知识:" v-if="isShowFiled('宣教知识')">
51
+          <el-select @change="dialysisAfterTeachSelectChange" v-model="form.mission_id">
52
+            <el-option
53
+              v-for="(item, index) in education"
54
+              :label="item.text"
55
+              :value="item.value"
56
+              :key="index"
57
+            ></el-option>
58
+          </el-select>
59
+        </el-form-item>
60
+     
61
+      <el-row :gutter="20">
62
+        <el-col v-if="isShowFiled('宣教知识')">
63
+          <el-form-item>
64
+            <el-input
65
+              type="textarea"
66
+              v-model="form.mission"
67
+              :rows="4"
68
+            ></el-input>
69
+          </el-form-item>
70
+        </el-col>
71
+      </el-row>
72
+
73
+      
74
+
50 75
         <el-form-item>
51 76
           <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit('form')" :loading="loading"
52 77
                      type="primary">执行下机
@@ -102,6 +127,8 @@
102 127
           internal_fistula:"",
103 128
           catheter:"",
104 129
           cruor:"",
130
+          mission:"",
131
+          mission_id:"",
105 132
         },
106 133
         internal_fistula: [],
107 134
         InnerDialogProps: {
@@ -118,6 +145,8 @@
118 145
          internal_fistula: [{ required: true, message: "请选择内瘘" }]
119 146
         },
120 147
         required:false,
148
+        education:[],
149
+       
121 150
       }
122 151
     },
123 152
     props: {
@@ -140,6 +169,7 @@
140 169
       }
141 170
     },
142 171
     created() {
172
+      this.education = getDataConfig('education', 'education')
143 173
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
144 174
       this.catheter = getDataConfig('hemodialysis', 'catheter')
145 175
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
@@ -157,6 +187,7 @@
157 187
           this.form.cruor = this.dialysis_order.cruor
158 188
           this.form.internal_fistula = this.dialysis_order.blood_access_internal_fistula
159 189
           this.form.puncture_point_haematoma = this.dialysis_order.puncture_point_haematoma
190
+          this.form.mission = this.dialysis_order.mission
160 191
         }
161 192
       },
162 193
       patient:{
@@ -167,6 +198,25 @@
167 198
       }
168 199
     },
169 200
     methods: {
201
+         dialysisAfterTeachSelectChange: function(values) {
202
+          if (this.form.mission == '') {
203
+            this.form.mission = values
204
+          } else {
205
+            if (this.form.mission.indexOf(values) == -1) {
206
+              if (
207
+                this.form.mission
208
+                  .charAt(this.form.mission.length - 1)
209
+                  .indexOf('。') == -1
210
+              ) {
211
+                this.form.mission =
212
+                  this.form.mission + ',' + values
213
+              } else {
214
+                this.form.mission =
215
+                  this.form.mission + values
216
+              }
217
+            }
218
+          }
219
+        },
170 220
        isShowFiled(name) {
171 221
         var filedList = store.getters.xt_user.fileds
172 222
         for (let i = 0; i < filedList.length; i++) {
@@ -295,6 +345,8 @@
295 345
             ParamsQuery["internal_fistula"] = this.form.internal_fistula
296 346
             ParamsQuery["catheter"] = this.form.catheter
297 347
             ParamsQuery["cruor"] = this.form.cruor
348
+            ParamsQuery["mission"] = this.form.mission
349
+            ParamsQuery["mission_id"] = this.form.mission_id
298 350
             if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
299 351
               ParamsQuery["mode"] = "3"
300 352
             }
@@ -338,7 +390,9 @@
338 390
              }
339 391
              this.loading = true
340 392
              let mode = "1"
341
-            finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
393
+             console.log("fomr",this.form.mission_id)
394
+            
395
+            finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor,this.form.mission,this.form.mission_id).then(rs => {
342 396
               this.loading = false
343 397
               var resp = rs.data
344 398
               if (resp.state == 1) {

+ 112 - 51
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Näytä tiedosto

@@ -165,7 +165,7 @@
165 165
               {{
166 166
                 scope.row.transmembrane_pressure
167 167
                   ? scope.row.transmembrane_pressure
168
-                  : ""
168
+                  : "/"
169 169
               }}
170 170
             </template>
171 171
           </el-table-column>
@@ -185,7 +185,7 @@
185 185
               {{
186 186
                 scope.row.transmembrane_pressure
187 187
                   ? scope.row.transmembrane_pressure
188
-                  : ""
188
+                  : "/"
189 189
               }}
190 190
             </template>
191 191
           </el-table-column>
@@ -234,8 +234,10 @@
234 234
                 template_id == 53 ||
235 235
                 template_id == 54 ||
236 236
                 template_id == 56 ||
237
+                template_id == 60 ||
237 238
                 org_id == 10210 ||
238
-                org_id == 9555)
239
+                org_id == 9555 || org_id == 10387
240
+                || org_id == 10432)
239 241
             "
240 242
           >
241 243
             <template slot-scope="scope">
@@ -289,8 +291,10 @@
289 291
               template_id != 53 &&
290 292
               template_id != 54 &&
291 293
               template_id != 56 &&
294
+              template_id != 60 &&
292 295
               org_id!= 10210 &&
293
-              org_id != 9555
296
+              org_id != 9555 && org_id!=10387
297
+              && org_id!=10432
294 298
             "
295 299
           >
296 300
             <template slot-scope="scope">
@@ -337,7 +341,9 @@
337 341
                 template_id == 53 ||
338 342
                 template_id == 54 ||
339 343
                 template_id == 56 ||
340
-                template_id == 47)
344
+                template_id == 47 ||
345
+                template_id == 60 ||
346
+                org_id == 10432)
341 347
             "
342 348
           >
343 349
             <template slot-scope="scope">
@@ -383,7 +389,9 @@
383 389
               template_id != 54 &&
384 390
               template_id != 56 &&
385 391
               template_id != 48 &&
386
-              template_id != 47
392
+              template_id != 47 &&
393
+              template_id != 60 &&
394
+              org_id!=10432
387 395
             "
388 396
           >
389 397
             <template slot-scope="scope">
@@ -440,7 +448,8 @@
440 448
                 template_id == 48 ||
441 449
                 template_id == 53 ||
442 450
                 template_id == 54 ||
443
-                template_id == 56 
451
+                template_id == 56 ||
452
+                org_id ==10432
444 453
                )
445 454
             "
446 455
           >
@@ -465,7 +474,8 @@
465 474
               template_id != 48 &&
466 475
               template_id != 53 &&
467 476
               template_id != 54 &&
468
-              template_id != 56 
477
+              template_id != 56 &&
478
+              org_id !=10432
469 479
             "
470 480
           >
471 481
             <template slot-scope="scope">
@@ -507,7 +517,9 @@
507 517
                 template_id == 53 ||
508 518
                 template_id == 54 ||
509 519
                 template_id == 56 ||
510
-                template_id == 48)
520
+                template_id == 48 ||
521
+                org_id == 10340 ||
522
+                org_id == 10432)
511 523
             "
512 524
           >
513 525
             <template slot-scope="scope">
@@ -536,7 +548,9 @@
536 548
               template_id != 53 &&
537 549
               template_id != 54 &&
538 550
               template_id != 56 &&
539
-              template_id != 48
551
+              template_id != 48 &&
552
+              org_id !=10340 &&
553
+              org_id !=10432
540 554
             "
541 555
           >
542 556
             <template slot-scope="scope">
@@ -564,7 +578,7 @@
564 578
               {{
565 579
                 scope.row.blood_oxygen_saturation
566 580
                   ? scope.row.blood_oxygen_saturation
567
-                  : ""
581
+                  : "/"
568 582
               }}
569 583
             </template>
570 584
           </el-table-column>
@@ -706,7 +720,7 @@
706 720
             align="center"
707 721
             label="累计血容量(ml)"
708 722
             width="100"
709
-            v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671"
723
+            v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671 && org_id != 10340"
710 724
           >
711 725
              <template slot-scope="scope">
712 726
               {{ scope.row.accumulated_blood_volume }}
@@ -717,7 +731,7 @@
717 731
             align="center"
718 732
             label="累计血容量(L)"
719 733
             width="100"
720
-            v-if="isShow('累计血容量') && (template_id == 41  || org_id == 9538 || org_id == 9671)"
734
+            v-if="isShow('累计血容量') && (template_id == 41  || org_id == 9538 || org_id == 9671 || org_id == 10340)"
721 735
           >
722 736
             <template slot-scope="scope">
723 737
               {{ scope.row.accumulated_blood_volume }}
@@ -1025,7 +1039,9 @@
1025 1039
                 template_id == 53 ||
1026 1040
                 template_id == 54 ||
1027 1041
                 template_id == 56 ||
1028
-                template_id == 47)
1042
+                template_id == 47 ||
1043
+                template_id == 60 ||
1044
+                org_id== 10432)
1029 1045
             "
1030 1046
           >
1031 1047
             <el-form-item label="超滤率(ml/h)">
@@ -1064,7 +1080,9 @@
1064 1080
               template_id != 53 &&
1065 1081
               template_id != 54 &&
1066 1082
               template_id != 56 &&
1067
-              template_id != 47
1083
+              template_id != 47 &&
1084
+              template_id != 60 &&
1085
+              org_id!=10432
1068 1086
             "
1069 1087
           >
1070 1088
             <el-form-item label="超滤率(L/h)">
@@ -1110,8 +1128,12 @@
1110 1128
                 template_id == 53 ||
1111 1129
                 template_id == 54 ||
1112 1130
                 template_id == 56 ||
1131
+                template_id == 60 ||
1113 1132
                 org_id == 10210 ||
1114
-                org_id == 9555)
1133
+                org_id == 9555 ||
1134
+                org_id == 10340 ||
1135
+                org_id == 10387 ||
1136
+                org_id == 10432)
1115 1137
             "
1116 1138
           >
1117 1139
             <el-form-item label="超滤量(ml):">
@@ -1157,8 +1179,12 @@
1157 1179
               template_id == 53 &&
1158 1180
               template_id == 54 &&
1159 1181
               template_id == 56 &&
1182
+              template_id == 60 &&
1160 1183
               org_id !=  10210 &&
1161
-              org_id != 9555
1184
+              org_id !=  10340 &&
1185
+              org_id != 9555 &&
1186
+              org_id!=10387&&
1187
+              org_id!=10432
1162 1188
             "
1163 1189
           >
1164 1190
             <el-form-item label="超滤量(L):">
@@ -1193,7 +1219,8 @@
1193 1219
               template_id != 48 &&
1194 1220
               template_id != 54 &&
1195 1221
               template_id != 56 &&
1196
-              template_id != 53
1222
+              template_id != 53 &&
1223
+              org_id!=10432
1197 1224
             "
1198 1225
           >
1199 1226
             <el-form-item label="置换率(L/h):">
@@ -1214,7 +1241,8 @@
1214 1241
                 template_id == 53 ||
1215 1242
                 template_id == 54 ||
1216 1243
                 template_id == 56 ||
1217
-                template_id == 48)
1244
+                template_id == 48 ||
1245
+                org_id==10432)
1218 1246
             "
1219 1247
           >
1220 1248
             <el-form-item label="置换率(ml/min):">
@@ -1241,7 +1269,9 @@
1241 1269
               template_id != 53 &&
1242 1270
               template_id != 54 &&
1243 1271
               template_id != 56 &&
1244
-              template_id != 48
1272
+              template_id != 48 &&
1273
+              org_id!=10340 && 
1274
+              org_id!=10432
1245 1275
             "
1246 1276
           >
1247 1277
             <el-form-item label="置换量(L):">
@@ -1265,7 +1295,9 @@
1265 1295
                 template_id == 53 ||
1266 1296
                 template_id == 54 ||
1267 1297
                 template_id == 56 ||
1268
-                template_id == 48)
1298
+                template_id == 48 ||
1299
+                org_id!=10340 ||
1300
+                org_id ==10432)
1269 1301
             "
1270 1302
           >
1271 1303
             <el-form-item label="置换量(ml):">
@@ -1381,13 +1413,13 @@
1381 1413
             </el-form-item>
1382 1414
           </el-col>
1383 1415
 
1384
-          <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538)">
1416
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538 || org_id == 10340)">
1385 1417
             <el-form-item label="累计血容量(L):">
1386 1418
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1387 1419
             </el-form-item>
1388 1420
           </el-col>
1389 1421
 
1390
-          <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && org_id!=9538)">
1422
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && org_id!=9538 && org_id!=10340)">
1391 1423
             <el-form-item label="累计血容量(ml):">
1392 1424
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1393 1425
             </el-form-item>
@@ -1605,7 +1637,7 @@ export default {
1605 1637
         venous_pressure_type: 1, // 静脉压
1606 1638
         transmembrane_pressure: "", // 跨膜压
1607 1639
         transmembrane_pressure_type: 1, // 跨膜压
1608
-        ultrafiltration_volume: "", // 超滤量
1640
+        ultrafiltration_volume: "", // c
1609 1641
         ultrafiltration_rate: "", // 超滤率
1610 1642
         arterial_pressure: "", // 动脉压
1611 1643
         arterial_pressure_type: 1, // 动脉压
@@ -1691,6 +1723,8 @@ export default {
1691 1723
       "blood_pressure_monitoring_site"
1692 1724
     );
1693 1725
     this.complicationList = getDataConfig("hemodialysis", "complication");
1726
+
1727
+   
1694 1728
   },
1695 1729
   methods: {
1696 1730
     venousPressureChange(type) {
@@ -1826,40 +1860,47 @@ export default {
1826 1860
         this.form.operate_time = resp.monitor.operate_time
1827 1861
           ? (resp.monitor.operate_time + 3600) * 1000
1828 1862
           : Date.parse(new Date());
1829
-        this.form.temperature = ""; // this.last_monitor_record.pulse_frequency;
1863
+
1864
+      
1865
+        this.form.temperature = ""
1830 1866
 
1831 1867
         this.form.pulse_frequency = ""; // this.last_monitor_record.pulse_frequency;
1832 1868
         // this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : '';
1833 1869
         this.form.systolic_bp = ""; // this.last_monitor_record.systolic_blood_pressure;
1834 1870
         this.form.diastolic_bp = ""; // this.last_monitor_record.diastolic_blood_pressure;
1835
-        this.form.blood_flow_volume = resp.monitor.blood_flow_volume
1836
-          ? resp.monitor.blood_flow_volume
1837
-          : "";
1871
+        this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume: "";
1838 1872
         // 静脉压
1839
-        if (this.org_id == 10060) {
1873
+        if (this.org_id == 10060 || this.org_id == 10387) {
1840 1874
           this.form.venous_pressure = resp.monitor.venous_pressure;
1875
+        }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 ){
1876
+          this.form.venous_pressure = 80
1841 1877
         } else {
1842 1878
           this.form.venous_pressure = ""; // this.last_monitor_record.venous_pressure;
1843 1879
         }
1844 1880
 
1845
-        this.form.venous_pressure_type = resp.monitor.venous_pressure_type
1846
-          ? resp.monitor.venous_pressure_type
1847
-          : 1;
1848
-        this.form.arterial_pressure = resp.monitor.arterial_pressure
1849
-          ? resp.monitor.arterial_pressure
1850
-          : ""; // this.last_monitor_record.arterial_pressure;
1881
+        this.form.venous_pressure_type = resp.monitor.venous_pressure_type? resp.monitor.venous_pressure_type: 1;
1882
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10387){
1883
+           this.form.arterial_pressure = resp.monitor.arterial_pressure? resp.monitor.arterial_pressure: "-100"; // this.last_monitor_record.arterial_pressure;
1884
+        }else{
1885
+           this.form.arterial_pressure = resp.monitor.arterial_pressure? resp.monitor.arterial_pressure: ""
1886
+        }
1887
+
1851 1888
         this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type
1852 1889
           ? resp.monitor.arterial_pressure_type
1853 1890
           : 1;
1854
-        if (this.org_id == 10060) {
1855
-          this.form.transmembrane_pressure =
1856
-            resp.monitor.transmembrane_pressure;
1891
+        if (this.org_id == 10060  || this.org_id == 10387) {
1892
+          this.form.transmembrane_pressure = resp.monitor.transmembrane_pressure;
1893
+        }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
1894
+          this.form.transmembrane_pressure = 60
1857 1895
         } else {
1858 1896
           this.form.transmembrane_pressure = ""; // this.last_monitor_record.transmembrane_pressure;
1859 1897
         }
1860
-        if (this.org_id == 10318 || this.org_id == 9671) {
1861
-          console.log("23323232323223", resp.monitor.breathing_rate);
1898
+        if (this.org_id == 10318) {
1862 1899
           this.form.breathing_rated = resp.monitor.breathing_rate;
1900
+        }else if(this.org_id == 9671){
1901
+          this.form.breathing_rated = "20"
1902
+        }else if(this.org_id == 10340){
1903
+         this.form.breathing_rated = "20"
1863 1904
         } else {
1864 1905
           this.form.breathing_rated = "";
1865 1906
         }
@@ -1879,9 +1920,13 @@ export default {
1879 1920
         this.form.dialysate_temperature = resp.monitor.dialysate_temperature
1880 1921
           ? resp.monitor.dialysate_temperature
1881 1922
           : "";
1882
-        this.form.temperature = resp.monitor.temperature
1883
-          ? resp.monitor.temperature
1884
-          : "";
1923
+        
1924
+         if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340){
1925
+            this.form.temperature = "36.5"
1926
+
1927
+         }else{
1928
+           this.form.temperature = resp.monitor.temperature ? resp.monitor.temperature: "";
1929
+         }
1885 1930
         this.form.replacement_rate = resp.monitor.replacement_rate
1886 1931
           ? resp.monitor.replacement_rate
1887 1932
           : "";
@@ -1901,9 +1946,11 @@ export default {
1901 1946
         this.form.symptom = resp.monitor.symptom ? resp.monitor.symptom : ""; // this.last_monitor_record.symptom;
1902 1947
        // this.form.dispose = resp.monitor.dispose ? resp.monitor.dispose : ""; // this.last_monitor_record.dispose;
1903 1948
         this.form.result = resp.monitor.result ? resp.monitor.result : ""; // this.last_monitor_record.result;
1904
-        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation
1905
-          ? resp.monitor.blood_oxygen_saturation
1906
-          : "";
1949
+        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation? resp.monitor.blood_oxygen_saturation: "";
1950
+       //针对长沙南雅医院
1951
+       if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 9675){
1952
+          this.form.blood_oxygen_saturation = "/"
1953
+        }
1907 1954
         this.form.urr = resp.monitor.urr ? resp.monitor.urr : "";
1908 1955
         this.form.blood_sugar = resp.monitor.blood_sugar
1909 1956
           ? resp.monitor.blood_sugar
@@ -1911,9 +1958,12 @@ export default {
1911 1958
         this.form.sodium_concentration = resp.monitor.sodium_concentration
1912 1959
           ? resp.monitor.sodium_concentration
1913 1960
           : "";
1914
-        this.form.conductivity = resp.monitor.conductivity
1915
-          ? resp.monitor.conductivity
1916
-          : "";
1961
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
1962
+          this.form.conductivity = 14
1963
+        }else{
1964
+           this.form.conductivity = resp.monitor.conductivity? resp.monitor.conductivity: "";
1965
+        }
1966
+      
1917 1967
         this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant
1918 1968
           ? resp.monitor.monitor_anticoagulant
1919 1969
           : "";
@@ -1943,6 +1993,10 @@ export default {
1943 1993
         this.form.heparin_amount = resp.monitor.heparin_amount
1944 1994
           ? resp.monitor.heparin_amount
1945 1995
           : "";
1996
+         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
1997
+            this.form.dialysate_temperature = 36.5
1998
+            
1999
+         }
1946 2000
       });
1947 2001
     },
1948 2002
 
@@ -2056,9 +2110,16 @@ export default {
2056 2110
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2057 2111
           ? monitor.ultrafiltration_rate
2058 2112
           : "";
2059
-        this.form.arterial_pressure = monitor.arterial_pressure
2113
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
2114
+          this.form.arterial_pressure = monitor.arterial_pressure
2115
+          ? monitor.arterial_pressure
2116
+          : "-100";
2117
+        }else{
2118
+         this.form.arterial_pressure = monitor.arterial_pressure
2060 2119
           ? monitor.arterial_pressure
2061 2120
           : "";
2121
+        }
2122
+       
2062 2123
         this.form.arterial_pressure_type = monitor.arterial_pressure_type
2063 2124
           ? monitor.arterial_pressure_type
2064 2125
           : "";
@@ -2090,7 +2151,7 @@ export default {
2090 2151
         this.form.symptom = monitor.symptom;
2091 2152
         this.form.dispose = monitor.dispose;
2092 2153
         this.form.result = monitor.result;
2093
-        this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation;
2154
+        this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:"/"
2094 2155
         this.form.urr = monitor.urr ? monitor.urr : "";
2095 2156
         this.form.blood_sugar = monitor.blood_sugar ? monitor.blood_sugar : "";
2096 2157
         this.form.monitor_anticoagulant = monitor.monitor_anticoagulant

+ 1 - 0
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Näytä tiedosto

@@ -428,6 +428,7 @@ export default {
428 428
       var date = this.$route.query && this.$route.query.date
429 429
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
430 430
     }
431
+    
431 432
   }
432 433
 }
433 434
 </script>

+ 71 - 2
src/xt_pages/dialysis/details/dialysisComputer.vue Näytä tiedosto

@@ -39,11 +39,53 @@
39 39
           <label>新开瘘护士 : </label>
40 40
           <span class="content">{{ new_fistula_nurse }}</span>
41 41
         </li>
42
+        <li v-if="isShow('质控护士')">
43
+          <label>质控护士 : </label>
44
+          <span class="content">{{ quality_nurse_id }}</span>
45
+        </li>
46
+       <li v-if="isShow('穿刺针')">
47
+          <label>穿刺针 : </label>
48
+          <span class="content">{{record.puncture_needle }}</span>
49
+        </li>
50
+        <li v-if="isShow('穿刺方式')">
51
+          <label>穿刺方式 : </label>
52
+          <span class="content">{{ record.puncture_way }}</span>
53
+        </li>
54
+        <li v-if="isShow('透析器')">
55
+          <label>透析器 : </label>
56
+          <span class="content">{{ record.dialysis_dialyszers }}</span>
57
+        </li>
58
+        <li v-if="isShow('灌流器')">
59
+          <label>灌流器 : </label>
60
+          <span class="content">{{ record.dialysis_irrigation }}</span>
61
+        </li>
62
+         <li v-if="isShow('血管通路')">
63
+          <label>血管通路 : </label>
64
+          <span class="content">{{ blood_access_id }}</span>
65
+        </li>
42 66
         <li>
43 67
           <label>状态 : </label>
44 68
           <span class="content">{{ stage }}</span>
45 69
         </li>
46 70
       </ul>
71
+      <ul>
72
+        <li v-if="isShow('核酸检测日期')">
73
+          <label>核酸检测日期 : </label>
74
+          <span class="content">{{getTimeOne(this.record.nuclein_date)}}</span>
75
+        </li>
76
+      </ul>
77
+      <ul>
78
+        <li v-if="isShow('排班备注')">
79
+          <label>排班备注 : </label>
80
+          <span class="content">{{this.record.schedule_remark}}</span>
81
+        </li>
82
+      </ul>
83
+      <ul>
84
+        <li v-if="isShow('上机备注')">
85
+          <label>上机备注 : </label>
86
+          <span class="content">{{this.record.order_remark}}</span>
87
+        </li>
88
+      </ul>
47 89
       <ul>
48 90
         <li v-if="isShow('上机时间')">
49 91
           <label>上机时间 : </label>
@@ -56,9 +98,10 @@
56 98
 </template>
57 99
 
58 100
 <script>
101
+  import { uParseTime } from '@/utils/tools'
59 102
   import { parseTime } from '@/utils'
60 103
   import store from '@/store'
61
-
104
+  import { getDataConfig } from '@/utils/data'
62 105
   export default {
63 106
     name: 'DialysisComputer',
64 107
     data() {
@@ -162,6 +205,25 @@
162 205
           return '-'
163 206
         }
164 207
         return this.admin_map[this.record.new_fistula_nurse] == null ? '' : this.admin_map[this.record.new_fistula_nurse].name
208
+      },
209
+      quality_nurse_id:function(){
210
+        if (this.record.id == 0) {
211
+          return '-'
212
+        }
213
+        return this.admin_map[this.record.quality_nurse_id] == null ? '' : this.admin_map[this.record.quality_nurse_id].name
214
+      },
215
+      blood_access_id:function(){
216
+        var name = ""
217
+        var list = getDataConfig(
218
+          'hemodialysis',
219
+          'vascular_access_desc'
220
+        )
221
+        for(let i=0;i<list.length;i++){
222
+          if(this.record.blood_access_id == list[i].id){
223
+             name = list[i].name
224
+          }
225
+        }
226
+        return name
165 227
       }
166 228
     },
167 229
     methods: {
@@ -178,7 +240,14 @@
178 240
           }
179 241
         }
180 242
         return false
181
-      }
243
+      },
244
+      getTimeOne(val) {
245
+        if(val == ""){
246
+        return ""
247
+        }else {
248
+        return uParseTime(val, '{y}-{m}-{d}')
249
+        }
250
+       },
182 251
 
183 252
     }
184 253
   }

+ 10 - 10
src/xt_pages/dialysis/details/dialysisMonitoring.vue Näytä tiedosto

@@ -14,17 +14,17 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10432)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10387 && this.$store.getters.xt_user.template_info.org_id!=10432"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432" width="50px"> 超滤率 <br />(L/h) </th>
21 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
-          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56) " width="92px" > 置换率(ml/min) </th>
24
-          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56" width="92px" > 置换率(L/h)  </th>
23
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432) " width="92px" > 置换率(ml/min) </th>
24
+          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432" width="92px" > 置换率(L/h)  </th>
25 25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56)" width="92px"  > 置换量(ml)  </th>
27
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56)" width="92px" > 置换量(L) </th>
26
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432 )" width="92px"  > 置换量(ml)  </th>
27
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432)" width="92px" > 置换量(L) </th>
28 28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29 29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
30 30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>
@@ -33,8 +33,8 @@
33 33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34 34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35 35
           <th v-if="isShow('累计血容量')" width="92px">累计血容量 
36
-            <span v-if="template_id !=41 && org_id!=9671 && org_id!=9538">(ml)</span>
37
-            <span v-if="template_id == 41 || org_id == 9671 || org_id == 9538">(L)</span>
36
+            <span v-if="template_id !=41 && org_id!=9671 && org_id!=9538 && org_id!=10340">(ml)</span>
37
+            <span v-if="template_id == 41 || org_id == 9671 || org_id == 9538 || org_id == 10340">(L)</span>
38 38
           </th>
39 39
           <th v-if="isShow('血容量')" width="92px">血容量(L)</th>
40 40
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>

+ 6 - 0
src/xt_pages/dialysis/details/dialysisOff.vue Näytä tiedosto

@@ -20,6 +20,12 @@
20 20
           <span class="content">{{end_time}}</span>
21 21
         </li>
22 22
       </ul>
23
+      <ul>
24
+        <li>
25
+          <label>宣教知识 : </label>
26
+          <span class="content">{{this.record.mission}}</span>
27
+        </li>
28
+      </ul>
23 29
     </div>
24 30
     <div class="middleLine"></div>
25 31
   </div>

+ 199 - 9
src/xt_pages/dialysis/details/index.vue Näytä tiedosto

@@ -238,7 +238,7 @@
238 238
               <div class="signPrint" style="width: 360px;font-size:16px;">
239 239
                 <div style="margin-left:50px;">姓名:
240 240
                   <span>{{main_collection.patient.name}} </span>
241
-                  ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
241
+                  ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no)  }}岁)
242 242
                 </div>
243 243
                 <div class="printCell" style="display:flex;justify-content: space-around;">
244 244
                   <span style="display: block;width: 50%;">
@@ -334,7 +334,7 @@
334 334
                 </div>
335 335
                 <div class="printCell" style="display:flex;justify-content: space-around;">
336 336
                   <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
337
-                    <span v-if="$store.getters.xt_user.org.id == 10278">ml</span> 
337
+                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138">ml</span> 
338 338
                     <span v-else>L</span>
339 339
                   </span>
340 340
                   <span style="display: block;width: 50%;">
@@ -386,6 +386,178 @@
386 386
     </el-dialog>
387 387
 
388 388
 
389
+
390
+  
391
+      <el-dialog
392
+                :visible.sync="endVisibility"
393
+                :close-on-click-modal="false"
394
+                :close-on-press-escape="false"
395
+                :show-close="false"
396
+                width="30%"
397
+        >
398
+         <el-button
399
+            size="small"
400
+            icon="el-icon-printer"
401
+            type="primary"
402
+            @click="printAction"
403
+            style="float:right"
404
+            >打印</el-button
405
+          >
406
+       <div id="print_content">
407
+        <div class="print_main_content">
408
+          <div class="table_panel">
409
+             <div v-for="(main_collection,index) in printList" :key="index">
410
+              <div class="signPrint" style="width: 360px;font-size:16px;">
411
+                <div style="margin-left:50px;">姓名:
412
+                  <span>{{main_collection.patient.name}} </span>
413
+                  ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no)  }}岁)
414
+                </div>
415
+                <div class="printCell" style="display:flex;justify-content: space-around;">
416
+                  <span style="display: block;width: 50%;">
417
+                    床号:{{ main_collection.number.number }}
418
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
419
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
420
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
421
+                  </span>
422
+                  <span style="display: block;width: 50%;">{{ printDate }}</span>
423
+                </div>
424
+                <div class="printCell" style="display:flex;justify-content: space-around;">
425
+                   <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
426
+                    <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
427
+
428
+                </div>
429
+                <div class="printCell" style="display:flex;justify-content: space-around;">
430
+                  <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
431
+                  
432
+                  <span style="display: block;width: 50%;">
433
+                    首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
434
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
435
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}mg
436
+                  </span>
437
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
438
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
439
+                  </span>
440
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
441
+                   {{main_collection.dialysissolution.anticoagulant_shouji}}mg
442
+                  </span>
443
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
444
+                   {{main_collection.dialysissolution.anticoagulant_shouji}} mg
445
+                   </span>
446
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
447
+                   {{main_collection.dialysissolution.anticoagulant_shouji}}iu
448
+                  </span>
449
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
450
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
451
+                   </span>
452
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
453
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
454
+                  </span>
455
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
456
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
457
+                  </span>
458
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
459
+                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
460
+                    </span>
461
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
462
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
463
+                   </span>
464
+                    </span> 
465
+                 
466
+                </div>
467
+                <div class="printCell" style="display:flex;justify-content: space-around;">
468
+                  <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
469
+                 <span style="display: block;width: 50%;">
470
+                     维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
471
+                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
472
+                    mg/h
473
+                  </span>
474
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
475
+                    mg/h
476
+                  </span>
477
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
478
+                   iu/h
479
+                  </span>
480
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
481
+                    mg/h
482
+                  </span>
483
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
484
+                    mg/h
485
+                   </span>
486
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
487
+                   iu/h
488
+                  </span>
489
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
490
+                   iu/h
491
+                   </span>
492
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
493
+                    iu/h
494
+                  </span>
495
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
496
+                    iu/h
497
+                  </span>
498
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
499
+                    iu/h
500
+                    </span>
501
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
502
+                    iu/h
503
+                   </span>
504
+                  </span>
505
+                
506
+                </div>
507
+                <div class="printCell" style="display:flex;justify-content: space-around;">
508
+                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
509
+                    <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138">ml</span> 
510
+                    <span v-else>L</span>
511
+                  </span>
512
+                  <span style="display: block;width: 50%;">
513
+                    总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
514
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">
515
+                    mg
516
+                  </span>
517
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
518
+                    mg
519
+                  </span>
520
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
521
+                    iu
522
+                  </span>
523
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
524
+                   mg
525
+                  </span>
526
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
527
+                    mg
528
+                   </span>
529
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
530
+                   iu
531
+                  </span>
532
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
533
+                    iu
534
+                   </span>
535
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
536
+                     iu
537
+                  </span>
538
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
539
+                   iu
540
+                  </span>
541
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
542
+                    iu
543
+                    </span>
544
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
545
+                   iu
546
+                   </span>
547
+                  </span>
548
+                </div>
549
+              </div>
550
+            </div>
551
+          </div>
552
+        </div>
553
+      </div>
554
+
555
+      <span slot="footer" class="dialog-footer">
556
+        <el-button @click="endVisibility = false">取 消</el-button>
557
+      </span>
558
+    </el-dialog>
559
+
560
+
389 561
     </div>
390 562
     <div style="width:75%" v-show="!showView">
391 563
       <div style="margin-left:60px;color:#34495e">
@@ -446,6 +618,7 @@
446 618
         :lastAssessment="lastAssessment"
447 619
         :stockType="stockType"
448 620
         :his_doctor_advices="his_doctor_advices"
621
+        :lastOrder="lastOrder"
449 622
       >
450 623
       </nav-igation>
451 624
 
@@ -866,10 +1039,12 @@ export default {
866 1039
       preparestock:[],
867 1040
       his_doctor_advices:[],
868 1041
       startVisibility:false,
1042
+      endVisibility:false,
869 1043
       printList:[],
870 1044
       anticoagulants_confit:null,
871 1045
       printDate:'',
872 1046
       assessmentAfterDislysis:{},
1047
+      lastOrder:{},
873 1048
     }
874 1049
   },
875 1050
   created() {
@@ -918,6 +1093,8 @@ export default {
918 1093
     this.getInitData()
919 1094
 
920 1095
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
1096
+
1097
+
921 1098
   },
922 1099
   beforeMount() {
923 1100
     if (this.websocket) {
@@ -980,9 +1157,8 @@ export default {
980 1157
 
981 1158
       steps[0].finish = this.prescription.id && this.prescription.creater > 0
982 1159
       steps[1].finish = this.receiver_treatment_access.id > 0
983
-      steps[2].finish =
984
-        this.predialysis_evaluation.id > 0 &&
985
-        this.predialysis_evaluation.creater > 0
1160
+      // steps[2].finish =this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0
1161
+      steps[2].finish =this.predialysis_evaluation.id > 0
986 1162
       steps[3].finish = this.doctor_advices.length > 0
987 1163
       steps[5].finish = this.dialysis_order.id > 0
988 1164
       steps[7].finish =
@@ -993,9 +1169,8 @@ export default {
993 1169
         this.double_check.creater > 0 &&
994 1170
         this.double_check.modifier > 0
995 1171
       steps[6].finish = this.monitor_records.length > 0
996
-      steps[8].finish =
997
-        this.assessment_after_dislysis.id > 0 &&
998
-        this.assessment_after_dislysis.creater > 0
1172
+      // steps[8].finish = this.assessment_after_dislysis.id > 0 && this.assessment_after_dislysis.creater > 0
1173
+      steps[8].finish = this.assessment_after_dislysis.id > 0
999 1174
       steps[9].finish = this.treatment_summary.id > 0
1000 1175
 
1001 1176
       return steps
@@ -1084,6 +1259,19 @@ export default {
1084 1259
     this.websocketSend(unObj)
1085 1260
   },
1086 1261
   methods: {
1262
+     getNewAge(UUserCard) {
1263
+      if (UUserCard != null && UUserCard != '') {
1264
+        // 获取年龄
1265
+        var myDate = new Date()
1266
+        var month = myDate.getMonth() + 1
1267
+        var day = myDate.getDate()
1268
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
1269
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
1270
+          age++
1271
+        }
1272
+        return age
1273
+      }
1274
+    },
1087 1275
     adviceFunc() {
1088 1276
       this.getScheduleDetail()
1089 1277
     },
@@ -1245,7 +1433,9 @@ export default {
1245 1433
           var system_prescribe = resp.data.system_prescribe
1246 1434
 
1247 1435
           var lastAssessment =  resp.data.lastAssessment
1248
-
1436
+          
1437
+          var lastOrder = resp.data.lastOrder
1438
+          this.lastOrder = lastOrder
1249 1439
           this.$refs.nav.setLastRecord(
1250 1440
             lastPredialysisEvaluation,
1251 1441
             lastMonitorRecord,

+ 2 - 6
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Näytä tiedosto

@@ -551,7 +551,7 @@ export default {
551 551
         var resp = rs.data
552 552
         if (resp.state == 1) {
553 553
             this.admin_users = resp.data.adminUser
554
-            var schedules = resp.data.scheduals
554
+            
555 555
          
556 556
             var config = resp.data.config
557 557
            
@@ -603,6 +603,7 @@ export default {
603 603
             }
604 604
            
605 605
            if(config.is_open == 0 || config.is_open == 2){
606
+            var schedules = resp.data.scheduals
606 607
             this.show = true
607 608
             this.showOne = false
608 609
             let arr = []
@@ -1008,11 +1009,6 @@ export default {
1008 1009
           )
1009 1010
         }
1010 1011
     },
1011
-    handleSelectionChange(val){
1012
-        // console.log('val',val)
1013
-        this.selecting_schs = val;
1014
-    },
1015
-
1016 1012
     querySearchAsync(keyword, cb) {
1017 1013
         let key = '';
1018 1014
         if (keyword != undefined) {

+ 60 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue Näytä tiedosto

@@ -744,6 +744,34 @@
744 744
           >打印</el-button
745 745
         >
746 746
       </template>
747
+      <template
748
+        v-if="
749
+          org_template_info.template_id == 60
750
+        "
751
+      >
752
+        <el-button
753
+          :loading="loading"
754
+          size="small"
755
+          icon="el-icon-printer"
756
+          @click="printThisPage"
757
+          type="primary"
758
+          >打印</el-button
759
+        >
760
+      </template>
761
+      <template
762
+        v-if="
763
+          org_template_info.template_id == 61
764
+        "
765
+      >
766
+        <el-button
767
+          :loading="loading"
768
+          size="small"
769
+          icon="el-icon-printer"
770
+          @click="printThisPage"
771
+          type="primary"
772
+          >打印</el-button
773
+        >
774
+      </template>
747 775
       
748 776
     </div>
749 777
     <div class="app-container" style="min-height: 0">
@@ -1168,6 +1196,14 @@
1168 1196
           v-bind:childResponse="childResponse"
1169 1197
             v-if="org_template_info.template_id == 59">
1170 1198
           </DialysisPrintOrderFiftyNine>
1199
+          <DialysisPrintOrderSixty
1200
+          v-bind:childResponse="childResponse"
1201
+            v-if="org_template_info.template_id == 60">
1202
+          </DialysisPrintOrderSixty>
1203
+          <DialysisPrintOrderSixtyOne
1204
+          v-bind:childResponse="childResponse"
1205
+            v-if="org_template_info.template_id == 61">
1206
+          </DialysisPrintOrderSixtyOne>
1171 1207
         </div>
1172 1208
       </el-container>
1173 1209
     </div>
@@ -1245,9 +1281,13 @@ import DialysisPrintOrderFiftySix from "./template/DialysisPrintOrderFiftySix";
1245 1281
 import DialysisPrintOrderFiftySeven from "./template/DialysisPrintOrderFiftySeven";
1246 1282
 import DialysisPrintOrderFiftyEight from "./template/DialysisPrintOrderFiftyEight";
1247 1283
 import DialysisPrintOrderFiftyNine from "./template/DialysisPrintOrderFiftyNine";
1284
+import DialysisPrintOrderSixty from "./template/DialysisPrintOrderSixty";
1285
+import DialysisPrintOrderSixtyOne from "./template/DialysisPrintOrderSixtyOne"
1248 1286
 export default {
1249 1287
   name: "dialysisPrintOrder",
1250 1288
   components: {
1289
+    DialysisPrintOrderSixtyOne,
1290
+    DialysisPrintOrderSixty,
1251 1291
     DialysisPrintOrderFiftyNine,
1252 1292
     DialysisPrintOrderFiftyEight,
1253 1293
     DialysisPrintOrderFiftySeven,
@@ -1467,7 +1507,7 @@ export default {
1467 1507
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1468 1508
       const style2 =
1469 1509
         // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1470
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;} .print_page_main_content .proj_table tbody tr{page-break-inside:avoid;} .print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1510
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;} .print_page_main_content .proj_table tbody tr{page-break-inside:avoid;} .print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1471 1511
       const style3 =
1472 1512
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1473 1513
       // const style3 =
@@ -1495,10 +1535,13 @@ export default {
1495 1535
       const style11 =
1496 1536
         '@media print {.dialysis-print-order{width:960px;margin:100px auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:30px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:15px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1497 1537
       // 雷州惠爱样式
1498
-      const style12 ='@page {margin-top:10px;}@media print {.dialysis-print-order{width:960px;margin:0 auto;margin-top:30px;} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .dialysis-print-order .print-table .short_tr th p{height:20px !important; line-height:20px !important;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .td_div1{display:flex;white-space: normal;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-table tr th p{height: 20px; line-height: 20px}  .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}  .dialysis-print-order tbody .print-table tr{page-break-inside:avoid;} .dialysis-print-order tbody .print-table tr td{border: 1px solid #000;} ';
1538
+      const style12 ='@page {margin-top:10px;}@media print {.dialysis-print-order{width:960px;margin:0 auto;margin-top:30px;} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .dialysis-print-order .print-table .short_tr th p{height:20px !important; line-height:20px !important;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;white-space:normal;height: fit-content;} .dialysis-print-order .td_div1{display:flex;white-space: normal;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-table tr th p{height: 20px; line-height: 20px}  .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}  .dialysis-print-order tbody .print-table tr{page-break-inside:avoid;} .dialysis-print-order tbody .print-table tr td{border: 1px solid #000;} ';
1499 1539
       // 金乡宏大样式
1500 1540
       const style13 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr{page-break-inside:avoid} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 390px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-4{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-4 .tr_3{border-bottom: 1px solid;}  .print-table-4 .td_3 {border-right: 1px solid;} .print-table-4 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-4 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-5{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-5 tr td_5{width:75px;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1501
-
1541
+      // 长沙南鸭样式
1542
+      const style14 =// 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1543
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: 0} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 0} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;} .print_page_main_content .proj_table tbody tr{page-break-inside:avoid;} .print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:left;border-collapse:collapse;line-height:25px;font-size:14px} ';
1544
+      
1502 1545
       if (this.org_template_info.template_id == 1) {
1503 1546
         printJS({
1504 1547
           printable: "dialysis-print-box",
@@ -1543,8 +1586,10 @@ export default {
1543 1586
         this.org_template_info.template_id == 11 ||
1544 1587
         this.org_template_info.template_id == 49 ||
1545 1588
         this.org_template_info.template_id == 50 ||
1546
-        this.org_template_info.template_id == 51 ||
1547
-        this.org_template_info.template_id == 58
1589
+        // this.org_template_info.template_id == 51 ||
1590
+        this.org_template_info.template_id == 58 ||
1591
+        this.org_template_info.template_id == 60 ||
1592
+        this.org_template_info.template_id == 61
1548 1593
       ) {
1549 1594
         printJS({
1550 1595
           printable: "dialysis-print-box-1",
@@ -1831,6 +1876,16 @@ export default {
1831 1876
           scanStyles: false,
1832 1877
         });
1833 1878
       } else if (
1879
+        this.org_template_info.template_id == 51
1880
+      ) {
1881
+        printJS({
1882
+          printable: "dialysis-print-box-1",
1883
+          type: "html",
1884
+          style: style14,
1885
+          scanStyles: false,
1886
+        });
1887
+        
1888
+      }else if (
1834 1889
         this.org_template_info.template_id == 52
1835 1890
       ) {
1836 1891
         printJS({

File diff suppressed because it is too large
+ 1548 - 0
src/xt_pages/dialysis/newDoctorAdvice.vue


+ 24 - 16
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Näytä tiedosto

@@ -587,15 +587,15 @@
587 587
               <label-box showValue="压疮" :isChecked="predialysis.skin == 8 ? true : false"></label-box>
588 588
               <label-box showValue="皮下淤血" :isChecked="predialysis.skin == 9 ? true : false"></label-box> -->
589 589
 
590
-              <label-box showValue="完整" :isChecked="predialysis.skin.indexOf('完整') >-1 ? true : false"></label-box>
591
-              <label-box showValue="干燥" :isChecked="predialysis.skin.indexOf('干燥') >-1? true : false"></label-box>
592
-              <label-box showValue="瘙痒" :isChecked="predialysis.skin.indexOf('瘙痒') >-1 ? true : false"></label-box>
593
-              <label-box showValue="菲薄" :isChecked="predialysis.skin.indexOf('菲薄') >-1 ? true : false"></label-box>/
594
-              <label-box showValue="水肿" :isChecked="predialysis.skin.indexOf('水肿') >-1? true : false"></label-box>
595
-              <label-box showValue="皮疹" :isChecked="predialysis.skin.indexOf('皮疹') >-1? true : false"></label-box>
596
-              <label-box showValue="出血点" :isChecked="predialysis.skin.indexOf('出血点') >-1 ? true : false"></label-box>
597
-              <label-box showValue="压疮" :isChecked="predialysis.skin.indexOf('压疮') >-1 ? true : false"></label-box>
598
-              <label-box showValue="皮下淤血" :isChecked="predialysis.skin.indexOf('皮下淤血') >-1 ? true : false"></label-box>
590
+              <label-box showValue="完整" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('完整') >-1 ? true : false"></label-box>
591
+              <label-box showValue="干燥" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('干燥') >-1? true : false"></label-box>
592
+              <label-box showValue="瘙痒" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('瘙痒') >-1 ? true : false"></label-box>
593
+              <label-box showValue="菲薄" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('菲薄') >-1 ? true : false"></label-box>/
594
+              <label-box showValue="水肿" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('水肿') >-1? true : false"></label-box>
595
+              <label-box showValue="皮疹" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('皮疹') >-1? true : false"></label-box>
596
+              <label-box showValue="出血点" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('出血点') >-1 ? true : false"></label-box>
597
+              <label-box showValue="压疮" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('压疮') >-1 ? true : false"></label-box>
598
+              <label-box showValue="皮下淤血" :isChecked="predialysis.skin!=''&&predialysis.skin.indexOf('皮下淤血') >-1 ? true : false"></label-box>
599 599
             </td>
600 600
           </tr>
601 601
           <tr>
@@ -1067,7 +1067,16 @@
1067 1067
               </span>
1068 1068
             </td>-->
1069 1069
             <td style="text-align:left;" colspan="6">
1070
-              <span style="display:inline-block;margin-left:15px;">质控护士签名:</span>
1070
+              <span style="display:inline-block;margin-left:15px;">质控护士签名:
1071
+                <span v-if="setAdminUserES(dialysisOrder.quality_nurse_id) == ''">
1072
+                    {{getAdminUser(dialysisOrder.quality_nurse_id)}}
1073
+                </span>
1074
+              <span
1075
+                v-else style="align-items:center;justify-content:space-around;height:36px;"
1076
+              >
1077
+                <img style="height:30px;" :src="setAdminUserES(dialysisOrder.quality_nurse_id)" alt srcset />
1078
+              </span>
1079
+              </span>
1071 1080
             </td>
1072 1081
           </tr>
1073 1082
         </table>
@@ -1261,7 +1270,8 @@ export default {
1261 1270
       vascularAccess: [],
1262 1271
       nursing_record: '',
1263 1272
       special_record: '',
1264
-      newTableAdvice: []
1273
+      newTableAdvice: [],
1274
+      qualityNurse:{}
1265 1275
     }
1266 1276
   },
1267 1277
   methods: {
@@ -1620,8 +1630,7 @@ export default {
1620 1630
           this.actual_treatment_hour = afterdialysis.actual_treatment_hour
1621 1631
           this.actual_treatment_minute = afterdialysis.actual_treatment_minute
1622 1632
           this.systolic_blood_pressure = afterdialysis.systolic_blood_pressure
1623
-          this.diastolic_blood_pressure =
1624
-            afterdialysis.diastolic_blood_pressure
1633
+          this.diastolic_blood_pressure = afterdialysis.diastolic_blood_pressure
1625 1634
           this.afterdialysis = afterdialysis
1626 1635
           // eslint-disable-next-line no-unused-vars
1627 1636
           var doctoradvce = response.data.data.doctorAdvice
@@ -1834,7 +1843,7 @@ export default {
1834 1843
           // console.log('下机护士', finish_nurse)
1835 1844
           this.finshForm.url = finish_nurse.url
1836 1845
           this.finshForm.finish_nurse = finish_nurse.user_name
1837
-
1846
+        
1838 1847
           var doctorname = response.data.data.DoctorName
1839 1848
           // console.log('医师签名', doctorname)
1840 1849
           this.doctorForm.doctor = doctorname.user_name
@@ -1847,8 +1856,7 @@ export default {
1847 1856
           this.prescription_dewatering = dialysisway.prescription_dewatering
1848 1857
           this.blood_flow_volume = dialysisway.blood_flow_volume
1849 1858
           this.dialysate_flow = dialysisway.dialysate_flow
1850
-          this.dialyzer_perfusion_apparatus =
1851
-            dialysisway.dialyzer_perfusion_apparatus
1859
+          this.dialyzer_perfusion_apparatus =dialysisway.dialyzer_perfusion_apparatus
1852 1860
           this.dialysate_formulation = dialysisway.dialysate_formulation
1853 1861
           this.blood_access = dialysisway.blood_access
1854 1862
           this.displace_liqui = dialysisway.displace_liqui

+ 4 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyEight.vue Näytä tiedosto

@@ -1109,7 +1109,10 @@
1109 1109
                           "
1110 1110
                           width="50"
1111 1111
                         >
1112
-                          置换量<br />(ml)
1112
+                          置换量<br />
1113
+                          <span v-if="org_id == 10387">(L)</span>
1114
+                          <span v-else>(ml)</span>
1115
+                          
1113 1116
                         </td>
1114 1117
                         <td width="50" v-if="org_id == 9919 || org_id == 9538|| org_id == 9675">KT/V</td>
1115 1118
                         <td width="50" v-if="org_id == 9538|| org_id == 9675">血容量<br />(L)</td>

+ 20 - 202
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyNine.vue Näytä tiedosto

@@ -113,34 +113,6 @@
113 113
             >
114 114
               {{ item.name }}
115 115
             </div>
116
-            <!--<div-->
117
-            <!--class="under_line"-->
118
-            <!--v-if="receiverTreatmentAccess.way == 1"-->
119
-            <!--style="width: 180px;text-align: left"-->
120
-            <!--&gt;-->
121
-            <!--步行-->
122
-            <!--</div>-->
123
-            <!--<div-->
124
-            <!--class="under_line"-->
125
-            <!--v-if="receiverTreatmentAccess.way == 2"-->
126
-            <!--style="width: 180px;text-align: left"-->
127
-            <!--&gt;-->
128
-            <!--扶行-->
129
-            <!--</div>-->
130
-            <!--<div-->
131
-            <!--class="under_line"-->
132
-            <!--v-if="receiverTreatmentAccess.way == 3"-->
133
-            <!--style="width: 180px;text-align: left"-->
134
-            <!--&gt;-->
135
-            <!--轮椅-->
136
-            <!--</div>-->
137
-            <!--<div-->
138
-            <!--class="under_line"-->
139
-            <!--v-if="receiverTreatmentAccess.way == 4"-->
140
-            <!--style="width: 180px;text-align: left"-->
141
-            <!--&gt;-->
142
-            <!--平车-->
143
-            <!--</div>-->
144 116
           </div>
145 117
 
146 118
           <div class="inline_block" style="margin-left: 10px">
@@ -1007,9 +979,11 @@
1007 979
                         }}
1008 980
                       </div>
1009 981
                       <span v-if="prescription.anticoagulant == 4">mg</span>
982
+                      <span v-if="prescription.anticoagulant == 6">iu</span>
1010 983
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1011 984
                       <span v-if="prescription.anticoagulant == 2">mg</span>
1012 985
                       <span v-if="prescription.anticoagulant == 1">mg</span>
986
+                      <span v-if="prescription.anticoagulant == 7">iu</span>
1013 987
                     </div>
1014 988
                     <div class="inline_block" style="margin-left: 20px">
1015 989
                       维持:
@@ -1035,6 +1009,8 @@
1035 1009
                             : "0"
1036 1010
                         }}
1037 1011
                       </div>
1012
+                      <span v-if="prescription.anticoagulant == 7">iu/h</span>
1013
+                      <span v-if="prescription.anticoagulant == 6">iu/h</span>
1038 1014
                       <span v-if="prescription.anticoagulant == 5">ml/h</span>
1039 1015
                       <span v-if="prescription.anticoagulant == 4">mg/h</span>
1040 1016
                       <span v-if="prescription.anticoagulant == 3">iu/h</span>
@@ -1092,6 +1068,8 @@
1092 1068
                             : "/"
1093 1069
                         }}
1094 1070
                       </div>
1071
+                      <span v-if="prescription.anticoagulant == 6">iu</span>
1072
+                      <span v-if="prescription.anticoagulant == 7">iu</span>
1095 1073
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1096 1074
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1097 1075
                       <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -1166,7 +1144,7 @@
1166 1144
                       <tr>
1167 1145
                         <td width="60">时间</td>
1168 1146
                         <td width="60">体温<br />(℃)</td>
1169
-                        <td width="60">血压<br />(mmHg)</td>
1147
+                        <td width="70">血压<br />(mmHg)</td>
1170 1148
                         <td width="50">脉搏<br />(次/分)</td>
1171 1149
                         <td width="50">呼吸<br />(次/分)</td>
1172 1150
                         <td width="50">血流量<br />(ml/min)</td>
@@ -1186,25 +1164,8 @@
1186 1164
                               : "mmHg"
1187 1165
                           }})
1188 1166
                         </td>
1189
-                        <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
1190
-                        <td width="60" v-if="org_id == 9836">体温(°C)</td>
1191
-
1192
-                        <td
1193
-                          width="50"
1194
-                          v-if="
1195
-                            org_id != 10121 && org_id != 9675 && org_id != 0
1196
-                          "
1197
-                        >
1198
-                          电导度<br />(ms/cm)
1199
-                        </td>
1200
-                        <td
1201
-                          width="50"
1202
-                          v-if="
1203
-                            org_id == 10121 || org_id == 9675 || org_id == 0
1204
-                          "
1205
-                        >
1206
-                          SpO₂<br />(%)
1207
-                        </td>
1167
+                        <td width="60">透析液温度(°C)</td>
1168
+                        <td width="50">电导度<br />(ms/cm)</td>
1208 1169
                         <td width="50">超滤量<br />(ml)</td>
1209 1170
                         <td
1210 1171
                           v-if="
@@ -1216,68 +1177,17 @@
1216 1177
                         >
1217 1178
                           置换量<br />(ml)
1218 1179
                         </td>
1219
-                        <td width="200" v-if="org_id == 9919">ktv</td>
1220 1180
                         <td width="200">病情变化及处理</td>
1221
-
1222
-                        <!-- <td width="100">时间</td>
1223
-                    <td width="30">T<br>C°</td>
1224
-                    <td width="30">P<br/>次/分</td>
1225
-                    <td width="30">R<br/>次/分</td>
1226
-                    <td width="100">BP<br/>mmHg</td>
1227
-                    <td width="60">静脉压/动脉压<br/>mmHg</td>
1228
-                    <td width="80">血流量<br/>ml/min</td>
1229
-                    <td width="90">超滤量累计L</td>
1230
-                    <td width="80">钠浓度<br/>mmol/L</td>
1231
-                    <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
1232
-                    <td  width="100">护士签名</td> -->
1233 1181
                       </tr>
1234
-
1235
-                      <tr
1236
-                        v-for="(monitor, monindex) in monitors"
1237
-                        :key="monindex"
1238
-                      >
1182
+                      <tr v-for="(monitor, monindex) in monitors" :key="monindex">
1239 1183
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1240
-                        <td>
1241
-                          {{
1242
-                            monitor.systolic_blood_pressure
1243
-                              ? monitor.systolic_blood_pressure + "/"
1244
-                              : ""
1245
-                          }}
1246
-                          {{
1247
-                            monitor.diastolic_blood_pressure
1248
-                              ? monitor.diastolic_blood_pressure
1249
-                              : ""
1250
-                          }}
1251
-                        </td>
1252
-                        <td>
1253
-                          {{ monitor.temperature ? monitor.temperature : "" }}
1254
-                        </td>
1255
-                        <td>
1256
-                          {{
1257
-                            monitor.pulse_frequency
1258
-                              ? monitor.pulse_frequency
1259
-                              : ""
1260
-                          }}
1261
-                        </td>
1262
-                        <td>
1263
-                          {{
1264
-                            monitor.breathing_rate ? monitor.breathing_rate : ""
1265
-                          }}
1266
-                        </td>
1267
-                        <td>
1268
-                          {{
1269
-                            monitor.blood_flow_volume
1270
-                              ? monitor.blood_flow_volume
1271
-                              : ""
1272
-                          }}
1273
-                        </td>
1274
-                        <td>
1275
-                          {{
1276
-                            monitor.venous_pressure
1277
-                              ? monitor.venous_pressure
1278
-                              : ""
1279
-                          }}
1280
-                        </td>
1184
+                        <td>{{ monitor.temperature ? monitor.temperature : "" }}</td>
1185
+                        <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/" : ""}}
1186
+                            {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1187
+                        <td>{{monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1188
+                        <td>{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1189
+                        <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1190
+                        <td>{{monitor.venous_pressure? monitor.venous_pressure: ""}}</td>
1281 1191
                         <td>
1282 1192
                           <span
1283 1193
                             v-if="
@@ -3139,16 +3049,15 @@ export default {
3139 3049
         for (let index = 0; index < this.monitors.length; index++) {
3140 3050
           const monitor = this.monitors[index];
3141 3051
           this.monitors[index].end = "";
3142
-          if (Object.keys(monitor).length > 0 && index >= 1) {
3052
+          if (Object.keys(monitor).length > 0 && index > 1) {
3143 3053
             if (
3144 3054
               this.dialysisOrder &&
3145 3055
               monitor.operate_time == this.dialysisOrder.end_time
3146 3056
             ) {
3147 3057
               this.monitors[index].end = "【结束透析】";
3148
-
3149 3058
               tempmonitorflag = false;
3150 3059
             }
3151
-            if (tempmonitorflag == false && index == this.monitors.length - 1) {
3060
+            if (tempmonitorflag && index == this.monitors.length - 1) {
3152 3061
               this.monitors[index].end = "【结束透析】";
3153 3062
             }
3154 3063
           }
@@ -3217,84 +3126,6 @@ export default {
3217 3126
           this.doctor_advices[index]["isShow"] = 2;
3218 3127
         }
3219 3128
 
3220
-        // if (this.doctor_advices.length > 0) {
3221
-        //   var group = this.newAdviceGroupObject()
3222
-        //   var initGroupBlock = function(group, advice) {
3223
-        //     group.group_no = advice.groupno
3224
-        //   }
3225
-        //   for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
3226
-        //     var new_advice_index = 0
3227
-
3228
-        //     if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
3229
-        //       new_advice_index = index + this.doctor_advices[index].children.length + 1
3230
-
3231
-        //       var doctor_advice = {
3232
-        //         delivery_way: this.doctor_advices[index].delivery_way,
3233
-        //         execution_frequency: this.doctor_advices[index].execution_frequency,
3234
-        //         groupno: this.doctor_advices[index].groupno,
3235
-        //         id: this.doctor_advices[index].id,
3236
-        //         parent_id: this.doctor_advices[index].parent_id,
3237
-        //         children: this.doctor_advices[index].children,
3238
-        //         remark: this.doctor_advices[index].remark,
3239
-        //         execution_staff: this.doctor_advices[index].execution_staff,
3240
-        //         checker: this.doctor_advices[index].checker,
3241
-        //         execution_time: this.doctor_advices[index].execution_time,
3242
-        //         advice_doctor: this.doctor_advices[index].advice_doctor
3243
-
3244
-        //       }
3245
-        //       doctor_advice['isShow'] = 1
3246
-        //       this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
3247
-        //       // this.doctor_advices.push(doctor_advice)
3248
-        //     }
3249
-        //   }
3250
-
3251
-        //   for (let index = 0; index < this.doctor_advices.length; index++) {
3252
-        //     const advice = this.doctor_advices[index]
3253
-        //     if (advice.groupno == 0) {
3254
-        //       // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
3255
-        //       if (advice.parent_id > 0) {
3256
-        //         if (this.advice_groups.length > 0) {
3257
-        //           var parent_group = this.advice_groups[
3258
-        //             this.advice_groups.length - 1
3259
-        //           ]
3260
-        //           if (parent_group.advices.length > 0) {
3261
-        //             if (parent_group.advices[0].id == advice.parent_id) {
3262
-        //               parent_group.advices.push(advice)
3263
-        //             }
3264
-        //           }
3265
-        //         }
3266
-        //         continue
3267
-        //       } else {
3268
-        //         if (group.group_no > 0) {
3269
-        //           this.advice_groups.push(group)
3270
-        //           group = this.newAdviceGroupObject()
3271
-        //         }
3272
-
3273
-        //         initGroupBlock(group, advice)
3274
-        //         group.advices.push(advice)
3275
-        //         this.advice_groups.push(group)
3276
-        //         group = this.newAdviceGroupObject()
3277
-        //         continue
3278
-        //       }
3279
-        //     }
3280
-
3281
-        //     if (group.group_no > 0 && group.group_no != advice.groupno) {
3282
-        //       this.advice_groups.push(group)
3283
-        //       group = this.newAdviceGroupObject()
3284
-        //     }
3285
-        //     if (group.group_no == 0) {
3286
-        //       initGroupBlock(group, advice)
3287
-        //     }
3288
-        //     if (group.group_no == advice.groupno) {
3289
-        //       group.advices.push(advice)
3290
-        //     }
3291
-        //   }
3292
-
3293
-        //   if (group.group_no > 0) {
3294
-        //     // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
3295
-        //    this.advice_groups.push(group)
3296
-        //   }
3297
-        // }
3298 3129
         if (this.doctor_advices.length <= 6) {
3299 3130
           var nl = 6;
3300 3131
           this.print_length = 6;
@@ -3311,21 +3142,9 @@ export default {
3311 3142
           }
3312 3143
         }
3313 3144
 
3314
-        if (this.org_id == 10330 || this.org_id == 0 || this.org_id == 9675) {
3315
-          let newArr = [];
3316
-          this.doctor_advices.forEach((o) => {
3317
-            if (o.delivery_way && o.delivery_way != "") {
3318
-              if (o.delivery_way.indexOf("注射") > -1) {
3319
-                newArr.push(o);
3320
-              }
3321
-            }
3322
-          });
3323
-          this.doctor_advices = newArr;
3324
-        }
3325
-
3326 3145
         this.totollength = this.doctor_advices.length + this.monitors.length;
3327 3146
         if (this.totollength > 18) {
3328
-          var temp_advice_length = 17 - this.monitors.length;
3147
+          var temp_advice_length = 14 - this.monitors.length;
3329 3148
           var doctor_advices_1 = [];
3330 3149
           var doctor_advices_2 = [];
3331 3150
           for (let index = 0; index < this.doctor_advices.length; index++) {
@@ -3347,7 +3166,6 @@ export default {
3347 3166
       }
3348 3167
       // })
3349 3168
     },
3350
-
3351 3169
     bloodAccessParOperaName(id) {
3352 3170
       if (id in this.bloodAccessParOpera) {
3353 3171
         return this.bloodAccessParOpera[id].name;

File diff suppressed because it is too large
+ 3122 - 1515
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue


+ 14 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue Näytä tiedosto

@@ -42,9 +42,7 @@
42 42
                     <td colspan="11" style="padding-left: 10px">
43 43
                       <div style="display: flex">
44 44
                         <div style="width: 250px">
45
-                          病情评估:&nbsp;<span>{{
46
-                            sick_condition ? sick_condition : ""
47
-                          }}</span>
45
+                          病情评估:&nbsp;<span>{{sick_condition ? sick_condition : ""}}</span>
48 46
                         </div>
49 47
                         <div style="width: 250px">
50 48
                           入科方式:&nbsp;<span
@@ -57,7 +55,7 @@
57 55
                           </span>
58 56
                         </div>
59 57
                         <div style="width: 250px">
60
-                          透析次数:&nbsp;<span>
58
+                          透析次数:&nbsp;<span>
61 59
                             {{
62 60
                               patientInfo.total_dialysis +
63 61
                               patientInfo.user_sys_before_count
@@ -67,6 +65,17 @@
67 65
                       </div>
68 66
                     </td>
69 67
                   </tr>
68
+                  <tr class="list_table_1">
69
+                     <td colspan="11" style="padding-left: 10px">
70
+                      <div style="display: flex">
71
+                        <div style="width: 100%">
72
+                          病情描述:&nbsp;<span>{{
73
+                            receiverTreatmentAccess.sick_condition_other ? receiverTreatmentAccess.sick_condition_other : ""
74
+                          }}</span>
75
+                        </div>
76
+                      </div>
77
+                     </td>
78
+                  </tr>
70 79
                   <tr class="list_table_1">
71 80
                     <td
72 81
                       width="250"
@@ -939,7 +948,7 @@
939 948
                         : 0
940 949
                     }}kg
941 950
                   </td>
942
-                  <td v-if="advice_index === 4" width="145">脱水量:</td>
951
+                  <td v-if="advice_index === 4" width="145">机器显示脱水量:</td>
943 952
                   <td v-if="advice_index === 4" width="60">
944 953
                     {{
945 954
                       patientInfo.total_dialysis +

File diff suppressed because it is too large
+ 814 - 763
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue


+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue Näytä tiedosto

@@ -815,7 +815,7 @@
815 815
                               }})
816 816
                             </td>
817 817
                             <td width="60">透析液温度(°C)</td>
818
-                            <td width="50">电导度<br />(ms/cm)</td>
818
+                            <!-- <td width="50">电导度<br />(ms/cm)</td> -->
819 819
                             <td width="50">超滤率<br />ml/h</td>
820 820
                             <td width="50">超滤量<br />(ml)</td>
821 821
 
@@ -890,11 +890,11 @@
890 890
                               }}
891 891
                             </td>
892 892
                             <!-- 电导度 -->
893
-                            <td>
893
+                            <!-- <td>
894 894
                               {{
895 895
                                 monitor.conductivity ? monitor.conductivity : ""
896 896
                               }}
897
-                            </td>
897
+                            </td> -->
898 898
                             <!-- 超滤率 -->
899 899
                             <td>
900 900
                               {{

+ 6 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Näytä tiedosto

@@ -198,7 +198,8 @@
198 198
                       <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
199 199
                       <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
200 200
                       <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
201
-                      <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp;
201
+                      <span v-if="prescription.anticoagulant == '低分子肝素钠'&&(org_id!=9990&&org_id!=9675)">iu</span>&nbsp;
202
+                      <span v-if="prescription.anticoagulant == '低分子肝素钠'&&(org_id==9990||org_id==9675)">mg</span>&nbsp;
202 203
                     </td>
203 204
                     <td style="text-align:left;margin-left:15px">
204 205
                       维持:
@@ -211,7 +212,8 @@
211 212
                       <span v-if="prescription.anticoagulant == '普通肝素'">mg/h</span>
212 213
                       <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
213 214
                       <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
214
-                      <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>
215
+                      <span v-if="prescription.anticoagulant == '低分子肝素钠'&&(org_id!=9990&&org_id!=9675)">iu/h</span>
216
+                      <span v-if="prescription.anticoagulant == '低分子肝素钠'&&(org_id==9990||org_id==9675)">mg/h</span>&nbsp;
215 217
                     </td>
216 218
                     <td style="text-align:left;margin-left:15px">
217 219
                       总量:<span class="under-line">
@@ -223,7 +225,8 @@
223 225
                       <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
224 226
                       <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
225 227
                       <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
226
-                      <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
228
+                      <span v-if="prescription.anticoagulant == '低分子肝素钠'&&(org_id!=9990&&org_id!=9675)">iu</span>
229
+                      <span v-if="prescription.anticoagulant == '低分子肝素钠'&&(org_id==9990||org_id==9675)">mg</span>&nbsp;
227 230
                     </td>
228 231
                   </tr>
229 232
                   <tr>

+ 52 - 41
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Näytä tiedosto

@@ -59,7 +59,7 @@
59 59
           <div class="inline_block">
60 60
             病区:
61 61
             <div class="under_line" style="width: 50px; text-align: center">
62
-              <span v-if="org_id == 10121||org_id == 10138">{{
62
+              <span v-if="org_id == 10121||org_id == 10138||org_id == 10414">{{
63 63
                 patientInfo.DialysisSchedule.device_zone.name
64 64
                   ? patientInfo.DialysisSchedule.device_zone.name
65 65
                   : ""
@@ -70,7 +70,7 @@
70 70
           <div class="inline_block">
71 71
             床号:
72 72
             <div class="under_line" style="width: 50px; text-align: center">
73
-              <span v-if="org_id == 10121">{{
73
+              <span v-if="org_id == 10121||org_id == 10414">{{
74 74
                 dialysisOrder &&
75 75
                 dialysisOrder.DeviceNumber &&
76 76
                 dialysisOrder.DeviceNumber.number.length > 0
@@ -86,20 +86,15 @@
86 86
               {{ patientInfo.dialysis_no }}
87 87
             </div>
88 88
           </div>
89
-          <div class="inline_block" style="margin-left: 5px">
89
+          <div class="inline_block" style="margin-left: 5px;">
90 90
             住院号/门诊号:
91
-            <div
92
-              class="under_line"
93
-              style="width: 70px; text-align: left"
94
-              v-if="receiverTreatmentAccess.admission_number"
95
-            >
91
+            <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
96 92
               {{ receiverTreatmentAccess.admission_number }}
97 93
             </div>
98
-            <div
99
-              class="under_line"
100
-              style="width: 70px; text-align: left"
101
-              v-else
102
-            >
94
+            <div class="under_line" style="width: 70px;text-align: left" v-else-if="patientInfo.admission_number">
95
+              {{ patientInfo.admission_number }}
96
+            </div>
97
+            <div class="under_line" style="width: 70px;text-align: left" v-else>
103 98
               {{ "/" }}
104 99
             </div>
105 100
           </div>
@@ -429,7 +424,7 @@
429 424
                     style="padding: 2px 0; line-height: 23px; display: flex"
430 425
                   >
431 426
                     <div class="inline_block" style="flex: 1">
432
-                      <span v-if="org_id==10138||org_id==9675">治疗模式:</span>
427
+                      <span v-if="org_id==10138">治疗模式:</span>
433 428
                       <span v-else>透析方式:</span>
434 429
                       <div
435 430
                         class="under_line"
@@ -775,9 +770,10 @@
775 770
                     class="row"
776 771
                     style="padding: 2px 0; line-height: 23px; display: flex"
777 772
                   >
778
-                    <div class="inline_block" style="flex: 1" v-if="org_id!=10290&&org_id!=9675">
773
+                    <div class="inline_block" style="flex: 1" v-if="org_id!=10290">
779 774
                       透析(滤)器:
780
-                      <div
775
+                      <!--  透析(滤)器分开取值 -->
776
+                      <div v-if="org_id!=10414"
781 777
                         class="under_line"
782 778
                         style="width: 100px; text-align: center"
783 779
                       >
@@ -793,8 +789,21 @@
793 789
                             : ""
794 790
                         }}
795 791
                       </div>
792
+                      <!--  透析(滤)器合并取值 -->
793
+                       <div v-if="org_id==10414"
794
+                        class="under_line"
795
+                        style="width: 100px; text-align: center"
796
+                      >
797
+                        {{
798
+                          prescription.dialyzer_perfusion_apparatus
799
+                            ? prescription.dialyzer_perfusion_apparatus
800
+                            : ""
801
+                        }}
802
+                      </div>
803
+
796 804
                     </div>
797
-                    <div class="inline_block" style="flex: 1" v-if="org_id!=10290&&org_id!=9675">
805
+
806
+                    <div class="inline_block" style="flex: 1" v-if="org_id!=10290">
798 807
                       灌流器:
799 808
                       <div
800 809
                         class="under_line"
@@ -807,7 +816,7 @@
807 816
                         }}
808 817
                       </div>
809 818
                     </div>
810
-                    <div class="inline_block" style="flex: 1" v-if="org_id==10290||org_id==9675">
819
+                    <div class="inline_block" style="flex: 1" v-if="org_id==10290">
811 820
                       透析器/灌流器:
812 821
                       <div
813 822
                         class="under_line"
@@ -912,7 +921,7 @@
912 921
                       kg
913 922
                     </div>
914 923
                     <div class="inline_block" style="flex: 1">
915
-                      计划超滤量:
924
+                      计划超滤量: 
916 925
                       <div
917 926
                         class="under_line"
918 927
                         style="width: 100px; text-align: center"
@@ -923,7 +932,8 @@
923 932
                             : "/"
924 933
                         }}
925 934
                       </div>
926
-                      L
935
+                      <span v-if="org_id == 10395">ml</span> 
936
+                      <span v-else>L</span>
927 937
                     </div>
928 938
                     <div class="inline_block" style="flex: 1">
929 939
                       干体重:
@@ -1215,7 +1225,7 @@
1215 1225
                         <td
1216 1226
                           width="50"
1217 1227
                           v-if="
1218
-                            org_id != 10121 && org_id != 9675 && org_id != 0
1228
+                            org_id != 10121
1219 1229
                           "
1220 1230
                         >
1221 1231
                           电导度<br />(ms/cm)
@@ -1223,7 +1233,7 @@
1223 1233
                         <td
1224 1234
                           width="50"
1225 1235
                           v-if="
1226
-                            org_id == 10121 || org_id == 9675 || org_id == 0
1236
+                            org_id == 10121
1227 1237
                           "
1228 1238
                         >
1229 1239
                           SpO₂<br />(%)
@@ -1239,8 +1249,8 @@
1239 1249
                         >
1240 1250
                           置换量<br />(ml)
1241 1251
                         </td>
1242
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538|| org_id == 9675">KT/V</td>
1243
-                        <td width="50" v-if="org_id == 9538|| org_id == 9675">血容量<br />(L)</td>
1252
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538">KT/V</td>
1253
+                        <td width="50" v-if="org_id == 9538">血容量<br />(L)</td>
1244 1254
                         <td width="200">病情变化及处理</td>
1245 1255
 
1246 1256
                         <!-- <td width="100">时间</td>
@@ -1314,7 +1324,7 @@
1314 1324
 
1315 1325
                         <td
1316 1326
                           v-if="
1317
-                            org_id == 10121 || org_id == 9675 || org_id == 0
1327
+                            org_id == 10121
1318 1328
                           "
1319 1329
                         >
1320 1330
                           {{
@@ -1328,9 +1338,7 @@
1328 1338
                         <td
1329 1339
                           v-if="
1330 1340
                             org_id != 9538 &&
1331
-                            org_id != 10121 &&
1332
-                            org_id != 9675 &&
1333
-                            org_id != 0
1341
+                            org_id != 10121
1334 1342
                           "
1335 1343
                         >
1336 1344
                           {{ monitor.conductivity ? monitor.conductivity : "" }}
@@ -1376,10 +1384,10 @@
1376 1384
                             }}
1377 1385
                           </span>
1378 1386
                         </td>
1379
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538|| org_id == 9675">
1387
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538">
1380 1388
                           {{ monitor.ktv }}
1381 1389
                         </td>
1382
-                        <td width="50" v-if="org_id == 9538|| org_id == 9675">
1390
+                        <td width="50" v-if="org_id == 9538">
1383 1391
                           {{ monitor.accumulated_blood_volume }}
1384 1392
                         </td>
1385 1393
                         <td style="line-height: 16px; padding: 0px">
@@ -1404,12 +1412,13 @@
1404 1412
                             >
1405 1413
                               <template
1406 1414
                                 v-if="
1407
-                                  dialysisOrder &&
1415
+                                  (dialysisOrder &&
1408 1416
                                   monitor.operate_time ==
1409
-                                    dialysisOrder.start_time
1417
+                                    dialysisOrder.start_time)&&(org_id!=10414)
1410 1418
                                 "
1411
-                                >【开始透析】</template
1412
-                              >
1419
+                                >【开始透析】
1420
+                                </template>
1421
+                              
1413 1422
                               {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{
1414 1423
                                 monitor.dispose
1415 1424
                               }}
@@ -1440,8 +1449,8 @@
1440 1449
                           "
1441 1450
                           width="50"
1442 1451
                         ></td>
1443
-                        <td v-if="org_id == 9919||org_id == 9538|| org_id == 9675"></td>
1444
-                        <td v-if="org_id == 9538|| org_id == 9675"></td>
1452
+                        <td v-if="org_id == 9919||org_id == 9538"></td>
1453
+                        <td v-if="org_id == 9538"></td>
1445 1454
                         <td style="line-height: 16px; padding: 0px">
1446 1455
                           <div
1447 1456
                             style="
@@ -2400,7 +2409,9 @@
2400 2409
                       </div>
2401 2410
                     </div>
2402 2411
                     <div class="inline_block" style="flex: 1">
2403
-                      治疗护士:
2412
+                      <span v-if="org_id==10414">责任护士:</span> 
2413
+                      <span v-else>治疗护士:</span> 
2414
+                      
2404 2415
                       <div
2405 2416
                         class="under_line"
2406 2417
                         style="width: 80px; text-align: center"
@@ -2439,7 +2450,7 @@
2439 2450
                       </div>
2440 2451
                     </div>
2441 2452
                     <div class="inline_block" style="flex: 1">
2442
-                      <span v-if="org_id==10387||org_id==9675" >核对护士:</span> 
2453
+                      <span v-if="org_id==10387" >核对护士:</span> 
2443 2454
                       <span v-else >核对人员:</span> 
2444 2455
                       <div
2445 2456
                         class="under_line"
@@ -3313,13 +3324,13 @@ export default {
3313 3324
           this.monitors[index].end = "";
3314 3325
           if (Object.keys(monitor).length > 0 && index > 1) {
3315 3326
             if (
3316
-              this.dialysisOrder &&
3317
-              monitor.operate_time == this.dialysisOrder.end_time
3327
+              (this.dialysisOrder &&
3328
+              monitor.operate_time == this.dialysisOrder.end_time)&&(this.org_id!=10414)
3318 3329
             ) {
3319 3330
               this.monitors[index].end = "【结束透析】";
3320 3331
               tempmonitorflag = false;
3321 3332
             }
3322
-            if (tempmonitorflag && index == this.monitors.length - 1) {
3333
+            if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
3323 3334
               this.monitors[index].end = "【结束透析】";
3324 3335
             }
3325 3336
           }

File diff suppressed because it is too large
+ 3495 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue


File diff suppressed because it is too large
+ 3843 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyOne.vue


+ 2 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue Näytä tiedosto

@@ -1182,6 +1182,8 @@
1182 1182
                 <table class="table-box">
1183 1183
                   <tbody>
1184 1184
                     <tr>
1185
+                      <td width="50">KT/V:</td>
1186
+                      <td width="70" style="text-align:left;border-bottom: 1px solid;">{{afterdialysis.ktv}}</td>
1185 1187
                       <td width="50">去向:</td>
1186 1188
                       <td width="300">
1187 1189
                         <div style="display:flex;justify-content:space-between;">

+ 20 - 1
src/xt_pages/hospitalStation/components/chargeDialog.vue Näytä tiedosto

@@ -9,13 +9,15 @@
9 9
       </el-form-item>
10 10
 
11 11
       <el-form-item
12
+        
12 13
         label="总计:"
13 14
         prop="name"
14 15
         :validate-event="is_Name"
15 16
         style="width: 33%"
16 17
       >
17 18
         <el-input
18
-          style="color: black"
19
+          class="number_style"
20
+          style="color: black;font-weight:bolder;"
19 21
           type="number"
20 22
           v-model="form.total"
21 23
           :disabled="true"
@@ -28,6 +30,7 @@
28 30
         style="width: 33%"
29 31
       >
30 32
         <el-input
33
+         class="number_style"
31 34
           style="color: black"
32 35
           type="number"
33 36
           v-model="form.medical_insurance_price"
@@ -36,12 +39,14 @@
36 39
       </el-form-item>
37 40
 
38 41
       <el-form-item
42
+       
39 43
         label="自费:"
40 44
         prop="age"
41 45
         :validate-event="is_Name"
42 46
         style="width: 33%"
43 47
       >
44 48
         <el-input
49
+        class="number_style"
45 50
           style="color: black"
46 51
           type="number"
47 52
           v-model="form.private_price"
@@ -50,12 +55,14 @@
50 55
       </el-form-item>
51 56
 
52 57
       <el-form-item
58
+       
53 59
         label="个账支出:"
54 60
         prop="age"
55 61
         :validate-event="is_Name"
56 62
         style="width: 33%"
57 63
       >
58 64
         <el-input
65
+        class="number_style"
59 66
           style="color: black"
60 67
           type="number"
61 68
           v-model="form.acct_pay"
@@ -70,6 +77,7 @@
70 77
         style="width: 33%"
71 78
       >
72 79
         <el-input
80
+         class="number_style"
73 81
           style="color: black"
74 82
           type="number"
75 83
           v-model="form.psn_pay"
@@ -102,6 +110,7 @@
102 110
 
103 111
       <el-form-item label="付款金额:" prop="id_card">
104 112
         <el-input
113
+         class="number_style"
105 114
           style="color: black"
106 115
           type="number"
107 116
           v-model="form.pay_price"
@@ -127,6 +136,7 @@
127 136
       <el-form-item class="specialFormItem" label="优惠金额:">
128 137
         <div style="display: flex">
129 138
           <el-input
139
+           class="number_style"
130 140
             style="color: black"
131 141
             v-model="form.preferential_price"
132 142
             :disabled="form.discount_price != 0"
@@ -137,6 +147,7 @@
137 147
       <el-form-item label="实收金额:">
138 148
         <div style="display: flex">
139 149
           <el-input
150
+           class="number_style"
140 151
             style="color: black"
141 152
             v-model="form.reality_price"
142 153
             @change="realityPrice"
@@ -146,6 +157,7 @@
146 157
       <el-form-item label="找回金额:">
147 158
         <div style="display: flex">
148 159
           <el-input
160
+           class="number_style"
149 161
             style="color: black"
150 162
             v-model.number="form.found_price"
151 163
           ></el-input>
@@ -472,4 +484,11 @@
472 484
 outline:none;
473 485
 border: 1px solid #66b1ff;
474 486
 }
487
+
488
+/deep/ .number_style{
489
+  .el-input__inner{
490
+    font-weight: bolder;
491
+  }
492
+  
493
+}
475 494
 </style>

+ 1 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue Näytä tiedosto

@@ -2364,6 +2364,7 @@ export default {
2364 2364
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2365 2365
                   this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2366 2366
                   this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
2367
+                  
2367 2368
 
2368 2369
                 }
2369 2370
 

+ 17 - 6
src/xt_pages/hospitalStation/doctorDesk.vue Näytä tiedosto

@@ -1232,7 +1232,8 @@
1232 1232
                     remark: prescription.project[b].remark,
1233 1233
                     medical_code: prescription.project[b].project.medical_code,
1234 1234
                     unit: prescription.project[b].unit,
1235
-                    type: prescription.project[b].type
1235
+                    type: prescription.project[b].type,
1236
+
1236 1237
 
1237 1238
                   }
1238 1239
 
@@ -1244,6 +1245,7 @@
1244 1245
                     obj['project_name'] = prescription.project[b].project.project_name
1245 1246
                     obj['project'] = prescription.project[b].project
1246 1247
 
1248
+
1247 1249
                   } else if (prescription.project[b].type == 3) {
1248 1250
                     if(prescription.project[b].team_id > 0){
1249 1251
                       obj['statistical_classification'] = prescription.project[b].team.project_team
@@ -1253,6 +1255,7 @@
1253 1255
                     obj['project_name'] = prescription.project[b].good_info.good_name
1254 1256
                     obj['good_info'] = prescription.project[b].good_info
1255 1257
 
1258
+
1256 1259
                   }
1257 1260
                   tempProject.push(obj)
1258 1261
                 }
@@ -1383,12 +1386,14 @@
1383 1386
                       obj['price'] = prescription.project[b].project.price
1384 1387
                       obj['project'] = prescription.project[b].project
1385 1388
 
1389
+
1386 1390
                     } else if (prescription.project[b].type == 3) {
1387 1391
                       obj['statistical_classification'] = ''
1388 1392
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1389 1393
                       obj['project_name'] = prescription.project[b].good_info.good_name
1390 1394
                       obj['price'] = prescription.project[b].good_info.packing_price
1391 1395
                       obj['good_info'] = prescription.project[b].good_info
1396
+
1392 1397
                     }
1393 1398
                     tempProject.push(obj)
1394 1399
                   }
@@ -1645,7 +1650,8 @@
1645 1650
                           remark: prescription.project[b].remark,
1646 1651
                           medical_code: prescription.project[b].project.medical_code,
1647 1652
                           unit: prescription.project[b].unit,
1648
-                          type: prescription.project[b].type
1653
+                          type: prescription.project[b].type,
1654
+
1649 1655
                         }
1650 1656
 
1651 1657
                         if (prescription.project[b].type == 2) {
@@ -2136,7 +2142,9 @@
2136 2142
                           remark: prescription.project[b].remark,
2137 2143
                           medical_code: prescription.project[b].project.medical_code,
2138 2144
                           unit: prescription.project[b].unit,
2139
-                          type: prescription.project[b].type
2145
+                          type: prescription.project[b].type,
2146
+
2147
+
2140 2148
                         }
2141 2149
 
2142 2150
                         if (prescription.project[b].type == 2) {
@@ -2266,7 +2274,8 @@
2266 2274
                             remark: prescription.project[b].remark,
2267 2275
                             medical_code: prescription.project[b].project.medical_code,
2268 2276
                             unit: prescription.project[b].unit,
2269
-                            type: prescription.project[b].type
2277
+                            type: prescription.project[b].type,
2278
+
2270 2279
                           }
2271 2280
 
2272 2281
                           if (prescription.project[b].type == 2) {
@@ -2608,7 +2617,8 @@
2608 2617
                         remark: prescription.project[b].remark,
2609 2618
                         medical_code: prescription.project[b].project.medical_code,
2610 2619
                         unit: prescription.project[b].unit,
2611
-                        type: prescription.project[b].type
2620
+                        type: prescription.project[b].type,
2621
+
2612 2622
                       }
2613 2623
 
2614 2624
                       if (prescription.project[b].type == 2) {
@@ -2737,7 +2747,8 @@
2737 2747
                           remark: prescription.project[b].remark,
2738 2748
                           medical_code: prescription.project[b].project.medical_code,
2739 2749
                           unit: prescription.project[b].unit,
2740
-                          type: prescription.project[b].type
2750
+                          type: prescription.project[b].type,
2751
+
2741 2752
                         }
2742 2753
 
2743 2754
                         if (prescription.project[b].type == 2) {

+ 2 - 1
src/xt_pages/management/components/PlanForm.vue Näytä tiedosto

@@ -208,7 +208,8 @@ export default {
208 208
         { id: 6, name: "0.2%过氧化乙酸" },
209 209
         { id: 7, name: "10%冰醋酸" },
210 210
         { id: 8, name: "50%冰醋酸" },
211
-        { id: 9, name: "5%次氯酸钠" }
211
+        { id: 9, name: "5%次氯酸钠" },
212
+        { id: 10,name:"25%的柠檬酸+5%次氯酸钠"},
212 213
       ],
213 214
       DeviceType: [],
214 215
       planid: 0,

+ 11 - 1
src/xt_pages/management/components/UserForm.vue Näytä tiedosto

@@ -1060,7 +1060,8 @@ export default {
1060 1060
         { id: 6, name: "0.2%过氧化乙酸" },
1061 1061
         { id: 7, name: "10%冰醋酸" },
1062 1062
         { id: 8, name: "50%冰醋酸" },
1063
-        { id: 9, name: "5%次氯酸钠" }
1063
+        { id: 9, name: "5%次氯酸钠" },
1064
+        { id: 10,name:"25%的柠檬酸+5%次氯酸钠"},
1064 1065
       ],
1065 1066
       runOption: [{ id: 1, name: "正常" }, { id: 2, name: "故障" }],
1066 1067
       runOptions: [{ id: 1, name: "达标" }, { id: 2, name: "未达标" }],
@@ -1409,6 +1410,9 @@ export default {
1409 1410
             if (information[index].disinfectant === 9) {
1410 1411
               information[index].disinfectant = "5%次氯酸钠";
1411 1412
             }
1413
+            if (information[index].disinfectant === 10) {
1414
+              information[index].disinfectant = "25%的柠檬酸+5%次氯酸钠";
1415
+            }
1412 1416
             if (information[index].disinfection_status === 0) {
1413 1417
               information[index].disinfection_status = "";
1414 1418
             }
@@ -1982,6 +1986,9 @@ export default {
1982 1986
             if (information[index].disinfectant === 9) {
1983 1987
               information[index].disinfectant = "5%次氯酸钠";
1984 1988
             }
1989
+           if (information[index].disinfectant === 10) {
1990
+              information[index].disinfectant = "25%的柠檬酸+5%次氯酸钠";
1991
+            }
1985 1992
             if (information[index].disinfection_status === 1) {
1986 1993
               information[index].disinfection_status = "已消毒";
1987 1994
             }
@@ -2316,6 +2323,9 @@ export default {
2316 2323
             if (information[index].disinfectant === 9) {
2317 2324
               information[index].disinfectant = "5%次氯酸钠";
2318 2325
             }
2326
+            if (information[index].disinfectant === 10) {
2327
+              information[index].disinfectant = "25%的柠檬酸+5%次氯酸钠";
2328
+            }
2319 2329
             if (information[index].disinfection_status === 0) {
2320 2330
               information[index].disinfection_status = "";
2321 2331
             }

+ 8 - 1
src/xt_pages/management/home.vue Näytä tiedosto

@@ -2930,7 +2930,8 @@ export default {
2930 2930
           { id: 6, name: '0.2%过氧化乙酸' },
2931 2931
           { id: 7, name: '10%冰醋酸' },
2932 2932
           { id: 8, name: '50%冰醋酸' },
2933
-          { id: 9, name: '5%次氯酸钠' }
2933
+          { id: 9, name: '5%次氯酸钠' },
2934
+          { id: 10,name:"25%的柠檬酸+5%次氯酸钠"},
2934 2935
         ],
2935 2936
 
2936 2937
         userform: {
@@ -3925,6 +3926,9 @@ export default {
3925 3926
               if (plan[index].disinfectant === 9) {
3926 3927
                 plan[index].disinfectant = '5%次氯酸钠'
3927 3928
               }
3929
+              if (plan[index].disinfectant === 10) {
3930
+                plan[index].disinfectant = '25%的柠檬酸+5%次氯酸钠'
3931
+              }
3928 3932
             }
3929 3933
             this.tableData = plan
3930 3934
           }
@@ -4062,6 +4066,9 @@ export default {
4062 4066
               if (plandetail[index].disinfectant === 9) {
4063 4067
                 plandetail[index].disinfectant = '5%次氯酸钠'
4064 4068
               }
4069
+             if (plandetail[index].disinfectant === 10) {
4070
+                plandetail[index].disinfectant = '25%的柠檬酸+5%次氯酸钠'
4071
+              }
4065 4072
             }
4066 4073
             this.planData = plandetail
4067 4074
           }

+ 17 - 10
src/xt_pages/outpatientCharges/components/chargeDialog.vue Näytä tiedosto

@@ -9,23 +9,23 @@
9 9
       </el-form-item>
10 10
 
11 11
       <el-form-item label="总计:" prop="name" :validate-event="is_Name">
12
-        <el-input type="number" v-model="form.total" :disabled="true"></el-input>
12
+        <el-input class="number_style" type="number" v-model="form.total" :disabled="true"></el-input>
13 13
       </el-form-item>
14 14
       <el-form-item label="医保:" prop="name" :validate-event="is_Name">
15
-        <el-input type="number" v-model="form.medical_insurance_price" :disabled="true"></el-input>
15
+        <el-input class="number_style" type="number" v-model="form.medical_insurance_price" :disabled="true"></el-input>
16 16
       </el-form-item>
17 17
 
18 18
 
19
-      <el-form-item label="自费:" prop="age" :validate-event="is_Name">
19
+      <el-form-item class="number_style" label="自费:" prop="age" :validate-event="is_Name">
20 20
         <el-input type="number" v-model="form.private_price" :disabled="true"></el-input>
21 21
       </el-form-item>
22 22
 
23
-      <el-form-item label="个账支出:" prop="age" :validate-event="is_Name">
23
+      <el-form-item class="number_style" label="个账支出:" prop="age" :validate-event="is_Name">
24 24
         <el-input type="number" v-model="form.acct_pay" :disabled="true"></el-input>
25 25
       </el-form-item>
26 26
 
27 27
 
28
-      <el-form-item label="个人现金支出:" prop="age" :validate-event="is_Name">
28
+      <el-form-item class="number_style" label="个人现金支出:" prop="age" :validate-event="is_Name">
29 29
         <el-input type="number" v-model="form.psn_pay" :disabled="true"></el-input>
30 30
       </el-form-item>
31 31
 
@@ -54,7 +54,7 @@
54 54
 
55 55
 
56 56
       <el-form-item label="付款金额:" prop="id_card" :validate-event="is_Name">
57
-        <el-input type="number" v-model="form.pay_price" :disabled="true"></el-input>
57
+        <el-input class="number_style" type="number" v-model="form.pay_price" :disabled="true"></el-input>
58 58
       </el-form-item>
59 59
 
60 60
 
@@ -64,22 +64,22 @@
64 64
 
65 65
       <el-form-item class="specialFormItem" label="折扣金额:">
66 66
         <div style="display:flex;">
67
-          <el-input v-model="form.discount_price" :disabled="form.preferential_price != 0" @change="changeDiscountPrice"></el-input>
67
+          <el-input class="number_style" v-model="form.discount_price" :disabled="form.preferential_price != 0" @change="changeDiscountPrice"></el-input>
68 68
         </div>
69 69
       </el-form-item>
70 70
       <el-form-item class="specialFormItem" label="优惠金额:">
71 71
         <div style="display:flex;">
72
-          <el-input v-model="form.preferential_price" :disabled="form.discount_price != 0" @change="changePreferentialPrice"></el-input>
72
+          <el-input class="number_style" v-model="form.preferential_price" :disabled="form.discount_price != 0" @change="changePreferentialPrice"></el-input>
73 73
         </div>
74 74
       </el-form-item>
75 75
       <el-form-item label="实收金额:">
76 76
         <div style="display:flex;">
77
-          <el-input v-model="form.reality_price" @change="realityPrice"></el-input>
77
+          <el-input class="number_style" v-model="form.reality_price" @change="realityPrice"></el-input>
78 78
         </div>
79 79
       </el-form-item>
80 80
       <el-form-item label="找回金额:">
81 81
         <div style="display:flex;">
82
-          <el-input v-model.number="form.found_price"></el-input>
82
+          <el-input class="number_style" v-model.number="form.found_price"></el-input>
83 83
         </div>
84 84
       </el-form-item>
85 85
 
@@ -388,4 +388,11 @@
388 388
 outline:none;
389 389
 border: 1px solid #66b1ff;
390 390
 }
391
+
392
+/deep/ .number_style{
393
+  .el-input__inner{
394
+    font-weight: bolder;
395
+  }
396
+  
397
+}
391 398
 </style>

+ 102 - 102
src/xt_pages/outpatientCharges/invoicePrint.vue Näytä tiedosto

@@ -8,7 +8,7 @@
8 8
         icon="el-icon-printer"
9 9
         @click="printThisPage"
10 10
         type="primary"
11
-        >打印</el-button
11
+      >打印</el-button
12 12
       >
13 13
     </template>
14 14
     <div class="app-container" style="padding-top:40px;">
@@ -29,150 +29,150 @@
29 29
 </template>
30 30
 
31 31
 <script>
32
-import printOne from './invoiceTemplate/printOne'
33
-import printTwo from './invoiceTemplate/printTwo'
34
-import printThree from './invoiceTemplate/printThree'
35
-import printFour from './invoiceTemplate/printFour'
36
-import printFive from './invoiceTemplate/printFive'
37
-import printSix from './invoiceTemplate/printSix'
38
-import printSeven from './invoiceTemplate/printSeven'
39
-import printEight from './invoiceTemplate/printEight'
40
-import PrintEight from "./invoiceTemplate/printEight";
41
-export default {
42
-   name: "invoicePrint",
43
-  components: {
44
-    PrintEight,
45
-    printOne,
46
-    printTwo,
47
-    printThree,
48
-    printFour,
49
-    printFive,
50
-    printSix,
51
-    printSeven
52
-  },
53
-  props:{
54
-    invoiceParams:Object
55
-  },
56
-  data() {
57
-    return {
58
-      childResponse: {},
59
-    //   invoiceParams:{},
60
-     org_id:''
32
+  import printOne from './invoiceTemplate/printOne'
33
+  import printTwo from './invoiceTemplate/printTwo'
34
+  import printThree from './invoiceTemplate/printThree'
35
+  import printFour from './invoiceTemplate/printFour'
36
+  import printFive from './invoiceTemplate/printFive'
37
+  import printSix from './invoiceTemplate/printSix'
38
+  import printSeven from './invoiceTemplate/printSeven'
39
+  import printEight from './invoiceTemplate/printEight'
40
+  import PrintEight from "./invoiceTemplate/printEight";
41
+  export default {
42
+    name: "invoicePrint",
43
+    components: {
44
+      PrintEight,
45
+      printOne,
46
+      printTwo,
47
+      printThree,
48
+      printFour,
49
+      printFive,
50
+      printSix,
51
+      printSeven
52
+    },
53
+    props:{
54
+      invoiceParams:Object
55
+    },
56
+    data() {
57
+      return {
58
+        childResponse: {},
59
+        //   invoiceParams:{},
60
+        org_id:''
61 61
 
62 62
 
63
-    };
64
-  },
65
-  methods: {
66
-    getAdminUser(id) {
67
-      if (id == 0) {
68
-        return "";
69
-      }
70
-      if (id == undefined) {
71
-        return "";
72
-      }
73
-      for (let i = 0; i < this.adminUser.length; i++) {
74
-        if (this.adminUser[i].id == id) {
75
-          return this.adminUser[i].name;
76
-        }
77
-      }
63
+      };
78 64
     },
79
-    getTime(value, temp) {
80
-      if (value == 0) {
65
+    methods: {
66
+      getAdminUser(id) {
67
+        if (id == 0) {
68
+          return "";
69
+        }
70
+        if (id == undefined) {
71
+          return "";
72
+        }
73
+        for (let i = 0; i < this.adminUser.length; i++) {
74
+          if (this.adminUser[i].id == id) {
75
+            return this.adminUser[i].name;
76
+          }
77
+        }
78
+      },
79
+      getTime(value, temp) {
80
+        if (value == 0) {
81
+          return "";
82
+        }
83
+        if (value != undefined) {
84
+          return uParseTime(value, temp);
85
+        }
81 86
         return "";
82
-      }
83
-      if (value != undefined) {
84
-        return uParseTime(value, temp);
85
-      }
86
-      return "";
87
-    },
88
-    printThisPage() {
87
+      },
88
+      printThisPage() {
89 89
         const style =
90
-        '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
90
+          '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
91 91
         printJS({
92
-            printable: "invoice-print",
93
-            type: "html",
94
-            style: style,
95
-            scanStyles: false
92
+          printable: "invoice-print",
93
+          type: "html",
94
+          style: style,
95
+          scanStyles: false
96 96
         });
97 97
 
98 98
 
99
-      // if (this.org_template_info.template_id == 1) {
100
-      //   printJS({
101
-      //     printable: "dialysis-print-box",
102
-      //     type: "html",
103
-      //     style: style,
104
-      //     scanStyles: false
105
-      //   });
106
-      // }
99
+        // if (this.org_template_info.template_id == 1) {
100
+        //   printJS({
101
+        //     printable: "dialysis-print-box",
102
+        //     type: "html",
103
+        //     style: style,
104
+        //     scanStyles: false
105
+        //   });
106
+        // }
107
+      },
107 108
     },
108
-  },
109
-  created() {
109
+    created() {
110 110
       console.log('this.invoiceParams',this.invoiceParams)
111 111
       this.org_id = this.$store.getters.xt_user.org_id
112
-  },
113
-  watch:{
114
-    paramsObj:{//深度监听,可监听到对象、数组的变化
115
-      handler(val, oldVal){
116
-        this.invoiceParams = val
112
+    },
113
+    watch:{
114
+      paramsObj:{//深度监听,可监听到对象、数组的变化
115
+        handler(val, oldVal){
116
+          this.invoiceParams = val
117 117
 
118
-      },
119
-      deep:true
118
+        },
119
+        deep:true
120
+      }
120 121
     }
121
-  }
122
-};
122
+  };
123 123
 </script>
124 124
 
125 125
 <style lang="scss" scoped>
126
-.printTitle{
126
+  .printTitle{
127 127
     font-size: 22px;
128 128
     text-align: center;
129 129
     font-weight: bold;
130
-}
131
-.infoMain{
130
+  }
131
+  .infoMain{
132 132
     display: flex;
133 133
     flex-wrap: wrap;
134 134
     border-bottom: 2px solid #000;
135 135
     padding:0 10px;
136
-}
137
-.infoMain .infoP{
136
+  }
137
+  .infoMain .infoP{
138 138
     width: 33%;
139 139
     line-height: 24px;
140
-}
141
-.prescriptionBox{
140
+  }
141
+  .prescriptionBox{
142 142
     padding:0 10px;
143 143
     height:600px;
144
-}
145
-.Rp{
144
+  }
145
+  .Rp{
146 146
     font-size: 22px;
147 147
     font-weight: bold;
148
-}
149
-.drugsBox{
148
+  }
149
+  .drugsBox{
150 150
     padding-left: 40px;
151 151
     margin-bottom: 10px;
152
-}
153
-.drugsBox p{
152
+  }
153
+  .drugsBox p{
154 154
     line-height: 30px;
155
-}
156
-.drugsOne{
155
+  }
156
+  .drugsOne{
157 157
     line-height: 24px;
158
-}
159
-.drugsOne span{
158
+  }
159
+  .drugsOne span{
160 160
     margin-right: 20px;
161
-}
162
-.doctorBox{
161
+  }
162
+  .doctorBox{
163 163
     display: flex;
164 164
     justify-content: space-between;
165 165
     padding:0 10px;
166 166
     line-height: 24px;
167 167
     border-bottom: 2px solid #000;
168
-}
169
-.actionBar{
168
+  }
169
+  .actionBar{
170 170
     display: flex;
171 171
     justify-content: space-between;
172 172
     line-height: 24px;
173 173
     padding:0 10px;
174
-}
175
-.actionBar p{
174
+  }
175
+  .actionBar p{
176 176
     width:150px;
177
-}
177
+  }
178 178
 </style>

+ 23 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Näytä tiedosto

@@ -1450,6 +1450,28 @@ export default {
1450 1450
             this.$refs.charge.hide()
1451 1451
             return false
1452 1452
           } else {
1453
+            if(response.data.data.msg == 2){
1454
+              var drug_name = response.data.data.drug.drug_name
1455
+              var dose = response.data.data.drug.dose
1456
+              var dose_unit = response.data.data.drug.dose_unit
1457
+              var min_number = response.data.data.drug.min_number
1458
+              var min_unit = response.data.data.drug.min_unit
1459
+              var max_unit = response.data.data.drug.max_unit
1460
+              var str = drug_name + " " + dose + dose_unit +"*" + min_number + min_unit + "/"+max_unit
1461
+              this.$message.error(str + "库存不足,结算失败!")
1462
+              this.loadingtwo = false
1463
+              this.newLoading = false
1464
+              return
1465
+            }
1466
+            if(response.data.data.msg == 3){
1467
+              var good_name = response.data.data.good.good_name
1468
+              var specification_name =  response.data.data.good.specification_name
1469
+              var str = good_name + " " + specification_name
1470
+              this.$message.error(str+"库存不足,结算失败!")
1471
+              this.loadingtwo = false
1472
+              this.newLoading = false
1473
+              return
1474
+            }
1453 1475
             this.$refs.charge.hide()
1454 1476
             this.radio = 2
1455 1477
             this.changeRadioAndPatient(2)
@@ -3019,8 +3041,7 @@ export default {
3019 3041
             }
3020 3042
             axios.get('http://127.0.0.1:9532/api/refund/post', {
3021 3043
               params: params
3022
-            })
3023
-                .then(function(response) {
3044
+            }).then(function(response) {
3024 3045
                   if (response.data.state == 0) {
3025 3046
                     that.$message.error(response.data.msg)
3026 3047
                     that.loadingtwo = false

+ 384 - 0
src/xt_pages/outpatientCharges/statementTemplate/printSeven.vue Näytä tiedosto

@@ -0,0 +1,384 @@
1
+<template>
2
+  <div id="statement-print" class="statement-print">
3
+    <div class="statementTitle" >湖南省社会医疗保险医疗费用结算单</div>
4
+
5
+    <table class="statementTable" border="1">
6
+      <tr>
7
+        <td width="80">机构名称</td>
8
+        <td colspan="4">{{info.fixmedins_name}}</td>
9
+        <td width="80">机构编码</td>
10
+        <td colspan="4">{{info.fixmedins_code}}</td>
11
+        <td width="100">医保结算级别</td>
12
+        <td width="100" v-if="info.hosp_lv == '1'">三级特等</td>
13
+        <td width="100" v-else-if="info.hosp_lv == '2'">三级甲等</td>
14
+        <td width="100" v-else-if="info.hosp_lv == '3'">三级乙等</td>
15
+        <td width="100" v-else-if="info.hosp_lv == '4'">三级丙等</td>
16
+        <td width="100" v-else-if="info.hosp_lv == '5'">二级甲等</td>
17
+        <td width="100" v-else-if="info.hosp_lv == '6'">二级乙等</td>
18
+        <td width="100" v-else-if="info.hosp_lv == '7'">二级丙等</td>
19
+        <td width="100" v-else-if="info.hosp_lv == '8'">一级甲等</td>
20
+        <td width="100" v-else-if="info.hosp_lv == '9'">一级乙等</td>
21
+        <td width="100" v-else-if="info.hosp_lv == '10'">一级丙等</td>
22
+        <td width="100" v-else-if="info.hosp_lv == '11'">无等级</td>
23
+        <td width="100" v-else></td>
24
+
25
+      </tr>
26
+      <tr>
27
+        <td width="70">就医登记号</td>
28
+        <td colspan="7">{{info.psn_no}}</td>
29
+        <td width="50">门诊号</td>
30
+        <td colspan="3">{{info.number}}</td>
31
+      </tr>
32
+      <tr>
33
+        <td width="80">姓名</td>
34
+        <td width="80">{{info.psn_name}}</td>
35
+        <td width="80">性别</td>
36
+        <td width="50" v-if="info.gend == '1'">男</td>
37
+        <td width="50" v-if="info.gend == '2'">女</td>
38
+
39
+        <td width="80">出生日期</td>
40
+        <td width="100">{{info.brdy}}</td>
41
+        <td width="90">个人电脑号</td>
42
+        <td width="110"></td>
43
+        <td width="80">人员类别</td>
44
+        <td colspan="3" v-if="info.psn_type == '11'">在职</td>
45
+        <td colspan="3" v-else-if="info.psn_type == '1101'">职工在职</td>
46
+        <td colspan="3" v-else-if="info.psn_type == '1102'">公务员在职</td>
47
+        <td colspan="3" v-else-if="info.psn_type == '1103'">灵活就业人员在职</td>
48
+        <td colspan="3" v-else-if="info.psn_type == '1160'">地方其他扩展人员</td>
49
+
50
+
51
+        <td colspan="3" v-else-if="info.psn_type == '12'">退休人员</td>
52
+        <td colspan="3" v-else-if="info.psn_type == '1201'">职工退休</td>
53
+        <td colspan="3" v-else-if="info.psn_type == '1202'">公务员退休</td>
54
+        <td colspan="3" v-else-if="info.psn_type == '1203'">灵活就业人员退休</td>
55
+        <td colspan="3" v-else-if="info.psn_type == '1260'">地方其他扩展人员</td>
56
+
57
+
58
+        <td colspan="3" v-else-if="info.psn_type == '13'">离休</td>
59
+        <td colspan="3" v-else-if="info.psn_type == '1300'">离休人员</td>
60
+        <td colspan="3" v-else-if="info.psn_type == '1360'">地方其他扩展人员</td>
61
+
62
+        <td colspan="3" v-else-if="info.psn_type == '14'">居民(未成年)</td>
63
+        <td colspan="3" v-else-if="info.psn_type == '1401'">新生儿</td>
64
+        <td colspan="3" v-else-if="info.psn_type == '1402'">学龄前儿童</td>
65
+        <td colspan="3" v-else-if="info.psn_type == '1403'">中小学生</td>
66
+        <td colspan="3" v-else-if="info.psn_type == '1404'">大学生</td>
67
+        <td colspan="3" v-else-if="info.psn_type == '1405'">未成年(未入学)</td>
68
+
69
+
70
+        <td colspan="3" v-else-if="info.psn_type == '15'">居民(成年)</td>
71
+        <td colspan="3" v-else-if="info.psn_type == '1501'">普通居民(成年)</td>
72
+        <td colspan="3" v-else-if="info.psn_type == '1560'">地方其他扩展身份</td>
73
+
74
+        <td colspan="3" v-else-if="info.psn_type == '16'">居民(老年)</td>
75
+        <td colspan="4" v-else></td>
76
+
77
+
78
+      </tr>
79
+      <tr>
80
+        <td>单位名称</td>
81
+        <td colspan="5">{{info.emp_name}}</td>
82
+        <td width="80">联系电话</td>
83
+        <td width="110">{{info.patient.phone}}</td>
84
+        <td width="80">身份证号</td>
85
+        <td colspan="3">{{info.certno}}</td>
86
+      </tr>
87
+
88
+      <tr>
89
+        <td>险种</td>
90
+        <td colspan="2" v-if="info.insutype == '310'">职工基本医疗保险</td>
91
+        <td colspan="2" v-if="info.insutype == '320'">公务员医疗补助</td>
92
+        <td colspan="2" v-if="info.insutype == '330'">大额医疗费用补助</td>
93
+        <td colspan="2" v-if="info.insutype == '340'">离休人员医疗保障</td>
94
+        <td colspan="2" v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
95
+        <td colspan="2" v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
96
+        <td colspan="2" v-if="info.insutype == '510'">生育保险</td>
97
+
98
+
99
+        <td>入院第一诊断</td>
100
+        <td colspan="3">{{info.dise_name}}</td>
101
+        <td>出院第一诊断</td>
102
+        <td colspan="6">{{info.dise_name}}</td>
103
+      </tr>
104
+      <tr>
105
+        <td>业务类别</td>
106
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '11'">普通门诊</td>
107
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '12'">门诊挂号</td>
108
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '13'">急诊</td>
109
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '14'">门诊特殊病</td>
110
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '15'">门诊统筹</td>
111
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '16'">门诊慢性病</td>
112
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '21'">普通住院</td>
113
+
114
+        <td>结算时间</td>
115
+        <td colspan="5" style="text-align:left;padding-left:10px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
116
+      </tr>
117
+      <tr>
118
+        <td colspan="12" style="text-align:left;padding-left:10px;">
119
+          本次就医:总费用{{info.medfee_sumamt}}元,基金支付{{info.fund_pay_sumamt}}元,个人支付{{info.psn_pay}}元。
120
+          (起付线 {{info.act_pay_dedc}}元, 先自付 {{info.preselfpay_amt}}元, 段内自付 {{(info.psn_pay - info.preselfpay_amt).toFixed(2)}} )
121
+
122
+        </td>
123
+      </tr>
124
+      <tr>
125
+        <td>费用名称</td>
126
+        <td colspan="2">总费用</td>
127
+        <td>自费</td>
128
+        <td colspan="2">部分项目自付</td>
129
+        <td>费用名称</td>
130
+        <td colspan="2">总费用</td>
131
+        <td>自费</td>
132
+        <td colspan="2">部分项目自付</td>
133
+      </tr>
134
+      <tr>
135
+        <td>床位费</td>
136
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
137
+        <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total}}</td>
138
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
139
+        <td>西成药</td>
140
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
141
+        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
142
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
143
+      </tr>
144
+      <tr>
145
+        <td>中药费</td>
146
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
147
+        <td style="text-align:right;padding-right:10px;">0</td>
148
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
149
+        <td>中成药</td>
150
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
151
+        </td>
152
+        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
153
+        <td colspan="2" style="text-align:right;padding-right:10px;">
154
+          {{info.chinese_traditional_medicine_cost_part_self_total}}
155
+        </td>
156
+      </tr>
157
+      <tr>
158
+        <td>中草药</td>
159
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
160
+        <td style="text-align:right;padding-right:10px;">0</td>
161
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
162
+        <td>检查费</td>
163
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
164
+        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
165
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
166
+      </tr>
167
+      <tr>
168
+        <td>治疗费</td>
169
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
170
+        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
171
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
172
+        <td>放射费</td>
173
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
174
+        <td style="text-align:right;padding-right:10px;">0</td>
175
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
176
+      </tr>
177
+      <tr>
178
+        <td>手术费</td>
179
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
180
+        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
181
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
182
+        <td>化验费</td>
183
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
184
+        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
185
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
186
+      </tr>
187
+      <tr>
188
+        <td>输血费</td>
189
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
190
+        <td style="text-align:right;padding-right:10px;">0</td>
191
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
192
+        <td>输氧费</td>
193
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
194
+        <td style="text-align:right;padding-right:10px;">0</td>
195
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
196
+      </tr>
197
+      <tr>
198
+        <td>其他</td>
199
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
200
+        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
201
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
202
+        <td>麻醉费</td>
203
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
204
+        <td style="text-align:right;padding-right:10px;">0</td>
205
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
206
+      </tr>
207
+      <tr>
208
+        <td>材料费</td>
209
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
210
+        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
211
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
212
+        <td>特殊检查费</td>
213
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
214
+        <td style="text-align:right;padding-right:10px;">0</td>
215
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
216
+      </tr>
217
+      <tr>
218
+        <td>特殊治疗费</td>
219
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
220
+        <td style="text-align:right;padding-right:10px;">0</td>
221
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
222
+        <td style="text-align:right;padding-right:10px;"></td>
223
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
224
+        <td style="text-align:right;padding-right:10px;"></td>
225
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
226
+      </tr>
227
+      <tr>
228
+        <td>合计</td>
229
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_total) +
230
+            parseFloat(info.operation_cost_total) + parseFloat(info.other_cost_total) +
231
+            parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
232
+            parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
233
+            parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
234
+        </td>
235
+        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+
236
+            parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
237
+            parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
238
+            parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
239
+            parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
240
+        </td>
241
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
242
+            parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +
243
+            parseFloat(info.material_cost_part_self_total) + parseFloat(info.western_medicine_cost_part_self_total) +
244
+            parseFloat(info.chinese_traditional_medicine_cost_part_self_total) +
245
+            parseFloat(info.check_cost_part_self_total) + parseFloat(info.laboratory_cost_part_self_total) +
246
+            parseFloat(info.treat_cost_part_self_total)).toFixed(2)}}
247
+        </td>
248
+        <td style="text-align:right;padding-right:10px;"></td>
249
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
250
+        <td style="text-align:right;padding-right:10px;"></td>
251
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
252
+      </tr>
253
+      <tr>
254
+        <td colspan="3" style="text-align:left;padding-left:10px;">基本医疗保险统筹基金支付</td>
255
+        <td colspan="3">{{info.hifp_pay}}</td>
256
+        <td colspan="3" style="text-align:left;padding-left:10px;">大额基金支付</td>
257
+        <td colspan="3">{{info.hifob_pay}}</td>
258
+      </tr>
259
+      <tr>
260
+        <td colspan="3" style="text-align:left;padding-left:10px;">大病基金支付</td>
261
+        <td colspan="3">{{info.hifmi_pay}}</td>
262
+        <td colspan="3" style="text-align:left;padding-left:10px;">补充保险基金支付</td>
263
+        <td colspan="3">{{info.hifes_pay}}</td>
264
+      </tr>
265
+      <tr>
266
+        <td colspan="3" style="text-align:left;padding-left:10px;">医疗救助基金支付</td>
267
+        <td colspan="3">{{info.maf_pay}}</td>
268
+        <td colspan="3" style="text-align:left;padding-left:10px;">公务员基金支付</td>
269
+        <td colspan="3">{{info.cvlserv_pay}}</td>
270
+      </tr>
271
+      <tr>
272
+        <td colspan="3" style="text-align:left;padding-left:10px;">其他基金支付</td>
273
+        <td colspan="3">{{info.oth_pay}}</td>
274
+        <td colspan="3" style="text-align:left;padding-left:10px;">个人账户支付</td>
275
+        <td colspan="3">{{info.acct_pay}}</td>
276
+      </tr>
277
+      <tr>
278
+        <td>收款人:</td>
279
+        <td colspan="2">{{info.charge_admin.user_name}}</td>
280
+        <td>审核人:</td>
281
+        <td colspan="2" v-if="this.$store.getters.xt_user.org_id == 10106">{{'梅晓辉'}}</td>
282
+        <td colspan="2" v-if="this.$store.getters.xt_user.org_id != 10106">{{info.p_admin.user_name}}</td>
283
+
284
+        <td>制单人:</td>
285
+        <td colspan="2">{{info.p_admin.user_name}}</td>
286
+        <td>打印日期</td>
287
+        <td colspan="2">{{getNowTime()}}</td>
288
+      </tr>
289
+      <tr>
290
+        <td colspan="12" style="text-align:left;padding-left:10px;line-height:20px;">
291
+          注: 1、部分项目自付金额是指基本医疗保险范围内的项目需参保人先按规定比例自付的金额。<br/>
292
+          &ensp;&ensp;&ensp;2、此表由医院打印。<br/>
293
+          &ensp;&ensp;&ensp;3、此表一式两份,医院、参保人各一份。
294
+        </td>
295
+      </tr>
296
+      <tr>
297
+        <td colspan="12" style="text-align:left;padding-left:10px;">
298
+          病人家属签字:
299
+        </td>
300
+      </tr>
301
+    </table>
302
+  </div>
303
+</template>
304
+<script>
305
+export default {
306
+  props: {
307
+    info: {
308
+      type: Object,
309
+      default: function() {
310
+        return {}
311
+      }
312
+    }, p_admin: {
313
+      type: Object,
314
+      default: function() {
315
+        return {}
316
+      }
317
+    }, charge_admin: {
318
+      type: Object,
319
+      default: function() {
320
+        return {}
321
+      }
322
+    }
323
+  },methods:{
324
+    getDay(dateString1,dateString2){
325
+      var  startDate = Date.parse(dateString1);
326
+      var  endDate = Date.parse(dateString2);
327
+      if (startDate>endDate){
328
+        return 0;
329
+      }
330
+      if (startDate==endDate){
331
+        return 1;
332
+      }
333
+      var days=(endDate - startDate)/(1*24*60*60*1000);
334
+      return  days;
335
+
336
+    },
337
+    getNowTime: function () {
338
+      let dateTime;
339
+      let yy = new Date().getFullYear();
340
+      let mm = new Date().getMonth() + 1;
341
+      let dd = new Date().getDate();
342
+      let hh = new Date().getHours();
343
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
344
+          :
345
+          new Date().getMinutes();
346
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
347
+          :
348
+          new Date().getSeconds();
349
+      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
350
+      return dateTime
351
+    },
352
+
353
+  }
354
+}
355
+
356
+
357
+</script>
358
+
359
+
360
+<style lang="scss" scoped>
361
+.statement-print {
362
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
363
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
364
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
365
+  margin-bottom: 20px;
366
+  padding: 20px 10px;
367
+}
368
+
369
+.statementTitle {
370
+  font-size: 28px;
371
+  text-align: center;
372
+  font-weight: bold;
373
+  margin-bottom: 10px;
374
+}
375
+
376
+.statementTable {
377
+  width: 100%;
378
+  text-align: center;
379
+  border-collapse: collapse;
380
+  line-height: 40px;
381
+  font-size: 14px;
382
+  border-color: #000;
383
+}
384
+</style>

+ 19 - 19
src/xt_pages/outpatientCharges/summary.vue Näytä tiedosto

@@ -119,7 +119,7 @@
119 119
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
120 120
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
121 121
           <!--          <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
122
-                    <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>
122
+          <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
123 123
 
124 124
 
125 125
         </div>
@@ -1554,20 +1554,20 @@ export default {
1554 1554
           var tarList = []
1555 1555
           for (let i = 0; i < list.length; i++) {
1556 1556
             let obj = {
1557
-              "订单序号(必填)":list[i].index,
1557
+              "订单序号": list[i].index,
1558 1558
               "订单号码":"",
1559
-              "购方名称(必填)": list[i].name,
1559
+              "购方名称": list[i].name,
1560 1560
               "购方纳税人识别号":list[i].idNo,
1561 1561
               "开户行及账号":"",
1562 1562
               "地址电话":"",
1563
-              "税收编码(必填)":"3070202000000000000",
1564
-              "商品名称(必填)": list[i].med_chrgitm_name,
1563
+              "税收编码":"3070202000000000000",
1564
+              "商品名称": list[i].med_chrgitm_name,
1565 1565
               "规格型号":"",
1566 1566
               "计量单位":"",
1567 1567
               "数量":"",
1568 1568
               "单价":"",
1569
-              "金额(必填)": list[i].price,
1570
-              "税率(必填)":"0%",
1569
+              "金额": list[i].price,
1570
+              "税率":"0%",
1571 1571
               "优惠政策":"普通零税率",
1572 1572
               "税额":"0",
1573 1573
               "备注": list[i].remark,
@@ -1579,40 +1579,40 @@ export default {
1579 1579
 
1580 1580
           import("@/vendor/Export2Excel").then((excel) => {
1581 1581
             const tHeader = [
1582
-              "订单序号(必填)",
1582
+              "订单序号",
1583 1583
                 "订单号码",
1584
-                "购方名称(必填)",
1584
+                "购方名称",
1585 1585
                 "购方纳税人识别号",
1586 1586
                 "开户行及账号",
1587 1587
                 "地址电话",
1588
-                "税收编码(必填)",
1589
-                "商品名称(必填)",
1588
+                "税收编码",
1589
+                "商品名称",
1590 1590
                 "规格型号",
1591 1591
                 "计量单位",
1592 1592
                 "数量",
1593 1593
                 "单价",
1594
-                "金额(必填)",
1595
-                "税率(必填)",
1594
+                "金额",
1595
+                "税率",
1596 1596
                 "优惠政策",
1597 1597
                 "税额",
1598 1598
                 "备注",
1599 1599
                 "电子邮箱",
1600 1600
             ];
1601 1601
             const filterVal = [
1602
-              "订单序号(必填)",
1602
+              "订单序号",
1603 1603
               "订单号码",
1604
-              "购方名称(必填)",
1604
+              "购方名称",
1605 1605
               "购方纳税人识别号",
1606 1606
               "开户行及账号",
1607 1607
               "地址电话",
1608
-              "税收编码(必填)",
1609
-              "商品名称(必填)",
1608
+              "税收编码",
1609
+              "商品名称",
1610 1610
               "规格型号",
1611 1611
               "计量单位",
1612 1612
               "数量",
1613 1613
               "单价",
1614
-              "金额(必填)",
1615
-              "税率(必填)",
1614
+              "金额",
1615
+              "税率",
1616 1616
               "优惠政策",
1617 1617
               "税额",
1618 1618
               "备注",

+ 3 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Näytä tiedosto

@@ -2366,6 +2366,7 @@
2366 2366
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2367 2367
                   this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2368 2368
                   this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
2369
+                 
2369 2370
 
2370 2371
                 }
2371 2372
 
@@ -2633,6 +2634,8 @@
2633 2634
                   month_prescriptions[i].project[b].total = month_prescriptions[i].project[b].total.toString()
2634 2635
                   month_prescriptions[i].project[b].delivery_way = month_prescriptions[i].project[b].delivery_way.toString()
2635 2636
 
2637
+                  
2638
+
2636 2639
                 }
2637 2640
 
2638 2641
                 for (let b = 0; b < month_prescriptions[i].addition.length; b++) {

+ 39 - 14
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Näytä tiedosto

@@ -342,7 +342,7 @@
342 342
               <div class="signPrint" style="width: 360px;font-size:16px;">
343 343
                 <div style="margin-left:50px;">姓名:
344 344
                   <span>{{main_collection.patient.name}} </span>
345
-                  ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
345
+                  ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no)}}岁)
346 346
                 </div>
347 347
                 <div class="printCell" style="display:flex;justify-content: space-around;">
348 348
                   <span style="display: block;width: 50%;">
@@ -1704,7 +1704,7 @@ export default {
1704 1704
                   unit: prescription.project[b].unit,
1705 1705
                   type: prescription.project[b].type,
1706 1706
                   execution_state: prescription.project[b].execution_state,
1707
-
1707
+                
1708 1708
 
1709 1709
                 }
1710 1710
 
@@ -1713,12 +1713,14 @@ export default {
1713 1713
                   obj['medical_code'] = prescription.project[b].project.medical_code
1714 1714
                   obj['project_name'] = prescription.project[b].project.project_name
1715 1715
                   obj['project'] = prescription.project[b].project
1716
+                 
1716 1717
 
1717 1718
                 } else if (prescription.project[b].type == 3) {
1718 1719
                   obj['statistical_classification'] = ''
1719 1720
                   obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1720 1721
                   obj['project_name'] = prescription.project[b].good_info.good_name
1721 1722
                   obj['good_info'] = prescription.project[b].good_info
1723
+                
1722 1724
 
1723 1725
                 }
1724 1726
                 tempProject.push(obj)
@@ -1864,6 +1866,7 @@ export default {
1864 1866
                     unit: prescription.project[b].unit,
1865 1867
                     type: prescription.project[b].type,
1866 1868
                     execution_state: 2,
1869
+                    
1867 1870
 
1868 1871
                   }
1869 1872
 
@@ -1873,6 +1876,7 @@ export default {
1873 1876
                     obj['project_name'] = prescription.project[b].project.project_name
1874 1877
                     obj['price'] = prescription.project[b].project.price
1875 1878
                     obj['project'] = prescription.project[b].project
1879
+                    
1876 1880
 
1877 1881
                   } else if (prescription.project[b].type == 3) {
1878 1882
                     obj['statistical_classification'] = ''
@@ -1880,6 +1884,7 @@ export default {
1880 1884
                     obj['project_name'] = prescription.project[b].good_info.good_name
1881 1885
                     obj['price'] = prescription.project[b].good_info.packing_price
1882 1886
                     obj['good_info'] = prescription.project[b].good_info
1887
+                  
1883 1888
                   }
1884 1889
                   tempProject.push(obj)
1885 1890
                 }
@@ -1935,7 +1940,7 @@ export default {
1935 1940
 
1936 1941
             }
1937 1942
           }
1938
-          console.log('~~~~~00000222222')
1943
+          console.log('~~~~~00000222222',this.prescriptions)
1939 1944
           this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
1940 1945
         }
1941 1946
       })
@@ -2161,6 +2166,7 @@ export default {
2161 2166
                         unit: prescription.project[b].unit,
2162 2167
                         type: prescription.project[b].type,
2163 2168
                         execution_state: prescription.project[b].execution_state,
2169
+                       
2164 2170
                       }
2165 2171
 
2166 2172
                       if (prescription.project[b].type == 2) {
@@ -2319,6 +2325,7 @@ export default {
2319 2325
                           unit: prescription.project[b].unit,
2320 2326
                           type: prescription.project[b].type,
2321 2327
                           execution_state: 2,
2328
+                         
2322 2329
 
2323 2330
                         }
2324 2331
 
@@ -2703,7 +2710,7 @@ export default {
2703 2710
                         unit: prescription.project[b].unit,
2704 2711
                         type: prescription.project[b].type,
2705 2712
                         execution_state: prescription.project[b].execution_state,
2706
-
2713
+                       
2707 2714
                       }
2708 2715
 
2709 2716
                       if (prescription.project[b].type == 2) {
@@ -2853,7 +2860,7 @@ export default {
2853 2860
                           unit: prescription.project[b].unit,
2854 2861
                           type: prescription.project[b].type,
2855 2862
                           execution_state: 2,
2856
-
2863
+                         
2857 2864
                         }
2858 2865
 
2859 2866
                         if (prescription.project[b].type == 2) {
@@ -3216,8 +3223,8 @@ export default {
3216 3223
                       medical_code: prescription.project[b].project.medical_code,
3217 3224
                       unit: prescription.project[b].unit,
3218 3225
                       type: prescription.project[b].type,
3219
-                      execution_state: prescription.project[b].execution_state
3220
-
3226
+                      execution_state: prescription.project[b].execution_state,
3227
+                  
3221 3228
                     }
3222 3229
 
3223 3230
                     if (prescription.project[b].type == 2) {
@@ -3366,7 +3373,8 @@ export default {
3366 3373
                         medical_code: prescription.project[b].project.medical_code,
3367 3374
                         unit: prescription.project[b].unit,
3368 3375
                         type: prescription.project[b].type,
3369
-                        execution_state: 2
3376
+                        execution_state: 2,
3377
+                       
3370 3378
 
3371 3379
                       }
3372 3380
 
@@ -3809,8 +3817,8 @@ export default {
3809 3817
                         medical_code: prescription.project[b].project.medical_code,
3810 3818
                         unit: prescription.project[b].unit,
3811 3819
                         type: prescription.project[b].type,
3812
-                        execution_state: prescription.project[b].execution_state
3813
-
3820
+                        execution_state: prescription.project[b].execution_state,
3821
+                       
3814 3822
                       }
3815 3823
 
3816 3824
                       if (prescription.project[b].type == 2) {
@@ -3818,6 +3826,7 @@ export default {
3818 3826
                         obj['medical_code'] = prescription.project[b].project.medical_code
3819 3827
                         obj['project_name'] = prescription.project[b].project.project_name
3820 3828
                         obj['project'] = prescription.project[b].project
3829
+                      
3821 3830
 
3822 3831
                       } else if (prescription.project[b].type == 3) {
3823 3832
                         if (prescription.project[b].team_id > 0) {
@@ -3826,6 +3835,7 @@ export default {
3826 3835
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3827 3836
                         obj['project_name'] = prescription.project[b].good_info.good_name
3828 3837
                         obj['good_info'] = prescription.project[b].good_info
3838
+                       
3829 3839
 
3830 3840
                       }
3831 3841
                       tempProject.push(obj)
@@ -3969,6 +3979,7 @@ export default {
3969 3979
                           unit: prescription.project[b].unit,
3970 3980
                           type: prescription.project[b].type,
3971 3981
                           execution_state: 2,
3982
+                          
3972 3983
                         }
3973 3984
 
3974 3985
                         if (prescription.project[b].type == 2) {
@@ -4436,8 +4447,8 @@ export default {
4436 4447
                         medical_code: prescription.project[b].project.medical_code,
4437 4448
                         unit: prescription.project[b].unit,
4438 4449
                         type: prescription.project[b].type,
4439
-                        execution_state: prescription.project[b].execution_state
4440
-
4450
+                        execution_state: prescription.project[b].execution_state,
4451
+                       
4441 4452
                       }
4442 4453
 
4443 4454
                       if (prescription.project[b].type == 2) {
@@ -4596,8 +4607,8 @@ export default {
4596 4607
                           medical_code: prescription.project[b].project.medical_code,
4597 4608
                           unit: prescription.project[b].unit,
4598 4609
                           type: prescription.project[b].type,
4599
-                          execution_state: 2
4600
-
4610
+                          execution_state: 2,
4611
+                         
4601 4612
                         }
4602 4613
 
4603 4614
                         if (prescription.project[b].type == 2) {
@@ -5216,6 +5227,20 @@ export default {
5216 5227
         scanStyles: false
5217 5228
       })
5218 5229
     },
5230
+    getNewAge(UUserCard) {
5231
+      if (UUserCard != null && UUserCard != '') {
5232
+        // 获取年龄
5233
+        var myDate = new Date()
5234
+        var month = myDate.getMonth() + 1
5235
+        var day = myDate.getDate()
5236
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
5237
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
5238
+          age++
5239
+        }
5240
+        return age
5241
+      }
5242
+    },
5243
+
5219 5244
   },
5220 5245
   created() {
5221 5246
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit

+ 0 - 0
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue Näytä tiedosto


Some files were not shown because too many files changed in this diff