Browse Source

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

杨青 2 years ago
parent
commit
e9a754743d
93 changed files with 40855 additions and 2402 deletions
  1. 21 21
      LICENSE
  2. 2 2
      config/dev.env.js
  3. 0 0
      favicon.ico
  4. 38 38
      index.html
  5. 6 5
      src/api/advice.js
  6. 40 0
      src/api/patient.js
  7. 7 1
      src/api/schedule.js
  8. 8 1
      src/lang/zh.js
  9. 14 1
      src/router/modules/dialysis.js
  10. 22 0
      src/router/modules/patient.js
  11. 21 0
      src/xt_pages/LICENSE
  12. 20 2
      src/xt_pages/Pharmacy/DrugDispensing.vue
  13. 18 1
      src/xt_pages/Pharmacy/PatientDispensing.vue
  14. 6 0
      src/xt_pages/data/template.vue
  15. 7 2
      src/xt_pages/dialysis/PatientBox.vue
  16. 15 2
      src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue
  17. 3145 0
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue
  18. 36 11
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  19. 20 3
      src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue
  20. 65 27
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue
  21. 34 11
      src/xt_pages/dialysis/bloodPresssWatch.vue
  22. 22 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  23. 8 0
      src/xt_pages/dialysis/details/NavIgation.vue
  24. 19 4
      src/xt_pages/dialysis/details/consumable/dialysisDrug.vue
  25. 35 7
      src/xt_pages/dialysis/details/consumable/dialysisGood.vue
  26. 9 9
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  27. 42 13
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  28. 1 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  29. 62 7
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  30. 10 5
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  31. 127 13
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  32. 43 1
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  33. 43 12
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  34. 8 5
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  35. 2 0
      src/xt_pages/dialysis/details/index.vue
  36. 40 13
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  37. 88 13
      src/xt_pages/dialysis/newDoctorAdvice.vue
  38. 42 6
      src/xt_pages/dialysis/signPrint.vue
  39. 14 1
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  40. 44 11
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  41. 364 14
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  42. 2135 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThreeAdvice.vue
  43. 148 14
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  44. 76 41
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue
  45. 7 3
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  46. BIN
      src/xt_pages/favicon.ico
  47. 6 7
      src/xt_pages/hospitalStation/components/chargeDialog.vue
  48. 142 1
      src/xt_pages/hospitalStation/summary.vue
  49. 24 8
      src/xt_pages/hospitalStation/template/printOne.vue
  50. 38 0
      src/xt_pages/index.html
  51. 3 1
      src/xt_pages/management/index.vue
  52. 4 3
      src/xt_pages/outpatientCharges/components/chargeDialog.vue
  53. 554 554
      src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue
  54. 1 1
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  55. 1050 1040
      src/xt_pages/outpatientCharges/statementPrint.vue
  56. 505 41
      src/xt_pages/outpatientCharges/summary.vue
  57. 739 0
      src/xt_pages/outpatientDoctorStation/batch_print_template/batchPrintThree.vue
  58. 8 3
      src/xt_pages/outpatientDoctorStation/batch_print_template/index.vue
  59. 5 1
      src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/index.vue
  60. 799 0
      src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/treatBatchPrint.vue
  61. 6 2
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  62. 75 8
      src/xt_pages/outpatientDoctorStation/pastInquiries.vue
  63. 15208 0
      src/xt_pages/package-lock.json
  64. 144 0
      src/xt_pages/package.json
  65. 1 0
      src/xt_pages/qcd/indicatorControlAnalysis/weight.vue
  66. 8 8
      src/xt_pages/sign/lineUp.vue
  67. 1 0
      src/xt_pages/stock/Dialog/goodTypeDialog.vue
  68. 31 21
      src/xt_pages/stock/detail/stockOutDetail.vue
  69. 1 0
      src/xt_pages/stock/drugs/components/drugQuery.vue
  70. 46 0
      src/xt_pages/stock/drugs/drugStockFlow.vue
  71. 41 14
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  72. 1 0
      src/xt_pages/stock/query/goodNewQuery.vue
  73. 21 0
      src/xt_pages/stock/stockFlow.vue
  74. 54 16
      src/xt_pages/stock/stockInOrder.vue
  75. 7 6
      src/xt_pages/user/components/PatientForm.vue
  76. 10 0
      src/xt_pages/user/components/PatientSidebar.vue
  77. 65 15
      src/xt_pages/user/coursePrint.vue
  78. 47 4
      src/xt_pages/user/dialysisSolution.vue
  79. 18 1
      src/xt_pages/user/doctorAdvice.vue
  80. 871 0
      src/xt_pages/user/firstDisease.vue
  81. 413 0
      src/xt_pages/user/firstDiseasePrint.vue
  82. 11 1
      src/xt_pages/user/hospitalSummaryPrint.vue
  83. 24 12
      src/xt_pages/user/vascularAccess.vue
  84. 1 1
      src/xt_pages/workforce/components/ScheduleItem.vue
  85. 3118 0
      src/xt_pages/workforce/components/appointment.vue
  86. 309 132
      src/xt_pages/workforce/components/editTableData.vue
  87. 68 76
      src/xt_pages/workforce/components/tableData.vue
  88. 71 84
      src/xt_pages/workforce/components/template_table.vue
  89. 5828 0
      src/xt_pages/workforce/editTableData.vue
  90. 2 2
      src/xt_pages/workforce/printOne.vue
  91. 31 6
      src/xt_pages/workforce/remind_print_setting.vue
  92. 58 10
      src/xt_pages/workforce/schedule_print.vue
  93. 3453 0
      src/xt_pages/workforce/tableData.vue

+ 21 - 21
LICENSE View File

@@ -1,21 +1,21 @@
1
-MIT License
2
-
3
-Copyright (c) 2017-present PanJiaChen
4
-
5
-Permission is hereby granted, free of charge, to any person obtaining a copy
6
-of this software and associated documentation files (the "Software"), to deal
7
-in the Software without restriction, including without limitation the rights
8
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
-copies of the Software, and to permit persons to whom the Software is
10
-furnished to do so, subject to the following conditions:
11
-
12
-The above copyright notice and this permission notice shall be included in all
13
-copies or substantial portions of the Software.
14
-
15
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
-SOFTWARE.
1
+MIT License
2
+
3
+Copyright (c) 2017-present PanJiaChen
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in all
13
+copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+SOFTWARE.

+ 2 - 2
config/dev.env.js View File

@@ -6,8 +6,8 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API: '"http://api.xt.test.sgjyun.com"',
9
+  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
+  //  BASE_API: '"https://api.xt.test.sgjyun.com"',
11 11
   BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',

+ 0 - 0
favicon.ico View File


+ 38 - 38
index.html View File

@@ -1,38 +1,38 @@
1
-<!DOCTYPE html>
2
-<html>
3
-  <head>
4
-    <meta charset="utf-8" />
5
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
-    <meta name="renderer" content="webkit" />
7
-    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
8
-    <meta
9
-      name="viewport"
10
-      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
11
-    />
12
-    <title>酷医云-透析管理平台</title>
13
-    <!-- <link
14
-      rel="stylesheet"
15
-      href="//at.alicdn.com/t/font_1480998_l66fq6mc0y.css"
16
-    /> -->
17
-
18
-  </head>
19
-
20
-  <body>
21
-    <script src="https://images.shengws.com/reconnecting-websocket.min.js"></script>
22
-    <script src="https://images.shengws.com/jquery.min.js"></script>
23
-    <script src="<%= htmlWebpackPlugin.options.path %>/tinymce4.7.5/tinymce.min.js"></script>
24
-    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.config.js"></script>
25
-    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.all.min.js"></script>
26
-    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.service.js"></script>
27
-    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/i18n/zh-cn/zh-cn.js"></script>
28
-    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.parse.min.js"></script>
29
-
30
-    <div id="app"></div>
31
-    <!-- built files will be auto injected -->
32
-    <link
33
-      rel="stylesheet"
34
-      href="//at.alicdn.com/t/font_795029_9ftx46rzd47.css"
35
-    />
36
-
37
-  </body>
38
-</html>
1
+<!DOCTYPE html>
2
+<html>
3
+  <head>
4
+    <meta charset="utf-8" />
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
+    <meta name="renderer" content="webkit" />
7
+    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
8
+    <meta
9
+      name="viewport"
10
+      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
11
+    />
12
+    <title>酷医云-透析管理平台</title>
13
+    <!-- <link
14
+      rel="stylesheet"
15
+      href="//at.alicdn.com/t/font_1480998_l66fq6mc0y.css"
16
+    /> -->
17
+
18
+  </head>
19
+
20
+  <body>
21
+    <script src="https://images.shengws.com/reconnecting-websocket.min.js"></script>
22
+    <script src="https://images.shengws.com/jquery.min.js"></script>
23
+    <script src="<%= htmlWebpackPlugin.options.path %>/tinymce4.7.5/tinymce.min.js"></script>
24
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.config.js"></script>
25
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.all.min.js"></script>
26
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.service.js"></script>
27
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/i18n/zh-cn/zh-cn.js"></script>
28
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.parse.min.js"></script>
29
+
30
+    <div id="app"></div>
31
+    <!-- built files will be auto injected -->
32
+    <link
33
+      rel="stylesheet"
34
+      href="//at.alicdn.com/t/font_795029_9ftx46rzd47.css"
35
+    />
36
+
37
+  </body>
38
+</html>

+ 6 - 5
src/api/advice.js View File

@@ -505,6 +505,7 @@ export function getSchedualDoctors(params) {
505 505
 }
506 506
 
507 507
 export function getNewSchedualDoctors(params) {
508
+  console.log('params-----', params)
508 509
   return request({
509 510
     url: '/api/schedule/new/advices',
510 511
     method: 'get',
@@ -568,10 +569,10 @@ export function excutionDoctorAdviceById(params) {
568 569
   })
569 570
 }
570 571
 
571
-export function GetMobileScheduleList(params){
572
+export function GetMobileScheduleList(params) {
572 573
   return request({
573
-    url:"/api/schedule/getmobileschedulelist",
574
-    method:"Get",
575
-    params:params,
574
+    url: '/api/schedule/getmobileschedulelist',
575
+    method: 'Get',
576
+    params: params
576 577
   })
577
-}
578
+}

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

@@ -612,3 +612,43 @@ export function getDialysisSolutionDetailList(params) {
612 612
     params: params
613 613
   })
614 614
 }
615
+
616
+export function createFirstDisease(data) {
617
+  return request({
618
+    url: '/api/patient/createfirstdisease',
619
+    method: 'post',
620
+    data: data
621
+  })
622
+}
623
+
624
+export function getFirstDiseaseList(params) {
625
+  return request({
626
+    url: '/api/patient/getfirstdiseaselist',
627
+    method: 'Get',
628
+    params: params
629
+  })
630
+}
631
+
632
+export function getFirstDetail(id, params) {
633
+  return request({
634
+    url: '/api/patient/getfirstdetailbyid?id=' + id,
635
+    method: 'get',
636
+    params: params
637
+  })
638
+}
639
+
640
+export function updateFirstDisease(data) {
641
+  return request({
642
+    url: '/api/patient/updatefirstdisease',
643
+    method: 'post',
644
+    data: data
645
+  })
646
+}
647
+
648
+export function deleteFirstDisease(params) {
649
+  return request({
650
+    url: '/api/patient/deletefirstdisease',
651
+    method: 'get',
652
+    params: params
653
+  })
654
+}

+ 7 - 1
src/api/schedule.js View File

@@ -296,7 +296,13 @@ export function  postScheduleConfig(params) {
296 296
 }
297 297
 
298 298
 
299
-
299
+export function CreateScheduleTwo(id, schedule,id_two) {
300
+  return request({
301
+    url: '/api/schedule/create_two?patient_id=' + id+"&id_two="+id_two,
302
+    method: 'Post',
303
+    data: schedule
304
+  })
305
+}
300 306
 
301 307
 
302 308
 

+ 8 - 1
src/lang/zh.js View File

@@ -405,6 +405,13 @@ export default {
405 405
     illness_discharge: '出院时病情',
406 406
     discharge_advice: '出院医嘱',
407 407
     dialysis_remark: '透析备注',
408
-    catheter_operation:'导管备注',
408
+    catheter_operation: '导管备注',
409
+    main_content: '主诉内容',
410
+    patient_case: '病例特点',
411
+    tentative_diagnosis: '初步诊断',
412
+    diagnostic_basis: '诊断依据',
413
+    differential_diagnosis: '鉴别诊断',
414
+    treatment_plan: '诊疗计划'
415
+
409 416
   }
410 417
 }

+ 14 - 1
src/router/modules/dialysis.js View File

@@ -789,6 +789,19 @@ export default {
789 789
         title: '批量打印',
790 790
         noCache: true
791 791
       }
792
-    }
792
+    },
793
+
794
+    {
795
+      path: '/dialysis/print/batch/fiftyOne',
796
+      component: () =>
797
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne'),
798
+      hidden: true,
799
+      is_menu: false,
800
+      name: 'batch_print_order_fiftyOne',
801
+      meta: {
802
+        title: '批量打印',
803
+        noCache: true
804
+      }
805
+    },
793 806
   ]
794 807
 }

+ 22 - 0
src/router/modules/patient.js View File

@@ -247,6 +247,28 @@ export default {
247 247
       title: 'templateSummary',
248 248
       noCache: true
249 249
     }
250
+  },
251
+  {
252
+    path: '/patient/patient/:id/firstDisease',
253
+    component: () => import('@/xt_pages/user/firstDisease'),
254
+    hidden: true,
255
+    is_menu: false,
256
+    name: 'firstDisease',
257
+    meta: {
258
+      title: 'firstDisease',
259
+      noCache: true
260
+    }
261
+  },
262
+  {
263
+    path: '/patient/patient/firstDisease/print',
264
+    component: () => import('@/xt_pages/user/firstDiseasePrint'),
265
+    hidden: true,
266
+    is_menu: false,
267
+    name: 'firstDiseasePrint',
268
+    meta: {
269
+      title: 'firstDiseasePrint',
270
+      noCache: true
271
+    }
250 272
   }
251 273
 
252 274
   ]

+ 21 - 0
src/xt_pages/LICENSE View File

@@ -0,0 +1,21 @@
1
+MIT License
2
+
3
+Copyright (c) 2017-present PanJiaChen
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in all
13
+copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+SOFTWARE.

+ 20 - 2
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -484,7 +484,7 @@ export default {
484 484
       isVisibility: "",
485 485
       propsTable: "",
486 486
       doctorList: [],
487
-      admin_user_id: 0,
487
+      admin_user_id:0,
488 488
       waiting_drug: [], //待发药列表
489 489
       issued_drug: [], //已发药列表
490 490
       currentRow: null,
@@ -1091,7 +1091,25 @@ export default {
1091 1091
       };
1092 1092
       getpatientswithdrugs(params).then((res) => {
1093 1093
         if (res.data.state == 1) {
1094
-          this.tableData = res.data.data.list; //列表数据
1094
+          var list = res.data.data.list; //列表数据
1095
+
1096
+          if(this.$store.getters.xt_user.org.id == 10188 || this.$store.getters.xt_user.org.id == 10217 ){
1097
+            this.tableData = []
1098
+            if(list!=null && list.length >0){
1099
+              for(let i=0;i<list.length;i++){
1100
+                if(list[i].data_sources != "临时医嘱"){
1101
+                  this.tableData.push(list[i])
1102
+                }
1103
+              }
1104
+            }
1105
+
1106
+          }
1107
+          if(this.$store.getters.xt_user.org.id != 10188 && this.$store.getters.xt_user.org.id != 10217){
1108
+            this.tableData = []
1109
+            this.tableData = list
1110
+          }
1111
+         
1112
+         
1095 1113
           this.total = res.data.data.total; //合计
1096 1114
         } else {
1097 1115
           this.$message.error(res.data.msg);

+ 18 - 1
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -515,6 +515,7 @@ export default {
515 515
     },
516 516
     //获取患者信息详情
517 517
     getpatientdetails(val) {
518
+      console.log("val2332323223",this.currentRow)
518 519
       var params = {
519 520
         patient_id: this.currentRow.PatientID,
520 521
         is_medicine: val,
@@ -522,7 +523,23 @@ export default {
522 523
       };
523 524
       getpharmacycontent(params).then((res) => {
524 525
         if (res.data.state == 1) {
525
-          this.tableData = res.data.data.list;
526
+           var list = res.data.data.list;
527
+           console.log("hhhhawoowowow",list)
528
+          if(this.$store.getters.xt_user.org.id == 10188 || this.$store.getters.xt_user.org.id == 10217 || this.$store.getters.xt_user.org.id == 0 ){
529
+            this.tableData = []
530
+            if(list!=null && list.length >0){
531
+              for(let i=0;i<list.length;i++){
532
+                if(list[i].DataSources != "临时医嘱"){
533
+                  this.tableData.push(list[i])
534
+                }
535
+              }
536
+            }
537
+
538
+          }
539
+          if(this.$store.getters.xt_user.org.id != 10188 && this.$store.getters.xt_user.org.id != 10217 && this.$store.getters.xt_user.org.id != 0){
540
+            this.tableData = []
541
+            this.tableData = list
542
+          }
526 543
         } else {
527 544
           this.$message.error(res.data.msg);
528 545
         }

+ 6 - 0
src/xt_pages/data/template.vue View File

@@ -56,6 +56,12 @@ export default {
56 56
         { label: this.$t("data_config.discharge_advice"), key:"discharge_advice"},
57 57
         { label: this.$t("data_config.dialysis_remark"), key:"dialysis_remark"},
58 58
         { label: this.$t("data_config.catheter_operation"), key:"catheter_operation"},
59
+        { label: this.$t("data_config.main_content"), key:"main_content"},
60
+        { label: this.$t("data_config.patient_case"), key:"patient_case"},
61
+        { label: this.$t("data_config.tentative_diagnosis"), key:"tentative_diagnosis"},
62
+        { label: this.$t("data_config.diagnostic_basis"), key:"diagnostic_basis"},
63
+        { label: this.$t("data_config.differential_diagnosis"), key:"differential_diagnosis"},
64
+        { label: this.$t("data_config.treatment_plan"), key:"treatment_plan"},
59 65
       ],
60 66
       activeName: "education",
61 67
       createdTimes: 0

+ 7 - 2
src/xt_pages/dialysis/PatientBox.vue View File

@@ -159,16 +159,21 @@
159 159
         </p>
160 160
 
161 161
 
162
-        <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
+        <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
163 163
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
164 164
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
165 165
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
166 166
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
167 167
         </p>
168
-        <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
+        <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
169 169
              透析器/灌流器:
170 170
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
171 171
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
172
+             
173
+        </p>
174
+        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445">
175
+           滤过器:
176
+           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
172 177
         </p>
173 178
       
174 179
         <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">

+ 15 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue View File

@@ -47,7 +47,7 @@
47 47
                     年龄:<span
48 48
                       style="display:inline-block;margin-left:10px;"
49 49
                     >
50
-                    {{ getAge(record.patient) }}
50
+                    {{ getAge(record.patient.id_card_no) }}
51 51
                     </span>
52 52
                   </td>
53 53
                   <td style="text-align:center;width:160px">
@@ -1075,7 +1075,7 @@
1075 1075
             年龄:<span
1076 1076
               style="display:inline-block;margin-left:10px;"
1077 1077
             >
1078
-            {{ getAge(record.patient) }}
1078
+            {{ getAge(record.patient.id_card_no) }}
1079 1079
             </span>
1080 1080
           </td>
1081 1081
           <td style="text-align:center;width:160px">
@@ -1723,6 +1723,19 @@ export default {
1723 1723
         return val.age
1724 1724
       }
1725 1725
     },
1726
+    getNewAge(UUserCard) {
1727
+      if (UUserCard != null && UUserCard != '') {
1728
+        // 获取年龄
1729
+        var myDate = new Date()
1730
+        var month = myDate.getMonth() + 1
1731
+        var day = myDate.getDate()
1732
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
1733
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
1734
+          age++
1735
+        }
1736
+        return age
1737
+      }
1738
+    },
1726 1739
     newAdviceGroupObject: function() {
1727 1740
       return Object.assign(
1728 1741
         {},

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


+ 36 - 11
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -934,7 +934,8 @@
934 934
                               : "/"
935 935
                           }}
936 936
                         </div>
937
-                        L
937
+                         <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469">ml</span> 
938
+                         <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469">L</span>
938 939
                       </div>
939 940
                       <div class="inline_block" style="flex: 1">
940 941
                         干体重:
@@ -1428,11 +1429,20 @@
1428 1429
                           </td>
1429 1430
 
1430 1431
                           <td>
1431
-                            <span>{{
1432
+                            <span v-if="org_id == 9671 || org_id == 10440">
1433
+                                {{
1434
+                              monitor_record.ultrafiltration_volume
1435
+                                ? monitor_record.ultrafiltration_volume
1436
+                                : "0"
1437
+                            }}
1438
+                            </span>
1439
+                             <span v-if="org_id!=9671 && org_id!=10440">
1440
+                                {{
1432 1441
                               monitor_record.ultrafiltration_volume
1433 1442
                                 ? monitor_record.ultrafiltration_volume
1434 1443
                                 : ""
1435
-                            }}</span>
1444
+                            }}
1445
+                            </span>
1436 1446
                           </td>
1437 1447
 
1438 1448
                           <td
@@ -1504,14 +1514,14 @@
1504 1514
                                   "
1505 1515
                                   >【开始透析】</template
1506 1516
                                 >
1507
-                                <template
1517
+                                <!-- <template
1508 1518
                                   v-if="
1509 1519
                                     record.dialysis_order &&
1510 1520
                                     monitor_record.operate_time ==
1511 1521
                                       record.dialysis_order.end_time
1512 1522
                                   "
1513 1523
                                   >【结束透析】</template
1514
-                                >
1524
+                                > -->
1515 1525
                                 {{ monitor_record.end }}
1516 1526
                                 {{ monitor_record.symptom }} &nbsp;{{
1517 1527
                                   monitor_record.dispose
@@ -2233,7 +2243,7 @@
2233 2243
                         style="flex: 1"
2234 2244
                         v-if="org_id != 10223"
2235 2245
                       >
2236
-                        透析中入量:
2246
+                        透析中入量(L)
2237 2247
                         <div
2238 2248
                           class="under_line"
2239 2249
                           style="width: 100px; text-align: center"
@@ -2806,20 +2816,20 @@
2806 2816
                           <template
2807 2817
                             v-if="
2808 2818
                               record.prescription &&
2809
-                              record.prescription.prescription_doctor
2819
+                              record.prescription.creater
2810 2820
                             "
2811 2821
                           >
2812 2822
                             <span
2813 2823
                               v-if="
2814 2824
                                 setAdminUserES(
2815 2825
                                   record.prescription,
2816
-                                  'prescription_doctor'
2826
+                                  'creater'
2817 2827
                                 ) == ''
2818 2828
                               "
2819 2829
                               >{{
2820 2830
                                 getAdminUser(
2821 2831
                                   record.prescription,
2822
-                                  "prescription_doctor"
2832
+                                  "creater"
2823 2833
                                 )
2824 2834
                               }}</span
2825 2835
                             >
@@ -2828,7 +2838,7 @@
2828 2838
                               :src="
2829 2839
                                 setAdminUserES(
2830 2840
                                   record.prescription,
2831
-                                  'prescription_doctor'
2841
+                                  'creater'
2832 2842
                                 )
2833 2843
                               "
2834 2844
                               alt=""
@@ -2987,7 +2997,22 @@ export default {
2987 2997
         var resp = rs.data;
2988 2998
         if (resp.state == 1) {
2989 2999
           this.records = this.records.concat(resp.data.schedules);
2990
-
3000
+          var tempmonitorflag = true;
3001
+          for(let i=0;i<this.records.length;i++){
3002
+            for(let j=0;j<this.records[i].monitor_records.length;j++){
3003
+              this.records[i].monitor_records[j].end = ""
3004
+              if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
3005
+              this.records[i].monitor_records[j].end = "【结束透析】";
3006
+              tempmonitorflag = false;
3007
+            }
3008
+            if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
3009
+              this.records[i].monitor_records[j].end = "【结束透析】";
3010
+             }
3011
+             if(this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end == ""){
3012
+               this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end = "【结束透析】"
3013
+             }
3014
+            }
3015
+          }
2991 3016
           for (const recordIndex in this.records) {
2992 3017
             var dlegh = 0;
2993 3018
             if (

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

@@ -1329,14 +1329,14 @@
1329 1329
                                   "
1330 1330
                                   >【开始透析】</template
1331 1331
                                 >
1332
-                                <template
1332
+                                <!-- <template
1333 1333
                                   v-if="
1334 1334
                                     record.dialysis_order &&
1335 1335
                                     monitor_record.operate_time ==
1336 1336
                                       record.dialysis_order.end_time
1337 1337
                                   "
1338 1338
                                   >【结束透析】</template
1339
-                                >
1339
+                                > -->
1340 1340
                                 {{ monitor_record.end }}
1341 1341
                                 {{ monitor_record.symptom }} &nbsp;{{
1342 1342
                                   monitor_record.dispose
@@ -2675,7 +2675,24 @@ export default {
2675 2675
         var resp = rs.data;
2676 2676
         if (resp.state == 1) {
2677 2677
           this.records = this.records.concat(resp.data.schedules);
2678
-
2678
+          console.log("this.records------",this.records)
2679
+          var tempmonitorflag = true;
2680
+          for(let i=0;i<this.records.length;i++){
2681
+            for(let j=0;j<this.records[i].monitor_records.length;j++){
2682
+              this.records[i].monitor_records[j].end = ""
2683
+              if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
2684
+              this.records[i].monitor_records[j].end = "【结束透析】";
2685
+              tempmonitorflag = false;
2686
+            }
2687
+            if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
2688
+              this.records[i].monitor_records[j].end = "【结束透析】";
2689
+            }
2690
+             if(this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end == ""){
2691
+               this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end = "【结束透析】"
2692
+             }
2693
+            }
2694
+          }
2695
+          console.log("hhhhhhhhh",this.records)
2679 2696
           for (const recordIndex in this.records) {
2680 2697
             var dlegh = 0;
2681 2698
             if (

+ 65 - 27
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue View File

@@ -200,10 +200,7 @@
200 200
                   </td>
201 201
                 </tr>
202 202
                 <tr>
203
-                  <td style="text-align:left;" colspan="1">
204
-                    <span style="display:inline-block;margin-left:15px;"
205
-                      >透前体重:{{record.assessment_before_dislysis.weight_before?record.assessment_before_dislysis.weight_before:"/"}}&nbsp;kg</span>
206
-                  </td>
203
+                
207 204
                   <td style="text-align:left;" colspan="1">
208 205
                     <span style="display:inline-block;margin-left:15px;"
209 206
                       >设定脱水量:{{record.prescription.target_ultrafiltration?record.prescription.target_ultrafiltration:"/"}}&nbsp;ml</span
@@ -217,7 +214,7 @@
217 214
                          ></label-box>
218 215
                      </span>
219 216
                    </td>
220
-                   <td style="text-align: left" colspan="2">
217
+                   <td style="text-align: left" colspan="3">
221 218
               <span style="display: inline-block; margin-left: 15px">
222 219
                 <span v-if="record.prescription.anticoagulant == 2">普通肝素首剂:</span>
223 220
                 <span v-if="record.prescription.anticoagulant == 3"
@@ -306,7 +303,56 @@
306 303
               <span v-if="record.prescription.anticoagulant == 2">mg</span>
307 304
               <span v-if="record.prescription.anticoagulant == 1">mg</span>
308 305
             </td>
309
-                </tr>
306
+           
307
+            </tr>
308
+                 <td style="text-align:left;" colspan="1">
309
+                    <span style="display:inline-block;margin-left:15px;"
310
+                      >透前体重:{{record.assessment_before_dislysis.weight_before?record.assessment_before_dislysis.weight_before:"/"}}&nbsp;kg</span>
311
+                  </td>
312
+                 <td style="text-align:left;" colspan="1" >
313
+                    <span style="display:inline-block;margin-left:15px;"
314
+                      >透析器型号:
315
+                    <span v-if="record.prescription.dialysis_dialyszers!=''">
316
+                      {{
317
+                        record.prescription.dialysis_dialyszers
318
+                         ?  record.prescription.dialysis_dialyszers
319
+                           : "/"
320
+                        }}
321
+                      </span> 
322
+                    
323
+                      </span>
324
+                  </td>
325
+
326
+                  <td style="text-align:left;" colspan="2">
327
+                    <span style="display:inline-block;margin-left:15px;"
328
+                      >灌流器型号:
329
+                   
330
+                      <span v-if="record.prescription.dialysis_irrigation!=''">
331
+                        &nbsp;&nbsp;{{
332
+                        record.prescription.dialysis_irrigation
333
+                        ? record.prescription.dialysis_irrigation
334
+                        : "/"
335
+                    }}
336
+                      </span>
337
+                      </span>
338
+                  </td>
339
+
340
+                   <td style="text-align:left;" colspan="2">
341
+                    <span style="display:inline-block;margin-left:15px;"
342
+                      >滤过器型号:
343
+                      <span v-if="record.prescription.dialysis_strainer!=''">
344
+                      &nbsp;&nbsp;{{
345
+                          record.prescription.dialysis_strainer
346
+                          ? record.prescription.dialysis_strainer
347
+                          : "/"
348
+                      }}
349
+                      </span> 
350
+                      </span>
351
+                  </td>
352
+                  <td></td>
353
+             <tr>
354
+
355
+             </tr>
310 356
                 <tr>
311 357
                   <td style="text-align:left;" colspan="1">
312 358
                     <span style="display:inline-block;margin-left:15px;"
@@ -340,41 +386,30 @@
340 386
                           }}分钟</span>
341 387
                       &nbsp;
342 388
                   </td>
343
-                   <td style="text-align:left;" >
344
-                    <span style="display:inline-block;margin-left:15px;"
345
-                      >透析/灌流器型号:
346
-                     {{
347
-                        record.prescription.dialysis_dialyszers
348
-                         ?  record.prescription.dialysis_dialyszers
349
-                           : "/"
350
-                        }}&nbsp;&nbsp;{{
351
-                        record.prescription.dialysis_irrigation
352
-                        ? record.prescription.dialysis_irrigation
353
-                        : "/"
354
-                    }}
355
-                      </span>
356
-                  </td>
357
-                   <td style="text-align:left;" colspan="2">
389
+               
390
+                   <td style="text-align:left;" colspan="3">
358 391
                     <span style="display:inline-block;margin-left:15px;"
359 392
                       >置换方式:
360 393
                        <label-box
361 394
                          :isChecked="
362
-                          record.prescription.displace_liqui_part == 1 ? true : false
395
+                          record.prescription.displace_liqui_part == 1 && record.prescription.mode_id != 2 &&  record.prescription.mode_id != 5 && record.prescription.mode_id != 12 ? true : false
363 396
                           "
364 397
                          showValue="前"
365 398
                          ></label-box
366 399
                          >&nbsp;
367 400
                         <label-box
368 401
                           :isChecked="
369
-                            record.prescription.displace_liqui_part == 2 ? true : false
402
+                            record.prescription.displace_liqui_part == 2 && record.prescription.mode_id != 2 &&  record.prescription.mode_id != 5 && record.prescription.mode_id != 12? true : false
370 403
                           "
371 404
                           showValue="后"
372 405
                         ></label-box>
373
-                          &nbsp; (总量:{{
406
+                          &nbsp; (总量:
407
+                          <span v-if="record.prescription.mode_id == 2 || record.prescription.mode_id == 5 || record.prescription.mode_id == 12">{{
374 408
                             record.prescription.displace_liqui_value
375 409
                               ? record.prescription.displace_liqui_value
376 410
                               : "/"
377 411
                           }}L)
412
+                          </span>
378 413
                       </span>&nbsp;
379 414
                   </td>
380 415
                 </tr>
@@ -436,7 +471,7 @@
436 471
                           />
437 472
                       </span>
438 473
                   </td>
439
-                   <td style="text-align:left;" colspan="3">
474
+                   <td style="text-align:left;" colspan="2">
440 475
                     <span style="display: inline-block; margin-left: 15px">
441 476
                     穿刺护士:
442 477
                        <span
@@ -464,7 +499,10 @@
464 499
                             style="height: 30px;"
465 500
                           />
466 501
                       </span>
467
-                      <span style="display: inline-block; margin-left: 15px">
502
+                      
503
+                  </td>
504
+                   <td style="text-align:left;" colspan="1">
505
+                   <span style="display: inline-block; margin-left: 15px">
468 506
                         核对护士:
469 507
                        <span
470 508
                        style="height: 30px; display: inline-block"
@@ -492,7 +530,7 @@
492 530
                             style="height: 30px;"
493 531
                           />
494 532
                       </span>
495
-                  </td>
533
+                   </td>
496 534
                   <td style="text-align:left;" colspan="3">
497 535
                     <!-- <span style="display:inline-block;margin-left:15px;display:flex;align-items:center;height:36px;"
498 536
                       >医生签名:

+ 34 - 11
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -329,6 +329,15 @@
329 329
           >批量打印</el-button
330 330
         >
331 331
       </template>
332
+      <template v-if="this.template_id == 51">
333
+        <el-button
334
+          size="small"
335
+          icon="el-icon-printer"
336
+          :disabled="selecting_schs.length == 0"
337
+          @click="batchPrintAction"
338
+          type="primary"
339
+          >批量打印</el-button>
340
+      </template>
332 341
       <template v-if="this.template_id == 59">
333 342
         <el-button
334 343
           size="small"
@@ -336,7 +345,7 @@
336 345
           :disabled="selecting_schs.length == 0"
337 346
           @click="batchPrintAction"
338 347
           type="primary"
339
-          >打印</el-button>
348
+          >批量打印</el-button>
340 349
       </template>
341 350
       <template v-if="this.template_id == 60">
342 351
         <el-button
@@ -534,7 +543,12 @@
534 543
           align="center"
535 544
           width="100"
536 545
         ></el-table-column>
537
-
546
+        <el-table-column
547
+          prop="dry_weight"
548
+          label="干体重(kg)"
549
+          align="center"
550
+          width="120"
551
+        ></el-table-column>
538 552
         <el-table-column
539 553
           prop="dialysis_before_weight"
540 554
           label="透前称重(kg)"
@@ -1408,11 +1422,11 @@ export default {
1408 1422
         this.getTemplateInfo();
1409 1423
       }else {
1410 1424
         var start_month = moment().startOf('month').format('YYYY-MM-DD')
1411
-        var start_time = this.getTimestamp(start_month)
1425
+        var start_time = this.getTimestamp(start_month) 
1412 1426
         this.listQuery.start_time = start_time
1413 1427
         var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1414 1428
         var end_time = this.getTimestamp(end_month)
1415
-        this.listQuery.end_time = end_time
1429
+        this.listQuery.end_time = end_time 
1416 1430
         this.getSchedualPatientList()
1417 1431
       
1418 1432
         this.getAllZone();
@@ -1435,12 +1449,13 @@ export default {
1435 1449
       var date = new Date(nowDate + " 00:00:00");
1436 1450
       this.listQuery.schedul_time = date.getTime();
1437 1451
       var start_month = moment().startOf('month').format('YYYY-MM-DD')
1438
-      var start_time = this.getTimestamp(start_month)
1452
+      var start_time = this.getTimestamp(start_month) 
1453
+     
1439 1454
       this.listQuery.start_time = start_time
1440 1455
       var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1441 1456
       var end_time = this.getTimestamp(end_month)
1442 1457
       this.listQuery.end_time = end_time
1443
-      console.log("listQuery---------",this.listQuery)
1458
+     
1444 1459
       this.getAllZone();
1445 1460
       this.getSchedualPatientList();
1446 1461
       this.getTemplateInfo();
@@ -1513,7 +1528,7 @@ export default {
1513 1528
     },
1514 1529
     getTimestamp(time) { //把时间日期转成时间戳
1515 1530
 
1516
-      return (new Date(time)).getTime()
1531
+      return (new Date(time)).getTime() - 28800000
1517 1532
     },
1518 1533
     getTimestampOne(time) { //把时间日期转成时间戳
1519 1534
 
@@ -1529,7 +1544,9 @@ export default {
1529 1544
         this.listQuery.schedul_time = "";
1530 1545
 
1531 1546
       }
1532
-      console.log("params332322332323232",this.listQuery)
1547
+    
1548
+      
1549
+      console.log("params332322332323232",this.listQuery.start_time)
1533 1550
       this.SchedualPatientsTableData = [];
1534 1551
       getSchedualPatient(this.listQuery).then(response => {
1535 1552
 
@@ -1540,7 +1557,7 @@ export default {
1540 1557
         } else {
1541 1558
           this.loading = false;
1542 1559
           this.total = response.data.data.total;
1543
-          // console.log(response.data.data)
1560
+          console.log(response.data.data.schedule)
1544 1561
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1545 1562
 
1546 1563
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
@@ -1576,6 +1593,10 @@ export default {
1576 1593
               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1577 1594
                 SchedualPatientsTable["dialysis_before_weight"] =response.data.data.schedule[i].assessment_before_dislysis.weight_before;
1578 1595
               }
1596
+
1597
+               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1598
+                SchedualPatientsTable["dry_weight"] =response.data.data.schedule[i].assessment_before_dislysis.dry_weight;
1599
+              }
1579 1600
               if (response.data.data.schedule[i].assessment_after_dislysis !=null) {
1580 1601
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
1581 1602
               }
@@ -1870,8 +1891,8 @@ export default {
1870 1891
 
1871 1892
 
1872 1893
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
1873
-              console.log("wode数据",(-100).toString())
1874
-              console.log("数据哦哦😯噢232o",this.SchedualPatientsTableData)
1894
+              // console.log("wode数据",(-100).toString())
1895
+              // console.log("数据哦哦😯噢232o",this.SchedualPatientsTableData)
1875 1896
 
1876 1897
             }
1877 1898
           }
@@ -2057,6 +2078,8 @@ export default {
2057 2078
         this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
2058 2079
       } else if (this.template_id == 48) {
2059 2080
         this.$router.push({ path: "/dialysis/print/batch/six" });
2081
+      }else if (this.template_id == 51) {
2082
+        this.$router.push({ path: "/dialysis/print/batch/fiftyOne" });
2060 2083
       }else if (this.template_id == 59) {
2061 2084
         this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
2062 2085
       }else if (this.template_id == 60) {

+ 22 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -124,6 +124,12 @@
124 124
           <span class="unit"></span>
125 125
         </li>
126 126
 
127
+         <li v-if="isShow('滤过器')">
128
+          <label>滤过器 : </label>
129
+          <span class="content">{{ dialysis_strainer }}</span>
130
+          <span class="unit"></span>
131
+        </li>
132
+
127 133
         <li v-if="isShow('透析前使用特殊药物')">
128 134
           <label>透析前使用特殊药物: </label>
129 135
           <span class="content">{{ special_medicine }}</span>
@@ -142,8 +148,8 @@
142 148
           <label>目标超滤量 : </label>
143 149
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
144 150
           
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  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440"  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 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
151
+          <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  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440  &&  this.$store.getters.xt_user.template_info.org_id != 10469  &&  this.$store.getters.xt_user.template_info.org_id != 10471"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
152
+          <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 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
147 153
         </li>
148 154
 
149 155
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
@@ -157,6 +163,14 @@
157 163
           <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
158 164
         </li> -->
159 165
 
166
+
167
+        <li v-if="isShow('处方脱水量')">
168
+          <label>处方脱水量 : </label>
169
+          <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
170
+          <span class="unit">{{ prescription_water != "0" ? "ml" : "" }}</span>
171
+        </li>
172
+
173
+       
160 174
         <li v-if="isShow('钾')">
161 175
           <label>钾 : </label>
162 176
           <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
@@ -916,6 +930,12 @@ export default {
916 930
     },
917 931
     reduce_amount:function(){
918 932
        return this.getValueStr('reduce_amount','reduce_amount')
933
+    },
934
+    prescription_water:function(){
935
+      return this.getValueStr('prescription_water','prescription_water')
936
+    },
937
+    dialysis_strainer:function(){
938
+       return this.getValueStr('dialysis_strainer','dialysis_strainer')
919 939
     }
920 940
   
921 941
   },

+ 8 - 0
src/xt_pages/dialysis/details/NavIgation.vue View File

@@ -121,6 +121,7 @@
121 121
       :admin_users="admin_users"
122 122
       :dry_weight="last_dryWeight_dislysis"
123 123
       :lastAssessment="lastAssessment"
124
+       :prescription="prescription"
124 125
     ></assessment-before-dislysis-dialog>
125 126
 
126 127
     <treatment-summary-dialog
@@ -662,6 +663,7 @@ export default {
662 663
       this.$refs.finish_dialog.show(this.dialysis_order);
663 664
     },
664 665
     showPrescription: function() {
666
+      console.log("prescirpiton+++++++++++",this.prescription)
665 667
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open,this.admin_users);
666 668
     },
667 669
     showAccepts: function() {
@@ -685,6 +687,12 @@ export default {
685 687
         this.assessment_after_dislysis
686 688
       );
687 689
       this.$emit("assessmentAfterDislysis", this.assessment_after_dislysis);
690
+    },
691
+    showPre(){
692
+
693
+    },
694
+    getParentMethods:function(val){
695
+      this.$parent.getScheduleDetail()
688 696
     }
689 697
   }
690 698
 };

+ 19 - 4
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue View File

@@ -130,7 +130,7 @@
130 130
             </el-option>
131 131
            </el-select>
132 132
            <label class="title"> <span class="name">病区选择</span> : </label>
133
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
133
+           <el-select v-model="partion_type" placeholder="请选择" multiple @change="changePartionType">
134 134
             <el-option
135 135
               v-for="item in partitionArr"
136 136
               :key="item.id"
@@ -258,6 +258,8 @@
258 258
             return v.getTime() < new Date().getTime() - 86400000;
259 259
           },
260 260
         },
261
+        zoneIdList:[],
262
+        partion_str:"",
261 263
       }
262 264
     },
263 265
     created() {
@@ -398,15 +400,28 @@
398 400
             return false
399 401
           } else {
400 402
             this.partitionArr = response.data.data.zone
401
-            this.partitionArr.unshift({ id: 0, name: '全部' })
403
+            for(let i=0;i<this.partitionArr.length;i++){
404
+              this.zoneIdList.push(this.partitionArr[i].id)
405
+            }
406
+            // this.partitionArr.unshift({ id: 0, name: '全部' })
402 407
           }
403 408
         })
404 409
       },
405 410
       statistics() {
406 411
          this.tableList = []
412
+
413
+          var str = ""
414
+         if(this.partion_type==0){
415
+            str = this.zoneIdList.join(",")
416
+         }
417
+         if(this.partion_type!=0){
418
+            str = this.partion_type.join(",")
419
+         }
420
+         this.partion_str = ""
421
+         this.partion_str = str  
407 422
           var params = {
408 423
             schedule_type:this.schedule_type,
409
-            partion_type:this.partion_type,
424
+            partion_type:str,
410 425
             selected_date:this.query.schedule_date,
411 426
           }
412 427
         // console.log("params2332232wo",params)
@@ -726,7 +741,7 @@
726 741
        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 742
       },
728 743
       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})
744
+        this.$router.push({path:'/dialysis/consumable/dialysisdrugcountprint?schedule_type='+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.config.is_open})
730 745
       },
731 746
      changeScheduleType(){
732 747
       this.tableList = []

+ 35 - 7
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

@@ -212,7 +212,7 @@
212 212
             </el-option>
213 213
            </el-select>
214 214
            <label class="title"> <span class="name">病区选择</span> : </label>
215
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
215
+           <el-select v-model="partion_type" placeholder="请选择" multiple @change="changePartionType" >
216 216
             <el-option
217 217
               v-for="item in partitionArr"
218 218
               :key="item.id"
@@ -320,7 +320,7 @@
320 320
             </el-option>
321 321
            </el-select>
322 322
            <label class="title"> <span class="name">病区选择</span> : </label>
323
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
323
+           <el-select v-model="partion_type" placeholder="请选择" multiple @change="changePartionType">
324 324
             <el-option
325 325
               v-for="item in partitionArr"
326 326
               :key="item.id"
@@ -475,6 +475,8 @@
475 475
         typeList:[],
476 476
         ids:"",
477 477
         org_id:0,
478
+        zoneIdList:[],
479
+        pationType_str:"",
478 480
       }
479 481
     },
480 482
     created() {
@@ -754,17 +756,33 @@
754 756
             return false
755 757
           } else {
756 758
             this.partitionArr = response.data.data.zone
757
-            this.partitionArr.unshift({ id: 0, name: '全部' })
759
+            for(let i=0;i<this.partitionArr.length;i++){
760
+              this.zoneIdList.push(this.partitionArr[i].id)
761
+            }
762
+            // this.partitionArr.unshift({ id: 0, name: '全部' })
758 763
           }
759 764
         })
760 765
       },
761 766
       statistics() {
762 767
         this.tableList = []
768
+        
769
+        var arr = this.zoneIdList.join(",")
770
+        var str = ""
771
+         if(this.partion_type == 0){
772
+            str = arr
773
+         }
774
+         if(this.partion_type != 0){
775
+            str = this.partion_type.join(',')
776
+         }
777
+         this.pationType_str = ""
778
+         this.pationType_str = str
779
+        console.log("str-==-------",str)
763 780
         var params = {
764 781
           schedule_type:this.schedule_type,
765
-          partion_type:this.partion_type,
782
+          partion_type:str,
766 783
           selected_date:this.query.schedule_date,
767 784
         }
785
+       
768 786
        getDialysisGoodTotalCount(params).then(response=>{
769 787
           if(response.data.state == 1){
770 788
             this.startDialogVisible = true
@@ -1102,9 +1120,19 @@
1102 1120
       },
1103 1121
       toStatistics(){
1104 1122
         this.tableList = []
1123
+        var arr = this.zoneIdList.join(",")
1124
+        var str = ""
1125
+         if(this.partion_type == 0){
1126
+            str = arr
1127
+         }
1128
+         if(this.partion_type != 0){
1129
+            str = this.partion_type.join(',')
1130
+         }
1131
+         this.pationType_str=""
1132
+         this.pationType_str = str
1105 1133
          var params = {
1106 1134
           schedule_type:this.schedule_type,
1107
-          partion_type:this.partion_type,
1135
+          partion_type:str,
1108 1136
           selected_date:this.query.schedule_date,
1109 1137
         }
1110 1138
         getHisDialysisGoodCount(params).then(response=>{
@@ -1974,10 +2002,10 @@
1974 2002
      this.$router.push({path:'/dialysis/consumable/dialysisgoodprint?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})
1975 2003
     },
1976 2004
     toPrintOne(){
1977
-      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
2005
+      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.pationType_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
1978 2006
     },
1979 2007
     toHisPrint(){
1980
-      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
2008
+      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.pationType_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
1981 2009
     },
1982 2010
     toExportListOne(){
1983 2011
       import('@/vendor/Export2Excel').then(excel => {

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

@@ -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.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 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445"  >
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 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410"  >
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>
@@ -362,7 +362,7 @@
362 362
         </el-col>
363 363
 
364 364
         <el-col :span="8" v-if="isShow('透析中入量')">
365
-          <el-form-item label="透析中入量: ">
365
+          <el-form-item label="透析中入量(L): ">
366 366
             <el-input v-model="form.dialysis_intakes"></el-input>
367 367
           </el-form-item>
368 368
         </el-col>
@@ -377,7 +377,7 @@
377 377
                 :value="item.id"
378 378
                 :key="item.id"
379 379
               ></el-option>
380
-            </el-select> 
380
+            </el-select>
381 381
           </el-form-item>
382 382
         </el-col>
383 383
 
@@ -625,7 +625,7 @@
625 625
             </el-form-item>
626 626
         </el-col>
627 627
 
628
-      
628
+
629 629
       </el-form>
630 630
 
631 631
 
@@ -967,7 +967,7 @@ export default {
967 967
       data['weight_after'] = this.form.weight_after ? parseFloat(this.form.weight_after) : 0
968 968
       data['weight_loss'] = this.form.weight_loss ? parseFloat(this.form.weight_loss) : 0
969 969
       data['temperature'] = this.form.temperature ? parseFloat(this.form.temperature) : 0
970
-      data['breathing_rate'] = this.form.breathing_rate 
970
+      data['breathing_rate'] = this.form.breathing_rate
971 971
       data['systolic_blood_pressure'] = this.form.systolic_blood_pressure ? parseFloat(this.form.systolic_blood_pressure) : 0
972 972
       data['diastolic_blood_pressure'] = this.form.diastolic_blood_pressure ? parseFloat(this.form.diastolic_blood_pressure) : 0
973 973
       data['pulse_frequency'] = this.form.pulse_frequency ? parseFloat(this.form.pulse_frequency) : 0
@@ -1211,14 +1211,14 @@ export default {
1211 1211
       if(predialysis.id > 0){
1212 1212
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1213 1213
       }
1214
-     
1214
+
1215 1215
       //针对长沙南雅 ,透后体重 - 目标超滤量
1216 1216
       // if(predialysis.id > 0){
1217 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 1218
       //    if(predialysis.weight_after == 0){
1219 1219
       //      if(this.predialysis_evaluation!=null && this.prescription.target_ultrafiltration!=null){
1220 1220
       //        this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1221
-      //      }  
1221
+      //      }
1222 1222
       //    }
1223 1223
       //  }
1224 1224
       // }
@@ -1253,7 +1253,7 @@ export default {
1253 1253
         //    if(this.prescription!=null && this.predialysis_evaluation!=null){
1254 1254
         //     this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1255 1255
         //    }
1256
-          
1256
+
1257 1257
         // }
1258 1258
       }
1259 1259
 
@@ -1366,7 +1366,7 @@ export default {
1366 1366
 
1367 1367
     var date = this.$route.query && this.$route.query.date
1368 1368
     this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1369
-    if(this.$store.getters.xt_user.template_info.org_id == 0 ||  this.$store.getters.xt_user.template_info.org_id==9829){
1369
+    if(this.$store.getters.xt_user.template_info.org_id == 0 ||  this.$store.getters.xt_user.template_info.org_id==9829 ||  this.$store.getters.xt_user.template_info.org_id==10469){
1370 1370
       this.form.pulse_frequency = 80
1371 1371
     }
1372 1372
   },

+ 42 - 13
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

@@ -213,11 +213,11 @@
213 213
                 </template>
214 214
               </el-table-column>
215 215
 
216
-              <!--<el-table-column label="医嘱嘱托" min-width="80" property="remark" align="center">-->
217
-              <!--<template slot-scope="scope">-->
218
-              <!--<span v-if="scope.row.parent_row==0">{{scope.row.remark}}</span>-->
219
-              <!--</template>-->
220
-              <!--</el-table-column>-->
216
+              <el-table-column label="医嘱嘱托" min-width="80" property="remark" align="center">-->
217
+              <template slot-scope="scope">
218
+              <span v-if="scope.row.parent_row==0">{{scope.row.remark}}</span>
219
+              </template>
220
+             </el-table-column>
221 221
             </el-table>
222 222
           </el-col>
223 223
         </el-row>
@@ -538,14 +538,13 @@
538 538
             </el-form-item>
539 539
           </el-col>
540 540
         </el-row>
541
-        <!--<el-row>-->
542
-        <!--<el-col :span="12">-->
543
-        <!--<el-form-item label="医嘱嘱托 :" prop="delivery_way">-->
544
-        <!--<el-input v-model="nameForm.remark"></el-input>-->
545
-        <!--</el-form-item>-->
546
-        <!--</el-col>-->
547
-
548
-        <!--</el-row>-->
541
+       <el-row>
542
+       <el-col :span="12">
543
+      <el-form-item label="医嘱嘱托 :" prop="delivery_way">
544
+     <el-input v-model="nameForm.remark"></el-input>
545
+      </el-form-item>
546
+      </el-col>
547
+    </el-row>
549 548
       </el-form>
550 549
       <div slot="footer" class="dialog-footer">
551 550
         <el-button @click="nameFormVisible = false">取消</el-button>
@@ -1619,6 +1618,36 @@ export default {
1619 1618
           }
1620 1619
       }
1621 1620
 
1621
+    
1622
+      if( this.$store.getters.xt_user.org.id == 10469 ){
1623
+          var year = date.getFullYear()
1624
+          var month = date.getMonth() + 1
1625
+          var day = date.getDate()
1626
+
1627
+          var hours = date.getHours()
1628
+          var minites = date.getMinutes()
1629
+
1630
+          if (month < 10) {
1631
+            month = '0' + month
1632
+          }
1633
+          if (day < 10) {
1634
+            day = '0' + day
1635
+          }
1636
+          if (hours < 10) {
1637
+            hours = '0' + hours
1638
+          }
1639
+          if (minites < 10) {
1640
+            minites = '0' + minites
1641
+          }
1642
+          if (this.schedulePatient.schedule_type == 1) {
1643
+            this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
1644
+          } else if (this.schedulePatient.schedule_type == 2) {
1645
+            this.groupForm.start_time= year + '-' + month + '-' + day + ' ' + '11:00'
1646
+          } else if (this.schedulePatient.schedule_type == 3) {
1647
+           this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
1648
+          }
1649
+      }
1650
+
1622 1651
     },
1623 1652
     selectAllTemplateAdvice(selection) {
1624 1653
       console.log("params",selection)

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

@@ -190,7 +190,7 @@
190 190
                 align="center"
191 191
               >
192 192
                 <template slot-scope="scope">
193
-                  <span v-if="scope.row.parent_row == 0">{{
193
+                  <span>{{
194 194
                     scope.row.remark
195 195
                   }}</span>
196 196
                 </template>

+ 62 - 7
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -649,6 +649,14 @@
649 649
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
650 650
             </el-form-item>
651 651
           </el-col>
652
+
653
+
654
+           <el-col :span="8">
655
+            <el-form-item label="透前净体重:" 
656
+              v-if="this.$store.getters.xt_user.template_info.template_id == 6">
657
+              <el-input v-model="body_weight_before" readonly></el-input>
658
+            </el-form-item>
659
+          </el-col>
652 660
          
653 661
         
654 662
  
@@ -846,7 +854,8 @@
846 854
         skins:[],
847 855
         pinholings:[],
848 856
         catheter_maintenancelist:[],
849
-        thrombuShow:false
857
+        thrombuShow:false,
858
+        body_weight_before:"",
850 859
       }
851 860
     },
852 861
     props: {
@@ -874,7 +883,15 @@
874 883
          default: () => {
875 884
           return []
876 885
         }
877
-      }
886
+      },
887
+
888
+       prescription: {
889
+        // 透析处方
890
+        type: Object,
891
+        default: () => {
892
+          return { id: 0 }
893
+        }
894
+      },
878 895
 
879 896
     },
880 897
     methods: {
@@ -1083,7 +1100,7 @@
1083 1100
           case '3': // 透析前症状
1084 1101
 
1085 1102
             this.InnerDialogProps.values = this.symptom_before_dialysis
1086
-            this.InnerDialogProps.titles = '透析期间'
1103
+            this.InnerDialogProps.titles = '透析前症状'
1087 1104
             this.InnerDialogProps.type = 'symptom_before_dialysis'
1088 1105
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.symptom_before_dialysis
1089 1106
             this.InnerDialogProps.isShowTextArea = false
@@ -1350,21 +1367,27 @@
1350 1367
               type: 'success',
1351 1368
               duration: 2000
1352 1369
             })
1353
-
1370
+            
1371
+            if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id==3877 || this.$store.getters.xt_user.template_info.org_id ==10469){
1372
+              this.$parent.getParentMethods()
1373
+            }
1374
+            
1354 1375
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1355
-            // console.log("返回数据",assessment_before_dislysis_resp)
1356
-            // prop
1376
+           
1357 1377
             var predialysis_evaluation = this.predialysis_evaluation
1358 1378
             for (var index in assessment_before_dislysis_resp) {
1359 1379
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1360 1380
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1361 1381
             }
1382
+             
1383
+           
1362 1384
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1363 1385
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {
1364 1386
               console.log('res',res.data)
1365 1387
 
1366 1388
             }) 
1367 1389
             this.hide()
1390
+            console.log("hhh23h3h223h23h23h23h2h3")
1368 1391
           }
1369 1392
         })
1370 1393
           } else {
@@ -1565,7 +1588,39 @@
1565 1588
             this.assessmentBeforeDislysis['pulse_frequency'] = ''
1566 1589
           }
1567 1590
         }
1568
-      }
1591
+      },
1592
+      'assessmentBeforeDislysis.weight_before': {
1593
+        handler (newWeight, oldWeight) {
1594
+          let weight = parseFloat(
1595
+            newWeight - this.assessmentBeforeDislysis.additional_weight
1596
+          ).toFixed(1)
1597
+          if (weight > 0) {
1598
+            this.body_weight_before = weight
1599
+          } else {
1600
+            this.body_weight_before = ''
1601
+          }
1602
+        },
1603
+        deep: true,
1604
+        immediate: true
1605
+      },
1606
+
1607
+    'assessmentBeforeDislysis.additional_weight': {
1608
+      handler (newWeight, oldWeight) {
1609
+        if (newWeight > 0) {
1610
+          let weight = parseFloat(
1611
+            this.assessmentBeforeDislysis.weight_before - newWeight
1612
+          ).toFixed(1)
1613
+          if (weight > 0) {
1614
+            this.body_weight_before = weight
1615
+          } else {
1616
+            this.body_weight_before = ''
1617
+          }
1618
+        }
1619
+      },
1620
+      deep: true,
1621
+      immediate: true,
1622
+      data: []
1623
+    },
1569 1624
     }
1570 1625
   }
1571 1626
 

+ 10 - 5
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

@@ -20,7 +20,7 @@
20 20
           label="班次"
21 21
           v-if="isShowFiled('班次')"
22 22
           :prop="isName('班次')"
23
-          :rules="isCheckmust('班次')"
23
+         
24 24
         >
25 25
           <el-select
26 26
             v-model="form.schedual_type"
@@ -70,7 +70,7 @@
70 70
           label="穿刺者"
71 71
           v-if="isShowFiled('穿刺者')"
72 72
           prop="puncture_nurse_id"
73
-          :rules="isCheckmust('穿刺者')"
73
+         
74 74
         >
75 75
           <el-select
76 76
             v-model="form.puncture_nurse_id"
@@ -487,13 +487,16 @@ export default {
487 487
     if (this.form.new_fistula_nurse == 0) {
488 488
       this.form.new_fistula_nurse = this.$store.getters.xt_user.user.id;
489 489
     }
490
-    console.log("dialysis_order9999999999wo", this.dialysis_order);
490
+    // console.log("dialysis_order9999999999wo", this.dialysis_order);
491 491
     this.form.puncture_needle = this.dialysis_order.puncture_needle;
492 492
     this.form.puncture_way = this.dialysis_order.puncture_way;
493 493
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
494 494
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
495 495
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
496 496
     this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
497
+    // this.form.schedual_type = this.dialysis_order.schedule_type
498
+    // this.schedual_type = this.dialysis_order.schedule_type
499
+    // console.log("班次",this.form.schedual_type)
497 500
     this.punctureNeedleOptions = getDataConfig(
498 501
       "hemodialysis",
499 502
       "puncture_needle"
@@ -549,7 +552,8 @@ export default {
549 552
       this.form.blood_access_id = this.dialysis_order.blood_access_id;
550 553
      
551 554
       var blood_access_option_name = this.changeBloodAccessOpionOne(this.dialysis_order.blood_access_id)
552
-    
555
+      // this.form.schedual_type = this.dialysis_order.schedule_type
556
+      // console.log("8823832323223",this.form.schedual_type)
553 557
       this.blood_access_option_name = blood_access_option_name
554 558
       this.form.catheter_operation = this.dialysis_order.catheter_operation
555 559
       this.form.nuclein_date =
@@ -796,7 +800,7 @@ export default {
796 800
           ":" +
797 801
           (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
798 802
       }
799
-
803
+      console.log("hhahhahahahaha",this.dialysis_order)
800 804
       if (this.dialysis_order.id == 0) {
801 805
         let now = new Date();
802 806
         let hour = now.getHours();
@@ -808,6 +812,7 @@ export default {
808 812
           this.schedual_type = 3;
809 813
         }
810 814
       } else {
815
+        this.form.schedual_type = this.dialysis_order.schedual_type;
811 816
         this.schedual_type = this.dialysis_order.schedual_type;
812 817
       }
813 818
 

+ 127 - 13
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -95,7 +95,7 @@
95 95
                     </el-col>
96 96
 
97 97
                     <el-col :span="8"
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 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440)">
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 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471)">
99 99
                         <el-form-item label="目标超滤量(ml):">
100 100
                             <el-input
101 101
                                     type="number"
@@ -104,9 +104,11 @@
104 104
                         </el-form-item>
105 105
                     </el-col>
106 106
 
107
+                    
108
+
107 109
 
108 110
                     <el-col :span="8"
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 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
111
+                            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 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471">
110 112
                         <el-form-item label="目标超滤量(L):">
111 113
                             <el-input
112 114
                                     type="number"
@@ -115,6 +117,16 @@
115 117
                         </el-form-item>
116 118
                     </el-col>
117 119
 
120
+                    <el-col :span="8"
121
+                            v-if="isShows('处方脱水量')">
122
+                        <el-form-item label="处方脱水量(ml):">
123
+                            <el-input
124
+                                    type="number"
125
+                                    v-model="dialysisPrescription.prescription_water"
126
+                            ></el-input>
127
+                        </el-form-item>
128
+                    </el-col>
129
+
118 130
                    <el-col :span="8" v-if="isShows('带水上机')">
119 131
                         <el-form-item label="带水上机:">
120 132
                            <el-select v-model="dialysisPrescription.water_machine">
@@ -273,7 +285,7 @@
273 285
                     </el-col>
274 286
 
275 287
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
276
-                        <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 != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
288
+                        <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 != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440  && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471">
277 289
                           <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">
278 290
                             <el-form-item
279 291
                                     v-if='dialysisPrescription.anticoagulant != 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!=9990'
@@ -356,7 +368,7 @@
356 368
 
357 369
 
358 370
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
359
-                        <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 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
371
+                        <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 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471">
360 372
                           <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 ">
361 373
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
362 374
                                           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">
@@ -420,7 +432,7 @@
420 432
 
421 433
 
422 434
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
423
-                        <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 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
435
+                        <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 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471">
424 436
                           <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">
425 437
                             <el-form-item
426 438
                                     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'
@@ -597,7 +609,7 @@
597 609
                           type="number"
598 610
                           v-model="dialysisPrescription.glucose"
599 611
                         ></el-input>
600
-                      </el-form-item>
612
+                      </el-form-item>28
601 613
                     </el-col> -->
602 614
                     <el-col :span="8" v-if="isShows('透析液流量')">
603 615
                         <el-form-item label="透析液流量(ml/min):">
@@ -649,6 +661,14 @@
649 661
                         </el-form-item>
650 662
                     </el-col>
651 663
 
664
+
665
+                     <el-col :span="8" v-if="isShows('滤过器')">
666
+                        <el-form-item label="滤过器:">
667
+                            <el-input v-model="dialysisPrescription.dialysis_strainer"
668
+                                      @focus="showInnerDialog('12')"></el-input>
669
+                        </el-form-item>
670
+                    </el-col>
671
+
652 672
                     <el-col :span="8" v-if="isShows('血浆分离器')">
653 673
                         <el-form-item label="血浆分离器:">
654 674
                             <el-input v-model="dialysisPrescription.plasma_separator"
@@ -1582,6 +1602,8 @@
1582 1602
           sodium_curve:"",
1583 1603
           dialysis_fluid_flow:"",
1584 1604
           sodium_bicarbonate_flow:"",
1605
+          prescription_water:"",
1606
+          dialysis_strainer:"",
1585 1607
         },
1586 1608
 
1587 1609
         anticoagulant: {
@@ -1605,6 +1627,7 @@
1605 1627
         bloods: [],
1606 1628
         irrigations: [],
1607 1629
         dialyzers: [],
1630
+        dialysisStrainerList:[],
1608 1631
         illnessList: [],
1609 1632
         plasmaSeparatorList: [],
1610 1633
         bilirubinAdsorptionColumn: [],
@@ -1647,6 +1670,7 @@
1647 1670
 
1648 1671
       },
1649 1672
       showInnerDialog: function(val) {
1673
+       
1650 1674
         this.InnerDialogProps.visibility = true
1651 1675
         switch (val) {
1652 1676
           case '5': // 透析器/灌流器
@@ -1654,7 +1678,7 @@
1654 1678
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1655 1679
             this.InnerDialogProps.titles = '透析器/灌流器'
1656 1680
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1657
-
1681
+           
1658 1682
             this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
1659 1683
             this.InnerDialogProps.isShowTextArea = false
1660 1684
             break
@@ -1713,22 +1737,84 @@ mu
1713 1737
             this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
1714 1738
             this.InnerDialogProps.isShowTextArea = false
1715 1739
             break
1740
+
1741
+          case '12':
1742
+            for (let i = 0; i < this.dialysisStrainerList.length; i++) {
1743
+              this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
1744
+            }
1745
+            this.InnerDialogProps.values = this.dialysisStrainerList
1746
+            this.InnerDialogProps.titles = '滤过器'
1747
+            this.InnerDialogProps.type = 'dialysis_strainer'
1748
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_strainer
1749
+            this.InnerDialogProps.isShowTextArea = false
1750
+            break
1716 1751
         }
1717 1752
       },
1718 1753
       innerDialogComfirm: function(val) {
1754
+      
1755
+
1719 1756
         this.InnerDialogProps.visibility = false
1720 1757
         switch (val.type) {
1758
+
1721 1759
           case 'dialyzer_perfusion_apparatus':
1722
-            this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
1760
+            var newArr = []
1761
+            if(this.dialyzerPerfusionApparatus!=null && this.dialyzerPerfusionApparatus.length>0){
1762
+              for(let i=0;i<this.dialyzerPerfusionApparatus.length;i++){
1763
+                for(let j=0;j<val.value.length;j++){
1764
+                   if(this.dialyzerPerfusionApparatus[i].name == val.value[j]){
1765
+                     newArr.push(val.value[j])
1766
+                   }
1767
+                }
1768
+              }
1769
+            } 
1770
+            if(newArr!=null && newArr.length>0){
1771
+              
1772
+              this.dialysisPrescription.dialyzer_perfusion_apparatus = newArr.join(',')
1773
+            }else{
1774
+              this.dialysisPrescription.dialyzer_perfusion_apparatus = ""
1775
+            }
1776
+           
1723 1777
             break
1724 1778
           case 'blood':
1779
+            
1725 1780
             this.dialysisPrescription.blood = val.value.join(',')
1726 1781
             break
1727 1782
           case 'dialyzers':
1728
-            this.dialysisPrescription.dialysis_dialyszers = val.value.join(',')
1783
+            
1784
+            var newArr = []
1785
+            if(this.dialyzers!=null && this.dialyzers.length >0){
1786
+              for(let i=0;i<this.dialyzers.length;i++){
1787
+                for(let j=0;j<val.value.length;j++){
1788
+                  if(this.dialyzers[i].specification_name == val.value[j]){
1789
+                      newArr.push(val.value[j])
1790
+                  }
1791
+                }
1792
+              }
1793
+            }
1794
+            if(newArr!=null && newArr.length >0){
1795
+             this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
1796
+            }else{
1797
+              this.dialysisPrescription.dialysis_dialyszers = ""
1798
+            }
1799
+            
1729 1800
             break
1730 1801
           case 'irrigations':
1731
-            this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1802
+            var newArr = []
1803
+            if(this.irrigations!=null && this.irrigations.length >0){
1804
+              for(let i=0;i<this.irrigations.length;i++){
1805
+                for(let j=0;j<val.value.length;j++){
1806
+                  if(this.irrigations[i].specification_name == val.value[j]){
1807
+                     newArr.push(val.value[j])
1808
+                  }
1809
+                }
1810
+              }
1811
+            }
1812
+            if(newArr!=null && newArr.length>0){
1813
+             this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
1814
+            }else{
1815
+              this.dialysisPrescription.dialysis_irrigation = ""
1816
+            }
1817
+            
1732 1818
             break
1733 1819
           case 'plasma_separator':
1734 1820
             this.dialysisPrescription.plasma_separator = val.value.join(',')
@@ -1739,6 +1825,9 @@ mu
1739 1825
           case 'puncture_needle':
1740 1826
             this.dialysisPrescription.puncture_needle = val.value.join(',')
1741 1827
             break
1828
+          case 'dialysis_strainer':
1829
+            this.dialysisPrescription.dialysis_strainer = val.value.join(',')
1830
+            break
1742 1831
         }
1743 1832
       },
1744 1833
       innerDialogCancle: function() {
@@ -2230,6 +2319,7 @@ mu
2230 2319
       },
2231 2320
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2232 2321
         console.log("pres",pre)
2322
+        console.log("schedual",schedual)
2233 2323
         if (pre != undefined) {
2234 2324
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2235 2325
           if (pre.oxygen_uptake == 1) {
@@ -2357,6 +2447,14 @@ mu
2357 2447
             } else if (schedual.schedule_type == 3) {
2358 2448
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:30'
2359 2449
             }
2450
+           }else if(this.$store.getters.xt_user.org.id == 10469){
2451
+              if (schedual.schedule_type == 1) {
2452
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
2453
+            } else if (schedual.schedule_type == 2) {
2454
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2455
+            } else if (schedual.schedule_type == 3) {
2456
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2457
+            }
2360 2458
            } else {
2361 2459
             if (schedual.schedule_type == 1) {
2362 2460
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
@@ -3875,9 +3973,13 @@ mu
3875 3973
     },
3876 3974
 
3877 3975
     watch: {
3878
-      'dialysisPrescription.blood_flow_volume': function () {
3879
-        this.dialysisPrescription.replacement_flow = replacementFlow(this.dialysisPrescription.blood_flow_volume)
3880
-      },
3976
+      // 'dialysisPrescription.blood_flow_volume': function () {
3977
+      //   this.dialysisPrescription.blood_flow_volume = replacementFlow(this.dialysisPrescription.blood_flow_volume)
3978
+      // },
3979
+      // 'dialysisPrescription.replacement_flow': function () {
3980
+      //   console.log("血流量",this.dialysisPrescription.replacement_flow)
3981
+      //   this.dialysisPrescription.replacement_flow = this.dialysisPrescription.replacement_flow
3982
+      // },
3881 3983
       'dialysisPrescription.dialysis_duration_hour': function() {
3882 3984
         let dialysis_duration_minute = 0
3883 3985
         let dialysis_duration_hour = 0
@@ -4443,6 +4545,7 @@ mu
4443 4545
         console.log('stockType', this.stockType)
4444 4546
         var arr = []
4445 4547
         var arrTwo = []
4548
+        var arrThree = []
4446 4549
         for (let i = 0; i < this.stockType.length; i++) {
4447 4550
           if (this.stockType[i].stock_attribute == 2) {
4448 4551
             arr.push(this.stockType[i])
@@ -4450,9 +4553,13 @@ mu
4450 4553
           if (this.stockType[i].stock_attribute == 3) {
4451 4554
             arrTwo.push(this.stockType[i])
4452 4555
           }
4556
+          if(this.stockType[i].stock_attribute == 4){
4557
+            arrThree.push(this.stockType[i])
4558
+          }
4453 4559
         }
4454 4560
         var dialyzator = []
4455 4561
         var irrigation = []
4562
+        var dialysis_strainer = []
4456 4563
         for (let i = 0; i < arr.length; i++) {
4457 4564
           for (let j = 0; j < arr[i].GoodInfo.length; j++) {
4458 4565
             dialyzator.push(arr[i].GoodInfo[j])
@@ -4466,7 +4573,14 @@ mu
4466 4573
           }
4467 4574
         }
4468 4575
         this.irrigations = irrigation
4576
+        
4577
+        for(let i=0;i<arrThree.length;i++){
4578
+          for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
4579
+            dialysis_strainer.push(arrThree[i].GoodInfo[j])
4580
+          }
4581
+        }
4469 4582
        
4583
+        this.dialysisStrainerList = dialysis_strainer
4470 4584
       },
4471 4585
       
4472 4586
       admin_user_id:function(){

+ 43 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -121,6 +121,7 @@
121 121
           <el-checkbox :label="dialys_mode"></el-checkbox>
122 122
           <el-checkbox :label="long_time"></el-checkbox>
123 123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
124
+          <el-checkbox :label="prescription_water" v-if="org_id == 10469"></el-checkbox>
124 125
           <el-checkbox :label="anticoagulant"></el-checkbox>
125 126
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126 127
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
@@ -333,6 +334,7 @@ export default {
333 334
       dialys_mode: "透析模式:",
334 335
       long_time: "透析时长:",
335 336
       target_ultrafiltration: "目标超滤量:",
337
+      prescription_water:"处方脱水量:",
336 338
       anticoagulant: "抗凝剂:",
337 339
       anticoagulant_shouji: "首剂:",
338 340
       anticoagulant_weichi: "维持:",
@@ -818,9 +820,27 @@ export default {
818 820
               : "")
819 821
         );
820 822
       }
821
-      if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
823
+       if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
822 824
         arr.push("目标超滤量:");
823 825
       }
826
+      if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
827
+        arr.push("处方脱水量:");
828
+      }
829
+      
830
+      if (str.indexOf("处方脱水量") != -1 && this.prescription != null) {
831
+        arr.push(
832
+          "处方脱水量:" +
833
+            (this.prescription.prescription_water
834
+              ? this.prescription.prescription_water
835
+              : "")
836
+        );
837
+      }
838
+
839
+        if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
840
+        arr.push("处方脱水量:");
841
+      }
842
+     
843
+
824 844
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
825 845
         arr.push(
826 846
           "抗凝剂:" +
@@ -1333,6 +1353,17 @@ export default {
1333 1353
           this.target_ultrafiltration = this.target_ultrafiltration;
1334 1354
         }
1335 1355
 
1356
+         if (this.prescription.prescription_water != "") {
1357
+          this.prescription_water = "处方脱水量:";
1358
+          this.prescription_water =
1359
+            this.prescription_water +
1360
+            (this.prescription.prescription_water
1361
+              ? this.prescription.prescription_water
1362
+              : "");
1363
+        } else {
1364
+          this.prescription_water = this.prescription_water;
1365
+        }
1366
+
1336 1367
         if (this.prescription.anticoagulant != "") {
1337 1368
           this.anticoagulant = "抗凝剂:";
1338 1369
           this.anticoagulant =
@@ -1490,6 +1521,17 @@ export default {
1490 1521
                 : "")
1491 1522
           );
1492 1523
         }
1524
+
1525
+         if (
1526
+          this.double_check.dialysis_parameter_desc.indexOf("处方脱水量") != -1
1527
+        ) {
1528
+          this.checkListOne.push(
1529
+            "处方脱水量:" +
1530
+              (this.prescription.prescription_water
1531
+                ? this.prescription.prescription_water
1532
+                : "")
1533
+          );
1534
+        }
1493 1535
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1494 1536
           this.checkListOne.push(
1495 1537
             "抗凝剂:" +

+ 43 - 12
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -238,15 +238,25 @@
238 238
                 org_id == 10210 ||
239 239
                 org_id == 9555 || org_id == 10387
240 240
                 || org_id == 10432
241
-                || org_id == 10445)
241
+                || org_id == 10445
242
+                || org_id == 10410)
242 243
             "
243 244
           >
244 245
             <template slot-scope="scope">
246
+             <span v-if="org_id == 10440 || org_id == 9671">
247
+              {{
248
+                scope.row.ultrafiltration_volume
249
+                  ? scope.row.ultrafiltration_volume
250
+                  : "0"
251
+              }}
252
+              </span> 
253
+               <span v-if="org_id != 10440 && org_id!=9671">
245 254
               {{
246 255
                 scope.row.ultrafiltration_volume
247 256
                   ? scope.row.ultrafiltration_volume
248 257
                   : ""
249 258
               }}
259
+              </span> 
250 260
             </template>
251 261
           </el-table-column>
252 262
           <el-table-column
@@ -296,6 +306,7 @@
296 306
               org_id!= 10210 &&
297 307
               org_id != 9555 && org_id!=10387
298 308
               && org_id!=10432 && org_id!=10445
309
+              && org_id!=10410
299 310
             "
300 311
           >
301 312
             <template slot-scope="scope">
@@ -345,7 +356,8 @@
345 356
                 template_id == 47 ||
346 357
                 template_id == 60 ||
347 358
                 org_id == 10432 ||
348
-                org_id == 10445)
359
+                org_id == 10445 ||
360
+                org_id == 10410)
349 361
             "
350 362
           >
351 363
             <template slot-scope="scope">
@@ -394,7 +406,8 @@
394 406
               template_id != 47 &&
395 407
               template_id != 60 &&
396 408
               org_id!=10432 &&
397
-              org_id!=10445
409
+              org_id!=10445 &&
410
+              org_id!=10410
398 411
             "
399 412
           >
400 413
             <template slot-scope="scope">
@@ -1078,7 +1091,8 @@
1078 1091
                 template_id == 47 ||
1079 1092
                 template_id == 60 ||
1080 1093
                 org_id== 10432 || 
1081
-                org_id== 10445)
1094
+                org_id== 10445 ||
1095
+                org_id== 10410)
1082 1096
             "
1083 1097
           >
1084 1098
             <el-form-item label="超滤率(ml/h)" :prop="isName('超滤率')"
@@ -1121,7 +1135,8 @@
1121 1135
               template_id != 47 &&
1122 1136
               template_id != 60 &&
1123 1137
               org_id!=10432 && 
1124
-              org_id!=10445
1138
+              org_id!=10445 &&
1139
+              org_id!=10410
1125 1140
             "
1126 1141
           >
1127 1142
             <el-form-item label="超滤率(L/h)" :prop="isName('超滤率')"
@@ -1174,7 +1189,8 @@
1174 1189
                 org_id == 10340 ||
1175 1190
                 org_id == 10387 ||
1176 1191
                 org_id == 10432 ||
1177
-                org_id == 10445)
1192
+                org_id == 10445 ||
1193
+                org_id == 10410)
1178 1194
             "
1179 1195
           >
1180 1196
             <el-form-item label="超滤量(ml):" :prop="isName('超滤量')"
@@ -1227,7 +1243,8 @@
1227 1243
               org_id != 9555 &&
1228 1244
               org_id!=10387&&
1229 1245
               org_id!=10432 && 
1230
-              org_id!=10445
1246
+              org_id!=10445 && 
1247
+              org_id!=10410
1231 1248
             "
1232 1249
           >
1233 1250
             <el-form-item label="超滤量(L):" :prop="isName('超滤量')"
@@ -1989,7 +2006,7 @@ export default {
1989 2006
         // 静脉压
1990 2007
         if (this.org_id == 10060 || this.org_id == 10387) {
1991 2008
           this.form.venous_pressure = resp.monitor.venous_pressure;
1992
-        }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 ){
2009
+        }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10469 ){
1993 2010
           this.form.venous_pressure = 80
1994 2011
         } else {
1995 2012
           this.form.venous_pressure = ""; // this.last_monitor_record.venous_pressure;
@@ -2044,7 +2061,7 @@ export default {
2044 2061
           ? resp.monitor.dialysate_temperature
2045 2062
           : "";
2046 2063
         
2047
-         if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340){
2064
+         if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340 || this.org_id == 10469){
2048 2065
             this.form.temperature = "36.5"
2049 2066
 
2050 2067
          }else{
@@ -2163,7 +2180,13 @@ export default {
2163 2180
         this.form.venous_pressure_type = 1;
2164 2181
         this.form.transmembrane_pressure = "";
2165 2182
         this.form.transmembrane_pressure_type = 1;
2166
-        this.form.ultrafiltration_volume = "";
2183
+        if(this.org_id == 9671 || this.org_id == 10440){
2184
+           this.form.ultrafiltration_volume = 0
2185
+        }
2186
+        if(this.org_id != 9671 && this.org_id != 10440){
2187
+          this.form.ultrafiltration_volume = "";
2188
+        }
2189
+       
2167 2190
         this.form.ultrafiltration_rate = "";
2168 2191
         this.form.arterial_pressure = "";
2169 2192
         this.form.arterial_pressure_type = 1;
@@ -2228,9 +2251,17 @@ export default {
2228 2251
           monitor.transmembrane_pressure_type
2229 2252
             ? monitor.transmembrane_pressure_type
2230 2253
             : "";
2231
-        this.form.ultrafiltration_volume = monitor.ultrafiltration_volume
2254
+        if(this.org_id == 9671 || this.org_id == 10440){
2255
+          this.form.ultrafiltration_volume = monitor.ultrafiltration_volume
2232 2256
           ? monitor.ultrafiltration_volume
2233
-          : "";
2257
+          : "0";
2258
+        }
2259
+        if(this.org_id != 9671 && this.org_id !=10440){
2260
+          this.form.ultrafiltration_volume = monitor.ultrafiltration_volume
2261
+            ? monitor.ultrafiltration_volume
2262
+            : "";
2263
+        }
2264
+        
2234 2265
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2235 2266
           ? monitor.ultrafiltration_rate
2236 2267
           : "";

+ 8 - 5
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -14,10 +14,10 @@
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 || 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 || this.$store.getters.xt_user.template_info.org_id == 10445)" 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  && this.$store.getters.xt_user.template_info.org_id!=10445"  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 || this.$store.getters.xt_user.template_info.org_id == 10445)" 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  && this.$store.getters.xt_user.template_info.org_id!=10445" 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 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410)" 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  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410"  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 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410)" 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  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410" 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 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 || org_id == 10445) " width="92px" > 置换率(ml/min) </th>
@@ -60,7 +60,10 @@
60 60
 
61 61
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
62 62
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
63
-          <td v-if="isShow('超滤量')"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }} </td>
63
+          <td v-if="isShow('超滤量')"> 
64
+            <span v-if="org_id!=9671 && org_id!=10440">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}  </span> 
65
+            <span v-if="org_id ==9671 || org_id==10440">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}  </span> 
66
+          </td>
64 67
           <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
65 68
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
66 69
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>

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

@@ -32,6 +32,7 @@
32 32
           icon="el-icon-printer"
33 33
           >打印</el-button
34 34
         >
35
+      
35 36
       </div>
36 37
     </div>
37 38
 
@@ -1721,6 +1722,7 @@ export default {
1721 1722
       }
1722 1723
     },
1723 1724
     requestDialysisSchedules: function() {
1725
+      console.log("时间人民站起来了呃")
1724 1726
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1725 1727
       getDialysisSchedules(ymd).then(rs => {
1726 1728
         var resp = rs.data

+ 40 - 13
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -14,8 +14,8 @@
14 14
       </template>
15 15
       <template
16 16
         v-if="
17
-          org_template_info.template_id == 2 ||
18
-          org_template_info.template_id == 0
17
+          org_template_info.template_id == 2
18
+       
19 19
         "
20 20
       >
21 21
         <div>
@@ -110,10 +110,13 @@
110 110
           org_template_info.template_id == 11 ||
111 111
           org_template_info.template_id == 50 ||
112 112
           org_template_info.template_id == 52 ||
113
-          org_template_info.template_id == 53
113
+          org_template_info.template_id == 53  ||
114
+          $store.getters.xt_user.org.id == 0
114 115
         "
115 116
       >
117
+      <div>
116 118
         <el-button
119
+          
117 120
           :loading="loading"
118 121
           size="small"
119 122
           icon="el-icon-printer"
@@ -121,6 +124,15 @@
121 124
           type="primary"
122 125
           >打印</el-button
123 126
         >
127
+        <el-button
128
+            :loading="loading"
129
+            size="small"
130
+            icon="el-icon-printer"
131
+            @click="printThisTwoPage"
132
+            type="primary"
133
+            >打印医嘱单</el-button
134
+         >
135
+      </div>
124 136
       </template>
125 137
 
126 138
       <template v-if="org_template_info.template_id == 47">
@@ -186,8 +198,8 @@
186 198
       </template>
187 199
       <template
188 200
         v-if="
189
-          org_template_info.template_id == 14 ||
190
-          org_template_info.template_id == 0
201
+          org_template_info.template_id == 14
202
+         
191 203
         "
192 204
       >
193 205
         <div>
@@ -289,8 +301,8 @@
289 301
       </template> -->
290 302
       <template
291 303
         v-if="
292
-          org_template_info.template_id == 21 ||
293
-          org_template_info.template_id == 0
304
+          org_template_info.template_id == 21 
305
+         
294 306
         "
295 307
       >
296 308
         <div>
@@ -1181,6 +1193,9 @@
1181 1193
             v-if="org_template_info.template_id == 53"
1182 1194
           >
1183 1195
           </DialysisPrintOrderFiftyThree>
1196
+
1197
+         
1198
+        
1184 1199
            <DialysisPrintOrderFiftyFour
1185 1200
             v-bind:childResponse="childResponse"
1186 1201
             v-if="org_template_info.template_id == 54"
@@ -1577,8 +1592,8 @@ export default {
1577 1592
           scanStyles: false,
1578 1593
         });
1579 1594
       } else if (
1580
-        this.org_template_info.template_id == 2 ||
1581
-        this.org_template_info.template_id == 0
1595
+        this.org_template_info.template_id == 2
1596
+       
1582 1597
       ) {
1583 1598
         printJS({
1584 1599
           printable: "dialysis-print-box-1",
@@ -1616,7 +1631,8 @@ export default {
1616 1631
         // this.org_template_info.template_id == 51 ||
1617 1632
         this.org_template_info.template_id == 58 ||
1618 1633
         this.org_template_info.template_id == 60 ||
1619
-        this.org_template_info.template_id == 61
1634
+        this.org_template_info.template_id == 61  ||
1635
+        this.org_template_info.template_id ==0
1620 1636
       ) {
1621 1637
         printJS({
1622 1638
           printable: "dialysis-print-box-1",
@@ -1978,7 +1994,6 @@ export default {
1978 1994
         });
1979 1995
       } else if (
1980 1996
         this.org_template_info.template_id == 2 ||
1981
-        this.org_template_info.template_id == 0 ||
1982 1997
         this.org_template_info.template_id == 5 ||
1983 1998
         this.org_template_info.template_id == 22 ||
1984 1999
         this.org_template_info.template_id == 33
@@ -2027,7 +2042,9 @@ export default {
2027 2042
         '@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;}';
2028 2043
       const style2 =
2029 2044
         '@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; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;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 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: 1370px;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;}';
2030
-
2045
+     
2046
+      // 雷州惠爱样式
2047
+      const style93 ='@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;} ';
2031 2048
       if (this.org_template_info.template_id == 1) {
2032 2049
         printJS({
2033 2050
           printable: "dialysis-print-box",
@@ -2037,7 +2054,6 @@ export default {
2037 2054
         });
2038 2055
       } else if (
2039 2056
         this.org_template_info.template_id == 2 ||
2040
-        this.org_template_info.template_id == 0 ||
2041 2057
         this.org_template_info.template_id == 5 ||
2042 2058
         this.org_template_info.template_id == 22 ||
2043 2059
         this.org_template_info.template_id == 33
@@ -2076,8 +2092,17 @@ export default {
2076 2092
           style: style,
2077 2093
           scanStyles: false,
2078 2094
         });
2095
+      } else if (this.org_template_info.template_id == 53) {
2096
+        console.log("进来233232323232")
2097
+        printJS({
2098
+          printable: "dialysis-print-box-1-2",
2099
+          type: "html",
2100
+          style: style93,
2101
+          scanStyles: false,
2102
+        });
2079 2103
       }
2080 2104
     },
2105
+   
2081 2106
     getNumber() {
2082 2107
       if (this.dialysisOrder != null) {
2083 2108
         return (
@@ -2782,6 +2807,8 @@ export default {
2782 2807
     },
2783 2808
   },
2784 2809
   created() {
2810
+    console.log("hhahahhahahahah=======",this.org_template_info.template_id)
2811
+    console.log("this.$store.getters.xt_user.org.id",this.$store.getters.xt_user.org.id)
2785 2812
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2786 2813
     var zone_selected = this.$store.getters.zone_selected;
2787 2814
     var patient_state_selected = this.$store.getters.patient_state_selected;

+ 88 - 13
src/xt_pages/dialysis/newDoctorAdvice.vue View File

@@ -137,6 +137,22 @@
137 137
         </div>
138 138
       </div>
139 139
 
140
+      <div class="cell clearfix">
141
+        <label class="title"> <span class="name">执行频率</span> : </label>
142
+        <div class="time">
143
+          <ul class>
144
+            <li
145
+              :class="item.id == execution_frequency ? 'active' : ''"
146
+              @click="selectFrequencyWay(item.id)"
147
+              v-for="item in excutList"
148
+              :key="item.id"
149
+            >
150
+              {{ item.name }}
151
+            </li>
152
+          </ul>
153
+        </div>
154
+      </div>
155
+
140 156
        <div class="cell clearfix">
141 157
         <label class="title"> <span class="name">执行状态</span> : </label>
142 158
         <div class="time">
@@ -159,9 +175,9 @@
159 175
       </div> -->
160 176
 
161 177
       <div style="margin-top: 10px;margin-bottom:10px">
162
-        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671 && org_id!=0 && org_id!=10340 ">统计</el-button>
178
+        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671  && org_id!=10340 ">统计</el-button>
163 179
 
164
-        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id == 0 || org_id==10340">统计</el-button>
180
+        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340">统计</el-button>
165 181
       </div>
166 182
 
167 183
 
@@ -523,7 +539,7 @@
523 539
             </el-option>
524 540
            </el-select>
525 541
            <label class="title"> <span class="name">病区选择</span> : </label>
526
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
542
+           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType" multiple >
527 543
             <el-option
528 544
               v-for="item in partitionArr"
529 545
               :key="item.id"
@@ -595,7 +611,7 @@
595 611
             </el-option>
596 612
            </el-select>
597 613
            <label class="title"> <span class="name">病区选择</span> : </label>
598
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionTypeOne">
614
+           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionTypeOne" multiple>
599 615
             <el-option
600 616
               v-for="item in partitionArr"
601 617
               :key="item.id"
@@ -801,6 +817,10 @@ export default {
801 817
       tableDataList:[],
802 818
       adminUserList:[],
803 819
       doctorMap:[],
820
+      excutList:[],
821
+      execution_frequency:"",
822
+      zoneIdList:[],
823
+      partion_str:"",
804 824
     };
805 825
   },
806 826
   created() {
@@ -863,6 +883,10 @@ export default {
863 883
        this.delivery_way = val
864 884
        this.requestSchedualDoctors(this.time)
865 885
     },
886
+    selectFrequencyWay(val){
887
+      this.execution_frequency = val
888
+      this.requestSchedualDoctors(this.time)
889
+    },
866 890
 
867 891
     selectExcutionWay(val){
868 892
        this.excution_way = val
@@ -881,11 +905,20 @@ export default {
881 905
           return false;
882 906
         } else {
883 907
           this.partitionArr = response.data.data.zone;
884
-          this.partitionArr.unshift({ id: 0, name: "全部" });
908
+          for(let i=0;i<this.partitionArr.length;i++){
909
+           this.zoneIdList.push(this.partitionArr[i].id)
910
+          }
911
+         
912
+          // this.partitionArr.unshift({ id: 0, name: "全部" });
885 913
           var dics  =  response.data.data.dics
886 914
           var obj = {id:0,name:"全部"}
887 915
           this.deliveryWay.push(obj)
888 916
           this.deliveryWay.push(...dics)
917
+          var objOne = {id:0,name:"全部"}
918
+           this.excutList.push(objOne)
919
+           var efs = response.data.data.efs
920
+           this.excutList.push(...efs)
921
+          console.log("执行瓶绿",this.excutList)
889 922
         }
890 923
       });
891 924
     },
@@ -900,13 +933,24 @@ export default {
900 933
         if(name == '全部'){
901 934
           name = ""
902 935
         }
936
+       
937
+        var nameOne = ""
938
+         for(let i=0;i<this.excutList.length;i++){
939
+            if(this.execution_frequency == this.excutList[i].id){
940
+              nameOne = this.excutList[i].name
941
+            }
942
+        }
943
+
944
+         if(nameOne == '全部'){
945
+          nameOne = ""
946
+        }
903 947
 
904 948
         let newTime =  moment(time).format('YYYY-MM-DD')
905 949
 
906 950
          var schedule_type = this.listQuery.schedul_type
907 951
          var partition_type = this.listQuery.partition_type
908
-
909
-        getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType}).then(rs => {
952
+       
953
+        getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType,execution_frequency:nameOne}).then(rs => {
910 954
         var resp = rs.data
911 955
         if (resp.state == 1) {
912 956
             this.admin_users = resp.data.adminUser
@@ -959,7 +1003,7 @@ export default {
959 1003
                     })
960 1004
                   }
961 1005
                 })
962
-                console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
1006
+                console.log("中国人民名份反反复复方法 ",resp.data.hisAdvices)
963 1007
               }
964 1008
             }
965 1009
 
@@ -1258,7 +1302,17 @@ export default {
1258 1302
         if(name == '全部'){
1259 1303
           name = ""
1260 1304
        }
1261
-      this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1305
+        var nameOne = ""
1306
+         for(let i=0;i<this.excutList.length;i++){
1307
+            if(this.execution_frequency == this.excutList[i].id){
1308
+              nameOne = this.excutList[i].name
1309
+            }
1310
+        }
1311
+
1312
+         if(nameOne == '全部'){
1313
+          nameOne = ""
1314
+        }
1315
+      this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name,execution_frequency:nameOne,patient_id:this.patient_id} });
1262 1316
 
1263 1317
     },
1264 1318
     batchPrintActionOne: function() {
@@ -1482,7 +1536,9 @@ export default {
1482 1536
         return searchArray
1483 1537
       },
1484 1538
      handleSelect(val) {
1539
+       console.log("val323223232323232323",val)
1485 1540
        this.patient_id = val.id
1541
+       this.listQuery.keyword = val.name
1486 1542
        this.requestSchedualDoctors(this.time)
1487 1543
       },
1488 1544
      toSeach(){
@@ -1674,12 +1730,22 @@ export default {
1674 1730
     },
1675 1731
 
1676 1732
      toStatic() {
1733
+          var str = ""
1734
+         if(this.partion_type==0){
1735
+            str = this.zoneIdList.join(",")
1736
+         }
1737
+         if(this.partion_type!=0){
1738
+            str = this.partion_type.join(",")
1739
+         }
1740
+         this.partion_str = ""
1741
+         this.partion_str = str  
1677 1742
          this.tableList = []
1678 1743
           var params = {
1679 1744
             schedule_type:this.schedule_type,
1680
-            partion_type:this.partion_type,
1745
+            partion_type:str,
1681 1746
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1682 1747
           }
1748
+
1683 1749
          console.log("params2332232wo",params)
1684 1750
         getDialysisAdviceToday(params).then(response=>{
1685 1751
           if(response.data.state == 1){
@@ -1811,10 +1877,19 @@ export default {
1811 1877
 
1812 1878
       },
1813 1879
       toStaticOne() {
1880
+         var str = ""
1881
+         if(this.partion_type==0){
1882
+            str = this.zoneIdList.join(",")
1883
+         }
1884
+         if(this.partion_type!=0){
1885
+            str = this.partion_type.join(",")
1886
+         }
1887
+         this.partion_str = ""
1888
+         this.partion_str = str  
1814 1889
          this.tableList = []
1815 1890
           var params = {
1816 1891
             schedule_type:this.schedule_type,
1817
-            partion_type:this.partion_type,
1892
+            partion_type:str,
1818 1893
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1819 1894
           }
1820 1895
 
@@ -2007,11 +2082,11 @@ export default {
2007 2082
       },
2008 2083
       toPrintOne(){
2009 2084
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
2010
-        this.$router.push({path:"/dialysis/doctorAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2085
+        this.$router.push({path:"/dialysis/doctorAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2011 2086
       },
2012 2087
       toPrintTwo(){
2013 2088
         var schedule_date = moment(this.time).format('YYYY-MM-DD')
2014
-        this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2089
+        this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2015 2090
       },
2016 2091
       toExportListOne(){
2017 2092
         import('@/vendor/Export2Excel').then(excel => {

+ 42 - 6
src/xt_pages/dialysis/signPrint.vue View File

@@ -14,9 +14,18 @@
14 14
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
15 15
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
16 16
                         <div>姓名:{{item.patient.name}}</div>  
17
-                        <div>医嘱内容:{{ it.advice_name }}</div>  
18
-                        <div>给药途径:{{it.execution_frequency}}</div>  
19
-                        <div>执行频率:{{it.delivery_way}}</div>  
17
+                        <div>医嘱内容:{{ it.advice_name }} 
18
+                           <span v-if="it.prescribing_number>0 && org_id !=0 && org_id!=10440">
19
+                            {{it.prescribing_number}}{{ it.prescribing_number_unit }}
20
+                          </span> 
21
+                        </div>  
22
+                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
23
+                          规格:{{getSpecialName(it.drug_id)}} 
24
+                         
25
+                        </div>  
26
+                        <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
27
+                        <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
28
+                        <div>给药途径:{{it.delivery_way}}</div>  
20 29
                         <div>打印时间:{{time}}</div>   
21 30
                     </div>  
22 31
                 </div>
@@ -29,9 +38,16 @@
29 38
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
30 39
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
31 40
                         <div>姓名:{{item.patient.name}}</div>  
32
-                        <div>医嘱内容:{{getAdvice(item.doctor_advice)}}</div>  
41
+                        <div>医嘱内容:{{getAdvice(item.doctor_advice)}} 
42
+                           <span v-if="it.prescribing_number >0&& org_id !=0 && org_id!=10440"> {{it.prescribing_number}}{{ it.prescribing_number_unit }}</span>
43
+                        </div>  
44
+                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
45
+                          规格:{{getSpecialName(it.drug_id)}} 
46
+                         
47
+                        </div>  
48
+                        <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}&nbsp;{{it.single_dose_unit }}</div>
33 49
                         <div>给药途径:{{item.doctor_advice[0].execution_frequency}}</div>  
34
-                        <div>执行频率:{{item.doctor_advice[0].delivery_way}}</div>  
50
+                        <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{item.doctor_advice[0].delivery_way}}</div>  
35 51
                         <div>打印时间:{{time}}</div>   
36 52
                     </div>  
37 53
                   
@@ -68,7 +84,10 @@ export default {
68 84
             show:true,
69 85
             showOne:false,
70 86
             delivery_way:"",
71
-            list:[]
87
+            list:[],
88
+            execution_frequency:"",
89
+            org_id:0,
90
+            drugList:[],
72 91
         }
73 92
     },
74 93
     methods:{
@@ -90,6 +109,8 @@ export default {
90 109
             patient_type: 0,
91 110
             advice_type: 2,
92 111
             delivery_way:this.delivery_way,
112
+            execution_frequency:this.execution_frequency,
113
+            patient_id:this.$route.query.patient_id,
93 114
             }).then(rs => {
94 115
                 var resp = rs.data
95 116
                 if (resp.state == 1) {
@@ -254,6 +275,7 @@ export default {
254 275
                
255 276
                  if(config.is_open == 1){
256 277
                    var schedulesArr = resp.data.hisAdvices
278
+                   this.drugList = resp.data.drug
257 279
                    let schedules = []
258 280
                    var ids = this.$store.getters.temp_params.advice_ids
259 281
                    console.log('ids',ids)
@@ -516,6 +538,15 @@ export default {
516 538
         return ""
517 539
       }
518 540
     },
541
+    getSpecialName(drug_id){
542
+        var name = ""
543
+        for(let i=0;i<this.drugList.length;i++){
544
+            if(drug_id == this.drugList[i].id){
545
+            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
546
+            }
547
+        }
548
+        return name
549
+     }
519 550
     },
520 551
     computed: {
521 552
     filtedScheduals: function () {
@@ -628,13 +659,18 @@ export default {
628 659
         console.log("222222",scheduleMap)
629 660
         return scheduleMap
630 661
         },
662
+
663
+      
631 664
     
632 665
     },
633 666
     created(){
634 667
       var time = this.$route.query.time
635 668
       var delivery_way = this.$route.query.delivery_way
669
+      this.org_id = this.$store.getters.xt_user.org.id
636 670
       console.log("delivery_Way",delivery_way)
637 671
       this.delivery_way = delivery_way
672
+      var execution_frequency = this.$route.query.execution_frequency
673
+      this.execution_frequency = execution_frequency
638 674
       this.time = moment(time).format('YYYY-MM-DD')
639 675
       console.log(11,this.$route.query)
640 676
       this.requestSchedualDoctors(time)

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

@@ -28,7 +28,7 @@
28 28
               年龄:
29 29
               <span style="display:inline-block;margin-left:10px;">
30 30
                 {{
31
-                getAge(patientInfo)
31
+                getNewAge(patientInfo.id_card_no)
32 32
                 }}
33 33
               </span>
34 34
             </td>
@@ -2112,6 +2112,19 @@ export default {
2112 2112
         return ''
2113 2113
       }
2114 2114
     },
2115
+    getNewAge(UUserCard) {
2116
+      if (UUserCard != null && UUserCard != '') {
2117
+        // 获取年龄
2118
+        var myDate = new Date()
2119
+        var month = myDate.getMonth() + 1
2120
+        var day = myDate.getDate()
2121
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
2122
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
2123
+          age++
2124
+        }
2125
+        return age
2126
+      }
2127
+    },
2115 2128
     newAdviceGroupObject: function() {
2116 2129
       return Object.assign(
2117 2130
         {},

+ 44 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

@@ -289,6 +289,18 @@
289 289
                                 }}
290 290
                               </div>
291 291
                             </div>
292
+                          
293
+                          </div>
294
+
295
+                          <div
296
+                            class="row"
297
+                            style="
298
+                              padding: 2px 0;
299
+                              line-height: 23px;
300
+                              display: flex;
301
+                            "
302
+                          >
303
+                          
292 304
                             <div class="inline_block" style="flex: 1">
293 305
                               透前症状:
294 306
                               <div
@@ -1148,14 +1160,14 @@
1148 1160
                               <span v-if="prescription.anticoagulant == 4"
1149 1161
                                 >mg</span
1150 1162
                               >
1151
-                              <span v-if="prescription.anticoagulant == 3"
1163
+                              <span v-if="prescription.anticoagulant == 3 || prescription.anticoagulant == 6 || prescription.anticoagulant == 7"
1152 1164
                                 >iu</span
1153 1165
                               >
1154 1166
                               <span v-if="prescription.anticoagulant == 2"
1155 1167
                                 >mg</span
1156 1168
                               >
1157 1169
                               <span v-if="prescription.anticoagulant == 1"
1158
-                                >mg</span
1170
+                                ></span
1159 1171
                               >
1160 1172
                             </div>
1161 1173
                             <div class="inline_block" style="margin-left: 20px">
@@ -1188,14 +1200,14 @@
1188 1200
                               <span v-if="prescription.anticoagulant == 4"
1189 1201
                                 >mg/h</span
1190 1202
                               >
1191
-                              <span v-if="prescription.anticoagulant == 3"
1203
+                              <span v-if="prescription.anticoagulant == 3 || prescription.anticoagulant == 6 || prescription.anticoagulant == 7"
1192 1204
                                 >iu/h</span
1193 1205
                               >
1194 1206
                               <span v-if="prescription.anticoagulant == 2"
1195 1207
                                 >mg/h</span
1196 1208
                               >
1197 1209
                               <span v-if="prescription.anticoagulant == 1"
1198
-                                >mg/h</span
1210
+                                ></span
1199 1211
                               >
1200 1212
                             </div>
1201 1213
                             <div
@@ -1252,14 +1264,14 @@
1252 1264
                               <span v-if="prescription.anticoagulant == 4"
1253 1265
                                 >mg</span
1254 1266
                               >
1255
-                              <span v-if="prescription.anticoagulant == 3"
1267
+                              <span v-if="prescription.anticoagulant == 3 || prescription.anticoagulant == 6 || prescription.anticoagulant == 7"
1256 1268
                                 >iu</span
1257 1269
                               >
1258 1270
                               <span v-if="prescription.anticoagulant == 2"
1259 1271
                                 >mg</span
1260 1272
                               >
1261 1273
                               <span v-if="prescription.anticoagulant == 1"
1262
-                                >mg</span
1274
+                                ></span
1263 1275
                               >
1264 1276
                             </div>
1265 1277
                             <div class="inline_block" style="margin-left: 20px">
@@ -1365,7 +1377,7 @@
1365 1377
                               <tr>
1366 1378
                                 <td width="60">时间</td>
1367 1379
                                 <td width="70">血压<br />(mmHg)</td>
1368
-                                <td width="60">体温<br />(°C)</td>
1380
+                                <!-- <td width="60">体温<br />(°C)</td> -->
1369 1381
                                 <td width="50">脉搏<br />(次/分)</td>
1370 1382
                                 <td width="50">呼吸<br />(次/分)</td>
1371 1383
                                 <td width="50">血流量<br />(ml/min)</td>
@@ -1445,13 +1457,13 @@
1445 1457
                                       : ""
1446 1458
                                   }}
1447 1459
                                 </td>
1448
-                                <td>
1460
+                                <!-- <td>
1449 1461
                                   {{
1450 1462
                                     monitor.temperature
1451 1463
                                       ? monitor.temperature
1452 1464
                                       : ""
1453 1465
                                   }}
1454
-                                </td>
1466
+                                </td> -->
1455 1467
                                 <td>
1456 1468
                                   {{
1457 1469
                                     monitor.pulse_frequency
@@ -1637,6 +1649,7 @@
1637 1649
                                         monitor.dispose
1638 1650
                                       }}
1639 1651
                                       &nbsp;{{ monitor.result }}
1652
+                                      &nbsp;{{monitor.accumulated_blood_volume_name}}
1640 1653
                                     </span>
1641 1654
                                   </div>
1642 1655
                                 </td>
@@ -2621,6 +2634,21 @@
2621 2634
                                 />
2622 2635
                               </div>
2623 2636
                             </div>
2637
+                            <!-- <div class="inline_block" style="flex: 1">
2638
+                              患者签名:
2639
+                              <div
2640
+                                class="under_line"
2641
+                                style="width: 80px; text-align: center"
2642
+                              >
2643
+                               
2644
+                                <img
2645
+                                  style="height: 30px"
2646
+                                  :src="dialysisOrder == null? 0: dialysisOrder.url"
2647
+                                  alt=""
2648
+                                  srcset=""
2649
+                                />
2650
+                              </div>
2651
+                            </div> -->
2624 2652
                             <div class="inline_block" style="flex: 1">
2625 2653
                               治疗医生:
2626 2654
                               <div
@@ -3324,16 +3352,21 @@ export default {
3324 3352
         for (let index = 0; index < this.monitors.length; index++) {
3325 3353
           const monitor = this.monitors[index];
3326 3354
           this.monitors[index].end = "";
3355
+          this.monitors[index].accumulated_blood_volume_name = ""
3327 3356
           if (Object.keys(monitor).length > 0 && index > 1) {
3328 3357
             if (
3329 3358
               this.dialysisOrder &&
3330 3359
               monitor.operate_time == this.dialysisOrder.end_time
3360
+             
3331 3361
             ) {
3332 3362
               this.monitors[index].end = "【结束透析】";
3363
+              this.monitors[index].accumulated_blood_volume_name ="累计血容量:"+  this.monitors[index].accumulated_blood_volume+"L"
3333 3364
               tempmonitorflag = false;
3334 3365
             }
3335 3366
             if (tempmonitorflag && index == this.monitors.length - 1) {
3336 3367
               this.monitors[index].end = "【结束透析】";
3368
+              this.monitors[index].accumulated_blood_volume_name  = "累计血容量:"+ this.monitors[index].accumulated_blood_volume+"L"
3369
+             
3337 3370
             }
3338 3371
           }
3339 3372
         }
@@ -3496,8 +3529,8 @@ export default {
3496 3529
         }
3497 3530
 
3498 3531
         this.totollength = this.doctor_advices.length + this.monitors.length;
3499
-        if (this.totollength > 18) {
3500
-          var temp_advice_length = 17 - this.monitors.length;
3532
+        if (this.totollength > 32) {
3533
+          var temp_advice_length = 31 - this.monitors.length;
3501 3534
           var doctor_advices_1 = [];
3502 3535
           var doctor_advices_2 = [];
3503 3536
           for (let index = 0; index < this.doctor_advices.length; index++) {

+ 364 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+ <div>
2 3
   <div id="dialysis-print-box" style="position: relative">
3 4
     <div class="dialysis-print-order">
4 5
       <table class="print-table">
@@ -374,14 +375,14 @@
374 375
                       医师签名:
375 376
                       <span
376 377
                         style="height: 20px"
377
-                        v-if="setAdminUserES(prescription.modifier) == ''"
378
+                        v-if="setAdminUserES(advices[0].advice_doctor) == ''"
378 379
                       >
379
-                        {{ getAdminUser(prescription.modifier) }}
380
+                        {{ getAdminUser(advices[0].advice_doctor) }}
380 381
                       </span>
381 382
                       <img
382 383
                         class="es-img"
383 384
                         style="height: 25px"
384
-                        :src="setAdminUserES(prescription.modifier)"
385
+                        :src="setAdminUserES(advices[0].advice_doctor)"
385 386
                         alt
386 387
                         srcset
387 388
                         v-else
@@ -614,6 +615,61 @@
614 615
                       </div>
615 616
                     </td>
616 617
                   </tr>
618
+
619
+                  <tr class="list_table_1" v-if="org_id == 10346 || org_id == 0">
620
+                    <td colspan="11" style="padding-left: 10px">
621
+                      <div style="display: flex; justify-content: flex-start">
622
+                        <div style="width: 100%">
623
+                          上次透后体重: 
624
+                          {{(assessmentafter.weight_after).toFixed(2)}}kg
625
+                        </div>
626
+                        <div style="width: 100%">
627
+                          透前体重: 
628
+                          {{(predialysis.weight_before).toFixed(2)}}kg
629
+                        </div>
630
+                        <div style="width: 100%">
631
+                          体重增加量:
632
+                          {{ (predialysis.weight_before -
633
+                            assessmentafter.weight_after).toFixed(2)}}kg
634
+                        </div>
635
+
636
+                        <div style="width: 100%">
637
+                          干体重(DW):
638
+                          {{(predialysis.dry_weight).toFixed(2)}}kg
639
+                        </div>
640
+                        <div style="width: 100%">
641
+                          较干体重增加量:{{(afterdialysis.weight_after - predialysis.dry_weight).toFixed(2) }}
642
+                          
643
+                        </div>
644
+
645
+                      
646
+                      </div>
647
+                    </td>
648
+                  </tr>
649
+
650
+                  <tr class="list_table_1"  v-if="org_id == 10346 || org_id == 0">
651
+                    <td colspan="11" style="padding-left: 10px">
652
+                      <div style="display: flex; justify-content: flex-start">
653
+                        <div style="width: 100%">
654
+                          机器显示脱水量:{{(afterdialysis.actual_ultrafiltration).toFixed(2) }}
655
+                        
656
+                        </div>
657
+                     
658
+                        <div style="width: 100%">
659
+                          透后体重: 
660
+                          {{(afterdialysis.weight_after).toFixed(2)}}kg
661
+                        </div>
662
+                        <div style="width: 100%">
663
+                          本次透析体重下降量: 
664
+                          {{(predialysis.weight_before -
665
+                            afterdialysis.weight_after).toFixed(2)}}kg
666
+                        </div>
667
+                       
668
+
669
+                     
670
+                      </div>
671
+                    </td>
672
+                  </tr>
617 673
                 </tbody>
618 674
               </table>
619 675
             </td>
@@ -795,7 +851,7 @@
795 851
               </table>
796 852
             </td>
797 853
           </tr>
798
-          <tr style="transform: translateY(4px)">
854
+          <tr style="transform: translateY(4px)" v-if="org_id!=10346 && org_id!=0">
799 855
             <td>
800 856
               <table class="print-table" border="1" style="text-align: center">
801 857
                 <tr>
@@ -805,7 +861,7 @@
805 861
                   <td
806 862
                     style="height: 20px"
807 863
                     width="90"
808
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
864
+                    v-if="org_id == 10346 || org_id == 9675"
809 865
                   >
810 866
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
811 867
                   </td>
@@ -815,10 +871,11 @@
815 871
                   <td
816 872
                     style="height: 20px"
817 873
                     width="70"
818
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
874
+                    v-if="org_id == 10346 || org_id == 9675"
819 875
                   >
820 876
                     <p style="height: 20px; line-height: 20px">执行时间</p>
821 877
                   </td>
878
+             
822 879
                   <td style="height: 20px" width="90">
823 880
                     <p style="height: 20px; line-height: 20px">执行</p>
824 881
                   </td>
@@ -838,9 +895,11 @@
838 895
                     }}kg
839 896
                   </td>
840 897
                 </tr>
898
+                
841 899
               </table>
842 900
             </td>
843 901
           </tr>
902
+          <div v-if="org_id!=10346 && org_id!=0">
844 903
           <tr
845 904
             v-for="(advice, advice_index) in advices"
846 905
             :key="advice_index"
@@ -855,7 +914,7 @@
855 914
                   <td
856 915
                     style="line-height: 30px"
857 916
                     width="90"
858
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
917
+                    v-if="org_id == 10346 || org_id == 9675"
859 918
                   >
860 919
                     <span v-if="setAdminUserES(advice.advice_doctor) == ''">
861 920
                       {{ getAdminUser(advice.advice_doctor) }}
@@ -894,12 +953,27 @@
894 953
                   <td
895 954
                     style="line-height: 10px"
896 955
                     width="70"
897
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
956
+                    v-if="org_id == 10346 || org_id == 9675"
898 957
                   >
899 958
                     <span v-if="advice.execution_time">{{
900 959
                       getTime(advice.execution_time, "{h}:{i}")
901 960
                     }}</span>
902 961
                   </td>
962
+                  <!-- <td
963
+                    style="line-height: 30px"
964
+                    width="90"
965
+                    v-if="org_id == 10249 || org_id == 0"
966
+                  >
967
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">
968
+                      {{ getAdminUser(advice.advice_doctor) }}
969
+                    </span>
970
+                    <img
971
+                      style="height: 30px"
972
+                      :src="setAdminUserES(advice.advice_doctor)"
973
+                      alt=""
974
+                      srcset=""
975
+                    />
976
+                  </td> -->
903 977
                   <td style="line-height: 10px" width="90">
904 978
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
905 979
                       getAdminUser(advice.execution_staff)
@@ -1008,6 +1082,7 @@
1008 1082
               </table>
1009 1083
             </td>
1010 1084
           </tr>
1085
+          </div>
1011 1086
 
1012 1087
           <tr style="transform: translateY(1px)">
1013 1088
             <td>
@@ -1043,20 +1118,20 @@
1043 1118
                       <span
1044 1119
                         v-if="
1045 1120
                           setAdminUserES(
1046
-                            prescription == null
1121
+                            advices == null
1047 1122
                               ? 0
1048
-                              : prescription.prescription_doctor
1049
-                              ? prescription.prescription_doctor
1123
+                              : advices[0].advice_doctor
1124
+                              ? advices[0].advice_doctor
1050 1125
                               : ''
1051 1126
                           ) == ''
1052 1127
                         "
1053 1128
                       >
1054 1129
                         {{
1055 1130
                           getAdminUser(
1056
-                            prescription == null
1131
+                            advices == null
1057 1132
                               ? 0
1058
-                              : prescription.prescription_doctor
1059
-                              ? prescription.prescription_doctor
1133
+                              : advices[0].advice_doctor
1134
+                              ? advices[0].advice_doctor
1060 1135
                               : ""
1061 1136
                           )
1062 1137
                         }}
@@ -1126,6 +1201,281 @@
1126 1201
       </table>
1127 1202
     </div>
1128 1203
   </div>
1204
+  <div id="dialysis-print-box-1-2">
1205
+    <div class="dialysis-print-order">
1206
+      <table class="print-table">
1207
+        <thead style="transform: translateY(2px)">
1208
+          <tr>
1209
+            <td>
1210
+              <div class="order-yy-name">{{ orgname }}</div>
1211
+              <div class="order-title">血液净化科医嘱及执行单</div>
1212
+            </td>
1213
+          </tr>
1214
+          <tr>
1215
+            <td>
1216
+              <table class="print-table" border="1">
1217
+                <tr>
1218
+                  <td width="80" colspan="11" style="text-align: center">
1219
+                    治 疗 日 期:&nbsp;<span>{{ queryParams.xtdate }}</span>
1220
+                  </td>
1221
+                </tr>
1222
+                <tr>
1223
+                  <td colspan="11" style="padding-left: 10px">
1224
+                    <div class="list_table">
1225
+                      <div>姓 名:&nbsp;{{ patientInfo.name }}</div>
1226
+                      <div>
1227
+                        性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
1228
+                      </div>
1229
+                      <div>年龄:{{ getoldAge() }}</div>
1230
+                      <div>透析机号:&nbsp;{{ getNumber() }}</div>
1231
+                    </div>
1232
+                  </td>
1233
+                </tr>
1234
+              </table>
1235
+            </td>
1236
+          </tr>
1237
+        </thead>
1238
+        <tbody>
1239
+         
1240
+         
1241
+          <tr style="transform: translateY(4px)" >
1242
+            <td>
1243
+              <table class="print-table" border="1" style="text-align: center">
1244
+                <tr>
1245
+                  <td style="height: 20px" width="60">
1246
+                    <p style="height: 20px; line-height: 20px">时间</p>
1247
+                  </td>
1248
+                  <td
1249
+                    style="height: 20px"
1250
+                    width="90"
1251
+                   
1252
+                  >
1253
+                    <p style="height: 20px; line-height: 20px">开嘱医生</p>
1254
+                  </td>
1255
+                  <td style="height: 20px" width="344">
1256
+                    <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
1257
+                  </td>
1258
+                  <td
1259
+                    style="height: 20px"
1260
+                    width="70"
1261
+                   
1262
+                  >
1263
+                    <p style="height: 20px; line-height: 20px">执行时间</p>
1264
+                  </td>
1265
+             
1266
+                  <td style="height: 20px" width="90">
1267
+                    <p style="height: 20px; line-height: 20px">执行</p>
1268
+                  </td>
1269
+                  <td style="height: 20px" width="90">
1270
+                    <p style="height: 20px; line-height: 20px">核对</p>
1271
+                  </td>
1272
+                  <!-- <td style="height: 20px" width="144">
1273
+                    <p style="height: 20px; line-height: 20px">上次透后体重</p>
1274
+                  </td> -->
1275
+                  <!-- <td style="height: 20px" width="60">
1276
+                    {{
1277
+                      patientInfo.total_dialysis +
1278
+                        patientInfo.user_sys_before_count >
1279
+                      0
1280
+                        ? patientInfo.user_sys_before_count
1281
+                        : "/"
1282
+                    }}kg
1283
+                  </td> -->
1284
+                </tr>
1285
+              </table>
1286
+            </td>
1287
+          </tr>
1288
+          <div>
1289
+          <tr
1290
+            v-for="(advice, advice_index) in advices"
1291
+            :key="advice_index"
1292
+            style="transform: translateY(3px)"
1293
+          >
1294
+            <td>
1295
+              <table class="print-table" border="1">
1296
+                <tr>
1297
+                  <td width="60">
1298
+                    {{ getTime(advice.start_time, "{h}:{i}") }}
1299
+                  </td>
1300
+                  <td
1301
+                    style="line-height: 30px"
1302
+                    width="90"
1303
+                  >
1304
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">
1305
+                      {{ getAdminUser(advice.advice_doctor) }}
1306
+                    </span>
1307
+                    <img
1308
+                      style="height: 30px"
1309
+                      :src="setAdminUserES(advice.advice_doctor)"
1310
+                      alt=""
1311
+                      srcset=""
1312
+                    />
1313
+                  </td>
1314
+                  <td style="text-align: left; padding-left: 5px" width="340">
1315
+                    <span v-if="advice.parent_id > 0">---></span>
1316
+                    <span>{{ advice.advice_name }}</span>
1317
+                    <span v-if="advice && advice.advice_desc"
1318
+                      >({{ advice.advice_desc
1319
+                      }}{{ advice.drug_spec_unit }})</span
1320
+                    >
1321
+                    <span v-if="advice.prescribing_number"
1322
+                      >&nbsp;&nbsp; {{ advice.prescribing_number
1323
+                      }}{{ advice.prescribing_number_unit }}</span
1324
+                    >
1325
+                    <span v-if="advice.single_dose != 0"
1326
+                      >{{ advice.single_dose
1327
+                      }}{{ advice.single_dose_unit }}</span
1328
+                    >
1329
+
1330
+                    <span v-if="advice.parent_id == 0">{{
1331
+                      advice.delivery_way
1332
+                    }}</span>
1333
+                    <span v-if="advice.parent_id == 0">{{
1334
+                      advice.execution_frequency
1335
+                    }}</span>
1336
+                    <span>{{ advice.remark }}</span>
1337
+                  </td>
1338
+                  <td
1339
+                    style="line-height: 10px"
1340
+                    width="70"
1341
+                   
1342
+                  >
1343
+                    <span v-if="advice.execution_time">{{
1344
+                      getTime(advice.execution_time, "{h}:{i}")
1345
+                    }}</span>
1346
+                  </td>
1347
+                  <!-- <td
1348
+                    style="line-height: 30px"
1349
+                    width="90"
1350
+                    v-if="org_id == 10249 || org_id == 0"
1351
+                  >
1352
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">
1353
+                      {{ getAdminUser(advice.advice_doctor) }}
1354
+                    </span>
1355
+                    <img
1356
+                      style="height: 30px"
1357
+                      :src="setAdminUserES(advice.advice_doctor)"
1358
+                      alt=""
1359
+                      srcset=""
1360
+                    />
1361
+                  </td> -->
1362
+                  <td style="line-height: 10px" width="90">
1363
+                    <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
1364
+                      getAdminUser(advice.execution_staff)
1365
+                    }}</span>
1366
+                    <img
1367
+                      style="height: 30px"
1368
+                      :src="setAdminUserES(advice.execution_staff)"
1369
+                      alt=""
1370
+                      srcset=""
1371
+                    />
1372
+                  </td>
1373
+                  <td style="line-height: 30px" width="90">
1374
+                    <span v-if="setAdminUserES(advice.checker) == ''">{{
1375
+                      getAdminUser(advice.checker)
1376
+                    }}</span>
1377
+                    <img
1378
+                      style="height: 30px"
1379
+                      :src="setAdminUserES(advice.checker)"
1380
+                      alt=""
1381
+                      srcset=""
1382
+                      v-else
1383
+                    />
1384
+                  </td>
1385
+
1386
+                  <!-- <td v-if="advice_index === 0" width="145">透前体重:</td> -->
1387
+                  <!-- <td v-if="advice_index === 0" width="60">
1388
+                    {{
1389
+                      patientInfo.total_dialysis +
1390
+                        patientInfo.user_sys_before_count >
1391
+                      0
1392
+                        ? patientInfo.user_sys_before_count
1393
+                        : "/"
1394
+                    }}kg
1395
+                  </td> -->
1396
+                  <!-- <td v-if="advice_index === 1" width="145">体重增加量:</td> -->
1397
+                  <!-- <td v-if="advice_index === 1" width="60">
1398
+                    {{
1399
+                      assessmentafter.weight_after == 0 ||
1400
+                      predialysis.weight_before == 0
1401
+                        ? 0
1402
+                        : (
1403
+                            predialysis.weight_before -
1404
+                            assessmentafter.weight_after
1405
+                          ).toFixed(2)
1406
+                    }}kg
1407
+                  </td> -->
1408
+                  <!-- <td v-if="advice_index === 2" width="145">干体重(DW):</td> -->
1409
+                  <!-- <td v-if="advice_index === 2" width="60">
1410
+                    {{
1411
+                      patientInfo.total_dialysis +
1412
+                        patientInfo.user_sys_before_count >
1413
+                      0
1414
+                        ? predialysis.user_sys_before_count
1415
+                        : "/"
1416
+                    }}kg
1417
+                  </td> -->
1418
+                  <!-- <td v-if="advice_index === 3" width="145">较干体重增加量:</td> -->
1419
+                  <!-- <td v-if="advice_index === 3" width="60">
1420
+                    {{
1421
+                      patientInfo.total_dialysis +
1422
+                        patientInfo.user_sys_before_count >
1423
+                        0 && afterdialysis.weight_after != 0
1424
+                        ? (
1425
+                            afterdialysis.weight_after - predialysis.dry_weight
1426
+                          ).toFixed(2)
1427
+                        : 0
1428
+                    }}kg
1429
+                  </td> -->
1430
+                  <!-- <td v-if="advice_index === 4" width="145">机器显示脱水量:</td>
1431
+                  <td v-if="advice_index === 4" width="60">
1432
+                    {{
1433
+                      patientInfo.total_dialysis +
1434
+                        patientInfo.user_sys_before_count >
1435
+                      0
1436
+                        ? afterdialysis.actual_ultrafiltration
1437
+                        : "/"
1438
+                    }}ml
1439
+                  </td> -->
1440
+                  <!-- <td v-if="advice_index === 5" width="145">透后体重:</td>
1441
+                  <td v-if="advice_index === 5" width="60">
1442
+                    {{
1443
+                      patientInfo.total_dialysis +
1444
+                        patientInfo.user_sys_before_count >
1445
+                      0
1446
+                        ? afterdialysis.weight_after
1447
+                        : "/"
1448
+                    }}kg
1449
+                  </td>
1450
+                  <td v-if="advice_index === 6" width="145">
1451
+                    本次透析体重下降量:
1452
+                  </td>
1453
+                  <td v-if="advice_index === 6" width="60">
1454
+                    {{
1455
+                      afterdialysis.weight_after == 0 ||
1456
+                      predialysis.weight_before == 0
1457
+                        ? 0
1458
+                        : (
1459
+                            predialysis.weight_before -
1460
+                            afterdialysis.weight_after
1461
+                          ).toFixed(2)
1462
+                    }}kg
1463
+                  </td> -->
1464
+                  <!-- <td v-if="advice_index > 6" width="145"></td>
1465
+                  <td v-if="advice_index > 6" width="60"></td> -->
1466
+                </tr>
1467
+              </table>
1468
+            </td>
1469
+          </tr>
1470
+          </div>
1471
+
1472
+        
1473
+        </tbody>
1474
+      </table>
1475
+    </div>
1476
+  </div>
1477
+  </div>
1478
+ 
1129 1479
 </template>
1130 1480
 
1131 1481
 <script>

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


+ 148 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -907,10 +907,10 @@
907 907
                         class="under_line"
908 908
                         style="width: 100px; text-align: center"
909 909
                       >
910
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 ">{{
910
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 ">{{
911 911
                           lastafterdialysis.weight_after
912 912
                         }}</span>
913
-                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956">{{
913
+                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440">{{
914 914
                           predialysis.weight_after_last_transparency
915 915
                             ? predialysis.weight_after_last_transparency
916 916
                             : "未称重"
@@ -959,8 +959,8 @@
959 959
                             : "/"
960 960
                         }}
961 961
                       </div>
962
-                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440">ml</span> 
963
-                      <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440">L</span>
962
+                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469">ml</span> 
963
+                      <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469">L</span>
964 964
                     </div>
965 965
                     <div class="inline_block" style="flex: 1">
966 966
                       干体重:
@@ -1067,14 +1067,14 @@
1067 1067
                         }}
1068 1068
                       </div>
1069 1069
                      
1070
-                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1070
+                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1071 1071
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1072 1072
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1073 1073
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1074 1074
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1075 1075
                     </span>
1076 1076
 
1077
-                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id!=10440">
1077
+                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469">
1078 1078
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1079 1079
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1080 1080
                       <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -1113,7 +1113,7 @@
1113 1113
                             : "0"
1114 1114
                         }}
1115 1115
                       </div>
1116
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1116
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1117 1117
 
1118 1118
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1119 1119
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
@@ -1121,7 +1121,7 @@
1121 1121
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1122 1122
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1123 1123
                       </span>
1124
-                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440">
1124
+                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469">
1125 1125
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1126 1126
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1127 1127
                           <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -1186,13 +1186,13 @@
1186 1186
                             : "/"
1187 1187
                         }}
1188 1188
                       </div>
1189
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1189
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1190 1190
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1191 1191
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1192 1192
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1193 1193
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1194 1194
                      </span>
1195
-                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440">
1195
+                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469">
1196 1196
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1197 1197
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1198 1198
                        <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -1286,6 +1286,35 @@
1286 1286
                   
1287 1287
                   </div>
1288 1288
 
1289
+                   <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==10469 || org_id == 9671">
1290
+                    <div
1291
+                      class="inline_block"
1292
+                      style="margin-left: 20px"
1293
+                    >
1294
+                      透析机型号:
1295
+                      <div
1296
+                        class="under_line"
1297
+                        style="width: 50px; text-align: center"
1298
+                      >
1299
+                       {{predialysis.machine_type ? predialysis.machine_type : ""}}
1300
+                      </div>
1301
+                    
1302
+                    </div>
1303
+                    <div
1304
+                      class="inline_block"
1305
+                      style="margin-left: 20px"
1306
+                    >
1307
+                    跌倒风险评估评分:
1308
+                      <div
1309
+                        class="under_line"
1310
+                        style="width: 50px; text-align: center"
1311
+                      >
1312
+                        {{ receiverTreatmentAccess.score }}
1313
+                      </div>
1314
+                    </div>
1315
+                  </div>
1316
+
1317
+
1289 1318
                   <div
1290 1319
                     class="row"
1291 1320
                     style="padding: 2px 0; line-height: 23px; display: flex"
@@ -1464,7 +1493,8 @@
1464 1493
                       
1465 1494
 
1466 1495
                         <td>
1467
-                          {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}
1496
+                          <span v-if="org_id!=9671 && org_id!=10440"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
1497
+                          <span v-if="org_id==9671 || org_id==10440"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
1468 1498
                         </td>
1469 1499
                         <!-- <td style="width:50px">
1470 1500
                           <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))">
@@ -2303,7 +2333,7 @@
2303 2333
                       style="flex: 1"
2304 2334
                       v-if="org_id != 10223"
2305 2335
                     >
2306
-                      透析中入量:
2336
+                      透析中入量(L)
2307 2337
                       <div
2308 2338
                         class="under_line"
2309 2339
                         style="width: 70px; text-align: center"
@@ -2537,6 +2567,53 @@
2537 2567
                     class="row"
2538 2568
                     style="padding: 2px 0; line-height: 23px; display: flex"
2539 2569
                   >
2570
+                   <div v-if="org_id == 0 || org_id == 10440">
2571
+                    
2572
+                  
2573
+
2574
+                    <div class="inline_block" style="flex: 1">
2575
+                      上机护士:
2576
+                      <div
2577
+                        class="under_line"
2578
+                        style="width: 80px; text-align: center"
2579
+                      >
2580
+                        <span
2581
+                          style="height: 30px; display: inline-block"
2582
+                          v-if="
2583
+                            setAdminUserES(
2584
+                              dialysisOrder == null
2585
+                                ? 0
2586
+                                : dialysisOrder.start_nurse
2587
+                            ) == ''
2588
+                          "
2589
+                        >
2590
+                          {{
2591
+                            getAdminUser(
2592
+                              dialysisOrder == null
2593
+                                ? 0
2594
+                                : dialysisOrder.start_nurse
2595
+                            )
2596
+                          }}</span
2597
+                        >
2598
+                        <img
2599
+                          style="height: 30px"
2600
+                          :src="
2601
+                            setAdminUserES(
2602
+                              dialysisOrder == null
2603
+                                ? 0
2604
+                                : dialysisOrder.start_nurse
2605
+                            )
2606
+                          "
2607
+                          alt=""
2608
+                          srcset=""
2609
+                          v-else
2610
+                        />
2611
+                      </div>
2612
+                    </div>
2613
+                  
2614
+                  
2615
+                  </div>
2616
+                  <div v-if="org_id!=0 && org_id!=10440">
2540 2617
                     <div class="inline_block" style="flex: 1">
2541 2618
                       穿刺护士:
2542 2619
                       <div
@@ -2576,6 +2653,58 @@
2576 2653
                         />
2577 2654
                       </div>
2578 2655
                     </div>
2656
+                  </div>
2657
+                   
2658
+                  <div v-if="org_id==0||org_id==10440">
2659
+                    
2660
+                    <div class="inline_block" style="flex: 1">                 
2661
+                     <div>
2662
+                      <span>责任护士:</span> 
2663
+                      <div
2664
+                        class="under_line"
2665
+                        style="width: 80px; text-align: center"
2666
+                       
2667
+                      >
2668
+                    
2669
+                        <span
2670
+                          style="height: 30px; display: inline-block"
2671
+                          v-if="
2672
+                            setAdminUserES(
2673
+                              dialysisOrder == null
2674
+                                ? 0
2675
+                                : dialysisOrder.start_nurse
2676
+                            ) == ''
2677
+                          "
2678
+                        >
2679
+                          {{
2680
+                            getAdminUser(
2681
+                              dialysisOrder == null
2682
+                                ? 0
2683
+                                : dialysisOrder.start_nurse
2684
+                            )
2685
+                          }}</span
2686
+                        >
2687
+                        <img
2688
+                          style="height: 30px"
2689
+                          :src="
2690
+                            setAdminUserES(
2691
+                              dialysisOrder == null
2692
+                                ? 0
2693
+                                : dialysisOrder.start_nurse
2694
+                            )
2695
+                          "
2696
+                          alt=""
2697
+                          srcset=""
2698
+                          v-else
2699
+                        />
2700
+                      </div>
2701
+                    </div>
2702
+
2703
+                    </div>
2704
+
2705
+                  </div>
2706
+
2707
+                  <div v-if="org_id!=0&&org_id!=10440">
2579 2708
                     <div class="inline_block" style="flex: 1">
2580 2709
                       <span v-if="org_id==10414">责任护士:</span> 
2581 2710
                       <span v-else>治疗护士:</span> 
@@ -2617,6 +2746,10 @@
2617 2746
                         />
2618 2747
                       </div>
2619 2748
                     </div>
2749
+                  </div>
2750
+                  
2751
+
2752
+
2620 2753
                     <div class="inline_block" style="flex: 1">
2621 2754
                       <span v-if="org_id==10387" >核对护士:</span> 
2622 2755
                       <span v-else >核对人员:</span> 
@@ -2729,7 +2862,7 @@
2729 2862
                       </div>
2730 2863
                     </div>
2731 2864
                     <div class="inline_block" style="flex: 1">
2732
-                      下机护士:
2865
+                       下机护士:
2733 2866
                       <div
2734 2867
                         class="under_line"
2735 2868
                         style="width: 80px; text-align: center"
@@ -3566,7 +3699,7 @@ export default {
3566 3699
         for (let index = 0; index < this.doctor_advices.length; index++) {
3567 3700
           this.doctor_advices[index]["isShow"] = 2;
3568 3701
         }
3569
-
3702
+       console.log("total--------------------------",this.doctor_advices)
3570 3703
         // if (this.doctor_advices.length > 0) {
3571 3704
         //   var group = this.newAdviceGroupObject()
3572 3705
         //   var initGroupBlock = function(group, advice) {
@@ -3662,6 +3795,7 @@ export default {
3662 3795
         }
3663 3796
 
3664 3797
         this.totollength = this.doctor_advices.length + this.monitors.length;
3798
+        console.log("this.totollength",this.totollength)
3665 3799
         if (this.totollength > 18) {
3666 3800
           var temp_advice_length = 17 - this.monitors.length;
3667 3801
           var doctor_advices_1 = [];

+ 76 - 41
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue View File

@@ -201,13 +201,9 @@
201 201
             </td>
202 202
           </tr>
203 203
           <tr>
204
-            <td style="text-align: left" colspan="1">
205
-              <span style="display: inline-block; margin-left: 15px">
206
-                透前体重:{{
207
-                  predialysis.weight_before ? predialysis.weight_before : "/"
208
-                }}kg
209
-              </span>
210
-            </td>
204
+            <!-- <td style="text-align: left" colspan="1">
205
+             
206
+            </td> -->
211 207
             <td style="text-align: left" colspan="1">
212 208
               <span style="display: inline-block; margin-left: 15px">
213 209
                 设定脱水量:{{
@@ -225,7 +221,7 @@
225 221
                 ></label-box>
226 222
               </span>
227 223
             </td>
228
-            <td style="text-align: left" colspan="2">
224
+            <td style="text-align: left" colspan="3">
229 225
               <span style="display: inline-block; margin-left: 15px">
230 226
                 <span v-if="prescription.anticoagulant == 2">普通肝素首剂:</span>
231 227
                 <span v-if="prescription.anticoagulant == 3"
@@ -294,7 +290,7 @@
294 290
               <span v-if="prescription.anticoagulant == 2">mg/h</span>
295 291
               <span v-if="prescription.anticoagulant == 1">mg/h</span>
296 292
             </td>
297
-            <td style="text-align: left" colspan="2">
293
+            <td style="text-align: left" colspan="1">
298 294
               <span style="display: inline-block; ">
299 295
                 总量:
300 296
                 {{
@@ -315,6 +311,52 @@
315 311
               <span v-if="prescription.anticoagulant == 1">mg</span>
316 312
             </td>
317 313
           </tr>
314
+          <tr>
315
+            <td style="text-align: left" colspan="1">
316
+               <span style="display: inline-block; margin-left: 15px">
317
+                透前体重:{{
318
+                  predialysis.weight_before ? predialysis.weight_before : "/"
319
+                }}kg
320
+              </span>
321
+            </td>
322
+            <td style="text-align: left" colspan="1">
323
+              <span style="display: inline-block; margin-left: 15px">
324
+                透析器型号:
325
+                <span v-if="prescription.dialysis_dialyszers!=''">{{
326
+                  prescription.dialysis_dialyszers
327
+                    ? prescription.dialysis_dialyszers
328
+                    : "/"
329
+                }}
330
+                </span>
331
+              </span>
332
+            </td> 
333
+            <td style="text-align: left" colspan="2">
334
+              <span style="display: inline-block; margin-left: 15px">
335
+                灌流器型号:
336
+                <span v-if="prescription.dialysis_irrigation!=''">
337
+                 &nbsp;&nbsp;{{
338
+                  prescription.dialysis_irrigation
339
+                    ? prescription.dialysis_irrigation
340
+                    : "/"
341
+                }}
342
+               </span>
343
+              </span>
344
+            </td> 
345
+
346
+            <td style="text-align: left" colspan="2">
347
+              <span style="display: inline-block; margin-left: 15px">
348
+                滤过器型号:
349
+                <span v-if="prescription.dialysis_strainer!=''">
350
+                &nbsp;&nbsp;{{
351
+                    prescription.dialysis_strainer
352
+                      ? prescription.dialysis_strainer
353
+                      : "/"
354
+                  }}
355
+               </span>
356
+              </span>
357
+            </td> 
358
+           
359
+          </tr>
318 360
           <tr>
319 361
             <td style="text-align: left" colspan="1">
320 362
               <span style="display: inline-block; margin-left: 15px">
@@ -352,40 +394,30 @@
352 394
                 }}分钟
353 395
               </span>
354 396
             </td>
355
-            <td style="text-align: left" colspan="1">
356
-              <span style="display: inline-block; margin-left: 15px">
357
-                透析/灌流器型号:{{
358
-                  prescription.dialysis_dialyszers
359
-                    ? prescription.dialysis_dialyszers
360
-                    : "/"
361
-                }}&nbsp;&nbsp;{{
362
-                  prescription.dialysis_irrigation
363
-                    ? prescription.dialysis_irrigation
364
-                    : "/"
365
-                }}
366
-              </span>
367
-            </td>
368
-            <td style="text-align: left" colspan="2">
397
+         
398
+            <td style="text-align: left" colspan="3">
369 399
               <span style="display: inline-block; margin-left: 15px">
370 400
                 置换方式:
371 401
                 <label-box
372 402
                   :isChecked="
373
-                    prescription.displace_liqui_part == 1 ? true : false
403
+                    prescription.displace_liqui_part == 1 && prescription.mode_id != 2 && prescription.mode_id != 5 && prescription.mode_id != 12? true : false
374 404
                   "
375 405
                   showValue="前"
376 406
                 ></label-box
377 407
                 >&nbsp;
378 408
                 <label-box
379 409
                   :isChecked="
380
-                    prescription.displace_liqui_part == 2 ? true : false
410
+                    prescription.displace_liqui_part == 2 && prescription.mode_id != 2 && prescription.mode_id != 5 && prescription.mode_id != 12? true : false
381 411
                   "
382 412
                   showValue="后"
383 413
                 ></label-box>
384
-                &nbsp; (总量:{{
414
+                &nbsp; (总量:
415
+                <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{
385 416
                   prescription.displace_liqui_value
386 417
                     ? prescription.displace_liqui_value
387 418
                     : "/"
388 419
                 }}L)
420
+                </span>
389 421
               </span>
390 422
             </td>
391 423
           </tr>
@@ -431,22 +463,25 @@
431 463
                 </span>
432 464
               </span>
433 465
 
434
-              <span style="display: inline-block; margin-left: 15px">
435
-                核对护士:<span
436
-                  style="height: 30px; display: inline-block"
437
-                  v-if="setAdminUserES(check == null ? 0 : check.creater) == ''"
438
-                >
439
-                  {{ getAdminUser(check == null ? 0 : check.creater) }}
440
-                </span>
441
-                <img
442
-                  style="height: 30px"
443
-                  :src="setAdminUserES(check == null ? 0 : check.creater)"
444
-                  alt=""
445
-                  srcset=""
446
-                  v-else
447
-                />
448
-              </span>
466
+             
449 467
             </td>
468
+            <td style="text-align: left" colspan="1">
469
+                <span style="display: inline-block; margin-left: 15px">
470
+                  核对护士:<span
471
+                    style="height: 30px; display: inline-block"
472
+                    v-if="setAdminUserES(check == null ? 0 : check.creater) == ''"
473
+                  >
474
+                    {{ getAdminUser(check == null ? 0 : check.creater) }}
475
+                  </span>
476
+                  <img
477
+                    style="height: 30px"
478
+                    :src="setAdminUserES(check == null ? 0 : check.creater)"
479
+                    alt=""
480
+                    srcset=""
481
+                    v-else
482
+                  />
483
+                </span>
484
+              </td>
450 485
             <td style="text-align: left" colspan="3">
451 486
               <span style="display: inline-block; margin-left: 15px">
452 487
                 <span

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

@@ -536,10 +536,14 @@
536 536
                     <tr>
537 537
                       <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
538 538
                       <td width="220" style="text-align:left;border:none;">
539
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器0') > -1 ? true : false) :false" showValue="0"></label-box>
539
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor == '透析器0' ? true : false) :false" showValue="0"></label-box>
540
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor == '透析器+' ? true : false) :false" showValue="+"></label-box>
541
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor == '透析器++' ? true : false) :false" showValue="+ +"></label-box>
542
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor == '透析器+++' ? true : false) :false" showValue="+ + +"></label-box>
543
+                        <!-- <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器0') > -1 ? true : false) :false" showValue="0"></label-box>
540 544
                         <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+') > -1 ? true : false) :false" showValue="+"></label-box>
541
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器++') > -1 ? true : false) :false" showValue="+ +"></label-box>
542
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+++') > -1 ? true : false) :false" showValue="+ + +"></label-box>
545
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器++')> -1 ? true : false) :false" showValue="+ +"></label-box>
546
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+++')> -1 ? true : false) :false" showValue="+ + +"></label-box> -->
543 547
                       </td>
544 548
                       <td width="90" style="border:none;padding-left:5px">静脉管道:</td>
545 549
                       <td width="220" style="text-align:left;border:none;">

BIN
src/xt_pages/favicon.ico View File


+ 6 - 7
src/xt_pages/hospitalStation/components/chargeDialog.vue View File

@@ -225,13 +225,12 @@
225 225
         },
226 226
         payWays: [
227 227
           { value: 1, label: '现金' },
228
-          // {value: 2, label: '银行卡'},
229
-          // {value: 3, label: '微信'},
230
-          // {value: 4, label: '支付宝'},
228
+          { value: 2, label: '银行卡'},
229
+          { value: 3, label: '微信'},
230
+          { value: 5, label: '支付宝'},
231
+          { value: 7, label: '积分'},
231 232
           { value: 4, label: '医保卡' },
232
-          { value: 6, label: '电子凭证' },
233
-
234
-
233
+          { value: 6, label: '电子凭证'},
235 234
         ],
236 235
         total: "",
237 236
 
@@ -288,7 +287,7 @@
288 287
             'admin_user_id': this.$store.getters.xt_user.user.id,
289 288
             'certificates':1,
290 289
           }
291
-          
290
+
292 291
           axios.get('http://127.0.0.1:9532/zh/api/readcard', {
293 292
             params: params
294 293
           })

+ 142 - 1
src/xt_pages/hospitalStation/summary.vue View File

@@ -215,6 +215,32 @@
215 215
             >
216 216
               上传结算清单
217 217
             </el-button>
218
+            <el-button
219
+              size="mini"
220
+              type="primary"
221
+              @click="confirmUploadInfo(scope.row)"
222
+              v-if="$store.getters.xt_user.org_id == 10265"
223
+            >
224
+              确认结算清单
225
+            </el-button>
226
+            <el-button
227
+              size="mini"
228
+              type="primary"
229
+              @click="cancelUploadTwo(scope.row)"
230
+              v-if="$store.getters.xt_user.org_id == 10265"
231
+            >
232
+              取消结算清单
233
+            </el-button>
234
+
235
+            <el-button
236
+              size="mini"
237
+              type="primary"
238
+              @click="queryData(scope.row)"
239
+              v-if="$store.getters.xt_user.org_id == 10265"
240
+            >
241
+              查询结算清单
242
+            </el-button>
243
+
218 244
             <el-button
219 245
               size="mini"
220 246
               type="primary"
@@ -452,6 +478,121 @@ export default {
452 478
   },
453 479
 
454 480
   methods: {
481
+    confirmUploadInfo(row){
482
+      var that = this;
483
+      axios
484
+        .get("http://127.0.0.1:9532/api/4102", {
485
+          params: {
486
+            order_id: row.id,
487
+            admin_user_id: this.$store.getters.xt_user.user.id,
488
+            stas_type: 1
489
+          },
490
+        })
491
+        .then(function (response) {
492
+          if (response.data.state == 0) {
493
+            that.$message.error(response.data.msg);
494
+            return false;
495
+          } else {
496
+            if (response.data.data.failed_code == -10) {
497
+              that
498
+                .$confirm(response.data.data.msg, "医保错误信息", {
499
+                  confirmButtonText: "确 定",
500
+                  type: "warning",
501
+                })
502
+                .then(() => {
503
+                })
504
+                .catch(() => {
505
+                });
506
+            } else {
507
+              that.$message.success("确认成功");
508
+              row.result.id = response.data.data.result.id;
509
+            }
510
+          }
511
+        })
512
+        .catch(function (error) {
513
+        });
514
+
515
+
516
+    },
517
+    cancelUploadTwo(row){
518
+      if(this.$store.getters.xt_user.org_id == 10265){
519
+        var that = this;
520
+        axios
521
+          .get("http://127.0.0.1:9532/api/4102", {
522
+            params: {
523
+              order_id: row.id,
524
+              admin_user_id: this.$store.getters.xt_user.user.id,
525
+              stas_type: 0
526
+            },
527
+          })
528
+          .then(function (response) {
529
+            if (response.data.state == 0) {
530
+              that.$message.error(response.data.msg);
531
+              return false;
532
+            } else {
533
+              if (response.data.data.failed_code == -10) {
534
+                // that.$message.error(response.data.data.msg)
535
+                that
536
+                  .$confirm(response.data.data.msg, "医保错误信息", {
537
+                    confirmButtonText: "确 定",
538
+                    type: "warning",
539
+                  })
540
+                  .then(() => {
541
+                  })
542
+                  .catch(() => {
543
+                  });
544
+              } else {
545
+                that.$message.success("撤销成功");
546
+                row.result.id = 0;
547
+              }
548
+            }
549
+          })
550
+          .catch(function (error) {
551
+          });
552
+      }
553
+    },
554
+    queryData(row){
555
+      var that = this;
556
+      axios
557
+        .get("http://127.0.0.1:9532/api/4103", {
558
+          params: {
559
+            order_id: row.id,
560
+            admin_user_id: this.$store.getters.xt_user.user.id,
561
+          },
562
+        })
563
+        .then(function (response) {
564
+          if (response.data.state == 0) {
565
+            that.$message.error(response.data.msg);
566
+            return false;
567
+          } else {
568
+            if (response.data.data.failed_code == -10) {
569
+              that
570
+                .$confirm(response.data.data.msg, "医保错误信息", {
571
+                  confirmButtonText: "确 定",
572
+                  type: "warning",
573
+                })
574
+                .then(() => {
575
+                })
576
+                .catch(() => {
577
+                });
578
+            } else {
579
+              that
580
+                .$confirm(response.data.data.msg, "医保信息", {
581
+                  confirmButtonText: "确 定",
582
+                })
583
+                .then(() => {
584
+                })
585
+                .catch(() => {
586
+                });
587
+            }
588
+          }
589
+        })
590
+        .catch(function (error) {
591
+        });
592
+
593
+
594
+    },
595
+
455 596
     setStorage() {
456 597
       this.$store.commit("SET_PAGEDATA", {
457 598
         page: this.page,
@@ -1123,7 +1264,7 @@ export default {
1123 1264
         setl_time: obj.setl_time,
1124 1265
       };
1125 1266
       this.invoiceParams = paramsObj;
1126
-      
1267
+
1127 1268
       const loading = this.$loading({
1128 1269
           lock: true,
1129 1270
           text: '正在加载中...',

+ 24 - 8
src/xt_pages/hospitalStation/template/printOne.vue View File

@@ -30,7 +30,7 @@
30 30
           <div style="margin-bottom: 10px">
31 31
             科室:{{ item.info ? getDepart(item.info.departments) : "" }}
32 32
           </div>
33
-          <div style="margin-bottom: 10px">医保卡号:{{psn_info&&psn_info.card_info?psn_info.card_info.split("|")[2]:""}}</div>
33
+          <div style="margin-bottom: 10px">医保卡号:{{hisPatient.psn_no?hisPatient.psn_no:""}}</div>
34 34
           <div style="margin-bottom: 10px">电话:{{ item.patient.phone }}</div>
35 35
           <div>地址:{{ item.patient.home_address }}</div>
36 36
           <div style="display: flex; width: 50%">
@@ -116,16 +116,14 @@
116 116
             医师:
117 117
             <span
118 118
               style="width: 100px; display: inline-block"
119
-              v-if="setAdminUserES(item.creater) == ''"
120 119
             >
121 120
               {{ item.doctor }}
122 121
             </span>
123 122
             <img
124 123
               style="height: 30px"
125
-              :src="setAdminUserES(item.creater)"
124
+              :src="setAdminUserES(item.creator)"
126 125
               alt=""
127 126
               srcset=""
128
-              v-else
129 127
             />
130 128
           </p>
131 129
           <p>
@@ -192,6 +190,7 @@ export default {
192 190
   methods: {
193 191
     // 电子签名
194 192
     setAdminUserES(id) {
193
+      console.log(id)
195 194
       if (id == 0) {
196 195
         return "";
197 196
       }
@@ -263,16 +262,33 @@ export default {
263 262
           console.log("adviceprint9999", advicePrint);
264 263
           this.advicePrint = advicePrint;
265 264
           this.prescriptions = advicePrint;
266
-          if (this.advicePrint.length > 0) {
267
-            var operatorsLen = this.advicePrint.length;
265
+          // if (this.advicePrint.length > 0) {
266
+          //   var operatorsLen = this.advicePrint.length;
267
+          //   for (var index = 0; index < operatorsLen; index++) {
268
+          //     this.$set(
269
+          //       this.operatorMaps,
270
+          //       this.operators[index].creator,
271
+          //       this.operators[index]
272
+          //     );
273
+          //   }
274
+          // }
275
+          this.doctorList_1 = response.data.data.eles;
276
+          if (this.doctorList_1.length > 0) {
277
+            var operatorsLen = this.doctorList_1.length;
268 278
             for (var index = 0; index < operatorsLen; index++) {
269 279
               this.$set(
270 280
                 this.operatorMaps,
271
-                this.operators[index].creator,
272
-                this.operators[index]
281
+                this.doctorList_1[index].creator,
282
+                this.doctorList_1[index]
273 283
               );
274 284
             }
275 285
           }
286
+          console.log("11111", this.operatorMaps);
287
+
288
+
289
+
290
+
291
+
276 292
           this.hisPatient = response.data.data.hisHospitalRecord;
277 293
           var projectlist = response.data.data.projectlist;
278 294
           console.log("所有项目列表", projectlist);

+ 38 - 0
src/xt_pages/index.html View File

@@ -0,0 +1,38 @@
1
+<!DOCTYPE html>
2
+<html>
3
+  <head>
4
+    <meta charset="utf-8" />
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
+    <meta name="renderer" content="webkit" />
7
+    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
8
+    <meta
9
+      name="viewport"
10
+      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
11
+    />
12
+    <title>酷医云-透析管理平台</title>
13
+    <!-- <link
14
+      rel="stylesheet"
15
+      href="//at.alicdn.com/t/font_1480998_l66fq6mc0y.css"
16
+    /> -->
17
+
18
+  </head>
19
+
20
+  <body>
21
+    <script src="https://images.shengws.com/reconnecting-websocket.min.js"></script>
22
+    <script src="https://images.shengws.com/jquery.min.js"></script>
23
+    <script src="<%= htmlWebpackPlugin.options.path %>/tinymce4.7.5/tinymce.min.js"></script>
24
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.config.js"></script>
25
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.all.min.js"></script>
26
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.service.js"></script>
27
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/i18n/zh-cn/zh-cn.js"></script>
28
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.parse.min.js"></script>
29
+
30
+    <div id="app"></div>
31
+    <!-- built files will be auto injected -->
32
+    <link
33
+      rel="stylesheet"
34
+      href="//at.alicdn.com/t/font_795029_9ftx46rzd47.css"
35
+    />
36
+
37
+  </body>
38
+</html>

+ 3 - 1
src/xt_pages/management/index.vue View File

@@ -126,7 +126,7 @@
126 126
           <template slot-scope="scope">{{ scope.row.machine_status }}</template>
127 127
         </el-table-column>
128 128
 
129
-        <el-table-column label="使用次数" align="center">
129
+        <el-table-column label="使用次数" align="center" v-if="org_id!=0&&org_id!=10440">
130 130
           <template slot-scope="scope">{{getTotal(scope.row.bed_id,scope.row.user_total) }}</template>
131 131
         </el-table-column>
132 132
 
@@ -214,6 +214,7 @@ export default {
214 214
       },
215 215
       total: 0,
216 216
       count:[],
217
+      org_id:0,
217 218
     };
218 219
   },
219 220
   methods: {
@@ -403,6 +404,7 @@ export default {
403 404
     this.getAllSubregion();
404 405
     this.getAllMachineInfo();
405 406
     this.getUserMachTotalCount()
407
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
406 408
   }
407 409
 };
408 410
 </script>

+ 4 - 3
src/xt_pages/outpatientCharges/components/chargeDialog.vue View File

@@ -161,9 +161,10 @@
161 161
         },
162 162
         payWays: [
163 163
           {value: 1, label: '现金'},
164
-          // {value: 2, label: '银行卡'},
165
-          // {value: 3, label: '微信'},
166
-          // {value: 4, label: '支付宝'},
164
+          {value: 2, label: '银行卡'},
165
+          {value: 3, label: '微信'},
166
+          {value: 5, label: '支付宝'},
167
+          {value: 7, label: '积分'},
167 168
           {value: 4, label: '医保卡'},
168 169
 
169 170
         ],

File diff suppressed because it is too large
+ 554 - 554
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue


+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -2998,7 +2998,7 @@ export default {
2998 2998
         }
2999 2999
 
3000 3000
         if (this.hisPatientInfo.id_card_type == 1) {
3001
-          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318) {
3001
+          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210) {
3002 3002
             this.pwdFormVisible = true
3003 3003
             this.pwd = ''
3004 3004
           } else {

File diff suppressed because it is too large
+ 1050 - 1040
src/xt_pages/outpatientCharges/statementPrint.vue


+ 505 - 41
src/xt_pages/outpatientCharges/summary.vue View File

@@ -110,16 +110,20 @@
110 110
           >
111 111
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
112 112
           <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
113
+<!--          <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>-->
114
+
113 115
 
114 116
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
115 117
           <!--          >报表下载2-->
116 118
           <!--          </el-button-->
117 119
           <!--          >-->
118 120
 
119
-          <!--                    <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>-->
121
+<!--                              <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>-->
120 122
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
121 123
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
122 124
 <!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
125
+<!--          <el-button size="small" type="primary" @click="export_detail_tenone">报表下载10</el-button>-->
126
+
123 127
           <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
124 128
 
125 129
 
@@ -225,6 +229,9 @@
225 229
             <el-button size="mini" type="primary" @click="toPrint(scope.row)">
226 230
               结算单
227 231
             </el-button>
232
+            <el-button v-if="$store.getters.xt_user.org_id == 10191" size="mini" type="primary" @click="tolistPrint(scope.row)">
233
+              结算清单
234
+            </el-button>
228 235
             <el-button
229 236
                 size="mini"
230 237
                 type="primary"
@@ -233,11 +240,38 @@
233 240
             >
234 241
               上传结算清单
235 242
             </el-button>
243
+
244
+            <el-button
245
+              size="mini"
246
+              type="primary"
247
+              @click="confirmUploadInfo(scope.row)"
248
+              v-if="$store.getters.xt_user.org_id == 10265"
249
+            >
250
+              确认结算清单
251
+            </el-button>
252
+            <el-button
253
+              size="mini"
254
+              type="primary"
255
+              @click="cancelUploadTwo(scope.row)"
256
+              v-if="$store.getters.xt_user.org_id == 10265"
257
+            >
258
+              取消结算清单
259
+            </el-button>
260
+
261
+            <el-button
262
+              size="mini"
263
+              type="primary"
264
+              @click="queryData(scope.row)"
265
+              v-if="$store.getters.xt_user.org_id == 10265"
266
+            >
267
+              查询结算清单
268
+            </el-button>
269
+
236 270
             <el-button
237 271
                 size="mini"
238 272
                 type="primary"
239 273
                 @click="cancelUpload(scope.row)"
240
-                v-if="scope.row.order_status == 2 && scope.row.result.id > 0"
274
+                v-if="$store.getters.xt_user.org_id != 10265 && scope.row.order_status == 2 && scope.row.result.id > 0"
241 275
             >
242 276
               撤销结算清单
243 277
             </el-button>
@@ -290,6 +324,16 @@
290 324
           :paramsObj="orderObj"
291 325
       ></new-statement-print>
292 326
     </el-dialog>
327
+    <el-dialog
328
+      class="centerDialog"
329
+      width="1200px"
330
+      title="打印"
331
+      :visible.sync="statementListVisible"
332
+    >
333
+      <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
334
+    <statement-list-print ref="printlist" :paramsObj='orderObj'></statement-list-print>
335
+    </el-dialog>
336
+
293 337
     <el-dialog
294 338
         class="centerDialog"
295 339
         width="900px"
@@ -354,13 +398,15 @@ import invoicePrint from "./invoicePrint";
354 398
 import settlementPrint from "./settlementPrint";
355 399
 import {jsGetAge, uParseTime} from "@/utils/tools";
356 400
 
357
-import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders} from "../../api/his/his";
401
+import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders,exportOrderInfo} from "../../api/his/his";
358 402
 
359
-import {handleData10106,handleData10318} from "../../api/his/his_export";
403
+import {handleData10106,handleData10318,handleData10138Two} from "../../api/his/his_export";
404
+import StatementListPrint from "./statementListPrint";
360 405
 
361 406
 export default {
362 407
   name: "OutpatientChargesSummary",
363 408
   components: {
409
+    StatementListPrint,
364 410
     NewStatementPrintTwo,
365 411
     NewStatementPrint,
366 412
     BreadCrumb,
@@ -372,6 +418,7 @@ export default {
372 418
   data() {
373 419
     return {
374 420
       orderObj: {},
421
+      statementListVisible:false,
375 422
       statementVisible: false,
376 423
       statementVisible9504: false,
377 424
       orderObj9504: {},
@@ -483,9 +530,46 @@ export default {
483 530
           break;
484 531
       }
485 532
     },
533
+    cancelUploadTwo(row){
534
+      if(this.$store.getters.xt_user.org_id == 10265){
535
+        var that = this;
536
+        axios
537
+          .get("http://127.0.0.1:9532/api/4102", {
538
+            params: {
539
+              order_id: row.id,
540
+              admin_user_id: this.$store.getters.xt_user.user.id,
541
+              stas_type: 0
542
+            },
543
+          })
544
+          .then(function (response) {
545
+            if (response.data.state == 0) {
546
+              that.$message.error(response.data.msg);
547
+              return false;
548
+            } else {
549
+              if (response.data.data.failed_code == -10) {
550
+                // that.$message.error(response.data.data.msg)
551
+                that
552
+                  .$confirm(response.data.data.msg, "医保错误信息", {
553
+                    confirmButtonText: "确 定",
554
+                    type: "warning",
555
+                  })
556
+                  .then(() => {
557
+                  })
558
+                  .catch(() => {
559
+                  });
560
+              } else {
561
+                that.$message.success("撤销成功");
562
+                row.result.id = 0;
563
+              }
564
+            }
565
+          })
566
+          .catch(function (error) {
567
+          });
568
+      }
569
+    },
486 570
     cancelUpload(row) {
487
-      var that = this;
488
-      axios
571
+        var that = this;
572
+        axios
489 573
           .get("http://127.0.0.1:9532/zh/api/clearsettle", {
490 574
             params: {
491 575
               order_id: row.id,
@@ -500,14 +584,14 @@ export default {
500 584
               if (response.data.data.failed_code == -10) {
501 585
                 // that.$message.error(response.data.data.msg)
502 586
                 that
503
-                    .$confirm(response.data.data.msg, "医保错误信息", {
504
-                      confirmButtonText: "确 定",
505
-                      type: "warning",
506
-                    })
507
-                    .then(() => {
508
-                    })
509
-                    .catch(() => {
510
-                    });
587
+                  .$confirm(response.data.data.msg, "医保错误信息", {
588
+                    confirmButtonText: "确 定",
589
+                    type: "warning",
590
+                  })
591
+                  .then(() => {
592
+                  })
593
+                  .catch(() => {
594
+                  });
511 595
               } else {
512 596
                 that.$message.success("撤销成功");
513 597
                 row.result.id = 0;
@@ -516,6 +600,7 @@ export default {
516 600
           })
517 601
           .catch(function (error) {
518 602
           });
603
+
519 604
     },
520 605
     uploadInfo(row) {
521 606
       var that = this;
@@ -551,6 +636,83 @@ export default {
551 636
           .catch(function (error) {
552 637
           });
553 638
     },
639
+    queryData(row){
640
+      var that = this;
641
+      axios
642
+        .get("http://127.0.0.1:9532/api/4103", {
643
+          params: {
644
+            order_id: row.id,
645
+            admin_user_id: this.$store.getters.xt_user.user.id,
646
+          },
647
+        })
648
+        .then(function (response) {
649
+          if (response.data.state == 0) {
650
+            that.$message.error(response.data.msg);
651
+            return false;
652
+          } else {
653
+            if (response.data.data.failed_code == -10) {
654
+              that
655
+                .$confirm(response.data.data.msg, "医保错误信息", {
656
+                  confirmButtonText: "确 定",
657
+                  type: "warning",
658
+                })
659
+                .then(() => {
660
+                })
661
+                .catch(() => {
662
+                });
663
+            } else {
664
+              that
665
+                .$confirm(response.data.data.msg, "医保信息", {
666
+                  confirmButtonText: "确 定",
667
+                })
668
+                .then(() => {
669
+                })
670
+                .catch(() => {
671
+                });
672
+            }
673
+          }
674
+        })
675
+        .catch(function (error) {
676
+        });
677
+
678
+
679
+    },
680
+    confirmUploadInfo(row){
681
+      var that = this;
682
+      axios
683
+        .get("http://127.0.0.1:9532/api/4102", {
684
+          params: {
685
+            order_id: row.id,
686
+            admin_user_id: this.$store.getters.xt_user.user.id,
687
+            stas_type: 1
688
+          },
689
+        })
690
+        .then(function (response) {
691
+          if (response.data.state == 0) {
692
+            that.$message.error(response.data.msg);
693
+            return false;
694
+          } else {
695
+            if (response.data.data.failed_code == -10) {
696
+              that
697
+                .$confirm(response.data.data.msg, "医保错误信息", {
698
+                  confirmButtonText: "确 定",
699
+                  type: "warning",
700
+                })
701
+                .then(() => {
702
+                })
703
+                .catch(() => {
704
+                });
705
+            } else {
706
+              that.$message.success("确认成功");
707
+              row.result.id = response.data.data.result.id;
708
+            }
709
+          }
710
+        })
711
+        .catch(function (error) {
712
+        });
713
+
714
+
715
+    },
554 716
 
555 717
     fetchAllAdminUsers() {
556 718
       fetchAllAdminUsers().then((response) => {
@@ -641,7 +803,42 @@ export default {
641 803
             .catch(() => {
642 804
             });
643 805
       }
806
+    }, tolistPrint(row) {
807
+      // if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
808
+      //   if (row.mdtrt_id.indexOf('H') > -1) {
809
+      //     this.statementVisible9504 = true
810
+      //     let obj = {
811
+      //       order_id: row.id,
812
+      //       patient_id: row.patient_id,
813
+      //       record_time: this.getTimes(row.settle_accounts_date),
814
+      //       admin_user_id: this.$store.getters.xt_user.user.id
815
+      //     }
816
+      //     this.orderObj9504 = obj
817
+      //   } else {
818
+      //
819
+      //     this.statementVisible9504 = true
820
+      //     let obj = {
821
+      //       order_id: row.id,
822
+      //       patient_id: row.patient_id,
823
+      //       record_time: this.getTimes(row.settle_accounts_date),
824
+      //       admin_user_id: this.$store.getters.xt_user.user.id,
825
+      //       balance_accounts_type: 2
826
+      //     }
827
+      //     this.orderObj9504 = obj
828
+      //   }
829
+      //
830
+      // } else {
831
+      this.statementListVisible = true;
832
+      let obj = {
833
+        order_id: row.id,
834
+        settle_type: row.settle_type,
835
+        start_time: row.settle_start_time,
836
+        end_time: row.settle_end_time,
837
+        balance_accounts_type: row.his_patient.balance_accounts_type,
838
+      };
839
+      this.orderObj = obj;
644 840
     },
841
+
645 842
     toPrint(row) {
646 843
       // if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
647 844
       //   if (row.mdtrt_id.indexOf('H') > -1) {
@@ -718,24 +915,17 @@ export default {
718 915
               //   obj["dialysis_time"] = this.getTimes(order.info[b].record_date)
719 916
               // }
720 917
               if (order.psn_type == "11") {
721
-
722 918
                 obj["psn_type"] = "职工在职"
723 919
               } else if (order.psn_type == "12") {
724 920
                 obj["psn_type"] = "职工退休"
725
-
726 921
               } else if (order.psn_type == "13") {
727 922
                 obj["psn_type"] = "离休"
728
-
729 923
               } else if (order.psn_type == "14") {
730 924
                 obj["psn_type"] = "居民医保"
731
-
732 925
               } else if (order.psn_type == "15") {
733
-
734 926
                 obj["psn_type"] = "居民医保"
735
-
736 927
               } else if (order.psn_type == "16") {
737 928
                 obj["psn_type"] = "居民医保"
738
-
739 929
               }
740 930
 
741 931
               list.push(obj)
@@ -822,7 +1012,87 @@ export default {
822 1012
           });
823 1013
         }
824 1014
       });
1015
+    },getItemTypeName(order_infos,id,type){
1016
+      console.log(type )
1017
+
1018
+      var  name = ""
1019
+      for(let i = 0; i < order_infos.length;i++){
1020
+        if(type == 1){
1021
+          if(order_infos[i].advice_id == id){
1022
+
1023
+            name =   this.getItemName(order_infos[i].med_chrgitm_type)
1024
+          }
1025
+        }else{
1026
+          if(order_infos[i].project_id == id){
1027
+
1028
+            name =   this.getItemName(order_infos[i].med_chrgitm_type)
1029
+          }
1030
+        }
1031
+
1032
+      }
1033
+      return name
1034
+    },       getItemName(med_chrgitm_type) {
1035
+      switch (med_chrgitm_type) {
1036
+        case '01':
1037
+          return '床位费'
1038
+          break
1039
+        case '02':
1040
+          return '诊察费'
1041
+
1042
+          break
1043
+        case '03':
1044
+          return '检查费'
1045
+
1046
+          break
1047
+        case '04':
1048
+          return '化验费'
1049
+          break
1050
+        case '05':
1051
+          return '治疗费'
1052
+
1053
+          break
1054
+        case '06':
1055
+          return '手术费'
1056
+
1057
+          break
1058
+        case '07':
1059
+          return '护理费'
1060
+
1061
+          break
1062
+        case '08':
1063
+          return '材料费'
1064
+
1065
+          break
1066
+        case '09':
1067
+          return '西药费'
1068
+
1069
+          break
1070
+        case '10':
1071
+          return '中药饮片费'
1072
+
1073
+          break
1074
+        case '11':
1075
+          return '中成药费'
1076
+
1077
+          break
1078
+        case '12':
1079
+          return '一般诊疗费'
1080
+
1081
+          break
1082
+        case '13':
1083
+          return '挂号费'
1084
+          break
1085
+        case '14':
1086
+          return '其他费'
1087
+          break
1088
+        case '0':
1089
+          return '其他费'
1090
+          break
1091
+
1092
+      }
1093
+
825 1094
     },
1095
+
826 1096
     export_detail_three() {
827 1097
       let params = {};
828 1098
       getHisDataThree(params).then((response) => {
@@ -839,13 +1109,14 @@ export default {
839 1109
               let obj = {
840 1110
                 name: order.patient.name,
841 1111
                 id_card_no: order.patient.id_card_no,
842
-                year: "2022",
843
-                month: "8",
1112
+                year: "2023",
1113
+                month: "2",
844 1114
                 code: data[b].code,
845 1115
                 pric: data[b].count * data[b].price,
846 1116
                 item_name: data[b].name,
847 1117
                 unit: data[b].unit,
848 1118
                 count: data[b].count,
1119
+                item_type_name:this.getItemTypeName(order.order_info, data[b].id,data[b].type)
849 1120
 
850 1121
               }
851 1122
               if (order.insutype == "310") {
@@ -867,7 +1138,9 @@ export default {
867 1138
                 "医保类型": list[i].insutype,
868 1139
                 "年": list[i].year,
869 1140
                 "月": list[i].month,
1141
+
870 1142
                 "药品编码": list[i].code,
1143
+                "费用类型": list[i].item_type_name,
871 1144
                 "名称": list[i].item_name,
872 1145
                 "单位": list[i].unit,
873 1146
                 "数量": list[i].count,
@@ -885,6 +1158,7 @@ export default {
885 1158
               "年",
886 1159
               "月",
887 1160
               "药品编码",
1161
+              "费用类型",
888 1162
               "名称",
889 1163
               "单位",
890 1164
               "数量",
@@ -898,6 +1172,7 @@ export default {
898 1172
               "年",
899 1173
               "月",
900 1174
               "药品编码",
1175
+              "费用类型",
901 1176
               "名称",
902 1177
               "单位",
903 1178
               "数量",
@@ -1221,7 +1496,7 @@ export default {
1221 1496
           var tarList = []
1222 1497
           for (let i = 0; i < list.length; i++) {
1223 1498
             let obj = {
1224
-              "周期": "2022年第四季度",
1499
+              "周期": "2023年第一季度",
1225 1500
               "类别": "门诊",
1226 1501
               "医保目录编码": list[i].code,
1227 1502
               "医保目录名称": list[i].name,
@@ -1419,6 +1694,99 @@ export default {
1419 1694
       });
1420 1695
 
1421 1696
     },
1697
+    export_detail_tenone(){
1698
+      let params = {
1699
+        start_time: this.start_time,
1700
+        end_time: this.end_time,
1701
+      };
1702
+      handleData10138Two(params).then((response) => {
1703
+        if (response.data.state == 0) {
1704
+          this.$message.error(response.data.msg);
1705
+          return false;
1706
+        } else {
1707
+          var list = []
1708
+          var orders = response.data.data.info
1709
+          for (let i = 0; i < orders.length; i++) {
1710
+            for (let b = 0; b < orders[i].order.length; b++) {
1711
+              for (let c = 0; c < orders[i].order[b].infos.length; c++) {
1712
+                let name = orders[i].name
1713
+                let date = this.getTimes(orders[i].order[b].settle_accounts_date)
1714
+                let code = orders[i].order[b].number
1715
+                let cnt = orders[i].order[b].infos[c].cnt
1716
+                let pric =   orders[i].order[b].infos[c].pric
1717
+                let det_item_fee_sumamt =  orders[i].order[b].infos[c].det_item_fee_sumamt
1718
+
1719
+                let item_name = ""
1720
+                let unit = ""
1721
+                let spec = ""
1722
+
1723
+                if (orders[i].order[b].infos[c].advice_id > 0) {
1724
+                  item_name = orders[i].order[b].infos[c].advices.drug.drug_name
1725
+                  unit = orders[i].order[b].infos[c].advices.prescribing_number_unit
1726
+                  spec = (orders[i].order[b].infos[c].advices.drug.dose + orders[i].order[b].infos[c].advices.drug.dose_unit) + "*" + orders[i].order[b].infos[c].advices.drug.min_number + orders[i].order[b].infos[c].advices.drug.min_unit + "/" + orders[i].order[b].infos[c].advices.drug.max_unit
1727
+                }
1728
+                if (orders[i].order[b].infos[c].project_id > 0 && orders[i].order[b].infos[c].project.type == 2) {
1729
+                  item_name = orders[i].order[b].infos[c].project.project.project_name
1730
+                  unit =orders[i].order[b].infos[c].project.project.unit
1731
+                  spec = orders[i].order[b].infos[c].project.project.project_name
1732
+                }
1733
+                if (orders[i].order[b].infos[c].project_id > 0 && orders[i].order[b].infos[c].project.type == 3) {
1734
+                  item_name = orders[i].order[b].infos[c].project.good_info.good_name
1735
+                  unit = orders[i].order[b].infos[c].project.good_info.packing_unit
1736
+                  spec = orders[i].order[b].infos[c].project.good_info.specification_name
1737
+                }
1738
+
1739
+                let obj = {
1740
+                  "姓名":name,
1741
+                  "处方日期":date,
1742
+                  "费用编码":code,
1743
+                  "项目名称":item_name,
1744
+                  "规格": spec,
1745
+                  "数量": cnt,
1746
+                  "单位": unit,
1747
+                  "金额": det_item_fee_sumamt,
1748
+                  "单价": pric,
1749
+                }
1750
+                list.push(obj)
1751
+              }
1752
+            }
1753
+          }
1754
+
1755
+
1756
+          import("@/vendor/Export2Excel").then((excel) => {
1757
+            const tHeader = [
1758
+              "姓名",
1759
+              "处方日期",
1760
+              "费用编码",
1761
+              "项目名称",
1762
+              "规格",
1763
+              "数量",
1764
+              "单位",
1765
+              "单价",
1766
+              "金额",
1767
+            ];
1768
+            const filterVal = [
1769
+              "姓名",
1770
+              "处方日期",
1771
+              "费用编码",
1772
+              "项目名称",
1773
+              "规格",
1774
+              "数量",
1775
+              "单位",
1776
+              "单价",
1777
+              "金额",
1778
+            ];
1779
+            const data = this.formatJson(filterVal, list);
1780
+            excel.export_json_to_excel({
1781
+              header: tHeader,
1782
+              data,
1783
+              filename: "消费明细",
1784
+            });
1785
+          });
1786
+
1787
+        }
1788
+      });
1789
+    },
1422 1790
     getType(med_chrgitm_type) {
1423 1791
       switch (med_chrgitm_type) {
1424 1792
         case '01':
@@ -1732,6 +2100,95 @@ export default {
1732 2100
       });
1733 2101
 
1734 2102
 
2103
+    },
2104
+    export_detail_ten_three(){
2105
+      exportOrderInfo().then((response) => {
2106
+        if (response.data.state == 0) {
2107
+          this.$message.error(response.data.msg);
2108
+          return false;
2109
+        } else {
2110
+          let list = [];
2111
+            for (let b = 0; b < response.data.data.info.length; b++) {
2112
+              let item_name = "";
2113
+              let item_code = "";
2114
+              let price = "";
2115
+              let unit = "";
2116
+              let spec = "";
2117
+              let cnt = "";
2118
+
2119
+              if (
2120
+                response.data.data.info[b].advices.id == 0 &&
2121
+                response.data.data.info[b].project.id > 0
2122
+              ) {
2123
+
2124
+                if (response.data.data.info[b].project.type == 2){
2125
+                  item_name = response.data.data.info[b].project.project.project_name;
2126
+                  item_code = response.data.data.info[b].project.project.medical_code;
2127
+                  price = response.data.data.info[b].det_item_fee_sumamt;
2128
+                  unit = response.data.data.info[b].project.project.unit;
2129
+                  cnt=response.data.data.info[b].cnt;
2130
+
2131
+                }else{
2132
+
2133
+                  item_name = response.data.data.info[b].project.good_info.good_name;
2134
+                  item_code = response.data.data.info[b].project.good_info.medical_insurance_number;
2135
+                  price =response.data.data.info[b].det_item_fee_sumamt;
2136
+                  unit = response.data.data.info[b].project.good_info.packing_unit;
2137
+                  cnt=response.data.data.info[b].cnt;
2138
+
2139
+                }
2140
+
2141
+              } else if (
2142
+                response.data.data.info[b].advices.id > 0 &&
2143
+                response.data.data.info[b].project.id == 0
2144
+              ) {
2145
+                item_name =response.data.data.info[b].advices.advice_name;
2146
+                item_code =
2147
+                  response.data.data.info[b].advices.drug.medical_insurance_number;
2148
+                price = response.data.data.info[b].det_item_fee_sumamt;
2149
+                unit = response.data.data.info[b].advices.prescribing_number_unit;
2150
+                spec =response.data.data.info[b].advices.drug.dose +  response.data.data.info[b].advices.drug.dose_unit+"*" + response.data.data.info[b].advices.drug.min_number + response.data.data.info[b].advices.drug.min_unit+"/"+response.data.data.info[b].advices.drug.max_unit
2151
+                cnt=response.data.data.info[b].cnt;
2152
+
2153
+
2154
+              }
2155
+              let obj = {
2156
+                名称: item_name,
2157
+                总价: price,
2158
+                数量: cnt,
2159
+                规格: spec,
2160
+
2161
+              };
2162
+
2163
+              list.push(obj);
2164
+            }
2165
+          import("@/vendor/Export2Excel").then((excel) => {
2166
+            const tHeader = [
2167
+              "名称",
2168
+              "总价",
2169
+              "数量",
2170
+              "规格",
2171
+
2172
+            ];
2173
+            const filterVal = [
2174
+              "名称",
2175
+              "总价",
2176
+              "数量",
2177
+              "规格",
2178
+
2179
+            ];
2180
+            const data = this.formatJson(filterVal, list);
2181
+            excel.export_json_to_excel({
2182
+              header: tHeader,
2183
+              data,
2184
+              filename: "消费明细",
2185
+            });
2186
+          });
2187
+        }
2188
+      });
2189
+
2190
+
2191
+
1735 2192
     },
1736 2193
     GetGoodName(id) {
1737 2194
       switch (id) {
@@ -1928,47 +2385,40 @@ export default {
1928 2385
 
1929 2386
             } else if (order.his_patient.insuplc_admdvs == "440704"){
1930 2387
 
1931
-              insuplc_admdvs_name = "江区"
2388
+              insuplc_admdvs_name = "江区"
1932 2389
 
1933 2390
 
1934 2391
             } else if (order.his_patient.insuplc_admdvs == "440705"){
1935 2392
 
1936
-              insuplc_admdvs_name = "蓬江区"
2393
+              insuplc_admdvs_name = "新会区"
1937 2394
 
1938 2395
 
1939 2396
             }else if (order.his_patient.insuplc_admdvs == "440781"){
1940 2397
 
1941
-              insuplc_admdvs_name = "蓬江区"
1942
-
2398
+              insuplc_admdvs_name = "台山市"
1943 2399
 
1944 2400
             }else if (order.his_patient.insuplc_admdvs == "440783"){
1945
-
1946
-              insuplc_admdvs_name = "蓬江区"
1947
-
2401
+              insuplc_admdvs_name = "开平市"
1948 2402
 
1949 2403
             }else if (order.his_patient.insuplc_admdvs == "440784"){
1950
-
1951
-
2404
+              insuplc_admdvs_name = "鹤山市"
1952 2405
 
1953 2406
             }else if (order.his_patient.insuplc_admdvs == "440785"){
1954
-
1955
-
2407
+              insuplc_admdvs_name = "恩平市"
1956 2408
 
1957 2409
             }else if (order.his_patient.insuplc_admdvs == "440799"){
1958
-
1959
-
1960
-
2410
+              insuplc_admdvs_name = "市直"
1961 2411
             }
1962 2412
 
1963 2413
 
1964
-
1965 2414
             let obj = {
1966 2415
               就诊号: order.mdtrt_id,
1967 2416
               患者姓名: name,
1968 2417
               开处时间: time,
1969 2418
               险种类型: insutypeName,
1970 2419
               参保所属医保区划: order.his_patient.insuplc_admdvs,
1971
-              属地名称: order.his_patient.insuplc_admdvs,
2420
+              参保号:order.his_patient.id_card_no,
2421
+              属地名称: insuplc_admdvs_name,
1972 2422
               应收金额: order.medfee_sumamt,
1973 2423
               实收金额: order.medfee_sumamt,
1974 2424
               医保统筹金额: order.hifp_pay,
@@ -2002,6 +2452,9 @@ export default {
2002 2452
               "患者姓名",
2003 2453
               "开处时间",
2004 2454
               "险种类型",
2455
+              "参保所属医保区划",
2456
+              "参保号",
2457
+              "属地名称",
2005 2458
               "应收金额",
2006 2459
               "实收金额",
2007 2460
               "医保统筹金额",
@@ -2031,6 +2484,9 @@ export default {
2031 2484
               "患者姓名",
2032 2485
               "开处时间",
2033 2486
               "险种类型",
2487
+              "参保所属医保区划",
2488
+              "参保号",
2489
+              "属地名称",
2034 2490
               "应收金额",
2035 2491
               "实收金额",
2036 2492
               "医保统筹金额",
@@ -2132,6 +2588,7 @@ export default {
2132 2588
               price: month_prescriptions[i].project[a].price
2133 2589
 
2134 2590
             }
2591
+
2135 2592
             project_ids.push(obj)
2136 2593
             project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2137 2594
           }
@@ -2153,6 +2610,10 @@ export default {
2153 2610
             obj['code'] = drug_month_prescriptions.advices[a].id
2154 2611
             obj['unit'] = drug_month_prescriptions.advices[a].drug.min_unit
2155 2612
             obj['price'] = parseFloat(drug_month_prescriptions.advices[a].price)
2613
+            obj['id'] = drug_month_prescriptions.advices[a].id
2614
+            obj['type'] = 1
2615
+
2616
+
2156 2617
             count = count + drug_month_prescriptions.advices[a].prescribing_number
2157 2618
           }
2158 2619
         }
@@ -2171,17 +2632,20 @@ export default {
2171 2632
               obj['code'] = project_month_prescriptions.project[a].id
2172 2633
               obj['unit'] = project_month_prescriptions.project[a].project.unit
2173 2634
               obj['type'] = 2
2635
+              obj['id'] = project_month_prescriptions.project[a].id
2636
+
2174 2637
 
2175 2638
             } else if (project_month_prescriptions.project[a].type == 3) {
2176 2639
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
2177 2640
               obj['code'] = project_month_prescriptions.project[a].id
2178 2641
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
2179 2642
               obj['type'] = 3
2643
+              obj['id'] = project_month_prescriptions.project[a].id
2180 2644
 
2181 2645
             }
2182 2646
             count = count + parseFloat(project_month_prescriptions.project[a].count)
2183 2647
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
2184
-            obj['type'] = 1
2648
+            obj['type'] = 2
2185 2649
 
2186 2650
           }
2187 2651
         }

+ 739 - 0
src/xt_pages/outpatientDoctorStation/batch_print_template/batchPrintThree.vue View File

@@ -0,0 +1,739 @@
1
+<template>
2
+  <div>
3
+    <div id="prescriptionPrint1">
4
+      <div v-for="(i, index) in printData" :key="index">
5
+      <div v-for="(item, index) in i.prescriptions" :key="index">
6
+        <div
7
+          id="prescription-print"
8
+          class="prescription-print"
9
+          style="page-break-after: always"
10
+        >
11
+          <span v-if="org_id == 10138">
12
+            <img
13
+              src="https://kuyi.shengws.com/bailin/bltotle.jpg"
14
+              style="width: 100%"
15
+              alt=""
16
+            /></span>
17
+          <span v-if="org_id == 10278">
18
+            <img
19
+              src="https://kuyi.shengws.com/beierlog.png"
20
+              style="width: 100%"
21
+              alt=""
22
+            /></span>
23
+          <div class="printTitle">
24
+            处方笺
25
+            <span
26
+              v-if="item.med_type == '1111'"
27
+              style="margin-left: 50px; border: 1px solid #000"
28
+            >精一</span
29
+            >
30
+            <span
31
+              v-if="item.med_type == '1112'"
32
+              style="margin-left: 50px; border: 1px solid #000"
33
+            >精二</span
34
+            >
35
+
36
+          </div>
37
+          <div style="display: flex;">
38
+            <div style="width: 33%; display: flex">
39
+              费别:
40
+              <span class="under_line">
41
+                <span v-if=" i.his_patient.id > 0">{{
42
+                    i.his_patient.balance_accounts_type == 1 ? '医保':'自费'
43
+                  }}</span>
44
+                   <span v-else>{{
45
+                     }}</span>
46
+            </span>
47
+            </div>
48
+            <div style="width: 20%;"></div>
49
+            <div style="width: 33%; display: flex">
50
+              医保类型:
51
+              <span class="under_line" v-if="i.reimbursement_way_id == 20">
52
+               {{'医保一档'}}
53
+              </span>
54
+              <span class="under_line" v-if="i.reimbursement_way_id == 21">
55
+               {{'医保二档'}}
56
+              </span>
57
+              <span class="under_line" v-if="i.reimbursement_way_id == 22">
58
+               {{'医保三档'}}
59
+              </span>
60
+              <span class="under_line" v-if="i.reimbursement_way_id != 20 && i.reimbursement_way_id != 21 && i.reimbursement_way_id != 22">
61
+              </span>
62
+            </div>
63
+          </div>
64
+          <div style="display: flex;margin-top: 10px;">
65
+            <div style="width: 40%; display: flex">
66
+              电脑号:<span class="under_line">{{
67
+                i.his_patient.id_card_no
68
+              }}</span>
69
+            </div>
70
+            <div style="width: 13%;"></div>
71
+            <div style="width: 33%; display: flex">
72
+              处方编号:<span class="under_line">{{
73
+                item.prescription_number.substring(
74
+                  item.prescription_number.length - 6
75
+                )
76
+              }}</span>
77
+            </div>
78
+          </div>
79
+
80
+          <div class="infoTitle">
81
+            <div>
82
+              姓名:{{
83
+                i.name
84
+                  ? i.name.indexOf("(") > -1
85
+                  ?i.name.substring(
86
+                    0,
87
+                    i.name.indexOf("(")
88
+                  )
89
+                  : i.name
90
+                  : ""
91
+              }}
92
+            </div>
93
+            <div>
94
+              性别:
95
+              <span v-if="i.gender == 1">男</span>
96
+              <span v-if="i.gender == 2">女</span>
97
+            </div>
98
+            <div>
99
+              年龄:{{
100
+                getNewAge(i.birthday)
101
+                  ? getNewAge(i.birthday)
102
+                  : ""
103
+              }}岁
104
+            </div>
105
+          </div>
106
+          <div class="infoMain">
107
+            <div style="margin-bottom: 10px; display: flex">
108
+              门诊号码:<span class="under_line" >{{ i.his_patient.id != 0 ? i.his_patient.number : "" }}</span>
109
+            </div>
110
+            <div style="margin-bottom: 10px; display: flex">
111
+              科别:<span class="under_line" > {{
112
+                i.info.id != 0
113
+                  ? getDepart(i.info.departments)
114
+                  : ""
115
+              }}</span>
116
+            </div>
117
+            <div style="margin-bottom: 10px; display: flex">
118
+              临床诊断:{{ getDiagnosis(i.info.diagnosis)}}
119
+            </div>
120
+            <div style="margin-bottom: 10px; display: flex">
121
+              自费药品签名:<span class="under_line"></span>
122
+            </div>
123
+            <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
124
+            <div style="margin-bottom: 10px; display: flex">
125
+              联系方式:<span class="under_line">{{ i.phone }}</span>
126
+            </div>
127
+            <div style="margin-bottom: 10px; display: flex">
128
+              开具日期:<span class="under_line">{{
129
+                getTime(item.pre_time)
130
+                  ? getTime(item.pre_time).split(" ")[0]
131
+                  : ""
132
+              }}</span>
133
+            </div>
134
+            <!-- <div>地址:{{item.patient.home_address}}</div> -->
135
+            <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
136
+          </div>
137
+          <div class="prescriptionBox">
138
+            <div class="Rp">Rp:</div>
139
+            <div
140
+              class="drugsBox"
141
+              v-for="(it, index) in item.advices"
142
+              :key="index"
143
+            >
144
+              <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
145
+              <div class="drugsOne">
146
+                <span style="font-weight: bold">{{ index + 1 + "." }}</span
147
+                >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
148
+                v-if="it.drug.min_unit != it.drug.dose_unit"
149
+              >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
150
+              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
151
+                  it.drug.max_unit
152
+                }}&nbsp;×&nbsp; {{ it.prescribing_number
153
+                }}{{ it.prescribing_number_unit }}
154
+              </div>
155
+              <div style="margin-left: 100px">
156
+                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
157
+                >&nbsp;&nbsp;<span
158
+              >{{ it.execution_frequency }}&nbsp;{{
159
+                  it.delivery_way
160
+                }}&nbsp;</span
161
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
162
+              </div>
163
+            </div>
164
+            <div
165
+              class="drugsBox"
166
+              v-for="(it, i) in item.additionalcharge"
167
+              :key="i"
168
+            >
169
+              <div class="drugsOne">
170
+                {{ it.item_name ? it.item_name : "" }}:&nbsp;{{
171
+                  it.price.toFixed(2)
172
+                }}元/{{ it.count }}次
173
+              </div>
174
+            </div>
175
+
176
+            <!-- <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
177
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{ it.type == 2 ? it.project.project_name : it.good_info.good_name }}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
178
+                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
179
+              </div>
180
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
181
+                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
182
+              </div> -->
183
+            <div style="text-align: center">(以下空白)</div>
184
+          </div>
185
+          <div style="display: flex">
186
+            <div>
187
+              医&nbsp;&nbsp;&nbsp;&nbsp;师:
188
+              <span
189
+                style="width: 100px; display: inline-block"
190
+                v-if="i.info.creator == 0"
191
+              >
192
+               {{ i.info.doctor ? i.info.doctor : "" }}
193
+              </span>
194
+              <img
195
+                style="height: 30px"
196
+                :src="setAdminUserES(i.info.creator)"
197
+                alt=""
198
+                srcset=""
199
+                v-else
200
+              />
201
+            </div>
202
+            <!-- <div>药品金额:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}</div> -->
203
+          </div>
204
+          <div style="display: flex">
205
+            <div style="display: flex">
206
+              审核药师:<span style="width: 100px" class="under_line"></span>
207
+            </div>
208
+            <div style="display: flex">
209
+              调剂药师:<span style="width: 100px" class="under_line"></span>
210
+            </div>
211
+            <div style="display: flex">
212
+              核对/发药药师:<span
213
+              style="width: 100px"
214
+              class="under_line"
215
+            ></span>
216
+            </div>
217
+          </div>
218
+          <div>
219
+            打印日期:{{ getTime(new Date()) ? getTime(new Date()) : "" }}
220
+          </div>
221
+          <div>*处方当日有效,特殊情况可适当延长,一般不超过3天</div>
222
+          <div>*药品属于特殊商品,非质量问题不允许退换</div>
223
+          <span v-if="org_id == 10138"
224
+          ><img
225
+            src="https://kuyi.shengws.com/bailin/blend.jpg"
226
+            style="width: 100%"
227
+            alt=""
228
+          /></span>
229
+          <span v-if="org_id == 10278"
230
+          ><img
231
+            src="https://kuyi.shengws.com/bailinbeier.png"
232
+            style="width: 100%"
233
+            alt=""
234
+          /></span>
235
+          <!-- <div class="doctorBox">
236
+              <p>医师:{{item.doctor?item.doctor:""}}</p>
237
+              <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
238
+          </div>
239
+          <div class="actionBar">
240
+
241
+                <p>审核:</p>
242
+                <p>配对:</p>
243
+                <p>核对:</p>
244
+                <p>发药:</p>
245
+                <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
246
+          </div> -->
247
+          <div style="page-break-after: always"></div>
248
+        </div>
249
+      </div>
250
+      </div>
251
+    </div>
252
+  </div>
253
+</template>
254
+<script>
255
+import { jsGetAge, uParseTime } from "@/utils/tools";
256
+import {
257
+  getAllDoctorList,
258
+  getPrescriptionPrint,
259
+  getHisPatientDetail,
260
+} from "@/api/project/project";
261
+import { getInitData } from "@/api/his/his";
262
+export default {
263
+  props: {
264
+    patient_id: Number,
265
+    record_date: String,
266
+    prescription_id: Number,
267
+    his_patient_id:Number,
268
+    ids: String,
269
+    newHisPatient:Object,
270
+    printData: Array,
271
+
272
+  },
273
+  data() {
274
+    return {
275
+      operatorMaps: {},
276
+      doctorList: [],
277
+      advicePrint: {},
278
+      patient: {},
279
+      tableData: [],
280
+      prescriptionInfo: [],
281
+      doc_name: "",
282
+      hisPatient: {},
283
+
284
+      department: [],
285
+      prescriptions: [],
286
+      projectList: [],
287
+      orgname: "",
288
+      diagnoses: [],
289
+      pageArr: [],
290
+      faber: {},
291
+      org_id: 0,
292
+      doctorList_1: [],
293
+    };
294
+  },
295
+  methods: {
296
+    // 电子签名
297
+    setAdminUserES(id) {
298
+      console.log(id)
299
+      console.log(this.operatorMaps)
300
+
301
+      if (id == 0) {
302
+        return "";
303
+      }
304
+      if (id in this.operatorMaps) {
305
+        return this.operatorMaps[id].url;
306
+      } else {
307
+        return "";
308
+      }
309
+    },
310
+
311
+    getNewAge(birthday) {
312
+      // var myDate = new Date(birthday * 1000)
313
+      // var month = myDate.getMonth() + 1
314
+      // var day = myDate.getDate()
315
+      // var age = new Date().getFullYear() - myDate.getFullYear()
316
+      // if (month < new Date().getMonth() + 1 || new Date().getMonth() + 1 == month && day <= new Date().getDate()) {
317
+      //   age++
318
+      // }
319
+      // return age
320
+      var nowTime = new Date().getTime();
321
+      //一年毫秒数(365 * 86400000 = 31536000000)
322
+      return Math.ceil((nowTime - birthday * 1000) / 31536000000);
323
+    },
324
+    getAge(patient) {
325
+      var thisLen = patient.id_card_no.length;
326
+      var birth = "";
327
+      if (thisLen == 15) {
328
+        birth = "19" + patient.id_card_no.substr(6, 6);
329
+      } else {
330
+        birth = patient.id_card_no.substr(6, 8);
331
+      }
332
+      var births =
333
+        birth.substr(0, 4) +
334
+        "-" +
335
+        birth.substr(4, 2) +
336
+        "-" +
337
+        birth.substr(6, 2);
338
+      return jsGetAge(births, "-");
339
+    },
340
+
341
+    getAllDoctorList() {
342
+      getAllDoctorList().then((response) => {
343
+        if (response.data.state == 1) {
344
+          var doctor = response.data.data.doctor;
345
+
346
+          this.doctorList = doctor;
347
+        }
348
+      });
349
+    },
350
+
351
+    getDoctor(id) {
352
+      var name = "";
353
+      for (let i = 0; i < this.doctorList.length; i++) {
354
+        if (id == this.doctorList[i].admin_user_id) {
355
+          name = this.doctorList[i].user_name;
356
+        }
357
+      }
358
+      return name;
359
+    },
360
+    getTime(value, temp) {
361
+      if (value != undefined) {
362
+        return uParseTime(value, temp);
363
+      }
364
+      return "";
365
+    },
366
+    getPrescriptionPrint() {
367
+      var params = {
368
+        // patient_id:this.patient_id,
369
+        // record_date:this.record_date,
370
+        // prescription_id:this.prescription_id,
371
+        patient_id: this.patient_id,
372
+        record_date: this.record_date,
373
+        prescription_id: this.prescription_id,
374
+        his_patient_id: this.his_patient_id,
375
+        ids: this.ids,
376
+        p_type: 2,
377
+      };
378
+      console.log("params", params);
379
+      getPrescriptionPrint(params).then((response) => {
380
+        if (response.data.state == 1) {
381
+          var advicePrint = response.data.data.advicePrint;
382
+          console.log("adviceprint9999", advicePrint);
383
+          this.advicePrint = advicePrint;
384
+
385
+          this.doctorList_1 = response.data.data.eles;
386
+          console.log(this.doctorList_1, "百霖医生列表");
387
+          if (this.doctorList_1.length > 0) {
388
+            var operatorsLen = this.doctorList_1.length;
389
+            for (var index = 0; index < operatorsLen; index++) {
390
+              this.$set(
391
+                this.operatorMaps,
392
+                this.doctorList_1[index].creator,
393
+                this.doctorList_1[index]
394
+              );
395
+            }
396
+          }
397
+
398
+          this.getPage();
399
+          this.prescriptions = advicePrint;
400
+          console.log("处方222222", this.prescriptions);
401
+          var hisPatient = response.data.data.hisPatient;
402
+          console.log("hisPatient", hisPatient);
403
+          this.hisPatient = hisPatient;
404
+          var projectlist = response.data.data.projectlist;
405
+          console.log("所有项目列表", projectlist);
406
+          this.projectList = projectlist;
407
+
408
+          let outputlist1Name = response.data.data.his.patient_info
409
+            ? JSON.parse(response.data.data.his.patient_info)
410
+            : {};
411
+          this.faber = outputlist1Name;
412
+        }
413
+      });
414
+    },
415
+    getHisPatientDetail() {
416
+      const params = {
417
+        patient_id: this.patient_id,
418
+      };
419
+      getHisPatientDetail(params).then((response) => {
420
+        if (response.data.state == 1) {
421
+          var hisPatient = response.data.data.hisPatient;
422
+          console.log("挂号病人", hisPatient);
423
+          this.hisPatient = hisPatient;
424
+        }
425
+      });
426
+    },
427
+    getInitData() {
428
+      getInitData().then((response) => {
429
+        if (response.data.state == 1) {
430
+          this.department = response.data.data.department;
431
+          this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
432
+          console.log("争端", this.diagnoses);
433
+        }
434
+      });
435
+    },
436
+    getDepart(id) {
437
+      var name = "";
438
+      for (let i = 0; i < this.department.length; i++) {
439
+        if (id == this.department[i].id) {
440
+          name = this.department[i].name;
441
+        }
442
+      }
443
+      return name;
444
+    },
445
+    getTotalOne(id) {
446
+      console.log("id", id);
447
+      var total = 0;
448
+      var addtotal = 0;
449
+      for (let i = 0; i < this.prescriptions.length; i++) {
450
+        if (id == this.prescriptions[i].id) {
451
+          if (this.prescriptions[i].project != null) {
452
+            for (let a = 0; a < this.prescriptions[i].project.length; a++) {
453
+              total =
454
+                total +
455
+                this.prescriptions[i].project[a].price *
456
+                this.prescriptions[i].project[a].count;
457
+            }
458
+          }
459
+
460
+          if (this.prescriptions[i].additionalcharge != null) {
461
+            for (
462
+              let a = 0;
463
+              a < this.prescriptions[i].additionalcharge.length;
464
+              a++
465
+            ) {
466
+              addtotal =
467
+                addtotal +
468
+                this.prescriptions[i].additionalcharge[a].price *
469
+                this.prescriptions[i].additionalcharge[a].count;
470
+            }
471
+          }
472
+          addtotal = Math.floor(addtotal * 100) / 100;
473
+        }
474
+      }
475
+
476
+      for (let i = 0; i < this.prescriptions.length; i++) {
477
+        if (id == this.prescriptions[i].id) {
478
+          if (this.prescriptions[i].advices != null) {
479
+            for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
480
+              total =
481
+                total +
482
+                this.prescriptions[i].advices[a].price *
483
+                this.prescriptions[i].advices[a].prescribing_number;
484
+            }
485
+          }
486
+
487
+          if (this.prescriptions[i].additionalcharge != null) {
488
+            for (
489
+              let a = 0;
490
+              a < this.prescriptions[i].additionalcharge.length;
491
+              a++
492
+            ) {
493
+              addtotal =
494
+                addtotal +
495
+                this.prescriptions[i].additionalcharge[a].price *
496
+                this.prescriptions[i].additionalcharge[a].count;
497
+            }
498
+          }
499
+          addtotal = Math.floor(addtotal * 100) / 100;
500
+        }
501
+      }
502
+
503
+      return total + addtotal;
504
+    },
505
+
506
+    getProjectName(id) {
507
+      var project_name = "";
508
+      for (let i = 0; i < this.projectList.length; i++) {
509
+        if (id == this.projectList[i].id) {
510
+          project_name = this.projectList[i].project_name;
511
+        }
512
+      }
513
+      return project_name;
514
+    },
515
+
516
+    getDiagnosis(ids) {
517
+      let newIds = ids.split(",").sort(function (a, b) {
518
+        return a - b;
519
+      });
520
+      var name = "";
521
+      let nameArr = [];
522
+      for (let i = 0; i < this.diagnoses.length; i++) {
523
+        // if(id == this.diagnoses[i].id){
524
+        //    name = this.diagnoses[i].class_name
525
+        // }
526
+
527
+        if (newIds.indexOf(this.diagnoses[i].id.toString()) > -1) {
528
+          // name += diagnoses[i].class_name + ' '
529
+          nameArr.push(this.diagnoses[i].class_name);
530
+        }
531
+      }
532
+      let newNameArr = [];
533
+      nameArr.map((item, index) => {
534
+        if (item == "尿毒症") {
535
+          newNameArr.push(item);
536
+          nameArr.splice(index, 1, "");
537
+        }
538
+      });
539
+      newNameArr.push(...nameArr);
540
+      return newNameArr.join(" ");
541
+    },
542
+    compare(property) {
543
+      return function (a, b) {
544
+        var value1 = a[property];
545
+        var value2 = b[property];
546
+        return value1 - value2; //升序排序
547
+      };
548
+    },
549
+    getPage() {
550
+      this.page = 1;
551
+      this.pageArr = [];
552
+
553
+      this.advicePrint.map((item) => {
554
+        let arr = [];
555
+        item.pageArr = [];
556
+        if (item.advices.length <= 5) {
557
+          this.page = 1;
558
+          arr.push(item.advices.length);
559
+          item.pageArr.push(arr);
560
+        } else if (item.advices.length > 5) {
561
+          this.page = parseInt(item.advices.length / 5);
562
+          let num = item.advices.length % 5;
563
+          for (var i = 0; i < this.page; i++) {
564
+            item.pageArr.push([5]);
565
+          }
566
+          if (num != 0) {
567
+            item.pageArr.push([num]);
568
+          }
569
+        }
570
+      });
571
+      // console.log('this.pageArr',this.pageArr)
572
+    },
573
+    getName(list) {
574
+      console.log("list", list);
575
+      let new_list = [];
576
+      for (let i = 0; i < list.length; i++) {
577
+        if (list[i].aac031 == "1") {
578
+          new_list.push(list[i]);
579
+        }
580
+      }
581
+
582
+      switch (new_list[0].bcc334) {
583
+        case "A31001":
584
+          return "深圳医保1档";
585
+          break;
586
+        case "A31002":
587
+          return "深圳医保2档";
588
+
589
+          break;
590
+        case "A31003":
591
+          return "深圳医保3档";
592
+
593
+          break;
594
+        case "A31004":
595
+          return "二档(少儿)";
596
+
597
+          break;
598
+        case "A31005":
599
+          return "学生二档";
600
+
601
+          break;
602
+        case "A31006":
603
+          return "大学生二档";
604
+
605
+          break;
606
+        case "A32001":
607
+          return "在职公务员";
608
+          break;
609
+        case "A32002":
610
+          return "在职驻深公务员";
611
+
612
+          break;
613
+        case "A39301":
614
+          return "家属统筹医疗";
615
+
616
+          break;
617
+        case "A41001":
618
+          return "工伤在职";
619
+
620
+          break;
621
+        case "A51001":
622
+          return "生育在职";
623
+
624
+          break;
625
+        case "A52001":
626
+          return "生育医疗一档";
627
+
628
+          break;
629
+        case "A52002":
630
+          return "生育医疗一档";
631
+
632
+          break;
633
+        case "C31001":
634
+          return "一档医疗退休";
635
+
636
+          break;
637
+        case "C31002":
638
+          return "二档医疗退休";
639
+          break;
640
+      }
641
+    },
642
+  },
643
+  created() {
644
+    this.getPrescriptionPrint();
645
+    this.getAllDoctorList();
646
+    this.getInitData();
647
+
648
+    this.getHisPatientDetail();
649
+    var xtuser = this.$store.getters.xt_user;
650
+    this.orgname = xtuser.org.org_name;
651
+    this.org_id = this.$store.getters.xt_user.org.id;
652
+  },
653
+  watch: {
654
+    ids: function (val) {
655
+      console.log("val1111111111111111111111111111", val);
656
+      this.ids = val;
657
+      this.getPrescriptionPrint();
658
+    },
659
+  },
660
+};
661
+</script>
662
+
663
+
664
+<style lang="scss" scoped>
665
+.prescription-print {
666
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
667
+  0 0 60px rgba(0, 0, 0, 0.06) inset;
668
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
669
+  0 0 40px rgba(0, 0, 0, 0.06) inset;
670
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
671
+  margin-bottom: 20px;
672
+  padding: 20px 10px;
673
+}
674
+.printTitle {
675
+  font-size: 22px;
676
+  text-align: center;
677
+  font-weight: bold;
678
+  margin-bottom: 10px;
679
+}
680
+.infoTitle {
681
+  display: flex;
682
+  margin-top: 10px;
683
+  line-height: 24px;
684
+}
685
+.infoTitle div {
686
+  width: 200px;
687
+}
688
+.infoMain {
689
+  display: flex;
690
+  flex-wrap: wrap;
691
+  margin-top: 10px;
692
+}
693
+.infoMain div {
694
+  width: 50%;
695
+  line-height: 24px;
696
+}
697
+.prescriptionBox {
698
+  padding: 0 10px;
699
+  min-height: 400px;
700
+}
701
+.Rp {
702
+  font-size: 22px;
703
+  font-weight: bold;
704
+}
705
+.drugsBox {
706
+  padding-left: 40px;
707
+  margin-bottom: 10px;
708
+}
709
+.drugsBox div {
710
+  line-height: 20px;
711
+}
712
+.drugsOne {
713
+  line-height: 24px;
714
+}
715
+.drugsOne span {
716
+  margin-right: 20px;
717
+}
718
+.doctorBox {
719
+  display: flex;
720
+  justify-content: space-between;
721
+  padding: 0 10px;
722
+  line-height: 24px;
723
+  border-bottom: 2px solid #000;
724
+}
725
+.actionBar {
726
+  display: flex;
727
+  justify-content: space-between;
728
+  line-height: 24px;
729
+  padding: 0 10px;
730
+}
731
+.actionBar p {
732
+  width: 150px;
733
+}
734
+.under_line {
735
+  display: inline-block;
736
+  border-bottom: 1px solid #000;
737
+  flex: 1;
738
+}
739
+</style>

+ 8 - 3
src/xt_pages/outpatientDoctorStation/batch_print_template/index.vue View File

@@ -13,14 +13,16 @@
13 13
       </template> -->
14 14
 
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <div v-if="org_id != 10138 && org_id != 10278">
16
+      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 0">
17 17
         <printOne v-if="org_id != 10215" :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18 18
 <!--        <batch-print-two v-if="org_id == 10088 || org_id == 0" :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></batch-print-two>-->
19 19
 <!--        <print-six v-if="org_id == 10088 || org_id == 0" :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></print-six>-->
20 20
 <!--        <printFour v-if="org_id == 10088 || org_id == 0"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>-->
21 21
 <!--        <printFive v-if="org_id == 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>-->
22 22
       </div>
23
-
23
+      <div v-else>
24
+        <batch-print-three  :printData="printData"  :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></batch-print-three>
25
+      </div>
24 26
     </div>
25 27
   </div>
26 28
 </template>
@@ -40,13 +42,16 @@ import printFour from "./batchPrintTwo"
40 42
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
41 43
 import PrintSix from '../template/printSix'
42 44
 import BatchPrintTwo from './batchPrintTwo'
45
+import BatchPrintThree from './batchPrintThree'
46
+
43 47
 export default {
44 48
   name: "dialysisPrintOrder",
45 49
   components: {
46 50
     BatchPrintTwo,
47 51
     PrintSix,
48 52
     BreadCrumb,
49
-    printOne
53
+    printOne,
54
+    BatchPrintThree
50 55
   },
51 56
   props:{
52 57
     paramsObj:Object,

+ 5 - 1
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/index.vue View File

@@ -15,6 +15,7 @@
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16 16
         <printOne v-if="org_id != 10138 && org_id != 10278 && org_id != 0" :printData="printData" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17 17
 <!--        <printTwo v-else :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>-->
18
+        <treat-batch-print v-if="org_id == 10138 || org_id == 10278 || org_id == 0"   :printData="printData" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></treat-batch-print>
18 19
       </div>
19 20
   </div>
20 21
 </template>
@@ -32,9 +33,11 @@ import print from "print-js";
32 33
 import printOne from "./printOne"
33 34
 // import printTwo from "./printTwo"
34 35
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
36
+import TreatBatchPrint from "./treatBatchPrint";
35 37
 export default {
36 38
   name: "dialysisPrintOrder",
37 39
   components: {
40
+    TreatBatchPrint,
38 41
     BreadCrumb,
39 42
     printOne
40 43
   },
@@ -48,6 +51,7 @@ export default {
48 51
         { path: false, name: '门诊医生站' },
49 52
         { path: false, name: '打印' }
50 53
       ],
54
+      org_id:"",
51 55
       record_date:"",
52 56
       patientTableData:[],
53 57
       advicePrint:[],
@@ -170,7 +174,7 @@ export default {
170 174
   },
171 175
 
172 176
   created() {
173
-    // this.org_id = this.$store.getters.xt_user.org_id
177
+    this.org_id = this.$store.getters.xt_user.org_id
174 178
     // this.getAllDoctorList()
175 179
     // var record_date = this.paramsObj.record_date
176 180
     // this.record_date = record_date

+ 799 - 0
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/treatBatchPrint.vue View File

@@ -0,0 +1,799 @@
1
+<template>
2
+  <div id="prescriptionPrint2">
3
+    <div v-for="(i,index) in printData">
4
+
5
+    <div
6
+      id="prescription-print"
7
+      class="prescription-print"
8
+      v-for="(item,index) in i.prescriptions"
9
+      :key="index"
10
+
11
+    >
12
+
13
+      <span v-if="org_id == 10138">
14
+        <img
15
+          src="https://kuyi.shengws.com/bailin/bltotle.jpg"
16
+          style="width: 100%"
17
+          alt=""
18
+        /></span>
19
+      <span v-if="org_id == 10278">
20
+        <img
21
+          src="https://kuyi.shengws.com/beierlog.png"
22
+          style="width: 100%"
23
+          alt=""
24
+        /></span>
25
+      <div class="printTitle">
26
+        治疗单
27
+        <span
28
+          v-if="item.med_type == '1111'"
29
+          style="margin-left: 50px; border: 1px solid #000"
30
+        >精一</span
31
+        >
32
+        <span
33
+          v-if="item.med_type == '1112'"
34
+          style="margin-left: 50px; border: 1px solid #000"
35
+        >精二</span>
36
+      </div>
37
+      <div style="display: flex">
38
+        <div style="width: 33%; display: flex">
39
+          费别:
40
+          <span class="under_line">
41
+                <span v-if="i.his_patient.id > 0">{{
42
+                    i.his_patient.balance_accounts_type == 1 ? '医保':'自费'
43
+                  }}</span>
44
+                   <span v-else>{{
45
+                     }}</span>
46
+            </span>
47
+        </div>
48
+        <div style="width: 33%; display: flex">
49
+          电脑号:  <span class="under_line">
50
+                <span>{{
51
+                    i.his_patient.id_card_no
52
+                  }}</span>
53
+            </span>
54
+        </div>
55
+        <div style="width: 33%; display: flex">
56
+          处方编号:<span class="under_line">{{
57
+            item.prescription_number.substring(
58
+              item.prescription_number.length - 6
59
+            )
60
+          }}</span>
61
+        </div>
62
+      </div>
63
+
64
+      <div class="infoTitle">
65
+        <div>
66
+          姓名:{{
67
+            i.name
68
+              ? i.name.indexOf("(") > -1
69
+              ?i.name.substring(
70
+                0,
71
+                i.name.indexOf("(")
72
+              )
73
+              : i.name
74
+              : ""
75
+          }}
76
+        </div>
77
+        <div>
78
+          性别:
79
+          <span v-if="i.gender == 1">男</span>
80
+          <span v-if="i.gender == 2">女</span>
81
+        </div>
82
+        <div>
83
+          年龄:{{
84
+            getNewAge(i.birthday)
85
+              ? getNewAge(i.birthday)
86
+              : ""
87
+          }}岁
88
+        </div>
89
+      </div>
90
+      <div class="infoMain">
91
+        <div style="margin-bottom: 10px; display: flex">
92
+          门诊号码:<span class="under_line">{{ i.his_patient.id != 0 ? i.his_patient.number : "" }}</span>
93
+        </div>
94
+        <div style="margin-bottom: 10px; display: flex">
95
+          科别:<span class="under_line">{{
96
+            i.info.id != 0
97
+              ? getDepart(i.info.departments)
98
+              : ""
99
+          }}</span>
100
+        </div>
101
+        <div style="margin-bottom: 10px; display: flex">
102
+          临床诊断:{{ getDiagnosis(i.info.diagnosis) }}
103
+        </div>
104
+        <div style="margin-bottom: 10px; display: flex">
105
+          自费药品签名:<span class="under_line"></span>
106
+        </div>
107
+        <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
108
+        <div style="margin-bottom: 10px; display: flex">
109
+          联系方式:<span class="under_line">{{ i.phone }}</span>
110
+        </div>
111
+        <div style="margin-bottom: 10px; display: flex">
112
+          开具日期:<span class="under_line">{{
113
+            getTime(item.pre_time) ? getTime(item.pre_time).split(" ")[0] : ""
114
+          }}</span>
115
+        </div>
116
+        <!-- <div>地址:{{item.patient.home_address}}</div> -->
117
+        <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
118
+      </div>
119
+
120
+      <!-- <div class="prescriptionBox">
121
+            <table style="width:100%;text-align:center;line-height:25px;">
122
+                <tr>
123
+                    <td>序号</td>
124
+                    <td>项目名称</td>
125
+                    <td>数量</td>
126
+                    <td>单位</td>
127
+                    <td>单价</td>
128
+                    <td>部位</td>
129
+                    <td>备注</td>
130
+                    <td>天数</td>
131
+                </tr>
132
+                <tr v-for="(it,index) in item.project" :key="index">
133
+                    <td>{{index+1}}</td>
134
+                    <td>{{it.type == 2 ?getProjectName(it.project_id):it.good_info.good_name}}</td>
135
+                    <td>{{it.single_dose}}</td>
136
+                    <td>{{getUnit(it.unit)}}</td>
137
+                    <td>{{it.price}}</td>
138
+                    <td></td>
139
+                    <td>{{it.remark}}</td>
140
+                    <td>{{it.day}}</td>
141
+
142
+                </tr>
143
+
144
+                <tr v-for="(it,index) in item.advices" :key="index">
145
+                    <td>{{index+1}}</td>
146
+                    <td>{{it.advice_name?it.advice_name:''}}</td>
147
+                    <td>{{it.single_dose?it.single_dose:''}}</td>
148
+                    <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
149
+                    <td>{{it.price}}</td>
150
+                    <td></td>
151
+                    <td>{{it.remark}}</td>
152
+                    <td>{{it.day}}</td>
153
+
154
+                </tr>
155
+            </table>
156
+        </div> -->
157
+      <div class="prescriptionBox">
158
+        <div class="Rp">Rp:</div>
159
+        <!-- <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
160
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
161
+              </div> -->
162
+        <div class="drugsBox" v-for="(it, index) in item.project" :key="index">
163
+          <div class="drugsOne" v-if="(item.type == 2 && item.project.cost_classify != 3) || item.type ==3">
164
+            <span style="font-weight: bold">{{ index + 1 + "." }}</span
165
+            >{{
166
+              it.type == 2 ? it.project.project_name : it.good_info.good_name
167
+            }}&nbsp;&nbsp;×&nbsp; {{ it.count }}{{ unit }}
168
+          </div>
169
+        </div>
170
+        <div style="text-align: center">(以下空白)</div>
171
+      </div>
172
+      <div style="display: flex">
173
+        <div>
174
+          医&nbsp;&nbsp;&nbsp;&nbsp;师:
175
+          <span
176
+            style="width: 100px; display: inline-block"
177
+            v-if="i.info.creator == 0"
178
+          >
179
+            {{ i.info.doctor ? i.info.doctor : "" }}
180
+
181
+          </span>
182
+
183
+          <img
184
+            style="height: 30px"
185
+            :src="setAdminUserES(item.creator)"
186
+            alt=""
187
+            srcset=""
188
+            v-else
189
+          />
190
+        </div>
191
+        <!-- <div>药品金额:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}</div> -->
192
+      </div>
193
+      <div style="display: flex">
194
+        <div style="display: flex">核对护士:</div>
195
+      </div>
196
+      <div style="display: flex">
197
+        打印时间:<span style="border-bottom: 1px solid #000">{{
198
+          getTime(new Date()) ? getTime(new Date()) : ""
199
+        }}</span>
200
+      </div>
201
+      <span v-if="org_id == 10138"
202
+      ><img
203
+        src="https://kuyi.shengws.com/bailin/blend.jpg"
204
+        style="width: 100%"
205
+        alt=""
206
+      /></span>
207
+      <span v-if="org_id == 10278"
208
+      ><img
209
+        src="https://kuyi.shengws.com/bailinbeier.png"
210
+        style="width: 100%"
211
+        alt=""
212
+      /></span>
213
+      <div style="page-break-after: always"></div>
214
+
215
+    </div>
216
+
217
+    <!-- <div id='prescriptionPrint'>
218
+
219
+        <div v-for="(item,index) in advicePrint" :key="index">
220
+            <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
221
+                <div style="display:flex;justify-content: space-between;font-weight:bold;">
222
+                    <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
223
+                        <span>费别</span>
224
+                        <span>自费</span>
225
+                        <span>公费</span>
226
+                        <span>保险</span>
227
+                        <span>其他</span>
228
+                    </div>
229
+                    <div>就诊日期:{{getTime(item.ctime)}}</div>
230
+                </div>
231
+
232
+                <div class="printTitle">血液透析中心</div>
233
+
234
+                <div class="printTitle">处方、治疗单</div>
235
+
236
+                <div class="infoTitle">
237
+                    <div>门诊编号:</div>
238
+                    <div>电脑号:</div>
239
+                </div>
240
+
241
+                <div class="infoMain">
242
+                    <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
243
+                    <div style="margin-bottom: 10px;width:25%">性别:
244
+                        <span v-if="item.patient.gender == 1">男</span>
245
+                        <span v-if="item.patient.gender == 2">女</span>
246
+                    </div>
247
+                    <div style="margin-bottom: 10px;width:25%">年龄:
248
+                        <span>{{item.patient.age}}</span>
249
+                    </div>
250
+                    <div style="margin-bottom: 10px;width:25%">参保类型:</div>
251
+                    <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
252
+                    <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
253
+                    <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
254
+                </div>
255
+
256
+                <div class="prescriptionBox">
257
+                    <table style="width:100%;text-align:center;line-height:25px;">
258
+                        <tr>
259
+                            <td>序号</td>
260
+                            <td>项目名称</td>
261
+                            <td>数量</td>
262
+                            <td>单位</td>
263
+                            <td>单价</td>
264
+                            <td>部位</td>
265
+                            <td>备注</td>
266
+                            <td>天数</td>
267
+                        </tr>
268
+                        <tr v-for="(it,index) in item.project" :key="index">
269
+                            <td>{{index+1}}</td>
270
+                            <td>{{getProjectName(it.project_id)}}</td>
271
+                            <td>{{it.single_dose}}</td>
272
+                            <td>{{getUnit(it.unit)}}</td>
273
+                            <td>{{it.price}}</td>
274
+                            <td></td>
275
+                            <td>{{it.remark}}</td>
276
+                            <td>{{it.day}}</td>
277
+
278
+                        </tr>
279
+                    </table>
280
+                </div>
281
+                <div class="infoTitle">
282
+                    <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
283
+                    <div>签章:</div>
284
+                </div>
285
+                <div class="actionBar">
286
+                    <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
287
+                    <div>费用:</div>
288
+                </div>
289
+                <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
290
+                    <tr>
291
+                        <td style="width:16%;">治疗时间</td>
292
+                        <td style="width:16%;"></td>
293
+                        <td style="width:16%;"></td>
294
+                        <td style="width:16%;"></td>
295
+                        <td style="width:16%;"></td>
296
+                        <td style="width:16%;"></td>
297
+                    </tr>
298
+                    <tr>
299
+                        <td style="width:16%;">医生签字</td>
300
+                        <td style="width:16%;"></td>
301
+                        <td style="width:16%;"></td>
302
+                        <td style="width:16%;"></td>
303
+                        <td style="width:16%;"></td>
304
+                        <td style="width:16%;"></td>
305
+                    </tr>
306
+                    <tr>
307
+                        <td style="width:16px;">患者签字</td>
308
+                        <td style="width:16px;"></td>
309
+                        <td style="width:16px;"></td>
310
+                        <td style="width:16px;"></td>
311
+                        <td style="width:16px;"></td>
312
+                        <td style="width:16px;"></td>
313
+                    </tr>
314
+                </table>
315
+            </div>
316
+
317
+        </div>
318
+
319
+    </div> -->
320
+    </div>
321
+  </div>
322
+</template>
323
+<script>
324
+import { jsGetAge, uParseTime } from "@/utils/tools";
325
+import { getAllDoctorList, getPrescriptionPrint } from "@/api/project/project";
326
+import { getInitData } from "@/api/his/his";
327
+export default {
328
+  props: {
329
+    patient_id: Number,
330
+    record_date: String,
331
+    prescription_id: Number,
332
+    ids: String,
333
+    newHisPatient:Object,
334
+    printData: Array
335
+
336
+  },
337
+  data() {
338
+    return {
339
+      doctorList_1: [],
340
+      operatorMaps: {},
341
+      doctorList: [],
342
+      advicePrint: {},
343
+      doc_name:"",
344
+      patient: {},
345
+      tableData: [],
346
+      prescriptionInfo: [],
347
+      projectList: [],
348
+      prescriptions: [],
349
+      settlement: [
350
+        { value: 1, label: "医保" },
351
+        { value: 2, label: "自费" },
352
+        { value: 3, label: "公费" },
353
+        { value: 4, label: "农保" },
354
+        { value: 5, label: "会员" },
355
+        { value: 6, label: "职工" },
356
+        { value: 7, label: "合同" },
357
+      ],
358
+      hisPatient: {},
359
+      diagnoses: [],
360
+      department: [],
361
+      faber: {},
362
+      org_id: 0,
363
+    };
364
+  },
365
+  methods: {
366
+    // 电子签名
367
+    setAdminUserES(id,name) {
368
+      if (id == 0) {
369
+        return "";
370
+      }
371
+      if (id in this.operatorMaps) {
372
+        return this.operatorMaps[id].url;
373
+      } else {
374
+        this.doc_name = name
375
+        return "";
376
+      }
377
+    },
378
+
379
+    getNewAge(birthday) {
380
+      // var myDate = new Date(birthday * 1000)
381
+      // var month = myDate.getMonth() + 1
382
+      // var day = myDate.getDate()
383
+      // var age = new Date().getFullYear() - myDate.getFullYear()
384
+      // if (month < new Date().getMonth() + 1 || new Date().getMonth() + 1 == month && day <= new Date().getDate()) {
385
+      //   age++
386
+      // }
387
+      // return age
388
+      var nowTime = new Date().getTime();
389
+      //一年毫秒数(365 * 86400000 = 31536000000)
390
+      return Math.ceil((nowTime - birthday * 1000) / 31536000000);
391
+    },
392
+    getAge(patient) {
393
+      var thisLen = patient.id_card_no.length;
394
+      var birth = "";
395
+      if (thisLen == 15) {
396
+        birth = "19" + patient.id_card_no.substr(6, 6);
397
+      } else {
398
+        birth = patient.id_card_no.substr(6, 8);
399
+      }
400
+      var births =
401
+        birth.substr(0, 4) +
402
+        "-" +
403
+        birth.substr(4, 2) +
404
+        "-" +
405
+        birth.substr(6, 2);
406
+      return jsGetAge(births, "-");
407
+    },
408
+    printThisPage() {
409
+      var ptime = Math.round(new Date().getTime() / 1000);
410
+      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
411
+
412
+      const style =
413
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}";
414
+      printJS({
415
+        printable: "prescription-print",
416
+        type: "html",
417
+        style: style,
418
+        scanStyles: false,
419
+      });
420
+    },
421
+    getDepart(id) {
422
+      var name = "";
423
+      for (let i = 0; i < this.department.length; i++) {
424
+        if (id == this.department[i].id) {
425
+          name = this.department[i].name;
426
+        }
427
+      }
428
+      return name;
429
+    },
430
+    getAllDoctorList() {
431
+      getAllDoctorList().then((response) => {
432
+        if (response.data.state == 1) {
433
+          var doctor = response.data.data.doctor;
434
+
435
+          this.doctorList = doctor;
436
+        }
437
+      });
438
+    },
439
+
440
+    getDoctor(id) {
441
+      var name = "";
442
+      for (let i = 0; i < this.doctorList.length; i++) {
443
+        if (id == this.doctorList[i].admin_user_id) {
444
+          name = this.doctorList[i].user_name;
445
+        }
446
+      }
447
+      return name;
448
+    },
449
+    getTime(value, temp) {
450
+      if (value != undefined) {
451
+        return uParseTime(value, temp);
452
+      }
453
+      return "";
454
+    },
455
+    getPrescriptionPrint() {
456
+      var params = {
457
+        patient_id: this.patient_id,
458
+        record_date: this.record_date,
459
+        prescription_id: this.prescription_id,
460
+        ids: this.ids,
461
+        p_type: 2,
462
+      };
463
+      console.log("999999", params);
464
+      getPrescriptionPrint(params).then((response) => {
465
+        if (response.data.state == 1) {
466
+          var advicePrint = response.data.data.advicePrint;
467
+          console.log("adviceprint", advicePrint);
468
+          this.advicePrint = advicePrint;
469
+          this.prescriptions = advicePrint;
470
+          var projectlist = response.data.data.projectlist;
471
+          console.log("所有项目列表", projectlist);
472
+          this.projectList = projectlist;
473
+          this.hisPatient = response.data.data.hisPatient;
474
+          this.doctorList_1 = response.data.data.eles;
475
+          console.log(this.doctorList_1, "医生列表");
476
+          if (this.doctorList_1.length > 0) {
477
+            var operatorsLen = this.doctorList_1.length;
478
+            for (var index = 0; index < operatorsLen; index++) {
479
+              this.$set(
480
+                this.operatorMaps,
481
+                this.doctorList_1[index].creator,
482
+                this.doctorList_1[index]
483
+              );
484
+            }
485
+          }
486
+          let projectPrint = [];
487
+          let total = 0;
488
+          this.advicePrint.map((item) => {
489
+            console.log(item.project.length);
490
+            if (item.project.length > 0) {
491
+              for (var i = item.project.length - 1; i >= 0; i--) {
492
+                if (item.project[i].type == 2) {
493
+                  if (item.project[i].project.cost_classify == 3) {
494
+                    item.project.splice(i, 1);
495
+                  }
496
+                }
497
+              }
498
+            }
499
+          });
500
+
501
+
502
+        }
503
+      });
504
+    },
505
+    getProjectName(id) {
506
+      var project_name = "";
507
+      for (let i = 0; i < this.projectList.length; i++) {
508
+        if (id == this.projectList[i].id) {
509
+          project_name = this.projectList[i].project_name;
510
+        }
511
+      }
512
+      return project_name;
513
+    },
514
+    getUnit(id) {
515
+      var unit = "";
516
+      for (let i = 0; i < this.projectList.length; i++) {
517
+        if (id == this.projectList[i].id) {
518
+          unit = this.projectList[i].unit;
519
+        }
520
+      }
521
+      return unit;
522
+    },
523
+
524
+    getTotalOne(id) {
525
+      var total = 0;
526
+      var addtotal = 0;
527
+      for (let i = 0; i < this.prescriptions.length; i++) {
528
+        if (id == this.prescriptions[i].id) {
529
+          if (this.prescriptions[i].project != null) {
530
+            for (let a = 0; a < this.prescriptions[i].project.length; a++) {
531
+              total =
532
+                total +
533
+                this.prescriptions[i].project[a].price *
534
+                this.prescriptions[i].project[a].count;
535
+            }
536
+          }
537
+
538
+          if (this.prescriptions[i].additionalcharge != null) {
539
+            for (
540
+              let a = 0;
541
+              a < this.prescriptions[i].additionalcharge.length;
542
+              a++
543
+            ) {
544
+              addtotal =
545
+                addtotal +
546
+                this.prescriptions[i].additionalcharge[a].price *
547
+                this.prescriptions[i].additionalcharge[a].count;
548
+            }
549
+          }
550
+          addtotal = Math.floor(addtotal * 100) / 100;
551
+        }
552
+      }
553
+
554
+      for (let i = 0; i < this.prescriptions.length; i++) {
555
+        if (id == this.prescriptions[i].id) {
556
+          if (this.prescriptions[i].advices != null) {
557
+            for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
558
+              total =
559
+                total +
560
+                this.prescriptions[i].advices[a].price *
561
+                this.prescriptions[i].advices[a].prescribing_number;
562
+            }
563
+          }
564
+
565
+          if (this.prescriptions[i].additionalcharge != null) {
566
+            for (
567
+              let a = 0;
568
+              a < this.prescriptions[i].additionalcharge.length;
569
+              a++
570
+            ) {
571
+              addtotal =
572
+                addtotal +
573
+                this.prescriptions[i].additionalcharge[a].price *
574
+                this.prescriptions[i].additionalcharge[a].count;
575
+            }
576
+          }
577
+          addtotal = Math.floor(addtotal * 100) / 100;
578
+        }
579
+      }
580
+
581
+      return total + addtotal;
582
+    },
583
+    getInitData() {
584
+      getInitData().then((response) => {
585
+        if (response.data.state == 1) {
586
+          this.department = response.data.data.department;
587
+          this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
588
+          console.log("争端", this.diagnoses);
589
+        }
590
+      });
591
+    },
592
+    getDiagnosis(ids) {
593
+      let newIds = ids.split(",").sort(function (a, b) {
594
+        return a - b;
595
+      });
596
+
597
+      var name = "";
598
+      let nameArr = [];
599
+      for (let i = 0; i < this.diagnoses.length; i++) {
600
+        // if(id == this.diagnoses[i].id){
601
+        //    name = this.diagnoses[i].class_name
602
+        // }
603
+
604
+        if (newIds.indexOf(this.diagnoses[i].id.toString()) > -1) {
605
+          // name += diagnoses[i].class_name + ' '
606
+          nameArr.push(this.diagnoses[i].class_name);
607
+        }
608
+      }
609
+      let newNameArr = [];
610
+      nameArr.map((item, index) => {
611
+        if (item == "尿毒症") {
612
+          newNameArr.push(item);
613
+          nameArr.splice(index, 1, "");
614
+        }
615
+      });
616
+      newNameArr.push(...nameArr);
617
+      return newNameArr.join(" ");
618
+    },
619
+    compare(property) {
620
+      return function (a, b) {
621
+        var value1 = a[property];
622
+        var value2 = b[property];
623
+        return value1 - value2; //升序排序
624
+      };
625
+    },
626
+    getName(list) {
627
+      console.log("list22", list);
628
+      let new_list = [];
629
+      for (let i = 0; i < list.length; i++) {
630
+        if (list[i].aac031 == "1") {
631
+          new_list.push(list[i]);
632
+        }
633
+      }
634
+
635
+      switch (new_list[0].bcc334) {
636
+        case "A31001":
637
+          return "深圳医保1档";
638
+          break;
639
+        case "A31002":
640
+          return "深圳医保2档";
641
+
642
+          break;
643
+        case "A31003":
644
+          return "深圳医保3档";
645
+
646
+          break;
647
+        case "A31004":
648
+          return "二档(少儿)";
649
+
650
+          break;
651
+        case "A31005":
652
+          return "学生二档";
653
+
654
+          break;
655
+        case "A31006":
656
+          return "大学生二档";
657
+
658
+          break;
659
+        case "A32001":
660
+          return "在职公务员";
661
+          break;
662
+        case "A32002":
663
+          return "在职驻深公务员";
664
+
665
+          break;
666
+        case "A39301":
667
+          return "家属统筹医疗";
668
+
669
+          break;
670
+        case "A41001":
671
+          return "工伤在职";
672
+
673
+          break;
674
+        case "A51001":
675
+          return "生育在职";
676
+
677
+          break;
678
+        case "A52001":
679
+          return "生育医疗一档";
680
+
681
+          break;
682
+        case "A52002":
683
+          return "生育医疗一档";
684
+
685
+          break;
686
+        case "C31001":
687
+          return "一档医疗退休";
688
+
689
+          break;
690
+        case "C31002":
691
+          return "二档医疗退休";
692
+          break;
693
+      }
694
+    },
695
+  },
696
+  created() {
697
+    this.getInitData();
698
+    this.getAllDoctorList();
699
+    this.getPrescriptionPrint();
700
+    var xtuser = this.$store.getters.xt_user;
701
+    this.orgname = xtuser.org.org_name;
702
+    this.org_id = this.$store.getters.xt_user.org.id;
703
+  },
704
+  watch: {
705
+    patient_id: function (val) {
706
+      console.log(
707
+        "101000010101010",
708
+        this.patient_id,
709
+        this.record_date,
710
+        this.prescription_id
711
+      );
712
+      //    this.getPrescriptionPrint()
713
+    },
714
+    ids: function (val) {
715
+      this.ids = val;
716
+      console.log("this.idsids", this.ids);
717
+      this.getPrescriptionPrint();
718
+    },
719
+  },
720
+};
721
+</script>
722
+
723
+
724
+<style lang="scss" scoped>
725
+.prescription-print {
726
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
727
+  0 0 60px rgba(0, 0, 0, 0.06) inset;
728
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
729
+  0 0 40px rgba(0, 0, 0, 0.06) inset;
730
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
731
+  margin-bottom: 20px;
732
+  padding: 20px 10px;
733
+}
734
+.printTitle {
735
+  font-size: 22px;
736
+  text-align: center;
737
+  font-weight: bold;
738
+  margin-bottom: 10px;
739
+}
740
+.infoTitle {
741
+  display: flex;
742
+  margin-top: 10px;
743
+  line-height: 24px;
744
+}
745
+.infoTitle div {
746
+  width: 200px;
747
+}
748
+.infoMain {
749
+  display: flex;
750
+  flex-wrap: wrap;
751
+  margin-top: 10px;
752
+}
753
+.infoMain div {
754
+  width: 50%;
755
+  line-height: 24px;
756
+}
757
+.prescriptionBox {
758
+  padding: 0 10px;
759
+  min-height: 400px;
760
+}
761
+.Rp {
762
+  font-size: 22px;
763
+  font-weight: bold;
764
+}
765
+.drugsBox {
766
+  padding-left: 40px;
767
+  margin-bottom: 10px;
768
+}
769
+.drugsBox div {
770
+  line-height: 20px;
771
+}
772
+.drugsOne {
773
+  line-height: 24px;
774
+}
775
+.drugsOne span {
776
+  margin-right: 20px;
777
+}
778
+.doctorBox {
779
+  display: flex;
780
+  justify-content: space-between;
781
+  padding: 0 10px;
782
+  line-height: 24px;
783
+  border-bottom: 2px solid #000;
784
+}
785
+.actionBar {
786
+  display: flex;
787
+  justify-content: space-between;
788
+  line-height: 24px;
789
+  padding: 0 10px;
790
+}
791
+.actionBar p {
792
+  width: 150px;
793
+}
794
+.under_line {
795
+  display: inline-block;
796
+  border-bottom: 1px solid #000;
797
+  flex: 1;
798
+}
799
+</style>

+ 6 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2242,6 +2242,10 @@
2242 2242
               this.$message.error('疾病类型不能为空')
2243 2243
               return
2244 2244
             }
2245
+            if (this.diagnose.length <= 0) {
2246
+              this.$message.error('诊断不能为空')
2247
+              return
2248
+            }
2245 2249
             for (let i = 0; i < this.prescriptions.length; i++) {
2246 2250
               for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2247 2251
                 if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
@@ -2612,7 +2616,7 @@
2612 2616
                           newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2613 2617
                         }
2614 2618
                       }
2615
-                      console.log("河滨232332newArr",newProjectArr)
2619
+                      
2616 2620
                       for(let i=0;i<newProjectArr.length;i++){
2617 2621
                         if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2618 2622
                               this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
@@ -2624,7 +2628,7 @@
2624 2628
 
2625 2629
                     }
2626 2630
                }
2627
-
2631
+               console.log("params23332232323232323------",data)
2628 2632
                 createHisPrescription(data, params).then(response => {
2629 2633
                   if (response.data.state == 1) {
2630 2634
                     this.$emit('change', this.patientInfo.id)

+ 75 - 8
src/xt_pages/outpatientDoctorStation/pastInquiries.vue View File

@@ -32,6 +32,23 @@
32 32
             placeholder="选择日期时间"
33 33
             align="right"
34 34
         ></el-date-picker>
35
+
36
+        <el-select
37
+          size="small"
38
+          v-model="sch_type"
39
+          placeholder="请选择"
40
+          style="width: 150px; margin-left: 10px"
41
+          @change="changeSchType"
42
+
43
+        >
44
+          <el-option
45
+            v-for="(item, index) in sch_types"
46
+            :key="index"
47
+            :label="item.label"
48
+            :value="item.value"
49
+          >
50
+          </el-option>
51
+        </el-select>
35 52
         <el-button
36 53
             size="small"
37 54
             style="margin: 0 10px"
@@ -222,7 +239,15 @@ export default {
222 239
       selecting_schs: [],
223 240
       printData: [],
224 241
       printType: 0,
225
-      org_id: ''
242
+      org_id: '',
243
+      sch_types: [
244
+        {value: 0, label: "全部"},
245
+        {value: 1, label: "上午"},
246
+        {value: 2, label: "下午"},
247
+        {value: 3, label: "晚上"},
248
+
249
+      ],
250
+      sch_type:0,
226 251
     }
227 252
   },
228 253
   methods: {
@@ -276,7 +301,7 @@ export default {
276 301
                   style: style,
277 302
                   scanStyles: false
278 303
                 })
279
-              } 
304
+              }
280 305
               // else {
281 306
               //   const style =
282 307
               //       '@media print {html {height: auto;margin: 0px;} #prescription-print{font-size:14px;border:1px solid white;margin-bottom:40px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 80%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 20px;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
@@ -334,7 +359,8 @@ export default {
334 359
         record_date: this.record_date,
335 360
         page: this.page,
336 361
         limit: this.limit,
337
-        keywords: this.keywords
362
+        keywords: this.keywords,
363
+        sch_type: this.sch_type,
338 364
       }
339 365
       getHisPrescriptionList(params).then((response) => {
340 366
         if (response.data.state == 0) {
@@ -375,6 +401,9 @@ export default {
375 401
         }
376 402
       }
377 403
       return name
404
+    },changeSchType(){
405
+      this.getHisPrescriptionList()
406
+
378 407
     },
379 408
     handleSelectionChange(val) {
380 409
       this.selecting_schs = val
@@ -400,11 +429,49 @@ export default {
400 429
 
401 430
           let new_patients = []
402 431
           if (type != 3) {
403
-            Arr.forEach((i) => {
404
-              if (i.prescriptions.length != 0) {
405
-                new_patients.push(i)
406
-              }
407
-            })
432
+
433
+            if (type == 1){
434
+              Arr.forEach((i) => {
435
+                if (i.prescriptions.length != 0) {
436
+                  new_patients.push(i)
437
+                }
438
+              })
439
+
440
+            }else {
441
+              Arr.forEach((i) => {
442
+                if (i.prescriptions.length != 0) {
443
+                  for(let b = 0; b < i.prescriptions.length;b++) {
444
+                    for (let c = 0; c < i.prescriptions[b].project.length; c++) {
445
+                      if(b == 1) {
446
+                        console.log(i.prescriptions[b].project.length)
447
+                        console.log(i.prescriptions[b].project[c].project.cost_classify)
448
+                        console.log(i.prescriptions[b].project[c].type)
449
+                      }
450
+                      if(i.prescriptions[b].project[c].type == 2 && i.prescriptions[b].project[c].project.cost_classify == 3){
451
+                        i.prescriptions[b].project.splice(c,1)
452
+                        c--
453
+                      }
454
+                    }
455
+                  }
456
+                  new_patients.push(i)
457
+                }
458
+              })
459
+              let new_patients_two = []
460
+
461
+              new_patients.forEach((i) => {
462
+                if (i.prescriptions.length != 0) {
463
+                  for(let b = 0; b < i.prescriptions.length;b++) {
464
+                    if(i.prescriptions[b].project.length == 0){
465
+                      i.prescriptions.splice(b,1)
466
+                      b--
467
+                    }
468
+                  }
469
+                  new_patients_two.push(i)
470
+                }
471
+              })
472
+              new_patients = new_patients_two
473
+            }
474
+
408 475
           } else {
409 476
             Arr.forEach((el) => {
410 477
               el.new_prescriptions.forEach((o) => {

File diff suppressed because it is too large
+ 15208 - 0
src/xt_pages/package-lock.json


+ 144 - 0
src/xt_pages/package.json View File

@@ -0,0 +1,144 @@
1
+{
2
+  "name": "vue-element-admin",
3
+  "version": "3.7.3",
4
+  "description": "A magical vue admin. Typical templates for enterprise applications. Newest development stack of vue. Lots of awesome features",
5
+  "author": "Pan <panfree23@gmail.com>",
6
+  "license": "MIT",
7
+  "scripts": {
8
+    "dev": "cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9
+    "build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js",
10
+    "build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js && npm run fixfont && npm run fiximg",
11
+    "build-cdn": "node build/build-cdn.js",
12
+    "lint": "eslint --ext .js,.vue src",
13
+    "test": "npm run lint",
14
+    "precommit": "lint-staged",
15
+    "build": "cross-env NODE_ENV=production env_config=sit node build/build.js && npm run fixfont && npm run fiximg",
16
+    "fixfont": "xcopy %cd%\\dist\\static\\fonts %cd%\\dist\\static\\css\\static\\fonts /s /y /d /e /i",
17
+    "fiximg": "xcopy %cd%\\dist\\static\\img %cd%\\dist\\static\\css\\static\\img /s /y /d /e /i"
18
+  },
19
+  "lint-staged": {
20
+    "src/**/*.{js,vue}": [
21
+      "eslint --fix",
22
+      "git add"
23
+    ]
24
+  },
25
+  "keywords": [
26
+    "vue",
27
+    "element-ui",
28
+    "admin",
29
+    "management-system",
30
+    "admin-template"
31
+  ],
32
+  "repository": {
33
+    "type": "git",
34
+    "url": "git+https://github.com/PanJiaChen/vue-element-admin.git"
35
+  },
36
+  "bugs": {
37
+    "url": "https://github.com/PanJiaChen/vue-element-admin/issues"
38
+  },
39
+  "dependencies": {
40
+    "@types/moment": "^2.13.0",
41
+    "ajv": "^6.5.3",
42
+    "axios": "0.17.1",
43
+    "clipboard": "^1.7.1",
44
+    "codemirror": "5.32.0",
45
+    "connect": "3.6.6",
46
+    "default-passive-events": "^2.0.0",
47
+    "driver.js": "0.5.2",
48
+    "dropzone": "5.2.0",
49
+    "echarts": "3.8.5",
50
+    "element-ui": "^2.13.2",
51
+    "file-saver": "^1.3.8",
52
+    "font-awesome": "4.7.0",
53
+    "js-cookie": "2.2.0",
54
+    "jsbarcode": "^3.11.5",
55
+    "jsonlint": "1.6.3",
56
+    "jszip": "3.1.5",
57
+    "mockjs": "1.0.1-beta3",
58
+    "moment": "^2.24.0",
59
+    "node-sass": "4.14.1",
60
+    "normalize.css": "7.0.0",
61
+    "nprogress": "0.2.0",
62
+    "print-js": "^1.0.50",
63
+    "qrcodejs2": "0.0.2",
64
+    "screenfull": "4.2.0",
65
+    "serve-static": "1.13.2",
66
+    "showdown": "1.8.5",
67
+    "simplemde": "1.11.2",
68
+    "sortablejs": "1.7.0",
69
+    "v-fit-columns": "^0.2.0",
70
+    "vue": "2.5.16",
71
+    "vue-clipboard": "0.0.1",
72
+    "vue-clipboard2": "^0.3.1",
73
+    "vue-count-to": "1.0.13",
74
+    "vue-i18n": "7.3.2",
75
+    "vue-multiselect": "2.0.8",
76
+    "vue-router": "3.0.1",
77
+    "vue-splitpane": "1.0.2",
78
+    "vuedraggable": "^2.16.0",
79
+    "vuex": "3.0.1",
80
+    "xlsx": "^0.11.19"
81
+  },
82
+  "devDependencies": {
83
+    "autoprefixer": "7.2.3",
84
+    "babel-core": "6.26.0",
85
+    "babel-eslint": "8.0.3",
86
+    "babel-helper-vue-jsx-merge-props": "2.0.3",
87
+    "babel-loader": "7.1.2",
88
+    "babel-plugin-dynamic-import-node": "^1.2.0",
89
+    "babel-plugin-syntax-jsx": "6.18.0",
90
+    "babel-plugin-transform-runtime": "6.23.0",
91
+    "babel-plugin-transform-vue-jsx": "3.5.0",
92
+    "babel-preset-env": "1.6.1",
93
+    "babel-preset-stage-2": "6.24.1",
94
+    "chalk": "2.3.0",
95
+    "copy-webpack-plugin": "4.3.0",
96
+    "cross-env": "^7.0.3",
97
+    "crypto-js": "^4.1.1",
98
+    "css-loader": "0.28.7",
99
+    "eslint": "4.13.1",
100
+    "eslint-friendly-formatter": "3.0.0",
101
+    "eslint-loader": "1.9.0",
102
+    "eslint-plugin-html": "4.0.1",
103
+    "extract-text-webpack-plugin": "3.0.2",
104
+    "file-loader": "1.1.5",
105
+    "friendly-errors-webpack-plugin": "1.6.1",
106
+    "html-webpack-plugin": "2.30.1",
107
+    "lint-staged": "7.2.0",
108
+    "node-notifier": "5.1.2",
109
+    "node-sass": "^4.14.1",
110
+    "optimize-css-assets-webpack-plugin": "3.2.0",
111
+    "ora": "1.3.0",
112
+    "portfinder": "1.0.13",
113
+    "postcss-import": "11.0.0",
114
+    "postcss-loader": "2.0.9",
115
+    "postcss-url": "7.3.0",
116
+    "qiniu-webpack-plugin": "^0.4.2",
117
+    "rimraf": "2.6.2",
118
+    "sass-loader": "^6.0.7",
119
+    "sass-resources-loader": "^1.3.4",
120
+    "script-loader": "^0.7.2",
121
+    "semver": "5.4.1",
122
+    "shelljs": "0.7.8",
123
+    "svg-sprite-loader": "3.5.2",
124
+    "uglifyjs-webpack-plugin": "1.1.3",
125
+    "url-loader": "0.6.2",
126
+    "vue-loader": "13.7.2",
127
+    "vue-style-loader": "3.0.3",
128
+    "vue-template-compiler": "2.5.16",
129
+    "webpack": "3.10.0",
130
+    "webpack-bundle-analyzer": "2.9.1",
131
+    "webpack-dev-server": "^2.9.7",
132
+    "webpack-merge": "4.1.1",
133
+    "write-json": "^3.0.1"
134
+  },
135
+  "engines": {
136
+    "node": ">= 4.0.0",
137
+    "npm": ">= 3.0.0"
138
+  },
139
+  "browserslist": [
140
+    "> 1%",
141
+    "last 2 versions",
142
+    "not ie <= 8"
143
+  ]
144
+}

+ 1 - 0
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue View File

@@ -626,6 +626,7 @@
626 626
           this.tableData[i].assessment_date = this.getTime(this.tableData[i].assessment_date,'{y}-{m}-{d}')
627 627
           this.tableData[i].name = this.tableData[i].patient.name
628 628
           this.tableData[i].over_pluse =  this.tableData[i].weight_before -  this.tableData[i].last_after_weight
629
+          this.tableData[i].weight_after = this.tableData[i].after.weight_after
629 630
         }
630 631
        
631 632
         const tHeader = ['日期', '姓名', '干体重','前次透后体重','透前体重','透后体重','体重增加']

+ 8 - 8
src/xt_pages/sign/lineUp.vue View File

@@ -44,9 +44,9 @@
44 44
                 <div class="lineUpMain">
45 45
                     <div class="lineUpMainLeft">
46 46
                         <div class="lineUpMainLeftTitle">
47
-                            <p style="width:12%">排队号</p>
47
+                            <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">排队号</p>
48 48
                             <p style="width:14%">姓名</p>
49
-                            <p style="width:14%">病例号</p>
49
+                            <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">病例号</p>
50 50
                             <p style="width:14%">床位号</p>
51 51
                             <p style="width:14%">治疗状态</p>
52 52
                             <p style="width:14%">上机时间</p>
@@ -54,14 +54,14 @@
54 54
                         </div>
55 55
                         <div class="lineUpList">
56 56
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
57
-                                <p style="width:12%">
57
+                                <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id!=10440">
58 58
                                     <span v-if="item.schedule_type == 1">上午</span>
59 59
                                     <span v-if="item.schedule_type == 2">下午</span>
60 60
                                     <span v-if="item.schedule_type == 3">晚上</span>
61 61
                                     {{ item.queue_no }}号
62 62
                                 </p>
63 63
                                 <p style="width:14%">{{ item.patient_name }}</p>
64
-                                <p style="width:14%">{{ item.dialysis_no }}</p>
64
+                                <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">{{ item.dialysis_no }}</p>
65 65
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
66 66
                                 <p style="width:14%">
67 67
                                     <span v-if="item.status == 1">待接诊</span>
@@ -221,9 +221,9 @@
221 221
                 <div class="lineUpMain">
222 222
                     <div class="lineUpMainLeft">
223 223
                         <div class="lineUpMainLeftTitle">
224
-                            <p style="width:12%">排队号</p>
224
+                            <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">排队号</p>
225 225
                             <p style="width:14%">姓名</p>
226
-                            <p style="width:14%">病例号</p>
226
+                            <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">病例号</p>
227 227
                             <p style="width:14%">床位号</p>
228 228
                             <p style="width:14%">治疗状态</p>
229 229
                             <p style="width:14%">上机时间</p>
@@ -231,14 +231,14 @@
231 231
                         </div>
232 232
                         <div class="lineUpList">
233 233
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
234
-                                <p style="width:12%">
234
+                                <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">
235 235
                                     <span v-if="item.schedule_type == 1">上午</span>
236 236
                                     <span v-if="item.schedule_type == 2">下午</span>
237 237
                                     <span v-if="item.schedule_type == 3">晚上</span>
238 238
                                     {{ item.queue_no }}号
239 239
                                 </p>
240 240
                                 <p style="width:14%">{{ item.patient_name }}</p>
241
-                                <p style="width:14%">{{ item.dialysis_no }}</p>
241
+                                <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">{{ item.dialysis_no }}</p>
242 242
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
243 243
                                 <p style="width:14%">
244 244
                                     <span v-if="item.status == 1">待接诊</span>

+ 1 - 0
src/xt_pages/stock/Dialog/goodTypeDialog.vue View File

@@ -17,6 +17,7 @@
17 17
                   <el-radio label="1">无</el-radio>
18 18
                   <el-radio label="2">透析器</el-radio>
19 19
                   <el-radio label="3">灌流器</el-radio>
20
+                  <el-radio label="4">滤过器</el-radio>
20 21
               </el-radio-group>
21 22
           </el-form-item>
22 23
         </el-col>

+ 31 - 21
src/xt_pages/stock/detail/stockOutDetail.vue View File

@@ -149,8 +149,13 @@
149 149
         </el-table-column>
150 150
         <el-table-column label="数量" align="center">
151 151
           <template slot-scope="scope">
152
-            <span v-if="orgId!=9583">{{ scope.row.count }}</span>
153
-            <span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
152
+            <span v-if="scope.row.is_total == 0">
153
+              <span v-if="orgId!=9583">{{ scope.row.count }}</span>
154
+              <span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
155
+            </span> 
156
+            <span v-if="scope.row.is_total == 1">
157
+              {{scope.row.count}}
158
+            </span>
154 159
           </template>
155 160
         </el-table-column>
156 161
         <el-table-column label="总价" align="center">
@@ -341,7 +346,15 @@ export default {
341 346
           this.wareOutList =  response.data.data.list
342 347
           console.log("党的20大长长",this.wareOutList)
343 348
           var total = 0
344
-
349
+          var objOne = {
350
+            warehouse_out_order_number: "合计",
351
+            is_total: 1,
352
+            total:total.toFixed(2),
353
+            WarehouseOut: {
354
+              warehouse_out_time: 0
355
+            },
356
+            count:0
357
+          }
345 358
           for (let i = 0; i < response.data.data.list.length; i++) {
346 359
             this.tableData.push(response.data.data.list[i])
347 360
 
@@ -349,16 +362,10 @@ export default {
349 362
             total += response.data.data.list[i].price * response.data.data.list[i].count
350 363
             obj["is_total"] = 0;
351 364
             this.cancelStockDate.push(obj);
352
-
365
+            objOne.count += response.data.data.list[i].count
353 366
           }
354
-          this.cancelStockDate.push({
355
-            warehouse_out_order_number: "合计",
356
-            is_total: 1,
357
-            total:total.toFixed(2),
358
-            WarehouseOut: {
359
-              warehouse_out_time: 0
360
-            }
361
-          });
367
+       
368
+          this.cancelStockDate.push(objOne);
362 369
 
363 370
         }
364 371
       });
@@ -399,6 +406,15 @@ export default {
399 406
           this.wareOutList =  response.data.data.list
400 407
           console.log("党的20大长长",this.wareOutList)
401 408
           var total = 0
409
+          var objOne = {
410
+            warehouse_out_order_number: "合计",
411
+            is_total: 1,
412
+            total: total.toFixed(2),
413
+            WarehouseOut: {
414
+              warehouse_out_time: 0
415
+            },
416
+            count:0,
417
+          }
402 418
           for (let i = 0; i < response.data.data.list.length; i++) {
403 419
             this.tableData.push(response.data.data.list[i])
404 420
             var obj = response.data.data.list[i];
@@ -408,21 +424,15 @@ export default {
408 424
             if(response.data.data.list[i].price == 0){
409 425
                total += response.data.data.list[i].GoodInfo.packing_price * response.data.data.list[i].count
410 426
             }
411
-
427
+            objOne.count +=response.data.data.list[i].count
412 428
             obj["is_total"] = 0;
429
+            
413 430
             this.cancelStockDate.push(obj);
414 431
           }
415 432
 
416 433
           this.tableDataList = response.data.data.list
417 434
 
418
-          this.cancelStockDate.push({
419
-            warehouse_out_order_number: "合计",
420
-            is_total: 1,
421
-            total: total.toFixed(2),
422
-            WarehouseOut: {
423
-              warehouse_out_time: 0
424
-            }
425
-          });
435
+          this.cancelStockDate.push(objOne);
426 436
 
427 437
         }
428 438
       });

+ 1 - 0
src/xt_pages/stock/drugs/components/drugQuery.vue View File

@@ -356,6 +356,7 @@ export default {
356 356
      goodList:[
357 357
       {id:1,name:"全部药品"},
358 358
       {id:2,name:"库存预警"},
359
+      {id:3,name:"库存为零"},
359 360
      ],
360 361
      houseList:[],
361 362
      storehouse_id:0,

+ 46 - 0
src/xt_pages/stock/drugs/drugStockFlow.vue View File

@@ -131,6 +131,21 @@
131 131
               {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
132 132
             
133 133
            </template>
134
+        </el-table-column>
135
+         <!-- <el-table-column prop="drug_name" label="剩余库存" align="center">
136
+           <template slot-scope="scope">
137
+             {{scope.row.over_count}}
138
+           </template>
139
+        </el-table-column> -->
140
+        <el-table-column prop="drug_name" label="使用人" align="center">
141
+           <template slot-scope="scope">
142
+             <span > {{getPatientName(scope.row.patient_id)}}</span>
143
+           </template>
144
+        </el-table-column>
145
+        <el-table-column prop="drug_name" label="剩余库存" align="center">
146
+           <template slot-scope="scope">
147
+             <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
148
+           </template>
134 149
         </el-table-column>
135 150
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
136 151
            <template slot-scope="scope">
@@ -257,6 +272,7 @@
257 272
         total:0,
258 273
         drug:{},
259 274
         houseList:[],
275
+        patientList:[],
260 276
       }
261 277
     },
262 278
     methods:{
@@ -509,6 +525,7 @@
509 525
             var drug = response.data.data.drug
510 526
            
511 527
             this.drug = drug
528
+            this.patientList = response.data.data.patientList
512 529
 
513 530
             this.houseList = response.data.data.houseList
514 531
           }
@@ -552,6 +569,35 @@
552 569
       }
553 570
       return storehouse_name
554 571
      },
572
+     getPatientName(id){
573
+       var name = ""
574
+       for(let i=0;i<this.patientList.length;i++){
575
+          if(id == this.patientList[i].id){
576
+              name = this.patientList[i].name
577
+          }
578
+       }
579
+       return name
580
+     },
581
+     getDrugCount(total,max_unit,min_unit,min_number){
582
+        var max_str = "";
583
+        var min_str = "";
584
+        if (total < min_number) {
585
+        min_str = total + min_unit;
586
+      }
587
+      if (total == 0) {
588
+        min_str = "";
589
+        max_str = "";
590
+      }
591
+      if (total >= min_number) {
592
+        if (parseInt(total / min_number) != 0) {
593
+          max_str = parseInt(total / min_number) + max_unit;
594
+        }
595
+        if (total % min_number != 0) {
596
+          min_str = (total % min_number) + min_unit;
597
+        }
598
+      }
599
+      return max_str + min_str;
600
+     }
555 601
     }
556 602
   }
557 603
 </script>

+ 41 - 14
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

@@ -252,39 +252,48 @@
252 252
       >
253 253
         <el-table-column label="药品名称" align="center">
254 254
           <template slot-scope="scope">
255
-            {{ scope.row.drug.drug_name }}
255
+            <span v-if="scope.row.is_total == 0">
256
+              {{ scope.row.drug.drug_name }}
257
+            </span> 
256 258
           </template>
257 259
         </el-table-column>
258 260
         <el-table-column label="药品类型" align="center">
259 261
           <template slot-scope="scope">
260
-            {{ getDrugType(scope.row.drug.drug_type) }}
262
+            <span v-if="scope.row.is_total == 0"> {{ getDrugType(scope.row.drug.drug_type) }}</span>
261 263
           </template>
262 264
         </el-table-column>
263 265
         <el-table-column label="规格&单位" align="center">
264 266
           <template slot-scope="scope">
265
-            {{ scope.row.drug.dose }}&nbsp;{{ scope.row.drug.dose_unit }}*{{
267
+            <span v-if="scope.row.is_total ==0">{{ scope.row.drug.dose }}&nbsp;{{ scope.row.drug.dose_unit }}*{{
266 268
               scope.row.drug.min_number
267 269
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
270
+            </span> 
268 271
           </template>
269 272
         </el-table-column>
270 273
         <el-table-column label="国家编码" align="center">
271 274
           <template slot-scope="scope">
272
-            {{ scope.row.drug.medical_insurance_number }}
275
+            <span v-if="scope.row.is_total == 0">
276
+               {{ scope.row.drug.medical_insurance_number }}
277
+            </span>
273 278
           </template>
274 279
         </el-table-column>
275 280
         <el-table-column label="批号" align="center">
276 281
           <template slot-scope="scope">
277
-            {{ scope.row.batch_number }}
282
+            <span v-if="scope.row.is_total == 0"> {{ scope.row.batch_number }}</span>
278 283
           </template>
279 284
         </el-table-column>
280 285
         <el-table-column label="仓库名称" align="center">
281 286
           <template slot-scope="scope">
282
-            {{ getHouseName(scope.row.storehouse_id) }}
287
+            <span v-if="scope.row.is_total == 0">
288
+               {{ getHouseName(scope.row.storehouse_id) }}
289
+            </span>
283 290
           </template>
284 291
         </el-table-column>
285 292
         <el-table-column label="入库数量" align="center">
286 293
           <template slot-scope="scope">
287
-            {{ scope.row.warehousing_count }}{{ scope.row.max_unit }}
294
+            <span v-if="scope.row.is_total == 0">
295
+               {{ scope.row.warehousing_count }}{{ scope.row.max_unit }}
296
+            </span>
288 297
           </template>
289 298
         </el-table-column>
290 299
         <!-- <el-table-column label="拆零零售价" align="center">
@@ -294,43 +303,56 @@
294 303
         </el-table-column> -->
295 304
         <el-table-column label="进货价" align="center">
296 305
           <template slot-scope="scope">
297
-            {{ scope.row.price }}
306
+            <span v-if="scope.row.is_total == 0">{{ scope.row.price }}</span> 
298 307
           </template>
299 308
         </el-table-column>
300 309
         <el-table-column label="总价" align="center">
301 310
           <template slot-scope="scope">
302 311
             <!-- {{scope.row.total_price}} -->
303
-            {{ (scope.row.warehousing_count * scope.row.price).toFixed(2) }}
312
+            <span v-if="scope.row.is_total == 0">{{ (scope.row.warehousing_count * scope.row.price).toFixed(2) }}</span> 
313
+            <span v-if="scope.row.is_total == 1">
314
+              {{(scope.row.total_count).toFixed(2)}}
315
+            </span>
304 316
           </template>
305 317
         </el-table-column>
306 318
         <el-table-column label="生产厂家" align="center">
307 319
           <template slot-scope="scope">
308
-            {{ getManufacturer(scope.row.manufacturer) }}
320
+            <span v-if="scope.row.is_total== 0">
321
+               {{ getManufacturer(scope.row.manufacturer) }}
322
+            </span>
309 323
           </template>
310 324
         </el-table-column>
311 325
         <el-table-column label="生产日期" align="center">
312 326
           <template slot-scope="scope">
313
-            {{ getTime(scope.row.product_date) }}
327
+           <span v-if="scope.row.is_total ==0">{{ getTime(scope.row.product_date) }} </span>  
314 328
           </template>
315 329
         </el-table-column>
316 330
         <el-table-column label="有效日期" align="center">
317 331
           <template slot-scope="scope">
332
+           <span v-if="scope.row.is_total == 0">
318 333
             {{ getTime(scope.row.expiry_date) }}
334
+            </span> 
319 335
           </template>
320 336
         </el-table-column>
321 337
         <el-table-column label="经销商" align="center">
322 338
           <template slot-scope="scope">
323
-            {{ getDealer(scope.row.dealer) }}
339
+            <span v-if="scope.row.is_total == 0">
340
+               {{ getDealer(scope.row.dealer) }}
341
+            </span>
324 342
           </template>
325 343
         </el-table-column>
326 344
         <el-table-column label="批准文号" align="center">
327 345
           <template slot-scope="scope">
328
-            {{ scope.row.number }}
346
+            <span v-if="scope.row.is_total == 0">
347
+               {{ scope.row.number }}
348
+            </span>
329 349
           </template>
330 350
         </el-table-column>
331 351
         <el-table-column label="备注" align="center">
332 352
           <template slot-scope="scope">
333
-            {{ scope.row.remark }}
353
+           <span v-if="scope.row.is_total == 0">
354
+             {{ scope.row.remark }}
355
+           </span>
334 356
           </template>
335 357
         </el-table-column>
336 358
       </el-table>
@@ -774,12 +796,17 @@ export default {
774 796
           this.$message.error(response.data.msg);
775 797
           return false;
776 798
         } else {
799
+          var obj = {total_count:0,is_total:1}
777 800
           for (let i = 0; i < response.data.data.info.length; i++) {
801
+            response.data.data.info[i].is_total = 0
778 802
             this.showOne = true;
779 803
             this.WarehouseInfo.warehouseInfoDate.push(
780 804
               response.data.data.info[i]
781 805
             );
806
+            obj.total_count += (response.data.data.info[i].warehousing_count *response.data.data.info[i].price)
782 807
           }
808
+          this.WarehouseInfo.warehouseInfoDate.push(obj)
809
+        
783 810
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
784 811
           this.getAllDrugList();
785 812
         }

+ 1 - 0
src/xt_pages/stock/query/goodNewQuery.vue View File

@@ -320,6 +320,7 @@ export default {
320 320
      goodList:[
321 321
       {id:1,name:"全部耗材"},
322 322
       {id:2,name:"库存预警"},
323
+      {id:3,name:"库存为零"},
323 324
      ],
324 325
      houseList:[],
325 326
      storehouse_id:0,

+ 21 - 0
src/xt_pages/stock/stockFlow.vue View File

@@ -131,6 +131,16 @@
131 131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
132 132
            </template>
133 133
         </el-table-column>
134
+        <el-table-column prop="drug_name" label="使用人" align="center">
135
+           <template slot-scope="scope">
136
+             <span > {{getPatientName(scope.row.patient_id)}}</span>
137
+           </template>
138
+        </el-table-column>
139
+        <el-table-column prop="drug_name" label="剩余库存" align="center">
140
+           <template slot-scope="scope">
141
+             <span > {{scope.row.over_count}}</span>
142
+           </template>
143
+        </el-table-column>
134 144
        </el-table>
135 145
        
136 146
       <el-pagination
@@ -236,6 +246,7 @@
236 246
         cancelCountList:[],
237 247
         good:{},
238 248
         houseList:[],
249
+        patientList:[]
239 250
       }
240 251
     },
241 252
     methods:{
@@ -443,6 +454,7 @@
443 454
            var manufacturerList = response.data.data.manufacturerList
444 455
            this.manufacturerList = manufacturerList
445 456
            this.houseList = response.data.data.houseList
457
+           this.patientList = response.data.data.patients
446 458
           }
447 459
        })
448 460
      },
@@ -469,6 +481,15 @@
469 481
          specification_name = this.good.specification_name
470 482
        }
471 483
        return specification_name
484
+     },
485
+     getPatientName(id){
486
+       var name = ""
487
+       for(let i=0;i<this.patientList.length;i++){
488
+          if(id == this.patientList[i].id){
489
+              name = this.patientList[i].name
490
+          }
491
+       }
492
+       return name
472 493
      }
473 494
     }
474 495
   }

+ 54 - 16
src/xt_pages/stock/stockInOrder.vue View File

@@ -239,38 +239,50 @@
239 239
         >
240 240
         <el-table-column label="耗材名称" align="center">
241 241
           <template slot-scope="scope">
242
+           <span v-if="scope.row.is_total == 0">
242 243
             {{ scope.row.GoodInfo.good_name }}
244
+            </span> 
243 245
           </template>
244 246
         </el-table-column>
245 247
         <el-table-column label="耗材类型" align="center">
246 248
           <template slot-scope="scope">
247
-            {{  getTypeName(scope.row.GoodInfo.good_type_id)}}
249
+            <span v-if="scope.row.is_total ==0">
250
+              {{ getTypeName(scope.row.GoodInfo.good_type_id)}}
251
+            </span> 
248 252
           </template>
249 253
         </el-table-column>
250 254
         <el-table-column label="规格&单位" align="center">
251 255
           <template slot-scope="scope">
252
-            {{ scope.row.GoodInfo.specification_name}} / {{scope.row.GoodInfo.packing_unit}}
256
+            <span v-if="scope.row.is_total == 0">
257
+               {{ scope.row.GoodInfo.specification_name}} / {{scope.row.GoodInfo.packing_unit}}
258
+            </span>
253 259
           </template>
254 260
         </el-table-column>
255 261
         <el-table-column label="国家编码" align="center">
256 262
           <template slot-scope="scope">
257
-            {{ scope.row.GoodInfo.social_security_directory_code}}
263
+            <span v-if="scope.row.is_total == 0">
264
+              {{ scope.row.GoodInfo.social_security_directory_code}}
265
+            </span> 
258 266
           </template>
259 267
         </el-table-column>
260 268
         <el-table-column label="批号" align="center">
261 269
           <template slot-scope="scope">
262
-            {{ scope.row.number}}
270
+            <span v-if="scope.row.is_total== 0">
271
+               {{ scope.row.number}}
272
+            </span>
263 273
           </template>
264 274
         </el-table-column>
265 275
          <el-table-column label="仓库名称" align="center">
266 276
           <template slot-scope="scope">
267
-            {{getHouseName(scope.row.storehouse_id)}}
277
+            <span v-if="scope.row.is_total == 0">
278
+              {{getHouseName(scope.row.storehouse_id)}}
279
+            </span> 
268 280
           </template>
269 281
         </el-table-column>
270 282
 
271 283
         <el-table-column label="入库数量" align="center">
272 284
           <template slot-scope="scope">
273
-            {{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}}
285
+           <span v-if="scope.row.is_total == 0">{{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}} </span> 
274 286
           </template>
275 287
         </el-table-column>
276 288
          <!-- <el-table-column label="零售价" align="center">
@@ -280,47 +292,66 @@
280 292
         </el-table-column> -->
281 293
         <el-table-column label="进货价" align="center">
282 294
           <template slot-scope="scope">
283
-            {{ scope.row.price}}
295
+            <span v-if="scope.row.is_total == 0">
296
+              {{ scope.row.price}}
297
+            </span> 
284 298
           </template>
285 299
         </el-table-column>
286 300
         <el-table-column label="总价" align="center">
287 301
           <template slot-scope="scope">
288
-            {{ (scope.row.warehousing_count * scope.row.price).toFixed(2)}}
302
+            <span v-if="scope.row.is_total==0">
303
+               {{ (scope.row.warehousing_count * scope.row.price).toFixed(2)}}
304
+            </span>
305
+            <span v-if="scope.row.is_total== 1">
306
+              {{(scope.row.total_count).toFixed(2)}}
307
+            </span>
289 308
           </template>
290 309
         </el-table-column>
291 310
         <el-table-column label="生产厂家" align="center">
292 311
           <template slot-scope="scope">
293
-            {{ getManufactuerName(scope.row.manufacturer)}}
312
+            <span v-if="scope.row.is_total == 0">
313
+              {{ getManufactuerName(scope.row.manufacturer)}}
314
+             </span> 
294 315
           </template>
295 316
         </el-table-column>
296 317
         <el-table-column label="生产日期" align="center">
297 318
           <template slot-scope="scope">
298
-            {{ getTime(scope.row.product_date,"{y}-{m}-{d}")}}
319
+           <span v-if="scope.row.is_total == 0">
320
+             {{ getTime(scope.row.product_date,"{y}-{m}-{d}")}}
321
+            </span> 
299 322
           </template>
300 323
         </el-table-column>
301 324
         <el-table-column label="有效期" align="center">
302 325
           <template slot-scope="scope">
303
-            {{ getTime(scope.row.expiry_date,"{y}-{m}-{d}")}}
326
+            <span v-if="scope.row.is_total == 0">
327
+               {{ getTime(scope.row.expiry_date,"{y}-{m}-{d}")}}
328
+            </span>
304 329
           </template>
305 330
         </el-table-column>
306 331
        <el-table-column label="经销商" align="center">
307 332
           <template slot-scope="scope">
308
-            {{ getDealerName(scope.row.dealer)}}
333
+          <span v-if="scope.row.is_total == 0">
334
+             {{ getDealerName(scope.row.dealer)}}
335
+            </span>  
309 336
           </template>
310 337
         </el-table-column>
311 338
        <el-table-column label="批准文号" align="center">
312 339
           <template slot-scope="scope">
313
-            {{ scope.row.license_number}}
340
+           <span v-if="scope.row.is_total ==0"> {{ scope.row.license_number}}</span>
314 341
           </template>
315 342
         </el-table-column>
316 343
         <el-table-column label="注册编码" align="center">
317 344
           <template slot-scope="scope">
318
-            {{ scope.row.register_number}}
345
+            <span v-if="scope.row.is_total == 0">
346
+               {{ scope.row.register_number}}
347
+            </span>
319 348
           </template>
320 349
         </el-table-column>
321 350
         <el-table-column label="备注" align="center">
322 351
           <template slot-scope="scope">
323
-            {{ scope.row.remark }}
352
+            <span v-if="scope.row.is_total == 0">
353
+               {{ scope.row.remark }}
354
+            </span>
324 355
           </template>
325 356
         </el-table-column>
326 357
         </el-table>
@@ -423,6 +454,7 @@
423 454
           <el-table-column label="总价" min-width="20" align="center">
424 455
             <template slot-scope="scope">
425 456
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
457
+             
426 458
             </template>
427 459
           </el-table-column>
428 460
 
@@ -1325,14 +1357,20 @@ export default {
1325 1357
           return false;
1326 1358
         } else {
1327 1359
           this.tableShow = true
1360
+          var  obj = {name:"总计",total_count:0,is_total:1}
1328 1361
           for (let i = 0; i < response.data.data.info.length; i++) {
1329 1362
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1330 1363
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1331 1364
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1332
-
1365
+           
1333 1366
             this.recordInfo.recordData.push(response.data.data.info[i]);
1367
+            console.log("tablelist+++==+",this.tableList)
1368
+            response.data.data.info[i].total_count = (response.data.data.info[i].warehousing_count * response.data.data.info[i].price).toFixed(2)
1369
+            response.data.data.info[i].is_total = 0
1370
+            obj.total_count += (response.data.data.info[i].warehousing_count * response.data.data.info[i].price)
1334 1371
             this.tableList.push(response.data.data.info[i])
1335 1372
           }
1373
+           this.tableList.push(obj)
1336 1374
            this.warehouse = response.data.data.warehousing;
1337 1375
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1338 1376
 

+ 7 - 6
src/xt_pages/user/components/PatientForm.vue View File

@@ -249,7 +249,7 @@
249 249
                 </el-form-item>
250 250
               </el-col>
251 251
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
252
-                <el-form-item label="家属电话 : " prop="homeTelephone">
252
+                <el-form-item label="家属电话 : " prop="homeTelephone"  class="is-required">
253 253
                   <el-input
254 254
                     v-model="form.homeTelephone"
255 255
                     maxlength="20"
@@ -435,7 +435,7 @@
435 435
               </el-col>
436 436
 
437 437
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
438
-                <el-form-item label="家庭住址 : " prop="homeAddress">
438
+                <el-form-item label="家庭住址 : " prop="homeAddress"  class="is-required">
439 439
                   <el-input v-model="form.homeAddress"></el-input>
440 440
                 </el-form-item>
441 441
               </el-col>
@@ -1358,10 +1358,10 @@ export default {
1358 1358
         {validator: checkage,trigger:'blur'}],
1359 1359
         firstDialysisDate: [
1360 1360
           { required: true, message: "请选择日期", trigger: "blur" }
1361
-        ]
1362
-
1363
-        // homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
1364
-        // homeAddress: [{ required: true, message: "请填写住址", trigger: "blur" }],
1361
+        ],
1362
+      
1363
+        homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
1364
+        homeAddress: [{ required: true, message: "请填写住址", trigger: "blur" }],
1365 1365
       },
1366 1366
       adminUserOptions:[],
1367 1367
     };
@@ -1719,6 +1719,7 @@ export default {
1719 1719
               this.form.gender = patietInfo.gender;
1720 1720
             }
1721 1721
             this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
1722
+            console.log("中共232323232322323我-------------",this.form.birth)
1722 1723
             this.form.nation = patietInfo.nation;
1723 1724
             this.form.native_place = patietInfo.native_place;
1724 1725
             this.form.height = patietInfo.height + "";

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

@@ -121,6 +121,10 @@ export default {
121 121
             {
122 122
               name: '1-5',
123 123
               label: '抢救记录'
124
+            },
125
+            {
126
+              name: '1-11',
127
+              label: '首次病程记录'
124 128
             }
125 129
           ]
126 130
         },
@@ -195,6 +199,8 @@ export default {
195 199
         this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
196 200
       }else if(name == '1-10'){
197 201
         this.$router.push({path:'/patient/patient/'+this.id+'/hospitalSummary'})
202
+      }else if(name == '1-11'){
203
+        this.$router.push({path:'/patient/patient/'+this.id+'/firstDisease'})
198 204
       }
199 205
     },
200 206
     changePatient(value) {
@@ -320,6 +326,10 @@ export default {
320 326
         this.$router.push({
321 327
           path: '/patients/patient/' + this.id + '/dryWeight'
322 328
         })
329
+      }else if(patientKey == '1-11'){
330
+       this.$router.push({
331
+          path: '/patients/patient/' + this.id + '/firstDisease'
332
+        })
323 333
       }
324 334
        else if (patientKey == '1-5') {
325 335
         this.$router.push({ path: '/patients/rescue?id=' + this.id })

+ 65 - 15
src/xt_pages/user/coursePrint.vue View File

@@ -60,7 +60,19 @@
60 60
 
61 61
               </div>
62 62
             </div>
63
+
64
+            <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;float:right" v-if="org_id == 0||org_id ==9671 || org_id == 10440">
65
+             医生签名:
66
+             <span v-if="setAdminUserES(item.recorder?item.recorder:item.recorder) == ''">
67
+                  {{getName(item.recorder)}}
68
+             </span>
69
+              <span v-else>
70
+                <img style="height:30px;" :src="setAdminUserES(item.recorder?item.recorder:item.recorder)" alt="" srcset="">
71
+              </span>
72
+            </div>
63 73
           </div>
74
+
75
+        
64 76
         </div>
65 77
       </div>
66 78
     </div>
@@ -91,6 +103,9 @@
91 103
         record:[],
92 104
         patient: {},
93 105
         org_id:0,
106
+        adminUserList:[],
107
+        operators:[],
108
+        operatorMaps: {},
94 109
       }
95 110
     },
96 111
     created() {
@@ -114,12 +129,22 @@
114 129
         if (resp.state == 1) {
115 130
           this.record = resp.data.record
116 131
 
117
-          // for(let i=0;i<this.record.length;i++){
118
-          //   this.record[i].content = this.record[i].content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
119
-          // }
120
-
121 132
           this.patient = resp.data.patient
122
-
133
+         
134
+          this.adminUserList = resp.data.adminUser
135
+          this.operators = resp.data.operators
136
+           console.log("GetCoursePrintData",this.operators)
137
+           if (this.operators.length > 0) {
138
+            var operatorsLen = this.operators.length
139
+            for (var index = 0; index < operatorsLen; index++) {
140
+              this.$set(
141
+                this.operatorMaps,
142
+                this.operators[index].creator,
143
+                this.operators[index]
144
+              )
145
+            }
146
+          }
147
+          console.log("operatorMaps",this.operatorMaps)
123 148
           this.loading = false
124 149
         } else {
125 150
           this.loading = false
@@ -131,20 +156,45 @@
131 156
     },
132 157
     methods: {
133 158
       printAction: function() {
134
-        const style = '@media print {.printP div{margin-bottom:5px;} .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; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;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: 20px;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 td {border: 1px solid;font-size: 16px;padding: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}'
135
-        printJS({
136
-          printable: 'print_content',
137
-          type: 'html',
138
-          documentTitle: '  ',
139
-          style: style,
140
-          scanStyles: false
141
-        })
142
-      }, getTime(value, temp) {
159
+      const style = '@media print {.printP div{margin-bottom:5px;} .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; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;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: 20px;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 td {border: 1px solid;font-size: 16px;padding: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}'
160
+      printJS({
161
+        printable: 'print_content',
162
+        type: 'html',
163
+        documentTitle: '  ',
164
+        style: style,
165
+        scanStyles: false
166
+      })
167
+    },
168
+      getTime(value, temp) {
143 169
         if (value != undefined) {
144 170
           return uParseTime(value, temp)
145 171
         }
146 172
         return ''
147
-      }
173
+      },
174
+      getName(admin_user_id){
175
+        var name = ""
176
+        for(let i=0;i<this.adminUserList.length;i++){
177
+          if(this.adminUserList[i].id == admin_user_id){
178
+            name = this.adminUserList[i].name
179
+          }
180
+        }
181
+        return name
182
+      },
183
+       setAdminUserES(id) {
184
+        console.log("id2323233232232333322==-",id)
185
+        console.log("operatorMaps----",this.operatorMaps)
186
+        if (id === 0) {
187
+          return ''
188
+        }
189
+        if (id in this.operatorMaps) {
190
+           console.log("----------",this.operatorMaps[id].url)
191
+          return this.operatorMaps[id].url
192
+         
193
+        } else {
194
+          return ''
195
+        }
196
+        
197
+       },
148 198
     }
149 199
   }
150 200
 </script>

+ 47 - 4
src/xt_pages/user/dialysisSolution.vue View File

@@ -226,6 +226,7 @@
226 226
         <el-row :gutter="20">
227 227
           <el-col :span="6"  v-if="isShows('置换液') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液:{{getDisplaceLiqui(current_solution.displace_liqui_part)}}</div></el-col>
228 228
           <el-col :span="6"  v-if="isShows('置换液总量') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液总量:{{current_solution.displace_liqui_value}}</div></el-col>
229
+           <el-col :span="6"  v-if="isShows('滤过器')"><div class="grid-content bg-purple">滤过器:{{current_solution.dialysis_strainer}}</div></el-col>
229 230
         </el-row>
230 231
         <el-row :gutter="20">
231 232
           <el-col :span="6"  v-if="isShows('吸氧')"><div class="grid-content bg-purple">吸氧:
@@ -512,12 +513,20 @@
512 513
             </el-form-item>
513 514
           </el-col>
514 515
 
515
-          <el-col :span="8" v-if="isShows('灌流器') && (addPlan.mode == 2 || addPlan.mode == 3 || addPlan.mode == 12 || addPlan.mode == 5)">
516
+          <el-col :span="8" v-if="isShows('灌流器')">
516 517
             <el-form-item label="灌流器:">
517 518
               <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
518 519
             </el-form-item>
519 520
           </el-col>
520 521
 
522
+
523
+
524
+          <el-col :span="8" v-if="isShows('滤过器')">
525
+            <el-form-item label="滤过器:">
526
+              <el-input v-model="dialysis_strainer" @focus="showInnerDialog('11')"></el-input>
527
+            </el-form-item>
528
+          </el-col>
529
+
521 530
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
522 531
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
523 532
               <el-input v-model="addPlan.bicarbonate"></el-input>
@@ -1074,6 +1083,7 @@
1074 1083
           epo_count:"",
1075 1084
           max_ultrafiltration_rate:"",
1076 1085
           amylaceum:"",
1086
+          dialysis_strainer:"",
1077 1087
         },
1078 1088
         childPlan: {
1079 1089
           mode: '',
@@ -1190,7 +1200,8 @@
1190 1200
           anticoagulant_weichi: '',
1191 1201
           anticoagulant_zongliang: '',
1192 1202
           anticoagulant_gaimingcheng: '',
1193
-          anticoagulant_gaijiliang: ''
1203
+          anticoagulant_gaijiliang: '',
1204
+          dialysis_strainer:"",
1194 1205
         },
1195 1206
         queryParams: {
1196 1207
           page: 1,
@@ -1202,6 +1213,8 @@
1202 1213
         dialyzers:[],
1203 1214
         dialysis_dialyszers:'',
1204 1215
         dialysis_irrigation:"",
1216
+        dialysis_strainer:"",
1217
+        dialysisStrainerList:[],
1205 1218
         plasmaSeparatorList:[],
1206 1219
         bilirubinAdsorptionColumn:[],
1207 1220
         oxygenList:[
@@ -1333,6 +1346,17 @@
1333 1346
             this.InnerDialogProps.selected = this.addPlan.puncture_needle
1334 1347
             this.InnerDialogProps.isShowTextArea = false
1335 1348
 
1349
+            break
1350
+           case '11':
1351
+            for(let i=0;i<this.dialysisStrainerList.length;i++){
1352
+              this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
1353
+            }
1354
+            this.InnerDialogProps.values = this.dialysisStrainerList
1355
+            this.InnerDialogProps.titles = '滤过器'
1356
+            this.InnerDialogProps.type = 'dialysis_strainer'
1357
+            this.InnerDialogProps.selected = this.dialysis_strainer
1358
+            this.InnerDialogProps.isShowTextArea = false
1359
+
1336 1360
             break
1337 1361
         }
1338 1362
       },
@@ -1358,6 +1382,9 @@
1358 1382
           case 'puncture_needle':
1359 1383
             this.addPlan.puncture_needle = val.value.join(',')
1360 1384
             break
1385
+          case 'dialysis_strainer':
1386
+             this.dialysis_strainer = val.value.join(',')
1387
+            break
1361 1388
         }
1362 1389
       },
1363 1390
       innerDialogCancle: function() {
@@ -1661,6 +1688,7 @@
1661 1688
             }
1662 1689
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1663 1690
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1691
+            this.addPlan.dialysis_strainer = this.dialysis_strainer
1664 1692
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1665 1693
             if(this.addPlan.mode!=2 && this.addPlan.mode!=5&&this.addPlan.mode!=12){
1666 1694
               this.addPlan.displace_liqui_part = 0
@@ -1727,6 +1755,7 @@
1727 1755
                 this.current_solution.epo_count = response.data.data.solution.epo_count
1728 1756
                 this.current_solution.max_ultrafiltration_rate = response.data.data.solution.max_ultrafiltration_rate
1729 1757
                 this.current_solution.remark = response.data.data.solution.remark
1758
+                this.current_solution.dialysis_strainer = response.data.data.dialysis_strainer
1730 1759
                 this.FindePatientDialysisLongSolutions()
1731 1760
                 return false
1732 1761
               }
@@ -1745,6 +1774,7 @@
1745 1774
             const mode = '1'
1746 1775
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1747 1776
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1777
+            this.addPlan.dialysis_strainer = this.dialysis_strainer
1748 1778
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1749 1779
             console.log("add",this.addPlan)
1750 1780
             createPatientDialysisSolution(
@@ -1796,7 +1826,7 @@
1796 1826
         this.getDialysisSolutionDetailList()
1797 1827
       },
1798 1828
       openEdit(index, row) {
1799
-
1829
+        console.log("row-------",row)
1800 1830
         this.current_index = index
1801 1831
         this.addPlan.id = row.id
1802 1832
         this.addPlan.mode = row.mode_id
@@ -1924,10 +1954,13 @@
1924 1954
         this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1925 1955
         this.dialysis_irrigation = row.dialysis_irrigation
1926 1956
         this.dialysis_dialyszers = row.dialysis_dialyszers
1957
+        this.dialysis_strainer = row.dialysis_strainer
1958
+        this.addPlan.dialysis_strainer = row.dialysis_strainer
1927 1959
         this.addPlan.oxygen_uptake = row.oxygen_uptake
1928 1960
         this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1929 1961
         this.addPlan.oxygen_flow = row.oxygen_flow
1930 1962
         this.addPlan.oxygen_time = row.oxygen_time
1963
+       
1931 1964
         if(row.oxygen_uptake == 1){
1932 1965
           this.oxygenShow = true
1933 1966
         }
@@ -2112,6 +2145,7 @@
2112 2145
             if(this.stockType.length >0 ){
2113 2146
               var arr = []
2114 2147
               var arrTwo = []
2148
+              var arrThree = []
2115 2149
               for(let i=0;i<this.stockType.length;i++){
2116 2150
                 if(this.stockType[i].stock_attribute == 2){
2117 2151
                   arr.push(this.stockType[i])
@@ -2119,9 +2153,13 @@
2119 2153
                 if(this.stockType[i].stock_attribute == 3){
2120 2154
                   arrTwo.push(this.stockType[i])
2121 2155
                 }
2156
+                 if(this.stockType[i].stock_attribute == 4){
2157
+                  arrThree.push(this.stockType[i])
2158
+                }
2122 2159
               }
2123 2160
               var dialyzator = []
2124 2161
               var irrigation = []
2162
+              var dialysisStrainer = []
2125 2163
               for(let i=0;i<arr.length;i++){
2126 2164
                 for(let j=0;j<arr[i].GoodInfo.length;j++){
2127 2165
                   dialyzator.push(arr[i].GoodInfo[j])
@@ -2129,7 +2167,12 @@
2129 2167
               }
2130 2168
               console.log("透析器",dialyzator)
2131 2169
               this.dialyzers = dialyzator
2132
-
2170
+              for(let i=0;i<arrThree.length;i++){
2171
+                for(let j=0;j<arrThree[i].GoodInfo.length;j++){
2172
+                  dialysisStrainer.push(arrThree[i].GoodInfo[j])
2173
+                }
2174
+              }
2175
+              this.dialysisStrainerList = dialysisStrainer
2133 2176
               for(let i=0;i<arrTwo.length;i++){
2134 2177
                 for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
2135 2178
                   irrigation.push(arrTwo[i].GoodInfo[j])

+ 18 - 1
src/xt_pages/user/doctorAdvice.vue View File

@@ -69,7 +69,20 @@
69 69
               v-for="item in adviceTypeArr"
70 70
               :key="item.value"
71 71
             >
72
+            <span v-if="item.value == 1">
73
+             <span v-if="(org_id == 9671 || org_id == 10440)">
74
+                长期医嘱模版
75
+             </span>
76
+
77
+             <span v-if="(org_id != 9671 && org_id != 10440)">
78
+                {{ item.label }}
79
+             </span>
80
+            </span>
81
+            <span v-if="item.value != 1">
72 82
               {{ item.label }}
83
+            </span>
84
+            
85
+            
73 86
             </li>
74 87
           </ul>
75 88
         </div>
@@ -153,7 +166,10 @@
153 166
           fixed
154 167
         >
155 168
           <template slot-scope="scope">
156
-            <span v-if="scope.row.advice_type == 1">长嘱</span>
169
+            <span v-if="scope.row.advice_type == 1">
170
+              <span v-if="org_id != 9671 && org_id != 10440">长嘱</span> 
171
+              <span v-if="org_id == 9671 || org_id == 10440">长期医嘱模版</span> 
172
+            </span>
157 173
             <span v-else-if="scope.row.advice_type == 3 || scope.row.advice_type == 2">临嘱</span>
158 174
             <span v-else-if="scope.row.advice_type == 4">普通医嘱</span>
159 175
             <span v-else></span>
@@ -560,6 +576,7 @@
560 576
                     v-for="item in adviceTypeOptions"
561 577
                   ></el-option>
562 578
                 </el-select>
579
+               
563 580
               </el-form-item>
564 581
             </el-col>
565 582
 

+ 871 - 0
src/xt_pages/user/firstDisease.vue View File

@@ -0,0 +1,871 @@
1
+<template>
2
+  <div class="patient-container">
3
+    <patient-sidebar :id="patient_id" defaultActive="1-11"></patient-sidebar>
4
+    <div v-loading="loading">
5
+      <div class="patient-app-container advice-container app-container">
6
+
7
+        <div>
8
+                    <span style="margin-left: 10px;float:right;">
9
+                        <el-button type="primary" icon="el-icon-circle-plus-outline" size="small"
10
+                                   @click="addAction">新增</el-button>
11
+
12
+                        <el-button type="primary" icon="el-icon-edit-outline" size="small"
13
+                                   @click="toEdit">修改</el-button>
14
+                      <el-button type="primary" icon="el-icon-printer" size="small"
15
+                                 @click="print">打印</el-button>
16
+                      <el-button size="small"  type="danger" @click="deleteAction">删除</el-button>
17
+                    </span>
18
+        </div>
19
+      
20
+        <div class="cell clearfix">
21
+          <label class="title"><span class="name">日期查询</span> : </label>
22
+          <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
23
+                          type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
24
+                          value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
25
+          <span class="">-</span>
26
+          <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
27
+                          type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
28
+                          value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
29
+        </div>
30
+        <div class="record">
31
+          <el-row :gutter="15">
32
+            <el-col :span="10">
33
+              <el-table :header-cell-style="{
34
+                  backgroundColor: 'rgb(245, 247, 250)',
35
+                  color: '#606266'
36
+                }"
37
+                :row-style="{ color: '#303133' }" ref="monthlyPlanTable" :data="tableData"
38
+                        border highlight-current-row @current-change="changeCurrentRecordTwo"
39
+                        @selection-change="selectSummary"
40
+                        :row-class-name="tableRow"
41
+              >
42
+                <el-table-column type="selection" width="60" align="center"></el-table-column>
43
+                <el-table-column label="标题" align="center">
44
+                  <template slot-scope="scope">
45
+                    {{scope.row.title}}
46
+                  </template>
47
+                </el-table-column>
48
+                <el-table-column label="记录日期" align="center">
49
+                  <template slot-scope="scope">
50
+                    {{getTimeOne(scope.row.record_date)}}
51
+                  </template>
52
+                </el-table-column>
53
+                <el-table-column label="记录医师" align="center">
54
+                  <template slot-scope="scope">
55
+                    {{getDoctor(scope.row.doctor)}}
56
+                  </template>
57
+                </el-table-column>
58
+              </el-table>
59
+            </el-col>
60
+            <el-col :span="14">
61
+              <div class="record_content_panel">
62
+                <div style="background-color:rgb(245, 247, 250)" class="title">出院小结内容</div>
63
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">标题:
64
+                   {{hosDetail.title}}
65
+                </div>
66
+            
67
+                
68
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">记录医师:
69
+                   {{getDoctor(hosDetail.doctor)}}
70
+                </div>
71
+                
72
+                 
73
+                
74
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">主诉内容:
75
+                   <span v-html="hosDetail.main_content"></span> 
76
+                 </div>
77
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">病例特点:
78
+                   <span v-html="hosDetail.patient_case"></span> 
79
+                 </div>
80
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">初步诊断:
81
+                    <span v-html="hosDetail.tentative_diagnosis"></span>
82
+                 </div>
83
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">诊断依据:
84
+                    <span v-html="hosDetail.diagnostic_basis"></span>
85
+                 </div>
86
+                   <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">鉴别诊断:
87
+                    <span v-html="hosDetail.differential_diagnosis"></span>
88
+                 </div>
89
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">诊疗计划:
90
+                    <span v-html="hosDetail.treatment_plan"></span>
91
+                 </div>
92
+               
93
+              </div>
94
+            </el-col>
95
+          </el-row>
96
+        </div>
97
+      </div>
98
+
99
+  
100
+     
101
+      <el-dialog title="新增首次病程记录" width="60%" top="5vh" :visible.sync="show_dialog">
102
+        <div>
103
+          <div class="new_record_form">
104
+            <div class="cell clearfix">
105
+              <label class="title"><span class="name">标题</span> : </label>
106
+               <el-input v-model="form.title" style="width:200px"></el-input>
107
+
108
+              <label class="title"><span class="name">记录医师</span>:</label>
109
+               <el-select v-model="form.doctor" placeholder="请选择">
110
+                  <el-option
111
+                  v-for="item in doctorList"
112
+                  :key="item.admin_user_id"
113
+                  :label="item.user_name"
114
+                  :value="item.admin_user_id">
115
+                  </el-option>
116
+              </el-select>
117
+            
118
+              <label class="title"><span class="name">记录日期</span> : </label>
119
+              <el-date-picker v-model="form.record_date"
120
+                    prefix-icon="el-icon-date" 
121
+                    style="width: 200px;"
122
+                    type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
123
+                    value-format="yyyy-MM-dd HH:mm">
124
+              </el-date-picker>   
125
+            </div>
126
+           
127
+        
128
+      
129
+            <div class="cell clearfix" style="margin-top:10px">
130
+              <label class="title"><span class="name">主诉内容</span> : </label>
131
+                <el-select v-model="form.main_content_id" placeholder="可选择病程模板" @change="changeMainContent">
132
+                  <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
133
+                            :value="option.content"></el-option>
134
+                </el-select>
135
+                
136
+                 <div class="textarea_panel">
137
+                    <keep-alive>
138
+                      <editor ref="editor"
139
+                              id="editor"
140
+                              style="width: 800px"
141
+                              v-bind:r_content="form.main_content">
142
+                      </editor>
143
+                    </keep-alive>
144
+                </div>
145
+
146
+                <label class="title"><span class="name">病例特点</span> : </label>
147
+                <el-select v-model="form.patient_case_id" placeholder="可选择病程模板" @change="changePatientCase">
148
+                  <el-option v-for="(option, index) in patientCaseList" :key="index" :label="option.title"
149
+                            :value="option.content"></el-option>
150
+                </el-select>
151
+                
152
+                 <div class="textarea_panel">
153
+                    <keep-alive>
154
+                      <editor ref="editorOne"
155
+                              id="editorOne"
156
+                              style="width: 800px"
157
+                              v-bind:r_content="form.patient_case">
158
+                      </editor>
159
+                    </keep-alive>
160
+                </div>
161
+
162
+                 <label class="title"><span class="name">初步诊断</span> : </label>
163
+                <el-select v-model="form.tentative_diagnosis_id" placeholder="可选择病程模板" @change="changeTentativeDiagnosis">
164
+                  <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
165
+                            :value="option.content"></el-option>
166
+                </el-select>
167
+                
168
+                 <div class="textarea_panel">
169
+                    <keep-alive>
170
+                      <editor ref="editorTwo"
171
+                              id="editorTwo"
172
+                              style="width: 800px"
173
+                              v-bind:r_content="form.tentative_diagnosis">
174
+                      </editor>
175
+                    </keep-alive>
176
+                </div>
177
+
178
+                <label class="title"><span class="name">诊断依据</span> : </label>
179
+                <el-select v-model="form.diagnostic_basis_id" placeholder="可选择病程模板" @change="changeDiagnosticBasis">
180
+                  <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
181
+                            :value="option.content"></el-option>
182
+                </el-select>
183
+                
184
+                 <div class="textarea_panel">
185
+                    <keep-alive>
186
+                      <editor ref="editorThree"
187
+                              id="editorThree"
188
+                              style="width: 800px"
189
+                              v-bind:r_content="form.diagnostic_basis">
190
+                      </editor>
191
+                    </keep-alive>
192
+                </div>
193
+
194
+                <label class="title"><span class="name">鉴别诊断</span> : </label>
195
+                <el-select v-model="form.differential_diagnosis_id" placeholder="可选择病程模板" @change="changeDifferentialDiagnosis">
196
+                  <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
197
+                            :value="option.content"></el-option>
198
+                </el-select>
199
+                
200
+                 <div class="textarea_panel">
201
+                    <keep-alive>
202
+                      <editor ref="editorFour"
203
+                              id="editorFour"
204
+                              style="width: 800px"
205
+                              v-bind:r_content="form.differential_diagnosis">
206
+                      </editor>
207
+                    </keep-alive>
208
+                </div>
209
+
210
+                <label class="title"><span class="name">诊疗计划</span> : </label>
211
+                <el-select v-model="form.treatment_plan_id" placeholder="可选择病程模板" @change="changeTreateMentContent">
212
+                  <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
213
+                            :value="option.content"></el-option>
214
+                </el-select>
215
+                
216
+                 <div class="textarea_panel">
217
+                    <keep-alive>
218
+                      <editor ref="editorFive"
219
+                              id="editorFive"
220
+                              style="width: 800px"
221
+                              v-bind:r_content="form.treatment_plan">
222
+                      </editor>
223
+                    </keep-alive>
224
+                </div>
225
+            </div>
226
+
227
+    
228
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
229
+              <el-button @click="show_dialog = false">取消</el-button>
230
+              <el-button type="primary"
231
+                         @click="createAction" :loading="uploading_new_record">保存
232
+              </el-button>
233
+            </div>
234
+          </div>
235
+        </div>
236
+      </el-dialog>
237
+      
238
+      <el-dialog title="编辑首次病程记录" width="60%" top="5vh" :visible.sync="edit_show_dialog">
239
+        <div>
240
+          <div class="new_record_form">
241
+            <div class="cell clearfix">
242
+              <label class="title"><span class="name">标题</span> : </label>
243
+               <el-input v-model="form.title" style="width:200px"></el-input>
244
+
245
+              <label class="title"><span class="name">记录医师</span>:</label>
246
+               <el-select v-model="form.doctor" placeholder="请选择">
247
+                  <el-option
248
+                  v-for="item in doctorList"
249
+                  :key="item.admin_user_id"
250
+                  :label="item.user_name"
251
+                  :value="item.admin_user_id">
252
+                  </el-option>
253
+              </el-select>
254
+            
255
+              <label class="title"><span class="name">记录日期</span> : </label>
256
+              <el-date-picker v-model="form.record_date"
257
+                    prefix-icon="el-icon-date" 
258
+                    style="width: 200px;"
259
+                    type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
260
+                    value-format="yyyy-MM-dd HH:mm">
261
+              </el-date-picker>   
262
+
263
+              
264
+            </div>
265
+
266
+             <div class="cell clearfix" style="margin-top:10px">
267
+              <label class="title"><span class="name">主诉内容</span> : </label>
268
+                <el-select v-model="form.main_content_id" placeholder="可选择病程模板" @change="changeMainContent">
269
+                  <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
270
+                            :value="option.content"></el-option>
271
+                </el-select>
272
+                
273
+                 <div class="textarea_panel">
274
+                    <keep-alive>
275
+                      <editor ref="editorTen"
276
+                              id="editorTen"
277
+                              style="width: 800px"
278
+                              v-bind:r_content="form.main_content">
279
+                      </editor>
280
+                    </keep-alive>
281
+                </div>
282
+
283
+                <label class="title"><span class="name">病例特点</span> : </label>
284
+                <el-select v-model="form.patient_case_id" placeholder="可选择病程模板" @change="changePatientCase">
285
+                  <el-option v-for="(option, index) in patientCaseList" :key="index" :label="option.title"
286
+                            :value="option.content"></el-option>
287
+                </el-select>
288
+                
289
+                 <div class="textarea_panel">
290
+                    <keep-alive>
291
+                      <editor ref="editorTenOne"
292
+                              id="editorTenOne"
293
+                              style="width: 800px"
294
+                              v-bind:r_content="form.patient_case">
295
+                      </editor>
296
+                    </keep-alive>
297
+                </div>
298
+
299
+                 <label class="title"><span class="name">初步诊断</span> : </label>
300
+                <el-select v-model="form.tentative_diagnosis_id" placeholder="可选择病程模板" @change="changeTentativeDiagnosis">
301
+                  <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
302
+                            :value="option.content"></el-option>
303
+                </el-select>
304
+                
305
+                 <div class="textarea_panel">
306
+                    <keep-alive>
307
+                      <editor ref="editorTenTwo"
308
+                              id="editorTenTwo"
309
+                              style="width: 800px"
310
+                              v-bind:r_content="form.tentative_diagnosis">
311
+                      </editor>
312
+                    </keep-alive>
313
+                </div>
314
+
315
+                <label class="title"><span class="name">诊断依据</span> : </label>
316
+                <el-select v-model="form.diagnostic_basis_id" placeholder="可选择病程模板" @change="changeDiagnosticBasis">
317
+                  <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
318
+                            :value="option.content"></el-option>
319
+                </el-select>
320
+                
321
+                 <div class="textarea_panel">
322
+                    <keep-alive>
323
+                      <editor ref="editorTenThree"
324
+                              id="editorTenThree"
325
+                              style="width: 800px"
326
+                              v-bind:r_content="form.diagnostic_basis">
327
+                      </editor>
328
+                    </keep-alive>
329
+                </div>
330
+
331
+                <label class="title"><span class="name">鉴别诊断</span> : </label>
332
+                <el-select v-model="form.differential_diagnosis_id" placeholder="可选择病程模板" @change="changeDifferentialDiagnosis">
333
+                  <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
334
+                            :value="option.content"></el-option>
335
+                </el-select>
336
+                
337
+                 <div class="textarea_panel">
338
+                    <keep-alive>
339
+                      <editor ref="editorTenFour"
340
+                              id="editorTenFour"
341
+                              style="width: 800px"
342
+                              v-bind:r_content="form.differential_diagnosis">
343
+                      </editor>
344
+                    </keep-alive>
345
+                </div>
346
+
347
+                <label class="title"><span class="name">诊疗计划</span> : </label>
348
+                <el-select v-model="form.treatment_plan_id" placeholder="可选择病程模板" @change="changeTreateMentContent">
349
+                  <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
350
+                            :value="option.content"></el-option>
351
+                </el-select>
352
+                
353
+                 <div class="textarea_panel">
354
+                    <keep-alive>
355
+                      <editor ref="editorTenFive"
356
+                              id="editorTenFive"
357
+                              style="width: 800px"
358
+                              v-bind:r_content="form.treatment_plan">
359
+                      </editor>
360
+                    </keep-alive>
361
+                </div>
362
+            </div>
363
+
364
+             <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
365
+              <el-button @click="edit_show_dialog = false">取消</el-button>
366
+              <el-button type="primary"
367
+                         @click="updateAction" :loading="uploading_new_record">保存
368
+              </el-button>
369
+            </div>
370
+          </div>
371
+        </div>
372
+      </el-dialog>
373
+    </div>
374
+  </div>
375
+</template>
376
+
377
+<script>
378
+  import PatientSidebar from './components/PatientSidebar'
379
+  import Editor from '@/components/Editor'
380
+
381
+  import { createFirstDisease,getFirstDiseaseList,getFirstDetail,updateFirstDisease,deleteFirstDisease} from '@/api/patient'
382
+  import { parseTime } from '@/utils'
383
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
384
+  import { uParseTime } from '@/utils/tools'
385
+  import { getDataConfig } from '@/utils/data'
386
+  import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
387
+ import MsgTip from '../dialysis/details/dialog/MsgTip'
388
+  import { getAllDoctorList } from "@/api/device"
389
+  const moment = require('moment')
390
+  export default {
391
+    name: 'hospitalSummary',
392
+    components: {
393
+      PatientSidebar,
394
+      BreadCrumb,
395
+      Editor,
396
+      MsgTip,
397
+      multiSelectBox,
398
+    },
399
+    data() {
400
+      return {
401
+        InnerDialogProps: {
402
+          values: [],
403
+          visibility: false,
404
+          isShowTextArea: true,
405
+          customContent: '',
406
+          titles: '',
407
+          type: '' // 不同弹框类型,用来匹配数据
408
+        },
409
+        loading: false,
410
+        title: '',
411
+        patient_id: 0,
412
+        date: [],
413
+        start_time: '',
414
+        end_time: '',
415
+        course_of_disease_time: '',
416
+        records: [],
417
+        doctors: [],
418
+        current_select_record: null,
419
+        show_dialog: false,
420
+        show_edit_dialog: false,
421
+        uploading_new_record: false,
422
+        edit_show_dialog:false,
423
+        mainContentList: this.$store.getters.configlist.main_content,
424
+        patientCaseList:this.$store.getters.configlist.patient_case,
425
+        tentativeDiagnosisList:this.$store.getters.configlist.tentative_diagnosis,
426
+        diagnosticBasisList:this.$store.getters.configlist.diagnostic_basis,
427
+        differentialDiagnosisList:this.$store.getters.configlist.differential_diagnosis,
428
+        treateMentList:this.$store.getters.configlist.treatment_plan,
429
+        select_template: '',
430
+        new_content: '',
431
+        edit_new_content: '',
432
+        edit_course_of_disease_time: '',
433
+        selectingRows: [],
434
+        table_current_index: -1,
435
+        edit_current_id: 0,
436
+        edit_title: '',
437
+        value:'',
438
+        form:{
439
+          id:0,
440
+          title:"",
441
+          doctor:this.$store.getters.xt_user.user.id,
442
+          record_date:this.getTimeOne(new Date()),
443
+          pathology:"",
444
+          record_time:"",
445
+          main_content_id:"",
446
+          main_content:"",
447
+          patient_case_id:"",
448
+          patient_case:"",
449
+          tentative_diagnosis_id:"",
450
+          tentative_diagnosis:"",
451
+          diagnostic_basis_id:"",
452
+          diagnostic_basis:"",
453
+          differential_diagnosis_id:"",
454
+          differential_diagnosis:"",
455
+          treatment_plan_id:"",
456
+          treatment_plan:""
457
+        },
458
+       tableData:[],
459
+       docList:[],
460
+       doctorList:[],
461
+       hosDetail:{},
462
+       ids:"",
463
+       patient:{},
464
+      }
465
+    },
466
+    created() {
467
+     
468
+      this.patient_id = this.$route.params && this.$route.params.id
469
+     
470
+     
471
+      var now = new Date()
472
+      this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
473
+
474
+      var nowDate = new Date()
475
+      var nowYear = nowDate.getFullYear()
476
+      var nowMonth = nowDate.getMonth() + 1
477
+
478
+      var nowDay = nowDate.getDate()
479
+      this.end_time =
480
+        nowYear +
481
+        '-' +
482
+        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
483
+        '-' +
484
+        (nowDay < 10 ? '0' + nowDay : nowDay)
485
+      nowDate.setMonth(nowDate.getMonth() - 1)
486
+      nowYear = nowDate.getFullYear()
487
+      nowMonth = nowDate.getMonth() + 1
488
+      nowDay = nowDate.getDate()
489
+      this.start_time =
490
+        nowYear +
491
+        '-' +
492
+        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
493
+        '-' +
494
+        (nowDay < 10 ? '0' + nowDay : nowDay)
495
+      this.other_start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' + (nowDay < 10 ? '0' + nowDay : nowDay)
496
+      
497
+     this.getAllDoctorList()
498
+     this.getlist()
499
+    
500
+    },
501
+    methods: {
502
+      getTime(val) {
503
+       if(val == "" || val == undefined){
504
+          return ""
505
+         }else {
506
+          return uParseTime(val, '{y}-{m}-{d}')
507
+         }
508
+      },
509
+
510
+      getTimeOne(val) {
511
+       if(val == "" || val == undefined){
512
+          return ""
513
+         }else {
514
+          return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
515
+         }
516
+      },
517
+
518
+      startTimeChange(val){
519
+       
520
+       this.start_time = val
521
+       this.getlist()
522
+      },
523
+      endTimeChange(val){
524
+       this.end_time = val
525
+       this.getlist()
526
+      },
527
+      print(){
528
+        this.$router.push({path:"/patient/patient/firstDisease/print?id="+this.form.id+"&patient_id="+this.patient_id})
529
+      },
530
+      tableRow(){
531
+
532
+       },
533
+      changeCurrentRecordTwo(row){
534
+       
535
+        this.form.id = 0
536
+        if(row!=null){
537
+          this.form.id = row.id 
538
+          this.getFirstDetail(row.id)
539
+        }
540
+      },
541
+      selectSummary(row){
542
+        var arr = []
543
+        for(let i=0;i<row.length;i++){
544
+          arr.push(row[i].id)
545
+        }
546
+       var ids = arr.join(",")
547
+       this.ids = ids
548
+      },
549
+     
550
+      changeMainContent(content){
551
+       this.form.main_content = content
552
+      },
553
+      changePatientCase(content){
554
+       this.form.patient_case = content
555
+      },
556
+      changeTentativeDiagnosis(content){
557
+      this.form.tentative_diagnosis = content
558
+      },
559
+      changeDiagnosticBasis(content){
560
+       this.form.diagnostic_basis =content
561
+      },
562
+      changeDifferentialDiagnosis(content){
563
+        this.form.differential_diagnosis = content
564
+      },
565
+      changeTreateMentContent(content){
566
+        this.form.treatment_plan = content
567
+      },
568
+      
569
+      createAction(){
570
+       
571
+         if(this.form.doctor == ""){
572
+            this.form.doctor = 0
573
+         }
574
+         var params = {
575
+          patient_id:parseInt(this.patient_id),
576
+          title:this.form.title,
577
+          main_content:this.$refs.editor.content,
578
+          patient_case:this.$refs.editorOne.content,
579
+          tentative_diagnosis:this.$refs.editorTwo.content,
580
+          diagnostic_basis:this.$refs.editorThree.content,
581
+          differential_diagnosis:this.$refs.editorFour.content,
582
+          treatment_plan:this.$refs.editorFive.content,
583
+          record_date:this.form.record_date,
584
+          doctor:this.form.doctor,
585
+         }
586
+         console.log("params",params)
587
+        
588
+         createFirstDisease(params).then(response=>{
589
+            if(response.data.state == 1){
590
+              var list = response.data.data.firstDisease
591
+             
592
+              this.$message.success("保存成功!")
593
+              this.show_dialog = false
594
+              this.getlist()
595
+            }
596
+         })
597
+      },
598
+      getAllDoctorList(){
599
+       getAllDoctorList().then(response=>{
600
+          if(response.data.state == 1){
601
+            var list = response.data.data.list
602
+
603
+            this.doctorList = list
604
+          }
605
+       })
606
+      },
607
+      getTime(val) {
608
+         if(val == ""){
609
+          return ""
610
+         }else {
611
+          return uParseTime(val, '{y}-{m}-{d}')
612
+         }
613
+      },
614
+
615
+      getlist(){
616
+          var params = {
617
+            start_time:this.start_time,
618
+            end_time:this.end_time,
619
+            patient_id:parseInt(this.patient_id),
620
+          }
621
+        getFirstDiseaseList(params).then(response=>{
622
+           if(response.data.state ==1){
623
+             var list =  response.data.data.list
624
+             this.tableData = list
625
+           }
626
+        })
627
+      },
628
+      getDoctor(id){
629
+        var name = ""
630
+        for(let i=0;i<this.doctorList.length;i++){
631
+          if(id == this.doctorList[i].admin_user_id){
632
+             name = this.doctorList[i].user_name
633
+          }
634
+        }
635
+        return name
636
+      },
637
+      getFirstDetail(id){
638
+        getFirstDetail(id).then(response=>{
639
+           if(response.data.state == 1){
640
+             var detail = response.data.data.detail
641
+            
642
+             this.hosDetail = detail
643
+           }
644
+        })
645
+      },
646
+      getHospitalSummaryDetailOne(id){
647
+        getFirstDetail(id).then(response=>{
648
+           if(response.data.state == 1){
649
+             var detail = response.data.data.detail
650
+             console.log("detial------",detail)
651
+             if(detail.doctor == 0){
652
+               this.form.doctor = ""
653
+             }
654
+             this.form.id = detail.id
655
+             this.form.title = detail.title
656
+             this.form.record_date = this.getTimeOne(detail.record_date)
657
+             this.form.doctor = detail.doctor
658
+             this.form.main_content = detail.main_content
659
+             this.form.patient_case = detail.patient_case
660
+             this.form.tentative_diagnosis = detail.tentative_diagnosis
661
+             this.form.diagnostic_basis = detail.diagnostic_basis
662
+             this.form.differential_diagnosis = detail.differential_diagnosis
663
+             this.form.treatment_plan =detail.treatment_plan
664
+             this.edit_show_dialog = true
665
+           }
666
+        })
667
+      },
668
+      toEdit(){
669
+        this.getHospitalSummaryDetailOne(this.form.id)
670
+      },
671
+      updateAction(){
672
+    
673
+        if(this.form.doctor == ""){
674
+            this.form.doctor = 0
675
+         }
676
+         if(this.form.dean == ""){
677
+           this.form.dean = 0
678
+         }
679
+
680
+         var main_content = ""
681
+         var patient_case = ""
682
+         var tentative_diagnosis = ""
683
+         var diagnostic_basis = ""
684
+         var differential_diagnosis = ""
685
+         var treatment_plan = ""
686
+         if(this.$refs.editorTen.content == ""){
687
+            main_content = this.hosDetail.main_content
688
+         }else{
689
+           main_content = this.$refs.editorTen.content
690
+         }
691
+
692
+         if(this.$refs.editorTenOne.content == ""){
693
+            patient_case = this.hosDetail.patient_case
694
+         }else{
695
+            patient_case = this.$refs.editorTenOne.content
696
+         }
697
+
698
+         if(this.$refs.editorTenTwo.content == ""){
699
+            tentative_diagnosis = this.hosDetail.tentative_diagnosis
700
+         }else{
701
+            tentative_diagnosis = this.$refs.editorTenTwo.content 
702
+         }
703
+
704
+         if(this.$refs.editorTenThree.content == ""){
705
+             diagnostic_basis = this.hosDetail.diagnostic_basis
706
+         }else{
707
+            diagnostic_basis = this.$refs.editorTenThree.content
708
+         }
709
+
710
+         if(this.$refs.editorTenFour.content == ""){
711
+            differential_diagnosis = this.hosDetail.differential_diagnosis
712
+         }else{
713
+            differential_diagnosis = this.$refs.editorTenFour.content
714
+         }
715
+
716
+         if(this.$refs.editorTenFive.content == ""){
717
+            treatment_plan = this.hosDetail.treatment_plan
718
+         }else{
719
+             treatment_plan = this.$refs.editorTenFive.content
720
+         }
721
+      
722
+         var params = {
723
+          id:this.form.id,
724
+          patient_id:parseInt(this.patient_id),
725
+          title:this.form.title,
726
+          doctor:this.form.doctor,
727
+          record_date:this.form.record_date,
728
+          main_content:main_content,
729
+          patient_case:patient_case,
730
+          tentative_diagnosis:tentative_diagnosis,
731
+          diagnostic_basis:diagnostic_basis,
732
+          differential_diagnosis:differential_diagnosis,
733
+          treatment_plan:treatment_plan,
734
+         }
735
+         console.log("poarams2323322323",params)
736
+        updateFirstDisease(params).then(response=>{
737
+          if(response.data.state == 1){
738
+            var detail = response.data.data.detail
739
+            this.edit_show_dialog = false
740
+            // this.$refs.monthlyPlanTable.setCurrentRow(detail)
741
+            this.getlist()
742
+          }
743
+        }) 
744
+      },
745
+      deleteAction(){
746
+          if(this.ids.length == 0){
747
+            this.$message.error("请勾选需要删除的数据")
748
+            return false
749
+          }
750
+          this.$confirm('确认删除吗?', '删除', {
751
+            confirmButtonText: '确 定',
752
+            cancelButtonText: '取 消',
753
+            type: 'warning'
754
+         }).then(() => {
755
+            var params = {
756
+              ids:this.ids,
757
+            }
758
+            deleteFirstDisease(params).then(response => {
759
+              if (response.data.state == 1) {
760
+                  var msg = response.data.data.msg
761
+                  this.getlist()
762
+                  this.$message.success("删除成功")
763
+              } else {
764
+                  this.$message.error("删除失败")
765
+              }
766
+            })
767
+          }).catch(() => {
768
+          }) 
769
+      },
770
+      addAction(){
771
+        this.form.title = ""
772
+        this.form.main_content = ""
773
+        this.form.patient_case = ""
774
+        this.form.tentative_diagnosis = ""
775
+        this.form.diagnostic_basis = ""
776
+        this.form.differential_diagnosis = ""
777
+        this.form.treatment_plan = ""
778
+        
779
+        this.show_dialog = true
780
+      },
781
+     
782
+    },
783
+    watch: {
784
+      tableData: function() {
785
+        this.$nextTick(function() {
786
+          this.$refs.monthlyPlanTable.setCurrentRow(this.tableData[0])
787
+        })
788
+      }
789
+    },
790
+  
791
+    
792
+  }
793
+</script>
794
+
795
+<style rel="stylesheet/css" lang="scss" scoped>
796
+  .borderBox{
797
+    border: 1px solid #DCDFE6;
798
+    padding: 10px;
799
+    margin-top: 10px;
800
+    border-radius: 4px;
801
+    p{
802
+      font-weight: bold;
803
+      font-size: 20px;
804
+      margin: 10px 0;
805
+    }
806
+  }
807
+  .container {
808
+    margin-left: 180px;
809
+    padding: 20px;
810
+    background: #fff;
811
+    min-height: calc(100vh - 173px);
812
+    margin-bottom: 15px;
813
+
814
+  .record {
815
+    padding-top: 20px;
816
+  }
817
+
818
+  }
819
+  .record_content_panel {
820
+    border-width: 1px;
821
+    border-style: solid;
822
+    border-color: #ebeef5;
823
+    min-height: 200px;
824
+
825
+  .title {
826
+    font-size: 14px;
827
+    font-weight: 500;
828
+    color: #909399;
829
+    line-height: 44px;
830
+    height: 44px;
831
+    text-align: center;
832
+    border-bottom-width: 1px;
833
+    border-bottom-style: solid;
834
+    border-bottom-color: #ebeef5;
835
+  }
836
+
837
+  .content {
838
+    padding: 12px 15px;
839
+    font-size: 15px;
840
+    color: gray;
841
+    line-height: 22px;
842
+  }
843
+
844
+  }
845
+
846
+  .new_record_form {
847
+
848
+  /*/ / padding: 10 px, 25 px;*/
849
+
850
+  .textarea_panel {
851
+    margin-top: 10px;
852
+  }
853
+
854
+  }
855
+</style>
856
+<style>
857
+.el-table td,
858
+.el-table th.is-leaf,
859
+.el-table--border,
860
+.el-table--group {
861
+  border-color: #d0d3da;
862
+}
863
+.el-table--border::after,
864
+.el-table--group::after,
865
+.el-table::before {
866
+  background-color: #d0d3da;
867
+}
868
+.el-select-dropdown {
869
+  max-width: 1000px !important;
870
+}
871
+</style>

+ 413 - 0
src/xt_pages/user/firstDiseasePrint.vue View File

@@ -0,0 +1,413 @@
1
+<template>
2
+  <div class="main-contain">
3
+
4
+    <div class="position">
5
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
6
+      <el-button size="small" icon="el-icon-printer" @click="printAction" type="primary">打印
7
+      </el-button>
8
+    </div>
9
+    <div class="app-container">
10
+      <div id="print_content">
11
+        <div class="print_page_main_content">
12
+           <div class="order-yy-name"></div>
13
+          <!-- <div class="order_title" style="padding-top:12px;text-align:center;">首次病程记录</div>
14
+        -->
15
+          <h1 style="text-align:center;">首次病程记录</h1>
16
+          <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;">
17
+            <div class="inline_block;">
18
+              <div style="font-size:20px">{{getTime(hosDetail.record_date)}}</div>
19
+            </div>
20
+            <div class="inline_block" style="margin-left: 30px">
21
+                   <div v-html="hosDetail.main_content"> </div>
22
+            </div>
23
+
24
+            <div class="inline_block" style="width:100%;">
25
+               <span style="font-size:20px">病例特点:</span>
26
+                <div v-html="hosDetail.patient_case" class="printP" style="text-indent:20px">
27
+
28
+              </div>
29
+            </div>
30
+
31
+             <div class="inline_block" style="width:100%;">
32
+              <span style="font-size:20px">初步诊断:</span>
33
+              <div v-html="hosDetail.tentative_diagnosis" class="printP" style="text-indent:20px">
34
+
35
+              </div>
36
+             </div>
37
+
38
+             <div class="inline_block" style="width:100%;">
39
+              <span style="font-size:20px"> 诊断依据:</span>
40
+              <div v-html="hosDetail.diagnostic_basis" class="printP" style="text-indent:20px">
41
+
42
+              </div>
43
+             </div>
44
+
45
+             <div class="inline_block" style="width:100%;">
46
+                <span  style="font-size:20px">鉴别诊断:</span> 
47
+                <div v-html="hosDetail.differential_diagnosis" class="printP" style="text-indent:20px">
48
+
49
+                </div>
50
+              </div>
51
+
52
+              <div class="inline_block" style="width:100%;">
53
+                 <span style="font-size:20px">诊疗计划:</span>
54
+                <div v-html="hosDetail.treatment_plan" class="printP" style="text-indent:20px">
55
+
56
+                </div>
57
+              </div>
58
+
59
+             <div class="inline_block" style="float:right;margin-right:50px">
60
+               <span style="font-size:20px">医生签名:</span>
61
+                <span v-if="setAdminUserES(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor)) == ''">
62
+                  {{getDoctor(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor))}}
63
+                  </span>
64
+                  <span v-else>
65
+                    <img style="height:30px;" :src="setAdminUserES(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor))" alt="" srcset="">
66
+                  </span>
67
+              </div>
68
+          </div>
69
+
70
+        
71
+        </div>
72
+      </div>
73
+    </div>
74
+  </div>
75
+
76
+</template>
77
+
78
+<script>
79
+import { jsGetAge, uParseTime } from '@/utils/tools'
80
+import LabelBox from '../dialysis/printItem/LabelBox'
81
+import CheckBox from '../dialysis/batch_print/option_check_box'
82
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
83
+import {getFirstDetail,getPatientInfo} from "@/api/patient"
84
+import { getAllDoctorList } from "@/api/device"
85
+import { getDataConfig } from "@/utils/data";
86
+export default {
87
+  name: 'dialysisPrintOrderOne',
88
+  components: {
89
+    LabelBox,
90
+    BreadCrumb,
91
+    CheckBox
92
+  },
93
+  data() {
94
+    return {
95
+      crumbs: [
96
+        { path: false, name: '透析管理' },
97
+        { path: false, name: '打印单' }
98
+      ],
99
+     hosDetail:{},
100
+     patient:{},
101
+     doctorList:[],
102
+    educationOptions:[],
103
+    operators:[],
104
+    operatorMaps: {},
105
+    }
106
+  },
107
+  methods: {
108
+    getDatge(value) {
109
+      var times = Date.parse(value) / 1000
110
+      var timestr = uParseTime(times, '{y}年{m}月{d}日')
111
+      return timestr
112
+    },
113
+    getTime(val) {
114
+       if(val == "" || val == undefined){
115
+          return ""
116
+         }else {
117
+          return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
118
+         }
119
+    },
120
+    printThisPage() {
121
+        var ptime = Math.round(new Date().getTime() / 1000)
122
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
123
+        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto;letter-spacing:5px} .dialysis-print-order p{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;font-weight: bold;margin: 10px 0;}'
124
+        printJS({
125
+            printable: 'dialysis-print-box',
126
+            type: 'html',
127
+            style: style,
128
+            scanStyles: false
129
+        })
130
+      
131
+    },
132
+  
133
+    getAge: function(val) {
134
+      if (val.birthday != 0) {
135
+        return jsGetAge(val.birth, '-')
136
+      } else {
137
+        return ''
138
+      }
139
+    },
140
+  
141
+    getNewAge(UUserCard) {
142
+      if (UUserCard != null && UUserCard != '') {
143
+        // 获取年龄
144
+        var myDate = new Date()
145
+        var month = myDate.getMonth() + 1
146
+        var day = myDate.getDate()
147
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
148
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
149
+          age++
150
+        }
151
+        return age
152
+      }
153
+    },
154
+    getFirstDetail(id){
155
+       getFirstDetail(id).then(response=>{
156
+        if(response.data.state == 1){
157
+            var detail = response.data.data.detail
158
+        
159
+            this.hosDetail = detail
160
+        }
161
+     })
162
+    },
163
+    getlist(){
164
+       var params = {
165
+         patient_id:parseInt(this.$route.query.patient_id),
166
+       }
167
+       console.log("param223322322323",params)
168
+      getPatientInfo(params).then(response=>{
169
+         if(response.data.state == 1){
170
+           var patient = response.data.data.patient
171
+           this.patient = patient
172
+         }
173
+      })
174
+    },
175
+    getAllDoctorList(){
176
+      getAllDoctorList().then(response=>{
177
+        if(response.data.state == 1){
178
+        var list = response.data.data.list
179
+         this.doctorList = list
180
+         this.operators = response.data.data.operators
181
+           if (this.operators.length > 0) {
182
+            var operatorsLen = this.operators.length
183
+            for (var index = 0; index < operatorsLen; index++) {
184
+              this.$set(
185
+                this.operatorMaps,
186
+                this.operators[index].creator,
187
+                this.operators[index]
188
+              )
189
+            }
190
+          }
191
+        }
192
+       })
193
+     },
194
+     getDoctor(id){
195
+        var name = ""
196
+        for(let i=0;i<this.doctorList.length;i++){
197
+          if(id == this.doctorList[i].admin_user_id){
198
+             name = this.doctorList[i].user_name
199
+          }
200
+        }
201
+        return name
202
+    },
203
+    getProfession(id){
204
+      var name = ""
205
+      for(let i=0;i<this.educationOptions.length;i++){
206
+          if(id == this.educationOptions[i].id){
207
+           name = this.educationOptions[i].name
208
+          }
209
+      }
210
+      return name
211
+    },
212
+    getTimeDay(start,end){
213
+      var count = ""
214
+      count = (end-start)/86400
215
+      return count + 1
216
+    },
217
+    printAction: function() {
218
+      const style = '@media print {.printP div{margin-bottom:5px;} .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; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;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: 20px;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 td {border: 1px solid;font-size: 16px;padding: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{position: absolute;top:1370px;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;}'
219
+      printJS({
220
+        printable: 'print_content',
221
+        type: 'html',
222
+        documentTitle: '  ',
223
+        style: style,
224
+        scanStyles: false
225
+      })
226
+    },
227
+    getDoctor(id){
228
+      var name = ""
229
+      for(let i=0;i<this.doctorList.length;i++){
230
+          if(id == this.doctorList[i].admin_user_id){
231
+             name = this.doctorList[i].user_name
232
+          }
233
+        }
234
+       return name
235
+     },
236
+    setAdminUserES(id) {
237
+      if (id === 0) {
238
+        return ''
239
+      }
240
+      if (id in this.operatorMaps) {
241
+        return this.operatorMaps[id].url
242
+      } else {
243
+        return ''
244
+      }
245
+    },
246
+  },
247
+ 
248
+  created() {
249
+    this.educationOptions = getDataConfig("patient", "profession_options");
250
+    var xtuser = this.$store.getters.xt_user
251
+    this.orgname = xtuser.org.org_name
252
+    var id = this.$route.query.id
253
+    this.getlist()
254
+    this.getFirstDetail(id)
255
+    this.getAllDoctorList()
256
+    
257
+  }
258
+}
259
+</script>
260
+
261
+<style>
262
+.borderBox  p{
263
+  font-weight: bold;
264
+  margin: 10px 0;
265
+}
266
+.dialysis-print-order {
267
+  width: 960px;
268
+  margin: 0 auto;
269
+}
270
+
271
+.dialysis-print-order .order-yy-name {
272
+  margin: auto;
273
+  text-align: center;
274
+  font-size: 20px;
275
+  letter-spacing: 5px;
276
+}
277
+
278
+.dialysis-print-order .order-title {
279
+  margin: auto;
280
+  font-weight: 600;
281
+  text-align: center;
282
+  font-size: 22px;
283
+  padding: 10px 20px 20px 20px;
284
+}
285
+
286
+.dialysis-print-order .table-box {
287
+  width: 100%;
288
+  line-height: 23px;
289
+  font-size: 14px;
290
+}
291
+
292
+.dialysis-print-order .print-table {
293
+  width: 100%;
294
+  text-align: center;
295
+  border-collapse: collapse;
296
+  line-height: 40px;
297
+  font-size: 14px;
298
+}
299
+
300
+.dialysis-print-order .print-table-no {
301
+  width: 100%;
302
+  text-align: center;
303
+  border-collapse: collapse;
304
+  font-size: 14px;
305
+}
306
+
307
+.dialysis-print-order .under-line {
308
+  border-bottom: 1px solid #999;
309
+  width: 95%;
310
+  text-align: center;
311
+  margin-left: 2px;
312
+}
313
+
314
+.dialysis-print-order .title-box {
315
+  text-align: center;
316
+  font-size: 16px;
317
+}
318
+
319
+.dialysis-print-order .radio-lebel-box {
320
+  font-weight: 400;
321
+  cursor: pointer;
322
+}
323
+
324
+.dialysis-print-order .radio-no {
325
+  opacity: 0;
326
+  outline: none;
327
+  position: absolute;
328
+  margin: 0;
329
+  width: 0;
330
+  height: 0;
331
+  z-index: -1;
332
+}
333
+
334
+.dialysis-print-order .radio-inner {
335
+  white-space: nowrap;
336
+  cursor: pointer;
337
+  outline: none;
338
+  display: inline-block;
339
+  line-height: 1;
340
+  position: relative;
341
+  vertical-align: middle;
342
+}
343
+
344
+.dialysis-print-order .radio-fang {
345
+  display: inline-block;
346
+  position: relative;
347
+  border: 1px solid #000;
348
+  box-sizing: border-box;
349
+  width: 14px;
350
+  height: 14px;
351
+  background-color: #fff;
352
+  z-index: 1;
353
+  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
354
+    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
355
+}
356
+
357
+.dialysis-print-order .is-checked-radio::after {
358
+  content: "√";
359
+  font-size: 15px;
360
+}
361
+
362
+.dialysis-print-order .print-table-no tr td {
363
+  padding: 8px 5px;
364
+  line-height: 25px;
365
+}
366
+
367
+.dialysis-print-order .print-table tr td {
368
+  padding: 1px 1px;
369
+  /*line-height: 25px;*/
370
+}
371
+
372
+.es-img {
373
+  height: 25px;
374
+}
375
+
376
+.advice-name {
377
+  text-align: left;
378
+}
379
+
380
+.advice-children {
381
+  display: flex;
382
+}
383
+
384
+.title-box-pro {
385
+  border: 0 #fff;
386
+  line-height: 25px;
387
+  height: 25px;
388
+  text-align: left;
389
+  padding-left: 10px !important;
390
+}
391
+.title-box-pro-tr {
392
+  border: 0 #fff;
393
+}
394
+.text-align-left {
395
+  text-align: left !important;
396
+  padding-left: 10px !important;
397
+  font-size: 14px !important;
398
+  line-height: 25px;
399
+}
400
+.print-table-tr-new td {
401
+  line-height: 20px !important;
402
+}
403
+.border-top-solid {
404
+  border: solid 1px #000;
405
+}
406
+.print-template-two tr {
407
+  line-height: 30px;
408
+}
409
+.parent {
410
+  text-align: left;
411
+  padding-left: 20px !important;
412
+}
413
+</style>

+ 11 - 1
src/xt_pages/user/hospitalSummaryPrint.vue View File

@@ -65,7 +65,17 @@
65 65
               </span>
66 66
             </td>
67 67
           </tr>
68
-
68
+          <tr>
69
+            <td style="text-align:center;width:100px" colspan="1">
70
+              身份证:
71
+            </td>   
72
+            <td style="text-align:left;width:500px" colspan="12">
73
+            
74
+              <span style="display:inline-block;margin-left:10px;">
75
+                {{patient.id_card_no}}
76
+              </span>
77
+            </td>   
78
+          </tr>
69 79
           <tr>
70 80
             <td style="text-align:center;width:100px" colspan="1">
71 81
               住址:

+ 24 - 12
src/xt_pages/user/vascularAccess.vue View File

@@ -9,7 +9,7 @@
9 9
       <el-table class="oictable" :data="tableData" border style="width:100%">
10 10
       <el-table-column prop="start_time" label="建立日期" width="100" align="center">
11 11
           <template slot-scope="scope">
12
-            <span>{{ getTime(scope.row.start_time, "{y}-{m}-{d}")}}</span>
12
+            <span>{{ getTime(scope.row.start_time)}}</span>
13 13
           </template>
14 14
      </el-table-column>
15 15
       <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="120">
@@ -34,13 +34,13 @@
34 34
       </el-table-column>
35 35
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
36 36
           <template slot-scope="scope">
37
-            <span>{{ getTime(scope.row.first_start_time, "{y}-{m}-{d}")}}</span>
37
+            <span>{{ getTime(scope.row.first_start_time)}}</span>
38 38
           </template>
39 39
       </el-table-column>
40 40
      
41 41
        <el-table-column prop="date" label="停用日期" align="center" width="100">
42 42
           <template slot-scope="scope">
43
-            <span v-if="scope.row.stop_time>0">{{ getTime(scope.row.stop_time, "{y}-{m}-{d}")}}</span>
43
+            <span v-if="scope.row.stop_time>0">{{ getTime(scope.row.stop_time)}}</span>
44 44
              <span v-if="scope.row.stop_time<0"></span>
45 45
           </template>
46 46
       </el-table-column>
@@ -673,12 +673,24 @@
673 673
            }  
674 674
         })   
675 675
       },
676
-     getTime(value, temp) {
677
-        if (value != undefined) {
678
-            return uParseTime(value, temp);
679
-        }
680
-        return "";
681
-     },
676
+   //   getTime(value, temp) {
677
+        
678
+   //      if (value != undefined) {
679
+   //          return uParseTime(value, temp);
680
+   //      }
681
+
682
+   //      return "";
683
+   //   },
684
+     getTime(val) {
685
+         if(val < 0){
686
+           return ""
687
+         }
688
+         if(val == ""){
689
+          return ""
690
+         }else {
691
+          return uParseTime(val, '{y}-{m}-{d}')
692
+         }
693
+      },
682 694
      handleUpdateAdviceTemplate(id){
683 695
         getVascularAccessByDetail(id).then(response=>{
684 696
            if(response.data.state ==1){
@@ -739,7 +751,7 @@
739 751
               }
740 752
              this.form.blood_access_part_opera_id = blood_part
741 753
 
742
-             this.form.first_start_time = this.getTime(accessDetail.first_start_time,"{y}-{m}-{d}")
754
+             this.form.first_start_time = this.getTime(accessDetail.first_start_time)
743 755
 
744 756
              var inflow_id = 0
745 757
              for(let i=0;i<this.optionsPass.length;i++){
@@ -749,9 +761,9 @@
749 761
              }
750 762
              this.form.inflow_pass = inflow_id
751 763
              this.form.remark = accessDetail.remark
752
-             this.form.start_time = this.getTime(accessDetail.start_time,"{y}-{m}-{d}")
764
+             this.form.start_time = this.getTime(accessDetail.start_time)
753 765
              this.form.stop_reason = accessDetail.stop_reason
754
-             this.form.stop_time = this.getTime(accessDetail.stop_time,"{y}-{m}-{d}")
766
+             this.form.stop_time = this.getTime(accessDetail.stop_time)
755 767
  
756 768
              this.form.user_status = accessDetail.user_status
757 769
              this.form.other_vascular = accessDetail.other_vascular

+ 1 - 1
src/xt_pages/workforce/components/ScheduleItem.vue View File

@@ -33,7 +33,7 @@ export default {
33 33
   },
34 34
   data() {
35 35
     return {
36
-      
36
+
37 37
     }
38 38
   },
39 39
 

File diff suppressed because it is too large
+ 3118 - 0
src/xt_pages/workforce/components/appointment.vue


File diff suppressed because it is too large
+ 309 - 132
src/xt_pages/workforce/components/editTableData.vue


+ 68 - 76
src/xt_pages/workforce/components/tableData.vue View File

@@ -75,7 +75,7 @@
75 75
           :active-value=true
76 76
           active-text="显示灌流器"
77 77
           @change="switchThis(value1)">
78
-          
78
+
79 79
         </el-switch>
80 80
       </div>
81 81
     </div>
@@ -283,7 +283,7 @@
283 283
         </el-table-column>
284 284
         <el-table-column
285 285
           :label="'周四 (' + weekTitle[3] + ')'"
286
-         
286
+
287 287
           align="center"
288 288
           v-if="isShowFour"
289 289
 
@@ -315,7 +315,7 @@
315 315
         </el-table-column>
316 316
         <el-table-column
317 317
           :label="'周五 (' + weekTitle[4] + ')'"
318
-          
318
+
319 319
           align="center"
320 320
           v-if="isShowFive"
321 321
 
@@ -347,7 +347,7 @@
347 347
         </el-table-column>
348 348
         <el-table-column
349 349
           :label="'周六 (' + weekTitle[5] + ')'"
350
-          
350
+
351 351
           align="center"
352 352
           v-if="isShowSix"
353 353
 
@@ -379,7 +379,7 @@
379 379
         </el-table-column>
380 380
         <el-table-column
381 381
           :label="'周日 (' + weekTitle[6] + ')'"
382
-          
382
+
383 383
           align="center"
384 384
           v-if="isShowSeven"
385 385
 
@@ -435,7 +435,6 @@
435 435
                 placeholder="请选择"
436 436
                 style="width: 100%"
437 437
             >
438
-            
439 438
               <el-option
440 439
                   :disabled="item.id == currentData.mode_id"
441 440
                   v-for="item in modeOptions"
@@ -497,16 +496,16 @@
497 496
           </el-form-item>
498 497
           <el-form-item label="分区: " prop="partition_id">
499 498
             <el-select
500
-                v-model="zone_name"
499
+                v-model="changeSchedule.partition_id"
501 500
                 placeholder="请选择"
502 501
                 style="width: 100%"
503 502
                 @change="changePartition"
504 503
             >
505 504
               <el-option
506
-                  v-for=" item in zone_names"
507
-                  :key="item"
508
-                  :label="item.zone_name"
509
-                  :value="item.zone_id"
505
+                v-for="(item, index) in zones"
506
+                :key="index"
507
+                :label="item.name"
508
+                :value="item.id"
510 509
               >
511 510
               </el-option>
512 511
             </el-select>
@@ -671,7 +670,6 @@ export default {
671 670
       tiaoZhengType: 1,
672 671
       modeOptions: null,
673 672
       keywords: "",
674
-
675 673
       schedulePatients: [],
676 674
       searchTableVisible: false,
677 675
       // dialog: {
@@ -763,7 +761,6 @@ export default {
763 761
       zone_name: "",
764 762
       current_devices: [],
765 763
       zone_names: [],
766
-      zone_namess:[],
767 764
       zone_device_options: [],
768 765
       options:[
769 766
         {id:1,name:"上午"},
@@ -1382,8 +1379,8 @@ export default {
1382 1379
       this.$nextTick(() => {
1383 1380
         this.$refs.table.doLayout();
1384 1381
       });
1385
-    if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10340){
1386
-      
1382
+
1383
+
1387 1384
       //表格某列全部数据
1388 1385
         var Mon_M = []
1389 1386
         var Mon_A = []
@@ -1460,7 +1457,7 @@ export default {
1460 1457
         Mon_A_One.push(x + ':' + countNum[x]+"\n")
1461 1458
       }
1462 1459
       var result = [];
1463
-      for (var i = 0,len = Mon_A_One.length; i < len; i+=29) { 
1460
+      for (var i = 0,len = Mon_A_One.length; i < len; i+=29) {
1464 1461
           var strObjcet = Mon_A_One.slice(i, i+29);
1465 1462
           var str = strObjcet.toString();
1466 1463
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1487,14 +1484,14 @@ export default {
1487 1484
         Mon_M_One.push(x + ':' + countNum[x]+"\n")
1488 1485
       }
1489 1486
       var result = [];
1490
-      for (var i = 0,len = Mon_M_One.length; i < len; i+=29) { 
1487
+      for (var i = 0,len = Mon_M_One.length; i < len; i+=29) {
1491 1488
           var strObjcet = Mon_M_One.slice(i, i+29);
1492 1489
           var str = strObjcet.toString();
1493 1490
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
1494 1491
           result.push(str);
1495 1492
       }
1496 1493
       sums[2]="总人数:"+ sums[2] +"\n"+result
1497
-      
1494
+
1498 1495
       for(let j in data){
1499 1496
         if(data[j].hasOwnProperty ('Mon_N') == true){
1500 1497
           Mon_N.push(data[j].Mon_N.mode_name)
@@ -1510,11 +1507,11 @@ export default {
1510 1507
         }
1511 1508
       }
1512 1509
       for(let x in countNum){
1513
-        
1510
+
1514 1511
         Mon_N_One.push(x + ':' + countNum[x]+"\n")
1515 1512
       }
1516 1513
       var result = [];
1517
-      for (var i = 0,len = Mon_N_One.length; i < len; i+=29) { 
1514
+      for (var i = 0,len = Mon_N_One.length; i < len; i+=29) {
1518 1515
           var strObjcet = Mon_N_One.slice(i, i+29);
1519 1516
           var str = strObjcet.toString();
1520 1517
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1540,7 +1537,7 @@ export default {
1540 1537
         Tue_M_One.push(x + ':' + countNum[x]+"\n")
1541 1538
       }
1542 1539
       var result = [];
1543
-      for (var i = 0,len = Tue_M_One.length; i < len; i+=29) { 
1540
+      for (var i = 0,len = Tue_M_One.length; i < len; i+=29) {
1544 1541
           var strObjcet = Tue_M_One.slice(i, i+29);
1545 1542
           var str = strObjcet.toString();
1546 1543
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1566,14 +1563,14 @@ export default {
1566 1563
         Tue_A_One.push(x + ':' + countNum[x]+"\n")
1567 1564
       }
1568 1565
       var result = [];
1569
-      for (var i = 0,len = Tue_A_One.length; i < len; i+=29) { 
1566
+      for (var i = 0,len = Tue_A_One.length; i < len; i+=29) {
1570 1567
           var strObjcet = Tue_A_One.slice(i, i+29);
1571 1568
           var str = strObjcet.toString();
1572 1569
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
1573 1570
           result.push(str);
1574 1571
       }
1575 1572
       sums[6]="总人数:"+ sums[6] +"\n"+result
1576
-      
1573
+
1577 1574
       for(let j in data){
1578 1575
         if(data[j].hasOwnProperty ('Tue_N') == true){
1579 1576
           Tue_N.push(data[j].Tue_N.mode_name)
@@ -1592,7 +1589,7 @@ export default {
1592 1589
         Tue_N_One.push(x + ':' + countNum[x]+"\n")
1593 1590
       }
1594 1591
       var result = [];
1595
-      for (var i = 0,len = Tue_N_One.length; i < len; i+=29) { 
1592
+      for (var i = 0,len = Tue_N_One.length; i < len; i+=29) {
1596 1593
           var strObjcet = Tue_N_One.slice(i, i+29);
1597 1594
           var str = strObjcet.toString();
1598 1595
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1618,7 +1615,7 @@ export default {
1618 1615
         Wed_M_One.push(x + ':' + countNum[x]+"\n")
1619 1616
       }
1620 1617
       var result = [];
1621
-      for (var i = 0,len = Wed_M_One.length; i < len; i+=29) { 
1618
+      for (var i = 0,len = Wed_M_One.length; i < len; i+=29) {
1622 1619
           var strObjcet = Wed_M_One.slice(i, i+29);
1623 1620
           var str = strObjcet.toString();
1624 1621
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1641,18 +1638,18 @@ export default {
1641 1638
         }
1642 1639
       }
1643 1640
       for(let x in countNum){
1644
-        
1641
+
1645 1642
         Wed_A_One.push(x + ':' + countNum[x]+"\n")
1646 1643
       }
1647 1644
       var result = [];
1648
-      for (var i = 0,len = Wed_A_One.length; i < len; i+=29) { 
1645
+      for (var i = 0,len = Wed_A_One.length; i < len; i+=29) {
1649 1646
           var strObjcet = Wed_A_One.slice(i, i+29);
1650 1647
           var str = strObjcet.toString();
1651 1648
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
1652 1649
           result.push(str);
1653 1650
       }
1654 1651
       sums[9]="总人数:"+ sums[9]  +"\n"+result
1655
-      
1652
+
1656 1653
       for(let j in data){
1657 1654
         if(data[j].hasOwnProperty ('Wed_N') == true){
1658 1655
           Wed_N.push(data[j].Wed_N.mode_name)
@@ -1668,11 +1665,11 @@ export default {
1668 1665
         }
1669 1666
       }
1670 1667
       for(let x in countNum){
1671
-        
1668
+
1672 1669
         Wed_N_One.push(x + ':' + countNum[x]+"\n")
1673 1670
       }
1674 1671
       var result = [];
1675
-      for (var i = 0,len = Wed_N_One.length; i < len; i+=29) { 
1672
+      for (var i = 0,len = Wed_N_One.length; i < len; i+=29) {
1676 1673
           var strObjcet = Wed_N_One.slice(i, i+29);
1677 1674
           var str = strObjcet.toString();
1678 1675
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1698,7 +1695,7 @@ export default {
1698 1695
         Thurs_M_One.push(x + ':' + countNum[x]+"\n")
1699 1696
       }
1700 1697
       var result = [];
1701
-      for (var i = 0,len = Thurs_M_One.length; i < len; i+=29) { 
1698
+      for (var i = 0,len = Thurs_M_One.length; i < len; i+=29) {
1702 1699
           var strObjcet = Thurs_M_One.slice(i, i+29);
1703 1700
           var str = strObjcet.toString();
1704 1701
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1724,14 +1721,14 @@ export default {
1724 1721
         Thurs_A_One.push(x + ':' + countNum[x]+"\n")
1725 1722
       }
1726 1723
       var result = [];
1727
-      for (var i = 0,len = Thurs_A_One.length; i < len; i+=29) { 
1724
+      for (var i = 0,len = Thurs_A_One.length; i < len; i+=29) {
1728 1725
           var strObjcet = Thurs_A_One.slice(i, i+29);
1729 1726
           var str = strObjcet.toString();
1730 1727
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
1731 1728
           result.push(str);
1732 1729
       }
1733 1730
       sums[12]="总人数:"+ sums[12] +"\n"+result
1734
-      
1731
+
1735 1732
       for(let j in data){
1736 1733
         if(data[j].hasOwnProperty ('Thurs_N') == true){
1737 1734
           Thurs_N.push(data[j].Thurs_N.mode_name)
@@ -1747,11 +1744,11 @@ export default {
1747 1744
         }
1748 1745
       }
1749 1746
       for(let x in countNum){
1750
-        
1747
+
1751 1748
         Thurs_N_One.push(x + ':' + countNum[x]+"\n")
1752 1749
       }
1753 1750
       var result = [];
1754
-      for (var i = 0,len = Thurs_N_One.length; i < len; i+=29) { 
1751
+      for (var i = 0,len = Thurs_N_One.length; i < len; i+=29) {
1755 1752
           var strObjcet = Thurs_N_One.slice(i, i+29);
1756 1753
           var str = strObjcet.toString();
1757 1754
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1777,7 +1774,7 @@ export default {
1777 1774
         Fri_M_One.push(x + ':' + countNum[x]+"\n")
1778 1775
       }
1779 1776
       var result = [];
1780
-      for (var i = 0,len = Fri_M_One.length; i < len; i+=29) { 
1777
+      for (var i = 0,len = Fri_M_One.length; i < len; i+=29) {
1781 1778
           var strObjcet = Fri_M_One.slice(i, i+29);
1782 1779
           var str = strObjcet.toString();
1783 1780
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1800,18 +1797,18 @@ export default {
1800 1797
         }
1801 1798
       }
1802 1799
       for(let x in countNum){
1803
-        
1800
+
1804 1801
         Fri_A_One.push(x + ':' + countNum[x]+"\n")
1805 1802
       }
1806 1803
       var result = [];
1807
-      for (var i = 0,len = Fri_A_One.length; i < len; i+=29) { 
1804
+      for (var i = 0,len = Fri_A_One.length; i < len; i+=29) {
1808 1805
           var strObjcet = Fri_A_One.slice(i, i+29);
1809 1806
           var str = strObjcet.toString();
1810 1807
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
1811 1808
           result.push(str);
1812 1809
       }
1813 1810
       sums[15]="总人数:"+ sums[15] +"\n"+result
1814
-      
1811
+
1815 1812
       for(let j in data){
1816 1813
         if(data[j].hasOwnProperty ('Fri_N') == true){
1817 1814
           Fri_N.push(data[j].Fri_N.mode_name)
@@ -1827,11 +1824,11 @@ export default {
1827 1824
         }
1828 1825
       }
1829 1826
       for(let x in countNum){
1830
-       
1827
+
1831 1828
         Fri_N_One.push(x + ':' + countNum[x]+"\n")
1832 1829
       }
1833 1830
       var result = [];
1834
-      for (var i = 0,len = Fri_N_One.length; i < len; i+=29) { 
1831
+      for (var i = 0,len = Fri_N_One.length; i < len; i+=29) {
1835 1832
           var strObjcet = Fri_N_One.slice(i, i+29);
1836 1833
           var str = strObjcet.toString();
1837 1834
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1857,7 +1854,7 @@ export default {
1857 1854
         Sat_M_One.push(x + ':' + countNum[x]+"\n")
1858 1855
       }
1859 1856
       var result = [];
1860
-      for (var i = 0,len = Sat_M_One.length; i < len; i+=29) { 
1857
+      for (var i = 0,len = Sat_M_One.length; i < len; i+=29) {
1861 1858
           var strObjcet = Sat_M_One.slice(i, i+29);
1862 1859
           var str = strObjcet.toString();
1863 1860
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1880,18 +1877,18 @@ export default {
1880 1877
         }
1881 1878
       }
1882 1879
       for(let x in countNum){
1883
-       
1880
+
1884 1881
         Sat_A_One.push(x + ':' + countNum[x]+"\n")
1885 1882
       }
1886 1883
       var result = [];
1887
-      for (var i = 0,len = Sat_A_One.length; i < len; i+=29) { 
1884
+      for (var i = 0,len = Sat_A_One.length; i < len; i+=29) {
1888 1885
           var strObjcet = Sat_A_One.slice(i, i+29);
1889 1886
           var str = strObjcet.toString();
1890 1887
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
1891 1888
           result.push(str);
1892 1889
       }
1893 1890
       sums[18]="总人数:"+ sums[18] +"\n"+result
1894
-      
1891
+
1895 1892
       for(let j in data){
1896 1893
         if(data[j].hasOwnProperty ('Sat_N') == true){
1897 1894
           Sat_N.push(data[j].Sat_N.mode_name)
@@ -1907,11 +1904,11 @@ export default {
1907 1904
         }
1908 1905
       }
1909 1906
       for(let x in countNum){
1910
-        
1907
+
1911 1908
         Sat_N_One.push(x + ':' + countNum[x]+"\n")
1912 1909
       }
1913 1910
       var result = [];
1914
-      for (var i = 0,len = Sat_N_One.length; i < len; i+=29) { 
1911
+      for (var i = 0,len = Sat_N_One.length; i < len; i+=29) {
1915 1912
           var strObjcet = Sat_N_One.slice(i, i+29);
1916 1913
           var str = strObjcet.toString();
1917 1914
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1937,7 +1934,7 @@ export default {
1937 1934
         Sun_M_One.push(x + ':' + countNum[x]+"\n")
1938 1935
       }
1939 1936
       var result = [];
1940
-      for (var i = 0,len = Sun_M_One.length; i < len; i+=29) { 
1937
+      for (var i = 0,len = Sun_M_One.length; i < len; i+=29) {
1941 1938
           var strObjcet = Sun_M_One.slice(i, i+29);
1942 1939
           var str = strObjcet.toString();
1943 1940
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -1960,18 +1957,18 @@ export default {
1960 1957
         }
1961 1958
       }
1962 1959
       for(let x in countNum){
1963
-       
1960
+
1964 1961
         Sun_A_One.push(x + ':' + countNum[x]+"\n")
1965 1962
       }
1966 1963
       var result = [];
1967
-      for (var i = 0,len = Sun_A_One.length; i < len; i+=29) { 
1964
+      for (var i = 0,len = Sun_A_One.length; i < len; i+=29) {
1968 1965
           var strObjcet = Sun_A_One.slice(i, i+29);
1969 1966
           var str = strObjcet.toString();
1970 1967
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
1971 1968
           result.push(str);
1972 1969
       }
1973 1970
       sums[21]="总人数:"+ sums[21] +"\n"+result
1974
-      
1971
+
1975 1972
       for(let j in data){
1976 1973
         if(data[j].hasOwnProperty ('Sun_N') == true){
1977 1974
           Sun_N.push(data[j].Sun_N.mode_name)
@@ -1987,11 +1984,11 @@ export default {
1987 1984
         }
1988 1985
       }
1989 1986
       for(let x in countNum){
1990
-        
1987
+
1991 1988
         Sun_N_One.push(x + ':' + countNum[x]+"\n")
1992 1989
       }
1993 1990
       var result = [];
1994
-      for (var i = 0,len = Sun_N_One.length; i < len; i+=29) { 
1991
+      for (var i = 0,len = Sun_N_One.length; i < len; i+=29) {
1995 1992
           var strObjcet = Sun_N_One.slice(i, i+29);
1996 1993
           var str = strObjcet.toString();
1997 1994
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -2613,8 +2610,7 @@ export default {
2613 2610
           //   if (!cflag) {
2614 2611
           //     this.$confirm('此患者有传染病,与此透析机不匹配,确定在此排班吗?', '提示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' })
2615 2612
           //       .then(() => {
2616
-          //         this.changeSchedule.change_action = 'change_device'
2617
-          //       this.changeScheduleActon(formName)
2613
+          //
2618 2614
           //       }).catch(() => {
2619 2615
           //       })
2620 2616
           //   } else {
@@ -2731,8 +2727,6 @@ export default {
2731 2727
     },
2732 2728
 
2733 2729
     changePartition(value) {
2734
-      // this.current_devices = this.zone_device_map[value];
2735
-      // this.device_id = this.current_devices[0].id;
2736 2730
       let params = {
2737 2731
         zone_id:  value,
2738 2732
         sch_type: this.currentData.schedule_type,
@@ -2744,12 +2738,12 @@ export default {
2744 2738
         if (response.data.state == 0) {
2745 2739
           return false;
2746 2740
         } else {
2747
-          console.log('devices的数据',devices);
2748 2741
           var devices = response.data.data.devices;
2749 2742
           this.current_devices = [];
2750 2743
           this.current_devices = devices;
2751 2744
           this.zone_names=devices;
2752 2745
           this.device_id = devices[0].id
2746
+          this.changeSchedule.bed_id = devices[0].id
2753 2747
         }
2754 2748
       });
2755 2749
     },
@@ -2769,7 +2763,9 @@ export default {
2769 2763
           var devices = response.data.data.devices;
2770 2764
           this.current_devices = [];
2771 2765
           this.current_devices = devices;
2772
-          this.device_id = ""
2766
+          this.changeSchedule.bed_id = ""
2767
+          this.changeSchedule.partition_id =  this.currentData.partition_id
2768
+
2773 2769
         }
2774 2770
       });
2775 2771
       // const params = {
@@ -2920,14 +2916,14 @@ export default {
2920 2916
                   //   zone_device_map[device_number.zone.name].push(device_number)
2921 2917
                   // }
2922 2918
                   // this.zone_device_map = zone_device_map
2923
-                  
2919
+                  //
2924 2920
                   // this.zone_names = Object.keys(this.zone_device_map)
2925 2921
                   // if (this.zone_names.length > 0) {
2926 2922
                   //   this.zone_name = this.zone_names[0]
2927 2923
                   //   this.current_devices = this.zone_device_map[this.zone_name]
2928 2924
                   //   this.device_id = this.current_devices[0].id
2929 2925
                   // }
2930
-                  
2926
+                  //
2931 2927
                   // this.zone_device_options = [
2932 2928
                   //   { values: this.zone_names },
2933 2929
                   //   // { values: this.getDeviceNumberNames(this.current_devices) },
@@ -3144,7 +3140,6 @@ export default {
3144 3140
     },
3145 3141
     // 搜索
3146 3142
     search: function() {
3147
-
3148 3143
       let week_type = 0
3149 3144
       var weeklist = moment().format('E');//计算今天是这周第几天
3150 3145
       var first_monday = moment().subtract(weeklist-1, 'days').format('YYYY-MM-DD');//周一日期
@@ -3221,12 +3216,9 @@ export default {
3221 3216
           return false;
3222 3217
         } else {
3223 3218
           var devices = response.data.data.devices;
3224
-          console.log('getSmartDevices的数据',devices);
3225 3219
           this.current_devices = [];
3226 3220
           this.current_devices = devices;
3227
-        //  this.zone_names=devices[0];
3228 3221
           this.device_id = devices[0].id
3229
-          // console.log('zone_namess的数据',this.zone_names);
3230 3222
         }
3231 3223
       });
3232 3224
 
@@ -3372,21 +3364,21 @@ export default {
3372 3364
   // mounted:function(){
3373 3365
   //    this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
3374 3366
   // },
3375
-  
3367
+
3376 3368
 };
3377 3369
 </script>
3378 3370
 
3379 3371
 <style rel="stylesheet/css" lang="scss">
3380
-*{  
3381
-   -webkit-touch-callout:none;  /*系统默认菜单被禁用*/   
3382
-   -webkit-user-select:none; /*webkit浏览器*/   
3383
-   -khtml-user-select:none; /*早期浏览器*/   
3384
-   -moz-user-select:none;/*火狐*/   
3385
-   -ms-user-select:none; /*IE10*/   
3386
-   user-select:none;   
3387
-} 
3388
-input{  
3389
- -webkit-user-select:auto; /*webkit浏览器*/     
3372
+*{
3373
+   -webkit-touch-callout:none;  /*系统默认菜单被禁用*/
3374
+   -webkit-user-select:none; /*webkit浏览器*/
3375
+   -khtml-user-select:none; /*早期浏览器*/
3376
+   -moz-user-select:none;/*火狐*/
3377
+   -ms-user-select:none; /*IE10*/
3378
+   user-select:none;
3379
+}
3380
+input{
3381
+ -webkit-user-select:auto; /*webkit浏览器*/
3390 3382
 }
3391 3383
 textarea{
3392 3384
  -webkit-user-select:auto; /*webkit浏览器*/

+ 71 - 84
src/xt_pages/workforce/components/template_table.vue View File

@@ -39,7 +39,7 @@
39 39
             >
40 40
               <div
41 41
                 draggable="true"
42
-                @dragstart="curInfoDragStart()"
42
+                @dragstart="curInfoDragStart"
43 43
                 class="item"
44 44
                 style="font-weight: bolder"
45 45
               >
@@ -116,7 +116,6 @@
116 116
             @cell-dblclick="itemdblclick"
117 117
             sum-text="总数"
118 118
           >
119
-          <!--   row-class-name="table-row-new-class schedule-table-row"-->
120 119
             <el-table-column
121 120
               label="分区"
122 121
               min-width="50"
@@ -149,13 +148,11 @@
149 148
                     ></el-button>
150 149
                   </div>
151 150
                   <div
152
-                  style="padding: 0px 0px !important;"
153 151
                     @drop="
154 152
                       drop($event, '1_1', scope.row.index, scope.row, scope.row)
155 153
                     "
156 154
                     @dragover="allowDrop"
157 155
                     @dragover.prevent
158
-                    
159 156
                   >
160 157
                     <template-table-item
161 158
                       :info="scope.row['1_1']"
@@ -1150,6 +1147,7 @@
1150 1147
       <span slot="footer" class="dialog-footer">
1151 1148
          <el-button
1152 1149
            type="primary"
1150
+           :loading="changeLoadingOne"
1153 1151
            @click="coverSch()"
1154 1152
          >确定</el-button>
1155 1153
 
@@ -1168,6 +1166,7 @@
1168 1166
       <span slot="footer" class="dialog-footer">
1169 1167
          <el-button
1170 1168
            type="primary"
1169
+           :loading="changeLoadingTwo"
1171 1170
            @click="changeSchTemplateTwo()"
1172 1171
          >确定</el-button>
1173 1172
         <el-button @click="tipDialogVisibleThree = false">取 消</el-button>
@@ -1242,6 +1241,8 @@ export default {
1242 1241
   },
1243 1242
   data() {
1244 1243
     return {
1244
+      changeLoadingOne:false,
1245
+      changeLoadingTwo:false,
1245 1246
       tipDialogVisibleTwo:false,
1246 1247
       tipDialogVisibleThree:false,
1247 1248
       tipDialogVisible:false,
@@ -1324,10 +1325,10 @@ export default {
1324 1325
       opera_device_numbers: [],
1325 1326
       origin_device_numbers: [],
1326 1327
       opera_device_numbers_two: [],
1327
-      
1328
+
1328 1329
       partition_id: 0,
1329 1330
       tableHeight: document.documentElement.clientHeight,
1330
-      template:0,
1331
+      template:null,
1331 1332
       all_template:[],
1332 1333
       active_name:"first",
1333 1334
     };
@@ -2347,7 +2348,7 @@ export default {
2347 2348
 
2348 2349
       }
2349 2350
 
2350
-    }, 
2351
+    },
2351 2352
     deepClone(source) {
2352 2353
       if (!source && typeof source !== 'object') {
2353 2354
         throw new Error('error arguments', 'shallowClone')
@@ -2525,10 +2526,8 @@ export default {
2525 2526
     },
2526 2527
     // 左侧模式点击
2527 2528
     modeClick(row) {
2528
-      console.log('modeClick的数据',row);
2529 2529
       this.cur_info.mode_name = row.name;
2530 2530
       this.cur_info.mode_id = row.id;
2531
-      
2532 2531
     },
2533 2532
     deletePatientMode(row, key, rows) {
2534 2533
       this.isEdit= true
@@ -2574,7 +2573,7 @@ export default {
2574 2573
     },
2575 2574
     // 左侧患者点击
2576 2575
     patientClick(row) {
2577
-      
2576
+      console.log(row);
2578 2577
       this.cur_info.patient_name = row.name;
2579 2578
       this.cur_info.patient_id = row.id;
2580 2579
       this.patient_id_hover = row.id
@@ -2599,8 +2598,9 @@ export default {
2599 2598
       var weekday_timetype = day.split("_");
2600 2599
       var weekday = weekday_timetype[0];
2601 2600
       var time_type = weekday_timetype[1];
2602
-      // console.log(info)
2603
-      // console.log(row)
2601
+
2602
+      console.log(info)
2603
+      console.log(row)
2604 2604
       if(info.pid > 0 ) {
2605 2605
         this.cur_drag_obj = 2
2606 2606
         this.cur_drag_info.schedule_type =time_type;
@@ -2611,29 +2611,8 @@ export default {
2611 2611
         this.cur_drag_info.patient_name = info.name;
2612 2612
         this.cur_drag_info.patient_id = info.pid;
2613 2613
         this.cur_drag_info.id = row.id;
2614
-        
2615 2614
       }
2616
-      // console.log('this.cur_drag_info的数据',this.cur_drag_info);
2617
-      // console.log('drag的数据',row);
2618
-      // console.log('day的数据',time_type);
2619
-      // console.log('day的数据',weekday_timetype);
2620
-     // this.cur_drag_obj = 2
2621
-        //     var week = this.weekDay(day);
2622
-        //     this.cur_drag_info={
2623
-        //       schedule_date : this.weekDays[week[0] - 1],
2624
-        //       schedule_type : week[1],
2625
-        //       bed_id : row.jihao_id,
2626
-        //       partition_id : row.zone_id,
2627
-        //       schedule_week : week[0],
2628
-        //       type_name : this.dayType(week[1]),
2629
-        //       zone_name : row.area,
2630
-        //       bed_name : row.cut,
2631
-        //       mode_id : row[key].mode_id,
2632
-        //       mode_name : row[key].mode_name,
2633
-        //       patient_name : row[key].patient,
2634
-        //       patient_id : row[key].patient_id,
2635
-        //       id : row[key].schedule_id
2636
-        //     }
2615
+
2637 2616
     },
2638 2617
     allowDrop(e) {
2639 2618
       e.preventDefault();
@@ -2817,7 +2796,7 @@ export default {
2817 2796
       this.all_zones = this.unique_two(this.all_zones);
2818 2797
 
2819 2798
       return maked_device_numbers;
2820
-    },  
2799
+    },
2821 2800
     // 替换
2822 2801
     coverSch(){
2823 2802
       let params={
@@ -2833,16 +2812,19 @@ export default {
2833 2812
         patient_id_two:this.cur_temp_info.patient_id,
2834 2813
 
2835 2814
       }
2815
+      this.changeLoadingOne = true
2836 2816
       CoverSchTemplate(params).then((response) => {
2837
-        console.log('CoverSchTemplate的数据',response.data.data);
2838 2817
         if (response.data.state == 0) {
2839 2818
           this.$message.error(response.data.msg);
2840 2819
           this.tipDialogVisibleTwo = false
2820
+          this.changeLoadingOne = false
2841 2821
 
2842 2822
         } else {
2843 2823
           this.$message.success("替换成功");
2844 2824
           this.tipDialogVisible = false
2845 2825
           this.tipDialogVisibleTwo = false
2826
+          this.changeLoadingOne = false
2827
+
2846 2828
           // this.getSchedules();
2847 2829
           this.all_template = response.data.data.items
2848 2830
           this.$emit("setTemplate",response.data.data.items)
@@ -2875,14 +2857,19 @@ export default {
2875 2857
 
2876 2858
 
2877 2859
       }
2860
+      this.changeLoadingTwo = true
2878 2861
       ExchangeSchTemplate(params).then((response) => {
2879 2862
         if (response.data.state == 0) {
2880 2863
           this.$message.error(response.data.msg);
2881 2864
           this.tipDialogVisibleThree = false
2865
+          this.changeLoadingTwo = false
2866
+
2882 2867
         } else {
2883 2868
           this.$message.success("交换成功");
2884 2869
           this.tipDialogVisible = false
2885 2870
           this.tipDialogVisibleThree = false
2871
+          this.changeLoadingTwo = false
2872
+
2886 2873
           // this.getSchedules();
2887 2874
           this.all_template = response.data.data.items
2888 2875
           this.$emit("setTemplate",response.data.data.items)
@@ -2942,7 +2929,7 @@ export default {
2942 2929
           };
2943 2930
         }
2944 2931
       }
2945
-    }, 
2932
+    },
2946 2933
     search_two: function () {
2947 2934
       if (this.keywords.length == 0) {
2948 2935
         this.patients = this.all_patients;
@@ -2986,12 +2973,12 @@ export default {
2986 2973
       if(row[column.property].pid >0 ){
2987 2974
             this.cur_info.patient_id=row[column.property].pid
2988 2975
             this.cur_info.mode_id=row[column.property].treat_mode_id
2989
-            this.patient_id_hover = this.cur_info.patient_id; 
2976
+            this.patient_id_hover = this.cur_info.patient_id;
2990 2977
             this.cur_info.patient_name = row[column.property].name
2991 2978
             this.cur_info.mode_name = row[column.property].treat_mode
2992 2979
             console.log('this.patient_id_hover的数据',this.patient_id_hover);
2993 2980
       }
2994
-      
2981
+
2995 2982
       // else {
2996 2983
       //   this.$refs.selector_dialog.showWith(item.pid, item.treat_mode_id, weekday, time_type, device_number_id)
2997 2984
       // }
@@ -3008,7 +2995,7 @@ export default {
3008 2995
       //     this.currentData.contagions = [];
3009 2996
       //     this.getSchedulePatients();
3010 2997
       //     this.dialogTableVisible = true;
3011
-          
2998
+
3012 2999
       //   }
3013 3000
     },
3014 3001
     // 双击
@@ -3399,7 +3386,7 @@ export default {
3399 3386
         this.data.push(obj);
3400 3387
         this.$refs.selector_dialog.hide();
3401 3388
       }
3402
-    }, 
3389
+    },
3403 3390
     saveActionFour: function () {
3404 3391
       var add_items = [];
3405 3392
       var del_items = [];
@@ -3846,13 +3833,13 @@ export default {
3846 3833
             return obj
3847 3834
           },{})
3848 3835
         }
3849
-       
3836
+
3850 3837
       }
3851 3838
       for(let x in countNum){
3852 3839
         Mon_M_One.push(x + ':' + countNum[x]+"\n")
3853 3840
       }
3854 3841
       var result = [];
3855
-      for (var i = 0,len = Mon_M_One.length; i < len; i+=29) { 
3842
+      for (var i = 0,len = Mon_M_One.length; i < len; i+=29) {
3856 3843
           var strObjcet = Mon_M_One.slice(i, i+29);
3857 3844
           var str = strObjcet.toString();
3858 3845
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -3878,14 +3865,14 @@ export default {
3878 3865
         Mon_A_One.push(x + ':' + countNum[x]+"\n")
3879 3866
       }
3880 3867
       var result = [];
3881
-      for (var i = 0,len = Mon_A_One.length; i < len; i+=29) { 
3868
+      for (var i = 0,len = Mon_A_One.length; i < len; i+=29) {
3882 3869
           var strObjcet = Mon_A_One.slice(i, i+29);
3883 3870
           var str = strObjcet.toString();
3884 3871
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3885 3872
           result.push(str);
3886 3873
       }
3887 3874
       sums[3]="总人数:"+ sums[3] +"\n"+result
3888
-      
3875
+
3889 3876
       for(let j in data){
3890 3877
         if(data[j].hasOwnProperty ('1_3') == true){
3891 3878
           Mon_N.push(data[j]['1_3'].treat_mode)
@@ -3904,7 +3891,7 @@ export default {
3904 3891
         Mon_N_One.push(x + ':' + countNum[x]+"\n")
3905 3892
       }
3906 3893
       var result = [];
3907
-      for (var i = 0,len = Mon_N_One.length; i < len; i+=29) { 
3894
+      for (var i = 0,len = Mon_N_One.length; i < len; i+=29) {
3908 3895
           var strObjcet = Mon_N_One.slice(i, i+29);
3909 3896
           var str = strObjcet.toString();
3910 3897
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -3930,7 +3917,7 @@ export default {
3930 3917
         Tue_M_One.push(x + ':' + countNum[x]+"\n")
3931 3918
       }
3932 3919
       var result = [];
3933
-      for (var i = 0,len = Tue_M_One.length; i < len; i+=29) { 
3920
+      for (var i = 0,len = Tue_M_One.length; i < len; i+=29) {
3934 3921
           var strObjcet = Tue_M_One.slice(i, i+29);
3935 3922
           var str = strObjcet.toString();
3936 3923
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -3956,14 +3943,14 @@ export default {
3956 3943
         Tue_A_One.push(x + ':' + countNum[x]+"\n")
3957 3944
       }
3958 3945
       var result = [];
3959
-      for (var i = 0,len = Tue_A_One.length; i < len; i+=29) { 
3946
+      for (var i = 0,len = Tue_A_One.length; i < len; i+=29) {
3960 3947
           var strObjcet = Tue_A_One.slice(i, i+29);
3961 3948
           var str = strObjcet.toString();
3962 3949
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3963 3950
           result.push(str);
3964 3951
       }
3965 3952
       sums[6]="总人数:"+ sums[6] +"\n"+result
3966
-      
3953
+
3967 3954
       for(let j in data){
3968 3955
         if(data[j].hasOwnProperty ('2_3') == true){
3969 3956
           Tue_N.push(data[j]['2_2'].treat_mode)
@@ -3982,7 +3969,7 @@ export default {
3982 3969
         Tue_N_One.push(x + ':' + countNum[x]+"\n")
3983 3970
       }
3984 3971
       var result = [];
3985
-      for (var i = 0,len = Tue_N_One.length; i < len; i+=29) { 
3972
+      for (var i = 0,len = Tue_N_One.length; i < len; i+=29) {
3986 3973
           var strObjcet = Tue_N_One.slice(i, i+29);
3987 3974
           var str = strObjcet.toString();
3988 3975
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4008,7 +3995,7 @@ export default {
4008 3995
         Wed_M_One.push(x + ':' + countNum[x]+"\n")
4009 3996
       }
4010 3997
       var result = [];
4011
-      for (var i = 0,len = Wed_M_One.length; i < len; i+=29) { 
3998
+      for (var i = 0,len = Wed_M_One.length; i < len; i+=29) {
4012 3999
           var strObjcet = Wed_M_One.slice(i, i+29);
4013 4000
           var str = strObjcet.toString();
4014 4001
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4034,14 +4021,14 @@ export default {
4034 4021
         Wed_A_One.push(x + ':' + countNum[x]+"\n")
4035 4022
       }
4036 4023
       var result = [];
4037
-      for (var i = 0,len = Wed_A_One.length; i < len; i+=29) { 
4024
+      for (var i = 0,len = Wed_A_One.length; i < len; i+=29) {
4038 4025
           var strObjcet = Wed_A_One.slice(i, i+29);
4039 4026
           var str = strObjcet.toString();
4040 4027
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4041 4028
           result.push(str);
4042 4029
       }
4043 4030
       sums[9]="总人数:"+ sums[9]  +"\n"+result
4044
-      
4031
+
4045 4032
       for(let j in data){
4046 4033
         if(data[j].hasOwnProperty ('3_3') == true){
4047 4034
           Wed_N.push(data[j]['3_3'].treat_mode)
@@ -4057,11 +4044,11 @@ export default {
4057 4044
         }
4058 4045
       }
4059 4046
       for(let x in countNum){
4060
-        
4047
+
4061 4048
         Wed_N_One.push(x + ':' + countNum[x]+"\n")
4062 4049
       }
4063 4050
       var result = [];
4064
-      for (var i = 0,len = Wed_N_One.length; i < len; i+=29) { 
4051
+      for (var i = 0,len = Wed_N_One.length; i < len; i+=29) {
4065 4052
           var strObjcet = Wed_N_One.slice(i, i+29);
4066 4053
           var str = strObjcet.toString();
4067 4054
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4087,7 +4074,7 @@ export default {
4087 4074
         Thurs_M_One.push(x + ':' + countNum[x]+"\n")
4088 4075
       }
4089 4076
       var result = [];
4090
-      for (var i = 0,len = Thurs_M_One.length; i < len; i+=29) { 
4077
+      for (var i = 0,len = Thurs_M_One.length; i < len; i+=29) {
4091 4078
           var strObjcet = Thurs_M_One.slice(i, i+29);
4092 4079
           var str = strObjcet.toString();
4093 4080
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4113,14 +4100,14 @@ export default {
4113 4100
         Thurs_A_One.push(x + ':' + countNum[x]+"\n")
4114 4101
       }
4115 4102
       var result = [];
4116
-      for (var i = 0,len = Thurs_A_One.length; i < len; i+=29) { 
4103
+      for (var i = 0,len = Thurs_A_One.length; i < len; i+=29) {
4117 4104
           var strObjcet = Thurs_A_One.slice(i, i+29);
4118 4105
           var str = strObjcet.toString();
4119 4106
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4120 4107
           result.push(str);
4121 4108
       }
4122 4109
       sums[12]="总人数:"+ sums[12] +"\n"+result
4123
-      
4110
+
4124 4111
       for(let j in data){
4125 4112
         if(data[j].hasOwnProperty ('4_3') == true){
4126 4113
           Thurs_N.push(data[j]['4_3'].treat_mode)
@@ -4136,11 +4123,11 @@ export default {
4136 4123
         }
4137 4124
       }
4138 4125
       for(let x in countNum){
4139
-        
4126
+
4140 4127
         Thurs_N_One.push(x + ':' + countNum[x]+"\n")
4141 4128
       }
4142 4129
       var result = [];
4143
-      for (var i = 0,len = Thurs_N_One.length; i < len; i+=29) { 
4130
+      for (var i = 0,len = Thurs_N_One.length; i < len; i+=29) {
4144 4131
           var strObjcet = Thurs_N_One.slice(i, i+29);
4145 4132
           var str = strObjcet.toString();
4146 4133
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4166,7 +4153,7 @@ export default {
4166 4153
         Fri_M_One.push(x + ':' + countNum[x]+"\n")
4167 4154
       }
4168 4155
       var result = [];
4169
-      for (var i = 0,len = Fri_M_One.length; i < len; i+=29) { 
4156
+      for (var i = 0,len = Fri_M_One.length; i < len; i+=29) {
4170 4157
           var strObjcet = Fri_M_One.slice(i, i+29);
4171 4158
           var str = strObjcet.toString();
4172 4159
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4189,18 +4176,18 @@ export default {
4189 4176
         }
4190 4177
       }
4191 4178
       for(let x in countNum){
4192
-        
4179
+
4193 4180
         Fri_A_One.push(x + ':' + countNum[x]+"\n")
4194 4181
       }
4195 4182
       var result = [];
4196
-      for (var i = 0,len = Fri_A_One.length; i < len; i+=29) { 
4183
+      for (var i = 0,len = Fri_A_One.length; i < len; i+=29) {
4197 4184
           var strObjcet = Fri_A_One.slice(i, i+29);
4198 4185
           var str = strObjcet.toString();
4199 4186
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4200 4187
           result.push(str);
4201 4188
       }
4202 4189
       sums[15]="总人数:"+ sums[15] +"\n"+result
4203
-      
4190
+
4204 4191
       for(let j in data){
4205 4192
         if(data[j].hasOwnProperty ('5_3') == true){
4206 4193
           Fri_N.push(data[j]['5_3'].treat_mode)
@@ -4216,11 +4203,11 @@ export default {
4216 4203
         }
4217 4204
       }
4218 4205
       for(let x in countNum){
4219
-       
4206
+
4220 4207
         Fri_N_One.push(x + ':' + countNum[x]+"\n")
4221 4208
       }
4222 4209
       var result = [];
4223
-      for (var i = 0,len = Fri_N_One.length; i < len; i+=29) { 
4210
+      for (var i = 0,len = Fri_N_One.length; i < len; i+=29) {
4224 4211
           var strObjcet = Fri_N_One.slice(i, i+29);
4225 4212
           var str = strObjcet.toString();
4226 4213
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4246,7 +4233,7 @@ export default {
4246 4233
         Sat_M_One.push(x + ':' + countNum[x]+"\n")
4247 4234
       }
4248 4235
       var result = [];
4249
-      for (var i = 0,len = Sat_M_One.length; i < len; i+=29) { 
4236
+      for (var i = 0,len = Sat_M_One.length; i < len; i+=29) {
4250 4237
           var strObjcet = Sat_M_One.slice(i, i+29);
4251 4238
           var str = strObjcet.toString();
4252 4239
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4269,18 +4256,18 @@ export default {
4269 4256
         }
4270 4257
       }
4271 4258
       for(let x in countNum){
4272
-       
4259
+
4273 4260
         Sat_A_One.push(x + ':' + countNum[x]+"\n")
4274 4261
       }
4275 4262
       var result = [];
4276
-      for (var i = 0,len = Sat_A_One.length; i < len; i+=29) { 
4263
+      for (var i = 0,len = Sat_A_One.length; i < len; i+=29) {
4277 4264
           var strObjcet = Sat_A_One.slice(i, i+29);
4278 4265
           var str = strObjcet.toString();
4279 4266
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4280 4267
           result.push(str);
4281 4268
       }
4282 4269
       sums[18]="总人数:"+ sums[18] +"\n"+result
4283
-      
4270
+
4284 4271
       for(let j in data){
4285 4272
         if(data[j].hasOwnProperty ('6_3') == true){
4286 4273
           Sat_N.push(data[j]['6_3'].treat_mode)
@@ -4299,7 +4286,7 @@ export default {
4299 4286
         Sat_N_One.push(x + ':' + countNum[x]+"\n")
4300 4287
       }
4301 4288
       var result = [];
4302
-      for (var i = 0,len = Sat_N_One.length; i < len; i+=29) { 
4289
+      for (var i = 0,len = Sat_N_One.length; i < len; i+=29) {
4303 4290
           var strObjcet = Sat_N_One.slice(i, i+29);
4304 4291
           var str = strObjcet.toString();
4305 4292
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4325,7 +4312,7 @@ export default {
4325 4312
         Sun_M_One.push(x + ':' + countNum[x]+"\n")
4326 4313
       }
4327 4314
       var result = [];
4328
-      for (var i = 0,len = Sun_M_One.length; i < len; i+=29) { 
4315
+      for (var i = 0,len = Sun_M_One.length; i < len; i+=29) {
4329 4316
           var strObjcet = Sun_M_One.slice(i, i+29);
4330 4317
           var str = strObjcet.toString();
4331 4318
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4348,18 +4335,18 @@ export default {
4348 4335
         }
4349 4336
       }
4350 4337
       for(let x in countNum){
4351
-       
4338
+
4352 4339
         Sun_A_One.push(x + ':' + countNum[x]+"\n")
4353 4340
       }
4354 4341
       var result = [];
4355
-      for (var i = 0,len = Sun_A_One.length; i < len; i+=29) { 
4342
+      for (var i = 0,len = Sun_A_One.length; i < len; i+=29) {
4356 4343
           var strObjcet = Sun_A_One.slice(i, i+29);
4357 4344
           var str = strObjcet.toString();
4358 4345
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4359 4346
           result.push(str);
4360 4347
       }
4361 4348
       sums[21]="总人数:"+ sums[21] +"\n"+result
4362
-      
4349
+
4363 4350
       for(let j in data){
4364 4351
         if(data[j].hasOwnProperty ('7_3') == true){
4365 4352
           Sun_N.push(data[j]['7_3'].treat_mode)
@@ -4375,11 +4362,11 @@ export default {
4375 4362
         }
4376 4363
       }
4377 4364
       for(let x in countNum){
4378
-        
4365
+
4379 4366
         Sun_N_One.push(x + ':' + countNum[x]+"\n")
4380 4367
       }
4381 4368
       var result = [];
4382
-      for (var i = 0,len = Sun_N_One.length; i < len; i+=29) { 
4369
+      for (var i = 0,len = Sun_N_One.length; i < len; i+=29) {
4383 4370
           var strObjcet = Sun_N_One.slice(i, i+29);
4384 4371
           var str = strObjcet.toString();
4385 4372
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4387,20 +4374,20 @@ export default {
4387 4374
       }
4388 4375
       sums[22]="总人数:"+ sums[22] +"\n"+result
4389 4376
       }
4390
-      
4377
+
4391 4378
       return sums;
4392 4379
     },
4393 4380
     // 右侧表格的回调
4394 4381
     cellClass({row,column, rowIndex, columnIndex}){
4395 4382
       // console.log('cellClass数据',row);
4396 4383
       if(columnIndex==1&&row.zone.type==2){
4397
-        // 
4384
+        //
4398 4385
         return "table-row-new-class schedule-table-row Infectious_disease";
4399 4386
       }
4400 4387
       if(columnIndex==0 ||columnIndex==1){
4401 4388
         return ''
4402 4389
       }else{
4403
-          if(row[column.property].pid >0 && 
4390
+          if(row[column.property].pid >0 &&
4404 4391
           row[column.property].pid == this.patient_id_hover){
4405 4392
             return 'hover-td'
4406 4393
           }
@@ -4525,7 +4512,7 @@ export default {
4525 4512
 }
4526 4513
 
4527 4514
 #table_data {
4528
-  min-height: calc(100vh - 350px);
4515
+  /*min-height: calc(100vh - 350px);*/
4529 4516
 }
4530 4517
 
4531 4518
 #table_data ::-webkit-scrollbar {
@@ -4556,9 +4543,9 @@ export default {
4556 4543
 //   min-height: calc(100vh - 350px);
4557 4544
 // }
4558 4545
 
4559
-// #table_data ::-webkit-scrollbar {
4560
-//   height: 15px;
4561
-// }
4546
+#table_data ::-webkit-scrollbar {
4547
+  height: 15px;
4548
+}
4562 4549
 
4563 4550
 // .del_table_btn {
4564 4551
 //   position: absolute;

File diff suppressed because it is too large
+ 5828 - 0
src/xt_pages/workforce/editTableData.vue


+ 2 - 2
src/xt_pages/workforce/printOne.vue View File

@@ -60,7 +60,7 @@
60 60
                     <div style="min-height: 80px">
61 61
                       <div class="proj">
62 62
                         <div class="proj_item">
63
-                          <p v-html="getPatientName(item.schedule_type,it.partition_id)" class="zone_name">
63
+                          <p v-html="getPatientName(item.schedule_type,it.partition_id)" class="zone_name" style="font-size:20px">
64 64
                             
65 65
                           </p>
66 66
                         </div>
@@ -665,7 +665,7 @@ export default {
665 665
           if (this.hiddenFlag) {
666 666
             str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
667 667
           } else {
668
-            str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + '  ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + '  ' + '上机备注:' + arr[i].order.order_remark + ')<br/>'
668
+            str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + '  ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + '  ' + '排班备注:' + arr[i].order.schedule_remark + ')<br/>'
669 669
           }
670 670
         }
671 671
       }

+ 31 - 6
src/xt_pages/workforce/remind_print_setting.vue View File

@@ -19,7 +19,7 @@
19 19
         <div class="print_main_content">
20 20
           <div class="table_panel">
21 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">
22
+              <div class="signPrint" v-if="org_id != 10188  && org_id!=10340 && org_id!=9671 && org_id!=9675">
23 23
                 <div>
24 24
                   <span v-if="printObj.mode == 1">透析模式:
25 25
                     <span v-if="main_collection.mode_id ==1">HD</span>
@@ -75,9 +75,9 @@
75 75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
76 76
                 </div>
77 77
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
78
-                  <span v-if="org_id == 10138 ">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
78
+                  <span v-if="org_id == 10138 || org_id == 0 || org_id == 10278">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
79 79
                   <span v-else >
80
-                   <span>{{getAnticoagulant(main_collection.dialysissolution.mode_id)}}</span>
80
+                   <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
81 81
                   </span>
82 82
                 </div>
83 83
                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
@@ -127,7 +127,9 @@
127 127
                  <div>
128 128
                   <span v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器:</span>
129 129
                   <span v-if="printObj.dialyzers == 1&& main_collection.dialysissolution.dialysis_dialyszers!=''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
130
-                  <span v-if="printObj.perfusion_apparatus == 1&& main_collection.dialysissolution.dialysis_dialyszers!=''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
130
+                  <span v-if="printObj.perfusion_apparatus == 1&& main_collection.dialysissolution.dialysis_irrigation!=''">{{main_collection.dialysissolution.dialysis_irrigation}}</span>
131
+
132
+                  <span v-if="org_id == 10440 && main_collection.dialysissolution.dialyzer_perfusion_apparatus!=''">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
131 133
                 </div>
132 134
                 <div v-if="printObj.doctor_advice == 1">
133 135
                     医嘱:
@@ -135,7 +137,7 @@
135 137
                 </div>
136 138
                 
137 139
                
138
-                <div>打印时间:{{currentDate}}</div>
140
+                <div v-if="org_id!=10440&&org_id!=0">打印时间:{{currentDate}}</div>
139 141
               </div>
140 142
 
141 143
               <div class="signPrint" style="font-size:16px;" v-else>
@@ -380,7 +382,7 @@
380 382
                 days = '星期日';
381 383
                 break;
382 384
           }
383
-          var str = year + "年" + month + "月" + day + "日  " + days;
385
+          var str = year + "年" + month + "月" + day + "日  ";
384 386
           this.currentDate = str
385 387
           }
386 388
        })
@@ -650,6 +652,29 @@
650 652
         if(name == 7){
651 653
          name = "低分子肝素钠"
652 654
        }
655
+       if(name == 8){
656
+         name = "依诺肝素"
657
+       }
658
+
659
+       if(name == 9){
660
+         name = "达肝素"
661
+       }
662
+       if(name == 10){
663
+         name = "体外抗凝"
664
+       }
665
+
666
+       if(name == 11){
667
+         name = "那屈肝素"
668
+       }
669
+
670
+       if(name == 12){
671
+         name = "无抗凝剂"
672
+       }
673
+       if(name == 13){
674
+         name = "那屈肝素钙"
675
+       }
676
+
677
+
653 678
 
654 679
        return name
655 680
      },

+ 58 - 10
src/xt_pages/workforce/schedule_print.vue View File

@@ -57,15 +57,20 @@
57 57
                 </td>
58 58
                 <td :width="td_4_width" valign="top">
59 59
                   <div class="proj" v-if="Object.keys(main_collection.hdf).length > 0">
60
-                    <div class="proj_title">血滤:</div>
60
+                    <div class="proj_title">血滤(HDF):</div>
61 61
                     <div class="proj_item" v-html="patient_other_names(main_collection.hdf)">
62 62
                     </div>
63 63
                   </div>
64 64
                   <div class="proj" v-if="Object.keys(main_collection.hd_hp).length > 0">
65
-                    <div class="proj_title">灌流:</div>
65
+                    <div class="proj_title">灌流(HD+HP):</div>
66 66
                     <div class="proj_item" v-html="patient_other_names(main_collection.hd_hp)">>
67 67
                     </div>
68 68
                   </div>
69
+                   <div class="proj" v-if="Object.keys(main_collection.hfhd_hp).length > 0">
70
+                    <div class="proj_title">灌流(HFHD+HP):</div>
71
+                    <div class="proj_item" v-html="patient_other_names(main_collection.hfhd_hp)">>
72
+                    </div>
73
+                  </div>
69 74
                 </td>
70 75
               </tr>
71 76
               </tbody>
@@ -110,7 +115,7 @@
110 115
             },
111 116
             hdf: [ /* schedule, ... */],
112 117
             hd_hp: [ /* schedule, ... */],
113
-
118
+            hfhd_hp:[],
114 119
             new_hdf:{
115 120
               am: { /* zone_name: [ schedule, ... ] */ },
116 121
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -120,7 +125,12 @@
120 125
               am: { /* zone_name: [ schedule, ... ] */ },
121 126
               pm: { /* zone_name: [ schedule, ... ] */ },
122 127
               evening: { /* zone_name: [ schedule, ... ] */ }
123
-            }
128
+            },
129
+            new_hfhd_hp:{
130
+              am: { /* zone_name: [ schedule, ... ] */ },
131
+              pm: { /* zone_name: [ schedule, ... ] */ },
132
+              evening: { /* zone_name: [ schedule, ... ] */ }
133
+            },
124 134
 
125 135
           },
126 136
           {
@@ -133,6 +143,7 @@
133 143
             },
134 144
             hdf: [ /* schedule, ... */],
135 145
             hd_hp: [ /* schedule, ... */],
146
+            hfhd_hp:[],
136 147
             new_hdf:{
137 148
               am: { /* zone_name: [ schedule, ... ] */ },
138 149
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -142,7 +153,12 @@
142 153
               am: { /* zone_name: [ schedule, ... ] */ },
143 154
               pm: { /* zone_name: [ schedule, ... ] */ },
144 155
               evening: { /* zone_name: [ schedule, ... ] */ }
145
-            }
156
+            },
157
+            new_hfhd_hp:{
158
+              am: { /* zone_name: [ schedule, ... ] */ },
159
+              pm: { /* zone_name: [ schedule, ... ] */ },
160
+              evening: { /* zone_name: [ schedule, ... ] */ }
161
+            },
146 162
           },
147 163
           {
148 164
             day: 3,
@@ -154,6 +170,7 @@
154 170
             },
155 171
             hdf: [ /* schedule, ... */],
156 172
             hd_hp: [ /* schedule, ... */],
173
+            hfhd_hp:[],
157 174
             new_hdf:{
158 175
               am: { /* zone_name: [ schedule, ... ] */ },
159 176
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -163,7 +180,12 @@
163 180
               am: { /* zone_name: [ schedule, ... ] */ },
164 181
               pm: { /* zone_name: [ schedule, ... ] */ },
165 182
               evening: { /* zone_name: [ schedule, ... ] */ }
166
-            }
183
+            },
184
+             new_hfhd_hp:{
185
+              am: { /* zone_name: [ schedule, ... ] */ },
186
+              pm: { /* zone_name: [ schedule, ... ] */ },
187
+              evening: { /* zone_name: [ schedule, ... ] */ }
188
+            },
167 189
           },
168 190
           {
169 191
             day: 4,
@@ -175,6 +197,7 @@
175 197
             },
176 198
             hdf: [ /* schedule, ... */],
177 199
             hd_hp: [ /* schedule, ... */],
200
+            hfhd_hp:[],
178 201
             new_hdf:{
179 202
               am: { /* zone_name: [ schedule, ... ] */ },
180 203
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -184,7 +207,12 @@
184 207
               am: { /* zone_name: [ schedule, ... ] */ },
185 208
               pm: { /* zone_name: [ schedule, ... ] */ },
186 209
               evening: { /* zone_name: [ schedule, ... ] */ }
187
-            }
210
+            },
211
+             new_hfhd_hp:{
212
+              am: { /* zone_name: [ schedule, ... ] */ },
213
+              pm: { /* zone_name: [ schedule, ... ] */ },
214
+              evening: { /* zone_name: [ schedule, ... ] */ }
215
+            },
188 216
           },
189 217
           {
190 218
             day: 5,
@@ -196,6 +224,7 @@
196 224
             },
197 225
             hdf: [ /* schedule, ... */],
198 226
             hd_hp: [ /* schedule, ... */],
227
+            hfhd_hp:[],
199 228
             new_hdf:{
200 229
               am: { /* zone_name: [ schedule, ... ] */ },
201 230
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -205,7 +234,12 @@
205 234
               am: { /* zone_name: [ schedule, ... ] */ },
206 235
               pm: { /* zone_name: [ schedule, ... ] */ },
207 236
               evening: { /* zone_name: [ schedule, ... ] */ }
208
-            }
237
+            },
238
+             new_hfhd_hp:{
239
+              am: { /* zone_name: [ schedule, ... ] */ },
240
+              pm: { /* zone_name: [ schedule, ... ] */ },
241
+              evening: { /* zone_name: [ schedule, ... ] */ }
242
+            },
209 243
           },
210 244
           {
211 245
             day: 6,
@@ -217,6 +251,7 @@
217 251
             },
218 252
             hdf: [ /* schedule, ... */],
219 253
             hd_hp: [ /* schedule, ... */],
254
+            hfhd_hp:[],
220 255
             new_hdf:{
221 256
               am: { /* zone_name: [ schedule, ... ] */ },
222 257
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -226,7 +261,12 @@
226 261
               am: { /* zone_name: [ schedule, ... ] */ },
227 262
               pm: { /* zone_name: [ schedule, ... ] */ },
228 263
               evening: { /* zone_name: [ schedule, ... ] */ }
229
-            }
264
+            },
265
+             new_hfhd_hp:{
266
+              am: { /* zone_name: [ schedule, ... ] */ },
267
+              pm: { /* zone_name: [ schedule, ... ] */ },
268
+              evening: { /* zone_name: [ schedule, ... ] */ }
269
+            },
230 270
           },
231 271
           {
232 272
             day: 7,
@@ -238,6 +278,7 @@
238 278
             },
239 279
             hdf: [ /* schedule, ... */],
240 280
             hd_hp: [ /* schedule, ... */],
281
+            hfhd_hp:[],
241 282
             new_hdf:{
242 283
               am: { /* zone_name: [ schedule, ... ] */ },
243 284
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -247,7 +288,12 @@
247 288
               am: { /* zone_name: [ schedule, ... ] */ },
248 289
               pm: { /* zone_name: [ schedule, ... ] */ },
249 290
               evening: { /* zone_name: [ schedule, ... ] */ }
250
-            }
291
+            },
292
+             new_hfhd_hp:{
293
+              am: { /* zone_name: [ schedule, ... ] */ },
294
+              pm: { /* zone_name: [ schedule, ... ] */ },
295
+              evening: { /* zone_name: [ schedule, ... ] */ }
296
+            },
251 297
           }
252 298
         ],
253 299
 
@@ -320,6 +366,8 @@
320 366
             } else if (schedule.mode.id == 3) { // HD+HF
321 367
 
322 368
               main_collection.hd_hp.push(schedule)
369
+            }else if(schedule.mode.id == 9){ //HFHD+HP
370
+               main_collection.hfhd_hp.push(schedule)
323 371
             }
324 372
 
325 373
           }

File diff suppressed because it is too large
+ 3453 - 0
src/xt_pages/workforce/tableData.vue