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
-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
 module.exports = {
6
 module.exports = {
7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
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
   BASE_API: '"http://localhost:9531"',
11
   BASE_API: '"http://localhost:9531"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',

+ 0 - 0
favicon.ico View File


+ 38 - 38
index.html View File

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
 }
505
 }
506
 
506
 
507
 export function getNewSchedualDoctors(params) {
507
 export function getNewSchedualDoctors(params) {
508
+  console.log('params-----', params)
508
   return request({
509
   return request({
509
     url: '/api/schedule/new/advices',
510
     url: '/api/schedule/new/advices',
510
     method: 'get',
511
     method: 'get',
568
   })
569
   })
569
 }
570
 }
570
 
571
 
571
-export function GetMobileScheduleList(params){
572
+export function GetMobileScheduleList(params) {
572
   return request({
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
     params: params
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
 }
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
     illness_discharge: '出院时病情',
405
     illness_discharge: '出院时病情',
406
     discharge_advice: '出院医嘱',
406
     discharge_advice: '出院医嘱',
407
     dialysis_remark: '透析备注',
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
         title: '批量打印',
789
         title: '批量打印',
790
         noCache: true
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
       title: 'templateSummary',
247
       title: 'templateSummary',
248
       noCache: true
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

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
       isVisibility: "",
484
       isVisibility: "",
485
       propsTable: "",
485
       propsTable: "",
486
       doctorList: [],
486
       doctorList: [],
487
-      admin_user_id: 0,
487
+      admin_user_id:0,
488
       waiting_drug: [], //待发药列表
488
       waiting_drug: [], //待发药列表
489
       issued_drug: [], //已发药列表
489
       issued_drug: [], //已发药列表
490
       currentRow: null,
490
       currentRow: null,
1091
       };
1091
       };
1092
       getpatientswithdrugs(params).then((res) => {
1092
       getpatientswithdrugs(params).then((res) => {
1093
         if (res.data.state == 1) {
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
           this.total = res.data.data.total; //合计
1113
           this.total = res.data.data.total; //合计
1096
         } else {
1114
         } else {
1097
           this.$message.error(res.data.msg);
1115
           this.$message.error(res.data.msg);

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

515
     },
515
     },
516
     //获取患者信息详情
516
     //获取患者信息详情
517
     getpatientdetails(val) {
517
     getpatientdetails(val) {
518
+      console.log("val2332323223",this.currentRow)
518
       var params = {
519
       var params = {
519
         patient_id: this.currentRow.PatientID,
520
         patient_id: this.currentRow.PatientID,
520
         is_medicine: val,
521
         is_medicine: val,
522
       };
523
       };
523
       getpharmacycontent(params).then((res) => {
524
       getpharmacycontent(params).then((res) => {
524
         if (res.data.state == 1) {
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
         } else {
543
         } else {
527
           this.$message.error(res.data.msg);
544
           this.$message.error(res.data.msg);
528
         }
545
         }

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

56
         { label: this.$t("data_config.discharge_advice"), key:"discharge_advice"},
56
         { label: this.$t("data_config.discharge_advice"), key:"discharge_advice"},
57
         { label: this.$t("data_config.dialysis_remark"), key:"dialysis_remark"},
57
         { label: this.$t("data_config.dialysis_remark"), key:"dialysis_remark"},
58
         { label: this.$t("data_config.catheter_operation"), key:"catheter_operation"},
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
       activeName: "education",
66
       activeName: "education",
61
       createdTimes: 0
67
       createdTimes: 0

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

159
         </p>
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
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
163
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
164
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
164
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
165
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
165
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
166
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
166
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
167
         </p>
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
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
170
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
171
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
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
         </p>
177
         </p>
173
       
178
       
174
         <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
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
                     年龄:<span
47
                     年龄:<span
48
                       style="display:inline-block;margin-left:10px;"
48
                       style="display:inline-block;margin-left:10px;"
49
                     >
49
                     >
50
-                    {{ getAge(record.patient) }}
50
+                    {{ getAge(record.patient.id_card_no) }}
51
                     </span>
51
                     </span>
52
                   </td>
52
                   </td>
53
                   <td style="text-align:center;width:160px">
53
                   <td style="text-align:center;width:160px">
1075
             年龄:<span
1075
             年龄:<span
1076
               style="display:inline-block;margin-left:10px;"
1076
               style="display:inline-block;margin-left:10px;"
1077
             >
1077
             >
1078
-            {{ getAge(record.patient) }}
1078
+            {{ getAge(record.patient.id_card_no) }}
1079
             </span>
1079
             </span>
1080
           </td>
1080
           </td>
1081
           <td style="text-align:center;width:160px">
1081
           <td style="text-align:center;width:160px">
1723
         return val.age
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
     newAdviceGroupObject: function() {
1739
     newAdviceGroupObject: function() {
1727
       return Object.assign(
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
                               : "/"
934
                               : "/"
935
                           }}
935
                           }}
936
                         </div>
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
                       </div>
939
                       </div>
939
                       <div class="inline_block" style="flex: 1">
940
                       <div class="inline_block" style="flex: 1">
940
                         干体重:
941
                         干体重:
1428
                           </td>
1429
                           </td>
1429
 
1430
 
1430
                           <td>
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
                               monitor_record.ultrafiltration_volume
1441
                               monitor_record.ultrafiltration_volume
1433
                                 ? monitor_record.ultrafiltration_volume
1442
                                 ? monitor_record.ultrafiltration_volume
1434
                                 : ""
1443
                                 : ""
1435
-                            }}</span>
1444
+                            }}
1445
+                            </span>
1436
                           </td>
1446
                           </td>
1437
 
1447
 
1438
                           <td
1448
                           <td
1504
                                   "
1514
                                   "
1505
                                   >【开始透析】</template
1515
                                   >【开始透析】</template
1506
                                 >
1516
                                 >
1507
-                                <template
1517
+                                <!-- <template
1508
                                   v-if="
1518
                                   v-if="
1509
                                     record.dialysis_order &&
1519
                                     record.dialysis_order &&
1510
                                     monitor_record.operate_time ==
1520
                                     monitor_record.operate_time ==
1511
                                       record.dialysis_order.end_time
1521
                                       record.dialysis_order.end_time
1512
                                   "
1522
                                   "
1513
                                   >【结束透析】</template
1523
                                   >【结束透析】</template
1514
-                                >
1524
+                                > -->
1515
                                 {{ monitor_record.end }}
1525
                                 {{ monitor_record.end }}
1516
                                 {{ monitor_record.symptom }} &nbsp;{{
1526
                                 {{ monitor_record.symptom }} &nbsp;{{
1517
                                   monitor_record.dispose
1527
                                   monitor_record.dispose
2233
                         style="flex: 1"
2243
                         style="flex: 1"
2234
                         v-if="org_id != 10223"
2244
                         v-if="org_id != 10223"
2235
                       >
2245
                       >
2236
-                        透析中入量:
2246
+                        透析中入量(L)
2237
                         <div
2247
                         <div
2238
                           class="under_line"
2248
                           class="under_line"
2239
                           style="width: 100px; text-align: center"
2249
                           style="width: 100px; text-align: center"
2806
                           <template
2816
                           <template
2807
                             v-if="
2817
                             v-if="
2808
                               record.prescription &&
2818
                               record.prescription &&
2809
-                              record.prescription.prescription_doctor
2819
+                              record.prescription.creater
2810
                             "
2820
                             "
2811
                           >
2821
                           >
2812
                             <span
2822
                             <span
2813
                               v-if="
2823
                               v-if="
2814
                                 setAdminUserES(
2824
                                 setAdminUserES(
2815
                                   record.prescription,
2825
                                   record.prescription,
2816
-                                  'prescription_doctor'
2826
+                                  'creater'
2817
                                 ) == ''
2827
                                 ) == ''
2818
                               "
2828
                               "
2819
                               >{{
2829
                               >{{
2820
                                 getAdminUser(
2830
                                 getAdminUser(
2821
                                   record.prescription,
2831
                                   record.prescription,
2822
-                                  "prescription_doctor"
2832
+                                  "creater"
2823
                                 )
2833
                                 )
2824
                               }}</span
2834
                               }}</span
2825
                             >
2835
                             >
2828
                               :src="
2838
                               :src="
2829
                                 setAdminUserES(
2839
                                 setAdminUserES(
2830
                                   record.prescription,
2840
                                   record.prescription,
2831
-                                  'prescription_doctor'
2841
+                                  'creater'
2832
                                 )
2842
                                 )
2833
                               "
2843
                               "
2834
                               alt=""
2844
                               alt=""
2987
         var resp = rs.data;
2997
         var resp = rs.data;
2988
         if (resp.state == 1) {
2998
         if (resp.state == 1) {
2989
           this.records = this.records.concat(resp.data.schedules);
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
           for (const recordIndex in this.records) {
3016
           for (const recordIndex in this.records) {
2992
             var dlegh = 0;
3017
             var dlegh = 0;
2993
             if (
3018
             if (

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

1329
                                   "
1329
                                   "
1330
                                   >【开始透析】</template
1330
                                   >【开始透析】</template
1331
                                 >
1331
                                 >
1332
-                                <template
1332
+                                <!-- <template
1333
                                   v-if="
1333
                                   v-if="
1334
                                     record.dialysis_order &&
1334
                                     record.dialysis_order &&
1335
                                     monitor_record.operate_time ==
1335
                                     monitor_record.operate_time ==
1336
                                       record.dialysis_order.end_time
1336
                                       record.dialysis_order.end_time
1337
                                   "
1337
                                   "
1338
                                   >【结束透析】</template
1338
                                   >【结束透析】</template
1339
-                                >
1339
+                                > -->
1340
                                 {{ monitor_record.end }}
1340
                                 {{ monitor_record.end }}
1341
                                 {{ monitor_record.symptom }} &nbsp;{{
1341
                                 {{ monitor_record.symptom }} &nbsp;{{
1342
                                   monitor_record.dispose
1342
                                   monitor_record.dispose
2675
         var resp = rs.data;
2675
         var resp = rs.data;
2676
         if (resp.state == 1) {
2676
         if (resp.state == 1) {
2677
           this.records = this.records.concat(resp.data.schedules);
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
           for (const recordIndex in this.records) {
2696
           for (const recordIndex in this.records) {
2680
             var dlegh = 0;
2697
             var dlegh = 0;
2681
             if (
2698
             if (

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

200
                   </td>
200
                   </td>
201
                 </tr>
201
                 </tr>
202
                 <tr>
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
                   <td style="text-align:left;" colspan="1">
204
                   <td style="text-align:left;" colspan="1">
208
                     <span style="display:inline-block;margin-left:15px;"
205
                     <span style="display:inline-block;margin-left:15px;"
209
                       >设定脱水量:{{record.prescription.target_ultrafiltration?record.prescription.target_ultrafiltration:"/"}}&nbsp;ml</span
206
                       >设定脱水量:{{record.prescription.target_ultrafiltration?record.prescription.target_ultrafiltration:"/"}}&nbsp;ml</span
217
                          ></label-box>
214
                          ></label-box>
218
                      </span>
215
                      </span>
219
                    </td>
216
                    </td>
220
-                   <td style="text-align: left" colspan="2">
217
+                   <td style="text-align: left" colspan="3">
221
               <span style="display: inline-block; margin-left: 15px">
218
               <span style="display: inline-block; margin-left: 15px">
222
                 <span v-if="record.prescription.anticoagulant == 2">普通肝素首剂:</span>
219
                 <span v-if="record.prescription.anticoagulant == 2">普通肝素首剂:</span>
223
                 <span v-if="record.prescription.anticoagulant == 3"
220
                 <span v-if="record.prescription.anticoagulant == 3"
306
               <span v-if="record.prescription.anticoagulant == 2">mg</span>
303
               <span v-if="record.prescription.anticoagulant == 2">mg</span>
307
               <span v-if="record.prescription.anticoagulant == 1">mg</span>
304
               <span v-if="record.prescription.anticoagulant == 1">mg</span>
308
             </td>
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
                 <tr>
356
                 <tr>
311
                   <td style="text-align:left;" colspan="1">
357
                   <td style="text-align:left;" colspan="1">
312
                     <span style="display:inline-block;margin-left:15px;"
358
                     <span style="display:inline-block;margin-left:15px;"
340
                           }}分钟</span>
386
                           }}分钟</span>
341
                       &nbsp;
387
                       &nbsp;
342
                   </td>
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
                     <span style="display:inline-block;margin-left:15px;"
391
                     <span style="display:inline-block;margin-left:15px;"
359
                       >置换方式:
392
                       >置换方式:
360
                        <label-box
393
                        <label-box
361
                          :isChecked="
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
                          showValue="前"
397
                          showValue="前"
365
                          ></label-box
398
                          ></label-box
366
                          >&nbsp;
399
                          >&nbsp;
367
                         <label-box
400
                         <label-box
368
                           :isChecked="
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
                           showValue="后"
404
                           showValue="后"
372
                         ></label-box>
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
                             record.prescription.displace_liqui_value
408
                             record.prescription.displace_liqui_value
375
                               ? record.prescription.displace_liqui_value
409
                               ? record.prescription.displace_liqui_value
376
                               : "/"
410
                               : "/"
377
                           }}L)
411
                           }}L)
412
+                          </span>
378
                       </span>&nbsp;
413
                       </span>&nbsp;
379
                   </td>
414
                   </td>
380
                 </tr>
415
                 </tr>
436
                           />
471
                           />
437
                       </span>
472
                       </span>
438
                   </td>
473
                   </td>
439
-                   <td style="text-align:left;" colspan="3">
474
+                   <td style="text-align:left;" colspan="2">
440
                     <span style="display: inline-block; margin-left: 15px">
475
                     <span style="display: inline-block; margin-left: 15px">
441
                     穿刺护士:
476
                     穿刺护士:
442
                        <span
477
                        <span
464
                             style="height: 30px;"
499
                             style="height: 30px;"
465
                           />
500
                           />
466
                       </span>
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
                        <span
507
                        <span
470
                        style="height: 30px; display: inline-block"
508
                        style="height: 30px; display: inline-block"
492
                             style="height: 30px;"
530
                             style="height: 30px;"
493
                           />
531
                           />
494
                       </span>
532
                       </span>
495
-                  </td>
533
+                   </td>
496
                   <td style="text-align:left;" colspan="3">
534
                   <td style="text-align:left;" colspan="3">
497
                     <!-- <span style="display:inline-block;margin-left:15px;display:flex;align-items:center;height:36px;"
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
           >批量打印</el-button
329
           >批量打印</el-button
330
         >
330
         >
331
       </template>
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
       <template v-if="this.template_id == 59">
341
       <template v-if="this.template_id == 59">
333
         <el-button
342
         <el-button
334
           size="small"
343
           size="small"
336
           :disabled="selecting_schs.length == 0"
345
           :disabled="selecting_schs.length == 0"
337
           @click="batchPrintAction"
346
           @click="batchPrintAction"
338
           type="primary"
347
           type="primary"
339
-          >打印</el-button>
348
+          >批量打印</el-button>
340
       </template>
349
       </template>
341
       <template v-if="this.template_id == 60">
350
       <template v-if="this.template_id == 60">
342
         <el-button
351
         <el-button
534
           align="center"
543
           align="center"
535
           width="100"
544
           width="100"
536
         ></el-table-column>
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
         <el-table-column
552
         <el-table-column
539
           prop="dialysis_before_weight"
553
           prop="dialysis_before_weight"
540
           label="透前称重(kg)"
554
           label="透前称重(kg)"
1408
         this.getTemplateInfo();
1422
         this.getTemplateInfo();
1409
       }else {
1423
       }else {
1410
         var start_month = moment().startOf('month').format('YYYY-MM-DD')
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
         this.listQuery.start_time = start_time
1426
         this.listQuery.start_time = start_time
1413
         var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1427
         var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1414
         var end_time = this.getTimestamp(end_month)
1428
         var end_time = this.getTimestamp(end_month)
1415
-        this.listQuery.end_time = end_time
1429
+        this.listQuery.end_time = end_time 
1416
         this.getSchedualPatientList()
1430
         this.getSchedualPatientList()
1417
       
1431
       
1418
         this.getAllZone();
1432
         this.getAllZone();
1435
       var date = new Date(nowDate + " 00:00:00");
1449
       var date = new Date(nowDate + " 00:00:00");
1436
       this.listQuery.schedul_time = date.getTime();
1450
       this.listQuery.schedul_time = date.getTime();
1437
       var start_month = moment().startOf('month').format('YYYY-MM-DD')
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
       this.listQuery.start_time = start_time
1454
       this.listQuery.start_time = start_time
1440
       var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1455
       var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1441
       var end_time = this.getTimestamp(end_month)
1456
       var end_time = this.getTimestamp(end_month)
1442
       this.listQuery.end_time = end_time
1457
       this.listQuery.end_time = end_time
1443
-      console.log("listQuery---------",this.listQuery)
1458
+     
1444
       this.getAllZone();
1459
       this.getAllZone();
1445
       this.getSchedualPatientList();
1460
       this.getSchedualPatientList();
1446
       this.getTemplateInfo();
1461
       this.getTemplateInfo();
1513
     },
1528
     },
1514
     getTimestamp(time) { //把时间日期转成时间戳
1529
     getTimestamp(time) { //把时间日期转成时间戳
1515
 
1530
 
1516
-      return (new Date(time)).getTime()
1531
+      return (new Date(time)).getTime() - 28800000
1517
     },
1532
     },
1518
     getTimestampOne(time) { //把时间日期转成时间戳
1533
     getTimestampOne(time) { //把时间日期转成时间戳
1519
 
1534
 
1529
         this.listQuery.schedul_time = "";
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
       this.SchedualPatientsTableData = [];
1550
       this.SchedualPatientsTableData = [];
1534
       getSchedualPatient(this.listQuery).then(response => {
1551
       getSchedualPatient(this.listQuery).then(response => {
1535
 
1552
 
1540
         } else {
1557
         } else {
1541
           this.loading = false;
1558
           this.loading = false;
1542
           this.total = response.data.data.total;
1559
           this.total = response.data.data.total;
1543
-          // console.log(response.data.data)
1560
+          console.log(response.data.data.schedule)
1544
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1561
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1545
 
1562
 
1546
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
1563
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
1576
               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1593
               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1577
                 SchedualPatientsTable["dialysis_before_weight"] =response.data.data.schedule[i].assessment_before_dislysis.weight_before;
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
               if (response.data.data.schedule[i].assessment_after_dislysis !=null) {
1600
               if (response.data.data.schedule[i].assessment_after_dislysis !=null) {
1580
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
1601
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
1581
               }
1602
               }
1870
 
1891
 
1871
 
1892
 
1872
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
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
         this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
2078
         this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
2058
       } else if (this.template_id == 48) {
2079
       } else if (this.template_id == 48) {
2059
         this.$router.push({ path: "/dialysis/print/batch/six" });
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
       }else if (this.template_id == 59) {
2083
       }else if (this.template_id == 59) {
2061
         this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
2084
         this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
2062
       }else if (this.template_id == 60) {
2085
       }else if (this.template_id == 60) {

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

124
           <span class="unit"></span>
124
           <span class="unit"></span>
125
         </li>
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
         <li v-if="isShow('透析前使用特殊药物')">
133
         <li v-if="isShow('透析前使用特殊药物')">
128
           <label>透析前使用特殊药物: </label>
134
           <label>透析前使用特殊药物: </label>
129
           <span class="content">{{ special_medicine }}</span>
135
           <span class="content">{{ special_medicine }}</span>
142
           <label>目标超滤量 : </label>
148
           <label>目标超滤量 : </label>
143
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
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
         </li>
153
         </li>
148
 
154
 
149
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
155
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
157
           <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
163
           <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
158
         </li> -->
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
         <li v-if="isShow('钾')">
174
         <li v-if="isShow('钾')">
161
           <label>钾 : </label>
175
           <label>钾 : </label>
162
           <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
176
           <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
916
     },
930
     },
917
     reduce_amount:function(){
931
     reduce_amount:function(){
918
        return this.getValueStr('reduce_amount','reduce_amount')
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
       :admin_users="admin_users"
121
       :admin_users="admin_users"
122
       :dry_weight="last_dryWeight_dislysis"
122
       :dry_weight="last_dryWeight_dislysis"
123
       :lastAssessment="lastAssessment"
123
       :lastAssessment="lastAssessment"
124
+       :prescription="prescription"
124
     ></assessment-before-dislysis-dialog>
125
     ></assessment-before-dislysis-dialog>
125
 
126
 
126
     <treatment-summary-dialog
127
     <treatment-summary-dialog
662
       this.$refs.finish_dialog.show(this.dialysis_order);
663
       this.$refs.finish_dialog.show(this.dialysis_order);
663
     },
664
     },
664
     showPrescription: function() {
665
     showPrescription: function() {
666
+      console.log("prescirpiton+++++++++++",this.prescription)
665
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open,this.admin_users);
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
     showAccepts: function() {
669
     showAccepts: function() {
685
         this.assessment_after_dislysis
687
         this.assessment_after_dislysis
686
       );
688
       );
687
       this.$emit("assessmentAfterDislysis", this.assessment_after_dislysis);
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
             </el-option>
130
             </el-option>
131
            </el-select>
131
            </el-select>
132
            <label class="title"> <span class="name">病区选择</span> : </label>
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
             <el-option
134
             <el-option
135
               v-for="item in partitionArr"
135
               v-for="item in partitionArr"
136
               :key="item.id"
136
               :key="item.id"
258
             return v.getTime() < new Date().getTime() - 86400000;
258
             return v.getTime() < new Date().getTime() - 86400000;
259
           },
259
           },
260
         },
260
         },
261
+        zoneIdList:[],
262
+        partion_str:"",
261
       }
263
       }
262
     },
264
     },
263
     created() {
265
     created() {
398
             return false
400
             return false
399
           } else {
401
           } else {
400
             this.partitionArr = response.data.data.zone
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
       statistics() {
410
       statistics() {
406
          this.tableList = []
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
           var params = {
422
           var params = {
408
             schedule_type:this.schedule_type,
423
             schedule_type:this.schedule_type,
409
-            partion_type:this.partion_type,
424
+            partion_type:str,
410
             selected_date:this.query.schedule_date,
425
             selected_date:this.query.schedule_date,
411
           }
426
           }
412
         // console.log("params2332232wo",params)
427
         // console.log("params2332232wo",params)
726
        this.$router.push({path:'/dialysis/consumable/dialysisdrugprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
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
       toPrintOne(){
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
      changeScheduleType(){
746
      changeScheduleType(){
732
       this.tableList = []
747
       this.tableList = []

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

212
             </el-option>
212
             </el-option>
213
            </el-select>
213
            </el-select>
214
            <label class="title"> <span class="name">病区选择</span> : </label>
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
             <el-option
216
             <el-option
217
               v-for="item in partitionArr"
217
               v-for="item in partitionArr"
218
               :key="item.id"
218
               :key="item.id"
320
             </el-option>
320
             </el-option>
321
            </el-select>
321
            </el-select>
322
            <label class="title"> <span class="name">病区选择</span> : </label>
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
             <el-option
324
             <el-option
325
               v-for="item in partitionArr"
325
               v-for="item in partitionArr"
326
               :key="item.id"
326
               :key="item.id"
475
         typeList:[],
475
         typeList:[],
476
         ids:"",
476
         ids:"",
477
         org_id:0,
477
         org_id:0,
478
+        zoneIdList:[],
479
+        pationType_str:"",
478
       }
480
       }
479
     },
481
     },
480
     created() {
482
     created() {
754
             return false
756
             return false
755
           } else {
757
           } else {
756
             this.partitionArr = response.data.data.zone
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
       statistics() {
766
       statistics() {
762
         this.tableList = []
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
         var params = {
780
         var params = {
764
           schedule_type:this.schedule_type,
781
           schedule_type:this.schedule_type,
765
-          partion_type:this.partion_type,
782
+          partion_type:str,
766
           selected_date:this.query.schedule_date,
783
           selected_date:this.query.schedule_date,
767
         }
784
         }
785
+       
768
        getDialysisGoodTotalCount(params).then(response=>{
786
        getDialysisGoodTotalCount(params).then(response=>{
769
           if(response.data.state == 1){
787
           if(response.data.state == 1){
770
             this.startDialogVisible = true
788
             this.startDialogVisible = true
1102
       },
1120
       },
1103
       toStatistics(){
1121
       toStatistics(){
1104
         this.tableList = []
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
          var params = {
1133
          var params = {
1106
           schedule_type:this.schedule_type,
1134
           schedule_type:this.schedule_type,
1107
-          partion_type:this.partion_type,
1135
+          partion_type:str,
1108
           selected_date:this.query.schedule_date,
1136
           selected_date:this.query.schedule_date,
1109
         }
1137
         }
1110
         getHisDialysisGoodCount(params).then(response=>{
1138
         getHisDialysisGoodCount(params).then(response=>{
1974
      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})
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
     toPrintOne(){
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
     toHisPrint(){
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
     toExportListOne(){
2010
     toExportListOne(){
1983
       import('@/vendor/Export2Excel').then(excel => {
2011
       import('@/vendor/Export2Excel').then(excel => {

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

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

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

213
                 </template>
213
                 </template>
214
               </el-table-column>
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
             </el-table>
221
             </el-table>
222
           </el-col>
222
           </el-col>
223
         </el-row>
223
         </el-row>
538
             </el-form-item>
538
             </el-form-item>
539
           </el-col>
539
           </el-col>
540
         </el-row>
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
       </el-form>
548
       </el-form>
550
       <div slot="footer" class="dialog-footer">
549
       <div slot="footer" class="dialog-footer">
551
         <el-button @click="nameFormVisible = false">取消</el-button>
550
         <el-button @click="nameFormVisible = false">取消</el-button>
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
     selectAllTemplateAdvice(selection) {
1652
     selectAllTemplateAdvice(selection) {
1624
       console.log("params",selection)
1653
       console.log("params",selection)

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

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

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

649
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
649
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
650
             </el-form-item>
650
             </el-form-item>
651
           </el-col>
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
         skins:[],
854
         skins:[],
847
         pinholings:[],
855
         pinholings:[],
848
         catheter_maintenancelist:[],
856
         catheter_maintenancelist:[],
849
-        thrombuShow:false
857
+        thrombuShow:false,
858
+        body_weight_before:"",
850
       }
859
       }
851
     },
860
     },
852
     props: {
861
     props: {
874
          default: () => {
883
          default: () => {
875
           return []
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
     methods: {
897
     methods: {
1083
           case '3': // 透析前症状
1100
           case '3': // 透析前症状
1084
 
1101
 
1085
             this.InnerDialogProps.values = this.symptom_before_dialysis
1102
             this.InnerDialogProps.values = this.symptom_before_dialysis
1086
-            this.InnerDialogProps.titles = '透析期间'
1103
+            this.InnerDialogProps.titles = '透析前症状'
1087
             this.InnerDialogProps.type = 'symptom_before_dialysis'
1104
             this.InnerDialogProps.type = 'symptom_before_dialysis'
1088
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.symptom_before_dialysis
1105
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.symptom_before_dialysis
1089
             this.InnerDialogProps.isShowTextArea = false
1106
             this.InnerDialogProps.isShowTextArea = false
1350
               type: 'success',
1367
               type: 'success',
1351
               duration: 2000
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
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1375
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1355
-            // console.log("返回数据",assessment_before_dislysis_resp)
1356
-            // prop
1376
+           
1357
             var predialysis_evaluation = this.predialysis_evaluation
1377
             var predialysis_evaluation = this.predialysis_evaluation
1358
             for (var index in assessment_before_dislysis_resp) {
1378
             for (var index in assessment_before_dislysis_resp) {
1359
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1379
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1360
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1380
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1361
             }
1381
             }
1382
+             
1383
+           
1362
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1384
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1363
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {
1385
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {
1364
               console.log('res',res.data)
1386
               console.log('res',res.data)
1365
 
1387
 
1366
             }) 
1388
             }) 
1367
             this.hide()
1389
             this.hide()
1390
+            console.log("hhh23h3h223h23h23h23h2h3")
1368
           }
1391
           }
1369
         })
1392
         })
1370
           } else {
1393
           } else {
1565
             this.assessmentBeforeDislysis['pulse_frequency'] = ''
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
           label="班次"
20
           label="班次"
21
           v-if="isShowFiled('班次')"
21
           v-if="isShowFiled('班次')"
22
           :prop="isName('班次')"
22
           :prop="isName('班次')"
23
-          :rules="isCheckmust('班次')"
23
+         
24
         >
24
         >
25
           <el-select
25
           <el-select
26
             v-model="form.schedual_type"
26
             v-model="form.schedual_type"
70
           label="穿刺者"
70
           label="穿刺者"
71
           v-if="isShowFiled('穿刺者')"
71
           v-if="isShowFiled('穿刺者')"
72
           prop="puncture_nurse_id"
72
           prop="puncture_nurse_id"
73
-          :rules="isCheckmust('穿刺者')"
73
+         
74
         >
74
         >
75
           <el-select
75
           <el-select
76
             v-model="form.puncture_nurse_id"
76
             v-model="form.puncture_nurse_id"
487
     if (this.form.new_fistula_nurse == 0) {
487
     if (this.form.new_fistula_nurse == 0) {
488
       this.form.new_fistula_nurse = this.$store.getters.xt_user.user.id;
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
     this.form.puncture_needle = this.dialysis_order.puncture_needle;
491
     this.form.puncture_needle = this.dialysis_order.puncture_needle;
492
     this.form.puncture_way = this.dialysis_order.puncture_way;
492
     this.form.puncture_way = this.dialysis_order.puncture_way;
493
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
493
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
494
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
494
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
495
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
495
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
496
     this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
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
     this.punctureNeedleOptions = getDataConfig(
500
     this.punctureNeedleOptions = getDataConfig(
498
       "hemodialysis",
501
       "hemodialysis",
499
       "puncture_needle"
502
       "puncture_needle"
549
       this.form.blood_access_id = this.dialysis_order.blood_access_id;
552
       this.form.blood_access_id = this.dialysis_order.blood_access_id;
550
      
553
      
551
       var blood_access_option_name = this.changeBloodAccessOpionOne(this.dialysis_order.blood_access_id)
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
       this.blood_access_option_name = blood_access_option_name
557
       this.blood_access_option_name = blood_access_option_name
554
       this.form.catheter_operation = this.dialysis_order.catheter_operation
558
       this.form.catheter_operation = this.dialysis_order.catheter_operation
555
       this.form.nuclein_date =
559
       this.form.nuclein_date =
796
           ":" +
800
           ":" +
797
           (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
801
           (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
798
       }
802
       }
799
-
803
+      console.log("hhahhahahahaha",this.dialysis_order)
800
       if (this.dialysis_order.id == 0) {
804
       if (this.dialysis_order.id == 0) {
801
         let now = new Date();
805
         let now = new Date();
802
         let hour = now.getHours();
806
         let hour = now.getHours();
808
           this.schedual_type = 3;
812
           this.schedual_type = 3;
809
         }
813
         }
810
       } else {
814
       } else {
815
+        this.form.schedual_type = this.dialysis_order.schedual_type;
811
         this.schedual_type = this.dialysis_order.schedual_type;
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
                     </el-col>
95
                     </el-col>
96
 
96
 
97
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(ml):">
99
                         <el-form-item label="目标超滤量(ml):">
100
                             <el-input
100
                             <el-input
101
                                     type="number"
101
                                     type="number"
104
                         </el-form-item>
104
                         </el-form-item>
105
                     </el-col>
105
                     </el-col>
106
 
106
 
107
+                    
108
+
107
 
109
 
108
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(L):">
112
                         <el-form-item label="目标超滤量(L):">
111
                             <el-input
113
                             <el-input
112
                                     type="number"
114
                                     type="number"
115
                         </el-form-item>
117
                         </el-form-item>
116
                     </el-col>
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
                    <el-col :span="8" v-if="isShows('带水上机')">
130
                    <el-col :span="8" v-if="isShows('带水上机')">
119
                         <el-form-item label="带水上机:">
131
                         <el-form-item label="带水上机:">
120
                            <el-select v-model="dialysisPrescription.water_machine">
132
                            <el-select v-model="dialysisPrescription.water_machine">
273
                     </el-col>
285
                     </el-col>
274
 
286
 
275
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
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
                           <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">
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
                             <el-form-item
290
                             <el-form-item
279
                                     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'
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
 
368
 
357
 
369
 
358
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
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
                           <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 ">
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
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
373
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
362
                                           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">
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
 
432
 
421
 
433
 
422
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
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
                           <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">
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
                             <el-form-item
437
                             <el-form-item
426
                                     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'
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
                           type="number"
609
                           type="number"
598
                           v-model="dialysisPrescription.glucose"
610
                           v-model="dialysisPrescription.glucose"
599
                         ></el-input>
611
                         ></el-input>
600
-                      </el-form-item>
612
+                      </el-form-item>28
601
                     </el-col> -->
613
                     </el-col> -->
602
                     <el-col :span="8" v-if="isShows('透析液流量')">
614
                     <el-col :span="8" v-if="isShows('透析液流量')">
603
                         <el-form-item label="透析液流量(ml/min):">
615
                         <el-form-item label="透析液流量(ml/min):">
649
                         </el-form-item>
661
                         </el-form-item>
650
                     </el-col>
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
                     <el-col :span="8" v-if="isShows('血浆分离器')">
672
                     <el-col :span="8" v-if="isShows('血浆分离器')">
653
                         <el-form-item label="血浆分离器:">
673
                         <el-form-item label="血浆分离器:">
654
                             <el-input v-model="dialysisPrescription.plasma_separator"
674
                             <el-input v-model="dialysisPrescription.plasma_separator"
1582
           sodium_curve:"",
1602
           sodium_curve:"",
1583
           dialysis_fluid_flow:"",
1603
           dialysis_fluid_flow:"",
1584
           sodium_bicarbonate_flow:"",
1604
           sodium_bicarbonate_flow:"",
1605
+          prescription_water:"",
1606
+          dialysis_strainer:"",
1585
         },
1607
         },
1586
 
1608
 
1587
         anticoagulant: {
1609
         anticoagulant: {
1605
         bloods: [],
1627
         bloods: [],
1606
         irrigations: [],
1628
         irrigations: [],
1607
         dialyzers: [],
1629
         dialyzers: [],
1630
+        dialysisStrainerList:[],
1608
         illnessList: [],
1631
         illnessList: [],
1609
         plasmaSeparatorList: [],
1632
         plasmaSeparatorList: [],
1610
         bilirubinAdsorptionColumn: [],
1633
         bilirubinAdsorptionColumn: [],
1647
 
1670
 
1648
       },
1671
       },
1649
       showInnerDialog: function(val) {
1672
       showInnerDialog: function(val) {
1673
+       
1650
         this.InnerDialogProps.visibility = true
1674
         this.InnerDialogProps.visibility = true
1651
         switch (val) {
1675
         switch (val) {
1652
           case '5': // 透析器/灌流器
1676
           case '5': // 透析器/灌流器
1654
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1678
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1655
             this.InnerDialogProps.titles = '透析器/灌流器'
1679
             this.InnerDialogProps.titles = '透析器/灌流器'
1656
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1680
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1657
-
1681
+           
1658
             this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
1682
             this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
1659
             this.InnerDialogProps.isShowTextArea = false
1683
             this.InnerDialogProps.isShowTextArea = false
1660
             break
1684
             break
1713
             this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
1737
             this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
1714
             this.InnerDialogProps.isShowTextArea = false
1738
             this.InnerDialogProps.isShowTextArea = false
1715
             break
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
       innerDialogComfirm: function(val) {
1753
       innerDialogComfirm: function(val) {
1754
+      
1755
+
1719
         this.InnerDialogProps.visibility = false
1756
         this.InnerDialogProps.visibility = false
1720
         switch (val.type) {
1757
         switch (val.type) {
1758
+
1721
           case 'dialyzer_perfusion_apparatus':
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
             break
1777
             break
1724
           case 'blood':
1778
           case 'blood':
1779
+            
1725
             this.dialysisPrescription.blood = val.value.join(',')
1780
             this.dialysisPrescription.blood = val.value.join(',')
1726
             break
1781
             break
1727
           case 'dialyzers':
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
             break
1800
             break
1730
           case 'irrigations':
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
             break
1818
             break
1733
           case 'plasma_separator':
1819
           case 'plasma_separator':
1734
             this.dialysisPrescription.plasma_separator = val.value.join(',')
1820
             this.dialysisPrescription.plasma_separator = val.value.join(',')
1739
           case 'puncture_needle':
1825
           case 'puncture_needle':
1740
             this.dialysisPrescription.puncture_needle = val.value.join(',')
1826
             this.dialysisPrescription.puncture_needle = val.value.join(',')
1741
             break
1827
             break
1828
+          case 'dialysis_strainer':
1829
+            this.dialysisPrescription.dialysis_strainer = val.value.join(',')
1830
+            break
1742
         }
1831
         }
1743
       },
1832
       },
1744
       innerDialogCancle: function() {
1833
       innerDialogCancle: function() {
2230
       },
2319
       },
2231
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2320
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2232
         console.log("pres",pre)
2321
         console.log("pres",pre)
2322
+        console.log("schedual",schedual)
2233
         if (pre != undefined) {
2323
         if (pre != undefined) {
2234
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2324
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2235
           if (pre.oxygen_uptake == 1) {
2325
           if (pre.oxygen_uptake == 1) {
2357
             } else if (schedual.schedule_type == 3) {
2447
             } else if (schedual.schedule_type == 3) {
2358
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:30'
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
            } else {
2458
            } else {
2361
             if (schedual.schedule_type == 1) {
2459
             if (schedual.schedule_type == 1) {
2362
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
2460
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
3875
     },
3973
     },
3876
 
3974
 
3877
     watch: {
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
       'dialysisPrescription.dialysis_duration_hour': function() {
3983
       'dialysisPrescription.dialysis_duration_hour': function() {
3882
         let dialysis_duration_minute = 0
3984
         let dialysis_duration_minute = 0
3883
         let dialysis_duration_hour = 0
3985
         let dialysis_duration_hour = 0
4443
         console.log('stockType', this.stockType)
4545
         console.log('stockType', this.stockType)
4444
         var arr = []
4546
         var arr = []
4445
         var arrTwo = []
4547
         var arrTwo = []
4548
+        var arrThree = []
4446
         for (let i = 0; i < this.stockType.length; i++) {
4549
         for (let i = 0; i < this.stockType.length; i++) {
4447
           if (this.stockType[i].stock_attribute == 2) {
4550
           if (this.stockType[i].stock_attribute == 2) {
4448
             arr.push(this.stockType[i])
4551
             arr.push(this.stockType[i])
4450
           if (this.stockType[i].stock_attribute == 3) {
4553
           if (this.stockType[i].stock_attribute == 3) {
4451
             arrTwo.push(this.stockType[i])
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
         var dialyzator = []
4560
         var dialyzator = []
4455
         var irrigation = []
4561
         var irrigation = []
4562
+        var dialysis_strainer = []
4456
         for (let i = 0; i < arr.length; i++) {
4563
         for (let i = 0; i < arr.length; i++) {
4457
           for (let j = 0; j < arr[i].GoodInfo.length; j++) {
4564
           for (let j = 0; j < arr[i].GoodInfo.length; j++) {
4458
             dialyzator.push(arr[i].GoodInfo[j])
4565
             dialyzator.push(arr[i].GoodInfo[j])
4466
           }
4573
           }
4467
         }
4574
         }
4468
         this.irrigations = irrigation
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
       admin_user_id:function(){
4586
       admin_user_id:function(){

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

121
           <el-checkbox :label="dialys_mode"></el-checkbox>
121
           <el-checkbox :label="dialys_mode"></el-checkbox>
122
           <el-checkbox :label="long_time"></el-checkbox>
122
           <el-checkbox :label="long_time"></el-checkbox>
123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
124
+          <el-checkbox :label="prescription_water" v-if="org_id == 10469"></el-checkbox>
124
           <el-checkbox :label="anticoagulant"></el-checkbox>
125
           <el-checkbox :label="anticoagulant"></el-checkbox>
125
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
127
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
333
       dialys_mode: "透析模式:",
334
       dialys_mode: "透析模式:",
334
       long_time: "透析时长:",
335
       long_time: "透析时长:",
335
       target_ultrafiltration: "目标超滤量:",
336
       target_ultrafiltration: "目标超滤量:",
337
+      prescription_water:"处方脱水量:",
336
       anticoagulant: "抗凝剂:",
338
       anticoagulant: "抗凝剂:",
337
       anticoagulant_shouji: "首剂:",
339
       anticoagulant_shouji: "首剂:",
338
       anticoagulant_weichi: "维持:",
340
       anticoagulant_weichi: "维持:",
818
               : "")
820
               : "")
819
         );
821
         );
820
       }
822
       }
821
-      if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
823
+       if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
822
         arr.push("目标超滤量:");
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
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
844
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
825
         arr.push(
845
         arr.push(
826
           "抗凝剂:" +
846
           "抗凝剂:" +
1333
           this.target_ultrafiltration = this.target_ultrafiltration;
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
         if (this.prescription.anticoagulant != "") {
1367
         if (this.prescription.anticoagulant != "") {
1337
           this.anticoagulant = "抗凝剂:";
1368
           this.anticoagulant = "抗凝剂:";
1338
           this.anticoagulant =
1369
           this.anticoagulant =
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
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1535
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1494
           this.checkListOne.push(
1536
           this.checkListOne.push(
1495
             "抗凝剂:" +
1537
             "抗凝剂:" +

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

238
                 org_id == 10210 ||
238
                 org_id == 10210 ||
239
                 org_id == 9555 || org_id == 10387
239
                 org_id == 9555 || org_id == 10387
240
                 || org_id == 10432
240
                 || org_id == 10432
241
-                || org_id == 10445)
241
+                || org_id == 10445
242
+                || org_id == 10410)
242
             "
243
             "
243
           >
244
           >
244
             <template slot-scope="scope">
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
                 scope.row.ultrafiltration_volume
255
                 scope.row.ultrafiltration_volume
247
                   ? scope.row.ultrafiltration_volume
256
                   ? scope.row.ultrafiltration_volume
248
                   : ""
257
                   : ""
249
               }}
258
               }}
259
+              </span> 
250
             </template>
260
             </template>
251
           </el-table-column>
261
           </el-table-column>
252
           <el-table-column
262
           <el-table-column
296
               org_id!= 10210 &&
306
               org_id!= 10210 &&
297
               org_id != 9555 && org_id!=10387
307
               org_id != 9555 && org_id!=10387
298
               && org_id!=10432 && org_id!=10445
308
               && org_id!=10432 && org_id!=10445
309
+              && org_id!=10410
299
             "
310
             "
300
           >
311
           >
301
             <template slot-scope="scope">
312
             <template slot-scope="scope">
345
                 template_id == 47 ||
356
                 template_id == 47 ||
346
                 template_id == 60 ||
357
                 template_id == 60 ||
347
                 org_id == 10432 ||
358
                 org_id == 10432 ||
348
-                org_id == 10445)
359
+                org_id == 10445 ||
360
+                org_id == 10410)
349
             "
361
             "
350
           >
362
           >
351
             <template slot-scope="scope">
363
             <template slot-scope="scope">
394
               template_id != 47 &&
406
               template_id != 47 &&
395
               template_id != 60 &&
407
               template_id != 60 &&
396
               org_id!=10432 &&
408
               org_id!=10432 &&
397
-              org_id!=10445
409
+              org_id!=10445 &&
410
+              org_id!=10410
398
             "
411
             "
399
           >
412
           >
400
             <template slot-scope="scope">
413
             <template slot-scope="scope">
1078
                 template_id == 47 ||
1091
                 template_id == 47 ||
1079
                 template_id == 60 ||
1092
                 template_id == 60 ||
1080
                 org_id== 10432 || 
1093
                 org_id== 10432 || 
1081
-                org_id== 10445)
1094
+                org_id== 10445 ||
1095
+                org_id== 10410)
1082
             "
1096
             "
1083
           >
1097
           >
1084
             <el-form-item label="超滤率(ml/h)" :prop="isName('超滤率')"
1098
             <el-form-item label="超滤率(ml/h)" :prop="isName('超滤率')"
1121
               template_id != 47 &&
1135
               template_id != 47 &&
1122
               template_id != 60 &&
1136
               template_id != 60 &&
1123
               org_id!=10432 && 
1137
               org_id!=10432 && 
1124
-              org_id!=10445
1138
+              org_id!=10445 &&
1139
+              org_id!=10410
1125
             "
1140
             "
1126
           >
1141
           >
1127
             <el-form-item label="超滤率(L/h)" :prop="isName('超滤率')"
1142
             <el-form-item label="超滤率(L/h)" :prop="isName('超滤率')"
1174
                 org_id == 10340 ||
1189
                 org_id == 10340 ||
1175
                 org_id == 10387 ||
1190
                 org_id == 10387 ||
1176
                 org_id == 10432 ||
1191
                 org_id == 10432 ||
1177
-                org_id == 10445)
1192
+                org_id == 10445 ||
1193
+                org_id == 10410)
1178
             "
1194
             "
1179
           >
1195
           >
1180
             <el-form-item label="超滤量(ml):" :prop="isName('超滤量')"
1196
             <el-form-item label="超滤量(ml):" :prop="isName('超滤量')"
1227
               org_id != 9555 &&
1243
               org_id != 9555 &&
1228
               org_id!=10387&&
1244
               org_id!=10387&&
1229
               org_id!=10432 && 
1245
               org_id!=10432 && 
1230
-              org_id!=10445
1246
+              org_id!=10445 && 
1247
+              org_id!=10410
1231
             "
1248
             "
1232
           >
1249
           >
1233
             <el-form-item label="超滤量(L):" :prop="isName('超滤量')"
1250
             <el-form-item label="超滤量(L):" :prop="isName('超滤量')"
1989
         // 静脉压
2006
         // 静脉压
1990
         if (this.org_id == 10060 || this.org_id == 10387) {
2007
         if (this.org_id == 10060 || this.org_id == 10387) {
1991
           this.form.venous_pressure = resp.monitor.venous_pressure;
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
           this.form.venous_pressure = 80
2010
           this.form.venous_pressure = 80
1994
         } else {
2011
         } else {
1995
           this.form.venous_pressure = ""; // this.last_monitor_record.venous_pressure;
2012
           this.form.venous_pressure = ""; // this.last_monitor_record.venous_pressure;
2044
           ? resp.monitor.dialysate_temperature
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
             this.form.temperature = "36.5"
2065
             this.form.temperature = "36.5"
2049
 
2066
 
2050
          }else{
2067
          }else{
2163
         this.form.venous_pressure_type = 1;
2180
         this.form.venous_pressure_type = 1;
2164
         this.form.transmembrane_pressure = "";
2181
         this.form.transmembrane_pressure = "";
2165
         this.form.transmembrane_pressure_type = 1;
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
         this.form.ultrafiltration_rate = "";
2190
         this.form.ultrafiltration_rate = "";
2168
         this.form.arterial_pressure = "";
2191
         this.form.arterial_pressure = "";
2169
         this.form.arterial_pressure_type = 1;
2192
         this.form.arterial_pressure_type = 1;
2228
           monitor.transmembrane_pressure_type
2251
           monitor.transmembrane_pressure_type
2229
             ? monitor.transmembrane_pressure_type
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
           ? monitor.ultrafiltration_volume
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
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2265
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2235
           ? monitor.ultrafiltration_rate
2266
           ? monitor.ultrafiltration_rate
2236
           : "";
2267
           : "";

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

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
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
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445) " width="92px" > 置换率(ml/min) </th>
23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445) " width="92px" > 置换率(ml/min) </th>
60
 
60
 
61
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
61
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
62
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
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
           <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
67
           <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
65
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
68
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
66
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
69
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>

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

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

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

14
       </template>
14
       </template>
15
       <template
15
       <template
16
         v-if="
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
         <div>
21
         <div>
110
           org_template_info.template_id == 11 ||
110
           org_template_info.template_id == 11 ||
111
           org_template_info.template_id == 50 ||
111
           org_template_info.template_id == 50 ||
112
           org_template_info.template_id == 52 ||
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
         <el-button
118
         <el-button
119
+          
117
           :loading="loading"
120
           :loading="loading"
118
           size="small"
121
           size="small"
119
           icon="el-icon-printer"
122
           icon="el-icon-printer"
121
           type="primary"
124
           type="primary"
122
           >打印</el-button
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
       </template>
136
       </template>
125
 
137
 
126
       <template v-if="org_template_info.template_id == 47">
138
       <template v-if="org_template_info.template_id == 47">
186
       </template>
198
       </template>
187
       <template
199
       <template
188
         v-if="
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
         <div>
205
         <div>
289
       </template> -->
301
       </template> -->
290
       <template
302
       <template
291
         v-if="
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
         <div>
308
         <div>
1181
             v-if="org_template_info.template_id == 53"
1193
             v-if="org_template_info.template_id == 53"
1182
           >
1194
           >
1183
           </DialysisPrintOrderFiftyThree>
1195
           </DialysisPrintOrderFiftyThree>
1196
+
1197
+         
1198
+        
1184
            <DialysisPrintOrderFiftyFour
1199
            <DialysisPrintOrderFiftyFour
1185
             v-bind:childResponse="childResponse"
1200
             v-bind:childResponse="childResponse"
1186
             v-if="org_template_info.template_id == 54"
1201
             v-if="org_template_info.template_id == 54"
1577
           scanStyles: false,
1592
           scanStyles: false,
1578
         });
1593
         });
1579
       } else if (
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
         printJS({
1598
         printJS({
1584
           printable: "dialysis-print-box-1",
1599
           printable: "dialysis-print-box-1",
1616
         // this.org_template_info.template_id == 51 ||
1631
         // this.org_template_info.template_id == 51 ||
1617
         this.org_template_info.template_id == 58 ||
1632
         this.org_template_info.template_id == 58 ||
1618
         this.org_template_info.template_id == 60 ||
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
         printJS({
1637
         printJS({
1622
           printable: "dialysis-print-box-1",
1638
           printable: "dialysis-print-box-1",
1978
         });
1994
         });
1979
       } else if (
1995
       } else if (
1980
         this.org_template_info.template_id == 2 ||
1996
         this.org_template_info.template_id == 2 ||
1981
-        this.org_template_info.template_id == 0 ||
1982
         this.org_template_info.template_id == 5 ||
1997
         this.org_template_info.template_id == 5 ||
1983
         this.org_template_info.template_id == 22 ||
1998
         this.org_template_info.template_id == 22 ||
1984
         this.org_template_info.template_id == 33
1999
         this.org_template_info.template_id == 33
2027
         '@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;}';
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
       const style2 =
2043
       const style2 =
2029
         '@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;}';
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
       if (this.org_template_info.template_id == 1) {
2048
       if (this.org_template_info.template_id == 1) {
2032
         printJS({
2049
         printJS({
2033
           printable: "dialysis-print-box",
2050
           printable: "dialysis-print-box",
2037
         });
2054
         });
2038
       } else if (
2055
       } else if (
2039
         this.org_template_info.template_id == 2 ||
2056
         this.org_template_info.template_id == 2 ||
2040
-        this.org_template_info.template_id == 0 ||
2041
         this.org_template_info.template_id == 5 ||
2057
         this.org_template_info.template_id == 5 ||
2042
         this.org_template_info.template_id == 22 ||
2058
         this.org_template_info.template_id == 22 ||
2043
         this.org_template_info.template_id == 33
2059
         this.org_template_info.template_id == 33
2076
           style: style,
2092
           style: style,
2077
           scanStyles: false,
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
     getNumber() {
2106
     getNumber() {
2082
       if (this.dialysisOrder != null) {
2107
       if (this.dialysisOrder != null) {
2083
         return (
2108
         return (
2782
     },
2807
     },
2783
   },
2808
   },
2784
   created() {
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
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2812
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2786
     var zone_selected = this.$store.getters.zone_selected;
2813
     var zone_selected = this.$store.getters.zone_selected;
2787
     var patient_state_selected = this.$store.getters.patient_state_selected;
2814
     var patient_state_selected = this.$store.getters.patient_state_selected;

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

137
         </div>
137
         </div>
138
       </div>
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
        <div class="cell clearfix">
156
        <div class="cell clearfix">
141
         <label class="title"> <span class="name">执行状态</span> : </label>
157
         <label class="title"> <span class="name">执行状态</span> : </label>
142
         <div class="time">
158
         <div class="time">
159
       </div> -->
175
       </div> -->
160
 
176
 
161
       <div style="margin-top: 10px;margin-bottom:10px">
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
       </div>
181
       </div>
166
 
182
 
167
 
183
 
523
             </el-option>
539
             </el-option>
524
            </el-select>
540
            </el-select>
525
            <label class="title"> <span class="name">病区选择</span> : </label>
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
             <el-option
543
             <el-option
528
               v-for="item in partitionArr"
544
               v-for="item in partitionArr"
529
               :key="item.id"
545
               :key="item.id"
595
             </el-option>
611
             </el-option>
596
            </el-select>
612
            </el-select>
597
            <label class="title"> <span class="name">病区选择</span> : </label>
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
             <el-option
615
             <el-option
600
               v-for="item in partitionArr"
616
               v-for="item in partitionArr"
601
               :key="item.id"
617
               :key="item.id"
801
       tableDataList:[],
817
       tableDataList:[],
802
       adminUserList:[],
818
       adminUserList:[],
803
       doctorMap:[],
819
       doctorMap:[],
820
+      excutList:[],
821
+      execution_frequency:"",
822
+      zoneIdList:[],
823
+      partion_str:"",
804
     };
824
     };
805
   },
825
   },
806
   created() {
826
   created() {
863
        this.delivery_way = val
883
        this.delivery_way = val
864
        this.requestSchedualDoctors(this.time)
884
        this.requestSchedualDoctors(this.time)
865
     },
885
     },
886
+    selectFrequencyWay(val){
887
+      this.execution_frequency = val
888
+      this.requestSchedualDoctors(this.time)
889
+    },
866
 
890
 
867
     selectExcutionWay(val){
891
     selectExcutionWay(val){
868
        this.excution_way = val
892
        this.excution_way = val
881
           return false;
905
           return false;
882
         } else {
906
         } else {
883
           this.partitionArr = response.data.data.zone;
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
           var dics  =  response.data.data.dics
913
           var dics  =  response.data.data.dics
886
           var obj = {id:0,name:"全部"}
914
           var obj = {id:0,name:"全部"}
887
           this.deliveryWay.push(obj)
915
           this.deliveryWay.push(obj)
888
           this.deliveryWay.push(...dics)
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
         if(name == '全部'){
933
         if(name == '全部'){
901
           name = ""
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
         let newTime =  moment(time).format('YYYY-MM-DD')
948
         let newTime =  moment(time).format('YYYY-MM-DD')
905
 
949
 
906
          var schedule_type = this.listQuery.schedul_type
950
          var schedule_type = this.listQuery.schedul_type
907
          var partition_type = this.listQuery.partition_type
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
         var resp = rs.data
954
         var resp = rs.data
911
         if (resp.state == 1) {
955
         if (resp.state == 1) {
912
             this.admin_users = resp.data.adminUser
956
             this.admin_users = resp.data.adminUser
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
         if(name == '全部'){
1302
         if(name == '全部'){
1259
           name = ""
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
     batchPrintActionOne: function() {
1318
     batchPrintActionOne: function() {
1482
         return searchArray
1536
         return searchArray
1483
       },
1537
       },
1484
      handleSelect(val) {
1538
      handleSelect(val) {
1539
+       console.log("val323223232323232323",val)
1485
        this.patient_id = val.id
1540
        this.patient_id = val.id
1541
+       this.listQuery.keyword = val.name
1486
        this.requestSchedualDoctors(this.time)
1542
        this.requestSchedualDoctors(this.time)
1487
       },
1543
       },
1488
      toSeach(){
1544
      toSeach(){
1674
     },
1730
     },
1675
 
1731
 
1676
      toStatic() {
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
          this.tableList = []
1742
          this.tableList = []
1678
           var params = {
1743
           var params = {
1679
             schedule_type:this.schedule_type,
1744
             schedule_type:this.schedule_type,
1680
-            partion_type:this.partion_type,
1745
+            partion_type:str,
1681
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1746
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1682
           }
1747
           }
1748
+
1683
          console.log("params2332232wo",params)
1749
          console.log("params2332232wo",params)
1684
         getDialysisAdviceToday(params).then(response=>{
1750
         getDialysisAdviceToday(params).then(response=>{
1685
           if(response.data.state == 1){
1751
           if(response.data.state == 1){
1811
 
1877
 
1812
       },
1878
       },
1813
       toStaticOne() {
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
          this.tableList = []
1889
          this.tableList = []
1815
           var params = {
1890
           var params = {
1816
             schedule_type:this.schedule_type,
1891
             schedule_type:this.schedule_type,
1817
-            partion_type:this.partion_type,
1892
+            partion_type:str,
1818
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1893
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1819
           }
1894
           }
1820
 
1895
 
2007
       },
2082
       },
2008
       toPrintOne(){
2083
       toPrintOne(){
2009
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
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
       toPrintTwo(){
2087
       toPrintTwo(){
2013
         var schedule_date = moment(this.time).format('YYYY-MM-DD')
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
       toExportListOne(){
2091
       toExportListOne(){
2017
         import('@/vendor/Export2Excel').then(excel => {
2092
         import('@/vendor/Export2Excel').then(excel => {

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

14
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
14
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
15
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
15
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
16
                         <div>姓名:{{item.patient.name}}</div>  
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
                         <div>打印时间:{{time}}</div>   
29
                         <div>打印时间:{{time}}</div>   
21
                     </div>  
30
                     </div>  
22
                 </div>
31
                 </div>
29
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
38
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
30
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
39
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
31
                         <div>姓名:{{item.patient.name}}</div>  
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
                         <div>给药途径:{{item.doctor_advice[0].execution_frequency}}</div>  
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
                         <div>打印时间:{{time}}</div>   
51
                         <div>打印时间:{{time}}</div>   
36
                     </div>  
52
                     </div>  
37
                   
53
                   
68
             show:true,
84
             show:true,
69
             showOne:false,
85
             showOne:false,
70
             delivery_way:"",
86
             delivery_way:"",
71
-            list:[]
87
+            list:[],
88
+            execution_frequency:"",
89
+            org_id:0,
90
+            drugList:[],
72
         }
91
         }
73
     },
92
     },
74
     methods:{
93
     methods:{
90
             patient_type: 0,
109
             patient_type: 0,
91
             advice_type: 2,
110
             advice_type: 2,
92
             delivery_way:this.delivery_way,
111
             delivery_way:this.delivery_way,
112
+            execution_frequency:this.execution_frequency,
113
+            patient_id:this.$route.query.patient_id,
93
             }).then(rs => {
114
             }).then(rs => {
94
                 var resp = rs.data
115
                 var resp = rs.data
95
                 if (resp.state == 1) {
116
                 if (resp.state == 1) {
254
                
275
                
255
                  if(config.is_open == 1){
276
                  if(config.is_open == 1){
256
                    var schedulesArr = resp.data.hisAdvices
277
                    var schedulesArr = resp.data.hisAdvices
278
+                   this.drugList = resp.data.drug
257
                    let schedules = []
279
                    let schedules = []
258
                    var ids = this.$store.getters.temp_params.advice_ids
280
                    var ids = this.$store.getters.temp_params.advice_ids
259
                    console.log('ids',ids)
281
                    console.log('ids',ids)
516
         return ""
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
     computed: {
551
     computed: {
521
     filtedScheduals: function () {
552
     filtedScheduals: function () {
628
         console.log("222222",scheduleMap)
659
         console.log("222222",scheduleMap)
629
         return scheduleMap
660
         return scheduleMap
630
         },
661
         },
662
+
663
+      
631
     
664
     
632
     },
665
     },
633
     created(){
666
     created(){
634
       var time = this.$route.query.time
667
       var time = this.$route.query.time
635
       var delivery_way = this.$route.query.delivery_way
668
       var delivery_way = this.$route.query.delivery_way
669
+      this.org_id = this.$store.getters.xt_user.org.id
636
       console.log("delivery_Way",delivery_way)
670
       console.log("delivery_Way",delivery_way)
637
       this.delivery_way = delivery_way
671
       this.delivery_way = delivery_way
672
+      var execution_frequency = this.$route.query.execution_frequency
673
+      this.execution_frequency = execution_frequency
638
       this.time = moment(time).format('YYYY-MM-DD')
674
       this.time = moment(time).format('YYYY-MM-DD')
639
       console.log(11,this.$route.query)
675
       console.log(11,this.$route.query)
640
       this.requestSchedualDoctors(time)
676
       this.requestSchedualDoctors(time)

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

28
               年龄:
28
               年龄:
29
               <span style="display:inline-block;margin-left:10px;">
29
               <span style="display:inline-block;margin-left:10px;">
30
                 {{
30
                 {{
31
-                getAge(patientInfo)
31
+                getNewAge(patientInfo.id_card_no)
32
                 }}
32
                 }}
33
               </span>
33
               </span>
34
             </td>
34
             </td>
2112
         return ''
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
     newAdviceGroupObject: function() {
2128
     newAdviceGroupObject: function() {
2116
       return Object.assign(
2129
       return Object.assign(
2117
         {},
2130
         {},

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

289
                                 }}
289
                                 }}
290
                               </div>
290
                               </div>
291
                             </div>
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
                             <div class="inline_block" style="flex: 1">
304
                             <div class="inline_block" style="flex: 1">
293
                               透前症状:
305
                               透前症状:
294
                               <div
306
                               <div
1148
                               <span v-if="prescription.anticoagulant == 4"
1160
                               <span v-if="prescription.anticoagulant == 4"
1149
                                 >mg</span
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
                                 >iu</span
1164
                                 >iu</span
1153
                               >
1165
                               >
1154
                               <span v-if="prescription.anticoagulant == 2"
1166
                               <span v-if="prescription.anticoagulant == 2"
1155
                                 >mg</span
1167
                                 >mg</span
1156
                               >
1168
                               >
1157
                               <span v-if="prescription.anticoagulant == 1"
1169
                               <span v-if="prescription.anticoagulant == 1"
1158
-                                >mg</span
1170
+                                ></span
1159
                               >
1171
                               >
1160
                             </div>
1172
                             </div>
1161
                             <div class="inline_block" style="margin-left: 20px">
1173
                             <div class="inline_block" style="margin-left: 20px">
1188
                               <span v-if="prescription.anticoagulant == 4"
1200
                               <span v-if="prescription.anticoagulant == 4"
1189
                                 >mg/h</span
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
                                 >iu/h</span
1204
                                 >iu/h</span
1193
                               >
1205
                               >
1194
                               <span v-if="prescription.anticoagulant == 2"
1206
                               <span v-if="prescription.anticoagulant == 2"
1195
                                 >mg/h</span
1207
                                 >mg/h</span
1196
                               >
1208
                               >
1197
                               <span v-if="prescription.anticoagulant == 1"
1209
                               <span v-if="prescription.anticoagulant == 1"
1198
-                                >mg/h</span
1210
+                                ></span
1199
                               >
1211
                               >
1200
                             </div>
1212
                             </div>
1201
                             <div
1213
                             <div
1252
                               <span v-if="prescription.anticoagulant == 4"
1264
                               <span v-if="prescription.anticoagulant == 4"
1253
                                 >mg</span
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
                                 >iu</span
1268
                                 >iu</span
1257
                               >
1269
                               >
1258
                               <span v-if="prescription.anticoagulant == 2"
1270
                               <span v-if="prescription.anticoagulant == 2"
1259
                                 >mg</span
1271
                                 >mg</span
1260
                               >
1272
                               >
1261
                               <span v-if="prescription.anticoagulant == 1"
1273
                               <span v-if="prescription.anticoagulant == 1"
1262
-                                >mg</span
1274
+                                ></span
1263
                               >
1275
                               >
1264
                             </div>
1276
                             </div>
1265
                             <div class="inline_block" style="margin-left: 20px">
1277
                             <div class="inline_block" style="margin-left: 20px">
1365
                               <tr>
1377
                               <tr>
1366
                                 <td width="60">时间</td>
1378
                                 <td width="60">时间</td>
1367
                                 <td width="70">血压<br />(mmHg)</td>
1379
                                 <td width="70">血压<br />(mmHg)</td>
1368
-                                <td width="60">体温<br />(°C)</td>
1380
+                                <!-- <td width="60">体温<br />(°C)</td> -->
1369
                                 <td width="50">脉搏<br />(次/分)</td>
1381
                                 <td width="50">脉搏<br />(次/分)</td>
1370
                                 <td width="50">呼吸<br />(次/分)</td>
1382
                                 <td width="50">呼吸<br />(次/分)</td>
1371
                                 <td width="50">血流量<br />(ml/min)</td>
1383
                                 <td width="50">血流量<br />(ml/min)</td>
1445
                                       : ""
1457
                                       : ""
1446
                                   }}
1458
                                   }}
1447
                                 </td>
1459
                                 </td>
1448
-                                <td>
1460
+                                <!-- <td>
1449
                                   {{
1461
                                   {{
1450
                                     monitor.temperature
1462
                                     monitor.temperature
1451
                                       ? monitor.temperature
1463
                                       ? monitor.temperature
1452
                                       : ""
1464
                                       : ""
1453
                                   }}
1465
                                   }}
1454
-                                </td>
1466
+                                </td> -->
1455
                                 <td>
1467
                                 <td>
1456
                                   {{
1468
                                   {{
1457
                                     monitor.pulse_frequency
1469
                                     monitor.pulse_frequency
1637
                                         monitor.dispose
1649
                                         monitor.dispose
1638
                                       }}
1650
                                       }}
1639
                                       &nbsp;{{ monitor.result }}
1651
                                       &nbsp;{{ monitor.result }}
1652
+                                      &nbsp;{{monitor.accumulated_blood_volume_name}}
1640
                                     </span>
1653
                                     </span>
1641
                                   </div>
1654
                                   </div>
1642
                                 </td>
1655
                                 </td>
2621
                                 />
2634
                                 />
2622
                               </div>
2635
                               </div>
2623
                             </div>
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
                             <div class="inline_block" style="flex: 1">
2652
                             <div class="inline_block" style="flex: 1">
2625
                               治疗医生:
2653
                               治疗医生:
2626
                               <div
2654
                               <div
3324
         for (let index = 0; index < this.monitors.length; index++) {
3352
         for (let index = 0; index < this.monitors.length; index++) {
3325
           const monitor = this.monitors[index];
3353
           const monitor = this.monitors[index];
3326
           this.monitors[index].end = "";
3354
           this.monitors[index].end = "";
3355
+          this.monitors[index].accumulated_blood_volume_name = ""
3327
           if (Object.keys(monitor).length > 0 && index > 1) {
3356
           if (Object.keys(monitor).length > 0 && index > 1) {
3328
             if (
3357
             if (
3329
               this.dialysisOrder &&
3358
               this.dialysisOrder &&
3330
               monitor.operate_time == this.dialysisOrder.end_time
3359
               monitor.operate_time == this.dialysisOrder.end_time
3360
+             
3331
             ) {
3361
             ) {
3332
               this.monitors[index].end = "【结束透析】";
3362
               this.monitors[index].end = "【结束透析】";
3363
+              this.monitors[index].accumulated_blood_volume_name ="累计血容量:"+  this.monitors[index].accumulated_blood_volume+"L"
3333
               tempmonitorflag = false;
3364
               tempmonitorflag = false;
3334
             }
3365
             }
3335
             if (tempmonitorflag && index == this.monitors.length - 1) {
3366
             if (tempmonitorflag && index == this.monitors.length - 1) {
3336
               this.monitors[index].end = "【结束透析】";
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
         }
3529
         }
3497
 
3530
 
3498
         this.totollength = this.doctor_advices.length + this.monitors.length;
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
           var doctor_advices_1 = [];
3534
           var doctor_advices_1 = [];
3502
           var doctor_advices_2 = [];
3535
           var doctor_advices_2 = [];
3503
           for (let index = 0; index < this.doctor_advices.length; index++) {
3536
           for (let index = 0; index < this.doctor_advices.length; index++) {

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

1
 <template>
1
 <template>
2
+ <div>
2
   <div id="dialysis-print-box" style="position: relative">
3
   <div id="dialysis-print-box" style="position: relative">
3
     <div class="dialysis-print-order">
4
     <div class="dialysis-print-order">
4
       <table class="print-table">
5
       <table class="print-table">
374
                       医师签名:
375
                       医师签名:
375
                       <span
376
                       <span
376
                         style="height: 20px"
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
                       </span>
381
                       </span>
381
                       <img
382
                       <img
382
                         class="es-img"
383
                         class="es-img"
383
                         style="height: 25px"
384
                         style="height: 25px"
384
-                        :src="setAdminUserES(prescription.modifier)"
385
+                        :src="setAdminUserES(advices[0].advice_doctor)"
385
                         alt
386
                         alt
386
                         srcset
387
                         srcset
387
                         v-else
388
                         v-else
614
                       </div>
615
                       </div>
615
                     </td>
616
                     </td>
616
                   </tr>
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
                 </tbody>
673
                 </tbody>
618
               </table>
674
               </table>
619
             </td>
675
             </td>
795
               </table>
851
               </table>
796
             </td>
852
             </td>
797
           </tr>
853
           </tr>
798
-          <tr style="transform: translateY(4px)">
854
+          <tr style="transform: translateY(4px)" v-if="org_id!=10346 && org_id!=0">
799
             <td>
855
             <td>
800
               <table class="print-table" border="1" style="text-align: center">
856
               <table class="print-table" border="1" style="text-align: center">
801
                 <tr>
857
                 <tr>
805
                   <td
861
                   <td
806
                     style="height: 20px"
862
                     style="height: 20px"
807
                     width="90"
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
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
866
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
811
                   </td>
867
                   </td>
815
                   <td
871
                   <td
816
                     style="height: 20px"
872
                     style="height: 20px"
817
                     width="70"
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
                     <p style="height: 20px; line-height: 20px">执行时间</p>
876
                     <p style="height: 20px; line-height: 20px">执行时间</p>
821
                   </td>
877
                   </td>
878
+             
822
                   <td style="height: 20px" width="90">
879
                   <td style="height: 20px" width="90">
823
                     <p style="height: 20px; line-height: 20px">执行</p>
880
                     <p style="height: 20px; line-height: 20px">执行</p>
824
                   </td>
881
                   </td>
838
                     }}kg
895
                     }}kg
839
                   </td>
896
                   </td>
840
                 </tr>
897
                 </tr>
898
+                
841
               </table>
899
               </table>
842
             </td>
900
             </td>
843
           </tr>
901
           </tr>
902
+          <div v-if="org_id!=10346 && org_id!=0">
844
           <tr
903
           <tr
845
             v-for="(advice, advice_index) in advices"
904
             v-for="(advice, advice_index) in advices"
846
             :key="advice_index"
905
             :key="advice_index"
855
                   <td
914
                   <td
856
                     style="line-height: 30px"
915
                     style="line-height: 30px"
857
                     width="90"
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
                     <span v-if="setAdminUserES(advice.advice_doctor) == ''">
919
                     <span v-if="setAdminUserES(advice.advice_doctor) == ''">
861
                       {{ getAdminUser(advice.advice_doctor) }}
920
                       {{ getAdminUser(advice.advice_doctor) }}
894
                   <td
953
                   <td
895
                     style="line-height: 10px"
954
                     style="line-height: 10px"
896
                     width="70"
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
                     <span v-if="advice.execution_time">{{
958
                     <span v-if="advice.execution_time">{{
900
                       getTime(advice.execution_time, "{h}:{i}")
959
                       getTime(advice.execution_time, "{h}:{i}")
901
                     }}</span>
960
                     }}</span>
902
                   </td>
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
                   <td style="line-height: 10px" width="90">
977
                   <td style="line-height: 10px" width="90">
904
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
978
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
905
                       getAdminUser(advice.execution_staff)
979
                       getAdminUser(advice.execution_staff)
1008
               </table>
1082
               </table>
1009
             </td>
1083
             </td>
1010
           </tr>
1084
           </tr>
1085
+          </div>
1011
 
1086
 
1012
           <tr style="transform: translateY(1px)">
1087
           <tr style="transform: translateY(1px)">
1013
             <td>
1088
             <td>
1043
                       <span
1118
                       <span
1044
                         v-if="
1119
                         v-if="
1045
                           setAdminUserES(
1120
                           setAdminUserES(
1046
-                            prescription == null
1121
+                            advices == null
1047
                               ? 0
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
                           getAdminUser(
1130
                           getAdminUser(
1056
-                            prescription == null
1131
+                            advices == null
1057
                               ? 0
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
       </table>
1201
       </table>
1127
     </div>
1202
     </div>
1128
   </div>
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
 </template>
1479
 </template>
1130
 
1480
 
1131
 <script>
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
                         class="under_line"
907
                         class="under_line"
908
                         style="width: 100px; text-align: center"
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
                           lastafterdialysis.weight_after
911
                           lastafterdialysis.weight_after
912
                         }}</span>
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
                           predialysis.weight_after_last_transparency
914
                           predialysis.weight_after_last_transparency
915
                             ? predialysis.weight_after_last_transparency
915
                             ? predialysis.weight_after_last_transparency
916
                             : "未称重"
916
                             : "未称重"
959
                             : "/"
959
                             : "/"
960
                         }}
960
                         }}
961
                       </div>
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
                     </div>
964
                     </div>
965
                     <div class="inline_block" style="flex: 1">
965
                     <div class="inline_block" style="flex: 1">
966
                       干体重:
966
                       干体重:
1067
                         }}
1067
                         }}
1068
                       </div>
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
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1071
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1072
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1072
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1073
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1073
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1074
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1074
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1075
                     </span>
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
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1078
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1079
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1079
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1080
                       <span v-if="prescription.anticoagulant == 2">mg</span>
1080
                       <span v-if="prescription.anticoagulant == 2">mg</span>
1113
                             : "0"
1113
                             : "0"
1114
                         }}
1114
                         }}
1115
                       </div>
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
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1118
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1119
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
1119
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
1121
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1121
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1122
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1122
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1123
                       </span>
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
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1125
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1126
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1126
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1127
                           <span v-if="prescription.anticoagulant == 4">ml</span>
1127
                           <span v-if="prescription.anticoagulant == 4">ml</span>
1186
                             : "/"
1186
                             : "/"
1187
                         }}
1187
                         }}
1188
                       </div>
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
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1190
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1191
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1191
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1192
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1192
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1193
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1193
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1194
                      </span>
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
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1196
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1197
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1197
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1198
                        <span v-if="prescription.anticoagulant == 4">ml</span>
1198
                        <span v-if="prescription.anticoagulant == 4">ml</span>
1286
                   
1286
                   
1287
                   </div>
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
                   <div
1318
                   <div
1290
                     class="row"
1319
                     class="row"
1291
                     style="padding: 2px 0; line-height: 23px; display: flex"
1320
                     style="padding: 2px 0; line-height: 23px; display: flex"
1464
                       
1493
                       
1465
 
1494
 
1466
                         <td>
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
                         </td>
1498
                         </td>
1469
                         <!-- <td style="width:50px">
1499
                         <!-- <td style="width:50px">
1470
                           <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))">
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
                       style="flex: 1"
2333
                       style="flex: 1"
2304
                       v-if="org_id != 10223"
2334
                       v-if="org_id != 10223"
2305
                     >
2335
                     >
2306
-                      透析中入量:
2336
+                      透析中入量(L)
2307
                       <div
2337
                       <div
2308
                         class="under_line"
2338
                         class="under_line"
2309
                         style="width: 70px; text-align: center"
2339
                         style="width: 70px; text-align: center"
2537
                     class="row"
2567
                     class="row"
2538
                     style="padding: 2px 0; line-height: 23px; display: flex"
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
                     <div class="inline_block" style="flex: 1">
2617
                     <div class="inline_block" style="flex: 1">
2541
                       穿刺护士:
2618
                       穿刺护士:
2542
                       <div
2619
                       <div
2576
                         />
2653
                         />
2577
                       </div>
2654
                       </div>
2578
                     </div>
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
                     <div class="inline_block" style="flex: 1">
2708
                     <div class="inline_block" style="flex: 1">
2580
                       <span v-if="org_id==10414">责任护士:</span> 
2709
                       <span v-if="org_id==10414">责任护士:</span> 
2581
                       <span v-else>治疗护士:</span> 
2710
                       <span v-else>治疗护士:</span> 
2617
                         />
2746
                         />
2618
                       </div>
2747
                       </div>
2619
                     </div>
2748
                     </div>
2749
+                  </div>
2750
+                  
2751
+
2752
+
2620
                     <div class="inline_block" style="flex: 1">
2753
                     <div class="inline_block" style="flex: 1">
2621
                       <span v-if="org_id==10387" >核对护士:</span> 
2754
                       <span v-if="org_id==10387" >核对护士:</span> 
2622
                       <span v-else >核对人员:</span> 
2755
                       <span v-else >核对人员:</span> 
2729
                       </div>
2862
                       </div>
2730
                     </div>
2863
                     </div>
2731
                     <div class="inline_block" style="flex: 1">
2864
                     <div class="inline_block" style="flex: 1">
2732
-                      下机护士:
2865
+                       下机护士:
2733
                       <div
2866
                       <div
2734
                         class="under_line"
2867
                         class="under_line"
2735
                         style="width: 80px; text-align: center"
2868
                         style="width: 80px; text-align: center"
3566
         for (let index = 0; index < this.doctor_advices.length; index++) {
3699
         for (let index = 0; index < this.doctor_advices.length; index++) {
3567
           this.doctor_advices[index]["isShow"] = 2;
3700
           this.doctor_advices[index]["isShow"] = 2;
3568
         }
3701
         }
3569
-
3702
+       console.log("total--------------------------",this.doctor_advices)
3570
         // if (this.doctor_advices.length > 0) {
3703
         // if (this.doctor_advices.length > 0) {
3571
         //   var group = this.newAdviceGroupObject()
3704
         //   var group = this.newAdviceGroupObject()
3572
         //   var initGroupBlock = function(group, advice) {
3705
         //   var initGroupBlock = function(group, advice) {
3662
         }
3795
         }
3663
 
3796
 
3664
         this.totollength = this.doctor_advices.length + this.monitors.length;
3797
         this.totollength = this.doctor_advices.length + this.monitors.length;
3798
+        console.log("this.totollength",this.totollength)
3665
         if (this.totollength > 18) {
3799
         if (this.totollength > 18) {
3666
           var temp_advice_length = 17 - this.monitors.length;
3800
           var temp_advice_length = 17 - this.monitors.length;
3667
           var doctor_advices_1 = [];
3801
           var doctor_advices_1 = [];

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

201
             </td>
201
             </td>
202
           </tr>
202
           </tr>
203
           <tr>
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
             <td style="text-align: left" colspan="1">
207
             <td style="text-align: left" colspan="1">
212
               <span style="display: inline-block; margin-left: 15px">
208
               <span style="display: inline-block; margin-left: 15px">
213
                 设定脱水量:{{
209
                 设定脱水量:{{
225
                 ></label-box>
221
                 ></label-box>
226
               </span>
222
               </span>
227
             </td>
223
             </td>
228
-            <td style="text-align: left" colspan="2">
224
+            <td style="text-align: left" colspan="3">
229
               <span style="display: inline-block; margin-left: 15px">
225
               <span style="display: inline-block; margin-left: 15px">
230
                 <span v-if="prescription.anticoagulant == 2">普通肝素首剂:</span>
226
                 <span v-if="prescription.anticoagulant == 2">普通肝素首剂:</span>
231
                 <span v-if="prescription.anticoagulant == 3"
227
                 <span v-if="prescription.anticoagulant == 3"
294
               <span v-if="prescription.anticoagulant == 2">mg/h</span>
290
               <span v-if="prescription.anticoagulant == 2">mg/h</span>
295
               <span v-if="prescription.anticoagulant == 1">mg/h</span>
291
               <span v-if="prescription.anticoagulant == 1">mg/h</span>
296
             </td>
292
             </td>
297
-            <td style="text-align: left" colspan="2">
293
+            <td style="text-align: left" colspan="1">
298
               <span style="display: inline-block; ">
294
               <span style="display: inline-block; ">
299
                 总量:
295
                 总量:
300
                 {{
296
                 {{
315
               <span v-if="prescription.anticoagulant == 1">mg</span>
311
               <span v-if="prescription.anticoagulant == 1">mg</span>
316
             </td>
312
             </td>
317
           </tr>
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
           <tr>
360
           <tr>
319
             <td style="text-align: left" colspan="1">
361
             <td style="text-align: left" colspan="1">
320
               <span style="display: inline-block; margin-left: 15px">
362
               <span style="display: inline-block; margin-left: 15px">
352
                 }}分钟
394
                 }}分钟
353
               </span>
395
               </span>
354
             </td>
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
               <span style="display: inline-block; margin-left: 15px">
399
               <span style="display: inline-block; margin-left: 15px">
370
                 置换方式:
400
                 置换方式:
371
                 <label-box
401
                 <label-box
372
                   :isChecked="
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
                   showValue="前"
405
                   showValue="前"
376
                 ></label-box
406
                 ></label-box
377
                 >&nbsp;
407
                 >&nbsp;
378
                 <label-box
408
                 <label-box
379
                   :isChecked="
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
                   showValue="后"
412
                   showValue="后"
383
                 ></label-box>
413
                 ></label-box>
384
-                &nbsp; (总量:{{
414
+                &nbsp; (总量:
415
+                <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{
385
                   prescription.displace_liqui_value
416
                   prescription.displace_liqui_value
386
                     ? prescription.displace_liqui_value
417
                     ? prescription.displace_liqui_value
387
                     : "/"
418
                     : "/"
388
                 }}L)
419
                 }}L)
420
+                </span>
389
               </span>
421
               </span>
390
             </td>
422
             </td>
391
           </tr>
423
           </tr>
431
                 </span>
463
                 </span>
432
               </span>
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
             </td>
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
             <td style="text-align: left" colspan="3">
485
             <td style="text-align: left" colspan="3">
451
               <span style="display: inline-block; margin-left: 15px">
486
               <span style="display: inline-block; margin-left: 15px">
452
                 <span
487
                 <span

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

536
                     <tr>
536
                     <tr>
537
                       <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
537
                       <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
538
                       <td width="220" style="text-align:left;border:none;">
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
                         <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+') > -1 ? true : false) :false" showValue="+"></label-box>
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
                       </td>
547
                       </td>
544
                       <td width="90" style="border:none;padding-left:5px">静脉管道:</td>
548
                       <td width="90" style="border:none;padding-left:5px">静脉管道:</td>
545
                       <td width="220" style="text-align:left;border:none;">
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
         },
225
         },
226
         payWays: [
226
         payWays: [
227
           { value: 1, label: '现金' },
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
           { value: 4, label: '医保卡' },
232
           { value: 4, label: '医保卡' },
232
-          { value: 6, label: '电子凭证' },
233
-
234
-
233
+          { value: 6, label: '电子凭证'},
235
         ],
234
         ],
236
         total: "",
235
         total: "",
237
 
236
 
288
             'admin_user_id': this.$store.getters.xt_user.user.id,
287
             'admin_user_id': this.$store.getters.xt_user.user.id,
289
             'certificates':1,
288
             'certificates':1,
290
           }
289
           }
291
-          
290
+
292
           axios.get('http://127.0.0.1:9532/zh/api/readcard', {
291
           axios.get('http://127.0.0.1:9532/zh/api/readcard', {
293
             params: params
292
             params: params
294
           })
293
           })

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

215
             >
215
             >
216
               上传结算清单
216
               上传结算清单
217
             </el-button>
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
             <el-button
244
             <el-button
219
               size="mini"
245
               size="mini"
220
               type="primary"
246
               type="primary"
452
   },
478
   },
453
 
479
 
454
   methods: {
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
     setStorage() {
596
     setStorage() {
456
       this.$store.commit("SET_PAGEDATA", {
597
       this.$store.commit("SET_PAGEDATA", {
457
         page: this.page,
598
         page: this.page,
1123
         setl_time: obj.setl_time,
1264
         setl_time: obj.setl_time,
1124
       };
1265
       };
1125
       this.invoiceParams = paramsObj;
1266
       this.invoiceParams = paramsObj;
1126
-      
1267
+
1127
       const loading = this.$loading({
1268
       const loading = this.$loading({
1128
           lock: true,
1269
           lock: true,
1129
           text: '正在加载中...',
1270
           text: '正在加载中...',

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

30
           <div style="margin-bottom: 10px">
30
           <div style="margin-bottom: 10px">
31
             科室:{{ item.info ? getDepart(item.info.departments) : "" }}
31
             科室:{{ item.info ? getDepart(item.info.departments) : "" }}
32
           </div>
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
           <div style="margin-bottom: 10px">电话:{{ item.patient.phone }}</div>
34
           <div style="margin-bottom: 10px">电话:{{ item.patient.phone }}</div>
35
           <div>地址:{{ item.patient.home_address }}</div>
35
           <div>地址:{{ item.patient.home_address }}</div>
36
           <div style="display: flex; width: 50%">
36
           <div style="display: flex; width: 50%">
116
             医师:
116
             医师:
117
             <span
117
             <span
118
               style="width: 100px; display: inline-block"
118
               style="width: 100px; display: inline-block"
119
-              v-if="setAdminUserES(item.creater) == ''"
120
             >
119
             >
121
               {{ item.doctor }}
120
               {{ item.doctor }}
122
             </span>
121
             </span>
123
             <img
122
             <img
124
               style="height: 30px"
123
               style="height: 30px"
125
-              :src="setAdminUserES(item.creater)"
124
+              :src="setAdminUserES(item.creator)"
126
               alt=""
125
               alt=""
127
               srcset=""
126
               srcset=""
128
-              v-else
129
             />
127
             />
130
           </p>
128
           </p>
131
           <p>
129
           <p>
192
   methods: {
190
   methods: {
193
     // 电子签名
191
     // 电子签名
194
     setAdminUserES(id) {
192
     setAdminUserES(id) {
193
+      console.log(id)
195
       if (id == 0) {
194
       if (id == 0) {
196
         return "";
195
         return "";
197
       }
196
       }
263
           console.log("adviceprint9999", advicePrint);
262
           console.log("adviceprint9999", advicePrint);
264
           this.advicePrint = advicePrint;
263
           this.advicePrint = advicePrint;
265
           this.prescriptions = advicePrint;
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
             for (var index = 0; index < operatorsLen; index++) {
278
             for (var index = 0; index < operatorsLen; index++) {
269
               this.$set(
279
               this.$set(
270
                 this.operatorMaps,
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
           this.hisPatient = response.data.data.hisHospitalRecord;
292
           this.hisPatient = response.data.data.hisHospitalRecord;
277
           var projectlist = response.data.data.projectlist;
293
           var projectlist = response.data.data.projectlist;
278
           console.log("所有项目列表", projectlist);
294
           console.log("所有项目列表", projectlist);

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

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
           <template slot-scope="scope">{{ scope.row.machine_status }}</template>
126
           <template slot-scope="scope">{{ scope.row.machine_status }}</template>
127
         </el-table-column>
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
           <template slot-scope="scope">{{getTotal(scope.row.bed_id,scope.row.user_total) }}</template>
130
           <template slot-scope="scope">{{getTotal(scope.row.bed_id,scope.row.user_total) }}</template>
131
         </el-table-column>
131
         </el-table-column>
132
 
132
 
214
       },
214
       },
215
       total: 0,
215
       total: 0,
216
       count:[],
216
       count:[],
217
+      org_id:0,
217
     };
218
     };
218
   },
219
   },
219
   methods: {
220
   methods: {
403
     this.getAllSubregion();
404
     this.getAllSubregion();
404
     this.getAllMachineInfo();
405
     this.getAllMachineInfo();
405
     this.getUserMachTotalCount()
406
     this.getUserMachTotalCount()
407
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
406
   }
408
   }
407
 };
409
 };
408
 </script>
410
 </script>

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

161
         },
161
         },
162
         payWays: [
162
         payWays: [
163
           {value: 1, label: '现金'},
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
           {value: 4, label: '医保卡'},
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
         }
2998
         }
2999
 
2999
 
3000
         if (this.hisPatientInfo.id_card_type == 1) {
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
             this.pwdFormVisible = true
3002
             this.pwdFormVisible = true
3003
             this.pwd = ''
3003
             this.pwd = ''
3004
           } else {
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
           >
110
           >
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>
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
           <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>
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
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
116
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
115
           <!--          >报表下载2-->
117
           <!--          >报表下载2-->
116
           <!--          </el-button-->
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
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
122
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
121
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
123
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
122
 <!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
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
           <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
127
           <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
124
 
128
 
125
 
129
 
225
             <el-button size="mini" type="primary" @click="toPrint(scope.row)">
229
             <el-button size="mini" type="primary" @click="toPrint(scope.row)">
226
               结算单
230
               结算单
227
             </el-button>
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
             <el-button
235
             <el-button
229
                 size="mini"
236
                 size="mini"
230
                 type="primary"
237
                 type="primary"
233
             >
240
             >
234
               上传结算清单
241
               上传结算清单
235
             </el-button>
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
             <el-button
270
             <el-button
237
                 size="mini"
271
                 size="mini"
238
                 type="primary"
272
                 type="primary"
239
                 @click="cancelUpload(scope.row)"
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
             </el-button>
277
             </el-button>
290
           :paramsObj="orderObj"
324
           :paramsObj="orderObj"
291
       ></new-statement-print>
325
       ></new-statement-print>
292
     </el-dialog>
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
     <el-dialog
337
     <el-dialog
294
         class="centerDialog"
338
         class="centerDialog"
295
         width="900px"
339
         width="900px"
354
 import settlementPrint from "./settlementPrint";
398
 import settlementPrint from "./settlementPrint";
355
 import {jsGetAge, uParseTime} from "@/utils/tools";
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
 export default {
406
 export default {
362
   name: "OutpatientChargesSummary",
407
   name: "OutpatientChargesSummary",
363
   components: {
408
   components: {
409
+    StatementListPrint,
364
     NewStatementPrintTwo,
410
     NewStatementPrintTwo,
365
     NewStatementPrint,
411
     NewStatementPrint,
366
     BreadCrumb,
412
     BreadCrumb,
372
   data() {
418
   data() {
373
     return {
419
     return {
374
       orderObj: {},
420
       orderObj: {},
421
+      statementListVisible:false,
375
       statementVisible: false,
422
       statementVisible: false,
376
       statementVisible9504: false,
423
       statementVisible9504: false,
377
       orderObj9504: {},
424
       orderObj9504: {},
483
           break;
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
     cancelUpload(row) {
570
     cancelUpload(row) {
487
-      var that = this;
488
-      axios
571
+        var that = this;
572
+        axios
489
           .get("http://127.0.0.1:9532/zh/api/clearsettle", {
573
           .get("http://127.0.0.1:9532/zh/api/clearsettle", {
490
             params: {
574
             params: {
491
               order_id: row.id,
575
               order_id: row.id,
500
               if (response.data.data.failed_code == -10) {
584
               if (response.data.data.failed_code == -10) {
501
                 // that.$message.error(response.data.data.msg)
585
                 // that.$message.error(response.data.data.msg)
502
                 that
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
               } else {
595
               } else {
512
                 that.$message.success("撤销成功");
596
                 that.$message.success("撤销成功");
513
                 row.result.id = 0;
597
                 row.result.id = 0;
516
           })
600
           })
517
           .catch(function (error) {
601
           .catch(function (error) {
518
           });
602
           });
603
+
519
     },
604
     },
520
     uploadInfo(row) {
605
     uploadInfo(row) {
521
       var that = this;
606
       var that = this;
551
           .catch(function (error) {
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
     fetchAllAdminUsers() {
717
     fetchAllAdminUsers() {
556
       fetchAllAdminUsers().then((response) => {
718
       fetchAllAdminUsers().then((response) => {
641
             .catch(() => {
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
     toPrint(row) {
842
     toPrint(row) {
646
       // 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) {
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
       //   if (row.mdtrt_id.indexOf('H') > -1) {
844
       //   if (row.mdtrt_id.indexOf('H') > -1) {
718
               //   obj["dialysis_time"] = this.getTimes(order.info[b].record_date)
915
               //   obj["dialysis_time"] = this.getTimes(order.info[b].record_date)
719
               // }
916
               // }
720
               if (order.psn_type == "11") {
917
               if (order.psn_type == "11") {
721
-
722
                 obj["psn_type"] = "职工在职"
918
                 obj["psn_type"] = "职工在职"
723
               } else if (order.psn_type == "12") {
919
               } else if (order.psn_type == "12") {
724
                 obj["psn_type"] = "职工退休"
920
                 obj["psn_type"] = "职工退休"
725
-
726
               } else if (order.psn_type == "13") {
921
               } else if (order.psn_type == "13") {
727
                 obj["psn_type"] = "离休"
922
                 obj["psn_type"] = "离休"
728
-
729
               } else if (order.psn_type == "14") {
923
               } else if (order.psn_type == "14") {
730
                 obj["psn_type"] = "居民医保"
924
                 obj["psn_type"] = "居民医保"
731
-
732
               } else if (order.psn_type == "15") {
925
               } else if (order.psn_type == "15") {
733
-
734
                 obj["psn_type"] = "居民医保"
926
                 obj["psn_type"] = "居民医保"
735
-
736
               } else if (order.psn_type == "16") {
927
               } else if (order.psn_type == "16") {
737
                 obj["psn_type"] = "居民医保"
928
                 obj["psn_type"] = "居民医保"
738
-
739
               }
929
               }
740
 
930
 
741
               list.push(obj)
931
               list.push(obj)
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
     export_detail_three() {
1096
     export_detail_three() {
827
       let params = {};
1097
       let params = {};
828
       getHisDataThree(params).then((response) => {
1098
       getHisDataThree(params).then((response) => {
839
               let obj = {
1109
               let obj = {
840
                 name: order.patient.name,
1110
                 name: order.patient.name,
841
                 id_card_no: order.patient.id_card_no,
1111
                 id_card_no: order.patient.id_card_no,
842
-                year: "2022",
843
-                month: "8",
1112
+                year: "2023",
1113
+                month: "2",
844
                 code: data[b].code,
1114
                 code: data[b].code,
845
                 pric: data[b].count * data[b].price,
1115
                 pric: data[b].count * data[b].price,
846
                 item_name: data[b].name,
1116
                 item_name: data[b].name,
847
                 unit: data[b].unit,
1117
                 unit: data[b].unit,
848
                 count: data[b].count,
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
               if (order.insutype == "310") {
1122
               if (order.insutype == "310") {
867
                 "医保类型": list[i].insutype,
1138
                 "医保类型": list[i].insutype,
868
                 "年": list[i].year,
1139
                 "年": list[i].year,
869
                 "月": list[i].month,
1140
                 "月": list[i].month,
1141
+
870
                 "药品编码": list[i].code,
1142
                 "药品编码": list[i].code,
1143
+                "费用类型": list[i].item_type_name,
871
                 "名称": list[i].item_name,
1144
                 "名称": list[i].item_name,
872
                 "单位": list[i].unit,
1145
                 "单位": list[i].unit,
873
                 "数量": list[i].count,
1146
                 "数量": list[i].count,
885
               "年",
1158
               "年",
886
               "月",
1159
               "月",
887
               "药品编码",
1160
               "药品编码",
1161
+              "费用类型",
888
               "名称",
1162
               "名称",
889
               "单位",
1163
               "单位",
890
               "数量",
1164
               "数量",
898
               "年",
1172
               "年",
899
               "月",
1173
               "月",
900
               "药品编码",
1174
               "药品编码",
1175
+              "费用类型",
901
               "名称",
1176
               "名称",
902
               "单位",
1177
               "单位",
903
               "数量",
1178
               "数量",
1221
           var tarList = []
1496
           var tarList = []
1222
           for (let i = 0; i < list.length; i++) {
1497
           for (let i = 0; i < list.length; i++) {
1223
             let obj = {
1498
             let obj = {
1224
-              "周期": "2022年第四季度",
1499
+              "周期": "2023年第一季度",
1225
               "类别": "门诊",
1500
               "类别": "门诊",
1226
               "医保目录编码": list[i].code,
1501
               "医保目录编码": list[i].code,
1227
               "医保目录名称": list[i].name,
1502
               "医保目录名称": list[i].name,
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
     getType(med_chrgitm_type) {
1790
     getType(med_chrgitm_type) {
1423
       switch (med_chrgitm_type) {
1791
       switch (med_chrgitm_type) {
1424
         case '01':
1792
         case '01':
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
     GetGoodName(id) {
2193
     GetGoodName(id) {
1737
       switch (id) {
2194
       switch (id) {
1928
 
2385
 
1929
             } else if (order.his_patient.insuplc_admdvs == "440704"){
2386
             } else if (order.his_patient.insuplc_admdvs == "440704"){
1930
 
2387
 
1931
-              insuplc_admdvs_name = "江区"
2388
+              insuplc_admdvs_name = "江区"
1932
 
2389
 
1933
 
2390
 
1934
             } else if (order.his_patient.insuplc_admdvs == "440705"){
2391
             } else if (order.his_patient.insuplc_admdvs == "440705"){
1935
 
2392
 
1936
-              insuplc_admdvs_name = "蓬江区"
2393
+              insuplc_admdvs_name = "新会区"
1937
 
2394
 
1938
 
2395
 
1939
             }else if (order.his_patient.insuplc_admdvs == "440781"){
2396
             }else if (order.his_patient.insuplc_admdvs == "440781"){
1940
 
2397
 
1941
-              insuplc_admdvs_name = "蓬江区"
1942
-
2398
+              insuplc_admdvs_name = "台山市"
1943
 
2399
 
1944
             }else if (order.his_patient.insuplc_admdvs == "440783"){
2400
             }else if (order.his_patient.insuplc_admdvs == "440783"){
1945
-
1946
-              insuplc_admdvs_name = "蓬江区"
1947
-
2401
+              insuplc_admdvs_name = "开平市"
1948
 
2402
 
1949
             }else if (order.his_patient.insuplc_admdvs == "440784"){
2403
             }else if (order.his_patient.insuplc_admdvs == "440784"){
1950
-
1951
-
2404
+              insuplc_admdvs_name = "鹤山市"
1952
 
2405
 
1953
             }else if (order.his_patient.insuplc_admdvs == "440785"){
2406
             }else if (order.his_patient.insuplc_admdvs == "440785"){
1954
-
1955
-
2407
+              insuplc_admdvs_name = "恩平市"
1956
 
2408
 
1957
             }else if (order.his_patient.insuplc_admdvs == "440799"){
2409
             }else if (order.his_patient.insuplc_admdvs == "440799"){
1958
-
1959
-
1960
-
2410
+              insuplc_admdvs_name = "市直"
1961
             }
2411
             }
1962
 
2412
 
1963
 
2413
 
1964
-
1965
             let obj = {
2414
             let obj = {
1966
               就诊号: order.mdtrt_id,
2415
               就诊号: order.mdtrt_id,
1967
               患者姓名: name,
2416
               患者姓名: name,
1968
               开处时间: time,
2417
               开处时间: time,
1969
               险种类型: insutypeName,
2418
               险种类型: insutypeName,
1970
               参保所属医保区划: order.his_patient.insuplc_admdvs,
2419
               参保所属医保区划: order.his_patient.insuplc_admdvs,
1971
-              属地名称: order.his_patient.insuplc_admdvs,
2420
+              参保号:order.his_patient.id_card_no,
2421
+              属地名称: insuplc_admdvs_name,
1972
               应收金额: order.medfee_sumamt,
2422
               应收金额: order.medfee_sumamt,
1973
               实收金额: order.medfee_sumamt,
2423
               实收金额: order.medfee_sumamt,
1974
               医保统筹金额: order.hifp_pay,
2424
               医保统筹金额: order.hifp_pay,
2002
               "患者姓名",
2452
               "患者姓名",
2003
               "开处时间",
2453
               "开处时间",
2004
               "险种类型",
2454
               "险种类型",
2455
+              "参保所属医保区划",
2456
+              "参保号",
2457
+              "属地名称",
2005
               "应收金额",
2458
               "应收金额",
2006
               "实收金额",
2459
               "实收金额",
2007
               "医保统筹金额",
2460
               "医保统筹金额",
2031
               "患者姓名",
2484
               "患者姓名",
2032
               "开处时间",
2485
               "开处时间",
2033
               "险种类型",
2486
               "险种类型",
2487
+              "参保所属医保区划",
2488
+              "参保号",
2489
+              "属地名称",
2034
               "应收金额",
2490
               "应收金额",
2035
               "实收金额",
2491
               "实收金额",
2036
               "医保统筹金额",
2492
               "医保统筹金额",
2132
               price: month_prescriptions[i].project[a].price
2588
               price: month_prescriptions[i].project[a].price
2133
 
2589
 
2134
             }
2590
             }
2591
+
2135
             project_ids.push(obj)
2592
             project_ids.push(obj)
2136
             project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2593
             project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2137
           }
2594
           }
2153
             obj['code'] = drug_month_prescriptions.advices[a].id
2610
             obj['code'] = drug_month_prescriptions.advices[a].id
2154
             obj['unit'] = drug_month_prescriptions.advices[a].drug.min_unit
2611
             obj['unit'] = drug_month_prescriptions.advices[a].drug.min_unit
2155
             obj['price'] = parseFloat(drug_month_prescriptions.advices[a].price)
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
             count = count + drug_month_prescriptions.advices[a].prescribing_number
2617
             count = count + drug_month_prescriptions.advices[a].prescribing_number
2157
           }
2618
           }
2158
         }
2619
         }
2171
               obj['code'] = project_month_prescriptions.project[a].id
2632
               obj['code'] = project_month_prescriptions.project[a].id
2172
               obj['unit'] = project_month_prescriptions.project[a].project.unit
2633
               obj['unit'] = project_month_prescriptions.project[a].project.unit
2173
               obj['type'] = 2
2634
               obj['type'] = 2
2635
+              obj['id'] = project_month_prescriptions.project[a].id
2636
+
2174
 
2637
 
2175
             } else if (project_month_prescriptions.project[a].type == 3) {
2638
             } else if (project_month_prescriptions.project[a].type == 3) {
2176
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
2639
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
2177
               obj['code'] = project_month_prescriptions.project[a].id
2640
               obj['code'] = project_month_prescriptions.project[a].id
2178
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
2641
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
2179
               obj['type'] = 3
2642
               obj['type'] = 3
2643
+              obj['id'] = project_month_prescriptions.project[a].id
2180
 
2644
 
2181
             }
2645
             }
2182
             count = count + parseFloat(project_month_prescriptions.project[a].count)
2646
             count = count + parseFloat(project_month_prescriptions.project[a].count)
2183
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
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

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
       </template> -->
13
       </template> -->
14
 
14
 
15
     <div class='dialysisPage' style="padding-top:40px;">
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
         <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>
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
 <!--        <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>-->
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
 <!--        <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>-->
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
 <!--        <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>-->
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
 <!--        <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>-->
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
       </div>
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
     </div>
26
     </div>
25
   </div>
27
   </div>
26
 </template>
28
 </template>
40
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
42
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
41
 import PrintSix from '../template/printSix'
43
 import PrintSix from '../template/printSix'
42
 import BatchPrintTwo from './batchPrintTwo'
44
 import BatchPrintTwo from './batchPrintTwo'
45
+import BatchPrintThree from './batchPrintThree'
46
+
43
 export default {
47
 export default {
44
   name: "dialysisPrintOrder",
48
   name: "dialysisPrintOrder",
45
   components: {
49
   components: {
46
     BatchPrintTwo,
50
     BatchPrintTwo,
47
     PrintSix,
51
     PrintSix,
48
     BreadCrumb,
52
     BreadCrumb,
49
-    printOne
53
+    printOne,
54
+    BatchPrintThree
50
   },
55
   },
51
   props:{
56
   props:{
52
     paramsObj:Object,
57
     paramsObj:Object,

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

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

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

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

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

32
             placeholder="选择日期时间"
32
             placeholder="选择日期时间"
33
             align="right"
33
             align="right"
34
         ></el-date-picker>
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
         <el-button
52
         <el-button
36
             size="small"
53
             size="small"
37
             style="margin: 0 10px"
54
             style="margin: 0 10px"
222
       selecting_schs: [],
239
       selecting_schs: [],
223
       printData: [],
240
       printData: [],
224
       printType: 0,
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
   methods: {
253
   methods: {
276
                   style: style,
301
                   style: style,
277
                   scanStyles: false
302
                   scanStyles: false
278
                 })
303
                 })
279
-              } 
304
+              }
280
               // else {
305
               // else {
281
               //   const style =
306
               //   const style =
282
               //       '@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;}}'
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
         record_date: this.record_date,
359
         record_date: this.record_date,
335
         page: this.page,
360
         page: this.page,
336
         limit: this.limit,
361
         limit: this.limit,
337
-        keywords: this.keywords
362
+        keywords: this.keywords,
363
+        sch_type: this.sch_type,
338
       }
364
       }
339
       getHisPrescriptionList(params).then((response) => {
365
       getHisPrescriptionList(params).then((response) => {
340
         if (response.data.state == 0) {
366
         if (response.data.state == 0) {
375
         }
401
         }
376
       }
402
       }
377
       return name
403
       return name
404
+    },changeSchType(){
405
+      this.getHisPrescriptionList()
406
+
378
     },
407
     },
379
     handleSelectionChange(val) {
408
     handleSelectionChange(val) {
380
       this.selecting_schs = val
409
       this.selecting_schs = val
400
 
429
 
401
           let new_patients = []
430
           let new_patients = []
402
           if (type != 3) {
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
           } else {
475
           } else {
409
             Arr.forEach((el) => {
476
             Arr.forEach((el) => {
410
               el.new_prescriptions.forEach((o) => {
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

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
           this.tableData[i].assessment_date = this.getTime(this.tableData[i].assessment_date,'{y}-{m}-{d}')
626
           this.tableData[i].assessment_date = this.getTime(this.tableData[i].assessment_date,'{y}-{m}-{d}')
627
           this.tableData[i].name = this.tableData[i].patient.name
627
           this.tableData[i].name = this.tableData[i].patient.name
628
           this.tableData[i].over_pluse =  this.tableData[i].weight_before -  this.tableData[i].last_after_weight
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
         const tHeader = ['日期', '姓名', '干体重','前次透后体重','透前体重','透后体重','体重增加']
632
         const tHeader = ['日期', '姓名', '干体重','前次透后体重','透前体重','透后体重','体重增加']

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

44
                 <div class="lineUpMain">
44
                 <div class="lineUpMain">
45
                     <div class="lineUpMainLeft">
45
                     <div class="lineUpMainLeft">
46
                         <div class="lineUpMainLeftTitle">
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
                             <p style="width:14%">姓名</p>
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
                             <p style="width:14%">床位号</p>
50
                             <p style="width:14%">床位号</p>
51
                             <p style="width:14%">治疗状态</p>
51
                             <p style="width:14%">治疗状态</p>
52
                             <p style="width:14%">上机时间</p>
52
                             <p style="width:14%">上机时间</p>
54
                         </div>
54
                         </div>
55
                         <div class="lineUpList">
55
                         <div class="lineUpList">
56
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
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
                                     <span v-if="item.schedule_type == 1">上午</span>
58
                                     <span v-if="item.schedule_type == 1">上午</span>
59
                                     <span v-if="item.schedule_type == 2">下午</span>
59
                                     <span v-if="item.schedule_type == 2">下午</span>
60
                                     <span v-if="item.schedule_type == 3">晚上</span>
60
                                     <span v-if="item.schedule_type == 3">晚上</span>
61
                                     {{ item.queue_no }}号
61
                                     {{ item.queue_no }}号
62
                                 </p>
62
                                 </p>
63
                                 <p style="width:14%">{{ item.patient_name }}</p>
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
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
65
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
66
                                 <p style="width:14%">
66
                                 <p style="width:14%">
67
                                     <span v-if="item.status == 1">待接诊</span>
67
                                     <span v-if="item.status == 1">待接诊</span>
221
                 <div class="lineUpMain">
221
                 <div class="lineUpMain">
222
                     <div class="lineUpMainLeft">
222
                     <div class="lineUpMainLeft">
223
                         <div class="lineUpMainLeftTitle">
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
                             <p style="width:14%">姓名</p>
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
                             <p style="width:14%">床位号</p>
227
                             <p style="width:14%">床位号</p>
228
                             <p style="width:14%">治疗状态</p>
228
                             <p style="width:14%">治疗状态</p>
229
                             <p style="width:14%">上机时间</p>
229
                             <p style="width:14%">上机时间</p>
231
                         </div>
231
                         </div>
232
                         <div class="lineUpList">
232
                         <div class="lineUpList">
233
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
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
                                     <span v-if="item.schedule_type == 1">上午</span>
235
                                     <span v-if="item.schedule_type == 1">上午</span>
236
                                     <span v-if="item.schedule_type == 2">下午</span>
236
                                     <span v-if="item.schedule_type == 2">下午</span>
237
                                     <span v-if="item.schedule_type == 3">晚上</span>
237
                                     <span v-if="item.schedule_type == 3">晚上</span>
238
                                     {{ item.queue_no }}号
238
                                     {{ item.queue_no }}号
239
                                 </p>
239
                                 </p>
240
                                 <p style="width:14%">{{ item.patient_name }}</p>
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
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
242
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
243
                                 <p style="width:14%">
243
                                 <p style="width:14%">
244
                                     <span v-if="item.status == 1">待接诊</span>
244
                                     <span v-if="item.status == 1">待接诊</span>

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

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

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

149
         </el-table-column>
149
         </el-table-column>
150
         <el-table-column label="数量" align="center">
150
         <el-table-column label="数量" align="center">
151
           <template slot-scope="scope">
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
           </template>
159
           </template>
155
         </el-table-column>
160
         </el-table-column>
156
         <el-table-column label="总价" align="center">
161
         <el-table-column label="总价" align="center">
341
           this.wareOutList =  response.data.data.list
346
           this.wareOutList =  response.data.data.list
342
           console.log("党的20大长长",this.wareOutList)
347
           console.log("党的20大长长",this.wareOutList)
343
           var total = 0
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
           for (let i = 0; i < response.data.data.list.length; i++) {
358
           for (let i = 0; i < response.data.data.list.length; i++) {
346
             this.tableData.push(response.data.data.list[i])
359
             this.tableData.push(response.data.data.list[i])
347
 
360
 
349
             total += response.data.data.list[i].price * response.data.data.list[i].count
362
             total += response.data.data.list[i].price * response.data.data.list[i].count
350
             obj["is_total"] = 0;
363
             obj["is_total"] = 0;
351
             this.cancelStockDate.push(obj);
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
           this.wareOutList =  response.data.data.list
406
           this.wareOutList =  response.data.data.list
400
           console.log("党的20大长长",this.wareOutList)
407
           console.log("党的20大长长",this.wareOutList)
401
           var total = 0
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
           for (let i = 0; i < response.data.data.list.length; i++) {
418
           for (let i = 0; i < response.data.data.list.length; i++) {
403
             this.tableData.push(response.data.data.list[i])
419
             this.tableData.push(response.data.data.list[i])
404
             var obj = response.data.data.list[i];
420
             var obj = response.data.data.list[i];
408
             if(response.data.data.list[i].price == 0){
424
             if(response.data.data.list[i].price == 0){
409
                total += response.data.data.list[i].GoodInfo.packing_price * response.data.data.list[i].count
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
             obj["is_total"] = 0;
428
             obj["is_total"] = 0;
429
+            
413
             this.cancelStockDate.push(obj);
430
             this.cancelStockDate.push(obj);
414
           }
431
           }
415
 
432
 
416
           this.tableDataList = response.data.data.list
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
      goodList:[
356
      goodList:[
357
       {id:1,name:"全部药品"},
357
       {id:1,name:"全部药品"},
358
       {id:2,name:"库存预警"},
358
       {id:2,name:"库存预警"},
359
+      {id:3,name:"库存为零"},
359
      ],
360
      ],
360
      houseList:[],
361
      houseList:[],
361
      storehouse_id:0,
362
      storehouse_id:0,

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

131
               {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
131
               {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
132
             
132
             
133
            </template>
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
         </el-table-column>
149
         </el-table-column>
135
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
150
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
136
            <template slot-scope="scope">
151
            <template slot-scope="scope">
257
         total:0,
272
         total:0,
258
         drug:{},
273
         drug:{},
259
         houseList:[],
274
         houseList:[],
275
+        patientList:[],
260
       }
276
       }
261
     },
277
     },
262
     methods:{
278
     methods:{
509
             var drug = response.data.data.drug
525
             var drug = response.data.data.drug
510
            
526
            
511
             this.drug = drug
527
             this.drug = drug
528
+            this.patientList = response.data.data.patientList
512
 
529
 
513
             this.houseList = response.data.data.houseList
530
             this.houseList = response.data.data.houseList
514
           }
531
           }
552
       }
569
       }
553
       return storehouse_name
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
 </script>
603
 </script>

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

252
       >
252
       >
253
         <el-table-column label="药品名称" align="center">
253
         <el-table-column label="药品名称" align="center">
254
           <template slot-scope="scope">
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
           </template>
258
           </template>
257
         </el-table-column>
259
         </el-table-column>
258
         <el-table-column label="药品类型" align="center">
260
         <el-table-column label="药品类型" align="center">
259
           <template slot-scope="scope">
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
           </template>
263
           </template>
262
         </el-table-column>
264
         </el-table-column>
263
         <el-table-column label="规格&单位" align="center">
265
         <el-table-column label="规格&单位" align="center">
264
           <template slot-scope="scope">
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
               scope.row.drug.min_number
268
               scope.row.drug.min_number
267
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
269
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
270
+            </span> 
268
           </template>
271
           </template>
269
         </el-table-column>
272
         </el-table-column>
270
         <el-table-column label="国家编码" align="center">
273
         <el-table-column label="国家编码" align="center">
271
           <template slot-scope="scope">
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
           </template>
278
           </template>
274
         </el-table-column>
279
         </el-table-column>
275
         <el-table-column label="批号" align="center">
280
         <el-table-column label="批号" align="center">
276
           <template slot-scope="scope">
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
           </template>
283
           </template>
279
         </el-table-column>
284
         </el-table-column>
280
         <el-table-column label="仓库名称" align="center">
285
         <el-table-column label="仓库名称" align="center">
281
           <template slot-scope="scope">
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
           </template>
290
           </template>
284
         </el-table-column>
291
         </el-table-column>
285
         <el-table-column label="入库数量" align="center">
292
         <el-table-column label="入库数量" align="center">
286
           <template slot-scope="scope">
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
           </template>
297
           </template>
289
         </el-table-column>
298
         </el-table-column>
290
         <!-- <el-table-column label="拆零零售价" align="center">
299
         <!-- <el-table-column label="拆零零售价" align="center">
294
         </el-table-column> -->
303
         </el-table-column> -->
295
         <el-table-column label="进货价" align="center">
304
         <el-table-column label="进货价" align="center">
296
           <template slot-scope="scope">
305
           <template slot-scope="scope">
297
-            {{ scope.row.price }}
306
+            <span v-if="scope.row.is_total == 0">{{ scope.row.price }}</span> 
298
           </template>
307
           </template>
299
         </el-table-column>
308
         </el-table-column>
300
         <el-table-column label="总价" align="center">
309
         <el-table-column label="总价" align="center">
301
           <template slot-scope="scope">
310
           <template slot-scope="scope">
302
             <!-- {{scope.row.total_price}} -->
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
           </template>
316
           </template>
305
         </el-table-column>
317
         </el-table-column>
306
         <el-table-column label="生产厂家" align="center">
318
         <el-table-column label="生产厂家" align="center">
307
           <template slot-scope="scope">
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
           </template>
323
           </template>
310
         </el-table-column>
324
         </el-table-column>
311
         <el-table-column label="生产日期" align="center">
325
         <el-table-column label="生产日期" align="center">
312
           <template slot-scope="scope">
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
           </template>
328
           </template>
315
         </el-table-column>
329
         </el-table-column>
316
         <el-table-column label="有效日期" align="center">
330
         <el-table-column label="有效日期" align="center">
317
           <template slot-scope="scope">
331
           <template slot-scope="scope">
332
+           <span v-if="scope.row.is_total == 0">
318
             {{ getTime(scope.row.expiry_date) }}
333
             {{ getTime(scope.row.expiry_date) }}
334
+            </span> 
319
           </template>
335
           </template>
320
         </el-table-column>
336
         </el-table-column>
321
         <el-table-column label="经销商" align="center">
337
         <el-table-column label="经销商" align="center">
322
           <template slot-scope="scope">
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
           </template>
342
           </template>
325
         </el-table-column>
343
         </el-table-column>
326
         <el-table-column label="批准文号" align="center">
344
         <el-table-column label="批准文号" align="center">
327
           <template slot-scope="scope">
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
           </template>
349
           </template>
330
         </el-table-column>
350
         </el-table-column>
331
         <el-table-column label="备注" align="center">
351
         <el-table-column label="备注" align="center">
332
           <template slot-scope="scope">
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
           </template>
356
           </template>
335
         </el-table-column>
357
         </el-table-column>
336
       </el-table>
358
       </el-table>
774
           this.$message.error(response.data.msg);
796
           this.$message.error(response.data.msg);
775
           return false;
797
           return false;
776
         } else {
798
         } else {
799
+          var obj = {total_count:0,is_total:1}
777
           for (let i = 0; i < response.data.data.info.length; i++) {
800
           for (let i = 0; i < response.data.data.info.length; i++) {
801
+            response.data.data.info[i].is_total = 0
778
             this.showOne = true;
802
             this.showOne = true;
779
             this.WarehouseInfo.warehouseInfoDate.push(
803
             this.WarehouseInfo.warehouseInfoDate.push(
780
               response.data.data.info[i]
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
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
810
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
784
           this.getAllDrugList();
811
           this.getAllDrugList();
785
         }
812
         }

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

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

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

131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
132
            </template>
132
            </template>
133
         </el-table-column>
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
        </el-table>
144
        </el-table>
135
        
145
        
136
       <el-pagination
146
       <el-pagination
236
         cancelCountList:[],
246
         cancelCountList:[],
237
         good:{},
247
         good:{},
238
         houseList:[],
248
         houseList:[],
249
+        patientList:[]
239
       }
250
       }
240
     },
251
     },
241
     methods:{
252
     methods:{
443
            var manufacturerList = response.data.data.manufacturerList
454
            var manufacturerList = response.data.data.manufacturerList
444
            this.manufacturerList = manufacturerList
455
            this.manufacturerList = manufacturerList
445
            this.houseList = response.data.data.houseList
456
            this.houseList = response.data.data.houseList
457
+           this.patientList = response.data.data.patients
446
           }
458
           }
447
        })
459
        })
448
      },
460
      },
469
          specification_name = this.good.specification_name
481
          specification_name = this.good.specification_name
470
        }
482
        }
471
        return specification_name
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
         >
239
         >
240
         <el-table-column label="耗材名称" align="center">
240
         <el-table-column label="耗材名称" align="center">
241
           <template slot-scope="scope">
241
           <template slot-scope="scope">
242
+           <span v-if="scope.row.is_total == 0">
242
             {{ scope.row.GoodInfo.good_name }}
243
             {{ scope.row.GoodInfo.good_name }}
244
+            </span> 
243
           </template>
245
           </template>
244
         </el-table-column>
246
         </el-table-column>
245
         <el-table-column label="耗材类型" align="center">
247
         <el-table-column label="耗材类型" align="center">
246
           <template slot-scope="scope">
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
           </template>
252
           </template>
249
         </el-table-column>
253
         </el-table-column>
250
         <el-table-column label="规格&单位" align="center">
254
         <el-table-column label="规格&单位" align="center">
251
           <template slot-scope="scope">
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
           </template>
259
           </template>
254
         </el-table-column>
260
         </el-table-column>
255
         <el-table-column label="国家编码" align="center">
261
         <el-table-column label="国家编码" align="center">
256
           <template slot-scope="scope">
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
           </template>
266
           </template>
259
         </el-table-column>
267
         </el-table-column>
260
         <el-table-column label="批号" align="center">
268
         <el-table-column label="批号" align="center">
261
           <template slot-scope="scope">
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
           </template>
273
           </template>
264
         </el-table-column>
274
         </el-table-column>
265
          <el-table-column label="仓库名称" align="center">
275
          <el-table-column label="仓库名称" align="center">
266
           <template slot-scope="scope">
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
           </template>
280
           </template>
269
         </el-table-column>
281
         </el-table-column>
270
 
282
 
271
         <el-table-column label="入库数量" align="center">
283
         <el-table-column label="入库数量" align="center">
272
           <template slot-scope="scope">
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
           </template>
286
           </template>
275
         </el-table-column>
287
         </el-table-column>
276
          <!-- <el-table-column label="零售价" align="center">
288
          <!-- <el-table-column label="零售价" align="center">
280
         </el-table-column> -->
292
         </el-table-column> -->
281
         <el-table-column label="进货价" align="center">
293
         <el-table-column label="进货价" align="center">
282
           <template slot-scope="scope">
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
           </template>
298
           </template>
285
         </el-table-column>
299
         </el-table-column>
286
         <el-table-column label="总价" align="center">
300
         <el-table-column label="总价" align="center">
287
           <template slot-scope="scope">
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
           </template>
308
           </template>
290
         </el-table-column>
309
         </el-table-column>
291
         <el-table-column label="生产厂家" align="center">
310
         <el-table-column label="生产厂家" align="center">
292
           <template slot-scope="scope">
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
           </template>
315
           </template>
295
         </el-table-column>
316
         </el-table-column>
296
         <el-table-column label="生产日期" align="center">
317
         <el-table-column label="生产日期" align="center">
297
           <template slot-scope="scope">
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
           </template>
322
           </template>
300
         </el-table-column>
323
         </el-table-column>
301
         <el-table-column label="有效期" align="center">
324
         <el-table-column label="有效期" align="center">
302
           <template slot-scope="scope">
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
           </template>
329
           </template>
305
         </el-table-column>
330
         </el-table-column>
306
        <el-table-column label="经销商" align="center">
331
        <el-table-column label="经销商" align="center">
307
           <template slot-scope="scope">
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
           </template>
336
           </template>
310
         </el-table-column>
337
         </el-table-column>
311
        <el-table-column label="批准文号" align="center">
338
        <el-table-column label="批准文号" align="center">
312
           <template slot-scope="scope">
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
           </template>
341
           </template>
315
         </el-table-column>
342
         </el-table-column>
316
         <el-table-column label="注册编码" align="center">
343
         <el-table-column label="注册编码" align="center">
317
           <template slot-scope="scope">
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
           </template>
348
           </template>
320
         </el-table-column>
349
         </el-table-column>
321
         <el-table-column label="备注" align="center">
350
         <el-table-column label="备注" align="center">
322
           <template slot-scope="scope">
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
           </template>
355
           </template>
325
         </el-table-column>
356
         </el-table-column>
326
         </el-table>
357
         </el-table>
423
           <el-table-column label="总价" min-width="20" align="center">
454
           <el-table-column label="总价" min-width="20" align="center">
424
             <template slot-scope="scope">
455
             <template slot-scope="scope">
425
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
456
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
457
+             
426
             </template>
458
             </template>
427
           </el-table-column>
459
           </el-table-column>
428
 
460
 
1325
           return false;
1357
           return false;
1326
         } else {
1358
         } else {
1327
           this.tableShow = true
1359
           this.tableShow = true
1360
+          var  obj = {name:"总计",total_count:0,is_total:1}
1328
           for (let i = 0; i < response.data.data.info.length; i++) {
1361
           for (let i = 0; i < response.data.data.info.length; i++) {
1329
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1362
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1330
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1363
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1331
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1364
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1332
-
1365
+           
1333
             this.recordInfo.recordData.push(response.data.data.info[i]);
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
             this.tableList.push(response.data.data.info[i])
1371
             this.tableList.push(response.data.data.info[i])
1335
           }
1372
           }
1373
+           this.tableList.push(obj)
1336
            this.warehouse = response.data.data.warehousing;
1374
            this.warehouse = response.data.data.warehousing;
1337
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
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
                 </el-form-item>
249
                 </el-form-item>
250
               </el-col>
250
               </el-col>
251
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
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
                   <el-input
253
                   <el-input
254
                     v-model="form.homeTelephone"
254
                     v-model="form.homeTelephone"
255
                     maxlength="20"
255
                     maxlength="20"
435
               </el-col>
435
               </el-col>
436
 
436
 
437
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
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
                   <el-input v-model="form.homeAddress"></el-input>
439
                   <el-input v-model="form.homeAddress"></el-input>
440
                 </el-form-item>
440
                 </el-form-item>
441
               </el-col>
441
               </el-col>
1358
         {validator: checkage,trigger:'blur'}],
1358
         {validator: checkage,trigger:'blur'}],
1359
         firstDialysisDate: [
1359
         firstDialysisDate: [
1360
           { required: true, message: "请选择日期", trigger: "blur" }
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
       adminUserOptions:[],
1366
       adminUserOptions:[],
1367
     };
1367
     };
1719
               this.form.gender = patietInfo.gender;
1719
               this.form.gender = patietInfo.gender;
1720
             }
1720
             }
1721
             this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
1721
             this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
1722
+            console.log("中共232323232322323我-------------",this.form.birth)
1722
             this.form.nation = patietInfo.nation;
1723
             this.form.nation = patietInfo.nation;
1723
             this.form.native_place = patietInfo.native_place;
1724
             this.form.native_place = patietInfo.native_place;
1724
             this.form.height = patietInfo.height + "";
1725
             this.form.height = patietInfo.height + "";

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

121
             {
121
             {
122
               name: '1-5',
122
               name: '1-5',
123
               label: '抢救记录'
123
               label: '抢救记录'
124
+            },
125
+            {
126
+              name: '1-11',
127
+              label: '首次病程记录'
124
             }
128
             }
125
           ]
129
           ]
126
         },
130
         },
195
         this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
199
         this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
196
       }else if(name == '1-10'){
200
       }else if(name == '1-10'){
197
         this.$router.push({path:'/patient/patient/'+this.id+'/hospitalSummary'})
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
     changePatient(value) {
206
     changePatient(value) {
320
         this.$router.push({
326
         this.$router.push({
321
           path: '/patients/patient/' + this.id + '/dryWeight'
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
        else if (patientKey == '1-5') {
334
        else if (patientKey == '1-5') {
325
         this.$router.push({ path: '/patients/rescue?id=' + this.id })
335
         this.$router.push({ path: '/patients/rescue?id=' + this.id })

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

60
 
60
 
61
               </div>
61
               </div>
62
             </div>
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
           </div>
73
           </div>
74
+
75
+        
64
         </div>
76
         </div>
65
       </div>
77
       </div>
66
     </div>
78
     </div>
91
         record:[],
103
         record:[],
92
         patient: {},
104
         patient: {},
93
         org_id:0,
105
         org_id:0,
106
+        adminUserList:[],
107
+        operators:[],
108
+        operatorMaps: {},
94
       }
109
       }
95
     },
110
     },
96
     created() {
111
     created() {
114
         if (resp.state == 1) {
129
         if (resp.state == 1) {
115
           this.record = resp.data.record
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
           this.patient = resp.data.patient
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
           this.loading = false
148
           this.loading = false
124
         } else {
149
         } else {
125
           this.loading = false
150
           this.loading = false
131
     },
156
     },
132
     methods: {
157
     methods: {
133
       printAction: function() {
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
         if (value != undefined) {
169
         if (value != undefined) {
144
           return uParseTime(value, temp)
170
           return uParseTime(value, temp)
145
         }
171
         }
146
         return ''
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
 </script>
200
 </script>

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

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

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

69
               v-for="item in adviceTypeArr"
69
               v-for="item in adviceTypeArr"
70
               :key="item.value"
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
               {{ item.label }}
82
               {{ item.label }}
83
+            </span>
84
+            
85
+            
73
             </li>
86
             </li>
74
           </ul>
87
           </ul>
75
         </div>
88
         </div>
153
           fixed
166
           fixed
154
         >
167
         >
155
           <template slot-scope="scope">
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
             <span v-else-if="scope.row.advice_type == 3 || scope.row.advice_type == 2">临嘱</span>
173
             <span v-else-if="scope.row.advice_type == 3 || scope.row.advice_type == 2">临嘱</span>
158
             <span v-else-if="scope.row.advice_type == 4">普通医嘱</span>
174
             <span v-else-if="scope.row.advice_type == 4">普通医嘱</span>
159
             <span v-else></span>
175
             <span v-else></span>
560
                     v-for="item in adviceTypeOptions"
576
                     v-for="item in adviceTypeOptions"
561
                   ></el-option>
577
                   ></el-option>
562
                 </el-select>
578
                 </el-select>
579
+               
563
               </el-form-item>
580
               </el-form-item>
564
             </el-col>
581
             </el-col>
565
 
582
 

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

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

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
               </span>
65
               </span>
66
             </td>
66
             </td>
67
           </tr>
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
           <tr>
79
           <tr>
70
             <td style="text-align:center;width:100px" colspan="1">
80
             <td style="text-align:center;width:100px" colspan="1">
71
               住址:
81
               住址:

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

9
       <el-table class="oictable" :data="tableData" border style="width:100%">
9
       <el-table class="oictable" :data="tableData" border style="width:100%">
10
       <el-table-column prop="start_time" label="建立日期" width="100" align="center">
10
       <el-table-column prop="start_time" label="建立日期" width="100" align="center">
11
           <template slot-scope="scope">
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
           </template>
13
           </template>
14
      </el-table-column>
14
      </el-table-column>
15
       <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="120">
15
       <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="120">
34
       </el-table-column>
34
       </el-table-column>
35
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
35
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
36
           <template slot-scope="scope">
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
           </template>
38
           </template>
39
       </el-table-column>
39
       </el-table-column>
40
      
40
      
41
        <el-table-column prop="date" label="停用日期" align="center" width="100">
41
        <el-table-column prop="date" label="停用日期" align="center" width="100">
42
           <template slot-scope="scope">
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
              <span v-if="scope.row.stop_time<0"></span>
44
              <span v-if="scope.row.stop_time<0"></span>
45
           </template>
45
           </template>
46
       </el-table-column>
46
       </el-table-column>
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
      handleUpdateAdviceTemplate(id){
694
      handleUpdateAdviceTemplate(id){
683
         getVascularAccessByDetail(id).then(response=>{
695
         getVascularAccessByDetail(id).then(response=>{
684
            if(response.data.state ==1){
696
            if(response.data.state ==1){
739
               }
751
               }
740
              this.form.blood_access_part_opera_id = blood_part
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
              var inflow_id = 0
756
              var inflow_id = 0
745
              for(let i=0;i<this.optionsPass.length;i++){
757
              for(let i=0;i<this.optionsPass.length;i++){
749
              }
761
              }
750
              this.form.inflow_pass = inflow_id
762
              this.form.inflow_pass = inflow_id
751
              this.form.remark = accessDetail.remark
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
              this.form.stop_reason = accessDetail.stop_reason
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
              this.form.user_status = accessDetail.user_status
768
              this.form.user_status = accessDetail.user_status
757
              this.form.other_vascular = accessDetail.other_vascular
769
              this.form.other_vascular = accessDetail.other_vascular

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

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

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

39
             >
39
             >
40
               <div
40
               <div
41
                 draggable="true"
41
                 draggable="true"
42
-                @dragstart="curInfoDragStart()"
42
+                @dragstart="curInfoDragStart"
43
                 class="item"
43
                 class="item"
44
                 style="font-weight: bolder"
44
                 style="font-weight: bolder"
45
               >
45
               >
116
             @cell-dblclick="itemdblclick"
116
             @cell-dblclick="itemdblclick"
117
             sum-text="总数"
117
             sum-text="总数"
118
           >
118
           >
119
-          <!--   row-class-name="table-row-new-class schedule-table-row"-->
120
             <el-table-column
119
             <el-table-column
121
               label="分区"
120
               label="分区"
122
               min-width="50"
121
               min-width="50"
149
                     ></el-button>
148
                     ></el-button>
150
                   </div>
149
                   </div>
151
                   <div
150
                   <div
152
-                  style="padding: 0px 0px !important;"
153
                     @drop="
151
                     @drop="
154
                       drop($event, '1_1', scope.row.index, scope.row, scope.row)
152
                       drop($event, '1_1', scope.row.index, scope.row, scope.row)
155
                     "
153
                     "
156
                     @dragover="allowDrop"
154
                     @dragover="allowDrop"
157
                     @dragover.prevent
155
                     @dragover.prevent
158
-                    
159
                   >
156
                   >
160
                     <template-table-item
157
                     <template-table-item
161
                       :info="scope.row['1_1']"
158
                       :info="scope.row['1_1']"
1150
       <span slot="footer" class="dialog-footer">
1147
       <span slot="footer" class="dialog-footer">
1151
          <el-button
1148
          <el-button
1152
            type="primary"
1149
            type="primary"
1150
+           :loading="changeLoadingOne"
1153
            @click="coverSch()"
1151
            @click="coverSch()"
1154
          >确定</el-button>
1152
          >确定</el-button>
1155
 
1153
 
1168
       <span slot="footer" class="dialog-footer">
1166
       <span slot="footer" class="dialog-footer">
1169
          <el-button
1167
          <el-button
1170
            type="primary"
1168
            type="primary"
1169
+           :loading="changeLoadingTwo"
1171
            @click="changeSchTemplateTwo()"
1170
            @click="changeSchTemplateTwo()"
1172
          >确定</el-button>
1171
          >确定</el-button>
1173
         <el-button @click="tipDialogVisibleThree = false">取 消</el-button>
1172
         <el-button @click="tipDialogVisibleThree = false">取 消</el-button>
1242
   },
1241
   },
1243
   data() {
1242
   data() {
1244
     return {
1243
     return {
1244
+      changeLoadingOne:false,
1245
+      changeLoadingTwo:false,
1245
       tipDialogVisibleTwo:false,
1246
       tipDialogVisibleTwo:false,
1246
       tipDialogVisibleThree:false,
1247
       tipDialogVisibleThree:false,
1247
       tipDialogVisible:false,
1248
       tipDialogVisible:false,
1324
       opera_device_numbers: [],
1325
       opera_device_numbers: [],
1325
       origin_device_numbers: [],
1326
       origin_device_numbers: [],
1326
       opera_device_numbers_two: [],
1327
       opera_device_numbers_two: [],
1327
-      
1328
+
1328
       partition_id: 0,
1329
       partition_id: 0,
1329
       tableHeight: document.documentElement.clientHeight,
1330
       tableHeight: document.documentElement.clientHeight,
1330
-      template:0,
1331
+      template:null,
1331
       all_template:[],
1332
       all_template:[],
1332
       active_name:"first",
1333
       active_name:"first",
1333
     };
1334
     };
2347
 
2348
 
2348
       }
2349
       }
2349
 
2350
 
2350
-    }, 
2351
+    },
2351
     deepClone(source) {
2352
     deepClone(source) {
2352
       if (!source && typeof source !== 'object') {
2353
       if (!source && typeof source !== 'object') {
2353
         throw new Error('error arguments', 'shallowClone')
2354
         throw new Error('error arguments', 'shallowClone')
2525
     },
2526
     },
2526
     // 左侧模式点击
2527
     // 左侧模式点击
2527
     modeClick(row) {
2528
     modeClick(row) {
2528
-      console.log('modeClick的数据',row);
2529
       this.cur_info.mode_name = row.name;
2529
       this.cur_info.mode_name = row.name;
2530
       this.cur_info.mode_id = row.id;
2530
       this.cur_info.mode_id = row.id;
2531
-      
2532
     },
2531
     },
2533
     deletePatientMode(row, key, rows) {
2532
     deletePatientMode(row, key, rows) {
2534
       this.isEdit= true
2533
       this.isEdit= true
2574
     },
2573
     },
2575
     // 左侧患者点击
2574
     // 左侧患者点击
2576
     patientClick(row) {
2575
     patientClick(row) {
2577
-      
2576
+      console.log(row);
2578
       this.cur_info.patient_name = row.name;
2577
       this.cur_info.patient_name = row.name;
2579
       this.cur_info.patient_id = row.id;
2578
       this.cur_info.patient_id = row.id;
2580
       this.patient_id_hover = row.id
2579
       this.patient_id_hover = row.id
2599
       var weekday_timetype = day.split("_");
2598
       var weekday_timetype = day.split("_");
2600
       var weekday = weekday_timetype[0];
2599
       var weekday = weekday_timetype[0];
2601
       var time_type = weekday_timetype[1];
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
       if(info.pid > 0 ) {
2604
       if(info.pid > 0 ) {
2605
         this.cur_drag_obj = 2
2605
         this.cur_drag_obj = 2
2606
         this.cur_drag_info.schedule_type =time_type;
2606
         this.cur_drag_info.schedule_type =time_type;
2611
         this.cur_drag_info.patient_name = info.name;
2611
         this.cur_drag_info.patient_name = info.name;
2612
         this.cur_drag_info.patient_id = info.pid;
2612
         this.cur_drag_info.patient_id = info.pid;
2613
         this.cur_drag_info.id = row.id;
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
     allowDrop(e) {
2617
     allowDrop(e) {
2639
       e.preventDefault();
2618
       e.preventDefault();
2817
       this.all_zones = this.unique_two(this.all_zones);
2796
       this.all_zones = this.unique_two(this.all_zones);
2818
 
2797
 
2819
       return maked_device_numbers;
2798
       return maked_device_numbers;
2820
-    },  
2799
+    },
2821
     // 替换
2800
     // 替换
2822
     coverSch(){
2801
     coverSch(){
2823
       let params={
2802
       let params={
2833
         patient_id_two:this.cur_temp_info.patient_id,
2812
         patient_id_two:this.cur_temp_info.patient_id,
2834
 
2813
 
2835
       }
2814
       }
2815
+      this.changeLoadingOne = true
2836
       CoverSchTemplate(params).then((response) => {
2816
       CoverSchTemplate(params).then((response) => {
2837
-        console.log('CoverSchTemplate的数据',response.data.data);
2838
         if (response.data.state == 0) {
2817
         if (response.data.state == 0) {
2839
           this.$message.error(response.data.msg);
2818
           this.$message.error(response.data.msg);
2840
           this.tipDialogVisibleTwo = false
2819
           this.tipDialogVisibleTwo = false
2820
+          this.changeLoadingOne = false
2841
 
2821
 
2842
         } else {
2822
         } else {
2843
           this.$message.success("替换成功");
2823
           this.$message.success("替换成功");
2844
           this.tipDialogVisible = false
2824
           this.tipDialogVisible = false
2845
           this.tipDialogVisibleTwo = false
2825
           this.tipDialogVisibleTwo = false
2826
+          this.changeLoadingOne = false
2827
+
2846
           // this.getSchedules();
2828
           // this.getSchedules();
2847
           this.all_template = response.data.data.items
2829
           this.all_template = response.data.data.items
2848
           this.$emit("setTemplate",response.data.data.items)
2830
           this.$emit("setTemplate",response.data.data.items)
2875
 
2857
 
2876
 
2858
 
2877
       }
2859
       }
2860
+      this.changeLoadingTwo = true
2878
       ExchangeSchTemplate(params).then((response) => {
2861
       ExchangeSchTemplate(params).then((response) => {
2879
         if (response.data.state == 0) {
2862
         if (response.data.state == 0) {
2880
           this.$message.error(response.data.msg);
2863
           this.$message.error(response.data.msg);
2881
           this.tipDialogVisibleThree = false
2864
           this.tipDialogVisibleThree = false
2865
+          this.changeLoadingTwo = false
2866
+
2882
         } else {
2867
         } else {
2883
           this.$message.success("交换成功");
2868
           this.$message.success("交换成功");
2884
           this.tipDialogVisible = false
2869
           this.tipDialogVisible = false
2885
           this.tipDialogVisibleThree = false
2870
           this.tipDialogVisibleThree = false
2871
+          this.changeLoadingTwo = false
2872
+
2886
           // this.getSchedules();
2873
           // this.getSchedules();
2887
           this.all_template = response.data.data.items
2874
           this.all_template = response.data.data.items
2888
           this.$emit("setTemplate",response.data.data.items)
2875
           this.$emit("setTemplate",response.data.data.items)
2942
           };
2929
           };
2943
         }
2930
         }
2944
       }
2931
       }
2945
-    }, 
2932
+    },
2946
     search_two: function () {
2933
     search_two: function () {
2947
       if (this.keywords.length == 0) {
2934
       if (this.keywords.length == 0) {
2948
         this.patients = this.all_patients;
2935
         this.patients = this.all_patients;
2986
       if(row[column.property].pid >0 ){
2973
       if(row[column.property].pid >0 ){
2987
             this.cur_info.patient_id=row[column.property].pid
2974
             this.cur_info.patient_id=row[column.property].pid
2988
             this.cur_info.mode_id=row[column.property].treat_mode_id
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
             this.cur_info.patient_name = row[column.property].name
2977
             this.cur_info.patient_name = row[column.property].name
2991
             this.cur_info.mode_name = row[column.property].treat_mode
2978
             this.cur_info.mode_name = row[column.property].treat_mode
2992
             console.log('this.patient_id_hover的数据',this.patient_id_hover);
2979
             console.log('this.patient_id_hover的数据',this.patient_id_hover);
2993
       }
2980
       }
2994
-      
2981
+
2995
       // else {
2982
       // else {
2996
       //   this.$refs.selector_dialog.showWith(item.pid, item.treat_mode_id, weekday, time_type, device_number_id)
2983
       //   this.$refs.selector_dialog.showWith(item.pid, item.treat_mode_id, weekday, time_type, device_number_id)
2997
       // }
2984
       // }
3008
       //     this.currentData.contagions = [];
2995
       //     this.currentData.contagions = [];
3009
       //     this.getSchedulePatients();
2996
       //     this.getSchedulePatients();
3010
       //     this.dialogTableVisible = true;
2997
       //     this.dialogTableVisible = true;
3011
-          
2998
+
3012
       //   }
2999
       //   }
3013
     },
3000
     },
3014
     // 双击
3001
     // 双击
3399
         this.data.push(obj);
3386
         this.data.push(obj);
3400
         this.$refs.selector_dialog.hide();
3387
         this.$refs.selector_dialog.hide();
3401
       }
3388
       }
3402
-    }, 
3389
+    },
3403
     saveActionFour: function () {
3390
     saveActionFour: function () {
3404
       var add_items = [];
3391
       var add_items = [];
3405
       var del_items = [];
3392
       var del_items = [];
3846
             return obj
3833
             return obj
3847
           },{})
3834
           },{})
3848
         }
3835
         }
3849
-       
3836
+
3850
       }
3837
       }
3851
       for(let x in countNum){
3838
       for(let x in countNum){
3852
         Mon_M_One.push(x + ':' + countNum[x]+"\n")
3839
         Mon_M_One.push(x + ':' + countNum[x]+"\n")
3853
       }
3840
       }
3854
       var result = [];
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
           var strObjcet = Mon_M_One.slice(i, i+29);
3843
           var strObjcet = Mon_M_One.slice(i, i+29);
3857
           var str = strObjcet.toString();
3844
           var str = strObjcet.toString();
3858
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3845
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3878
         Mon_A_One.push(x + ':' + countNum[x]+"\n")
3865
         Mon_A_One.push(x + ':' + countNum[x]+"\n")
3879
       }
3866
       }
3880
       var result = [];
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
           var strObjcet = Mon_A_One.slice(i, i+29);
3869
           var strObjcet = Mon_A_One.slice(i, i+29);
3883
           var str = strObjcet.toString();
3870
           var str = strObjcet.toString();
3884
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3871
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3885
           result.push(str);
3872
           result.push(str);
3886
       }
3873
       }
3887
       sums[3]="总人数:"+ sums[3] +"\n"+result
3874
       sums[3]="总人数:"+ sums[3] +"\n"+result
3888
-      
3875
+
3889
       for(let j in data){
3876
       for(let j in data){
3890
         if(data[j].hasOwnProperty ('1_3') == true){
3877
         if(data[j].hasOwnProperty ('1_3') == true){
3891
           Mon_N.push(data[j]['1_3'].treat_mode)
3878
           Mon_N.push(data[j]['1_3'].treat_mode)
3904
         Mon_N_One.push(x + ':' + countNum[x]+"\n")
3891
         Mon_N_One.push(x + ':' + countNum[x]+"\n")
3905
       }
3892
       }
3906
       var result = [];
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
           var strObjcet = Mon_N_One.slice(i, i+29);
3895
           var strObjcet = Mon_N_One.slice(i, i+29);
3909
           var str = strObjcet.toString();
3896
           var str = strObjcet.toString();
3910
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3897
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3930
         Tue_M_One.push(x + ':' + countNum[x]+"\n")
3917
         Tue_M_One.push(x + ':' + countNum[x]+"\n")
3931
       }
3918
       }
3932
       var result = [];
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
           var strObjcet = Tue_M_One.slice(i, i+29);
3921
           var strObjcet = Tue_M_One.slice(i, i+29);
3935
           var str = strObjcet.toString();
3922
           var str = strObjcet.toString();
3936
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3923
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3956
         Tue_A_One.push(x + ':' + countNum[x]+"\n")
3943
         Tue_A_One.push(x + ':' + countNum[x]+"\n")
3957
       }
3944
       }
3958
       var result = [];
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
           var strObjcet = Tue_A_One.slice(i, i+29);
3947
           var strObjcet = Tue_A_One.slice(i, i+29);
3961
           var str = strObjcet.toString();
3948
           var str = strObjcet.toString();
3962
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3949
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3963
           result.push(str);
3950
           result.push(str);
3964
       }
3951
       }
3965
       sums[6]="总人数:"+ sums[6] +"\n"+result
3952
       sums[6]="总人数:"+ sums[6] +"\n"+result
3966
-      
3953
+
3967
       for(let j in data){
3954
       for(let j in data){
3968
         if(data[j].hasOwnProperty ('2_3') == true){
3955
         if(data[j].hasOwnProperty ('2_3') == true){
3969
           Tue_N.push(data[j]['2_2'].treat_mode)
3956
           Tue_N.push(data[j]['2_2'].treat_mode)
3982
         Tue_N_One.push(x + ':' + countNum[x]+"\n")
3969
         Tue_N_One.push(x + ':' + countNum[x]+"\n")
3983
       }
3970
       }
3984
       var result = [];
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
           var strObjcet = Tue_N_One.slice(i, i+29);
3973
           var strObjcet = Tue_N_One.slice(i, i+29);
3987
           var str = strObjcet.toString();
3974
           var str = strObjcet.toString();
3988
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3975
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4008
         Wed_M_One.push(x + ':' + countNum[x]+"\n")
3995
         Wed_M_One.push(x + ':' + countNum[x]+"\n")
4009
       }
3996
       }
4010
       var result = [];
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
           var strObjcet = Wed_M_One.slice(i, i+29);
3999
           var strObjcet = Wed_M_One.slice(i, i+29);
4013
           var str = strObjcet.toString();
4000
           var str = strObjcet.toString();
4014
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4001
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4034
         Wed_A_One.push(x + ':' + countNum[x]+"\n")
4021
         Wed_A_One.push(x + ':' + countNum[x]+"\n")
4035
       }
4022
       }
4036
       var result = [];
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
           var strObjcet = Wed_A_One.slice(i, i+29);
4025
           var strObjcet = Wed_A_One.slice(i, i+29);
4039
           var str = strObjcet.toString();
4026
           var str = strObjcet.toString();
4040
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4027
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4041
           result.push(str);
4028
           result.push(str);
4042
       }
4029
       }
4043
       sums[9]="总人数:"+ sums[9]  +"\n"+result
4030
       sums[9]="总人数:"+ sums[9]  +"\n"+result
4044
-      
4031
+
4045
       for(let j in data){
4032
       for(let j in data){
4046
         if(data[j].hasOwnProperty ('3_3') == true){
4033
         if(data[j].hasOwnProperty ('3_3') == true){
4047
           Wed_N.push(data[j]['3_3'].treat_mode)
4034
           Wed_N.push(data[j]['3_3'].treat_mode)
4057
         }
4044
         }
4058
       }
4045
       }
4059
       for(let x in countNum){
4046
       for(let x in countNum){
4060
-        
4047
+
4061
         Wed_N_One.push(x + ':' + countNum[x]+"\n")
4048
         Wed_N_One.push(x + ':' + countNum[x]+"\n")
4062
       }
4049
       }
4063
       var result = [];
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
           var strObjcet = Wed_N_One.slice(i, i+29);
4052
           var strObjcet = Wed_N_One.slice(i, i+29);
4066
           var str = strObjcet.toString();
4053
           var str = strObjcet.toString();
4067
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4054
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4087
         Thurs_M_One.push(x + ':' + countNum[x]+"\n")
4074
         Thurs_M_One.push(x + ':' + countNum[x]+"\n")
4088
       }
4075
       }
4089
       var result = [];
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
           var strObjcet = Thurs_M_One.slice(i, i+29);
4078
           var strObjcet = Thurs_M_One.slice(i, i+29);
4092
           var str = strObjcet.toString();
4079
           var str = strObjcet.toString();
4093
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4080
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4113
         Thurs_A_One.push(x + ':' + countNum[x]+"\n")
4100
         Thurs_A_One.push(x + ':' + countNum[x]+"\n")
4114
       }
4101
       }
4115
       var result = [];
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
           var strObjcet = Thurs_A_One.slice(i, i+29);
4104
           var strObjcet = Thurs_A_One.slice(i, i+29);
4118
           var str = strObjcet.toString();
4105
           var str = strObjcet.toString();
4119
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4106
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4120
           result.push(str);
4107
           result.push(str);
4121
       }
4108
       }
4122
       sums[12]="总人数:"+ sums[12] +"\n"+result
4109
       sums[12]="总人数:"+ sums[12] +"\n"+result
4123
-      
4110
+
4124
       for(let j in data){
4111
       for(let j in data){
4125
         if(data[j].hasOwnProperty ('4_3') == true){
4112
         if(data[j].hasOwnProperty ('4_3') == true){
4126
           Thurs_N.push(data[j]['4_3'].treat_mode)
4113
           Thurs_N.push(data[j]['4_3'].treat_mode)
4136
         }
4123
         }
4137
       }
4124
       }
4138
       for(let x in countNum){
4125
       for(let x in countNum){
4139
-        
4126
+
4140
         Thurs_N_One.push(x + ':' + countNum[x]+"\n")
4127
         Thurs_N_One.push(x + ':' + countNum[x]+"\n")
4141
       }
4128
       }
4142
       var result = [];
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
           var strObjcet = Thurs_N_One.slice(i, i+29);
4131
           var strObjcet = Thurs_N_One.slice(i, i+29);
4145
           var str = strObjcet.toString();
4132
           var str = strObjcet.toString();
4146
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4133
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4166
         Fri_M_One.push(x + ':' + countNum[x]+"\n")
4153
         Fri_M_One.push(x + ':' + countNum[x]+"\n")
4167
       }
4154
       }
4168
       var result = [];
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
           var strObjcet = Fri_M_One.slice(i, i+29);
4157
           var strObjcet = Fri_M_One.slice(i, i+29);
4171
           var str = strObjcet.toString();
4158
           var str = strObjcet.toString();
4172
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4159
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4189
         }
4176
         }
4190
       }
4177
       }
4191
       for(let x in countNum){
4178
       for(let x in countNum){
4192
-        
4179
+
4193
         Fri_A_One.push(x + ':' + countNum[x]+"\n")
4180
         Fri_A_One.push(x + ':' + countNum[x]+"\n")
4194
       }
4181
       }
4195
       var result = [];
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
           var strObjcet = Fri_A_One.slice(i, i+29);
4184
           var strObjcet = Fri_A_One.slice(i, i+29);
4198
           var str = strObjcet.toString();
4185
           var str = strObjcet.toString();
4199
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4186
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4200
           result.push(str);
4187
           result.push(str);
4201
       }
4188
       }
4202
       sums[15]="总人数:"+ sums[15] +"\n"+result
4189
       sums[15]="总人数:"+ sums[15] +"\n"+result
4203
-      
4190
+
4204
       for(let j in data){
4191
       for(let j in data){
4205
         if(data[j].hasOwnProperty ('5_3') == true){
4192
         if(data[j].hasOwnProperty ('5_3') == true){
4206
           Fri_N.push(data[j]['5_3'].treat_mode)
4193
           Fri_N.push(data[j]['5_3'].treat_mode)
4216
         }
4203
         }
4217
       }
4204
       }
4218
       for(let x in countNum){
4205
       for(let x in countNum){
4219
-       
4206
+
4220
         Fri_N_One.push(x + ':' + countNum[x]+"\n")
4207
         Fri_N_One.push(x + ':' + countNum[x]+"\n")
4221
       }
4208
       }
4222
       var result = [];
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
           var strObjcet = Fri_N_One.slice(i, i+29);
4211
           var strObjcet = Fri_N_One.slice(i, i+29);
4225
           var str = strObjcet.toString();
4212
           var str = strObjcet.toString();
4226
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4213
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4246
         Sat_M_One.push(x + ':' + countNum[x]+"\n")
4233
         Sat_M_One.push(x + ':' + countNum[x]+"\n")
4247
       }
4234
       }
4248
       var result = [];
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
           var strObjcet = Sat_M_One.slice(i, i+29);
4237
           var strObjcet = Sat_M_One.slice(i, i+29);
4251
           var str = strObjcet.toString();
4238
           var str = strObjcet.toString();
4252
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4239
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4269
         }
4256
         }
4270
       }
4257
       }
4271
       for(let x in countNum){
4258
       for(let x in countNum){
4272
-       
4259
+
4273
         Sat_A_One.push(x + ':' + countNum[x]+"\n")
4260
         Sat_A_One.push(x + ':' + countNum[x]+"\n")
4274
       }
4261
       }
4275
       var result = [];
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
           var strObjcet = Sat_A_One.slice(i, i+29);
4264
           var strObjcet = Sat_A_One.slice(i, i+29);
4278
           var str = strObjcet.toString();
4265
           var str = strObjcet.toString();
4279
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4266
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4280
           result.push(str);
4267
           result.push(str);
4281
       }
4268
       }
4282
       sums[18]="总人数:"+ sums[18] +"\n"+result
4269
       sums[18]="总人数:"+ sums[18] +"\n"+result
4283
-      
4270
+
4284
       for(let j in data){
4271
       for(let j in data){
4285
         if(data[j].hasOwnProperty ('6_3') == true){
4272
         if(data[j].hasOwnProperty ('6_3') == true){
4286
           Sat_N.push(data[j]['6_3'].treat_mode)
4273
           Sat_N.push(data[j]['6_3'].treat_mode)
4299
         Sat_N_One.push(x + ':' + countNum[x]+"\n")
4286
         Sat_N_One.push(x + ':' + countNum[x]+"\n")
4300
       }
4287
       }
4301
       var result = [];
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
           var strObjcet = Sat_N_One.slice(i, i+29);
4290
           var strObjcet = Sat_N_One.slice(i, i+29);
4304
           var str = strObjcet.toString();
4291
           var str = strObjcet.toString();
4305
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4292
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4325
         Sun_M_One.push(x + ':' + countNum[x]+"\n")
4312
         Sun_M_One.push(x + ':' + countNum[x]+"\n")
4326
       }
4313
       }
4327
       var result = [];
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
           var strObjcet = Sun_M_One.slice(i, i+29);
4316
           var strObjcet = Sun_M_One.slice(i, i+29);
4330
           var str = strObjcet.toString();
4317
           var str = strObjcet.toString();
4331
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4318
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4348
         }
4335
         }
4349
       }
4336
       }
4350
       for(let x in countNum){
4337
       for(let x in countNum){
4351
-       
4338
+
4352
         Sun_A_One.push(x + ':' + countNum[x]+"\n")
4339
         Sun_A_One.push(x + ':' + countNum[x]+"\n")
4353
       }
4340
       }
4354
       var result = [];
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
           var strObjcet = Sun_A_One.slice(i, i+29);
4343
           var strObjcet = Sun_A_One.slice(i, i+29);
4357
           var str = strObjcet.toString();
4344
           var str = strObjcet.toString();
4358
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4345
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4359
           result.push(str);
4346
           result.push(str);
4360
       }
4347
       }
4361
       sums[21]="总人数:"+ sums[21] +"\n"+result
4348
       sums[21]="总人数:"+ sums[21] +"\n"+result
4362
-      
4349
+
4363
       for(let j in data){
4350
       for(let j in data){
4364
         if(data[j].hasOwnProperty ('7_3') == true){
4351
         if(data[j].hasOwnProperty ('7_3') == true){
4365
           Sun_N.push(data[j]['7_3'].treat_mode)
4352
           Sun_N.push(data[j]['7_3'].treat_mode)
4375
         }
4362
         }
4376
       }
4363
       }
4377
       for(let x in countNum){
4364
       for(let x in countNum){
4378
-        
4365
+
4379
         Sun_N_One.push(x + ':' + countNum[x]+"\n")
4366
         Sun_N_One.push(x + ':' + countNum[x]+"\n")
4380
       }
4367
       }
4381
       var result = [];
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
           var strObjcet = Sun_N_One.slice(i, i+29);
4370
           var strObjcet = Sun_N_One.slice(i, i+29);
4384
           var str = strObjcet.toString();
4371
           var str = strObjcet.toString();
4385
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4372
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4387
       }
4374
       }
4388
       sums[22]="总人数:"+ sums[22] +"\n"+result
4375
       sums[22]="总人数:"+ sums[22] +"\n"+result
4389
       }
4376
       }
4390
-      
4377
+
4391
       return sums;
4378
       return sums;
4392
     },
4379
     },
4393
     // 右侧表格的回调
4380
     // 右侧表格的回调
4394
     cellClass({row,column, rowIndex, columnIndex}){
4381
     cellClass({row,column, rowIndex, columnIndex}){
4395
       // console.log('cellClass数据',row);
4382
       // console.log('cellClass数据',row);
4396
       if(columnIndex==1&&row.zone.type==2){
4383
       if(columnIndex==1&&row.zone.type==2){
4397
-        // 
4384
+        //
4398
         return "table-row-new-class schedule-table-row Infectious_disease";
4385
         return "table-row-new-class schedule-table-row Infectious_disease";
4399
       }
4386
       }
4400
       if(columnIndex==0 ||columnIndex==1){
4387
       if(columnIndex==0 ||columnIndex==1){
4401
         return ''
4388
         return ''
4402
       }else{
4389
       }else{
4403
-          if(row[column.property].pid >0 && 
4390
+          if(row[column.property].pid >0 &&
4404
           row[column.property].pid == this.patient_id_hover){
4391
           row[column.property].pid == this.patient_id_hover){
4405
             return 'hover-td'
4392
             return 'hover-td'
4406
           }
4393
           }
4525
 }
4512
 }
4526
 
4513
 
4527
 #table_data {
4514
 #table_data {
4528
-  min-height: calc(100vh - 350px);
4515
+  /*min-height: calc(100vh - 350px);*/
4529
 }
4516
 }
4530
 
4517
 
4531
 #table_data ::-webkit-scrollbar {
4518
 #table_data ::-webkit-scrollbar {
4556
 //   min-height: calc(100vh - 350px);
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
 // .del_table_btn {
4550
 // .del_table_btn {
4564
 //   position: absolute;
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
                     <div style="min-height: 80px">
60
                     <div style="min-height: 80px">
61
                       <div class="proj">
61
                       <div class="proj">
62
                         <div class="proj_item">
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
                           </p>
65
                           </p>
66
                         </div>
66
                         </div>
665
           if (this.hiddenFlag) {
665
           if (this.hiddenFlag) {
666
             str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
666
             str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
667
           } else {
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
         <div class="print_main_content">
19
         <div class="print_main_content">
20
           <div class="table_panel">
20
           <div class="table_panel">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
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
                 <div>
23
                 <div>
24
                   <span v-if="printObj.mode == 1">透析模式:
24
                   <span v-if="printObj.mode == 1">透析模式:
25
                     <span v-if="main_collection.mode_id ==1">HD</span>
25
                     <span v-if="main_collection.mode_id ==1">HD</span>
75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
76
                 </div>
76
                 </div>
77
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
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
                   <span v-else >
79
                   <span v-else >
80
-                   <span>{{getAnticoagulant(main_collection.dialysissolution.mode_id)}}</span>
80
+                   <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
81
                   </span>
81
                   </span>
82
                 </div>
82
                 </div>
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>
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
                  <div>
127
                  <div>
128
                   <span v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器:</span>
128
                   <span v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器:</span>
129
                   <span v-if="printObj.dialyzers == 1&& main_collection.dialysissolution.dialysis_dialyszers!=''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
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
                 </div>
133
                 </div>
132
                 <div v-if="printObj.doctor_advice == 1">
134
                 <div v-if="printObj.doctor_advice == 1">
133
                     医嘱:
135
                     医嘱:
135
                 </div>
137
                 </div>
136
                 
138
                 
137
                
139
                
138
-                <div>打印时间:{{currentDate}}</div>
140
+                <div v-if="org_id!=10440&&org_id!=0">打印时间:{{currentDate}}</div>
139
               </div>
141
               </div>
140
 
142
 
141
               <div class="signPrint" style="font-size:16px;" v-else>
143
               <div class="signPrint" style="font-size:16px;" v-else>
380
                 days = '星期日';
382
                 days = '星期日';
381
                 break;
383
                 break;
382
           }
384
           }
383
-          var str = year + "年" + month + "月" + day + "日  " + days;
385
+          var str = year + "年" + month + "月" + day + "日  ";
384
           this.currentDate = str
386
           this.currentDate = str
385
           }
387
           }
386
        })
388
        })
650
         if(name == 7){
652
         if(name == 7){
651
          name = "低分子肝素钠"
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
        return name
679
        return name
655
      },
680
      },

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

57
                 </td>
57
                 </td>
58
                 <td :width="td_4_width" valign="top">
58
                 <td :width="td_4_width" valign="top">
59
                   <div class="proj" v-if="Object.keys(main_collection.hdf).length > 0">
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
                     <div class="proj_item" v-html="patient_other_names(main_collection.hdf)">
61
                     <div class="proj_item" v-html="patient_other_names(main_collection.hdf)">
62
                     </div>
62
                     </div>
63
                   </div>
63
                   </div>
64
                   <div class="proj" v-if="Object.keys(main_collection.hd_hp).length > 0">
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
                     <div class="proj_item" v-html="patient_other_names(main_collection.hd_hp)">>
66
                     <div class="proj_item" v-html="patient_other_names(main_collection.hd_hp)">>
67
                     </div>
67
                     </div>
68
                   </div>
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
                 </td>
74
                 </td>
70
               </tr>
75
               </tr>
71
               </tbody>
76
               </tbody>
110
             },
115
             },
111
             hdf: [ /* schedule, ... */],
116
             hdf: [ /* schedule, ... */],
112
             hd_hp: [ /* schedule, ... */],
117
             hd_hp: [ /* schedule, ... */],
113
-
118
+            hfhd_hp:[],
114
             new_hdf:{
119
             new_hdf:{
115
               am: { /* zone_name: [ schedule, ... ] */ },
120
               am: { /* zone_name: [ schedule, ... ] */ },
116
               pm: { /* zone_name: [ schedule, ... ] */ },
121
               pm: { /* zone_name: [ schedule, ... ] */ },
120
               am: { /* zone_name: [ schedule, ... ] */ },
125
               am: { /* zone_name: [ schedule, ... ] */ },
121
               pm: { /* zone_name: [ schedule, ... ] */ },
126
               pm: { /* zone_name: [ schedule, ... ] */ },
122
               evening: { /* zone_name: [ schedule, ... ] */ }
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
             },
143
             },
134
             hdf: [ /* schedule, ... */],
144
             hdf: [ /* schedule, ... */],
135
             hd_hp: [ /* schedule, ... */],
145
             hd_hp: [ /* schedule, ... */],
146
+            hfhd_hp:[],
136
             new_hdf:{
147
             new_hdf:{
137
               am: { /* zone_name: [ schedule, ... ] */ },
148
               am: { /* zone_name: [ schedule, ... ] */ },
138
               pm: { /* zone_name: [ schedule, ... ] */ },
149
               pm: { /* zone_name: [ schedule, ... ] */ },
142
               am: { /* zone_name: [ schedule, ... ] */ },
153
               am: { /* zone_name: [ schedule, ... ] */ },
143
               pm: { /* zone_name: [ schedule, ... ] */ },
154
               pm: { /* zone_name: [ schedule, ... ] */ },
144
               evening: { /* zone_name: [ schedule, ... ] */ }
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
             day: 3,
164
             day: 3,
154
             },
170
             },
155
             hdf: [ /* schedule, ... */],
171
             hdf: [ /* schedule, ... */],
156
             hd_hp: [ /* schedule, ... */],
172
             hd_hp: [ /* schedule, ... */],
173
+            hfhd_hp:[],
157
             new_hdf:{
174
             new_hdf:{
158
               am: { /* zone_name: [ schedule, ... ] */ },
175
               am: { /* zone_name: [ schedule, ... ] */ },
159
               pm: { /* zone_name: [ schedule, ... ] */ },
176
               pm: { /* zone_name: [ schedule, ... ] */ },
163
               am: { /* zone_name: [ schedule, ... ] */ },
180
               am: { /* zone_name: [ schedule, ... ] */ },
164
               pm: { /* zone_name: [ schedule, ... ] */ },
181
               pm: { /* zone_name: [ schedule, ... ] */ },
165
               evening: { /* zone_name: [ schedule, ... ] */ }
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
             day: 4,
191
             day: 4,
175
             },
197
             },
176
             hdf: [ /* schedule, ... */],
198
             hdf: [ /* schedule, ... */],
177
             hd_hp: [ /* schedule, ... */],
199
             hd_hp: [ /* schedule, ... */],
200
+            hfhd_hp:[],
178
             new_hdf:{
201
             new_hdf:{
179
               am: { /* zone_name: [ schedule, ... ] */ },
202
               am: { /* zone_name: [ schedule, ... ] */ },
180
               pm: { /* zone_name: [ schedule, ... ] */ },
203
               pm: { /* zone_name: [ schedule, ... ] */ },
184
               am: { /* zone_name: [ schedule, ... ] */ },
207
               am: { /* zone_name: [ schedule, ... ] */ },
185
               pm: { /* zone_name: [ schedule, ... ] */ },
208
               pm: { /* zone_name: [ schedule, ... ] */ },
186
               evening: { /* zone_name: [ schedule, ... ] */ }
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
             day: 5,
218
             day: 5,
196
             },
224
             },
197
             hdf: [ /* schedule, ... */],
225
             hdf: [ /* schedule, ... */],
198
             hd_hp: [ /* schedule, ... */],
226
             hd_hp: [ /* schedule, ... */],
227
+            hfhd_hp:[],
199
             new_hdf:{
228
             new_hdf:{
200
               am: { /* zone_name: [ schedule, ... ] */ },
229
               am: { /* zone_name: [ schedule, ... ] */ },
201
               pm: { /* zone_name: [ schedule, ... ] */ },
230
               pm: { /* zone_name: [ schedule, ... ] */ },
205
               am: { /* zone_name: [ schedule, ... ] */ },
234
               am: { /* zone_name: [ schedule, ... ] */ },
206
               pm: { /* zone_name: [ schedule, ... ] */ },
235
               pm: { /* zone_name: [ schedule, ... ] */ },
207
               evening: { /* zone_name: [ schedule, ... ] */ }
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
             day: 6,
245
             day: 6,
217
             },
251
             },
218
             hdf: [ /* schedule, ... */],
252
             hdf: [ /* schedule, ... */],
219
             hd_hp: [ /* schedule, ... */],
253
             hd_hp: [ /* schedule, ... */],
254
+            hfhd_hp:[],
220
             new_hdf:{
255
             new_hdf:{
221
               am: { /* zone_name: [ schedule, ... ] */ },
256
               am: { /* zone_name: [ schedule, ... ] */ },
222
               pm: { /* zone_name: [ schedule, ... ] */ },
257
               pm: { /* zone_name: [ schedule, ... ] */ },
226
               am: { /* zone_name: [ schedule, ... ] */ },
261
               am: { /* zone_name: [ schedule, ... ] */ },
227
               pm: { /* zone_name: [ schedule, ... ] */ },
262
               pm: { /* zone_name: [ schedule, ... ] */ },
228
               evening: { /* zone_name: [ schedule, ... ] */ }
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
             day: 7,
272
             day: 7,
238
             },
278
             },
239
             hdf: [ /* schedule, ... */],
279
             hdf: [ /* schedule, ... */],
240
             hd_hp: [ /* schedule, ... */],
280
             hd_hp: [ /* schedule, ... */],
281
+            hfhd_hp:[],
241
             new_hdf:{
282
             new_hdf:{
242
               am: { /* zone_name: [ schedule, ... ] */ },
283
               am: { /* zone_name: [ schedule, ... ] */ },
243
               pm: { /* zone_name: [ schedule, ... ] */ },
284
               pm: { /* zone_name: [ schedule, ... ] */ },
247
               am: { /* zone_name: [ schedule, ... ] */ },
288
               am: { /* zone_name: [ schedule, ... ] */ },
248
               pm: { /* zone_name: [ schedule, ... ] */ },
289
               pm: { /* zone_name: [ schedule, ... ] */ },
249
               evening: { /* zone_name: [ schedule, ... ] */ }
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
             } else if (schedule.mode.id == 3) { // HD+HF
366
             } else if (schedule.mode.id == 3) { // HD+HF
321
 
367
 
322
               main_collection.hd_hp.push(schedule)
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