yq1 1 year ago
parent
commit
df1076fea8
25 changed files with 5636 additions and 1629 deletions
  1. 17 16
      package-lock.json
  2. 99 99
      src/router/modules/patient.js
  3. 10 3
      src/xt_pages/outpatientCharges/invoicePrint.vue
  4. 270 0
      src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue
  5. 2 2
      src/xt_pages/outpatientDoctorStation/checkPrint.vue
  6. 9 28
      src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue
  7. 4 1
      src/xt_pages/outpatientRegistration/registrationHistory.vue
  8. 10 10
      src/xt_pages/sign/Schedulingdisplay.vue
  9. 62 62
      src/xt_pages/user/components/PatientSidebar.vue
  10. 10 10
      src/xt_pages/user/evaluationtool/Cathetershedding.vue
  11. 264 74
      src/xt_pages/user/evaluationtool/Glasgow.vue
  12. 372 201
      src/xt_pages/user/evaluationtool/Muscleforce.vue
  13. 153 28
      src/xt_pages/user/evaluationtool/OHpressuresore.vue
  14. 168 168
      src/xt_pages/user/evaluationtool/dailyLife.vue
  15. 1426 702
      src/xt_pages/user/evaluationtool/hemodialysis.vue
  16. 3 3
      src/xt_pages/user/evaluationtool/nourishmentAssessment.vue
  17. 40 24
      src/xt_pages/user/history/Children_history.vue
  18. 39 27
      src/xt_pages/user/history/Pressure_history.vue
  19. 264 36
      src/xt_pages/user/history/RASS_history.vue
  20. 471 41
      src/xt_pages/user/history/daoguan_history.vue
  21. 659 17
      src/xt_pages/user/history/date_history.vue
  22. 230 17
      src/xt_pages/user/history/mind_history.vue
  23. 587 14
      src/xt_pages/user/history/nourishment_history.vue
  24. 410 13
      src/xt_pages/user/history/pruritus_history.vue
  25. 57 33
      src/xt_pages/user/history/tumble_history.vue

+ 17 - 16
package-lock.json View File

@@ -2053,15 +2053,15 @@
2053 2053
       }
2054 2054
     },
2055 2055
     "caniuse-db": {
2056
-      "version": "1.0.30001535",
2057
-      "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001535.tgz",
2058
-      "integrity": "sha512-GqX/YYHUWIiK3H9wneyTqg7yfcMcXJ8mKHzt/m3qzB+u4Q84mVEh00lkk6jVdiTgXkxZEVOOh2AQEtQsV3IkXA==",
2056
+      "version": "1.0.30001538",
2057
+      "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001538.tgz",
2058
+      "integrity": "sha512-DpDWGDG9Jk7cjISKb8Rr0RSwZTSUepMQupS1HyON5KSslZn0EZj9rBOaAm3LVGGJ5jvuDaEcJkrz8GDzV4LF9A==",
2059 2059
       "dev": true
2060 2060
     },
2061 2061
     "caniuse-lite": {
2062
-      "version": "1.0.30001535",
2063
-      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001535.tgz",
2064
-      "integrity": "sha512-48jLyUkiWFfhm/afF7cQPqPjaUmSraEhK4j+FCTJpgnGGEZHqyLe3hmWH7lIooZdSzXL0ReMvHz0vKDoTBsrwg==",
2062
+      "version": "1.0.30001538",
2063
+      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001538.tgz",
2064
+      "integrity": "sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw==",
2065 2065
       "dev": true
2066 2066
     },
2067 2067
     "canvg": {
@@ -3813,9 +3813,9 @@
3813 3813
       "dev": true
3814 3814
     },
3815 3815
     "electron-to-chromium": {
3816
-      "version": "1.4.523",
3817
-      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.523.tgz",
3818
-      "integrity": "sha512-9AreocSUWnzNtvLcbpng6N+GkXnCcBR80IQkxRC9Dfdyg4gaWNUPBujAHUpKkiUkoSoR9UlhA4zD/IgBklmhzg==",
3816
+      "version": "1.4.526",
3817
+      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.526.tgz",
3818
+      "integrity": "sha512-tjjTMjmZAx1g6COrintLTa2/jcafYKxKoiEkdQOrVdbLaHh2wCt2nsAF8ZHweezkrP+dl/VG9T5nabcYoo0U5Q==",
3819 3819
       "dev": true
3820 3820
     },
3821 3821
     "elegant-spinner": {
@@ -5030,9 +5030,9 @@
5030 5030
       }
5031 5031
     },
5032 5032
     "follow-redirects": {
5033
-      "version": "1.15.2",
5034
-      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
5035
-      "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
5033
+      "version": "1.15.3",
5034
+      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz",
5035
+      "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q=="
5036 5036
     },
5037 5037
     "font-awesome": {
5038 5038
       "version": "4.7.0",
@@ -6607,7 +6607,8 @@
6607 6607
     },
6608 6608
     "js-yaml": {
6609 6609
       "version": "3.7.0",
6610
-      "resolved": "",
6610
+      "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz",
6611
+      "integrity": "sha512-eIlkGty7HGmntbV6P/ZlAsoncFLGsNoM27lkTzS+oneY/EiNhj+geqD9ezg/ip+SW6Var0BJU2JtV0vEUZpWVQ==",
6611 6612
       "dev": true,
6612 6613
       "requires": {
6613 6614
         "argparse": "^1.0.7",
@@ -12631,9 +12632,9 @@
12631 12632
       }
12632 12633
     },
12633 12634
     "spdx-license-ids": {
12634
-      "version": "3.0.14",
12635
-      "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.14.tgz",
12636
-      "integrity": "sha512-U0eS5wcpu/O2/QZk6PcAMOA8H3ZuvRe4mFHA3Q+LNl1SRDmfQ+mD3RoD6tItqnvqubJ32m/zV2Z/ikSmxccD1Q=="
12635
+      "version": "3.0.15",
12636
+      "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.15.tgz",
12637
+      "integrity": "sha512-lpT8hSQp9jAKp9mhtBU4Xjon8LPGBvLIuBiSVhMEtmLecTh2mO0tlqrAMp47tBXzMr13NJMQ2lf7RpQGLJ3HsQ=="
12637 12638
     },
12638 12639
     "spdy": {
12639 12640
       "version": "4.0.2",

+ 99 - 99
src/router/modules/patient.js View File

@@ -480,105 +480,105 @@ export default {
480 480
   //     noCache: true
481 481
   //   }
482 482
   // },
483
-  {//跌倒评估历史评估
484
-    path: '/patients/tumble_history',
485
-    component: () => import('@/xt_pages/user/history/tumble_history'),
486
-    hidden: true,
487
-    is_menu: false,
488
-    name: 'tunele_history',
489
-    meta: {
490
-      title: 'tunele_history',
491
-      noCache: true
492
-    }
493
-  },
494
-  {//小儿跌倒评估历史评估
495
-    path: '/patients/Children_history',
496
-    component: () => import('@/xt_pages/user/history/Children_history'),
497
-    hidden: true,
498
-    is_menu: false,
499
-    name: 'Children_history',
500
-    meta: {
501
-      title: 'Children_history',
502
-      noCache: true
503
-    }
504
-  },
505
-  {//压疮历史评估
506
-    path: '/patients/Pressure_history',
507
-    component: () => import('@/xt_pages/user/history/Pressure_history'),
508
-    hidden: true,
509
-    is_menu: false,
510
-    name: 'Pressure_history',
511
-    meta: {
512
-      title: 'Pressure_history',
513
-      noCache: true
514
-    }
515
-  },
516
-  {//日常历史评估
517
-    path: '/patients/date_history',
518
-    component: () => import('@/xt_pages/user/history/date_history'),
519
-    hidden: true,
520
-    is_menu: false,
521
-    name: 'date_history',
522
-    meta: {
523
-      title: 'date_history',
524
-      noCache: true
525
-    }
526
-  },
527
-  {//导管脱落历史评估
528
-    path: '/patients/daoguan_history',
529
-    component: () => import('@/xt_pages/user/history/daoguan_history'),
530
-    hidden: true,
531
-    is_menu: false,
532
-    name: 'daoguan_history',
533
-    meta: {
534
-      title: 'daoguan_history',
535
-      noCache: true
536
-    }
537
-  },
538
-  {//RASS历史评估
539
-    path: '/patients/RASS_history',
540
-    component: () => import('@/xt_pages/user/history/RASS_history'),
541
-    hidden: true,
542
-    is_menu: false,
543
-    name: 'RASS_history',
544
-    meta: {
545
-      title: 'RASS_history',
546
-      noCache: true
547
-    }
548
-  },
549
-  {//营养历史评估
550
-    path: '/patients/nourishment_history',
551
-    component: () => import('@/xt_pages/user/history/nourishment_history'),
552
-    hidden: true,
553
-    is_menu: false,
554
-    name: 'nourishment_history',
555
-    meta: {
556
-      title: 'nourishment_history',
557
-      noCache: true
558
-    }
559
-  },
560
-  {//心理历史评估
561
-    path: '/patients/mind_history',
562
-    component: () => import('@/xt_pages/user/history/mind_history'),
563
-    hidden: true,
564
-    is_menu: false,
565
-    name: 'mind_history',
566
-    meta: {
567
-      title: 'mind_history',
568
-      noCache: true
569
-    }
570
-  },
571
-  {//瘙痒历史评估
572
-    path: '/patients/pruritus_history',
573
-    component: () => import('@/xt_pages/user/history/pruritus_history'),
574
-    hidden: true,
575
-    is_menu: false,
576
-    name: 'pruritus_history',
577
-    meta: {
578
-      title: 'pruritus_history',
579
-      noCache: true
580
-    }
581
-  },
483
+  // {//跌倒评估历史评估
484
+  //   path: '/patients/tumble_history',
485
+  //   component: () => import('@/xt_pages/user/history/tumble_history'),
486
+  //   hidden: true,
487
+  //   is_menu: false,
488
+  //   name: 'tunele_history',
489
+  //   meta: {
490
+  //     title: 'tunele_history',
491
+  //     noCache: true
492
+  //   }
493
+  // },
494
+  // {//小儿跌倒评估历史评估
495
+  //   path: '/patients/Children_history',
496
+  //   component: () => import('@/xt_pages/user/history/Children_history'),
497
+  //   hidden: true,
498
+  //   is_menu: false,
499
+  //   name: 'Children_history',
500
+  //   meta: {
501
+  //     title: 'Children_history',
502
+  //     noCache: true
503
+  //   }
504
+  // },
505
+  // {//压疮历史评估
506
+  //   path: '/patients/Pressure_history',
507
+  //   component: () => import('@/xt_pages/user/history/Pressure_history'),
508
+  //   hidden: true,
509
+  //   is_menu: false,
510
+  //   name: 'Pressure_history',
511
+  //   meta: {
512
+  //     title: 'Pressure_history',
513
+  //     noCache: true
514
+  //   }
515
+  // },
516
+  // {//日常历史评估
517
+  //   path: '/patients/date_history',
518
+  //   component: () => import('@/xt_pages/user/history/date_history'),
519
+  //   hidden: true,
520
+  //   is_menu: false,
521
+  //   name: 'date_history',
522
+  //   meta: {
523
+  //     title: 'date_history',
524
+  //     noCache: true
525
+  //   }
526
+  // },
527
+  // {//导管脱落历史评估
528
+  //   path: '/patients/daoguan_history',
529
+  //   component: () => import('@/xt_pages/user/history/daoguan_history'),
530
+  //   hidden: true,
531
+  //   is_menu: false,
532
+  //   name: 'daoguan_history',
533
+  //   meta: {
534
+  //     title: 'daoguan_history',
535
+  //     noCache: true
536
+  //   }
537
+  // },
538
+  // {//RASS历史评估
539
+  //   path: '/patients/RASS_history',
540
+  //   component: () => import('@/xt_pages/user/history/RASS_history'),
541
+  //   hidden: true,
542
+  //   is_menu: false,
543
+  //   name: 'RASS_history',
544
+  //   meta: {
545
+  //     title: 'RASS_history',
546
+  //     noCache: true
547
+  //   }
548
+  // },
549
+  // {//营养历史评估
550
+  //   path: '/patients/nourishment_history',
551
+  //   component: () => import('@/xt_pages/user/history/nourishment_history'),
552
+  //   hidden: true,
553
+  //   is_menu: false,
554
+  //   name: 'nourishment_history',
555
+  //   meta: {
556
+  //     title: 'nourishment_history',
557
+  //     noCache: true
558
+  //   }
559
+  // },
560
+  // {//心理历史评估
561
+  //   path: '/patients/mind_history',
562
+  //   component: () => import('@/xt_pages/user/history/mind_history'),
563
+  //   hidden: true,
564
+  //   is_menu: false,
565
+  //   name: 'mind_history',
566
+  //   meta: {
567
+  //     title: 'mind_history',
568
+  //     noCache: true
569
+  //   }
570
+  // },
571
+  // {//瘙痒历史评估
572
+  //   path: '/patients/pruritus_history',
573
+  //   component: () => import('@/xt_pages/user/history/pruritus_history'),
574
+  //   hidden: true,
575
+  //   is_menu: false,
576
+  //   name: 'pruritus_history',
577
+  //   meta: {
578
+  //     title: 'pruritus_history',
579
+  //     noCache: true
580
+  //   }
581
+  // },
582 582
   // {//血管通路图 pruritus_history
583 583
   //   path: '/patients/patient/:id/angiogram',
584 584
   //   component: () => import('@/xt_pages/user/angiogram'),

+ 10 - 3
src/xt_pages/outpatientCharges/invoicePrint.vue View File

@@ -19,12 +19,12 @@
19 19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
20 20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
21 21
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
22
-          <!-- <printSix v-if="org_id == 10217  " :paramsObj="invoiceParams"></printSix> -->
22
+          <printthirteen v-if="org_id == 0 " :paramsObj="invoiceParams"></printthirteen>
23 23
 <!--          <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
24 24
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
25 25
           <PrintNight v-if="org_id == 10210" :paramsObj="invoiceParams"></PrintNight>
26 26
           <!-- <PrintTen v-if="org_id == 10375 ||org_id == 0 " :paramsObj="invoiceParams"></PrintTen> -->
27
-          <printtwelve :paramsObj="invoiceParams"  v-if="org_id == 10480 || org_id ==0"></printtwelve>
27
+          <printtwelve :paramsObj="invoiceParams"  v-if="org_id == 10480 "></printtwelve>
28 28
         </div>
29 29
     </div>
30 30
 
@@ -44,6 +44,11 @@
44 44
         <print-ten :paramsObj="invoiceParams"></print-ten>
45 45
       </div>
46 46
     </div>
47
+    <!-- <div class="app-container" style="padding-top:40px;" v-if="org_id == 0">
48
+      <div class='dialysisPage'>
49
+        <printthirteen :paramsObj="invoiceParams"></printthirteen>
50
+      </div>
51
+    </div> -->
47 52
   </div>
48 53
 </template>
49 54
 
@@ -61,6 +66,7 @@
61 66
   import PrintTen from './invoiceTemplate/printTen.vue'
62 67
   import PrintEleven from './invoiceTemplate/printEleven.vue'
63 68
   import printtwelve from './invoiceTemplate/printtwelve.vue'
69
+  import printthirteen from './invoiceTemplate/printthirteen.vue'
64 70
   export default {
65 71
     name: "invoicePrint",
66 72
     components: {
@@ -75,7 +81,8 @@
75 81
       printSix,
76 82
       printSeven,
77 83
       PrintTen,
78
-      printtwelve
84
+      printtwelve,
85
+      printthirteen
79 86
     },
80 87
     props:{
81 88
       invoiceParams:Object

+ 270 - 0
src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue View File

@@ -0,0 +1,270 @@
1
+
2
+<template>
3
+  <div id='invoice-print'>
4
+    <div v-for='(i,index) in pageArr.length' :key="index" style="width: 80%;margin: 0 auto;">
5
+      <div style="text-align: center;width: 100%;font-size: 20px; font-weight: bolder;">盐城盐都悦达金骆驼血液透析中心收费票据</div>
6
+      <div style="display: flex; margin: 15px 0 5px 0;">
7
+        <div style="flex: 1.5;">业务流水号:{{ list.order_number }}</div>
8
+        <div style="flex: 1;">医疗机构类型:</div>
9
+        <div style="flex: 0.6;">医生:{{ doctor_info.user_name }}</div>
10
+        <div style="flex: 1;">医院国家编码:H32092103007</div>
11
+      </div> 
12
+      <div style="display: flex;border: 1px solid black;padding: 5px 0;">
13
+        <div style="flex: 1;">姓名:{{ paramsObj.name }}</div>
14
+        <div style="flex: 1;">性别:</div>
15
+        <div style="flex: 1;">医保类型:</div>
16
+        <div style="flex: 1;">社会保障号码:</div>
17
+       
18
+      </div>
19
+      <div style="display: flex;border: 1px solid black;text-align: center;border-top:none;">
20
+        <div style="flex: 1;display: flex;">
21
+          <div style="flex: 1;border-right: 1px solid black;padding: 5px 0;">项目</div>
22
+          <div style="flex: 1; padding: 5px 0;">金额</div>
23
+        </div>
24
+        <div style="flex: 2;display: flex;border-left: 1px solid black;">
25
+          <div style="flex: 1; padding: 5px 0;">项目/规格</div>
26
+          <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">数量</div>
27
+          <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">金额</div>
28
+        </div>
29
+      </div>
30
+
31
+      <div style="display: flex;border: 1px solid black;border-top:none;height: 200px;">
32
+        <div style="flex: 1;margin-left: 10px;" >
33
+          <div v-if="list.westernMedicineCostTotal">西药 &nbsp;&nbsp;{{ list.westernMedicineCostTotal }}</div>
34
+          <div v-if="list.treatCostTotal">治疗费 &nbsp;&nbsp;{{ list.treatCostTotal }}</div>
35
+          <div v-if="list.bedCostTotal">床位费 &nbsp;&nbsp;{{ list.bedCostTotal }}</div>
36
+          <div v-if="list.chineseTraditionalMedicineCostTotal">中成药 &nbsp;&nbsp;{{ list.chineseTraditionalMedicineCostTotal }}</div>
37
+          <div v-if="list.laboratoryCostTotal">化验费 &nbsp;&nbsp;{{ list.laboratoryCostTotal }}</div>
38
+          <div v-if="list.operationCostTotal">手术费 &nbsp;&nbsp;{{ list.operationCostTotal }}</div>
39
+          <div v-if="list.otherCostTotal">其他费 &nbsp;&nbsp;{{ list.otherCostTotal }}</div>
40
+          <div v-if="list.materialCostTotal">材料费 &nbsp;&nbsp;{{ list.materialCostTotal }}</div>
41
+        </div>
42
+        <div style="flex: 2;border-left: 1px solid black;">
43
+          <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])" style="margin-left: 10px;">
44
+            <span style="display:inline-block;width:300px;">
45
+                <span v-if="item.advice.id == 0">
46
+                    <span v-if="item.project.type == 2">{{ item.project.project.project_name }}</span>
47
+                    <span v-if="item.project.type == 3">{{ item.project.good_info.good_name }}</span>
48
+                </span>
49
+                <span v-else>{{ item.advice.advice_name }}</span>
50
+            </span>
51
+            <span style="display:inline-block;width:50px;">
52
+                <span v-if="item.advice.id == 0">
53
+                    <span v-if="item.project.type == 2">{{ item.project.count }}{{ item.project.unit }}</span>
54
+                    <span v-if="item.project.type == 3">{{ item.project.count }}{{ item.project.unit }}</span>
55
+                </span>
56
+                <span v-else>{{ item.advice.prescribing_number }}{{ item.advice.prescribing_number_unit }}</span>
57
+            </span>
58
+            <span>
59
+                <span v-if="item.advice.id == 0">
60
+                    <span v-if="item.project.type == 2">{{ (item.project.count * item.pric).toFixed(2) }}</span>
61
+                    <span v-if="item.project.type == 3">{{ (item.project.count * item.pric).toFixed(2) }}</span>
62
+                </span>
63
+                <span v-else>{{ (item.advice.prescribing_number * item.pric).toFixed(2) }}</span>
64
+            </span>
65
+          </div>
66
+        </div>
67
+      </div>
68
+      <div style="display: flex;border:1px solid black;border-top: none;">
69
+        <div style="flex: 2; padding: 5px 0;">
70
+          <span style="font-weight: bolder;">合计(大写):</span>
71
+          <span>{{ zhongwen }}</span>
72
+        </div>
73
+        <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">¥:{{ list.medfee_sumamt }}</div>
74
+      </div>
75
+      <div style="display: flex;border:1px solid black;border-top: none;height: 70px;">
76
+        <div 
77
+          style="flex: 0.5;border-right: 1px solid black; padding: 5px 0;
78
+          text-align: center;line-height: 60px;font-weight: bolder;"
79
+        >
80
+          附注:
81
+        </div>
82
+        <div style="flex: 2; padding: 5px 0; position: relative;">
83
+          <div v-if="index == pageArr.length - 1">
84
+                <div style="display:flex;">
85
+                  <div style="width:150px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
86
+                  <div style="width:150px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
87
+                  <div style="width:150px">统筹支出:{{ list.order.hifp_pay }}</div>
88
+                  <div style="width:150px">大病支出:{{list.order.hifmi_pay}}</div>
89
+
90
+                </div>
91
+                <div style="display:flex;">
92
+                  <div style="width:150px">个人账户支付:{{ list.order.acct_pay }}</div>
93
+                  <div style="width:150px">现金支出:{{ list.order.psn_cash_pay }}</div>
94
+                  <div style="width:150px">本次账户:0</div>
95
+                  <div style="width:150px">上次账户:0</div>
96
+                </div>
97
+              <div style="display:flex;">
98
+                <div style="width:150px">账户余额:{{ list.order.balc }}</div>
99
+                <div style="width:150px">其他支出:{{ list.order.oth_pay }}</div>
100
+                <div style="width:150px">大病补充保险支出:0</div>
101
+                <div style="width:150px">民政支出:0</div>
102
+              </div>
103
+              <div style="display:flex;">
104
+                <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>
105
+                <div style="width:280px">企业补充医疗保险基金支出:{{ list.order.hifes_pay }}</div>
106
+              </div>
107
+
108
+            </div>
109
+          <span style="position: absolute;left: 90%;top: 70%;">(手写无效)</span>
110
+        </div>
111
+      </div>
112
+      <div style="display: flex;">
113
+        <div style="flex: 1;">收款单位(章):{{ org_name }}</div>
114
+        <div style="flex: 1;">收费员:{{ paramsObj.chargeName }}</div>
115
+        <div style="flex: 1;"> 
116
+          <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
117
+          年
118
+          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
119
+          月  
120
+          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
121
+          日
122
+          </div>
123
+      </div>
124
+    </div>
125
+  </div>
126
+</template>
127
+
128
+<script>
129
+import { getInvoice } from '@/api/project/project'
130
+import { uParseTime } from '@/utils/tools'
131
+export default {
132
+    props:{
133
+        paramsObj:Object
134
+    },
135
+    data(){
136
+        return{
137
+            list:{},
138
+            printDate:'',
139
+            zhongwen:'',
140
+            totalPrice:0.0,
141
+            org_id:'',
142
+            org_name:'',
143
+            page:1,
144
+            pageArr:[],
145
+            doctor_info:{},
146
+        }
147
+    },
148
+    created(){
149
+        console.log('paramsObj',this.paramsObj)
150
+        let params = {
151
+            order_id: this.paramsObj.order_id,
152
+            patient_id: this.paramsObj.patient_id,
153
+        }
154
+        this.getInvoice(params)
155
+        // var data = new Date();
156
+        // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
157
+        // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
158
+        // this.printDate = data.getFullYear() + "-" + month + "-" + date;
159
+        // this.smalltoBIG(982732.21)
160
+        this.org_id = this.$store.getters.xt_user.org_id
161
+        this.org_name = this.$store.getters.xt_user.org.org_name
162
+    },
163
+    methods:{
164
+        getInvoice(params){
165
+            getInvoice(params).then((res) => {
166
+                console.log('res',res)
167
+                this.list = res.data.data
168
+                this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
169
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
170
+                this.smalltoBIG(this.list.medfee_sumamt)
171
+                var data = new Date(res.data.data.date * 1000);
172
+                var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
173
+                var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
174
+                this.printDate = data.getFullYear() + "-" + month + "-" + date;
175
+                this.pageArr = []
176
+                this.getPage()
177
+                this.doctor_info = res.data.data.doctor_info
178
+                console.log('pageArr',this.pageArr)
179
+            })
180
+        },
181
+        smalltoBIG(n) {
182
+            // let fraction = ['角', '分'];
183
+            // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
184
+            // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
185
+            // let head = price < 0 ? '欠' : '';
186
+            // price = Math.abs(price);
187
+            // let upper = '';
188
+            // for (let i = 0; i < fraction.length; i++) {
189
+            // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
190
+            // }
191
+            // upper = upper || '整';
192
+            // price = Math.floor(price);
193
+            // for (let i = 0; i < unit[0].length && price > 0; i++) {
194
+            // let p = '';
195
+            // for (let j = 0; j < unit[1].length && price > 0; j++) {
196
+            //     p = digit[price % 10] + unit[1][j] + p;
197
+            //     price = Math.floor(price / 10);
198
+            // }
199
+            // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
200
+            // }
201
+            // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
202
+            // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
203
+            if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
204
+                return "数据非法";  //判断数据是否大于0
205
+            }
206
+
207
+            var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
208
+            n += "00";
209
+
210
+            var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
211
+
212
+            if (indexpoint >= 0){
213
+
214
+                n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
215
+            }
216
+
217
+            unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
218
+            for (var i=0; i < n.length; i++){
219
+                str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
220
+            }
221
+            console.log("str",str)
222
+            if(str == '零元零角零分'){
223
+                this.zhongwen = '零'
224
+            }else{
225
+                this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
226
+            }
227
+
228
+            console.log(this.zhongwen)
229
+        },
230
+        getTime(value, temp) {
231
+            if (value == 0) {
232
+                return ''
233
+            }
234
+            if (value != undefined) {
235
+                return uParseTime(value, temp)
236
+            }
237
+            return ''
238
+        },
239
+        getPage(){
240
+        if(this.list.order_info.length <= 10){
241
+            this.page = 1
242
+            this.pageArr.push(this.list.order_info.length)
243
+        }else if(this.list.order_info.length > 10){
244
+            this.page = parseInt(this.list.order_info.length / 10)
245
+            let num = this.list.order_info.length % 10
246
+            for (var i=0;i<this.page;i++){
247
+                this.pageArr.push(10)
248
+            }
249
+            if(num != 0){
250
+                this.pageArr.push(num)
251
+            }
252
+        }
253
+      }
254
+
255
+    },
256
+    watch:{
257
+        paramsObj:{//深度监听,可监听到对象、数组的变化
258
+            handler(val, oldVal){
259
+                let params = {
260
+                    order_id: val.order_id,
261
+                    patient_id: val.patient_id,
262
+                }
263
+                this.getInvoice(params)
264
+
265
+            },
266
+            deep:true
267
+        }
268
+    }
269
+}
270
+</script>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/checkPrint.vue View File

@@ -14,8 +14,8 @@
14 14
 <!--  && this.$store.getters.xt_user.org_id != 0  -->
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16 16
         <printOne v-if="this.$store.getters.xt_user.org_id != 10402 && this.$store.getters.xt_user.org_id != 10375 && this.$store.getters.xt_user.org_id != 0" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
17
-        <printTwo v-if="this.$store.getters.xt_user.org_id == 10402 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
18
-        <printThree v-if="this.$store.getters.xt_user.org_id == 10375" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printThree>
17
+        <!-- <printTwo v-if="this.$store.getters.xt_user.org_id == 10402 || this.$store.getters.xt_user.org_id == 0 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo> -->
18
+        <printThree v-if="this.$store.getters.xt_user.org_id == 10375 || this.$store.getters.xt_user.org_id == 0 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printThree>
19 19
         <!--      <print-two></print-two>-->
20 20
       </div>
21 21
 

+ 9 - 28
src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue View File

@@ -109,22 +109,7 @@
109 109
             <div>
110 110
               医生签字:
111 111
 
112
-              <img
113
-                v-if="setAdminUserES(advicePrint[0].creator)"
114
-                style="height: 80px; width: 80px;"
115
-                :src="setAdminUserES(advicePrint[0].creator)"
116
-                alt=""
117
-                srcset=""
118
-              />
119
-              <span
120
-                style="width: 100px; display: inline-block"
121
-                v-else-if="advicePrint[0].doctor != ''"
122
-              >
123
-                {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
124
-              </span>
125
-              <span v-else>
126
-
127
-              </span>
112
+              <span style="width: 100px; display: inline-block"></span>
128 113
             </div>
129 114
           </div>
130 115
         </div>
@@ -242,27 +227,31 @@ export default {
242 227
       getPrescriptionPrint(params).then((response) => {
243 228
         if (response.data.state == 1) {
244 229
           var advicePrint = response.data.data.advicePrint;
245
-          console.log("adviceprint9999", advicePrint);
230
+          // console.log("adviceprint9999", advicePrint);
246 231
           this.advicePrint = advicePrint;
247 232
           this.prescriptions = advicePrint;
248
-          console.log("处方222222", this.prescriptions);
233
+          // console.log("处方222222", this.prescriptions);
249 234
           var hisPatient = response.data.data.hisPatient;
250 235
           // console.log("hisPatient", hisPatient);
251 236
           this.hisPatient = hisPatient;
252 237
           let projectPrint = [];
253 238
           let total = 0;
254 239
           this.advicePrint.map((item) => {
240
+            let singleProjectPrint = []
255 241
             // console.log("imte233232323232323223", item.project);
256 242
             if (item.project.length > 0) {
257 243
               item.project.map((it) => {
258 244
                 if (it.type == 2) {
259 245
                   if (it.project.cost_classify == 3) {
260 246
                     projectPrint.push(it);
247
+                    singleProjectPrint.push(it)
261 248
                     total += it.project.price * parseInt(it.count);
262 249
                   }
263 250
                 }
264 251
               });
265 252
             }
253
+            item["singleProjectPrint"] = singleProjectPrint
254
+
266 255
           });
267 256
           this.doctorList_1 = response.data.data.eles;
268 257
           // console.log(this.doctorList_1, "医生列表");
@@ -279,15 +268,7 @@ export default {
279 268
           let data = [];
280 269
           let data2 = [];
281 270
           projectPrint.map((item) => {
282
-            if (item.team.id != 0) {
283
-              let status = data.some((it) => it.team.id == item.team.id);
284
-              if (!status) {
285
-                data.push(item);
286
-              }
287
-            }
288
-            if (item.team.id == 0) {
289 271
               data2.push(item);
290
-            }
291 272
           });
292 273
           this.projectPrint = data;
293 274
           console.log("列表", this.projectPrint);
@@ -296,11 +277,11 @@ export default {
296 277
           this.doctor = this.advicePrint[0].doctor;
297 278
 
298 279
           this.singleProjectPrint = data2;
299
-          console.log("列表333", this.singleProjectPrint);
280
+
300 281
           var projectlist = response.data.data.projectlist;
301 282
 
302 283
           var projectlist = response.data.data.projectlist;
303
-          // console.log("所有项目列表", projectlist);
284
+          console.log("所有项目列表", this.singleProjectPrint);
304 285
           this.projectList = projectlist;
305 286
           this.getPage();
306 287
           let outputlist1Name = response.data.data.his.patient_info

+ 4 - 1
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

@@ -617,7 +617,7 @@
617 617
       this.startUnix = todayUnix - 28800
618 618
 
619 619
       this.getlist()
620
-      this.getDictionaryDataConfig()
620
+      // this.getDictionaryDataConfig()
621 621
     },
622 622
     methods: {
623 623
       searchAction() {
@@ -878,7 +878,9 @@
878 878
         console.log(obj)
879 879
       },
880 880
       getDictionaryDataConfig(type) {
881
+        console.log('qqqqqqq',type);
881 882
         let arr = getDictionaryDataConfig('system', 'social_type')
883
+        console.log('22222',arr);
882 884
         let str = ''
883 885
         arr.map(item => {
884 886
           if (item.id == type) {
@@ -908,6 +910,7 @@
908 910
         return str
909 911
       },
910 912
       getMedicalCare(type) {
913
+        console.log('vvvv',type);
911 914
         let arr = this.medicalCare
912 915
         let str = ''
913 916
         arr.map(item => {

+ 10 - 10
src/xt_pages/sign/Schedulingdisplay.vue View File

@@ -1,5 +1,5 @@
1 1
 <template>
2
- 
2
+
3 3
   <div class="main-contain">
4 4
         <div class="position">
5 5
             <bread-crumb :crumbs="crumbs"></bread-crumb>
@@ -94,7 +94,7 @@
94 94
               @size-change="handleSizeChange"
95 95
               @current-change="handleCurrentChange"
96 96
               :current-page="currentPage"
97
-              :page-sizes="[2, 4, 6, 8, 10]"
97
+              :page-sizes="[4, 8, 12, 16, 20]"
98 98
               :page-size.sync="pagesize"
99 99
               layout="total, sizes, prev, pager, next, jumper"
100 100
               :total="this.schArr.length">
@@ -132,7 +132,7 @@ export default {
132 132
       currentPage: 1,
133 133
       total:0,
134 134
       page:0,
135
-      pagesize:4,
135
+      pagesize:20,
136 136
       day:'',
137 137
       teem_sel: [
138 138
         { name: "上午", id: 1 },
@@ -212,7 +212,7 @@ export default {
212 212
 
213 213
   // },
214 214
   mounted(){
215
-    
215
+
216 216
     this.time = setInterval (()=>{
217 217
       // console.log('5555555555',Math.ceil(this.schArr.length / this.pagesize));
218 218
       if(this.currentPage < Math.ceil(this.schArr.length / this.pagesize)){
@@ -292,7 +292,7 @@ export default {
292 292
           console.log('3333333',this.schArr);
293 293
           console.log('4444444',this.total);
294 294
         }
295
-        
295
+
296 296
       })
297 297
     },
298 298
     // 进入全屏
@@ -381,11 +381,11 @@ export default {
381 381
     },
382 382
 
383 383
   },
384
-  created(){ 
385
-    
384
+  created(){
385
+
386 386
     // console.log('jiequsdfasdfas',this.nameSplit('左B区陈漫'));
387
-    this.org_id = this.$store.getters.xt_user.org_id 
388
-    this.schArr = Object.entries(this.data);
387
+    this.org_id = this.$store.getters.xt_user.org_id
388
+    // this.schArr = Object.entries(this.data);
389 389
     // console.log('5555555555',Math.ceil(this.schArr.length / this.pagesize));
390 390
     // console.log('00000',arr);
391 391
     // this.getindexschedulelist()
@@ -400,7 +400,7 @@ export default {
400 400
 <style lang="scss" scoped>
401 401
 .main-contain{
402 402
     height: 100%;
403
-    
403
+
404 404
 }
405 405
 .page_lineUp{
406 406
     height: 100%;

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

@@ -207,68 +207,68 @@ export default {
207 207
             },
208 208
           ]
209 209
         },
210
-        // {
211
-        //   name: '5',
212
-        //   label: '评估工具',
213
-        //   children: [
214
-        //     {
215
-        //       name: '5-1',
216
-        //       label: '跌倒评估'
217
-        //     },
218
-        //     {
219
-        //       name: '5-2',
220
-        //       label: '小儿跌倒风险评估'
221
-        //     },
222
-        //     {
223
-        //       name: '5-3',
224
-        //       label: '压疮风险评估'
225
-        //     },
226
-        //     {
227
-        //       name: '5-4',
228
-        //       label: 'OH压疮评估'
229
-        //     },
230
-        //     {
231
-        //       name: '5-5',
232
-        //       label: '日常生活能力评估'
233
-        //     },
234
-        //     {
235
-        //       name: '5-6',
236
-        //       label: '导管脱落风险评估'
237
-        //     },
238
-        //     {
239
-        //       name: '5-7',
240
-        //       label: 'RASS及疼痛评估'
241
-        //     },
242
-        //     {
243
-        //       name: '5-8',
244
-        //       label: '营养状况评估'
245
-        //     },
246
-        //     {
247
-        //       name: '5-9',
248
-        //       label: '约束告知单'
249
-        //     },
250
-        //     {
251
-        //       name: '5-10',
252
-        //       label: '心理评估'
253
-        //     },
254
-        //     {
255
-        //       name: '5-11',
256
-        //       label: '瘙痒评估'
257
-        //     },
258
-        //     {
259
-        //       name: '5-12',
260
-        //       label: '血液透析患者评估'
261
-        //     },
262
-        //     {
263
-        //       name: '5-13',
264
-        //       label: 'Glasgow昏迷评分量表'
265
-        //     },
266
-        //     {
267
-        //       name: '5-14',
268
-        //       label: '肌力评估表'
269
-        //     },
270
-        //   ]
271
-        // },
210
+        {
211
+          name: '5',
212
+          label: '评估工具',
213
+          children: [
214
+            {
215
+              name: '5-1',
216
+              label: '跌倒评估'
217
+            },
218
+            {
219
+              name: '5-2',
220
+              label: '小儿跌倒风险评估'
221
+            },
222
+            {
223
+              name: '5-3',
224
+              label: '压疮风险评估'
225
+            },
226
+            {
227
+              name: '5-4',
228
+              label: 'OH压疮评估'
229
+            },
230
+            {
231
+              name: '5-5',
232
+              label: '日常生活能力评估'
233
+            },
234
+            {
235
+              name: '5-6',
236
+              label: '导管脱落风险评估'
237
+            },
238
+            {
239
+              name: '5-7',
240
+              label: 'RASS及疼痛评估'
241
+            },
242
+            {
243
+              name: '5-8',
244
+              label: '营养状况评估'
245
+            },
246
+            {
247
+              name: '5-9',
248
+              label: '约束告知单'
249
+            },
250
+            {
251
+              name: '5-10',
252
+              label: '心理评估'
253
+            },
254
+            {
255
+              name: '5-11',
256
+              label: '瘙痒评估'
257
+            },
258
+            {
259
+              name: '5-12',
260
+              label: '血液透析患者评估'
261
+            },
262
+            {
263
+              name: '5-13',
264
+              label: 'Glasgow昏迷评分量表'
265
+            },
266
+            {
267
+              name: '5-14',
268
+              label: '肌力评估表'
269
+            },
270
+          ]
271
+        },
272 272
 
273 273
       ],
274 274
       name:""

+ 10 - 10
src/xt_pages/user/evaluationtool/Cathetershedding.vue View File

@@ -14,7 +14,7 @@
14 14
                   <table class="table" border="1" style="width: 100%;">
15 15
                     <thead>
16 16
                       <tr>
17
-                          <th style="width: 20%;">项目</th>
17
+                          <th style="width: 15%;">项目</th>
18 18
                           <th style="width: 50%;">分值</th>
19 19
                           <th>护理措施</th>
20 20
                       </tr>
@@ -51,7 +51,7 @@
51 51
                                   <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio>
52 52
                               </el-radio-group>
53 53
                           </div>
54
-                        </td>                           
54
+                        </td>
55 55
                       </tr>
56 56
                       <tr>
57 57
                         <td class="start">C.患者配合程度</td>
@@ -97,7 +97,7 @@
97 97
                               </el-option>
98 98
                           </el-select>
99 99
                       </div>
100
-                      
100
+
101 101
                   </div>
102 102
                   <div style="margin:5px 10px;">
103 103
                     <el-button type="primary">确认</el-button>
@@ -125,7 +125,7 @@
125 125
                     </div>
126 126
                     <div class="zhuangui">
127 127
                         <p style="display: inline-block; margin-right: 30px;">
128
-                            评估人签字: 
128
+                            评估人签字:
129 129
                             <el-select v-model="value" placeholder="请选择" style="width: 120px;">
130 130
                                 <el-option
131 131
                                 v-for="item in options"
@@ -147,7 +147,7 @@
147 147
                     </div>
148 148
                     <div class="zhuangui">
149 149
                         <p style="display: inline-block; margin-right: 30px;">
150
-                            护士长签字: 
150
+                            护士长签字:
151 151
                             <el-select v-model="value" placeholder="请选择" style="width: 120px;">
152 152
                                 <el-option
153 153
                                 v-for="item in options"
@@ -177,7 +177,7 @@
177 177
                 </div>
178 178
             </div>
179 179
         </div>
180
-        
180
+
181 181
     </div>
182 182
 </template>
183 183
 <script>
@@ -233,7 +233,7 @@ export default {
233 233
 <style lang="scss" scoped>
234 234
     .content_top{
235 235
       display: flex;
236
-      justify-content: space-between; 
236
+      justify-content: space-between;
237 237
     }
238 238
     .table{
239 239
         border: 1px solid #DCDFE6;
@@ -276,7 +276,7 @@ export default {
276 276
     .bottoms{
277 277
         display: inline-block;
278 278
         margin-left: 10px;
279
-        margin-top: 5px; 
279
+        margin-top: 5px;
280 280
     }
281 281
     .shuoming p{
282 282
       margin-top: 5px;
@@ -285,5 +285,5 @@ export default {
285 285
     .zhuangui{
286 286
         margin-top: 10px;
287 287
     }
288
-    
289
-</style>
288
+
289
+</style>

+ 264 - 74
src/xt_pages/user/evaluationtool/Glasgow.vue View File

@@ -6,7 +6,19 @@
6 6
         <div class="content_top">
7 7
           <!-- 左 -->
8 8
           <div style="width: 58%;">
9
-            <div style="margin-bottom: 20px;"><el-button type="primary">新增</el-button></div>
9
+            <div style="margin-bottom: 20px; display: flex;">
10
+              <div style="flex:2" >
11
+                <el-button type="primary" @click="Glas_add" v-if="Glasadd_show">新增</el-button>
12
+                <el-button style="background:#00B6D7;color:white" @click="Glas_editor" v-if="Glas_gzdayin">编辑</el-button>
13
+                <el-button type="danger"  @click="Glas_dele" v-if="Glas_gzdayin">删除</el-button>
14
+                <el-button type="success" @click="open_print=true" v-if="Glas_gzdayin">打印</el-button>
15
+              </div>
16
+              <div style="flex:1" v-if="Glas_baoxiao">
17
+                <el-button type="primary" @click="Glas_save" >保存</el-button>
18
+                <el-button  @click="Glas_quxiao" >取消</el-button>
19
+              </div>
20
+
21
+            </div>
10 22
             <div style="font-size: 20px;margin-bottom: 20px;">Glasgow昏迷评分量表</div>
11 23
             <div style="width: 100%;">
12 24
               <table class="table" border="1" style="width: 100%;">
@@ -27,7 +39,7 @@
27 39
                       </div>
28 40
                     </td>
29 41
                   </tr>
30
-                  
42
+
31 43
                   <tr>
32 44
                     <td class="start">言语反映 (V)</td>
33 45
                     <td>
@@ -38,33 +50,33 @@
38 50
                       </div>
39 51
                     </td>
40 52
                   </tr>
41
-                  
53
+
42 54
                   <tr class="bg_color">
43 55
                     <td class="start">运动反应(M)</td>
44 56
                     <td>
45 57
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
46 58
                         <span v-for="item in yundong" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
47 59
                           <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
48
-                        </span> 
60
+                        </span>
49 61
                       </div>
50 62
                     </td>
51 63
                   </tr>
52
-                  
64
+
53 65
                 </tbody>
54 66
               </table>
55 67
             </div>
56
-            
68
+
57 69
             <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
58 70
               <span style="position: relative; top: -55px;">护理措施:</span>
59 71
               <div style="margin-top: 20px;display: inline-block; width: 85%;">
60 72
                 <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
61 73
               </div>
62 74
             </div>
63
-            
75
+
64 76
             <div>
65 77
               <div class="bottoms">
66 78
                 <span>总分:</span>
67
-                <el-input v-model="Glasgow_Totalpoints" style="width: 100px;"></el-input>分
79
+                <el-input v-model="Glasgow_Totalpoints" style="width: 80px;"></el-input>分
68 80
               </div>
69 81
 
70 82
               <div class="bottoms">
@@ -80,18 +92,18 @@
80 92
 
81 93
               <div class="bottoms">
82 94
                 <span>评估人:</span>
83
-                <el-select v-model="value" placeholder="请选择" >
95
+                <el-select v-model="Glas_pinggu" placeholder="请选择" style="width:120px;">
84 96
                     <el-option
85
-                    v-for="item in options"
86
-                    :key="item.value"
97
+                    v-for="item in pinggr"
98
+                    :key="item.id"
87 99
                     :label="item.label"
88
-                    :value="item.value"
89
-                    style="width:150px;">
100
+                    :value="item.id"
101
+                    >
90 102
                     </el-option>
91 103
                 </el-select>
92 104
               </div>
93
-            </div> 
94
-            
105
+            </div>
106
+            <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
95 107
             <hr style=" background-color: #DCDFE6;margin-top: 20px; height: 1px;border: none;"/>
96 108
             <div class="shuoming">
97 109
               <p>说明:</p>
@@ -105,7 +117,7 @@
105 117
             <div style="font-size: 20px; margin-bottom: 20px;">评估历史记录</div>
106 118
             <div style="width: 100%;">
107 119
               <el-table
108
-              :data="tableData"
120
+              :data="history_Glasgow"
109 121
               stripe
110 122
               border
111 123
               :header-cell-style="{
@@ -117,12 +129,12 @@
117 129
                   width="180">
118 130
                   </el-table-column>
119 131
                   <el-table-column
120
-                  prop="name"
132
+                  prop="mark"
121 133
                   label="总分"
122 134
                   >
123 135
                   </el-table-column>
124 136
                   <el-table-column
125
-                  prop="name"
137
+                  prop="evaluate"
126 138
                   label="评估人"
127 139
                   >
128 140
                   </el-table-column>
@@ -131,7 +143,83 @@
131 143
           </div>
132 144
         </div>
133 145
       </div>
134
-    </div> 
146
+      <!-- 打印 -->
147
+      <el-dialog
148
+      title="提示"
149
+      :visible.sync="open_print"
150
+      width="67%"
151
+      >
152
+      <div>
153
+        <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
154
+        <div id="mingxi" >
155
+          <div class="diedao_content" style="">
156
+            <div style="width:100%;margin-top: 20px;">
157
+              <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
158
+              <div style="margin-top: 20px;font-size: 16px;">
159
+                <span>患者姓名:</span>
160
+                <span>透析号:</span>
161
+                <span>评估日期:</span>
162
+                <span>评估护士:</span>
163
+                <span>总分:</span>
164
+                <span>打印时间:</span>
165
+              </div>
166
+              <table class="tables" border="1" style="width: 100%;border-collapse: collapse;font-size: 16px;">
167
+                <thead>
168
+                  <tr>
169
+                    <th style="width: 150px;padding: 5px;">项目</th>
170
+                    <th style="padding: 5px;">分值</th>
171
+                  </tr>
172
+                </thead>
173
+                <tbody>
174
+                  <tr class="bg_color">
175
+                    <td class="start">睁眼反应(E)</td>
176
+                    <td>
177
+                      <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
178
+                        <span v-for="item in zhengyan" class="ttbwzz-type-a" >
179
+                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
180
+                        </span>
181
+                      </div>
182
+                    </td>
183
+                  </tr>
184
+
185
+                  <tr>
186
+                    <td class="start">言语反映 (V)</td>
187
+                    <td>
188
+                      <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
189
+                        <span v-for="item in yanyu" class="ttbwzz-type-a" >
190
+                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
191
+                        </span>
192
+                      </div>
193
+                    </td>
194
+                  </tr>
195
+
196
+                  <tr class="bg_color">
197
+                    <td class="start">运动反应(M)</td>
198
+                    <td>
199
+                      <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
200
+                        <span v-for="item in yundong" class="ttbwzz-type-a" >
201
+                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
202
+                        </span>
203
+                      </div>
204
+                    </td>
205
+                  </tr>
206
+
207
+                </tbody>
208
+              </table>
209
+              <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
210
+                  <span style="position: relative; top: -55px;">护理措施:</span>
211
+                  <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
212
+                      
213
+                  </div>
214
+              </div>
215
+              
216
+            </div>
217
+          </div>
218
+        </div>
219
+      </div>
220
+      
221
+    </el-dialog>
222
+    </div>
135 223
   </div>
136 224
 </template>
137 225
 <script>
@@ -155,6 +243,16 @@ export default {
155 243
       zhengyan:['自动睁眼(4分)','互换睁眼(3分)','刺激睁眼(2分)','无反应(1分)'],
156 244
       yanyu:['正常(5分)','不准确回答问题(4分)','不恰当词句(3分)','不能理解的言语(2分)','无言语反映(1分)'],
157 245
       yundong:['能按指令运动肢体(6分)','对刺痛能定位(5分)','对刺痛能躲避(4分)','刺痛肢体屈曲(3分)','刺痛肢体过伸(2分)','无反应(1分)'],
246
+      pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
247
+      history_Glasgow:[{date:'2023-9-27',mark:'',evaluate:''}],
248
+
249
+      append:false,
250
+      Glasadd_show:true,
251
+      Glas_gzdayin:false,
252
+      Glas_baoxiao:false,
253
+      cancel_num:0,
254
+      Glas_pinggu:null,
255
+      open_print:false
158 256
     }
159 257
   },
160 258
   methods:{
@@ -168,64 +266,156 @@ export default {
168 266
         this.Glasgow_Totalpoints=this.Glasgow_Totalpoints-jiequ
169 267
         return this.Glasgow_Totalpoints
170 268
       }
171
-      
269
+
270
+    },
271
+    Glas_add(){
272
+      this.cancel_num=0
273
+      this.append=true
274
+      this.Glas_baoxiao=true
275
+      this.Glasadd_show =false
276
+    },
277
+    Glas_save(){
278
+      if(this.Glas_pinggu==null){
279
+        this.$message('请选择评估人')
280
+      }else{
281
+        this.Glasadd_show = true
282
+        this.Glas_baoxiao = false
283
+        this.Glas_gzdayin = true
284
+        this.cancel_num = 1
285
+        const Glalen=this.pinggr
286
+        const historylen = this.history_Glasgow
287
+        for(let x=0;x<historylen.length;x++){
288
+          historylen[x].mark = this.Glasgow_Totalpoints
289
+          for(let i=0;i<Glalen.length;i++){
290
+            if(this.Glas_pinggu==Glalen[i].id){
291
+              historylen[x].evaluate = Glalen[i].label
292
+              return historylen[x].evaluate
293
+            }
294
+          }
295
+        }
296
+      }
297
+    },
298
+    Glas_editor(){
299
+      this.Glas_gzdayin=false
300
+      this.Glas_baoxiao=true
301
+      this.Glasadd_show=false
302
+      this.cancel_num =1
303
+    },
304
+    Glas_dele(){
305
+      this.append=false
306
+      this.Glas_gzdayin=false
307
+      this.Glasadd_show=true
308
+      this.Glas_baoxiao=false
309
+      this.cancel_num=0
310
+    },
311
+    Glas_quxiao(){
312
+      // console.log('1111',this.cancel_num);
313
+      if(this.cancel_num==0){
314
+        this.append=false
315
+        this.Glasadd_show=true
316
+        this.Glas_gzdayin=false
317
+        this.Glas_baoxiao=false
318
+      //  return this.append
319
+      }else{
320
+        this.Glasadd_show=true
321
+        this.Glas_gzdayin=true
322
+        this.Glas_baoxiao=false
323
+        this.append=true
324
+      }
325
+      // console.log('2222', this.apppend);
326
+    },
327
+    print_pingfen(){
328
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 40px;} .tables tbody td{height: 40px;padding:0 10px} .tables{font-size: 16px;}}'
329
+      printJS({
330
+        printable: 'mingxi',
331
+        type: 'html',
332
+        style: style,
333
+        scanStyles: false
334
+      })
335
+      this.open_print=false
172 336
     }
173 337
   }
174 338
 }
175 339
 </script>
176 340
 <style lang="scss" scoped>
177
-    .content_top{
178
-      display: flex;
179
-      justify-content: space-between; 
180
-    }
181
-    .bottoms{
182
-        display: inline-block;
183
-        margin-left: 10px;
184
-        margin-top: 5px;  
185
-    }
186
-    .shuoming p{
341
+  .content_top{
342
+    display: flex;
343
+    justify-content: space-between;
344
+  }
345
+  .bottoms{
346
+      display: inline-block;
347
+      margin-left: 10px;
187 348
       margin-top: 5px;
188
-      color: rgb(167, 165, 165);
189
-    }
190
-    .table{
191
-        border: 1px solid #DCDFE6;
192
-        border-collapse:collapse;
193
-        border-spacing: 0;
194
-        thead th{
195
-            background: #0077ff9f;
196
-            color: white;
197
-            text-align: center;
198
-            height: 40px;
199
-        }
200
-        tbody td{
201
-           height: 40px;
202
-        }
203
-        .start{
204
-            text-align: center;
205
-        }
206
-        .bing{
207
-            width: 150px;
208
-            text-align: center;
209
-        }
210
-        .bg_color{
211
-            background: rgb(243, 240, 240);
212
-        }
213
-        .jiange{
214
-            margin: 5px 0px 5px 20px;
215
-            color: black;
216
-        }
217
-        .rightjiange{
218
-          margin-right: 40px;
219
-          font-size: 15px;
220
-        }
221
-        .ttbwzz-type-a {
222
-          min-width: 80px;
223
-          margin-right: 30px;
224
-          padding: 5px 0px;
225
-          font-size: 15px;
226
-        }
227
-        input{
228
-            -webkit-appearance: checkbox;
229
-        }
230
-    }
231
-</style>
349
+  }
350
+  .shuoming p{
351
+    margin-top: 5px;
352
+    color: rgb(167, 165, 165);
353
+  }
354
+  .table{
355
+      border: 1px solid #DCDFE6;
356
+      border-collapse:collapse;
357
+      border-spacing: 0;
358
+      thead th{
359
+          background: #0077ff9f;
360
+          color: white;
361
+          text-align: center;
362
+          height: 40px;
363
+      }
364
+      tbody td{
365
+          height: 40px;
366
+      }
367
+      .start{
368
+          text-align: center;
369
+      }
370
+      .bing{
371
+          width: 150px;
372
+          text-align: center;
373
+      }
374
+      .bg_color{
375
+          background: rgb(243, 240, 240);
376
+      }
377
+      .jiange{
378
+          margin: 5px 0px 5px 20px;
379
+          color: black;
380
+      }
381
+      .rightjiange{
382
+        margin-right: 40px;
383
+        font-size: 15px;
384
+      }
385
+      .ttbwzz-type-a {
386
+        min-width: 80px;
387
+        margin-right: 30px;
388
+        padding: 5px 0px;
389
+        font-size: 15px;
390
+      }
391
+      input{
392
+          -webkit-appearance: checkbox;
393
+      }
394
+  }
395
+#ctrl-xgtlpic-mask.readonly {
396
+  z-index: 2000;
397
+}
398
+#ctrl-xgtlpic-mask {
399
+    width: 85%;
400
+    height: 100%;
401
+    position: absolute;
402
+    left: 196px;
403
+    top: 131px;
404
+    opacity: 0;
405
+    z-index: -1;
406
+}
407
+.tables {
408
+  
409
+  thead th{
410
+    text-align: center;
411
+    height: 40px;
412
+  }
413
+  tbody td{
414
+    padding:0 10px;
415
+    height: 40px;
416
+  }
417
+  input{
418
+    -webkit-appearance: checkbox;
419
+  }
420
+}
421
+</style>

+ 372 - 201
src/xt_pages/user/evaluationtool/Muscleforce.vue View File

@@ -1,135 +1,148 @@
1 1
 <template>
2 2
   <div class="patient-container">
3
-    <patient-sidebar :id="patientID" defaultActive="5-14"></patient-sidebar> 
3
+    <patient-sidebar :id="patientID" defaultActive="5-14"></patient-sidebar>
4 4
     <div>
5 5
       <div class="patient-app-container advice-container app-container">
6 6
         <div class="content_top">
7 7
           <!-- 左 -->
8 8
           <div style="width: 58%;">
9
-              <div style="margin-bottom: 20px;"><el-button type="primary">新增</el-button></div>
10
-              <div style="font-size: 20px;margin-bottom: 20px;">肌力评估表</div>
11
-              <div style="width: 100%;">
12
-                  <table class="table" border="1" style="width: 100%;">
13
-                      <thead>
14
-                          <tr>
15
-                              <th style="width: 150px;">级别</th>
16
-                              <th>分值</th>
17
-                          </tr>
18
-                      </thead>
19
-                      <!-- <tbody>
20
-                          <tr class="bg_color">
21
-                              <td class="start">0级</td>
22
-                              <td>
23
-                                  <div class="jiange">
24
-                                      <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball"/>&nbsp; 肌肉完全不收缩</label>
25
-                                  </div>
26
-                              </td>
27
-                          </tr>
28
-                          
29
-                          <tr>
30
-                              <td class="start">1级</td>
31
-                              <td>
32
-                                  <div class="jiange">
33
-                                      <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp; 可见肌肉收缩但无肢体运动</label>
34
-                                  </div>
35
-                              </td>
36
-                          </tr>
37
-                          
38
-                          <tr class="bg_color">
39
-                              <td class="start">2级</td>
40
-                              <td>
41
-                                  <div class="jiange">
42
-                                      <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball"/>
43
-                                          &nbsp;肢体能在床上移动,但不能抬离床面,即不能对抗地心引力
44
-                                      </label>
45
-                                  </div>
46
-                              </td>
47
-                          </tr>
48
-                          
49
-                          <tr >
50
-                              <td class="start">3级</td>
51
-                              <td>
52
-                                  <div class="jiange">
53
-                                      <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball" />
54
-                                          &nbsp;肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力
55
-                                      </label>
56
-                                  </div>
57
-                              </td>
58
-                          </tr>
59
-                          
60
-                          <tr class="bg_color">
61
-                              <td class="start">4级</td>
62
-                              <td>
63
-                                  <div class="jiange">
64
-                                      <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball" />
65
-                                          &nbsp;能在一般的外加阻力下作运动,但力量较正常弱
66
-                                      </label>
67
-                                  </div>
68
-                              </td>
69
-                          </tr>
70
-                          
71
-                          <tr>
72
-                              <td class="start">5级</td>
73
-                              <td>
74
-                                  <div class="jiange">
75
-                                      <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball" />
76
-                                          &nbsp;正常肌力
77
-                                      </label>
78
-                                  </div>
79
-                              </td>
80
-                          </tr>
81
-                      </tbody> -->
82
-                    <tbody>
83
-                      <tr v-for="(item,index) in shuju" :key="index" :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
84
-                        <td class="start">{{ item.title }}</td>
85
-                        <td>
86
-                          <div class="jiange">
87
-                            <label style="font-size: 15px;"><input type="checkbox" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;{{ item.value }}</label>
88
-                          </div>
89
-                        </td>
90
-                      </tr>
91
-                    </tbody>
92
-                  </table>
9
+            <div style="margin-bottom: 20px; display: flex;">
10
+              <div style="flex:2" >
11
+                <el-button type="primary" @click="muscle_add" v-if="muscle_show">新增</el-button>
12
+                <el-button style="background:#00B6D7;color:white" @click="muscle_editor" v-if="muscle_gsdayin">编辑</el-button>
13
+                <el-button type="danger"  @click="muscle_dele" v-if="muscle_gsdayin">删除</el-button>
14
+                <el-button type="success" @click="open_print=true" v-if="muscle_gsdayin">打印</el-button>
93 15
               </div>
94
-              
95
-              <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
96
-                  <span style="position: relative; top: -55px;">护理措施:</span>
97
-                  <div style="margin-top: 20px;display: inline-block; width: 85%;">
98
-                      <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
99
-                  </div>
16
+
17
+              <div style="flex:1" v-if="baocun_quxiao">
18
+                <el-button type="primary" @click="muscle_save" >保存</el-button>
19
+                <el-button  @click="muscle_cancel" >取消</el-button>
100 20
               </div>
101
-              
102
-              <div>
103
-                  <div class="bottoms">
104
-                      <span>级别:</span>
105
-                      <el-input v-model="Mus_Totalpoints" style="width: 100px;"></el-input>级
106
-                  </div>
107 21
 
108
-                  <div class="bottoms">
109
-                      <span>评估日期:</span>
110
-                      <el-date-picker
111
-                          v-model="value1"
112
-                          type="date"
113
-                          placeholder="选择日期"
114
-                          :clearable="false"
115
-                          style="width: 150px;">
116
-                      </el-date-picker>
117
-                  </div>
22
+            </div>
23
+            <div style="font-size: 20px;margin-bottom: 20px;">肌力评估表</div>
24
+            <div style="width: 100%;">
25
+                <table class="table" border="1" style="width: 100%;">
26
+                    <thead>
27
+                        <tr>
28
+                            <th style="width: 150px;">级别</th>
29
+                            <th>分值</th>
30
+                        </tr>
31
+                    </thead>
32
+                    <!-- <tbody>
33
+                        <tr class="bg_color">
34
+                            <td class="start">0级</td>
35
+                            <td>
36
+                                <div class="jiange">
37
+                                    <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball"/>&nbsp; 肌肉完全不收缩</label>
38
+                                </div>
39
+                            </td>
40
+                        </tr>
118 41
 
119
-                  <div class="bottoms">
120
-                      <span>评估人:</span>
121
-                      <el-select v-model="value" placeholder="请选择" >
122
-                          <el-option
123
-                          v-for="item in options"
124
-                          :key="item.value"
125
-                          :label="item.label"
126
-                          :value="item.value"
127
-                          style="width:150px;">
128
-                          </el-option>
129
-                      </el-select>
130
-                  </div>
131
-                  
132
-              </div> 
42
+                        <tr>
43
+                            <td class="start">1级</td>
44
+                            <td>
45
+                                <div class="jiange">
46
+                                    <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp; 可见肌肉收缩但无肢体运动</label>
47
+                                </div>
48
+                            </td>
49
+                        </tr>
50
+
51
+                        <tr class="bg_color">
52
+                            <td class="start">2级</td>
53
+                            <td>
54
+                                <div class="jiange">
55
+                                    <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball"/>
56
+                                        &nbsp;肢体能在床上移动,但不能抬离床面,即不能对抗地心引力
57
+                                    </label>
58
+                                </div>
59
+                            </td>
60
+                        </tr>
61
+
62
+                        <tr >
63
+                            <td class="start">3级</td>
64
+                            <td>
65
+                                <div class="jiange">
66
+                                    <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball" />
67
+                                        &nbsp;肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力
68
+                                    </label>
69
+                                </div>
70
+                            </td>
71
+                        </tr>
72
+
73
+                        <tr class="bg_color">
74
+                            <td class="start">4级</td>
75
+                            <td>
76
+                                <div class="jiange">
77
+                                    <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball" />
78
+                                        &nbsp;能在一般的外加阻力下作运动,但力量较正常弱
79
+                                    </label>
80
+                                </div>
81
+                            </td>
82
+                        </tr>
83
+
84
+                        <tr>
85
+                            <td class="start">5级</td>
86
+                            <td>
87
+                                <div class="jiange">
88
+                                    <label style="font-size: 15px;"><input type="checkbox" name="ball" value="volleyball" />
89
+                                        &nbsp;正常肌力
90
+                                    </label>
91
+                                </div>
92
+                            </td>
93
+                        </tr>
94
+                    </tbody> -->
95
+                  <tbody>
96
+                    <tr v-for="(item,index) in shuju" :key="index" :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
97
+                      <td class="start">{{ item.title }}</td>
98
+                      <td>
99
+                        <div class="jiange">
100
+                          <label style="font-size: 15px;"><input type="checkbox" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;{{ item.value }}</label>
101
+                        </div>
102
+                      </td>
103
+                    </tr>
104
+                  </tbody>
105
+                </table>
106
+            </div>
107
+
108
+            <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
109
+              <span style="position: relative; top: -55px;">护理措施:</span>
110
+              <div style="margin-top: 20px;display: inline-block; width: 85%;">
111
+                  <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
112
+              </div>
113
+            </div>
114
+
115
+            <div>
116
+              <div class="bottoms">
117
+                  <span>级别:</span>
118
+                  <el-input v-model="Mus_Totalpoints" style="width: 80px;"></el-input>级
119
+              </div>
120
+
121
+              <div class="bottoms">
122
+                  <span>评估日期:</span>
123
+                  <el-date-picker
124
+                      v-model="value1"
125
+                      type="date"
126
+                      placeholder="选择日期"
127
+                      :clearable="false"
128
+                      style="width: 150px;">
129
+                  </el-date-picker>
130
+              </div>
131
+
132
+              <div class="bottoms">
133
+                  <span>评估人:</span>
134
+                  <el-select v-model="muscle_pinggu" placeholder="请选择" style="width:120px;">
135
+                      <el-option
136
+                      v-for="item in pinggr"
137
+                      :key="item.id"
138
+                      :label="item.label"
139
+                      :value="item.id"
140
+                      >
141
+                      </el-option>
142
+                  </el-select>
143
+              </div>
144
+            </div>
145
+            <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
133 146
           </div>
134 147
           <!-- 虚线 -->
135 148
           <div style="height: 100vh; width: 1px; border-left:1px dashed #DCDFE6 ;"></div>
@@ -138,11 +151,13 @@
138 151
               <div style="font-size: 20px; margin-bottom: 20px;">评估历史记录</div>
139 152
               <div style="width: 100%;">
140 153
                   <el-table
141
-                  :data="tableData"
154
+                  :data="history_muscle"
142 155
                   stripe
143 156
                   border
157
+                  :highlight-current-row="true"
144 158
                   :header-cell-style="{
145
-                      background: '#0077ff9f',color:'white'}"
159
+                      background: '#0077ff9f',color:'white'
160
+                      }"
146 161
                   style="width: 100%">
147 162
                       <el-table-column
148 163
                       prop="date"
@@ -150,12 +165,12 @@
150 165
                       width="180">
151 166
                       </el-table-column>
152 167
                       <el-table-column
153
-                      prop="name"
168
+                      prop="mark"
154 169
                       label="总分"
155 170
                       >
156 171
                       </el-table-column>
157 172
                       <el-table-column
158
-                      prop="name"
173
+                      prop="evaluate"
159 174
                       label="评估人"
160 175
                       >
161 176
                       </el-table-column>
@@ -163,100 +178,256 @@
163 178
               </div>
164 179
           </div>
165 180
         </div>
166
-          
181
+
182
+      </div>
183
+
184
+      <el-dialog
185
+      title="提示"
186
+      :visible.sync="open_print"
187
+      width="67%"
188
+      >
189
+      <div>
190
+        <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
191
+        <div id="mingxi" >
192
+          <div class="diedao_content" style="">
193
+            <div style="width:100%;margin-top: 20px;">
194
+              <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
195
+              <div style="margin-top: 20px;font-size: 16px;">
196
+                <span>患者姓名:</span>
197
+                <span>透析号:</span>
198
+                <span>评估日期:</span>
199
+                <span>评估护士:</span>
200
+                <span>总分:</span>
201
+                <span>打印时间:</span>
202
+              </div>
203
+              <table class="tables" border="1" style="width: 100%;border-collapse: collapse;font-size: 16px;">
204
+                <thead>
205
+                  <tr>
206
+                    <th style="width: 150px;padding: 5px;">级别</th>
207
+                    <th style="padding: 5px;">分值</th>
208
+                  </tr>
209
+                </thead>
210
+                <tbody>
211
+                    <tr v-for="(item,index) in shuju" :key="index" >
212
+                      <td class="start">{{ item.title }}</td>
213
+                      <td>
214
+                        <div >
215
+                          <label style="font-size: 15px;"><input type="checkbox" name="ball" :value="item.value" />&nbsp;{{ item.value }}</label>
216
+                        </div>
217
+                      </td>
218
+                    </tr>
219
+                  </tbody>
220
+              </table>
221
+              <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
222
+                  <span style="position: relative; top: -55px;">护理措施:</span>
223
+                  <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
224
+                      <!-- <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input> -->
225
+                  </div>
226
+              </div>
227
+              
228
+            </div>
229
+          </div>
230
+        </div>
167 231
       </div>
168
-    </div>
169 232
       
233
+    </el-dialog>
234
+    </div>
235
+
170 236
   </div>
171 237
 </template>
172 238
 <script>
173 239
 import PatientSidebar from '../components/PatientSidebar.vue'
240
+import print from 'print-js'
174 241
 export default {
175
-    components:{
176
-      PatientSidebar
242
+  components:{
243
+    PatientSidebar
244
+  },
245
+  data(){
246
+    return{
247
+      patientID:0,
248
+      checkList:'',
249
+      checkList1:'',
250
+      checkList2:'',
251
+      value1:'',
252
+      value:'',
253
+      input:'',
254
+      Mus_Totalpoints:'',
255
+      muscle_pinggu:null,
256
+      options:[],
257
+      tableData:[],
258
+      shuju:[
259
+        {title:'0级',value:'肌肉完全不收缩'},
260
+        {title:'1级',value:'可见肌肉收缩但无肢体运动'},
261
+        {title:'2级',value:'肢体能在床上移动,但不能抬离床面,即不能对抗地心引力'},
262
+        {title:'3级',value:'肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力'},
263
+        {title:'4级',value:'能在一般的外加阻力下作运动,但力量较正常弱'},
264
+        {title:'5级',value:' 正常肌力'},
265
+      ],
266
+      history_muscle:[{date:'2023-9-27',mark:'',evaluate:''}],
267
+      pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
268
+      append:false,
269
+      add_open:1,
270
+      muscle_show:true,
271
+      baocun_quxiao:false,
272
+      muscle_gsdayin:false,
273
+      cancel_num:0,
274
+      open_print:false
275
+    }
276
+  },
277
+  methods:{
278
+    handleCheckedCitiesChange(e){
279
+      for(let i=0;i<this.shuju.length;i++){
280
+        if(e.target.value == this.shuju[i].value ){
281
+          const arr= (this.shuju[i].title.split('级')[0])
282
+          if(e.target.checked == true){
283
+          this.Mus_Totalpoints = arr
284
+          }else{
285
+          this.Mus_Totalpoints =0
286
+          }
287
+          console.log('33333',arr);
288
+        }
289
+      }
177 290
     },
178
-    data(){
179
-      return{
180
-        patientID:0,
181
-        checkList:'',
182
-        checkList1:'',
183
-        checkList2:'',
184
-        value1:'',
185
-        value:'',
186
-        input:'',
187
-        Mus_Totalpoints:'',
188
-        options:[],
189
-        tableData:[],
190
-        shuju:[
191
-          {title:'0级',value:'肌肉完全不收缩'},
192
-          {title:'1级',value:'可见肌肉收缩但无肢体运动'},
193
-          {title:'2级',value:'肢体能在床上移动,但不能抬离床面,即不能对抗地心引力'},
194
-          {title:'3级',value:'肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力'},
195
-          {title:'4级',value:'能在一般的外加阻力下作运动,但力量较正常弱'},
196
-          {title:'5级',value:' 正常肌力'},
197
-        ]
291
+    muscle_add(){
292
+      if(this.add_open==1){
293
+        this.append=true
294
+        this.baocun_quxiao=true
295
+        this.muscle_show =false
296
+      }else{
297
+        this.append = false
198 298
       }
199 299
     },
200
-    methods:{
201
-      handleCheckedCitiesChange(e){
202
-        for(let i=0;i<this.shuju.length;i++){
203
-          if(e.target.value == this.shuju[i].value ){
204
-           const arr= (this.shuju[i].title.split('级')[0])
205
-           if(e.target.checked == true){
206
-            this.Mus_Totalpoints = arr
207
-           }else{
208
-            this.Mus_Totalpoints =0
209
-           }
210
-           console.log('33333',arr);
300
+    muscle_save(){
301
+      if(this.muscle_pinggu==null){
302
+        this.$message('请选择评估人')
303
+      }else{
304
+        this.muscle_show=true
305
+        this.baocun_quxiao=false
306
+        this.muscle_gsdayin=true
307
+        this.cancel_num=1
308
+
309
+        var musclelen=this.history_muscle
310
+        for(let i=0;i<musclelen.length;i++){
311
+          musclelen[i].mark = this.Mus_Totalpoints
312
+          for(let y=0;y<this.pinggr.length;y++){
313
+            if(this.muscle_pinggu==this.pinggr[y].id){
314
+              musclelen[i].evaluate= this.pinggr[y].label
315
+              return musclelen[i].evaluate
316
+            }
211 317
           }
212 318
         }
213 319
       }
320
+    },
321
+    muscle_dele(){
322
+      this.muscle_gsdayin=false
323
+      this.baocun_quxiao = false
324
+      this.append=false
325
+      this.muscle_pinggu=null
326
+    },
327
+    muscle_cancel(){
328
+      if(this.cancel_num==0){
329
+        this.baocun_quxiao=false
330
+        this.muscle_show=true
331
+        this.muscle_gsdayin=false
332
+        this.append=false
333
+      }else{
334
+        this.muscle_gsdayin=true
335
+        this.muscle_show=true
336
+        this.baocun_quxiao=false
337
+        this.append=true
338
+      }
339
+
340
+    },
341
+    muscle_editor(){
342
+      this.baocun_quxiao=true
343
+      this.muscle_gsdayin=false
344
+      this.muscle_show=false
345
+      this.cancel_num=1
346
+    },
347
+    print_pingfen(){
348
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 40px;} .tables tbody td{height: 40px;padding:0 10px} .tables{font-size: 16px;}}'
349
+      printJS({
350
+        printable: 'mingxi',
351
+        type: 'html',
352
+        style: style,
353
+        scanStyles: false
354
+      })
355
+      this.open_print=false
214 356
     }
357
+  }
215 358
 }
216 359
 </script>
217 360
 <style lang="scss" scoped>
218
-    .content_top{
219
-      display: flex;
220
-      justify-content: space-between; 
361
+.content_top{
362
+  display: flex;
363
+  justify-content: space-between;
364
+}
365
+.bottoms{
366
+    display: inline-block;
367
+    margin-left: 10px;
368
+    margin-top: 5px;
369
+}
370
+.shuoming p{
371
+  margin-top: 5px;
372
+  color: rgb(167, 165, 165);
373
+}
374
+.table{
375
+    border: 1px solid #DCDFE6;
376
+    border-collapse:collapse;
377
+    border-spacing: 0;
378
+    thead th{
379
+        background: #0077ff9f;
380
+        color: white;
381
+        text-align: center;
382
+        height: 40px;
221 383
     }
222
-    .bottoms{
223
-        display: inline-block;
224
-        margin-left: 10px;
225
-        margin-top: 5px;  
384
+    tbody td{
385
+        height: 40px;
226 386
     }
227
-    .shuoming p{
228
-      margin-top: 5px;
229
-      color: rgb(167, 165, 165);
387
+    .start{
388
+        text-align: center;
230 389
     }
231
-    .table{
232
-        border: 1px solid #DCDFE6;
233
-        border-collapse:collapse;
234
-        border-spacing: 0;
235
-        thead th{
236
-            background: #0077ff9f;
237
-            color: white;
238
-            text-align: center;
239
-            height: 40px;
240
-        }
241
-        tbody td{
242
-           height: 40px;
243
-        }
244
-        .start{
245
-            text-align: center;
246
-        }
247
-        .bing{
248
-            width: 150px;
249
-            text-align: center;
250
-        }
251
-        .bg_color{
252
-            background: rgb(243, 240, 240);
253
-        }
254
-        .jiange{
255
-            margin: 5px 0px 5px 20px;
256
-            color: black;
257
-        }
258
-        input{
259
-            -webkit-appearance: checkbox;
260
-        }
390
+    .bing{
391
+        width: 150px;
392
+        text-align: center;
393
+    }
394
+    .bg_color{
395
+        background: rgb(243, 240, 240);
396
+    }
397
+    .jiange{
398
+        margin: 5px 0px 5px 20px;
399
+        color: black;
400
+    }
401
+    input{
402
+        -webkit-appearance: checkbox;
261 403
     }
262
-</style>
404
+}
405
+#ctrl-xgtlpic-mask.readonly {
406
+  z-index: 2000;
407
+}
408
+#ctrl-xgtlpic-mask {
409
+    width: 85%;
410
+    height: 100%;
411
+    position: absolute;
412
+    left: 196px;
413
+    top: 131px;
414
+    opacity: 0;
415
+    z-index: -1;
416
+}
417
+.tables {
418
+  
419
+  thead th{
420
+    // background: #0077ff9f;
421
+    // color: white;
422
+    text-align: center;
423
+    height: 40px;
424
+  }
425
+  tbody td{
426
+    padding:0 10px;
427
+    height: 40px;
428
+  }
429
+  input{
430
+    -webkit-appearance: checkbox;
431
+  }
432
+}
433
+</style>

+ 153 - 28
src/xt_pages/user/evaluationtool/OHpressuresore.vue View File

@@ -14,12 +14,12 @@
14 14
                 <el-button type="danger"  @click="dele_OH" v-if="zsgy_open==1">删除</el-button>
15 15
                 <el-button type="success" @click="print_OH" v-if="zsgy_open==1">打印</el-button>
16 16
               </div>
17
-              
17
+
18 18
               <div style="flex:1" v-if="baocun_open==1">
19 19
                 <el-button type="primary" @click="save_OH" >保存</el-button>
20 20
                 <el-button  @click="cancel_OH" >取消</el-button>
21 21
               </div>
22
-             
22
+
23 23
             </div>
24 24
             <div>
25 25
               <div style="font-size: 20px;margin-bottom: 20px;">OH压疮评估表</div>
@@ -52,7 +52,7 @@
52 52
                                   </div>
53 53
                               </td>
54 54
                           </tr>
55
-                          
55
+
56 56
                           <tr class="bg_color">
57 57
                               <td class="start">浮肿</td>
58 58
                               <td>
@@ -63,7 +63,7 @@
63 63
                                   </div>
64 64
                               </td>
65 65
                           </tr>
66
-                          
66
+
67 67
                           <tr>
68 68
                               <td class="start">关节痉挛</td>
69 69
                                 <td>
@@ -77,14 +77,14 @@
77 77
                       </tbody>
78 78
                   </table>
79 79
               </div>
80
-              
80
+
81 81
               <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
82 82
                   <span style="position: relative; top: -55px;">护理措施:</span>
83 83
                   <div style="margin-top: 20px;display: inline-block; width: 85%;">
84 84
                       <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
85 85
                   </div>
86 86
               </div>
87
-              
87
+
88 88
               <div>
89 89
                 <div class="bottoms">
90 90
                   <span>总分:</span>
@@ -112,10 +112,10 @@
112 112
                       </el-option>
113 113
                   </el-select>
114 114
                 </div>
115
-              </div> 
115
+              </div>
116 116
               <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
117 117
             </div>
118
-            
118
+
119 119
             <hr style="width: 100%;margin-top: 20px; border: none;height: 1px;background: #DCDFE6;"/>
120 120
             <div class="shuoming">
121 121
                 <p>说明:</p>
@@ -160,11 +160,106 @@
160 160
           </div>
161 161
         </div>
162 162
       </div>
163
+      
164
+    <el-dialog
165
+      title="提示"
166
+      :visible.sync="open_print"
167
+      width="67%"
168
+      >
169
+      <div>
170
+        <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
171
+        <div id="mingxi" >
172
+          <div class="diedao_content" style="">
173
+            <div style="width:100%;margin-top: 20px;">
174
+              <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
175
+              <div style="margin-top: 20px;font-size: 16px;">
176
+                <span>患者姓名:</span>
177
+                <span>透析号:</span>
178
+                <span>评估日期:</span>
179
+                <span>评估护士:</span>
180
+                <span>总分:</span>
181
+                <span>打印时间:</span>
182
+              </div>
183
+              <table class="tables" border="1" style="width: 100%;border-collapse: collapse;">
184
+                <thead>
185
+                  <tr>
186
+                    <th style="width: 150px;padding: 5px;">项目</th>
187
+                    <th style="padding: 5px;">分值</th>
188
+                  </tr>
189
+                </thead>
190
+                <tbody>
191
+                    <tr class="">
192
+                      <td class="">自主体位变换</td>
193
+                      <td>
194
+                        <div class="">
195
+                          <span v-for="item in tiwei"  style="padding-right: 10px;">
196
+                            <label><input type="checkbox" name="ball" :value="item"/>&nbsp;{{ item }}</label>
197
+                          </span>
198
+                        </div>
199
+                      </td>
200
+                    </tr>
201
+                    <tr>
202
+                        <td >病理性骨突出</td>
203
+                        <td>
204
+                            <div >
205
+                                <span v-for="item in bingli"  style="padding-right: 10px;">
206
+                                    <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
207
+                                </span>
208
+                            </div>
209
+                        </td>
210
+                    </tr>
211
+
212
+                    <tr >
213
+                      <td >浮肿</td>
214
+                      <td>
215
+                          <div >
216
+                              <span v-for="item in edema" style="padding-right: 10px;">
217
+                                  <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
218
+                              </span>
219
+                          </div>
220
+                      </td>
221
+                    </tr>
222
+
223
+                    <tr>
224
+                      <td>关节痉挛</td>
225
+                      <td>
226
+                        <div>
227
+                          <span v-for="item in guanjie"  style="padding-right: 10px;">
228
+                            <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
229
+                          </span>
230
+                        </div>
231
+                      </td>
232
+                    </tr>
233
+                </tbody>
234
+              </table>
235
+              <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
236
+                  <span style="position: relative; top: -55px;">护理措施:</span>
237
+                  <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
238
+                      <!-- <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input> -->
239
+                  </div>
240
+              </div>
241
+              <hr style="width: 100%;margin-top: 20px; border: 1px solid black;"/>
242
+              <div class="shuoming">
243
+                  <p>说明:</p>
244
+                  <p>1、本表适用于急症科、血液净化科等非病房科室。</p>
245
+                  <p>2、总分:10分,分值越大风险越高 ;1-3分为低危;4-6分为中危;7-10分为高危。</p>
246
+                  <p>3、病理性骨突出指骶尾部(或受压部位骨突出处)两侧均高于皮肤
247
+                      <2cm为“无”;两侧均为2cm或一侧<2cm一侧2cm为“轻度/中度”;两侧均>2cm或一侧>2cm一侧2cm为“高度”。
248
+                  </p>
249
+                  <p>参考:北海道大学名授大浦武彦,堀田由浩. 利用OH 评估法进行压疮预防[M].东京:中央法规出版社,2005:11</p>
250
+              </div>
251
+            </div>
252
+          </div>
253
+        </div>
254
+      </div>
255
+      
256
+    </el-dialog>
163 257
     </div>
164 258
   </div>
165 259
 </template>
166 260
 <script>
167 261
 import PatientSidebar from '../components/PatientSidebar.vue'
262
+import print from 'print-js'
168 263
 export default {
169 264
   components:{
170 265
     PatientSidebar
@@ -196,7 +291,7 @@ export default {
196 291
       add_show:true,//控制新增显示
197 292
       zsgy_open:0,//控制编辑,删除,打印显示
198 293
       cancel_num:0,//取消的条件
199
-
294
+      open_print:false,
200 295
     }
201 296
   },
202 297
   methods:{
@@ -213,7 +308,7 @@ export default {
213 308
         this.Totalpoints=this.Totalpoints-jiequ
214 309
         return this.Totalpoints
215 310
       }
216
-      
311
+
217 312
     },
218 313
     // 新增
219 314
     OHadd(){
@@ -228,29 +323,34 @@ export default {
228 323
     },
229 324
     //保存
230 325
     save_OH(){
231
-      this.baocun_open=0
232
-      this.add_show=true
233
-      this.zsgy_open=1
234
-      this.cancel_num=1
326
+      if(this.appraiser==null){
327
+        this.$message('请选择评估人')
328
+      }else{
329
+        this.baocun_open=0
330
+        this.add_show=true
331
+        this.zsgy_open=1
332
+        this.cancel_num=1
235 333
 
236
-      const lenOH= this.history_OH
237
-      var nameoh=''
238
-      for(let i=0;i<lenOH.length;i++){
239
-        lenOH[i].mark= this.Totalpoints
240
-        for(let y=0;y<this.pinggr.length;y++){
241
-          if(this.appraiser==this.pinggr[y].id){
242
-            nameoh=this.pinggr[y].label
334
+        const lenOH= this.history_OH
335
+        var nameoh=''
336
+        for(let i=0;i<lenOH.length;i++){
337
+          lenOH[i].mark= this.Totalpoints
338
+          for(let y=0;y<this.pinggr.length;y++){
339
+            if(this.appraiser==this.pinggr[y].id){
340
+              nameoh=this.pinggr[y].label
341
+            }
243 342
           }
343
+          lenOH[i].evaluate= nameoh
244 344
         }
245
-        lenOH[i].evaluate= nameoh
345
+        return this.cancel_num
246 346
       }
247
-      return this.cancel_num
248 347
     },
249 348
     //编辑
250 349
     editor_OH(){
251 350
       this.add_show=false
252 351
       this.zsgy_open=0
253 352
       this.baocun_open=1
353
+      this.cancel_num=1
254 354
     },
255 355
     //删除
256 356
     dele_OH(){
@@ -259,7 +359,7 @@ export default {
259 359
     },
260 360
     //打印
261 361
     print_OH(){
262
-
362
+      this.open_print=true
263 363
     },
264 364
     //取消
265 365
     cancel_OH(){
@@ -273,7 +373,17 @@ export default {
273 373
         this.add_show=true
274 374
         this.append=false
275 375
       }
276
-      
376
+
377
+    },
378
+    print_pingfen(){
379
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 40px;} .tables tbody td{height: 40px;padding:0 10px}}'
380
+      printJS({
381
+        printable: 'mingxi',
382
+        type: 'html',
383
+        style: style,
384
+        scanStyles: false
385
+      })
386
+      this.open_print=false
277 387
     }
278 388
   }
279 389
 }
@@ -281,12 +391,12 @@ export default {
281 391
 <style lang="scss" scoped>
282 392
 .content_top{
283 393
   display: flex;
284
-  justify-content: space-between; 
394
+  justify-content: space-between;
285 395
 }
286 396
 .bottoms{
287 397
     display: inline-block;
288 398
     margin-left: 10px;
289
-    margin-top: 5px;  
399
+    margin-top: 5px;
290 400
 }
291 401
 .shuoming p{
292 402
   margin-top: 5px;
@@ -339,4 +449,19 @@ export default {
339 449
     opacity: 0;
340 450
     z-index: -1;
341 451
 }
342
-</style>
452
+.tables {
453
+  thead th{
454
+    // background: #0077ff9f;
455
+    // color: white;
456
+    text-align: center;
457
+    height: 40px;
458
+  }
459
+  tbody td{
460
+    padding:0 10px;
461
+    height: 40px;
462
+  }
463
+  input{
464
+    -webkit-appearance: checkbox;
465
+  }
466
+}
467
+</style>

+ 168 - 168
src/xt_pages/user/evaluationtool/dailyLife.vue View File

@@ -4,7 +4,7 @@
4 4
         <patient-sidebar :id="patientID" defaultActive="5-4"></patient-sidebar>
5 5
         <div>
6 6
             <div class="patient-app-container advice-container app-container">
7
-               
7
+
8 8
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
9 9
                     <div style="font-size: 20px;"> 日常生活能力评定(ADL评估)表</div>
10 10
                     <div>
@@ -13,183 +13,183 @@
13 13
                 </div>
14 14
 
15 15
                 <div>
16
-                    <table class="table" border="1" style="width: 100%;">
17
-                        <thead>
18
-                          <tr>
19
-                            <th style="width: 150px;">项目</th>
20
-                            <th colspan="4">分值</th>
21
-                          </tr>
22
-                        </thead>
23
-                        <tbody>
24
-                          <tr class="bg_color">
25
-                            <td class="start">进食</td>
26
-                            <td v-for="(item,index) in jinshi" :key="index">
27
-                                <div class="jiange">
28
-                                  <span>
29
-                                    <label><input type="checkbox" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
30
-                                        {{ item.label }}
31
-                                    </label>
32
-                                  </span>
33
-                                </div> 
34
-                            </td>                              
35
-                            <td>&nbsp;</td>
36
-                          </tr>          
37
-                          <tr>
38
-                            <td class="start">洗澡</td>
39
-                            <td v-for="(item,index) in xizao" :key="index">
16
+                  <table class="table" border="1" style="width: 100%;">
17
+                      <thead>
18
+                        <tr>
19
+                          <th style="width: 150px;">项目</th>
20
+                          <th colspan="4">分值</th>
21
+                        </tr>
22
+                      </thead>
23
+                      <tbody>
24
+                        <tr class="bg_color">
25
+                          <td class="start">进食</td>
26
+                          <td v-for="(item,index) in jinshi" :key="index">
40 27
                               <div class="jiange">
41 28
                                 <span>
42
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
29
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
43 30
                                       {{ item.label }}
44 31
                                   </label>
45 32
                                 </span>
46
-                              </div> 
47
-                            </td>
48
-                            <td></td>
49
-                            <td></td>
50
-                          </tr>                           
51
-                          <tr class="bg_color">
52
-                            <td class="start">修饰</td>
53
-                            <td v-for="(item,index) in xiushi" :key="index">
54
-                                <div class="jiange">
55
-                                  <span>
56
-                                    <label><input type="checkbox" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
57
-                                        {{item.label}}
58
-                                    </label>
59
-                                  </span>
60
-                                </div> 
61
-                            </td>                              
62
-                            <td></td>
63
-                            <td></td>
64
-                          </tr>                         
65
-                          <tr>
66
-                            <td class="start">穿衣</td>
67
-                            <td v-for="(item,index) in chuanyi" :key="index">
68
-                              <div class="jiange">
69
-                                <span>
70
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
71
-                                      {{item.label}}
72
-                                  </label>
73
-                                </span>
74
-                              </div> 
75
-                            </td>                               
76
-                            <td></td>
77
-                          </tr>
78
-                          <tr class="bg_color">
79
-                            <td class="start">控制大便</td>
80
-                            <td v-for="(item,index) in dabian" :key="index">
81
-                              <div class="jiange">
82
-                                <span>
83
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
84
-                                      {{item.label}}
85
-                                  </label>
86
-                                </span>
87
-                              </div> 
88
-                            </td> 
89
-                            <td></td>
90
-                          </tr>       
91
-                          <tr>
92
-                            <td class="start">控制小便</td>
93
-                            <td v-for="(item,index) in xioabian" :key="index">
94
-                              <div class="jiange">
95
-                                <span>
96
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="xioabianclick($event,item.value)"/>&nbsp;
97
-                                      {{item.label}}
98
-                                  </label>
99
-                                </span>
100
-                              </div> 
101
-                            </td>
102
-                            <td></td>
103
-                          </tr>                         
104
-                          <tr class="bg_color">
105
-                            <td class="start">如厕</td>
106
-                            <td v-for="(item,index) in ruce" :key="index">
107
-                              <div class="jiange">
108
-                                <span>
109
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
110
-                                      {{item.label}}
111
-                                  </label>
112
-                                </span>
113
-                              </div> 
114
-                            </td>
115
-                            <td></td>
116
-                          </tr>
117
-                          <tr>
118
-                            <td class="start">床椅转移</td>
119
-                            <td v-for="(item,index) in chuangyi" :key="index">
33
+                              </div>
34
+                          </td>
35
+                          <td>&nbsp;</td>
36
+                        </tr>
37
+                        <tr>
38
+                          <td class="start">洗澡</td>
39
+                          <td v-for="(item,index) in xizao" :key="index">
40
+                            <div class="jiange">
41
+                              <span>
42
+                                <label><input type="checkbox" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
43
+                                    {{ item.label }}
44
+                                </label>
45
+                              </span>
46
+                            </div>
47
+                          </td>
48
+                          <td></td>
49
+                          <td></td>
50
+                        </tr>
51
+                        <tr class="bg_color">
52
+                          <td class="start">修饰</td>
53
+                          <td v-for="(item,index) in xiushi" :key="index">
120 54
                               <div class="jiange">
121 55
                                 <span>
122
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
56
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
123 57
                                       {{item.label}}
124 58
                                   </label>
125 59
                                 </span>
126
-                              </div> 
127
-                            </td>
128
-                          </tr>
129
-                          <tr class="bg_color">
130
-                            <td class="start">平地行走</td>
131
-                            <td v-for="(item,index) in pingdi" :key="index">
132
-                              <div class="jiange">
133
-                                <span>
134
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
135
-                                      {{item.label}}
136
-                                  </label>
137
-                                </span>
138
-                              </div> 
139
-                            </td>                               
140
-                          </tr>
141
-                          <tr>
142
-                            <td class="start">上下楼梯</td>
143
-                            <td v-for="(item,index) in louti" :key="index">
144
-                              <div class="jiange">
145
-                                <span>
146
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
147
-                                      {{ item.label }}
148
-                                  </label>
149
-                                </span>
150
-                              </div> 
151
-                            </td>                               
152
-                            <td></td>
153
-                          </tr>
154
-                        </tbody>
155
-                    </table>
60
+                              </div>
61
+                          </td>
62
+                          <td></td>
63
+                          <td></td>
64
+                        </tr>
65
+                        <tr>
66
+                          <td class="start">穿衣</td>
67
+                          <td v-for="(item,index) in chuanyi" :key="index">
68
+                            <div class="jiange">
69
+                              <span>
70
+                                <label><input type="checkbox" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
71
+                                    {{item.label}}
72
+                                </label>
73
+                              </span>
74
+                            </div>
75
+                          </td>
76
+                          <td></td>
77
+                        </tr>
78
+                        <tr class="bg_color">
79
+                          <td class="start">控制大便</td>
80
+                          <td v-for="(item,index) in dabian" :key="index">
81
+                            <div class="jiange">
82
+                              <span>
83
+                                <label><input type="checkbox" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
84
+                                    {{item.label}}
85
+                                </label>
86
+                              </span>
87
+                            </div>
88
+                          </td>
89
+                          <td></td>
90
+                        </tr>
91
+                        <tr>
92
+                          <td class="start">控制小便</td>
93
+                          <td v-for="(item,index) in xioabian" :key="index">
94
+                            <div class="jiange">
95
+                              <span>
96
+                                <label><input type="checkbox" name="ball" :value="item.value" @click="xioabianclick($event,item.value)"/>&nbsp;
97
+                                    {{item.label}}
98
+                                </label>
99
+                              </span>
100
+                            </div>
101
+                          </td>
102
+                          <td></td>
103
+                        </tr>
104
+                        <tr class="bg_color">
105
+                          <td class="start">如厕</td>
106
+                          <td v-for="(item,index) in ruce" :key="index">
107
+                            <div class="jiange">
108
+                              <span>
109
+                                <label><input type="checkbox" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
110
+                                    {{item.label}}
111
+                                </label>
112
+                              </span>
113
+                            </div>
114
+                          </td>
115
+                          <td></td>
116
+                        </tr>
117
+                        <tr>
118
+                          <td class="start">床椅转移</td>
119
+                          <td v-for="(item,index) in chuangyi" :key="index">
120
+                            <div class="jiange">
121
+                              <span>
122
+                                <label><input type="checkbox" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
123
+                                    {{item.label}}
124
+                                </label>
125
+                              </span>
126
+                            </div>
127
+                          </td>
128
+                        </tr>
129
+                        <tr class="bg_color">
130
+                          <td class="start">平地行走</td>
131
+                          <td v-for="(item,index) in pingdi" :key="index">
132
+                            <div class="jiange">
133
+                              <span>
134
+                                <label><input type="checkbox" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
135
+                                    {{item.label}}
136
+                                </label>
137
+                              </span>
138
+                            </div>
139
+                          </td>
140
+                        </tr>
141
+                        <tr>
142
+                          <td class="start">上下楼梯</td>
143
+                          <td v-for="(item,index) in louti" :key="index">
144
+                            <div class="jiange">
145
+                              <span>
146
+                                <label><input type="checkbox" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
147
+                                    {{ item.label }}
148
+                                </label>
149
+                              </span>
150
+                            </div>
151
+                          </td>
152
+                          <td></td>
153
+                        </tr>
154
+                      </tbody>
155
+                  </table>
156 156
                 </div>
157 157
 
158 158
                 <div class="content_top" style="margin: 10px 0px;">
159
-                    <div>
160
-                        <div class="bottoms">
161
-                        <span>总分:</span>
162
-                        <el-input v-model="date_Totalpoints" style="width: 100px;"></el-input>分
163
-                        </div>
159
+                  <div>
160
+                      <div class="bottoms">
161
+                      <span>总分:</span>
162
+                      <el-input v-model="date_Totalpoints" style="width: 100px;"></el-input>分
163
+                      </div>
164 164
 
165
-                        <div class="bottoms">
166
-                            <span>评估日期:</span>
167
-                            <el-date-picker
168
-                                v-model="value1"
169
-                                type="date"
170
-                                placeholder="选择日期"
171
-                                :clearable="false"
172
-                                style="width: 150px;">
173
-                            </el-date-picker>
174
-                        </div>
165
+                      <div class="bottoms">
166
+                          <span>评估日期:</span>
167
+                          <el-date-picker
168
+                              v-model="value1"
169
+                              type="date"
170
+                              placeholder="选择日期"
171
+                              :clearable="false"
172
+                              style="width: 150px;">
173
+                          </el-date-picker>
174
+                      </div>
175 175
 
176
-                        <div class="bottoms">
177
-                            <span>评估人:</span>
178
-                            <el-select v-model="value" placeholder="请选择" >
179
-                                <el-option
180
-                                v-for="item in options"
181
-                                :key="item.value"
182
-                                :label="item.label"
183
-                                :value="item.value"
184
-                                style="width:150px;">
185
-                                </el-option>
186
-                            </el-select>
187
-                        </div>
188
-                        
189
-                    </div>
190
-                    <div style="margin:5px 10px;">
191
-                            <el-button type="primary">确认</el-button>
192
-                    </div>
176
+                      <div class="bottoms">
177
+                          <span>评估人:</span>
178
+                          <el-select v-model="value" placeholder="请选择" >
179
+                              <el-option
180
+                              v-for="item in options"
181
+                              :key="item.value"
182
+                              :label="item.label"
183
+                              :value="item.value"
184
+                              style="width:150px;">
185
+                              </el-option>
186
+                          </el-select>
187
+                      </div>
188
+
189
+                  </div>
190
+                  <div style="margin:5px 10px;">
191
+                          <el-button type="primary">确认</el-button>
192
+                  </div>
193 193
                 </div>
194 194
                 <hr style="border:none;height:1px;background:#DCDFE6;"/>
195 195
                 <div class="shuoming">
@@ -265,7 +265,7 @@ export default {
265 265
       louti:[{value:10,label:'可独立上下1层楼梯(可用辅助工具)(10分)'},
266 266
               {value:5,label:'需部分帮助(他人帮助)(5分)'},
267 267
               {value:0,label:'需极大帮助或完全依赖他人(0分)'}
268
-            ],      
268
+            ],
269 269
     }
270 270
   },
271 271
   methods:{
@@ -345,7 +345,7 @@ export default {
345 345
   },
346 346
   computed:{
347 347
     date_Totalpoints(){
348
-      return this.jinshi_val + this.xizao_val + this.xiushi_val + this.chuanyi_val + this.dabian_val + this.xiaobian_val + 
348
+      return this.jinshi_val + this.xizao_val + this.xiushi_val + this.chuanyi_val + this.dabian_val + this.xiaobian_val +
349 349
       this.ruce_val + this.chuangyi_val + this.paingdi_val + this.louti_val
350 350
     }
351 351
   }
@@ -354,7 +354,7 @@ export default {
354 354
 <style lang="scss" scoped>
355 355
     .content_top{
356 356
       display: flex;
357
-      justify-content: space-between; 
357
+      justify-content: space-between;
358 358
     }
359 359
     .table{
360 360
         border: 1px solid #DCDFE6;
@@ -390,10 +390,10 @@ export default {
390 390
     .bottoms{
391 391
         display: inline-block;
392 392
         margin-left: 10px;
393
-        margin-top: 5px; 
393
+        margin-top: 5px;
394 394
     }
395 395
     .shuoming p{
396 396
       margin-top: 5px;
397 397
       color: rgb(167, 165, 165);
398 398
     }
399
-</style>
399
+</style>

File diff suppressed because it is too large
+ 1426 - 702
src/xt_pages/user/evaluationtool/hemodialysis.vue


+ 3 - 3
src/xt_pages/user/evaluationtool/nourishmentAssessment.vue View File

@@ -180,7 +180,7 @@
180 180
                     <div>
181 181
                         <div class="bottoms">
182 182
                             <span>营养风险总评分:</span>
183
-                            <el-input v-model="nour_Totalpoints" style="width: 100px;"></el-input>分 (疾病相关评分+营养受损评分+年龄评分)
183
+                            <el-input v-model="nour_Totalpoints" style="width: 50px;"></el-input>分 (疾病相关评分+营养受损评分+年龄评分)
184 184
                         </div>
185 185
 
186 186
                         <div class="bottoms">
@@ -196,13 +196,13 @@
196 196
 
197 197
                         <div class="bottoms">
198 198
                             <span>评估人:</span>
199
-                            <el-select v-model="value" placeholder="请选择" >
199
+                            <el-select v-model="value" placeholder="请选择" style="width:120px;">
200 200
                                 <el-option
201 201
                                 v-for="item in options"
202 202
                                 :key="item.value"
203 203
                                 :label="item.label"
204 204
                                 :value="item.value"
205
-                                style="width:150px;">
205
+                                >
206 206
                                 </el-option>
207 207
                             </el-select>
208 208
                         </div>

+ 40 - 24
src/xt_pages/user/history/Children_history.vue View File

@@ -2,7 +2,7 @@
2 2
 <template>
3 3
   <div class="patient-container">
4 4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6 6
         <div style="width: 50%;">
7 7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8 8
           <div class="history">历史评分</div>
@@ -18,7 +18,7 @@
18 18
           ref="multipleTable"
19 19
           :data="tableData"
20 20
           border
21
-          
21
+
22 22
           tooltip-effect="dark"
23 23
           :header-cell-style="{
24 24
             background:'#4579c5',
@@ -65,7 +65,7 @@
65 65
       </div>
66 66
 
67 67
     </div>
68
-    
68
+
69 69
      <!-- 打印评分 -->
70 70
      <el-dialog
71 71
       title="提示"
@@ -74,9 +74,9 @@
74 74
       >
75 75
       <div>
76 76
         <div style="overflow: hidden;">
77
-          <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
77
+          <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
78 78
         </div>
79
-        
79
+
80 80
         <div id="pingfeng" >
81 81
           <div class="diedao_content" style="">
82 82
             <div style="width:100%;margin-top: 20px;">
@@ -116,10 +116,10 @@
116 116
       >
117 117
       <div>
118 118
         <div style="overflow: hidden;">
119
-          <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
119
+          <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
120 120
         </div>
121
-        
122
-        <div id="pingfeng" >
121
+
122
+        <div id="mingxi" >
123 123
           <div class="diedao_content" style="">
124 124
             <div style="width:100%;margin-top: 20px;">
125 125
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
@@ -167,7 +167,7 @@
167 167
                         <label><input name="ball" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
168 168
                       </div>
169 169
                     </td>
170
-                      
170
+
171 171
                   </tr>
172 172
                   <tr>
173 173
                     <td style="border-right: none;">
@@ -179,7 +179,7 @@
179 179
                         <label><input name="ball" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
180 180
                       </div>
181 181
                     </td>
182
-                      
182
+
183 183
                   </tr>
184 184
                   <tr class="bg_color">
185 185
                     <td class="start">环境因素</td>
@@ -252,7 +252,7 @@
252 252
                 <label><input name="ball" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
253 253
               </div>
254 254
             </td>
255
-              
255
+
256 256
           </tr>
257 257
           <tr>
258 258
             <td style="border-right: none;">
@@ -264,7 +264,7 @@
264 264
                 <label><input name="ball" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
265 265
               </div>
266 266
             </td>
267
-              
267
+
268 268
           </tr>
269 269
           <tr class="bg_color">
270 270
             <td class="start">环境因素</td>
@@ -329,7 +329,7 @@
329 329
           </td>
330 330
           </tr>
331 331
         </tbody>
332
-      </table>  
332
+      </table>
333 333
     </el-dialog>
334 334
   </div>
335 335
 </template>
@@ -363,14 +363,14 @@ export default{
363 363
               ],
364 364
       cognize:[{value:3,lable:'没有意识到不能自我行动'},
365 365
                 {value:2,lable:'忘记有行动的限制'},
366
-                {value:1,lable:'能自我辨识方位;昏迷、无反应'}], 
366
+                {value:1,lable:'能自我辨识方位;昏迷、无反应'}],
367 367
       environment:[{value:4,lable:'住院期间有跌倒坠床史:患儿移动或活动时需要使用辅助工具(拐杖、助行器、转运床、轮椅等);婴幼儿放置在无护栏的成人床'},
368 368
                 {value:3,lable:'近1个月有跌倒坠床史:婴幼儿放置在有护栏的成人床'},
369 369
                 {value:2,lable:'近3个月有跌倒坠床史:婴幼儿放置在有护栏的婴儿床'},
370
-                {value:1,lable:'>3个月有跌倒坠床史/无跌倒坠床史'}],  
370
+                {value:1,lable:'>3个月有跌倒坠床史/无跌倒坠床史'}],
371 371
       medicine:[{value:3,lable:'联合用药:镇静剂、安眠药、巴比妥类药、吩噻嗪类药、抗抑郁药、利尿药、降压药、强心剂、麻醉药、化疗药、散瞳剂'},
372 372
                 {value:2,lable:'以上其中一种药物'},
373
-                {value:1,lable:'其他药物/没有'}],  
373
+                {value:1,lable:'其他药物/没有'}],
374 374
       checked:'',
375 375
       checkList:[],
376 376
       text:'',
@@ -401,14 +401,30 @@ export default{
401 401
       this.editor_dialogVisible =true
402 402
     },
403 403
 
404
-    print_pingfen(){
404
+    print_pingfen(id){
405
+      this.dialogVisible=false
406
+      this.mingxi_dialogVisible=false
405 407
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
406
-      printJS({
407
-        printable: 'pingfeng',
408
-        type: 'html',
409
-        style: style,
410
-        scanStyles: false
411
-      })
408
+      if(id==1){
409
+
410
+        printJS({
411
+          printable: 'pingfeng',
412
+          type: 'html',
413
+          style: style,
414
+          scanStyles: false
415
+        })
416
+
417
+      }else if(id==2){
418
+        printJS({
419
+          printable: 'mingxi',
420
+          type: 'html',
421
+          style: style,
422
+          scanStyles: false
423
+        })
424
+
425
+      }
426
+
427
+
412 428
     },
413 429
 
414 430
     ageChange(e,val){
@@ -525,4 +541,4 @@ export default{
525 541
 input{
526 542
   -webkit-appearance: checkbox;
527 543
 }
528
-</style>
544
+</style>

+ 39 - 27
src/xt_pages/user/history/Pressure_history.vue View File

@@ -2,7 +2,7 @@
2 2
 <template>
3 3
   <div class="patient-container">
4 4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6 6
         <div style="width: 50%;">
7 7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8 8
           <div class="history">历史评分</div>
@@ -12,7 +12,7 @@
12 12
           <el-button type="primary" @click="open_mingxi">打印明细</el-button>
13 13
         </div>
14 14
       </div>
15
-      
15
+
16 16
       <div>
17 17
         <el-table
18 18
           ref="multipleTable"
@@ -53,7 +53,7 @@
53 53
             label="活动能力"
54 54
             width=""
55 55
             align="center">
56
-            
56
+
57 57
           </el-table-column>
58 58
           <el-table-column
59 59
             prop="yidong"
@@ -72,7 +72,7 @@
72 72
             label="摩擦力与剪切力"
73 73
             width=""
74 74
             align="center">
75
-            
75
+
76 76
           </el-table-column>
77 77
           <el-table-column
78 78
             prop="mark"
@@ -100,7 +100,7 @@
100 100
         </el-table>
101 101
       </div>
102 102
     </div>
103
-    
103
+
104 104
      <!-- 打印评分 -->
105 105
      <el-dialog
106 106
       title="提示"
@@ -109,9 +109,9 @@
109 109
       >
110 110
       <div>
111 111
         <div style="overflow: hidden;">
112
-          <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
112
+          <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
113 113
         </div>
114
-        
114
+
115 115
         <div id="pingfeng" >
116 116
           <div class="diedao_content" style="">
117 117
             <div style="width:100%;margin-top: 20px;">
@@ -162,10 +162,10 @@
162 162
       >
163 163
       <div>
164 164
         <div style="overflow: hidden;">
165
-          <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
165
+          <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
166 166
         </div>
167
-        
168
-        <div id="pingfeng" >
167
+
168
+        <div id="mingxi" >
169 169
           <div class="diedao_content" style="">
170 170
             <div style="width:100%;margin-top: 20px;">
171 171
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
@@ -316,7 +316,7 @@
316 316
               <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
317 317
               <div class="zhuangui">
318 318
                   <p style="display: inline-block; margin-right: 70px;">
319
-                    患者/家属签字: 
319
+                    患者/家属签字:
320 320
                     <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
321 321
                   </p>
322 322
                   <p style="display: inline-block;">
@@ -334,7 +334,7 @@
334 334
               </div>
335 335
               <div class="zhuangui">
336 336
                   <p style="display: inline-block; margin-right: 30px;">
337
-                      评估人签字: 
337
+                      评估人签字:
338 338
                       <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
339 339
                   </p>
340 340
                   <p style="display: inline-block;">
@@ -345,7 +345,7 @@
345 345
               <div class="content_top">
346 346
                 <div class="zhuangui">
347 347
                   <p style="display: inline-block; margin-right: 30px;">
348
-                      护士长签字: 
348
+                      护士长签字:
349 349
                       <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
350 350
                   </p>
351 351
                   <p style="display: inline-block;">
@@ -409,7 +409,7 @@
409 409
                     15~18分为低危;<br>
410 410
                     13~14分为中危;<br>
411 411
                     10~12分为高危;<br>
412
-                    ≤9分为极高危 
412
+                    ≤9分为极高危
413 413
                   </div>
414 414
                 </td>
415 415
                 <td rowspan="6" style="position: relative;vertical-align: top;">
@@ -547,7 +547,7 @@
547 547
                 <th>D</th>
548 548
                 <th>E</th>
549 549
                 <th>F</th>
550
-              </tr> 
550
+              </tr>
551 551
             </thead>
552 552
             <tbody>
553 553
               <tr>
@@ -623,7 +623,7 @@
623 623
             </div>
624 624
             <div class="zhuangui">
625 625
                 <p style="display: inline-block; margin-right: 30px;">
626
-                    评估人签字: 
626
+                    评估人签字:
627 627
                     <el-input v-model="input" style="width:120px;"></el-input>
628 628
                 </p>
629 629
                 <p style="display: inline-block;">
@@ -639,7 +639,7 @@
639 639
             <div class="content_top">
640 640
               <div class="zhuangui" style="flex:1">
641 641
                 <p style="display: inline-block; margin-right: 30px;">
642
-                    护士长签字: 
642
+                    护士长签字:
643 643
                     <el-select v-model="value" placeholder="请选择" style="width: 120px;">
644 644
                         <el-option
645 645
                         v-for="item in options"
@@ -711,14 +711,26 @@ export default{
711 711
     open_editor(row){
712 712
       this.editor_dialogVisible =true
713 713
     },
714
-    print_pingfen(){
714
+    print_pingfen(id){
715 715
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
716
-      printJS({
717
-        printable: 'pingfeng',
718
-        type: 'html',
719
-        style: style,
720
-        scanStyles: false
721
-      })
716
+      if(id==1){
717
+        printJS({
718
+          printable: 'pingfeng',
719
+          type: 'html',
720
+          style: style,
721
+          scanStyles: false
722
+        })
723
+        this.dialogVisible=false
724
+      }else if(id==2){
725
+        printJS({
726
+          printable: 'mingxi',
727
+          type: 'html',
728
+          style: style,
729
+          scanStyles: false
730
+        })
731
+        this.mingxi_dialogVisible=false
732
+      }
733
+
722 734
     },
723 735
   }
724 736
 }
@@ -752,7 +764,7 @@ input{
752 764
 }
753 765
 .content_top{
754 766
   display: flex;
755
-  justify-content: space-between; 
767
+  justify-content: space-between;
756 768
 }
757 769
 .table{
758 770
         border: 1px solid #DCDFE6;
@@ -768,7 +780,7 @@ input{
768 780
         tbody td{
769 781
            height: 40px;
770 782
            padding: 5px;
771
-           
783
+
772 784
         }
773 785
         .start{
774 786
           vertical-align: top;
@@ -798,4 +810,4 @@ input{
798 810
             -webkit-appearance: checkbox;
799 811
         }
800 812
     }
801
-</style>
813
+</style>

+ 264 - 36
src/xt_pages/user/history/RASS_history.vue View File

@@ -2,14 +2,14 @@
2 2
 <template>
3 3
   <div class="patient-container">
4 4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6 6
         <div style="width: 50%;">
7 7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8 8
           <div class="history">RASS评估记录</div>
9 9
         </div>
10 10
         <div style="margin-left: 30%;">
11
-          <el-button type="primary">打印评分</el-button>
12
-          <el-button type="primary">打印明细</el-button>
11
+          <el-button type="primary" @click="Rass_pingfen(1)">打印评分</el-button>
12
+          <el-button type="primary" @click="Rass_pingfen(2)">打印明细</el-button>
13 13
         </div>
14 14
       </div>
15 15
       <div>
@@ -17,7 +17,7 @@
17 17
           ref="multipleTable"
18 18
           :data="tableData"
19 19
           border
20
-          
20
+
21 21
           tooltip-effect="dark"
22 22
           :header-cell-style="{
23 23
             background:'#4579c5',
@@ -26,56 +26,53 @@
26 26
           style="width: 100%"
27 27
           @selection-change="handleSelectionChange">
28 28
           <el-table-column
29
-            fixed
30 29
             type="selection"
31 30
             width="55"
32 31
             align="center">
33 32
           </el-table-column>
34 33
           <el-table-column
34
+            prop="time"
35 35
             label="评估日期"
36
-            width="180"
36
+            width=""
37 37
             align="center">
38
-            <template slot-scope="scope">{{ scope.row.date }}</template>
39 38
           </el-table-column>
40 39
           <el-table-column
41
-            prop="name"
40
+            prop="mark"
42 41
             label="LOS评分"
43
-            width="300"
42
+            width=""
44 43
             align="center">
45 44
           </el-table-column>
46 45
           <el-table-column
47
-            prop="name"
46
+            prop="mark"
48 47
             label="RASS评分"
49
-            width="300"
48
+            width=""
50 49
             align="center">
51 50
           </el-table-column>
52 51
           <el-table-column
53
-            prop="name"
52
+            prop="evaluate"
54 53
             label="评估护士"
55
-            width="300"
54
+            width=""
56 55
             align="center">
57 56
           </el-table-column>
58 57
           <el-table-column
59
-            fixed="right"
60 58
             prop="address"
61 59
             label="操作"
62
-            width="180"
60
+            width=""
63 61
             align="center"
64 62
             show-overflow-tooltip>
65 63
             <template slot-scope="scope">
66
-              <el-button type="primary" icon="el-icon-edit-outline"></el-button>
67 64
               <el-button type="primary" icon="el-icon-delete"></el-button>
68 65
             </template>
69 66
           </el-table-column>
70 67
         </el-table>
71 68
       </div>
72 69
 
73
-      <div style="display: flex;margin: 50px 0 20px 0;"> 
70
+      <div style="display: flex;margin: 50px 0 20px 0;">
74 71
         <div style="width: 50%;">
75 72
           <div class="history">疼痛评估历史评分</div>
76 73
         </div>
77
-        <div style="margin-left: 30%;">
78
-          <el-button type="primary">打印评分</el-button>
74
+        <div style="margin-left: 40%;">
75
+          <el-button type="primary" @click="tengtong_open">打印评分</el-button>
79 76
         </div>
80 77
       </div>
81 78
       <div>
@@ -83,68 +80,238 @@
83 80
           ref="multipleTable"
84 81
           :data="tableData"
85 82
           border
86
-          
87 83
           tooltip-effect="dark"
88 84
           :header-cell-style="{
89 85
             background:'#4579c5',
90 86
             color:'#fff'
91 87
           }"
92 88
           style="width: 100%"
93
-          @selection-change="handleSelectionChange">
89
+          @selection-change="teng_SelectionChanges">
94 90
           <el-table-column
95
-            fixed
96 91
             type="selection"
97 92
             width="55"
98 93
             align="center">
99 94
           </el-table-column>
100 95
           <el-table-column
96
+            prop="time"
101 97
             label="评估日期"
102
-            width="180"
98
+            width=""
103 99
             align="center">
104
-            <template slot-scope="scope">{{ scope.row.date }}</template>
105 100
           </el-table-column>
106 101
           <el-table-column
107 102
             prop="name"
108 103
             label="疼痛工具"
109
-            width="350"
104
+            width=""
110 105
             align="center">
111 106
           </el-table-column>
112 107
           <el-table-column
113
-            prop="name"
108
+            prop="mark"
114 109
             label="分数"
115
-            width="130"
110
+            width=""
116 111
             align="center">
117 112
           </el-table-column>
118 113
           <el-table-column
119
-            prop="name"
114
+            prop="evaluate"
120 115
             label="评估护士"
121
-            width="300"
116
+            width=""
122 117
             align="center">
123 118
           </el-table-column>
124 119
           <el-table-column
125
-            fixed="right"
120
+
126 121
             prop="address"
127 122
             label="操作"
128
-            width="180"
123
+            width=""
129 124
             align="center"
130 125
             show-overflow-tooltip>
131 126
             <template slot-scope="scope">
132
-              <el-button type="primary" icon="el-icon-edit-outline"></el-button>
133
-              <el-button type="primary" icon="el-icon-delete"></el-button>
127
+              <el-button type="primary" icon="el-icon-delete" @click="teng_dele(scope.row)"></el-button>
134 128
             </template>
135 129
           </el-table-column>
136 130
         </el-table>
137 131
       </div>
138 132
     </div>
139
-      
133
+    <!-- RASS打印评分 -->
134
+    <el-dialog
135
+      title="提示"
136
+      :visible.sync="RASS_dialogVisible"
137
+      width="67%"
138
+      >
139
+      <div>
140
+        <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
141
+        <div id="pingfeng" >
142
+          <div class="diedao_content" style="">
143
+            <div style="width:100%">
144
+              <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
145
+              <div style="margin-top: 20px;font-size: 16px;">
146
+                <span>患者姓名:</span>
147
+                <span>透析号:</span>
148
+                <span>打印时间:</span>
149
+              </div>
150
+              <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
151
+                <tr>
152
+                  <td style="">评估日期</td>
153
+                  <td style="">LOS评分</td>
154
+                  <td style="">RASS评分</td>
155
+                  <td style="">评估护士</td>
156
+                </tr>
157
+
158
+                <tr v-for="(item,index) in multipleSelection" :key="index">
159
+                  <td>{{ item.time }}</td>
160
+                  <td></td>
161
+                  <td>{{ item.mark }}</td>
162
+                  <td>{{ item.evaluate }}</td>
163
+                </tr>
164
+              </table>
165
+            </div>
166
+          </div>
167
+        </div>
168
+      </div>
169
+    </el-dialog>
170
+     <!-- 疼痛打印评分 -->
171
+     <el-dialog
172
+      title="提示"
173
+      :visible.sync="teng_dialogVisible"
174
+      width="67%"
175
+      >
176
+      <div>
177
+        <el-button type="primary" @click="print_teng" style="float:right">打印</el-button>
178
+        <div id="pingfeng" >
179
+          <div class="diedao_content" style="">
180
+            <div style="width:100%">
181
+              <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
182
+              <div style="margin-top: 20px;font-size: 16px;">
183
+                <span>患者姓名:</span>
184
+                <span>透析号:</span>
185
+                <span>打印时间:</span>
186
+              </div>
187
+              <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
188
+                <tr>
189
+                  <td style="">评估日期</td>
190
+                  <td style="">疼痛工具</td>
191
+                  <td style="">分数</td>
192
+                  <td style="">评估护士</td>
193
+                </tr>
194
+
195
+                <tr v-for="(item,index) in tengtongvalue" :key="index">
196
+                  <td>{{ item.time }}</td>
197
+                  <td></td>
198
+                  <td>{{ item.mark }}</td>
199
+                  <td>{{ item.evaluate }}</td>
200
+                </tr>
201
+              </table>
202
+            </div>
203
+          </div>
204
+        </div>
205
+      </div>
206
+    </el-dialog>
207
+    <!-- RASS打印明细 -->
208
+    <el-dialog
209
+      title="提示"
210
+      :visible.sync="mingxi_dialogVisible"
211
+      width="67%"
212
+      >
213
+      <div>
214
+        <div style="">
215
+          <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
216
+        </div>
217
+
218
+        <div id="mingxi" >
219
+          <div class="diedao_content" style="page-break-after: always;" v-for="i in multipleSelection">
220
+            <div style="width:100%;margin-top: 20px;">
221
+              <div style="text-align: center;"><h1>血液透析中心RASS评估记录</h1></div>
222
+              <div style="margin-top: 20px;font-size: 16px;">
223
+                <span>患者姓名:</span>
224
+                <span>透析号:</span>
225
+                <span>评估日期:</span>
226
+                <span>评估护士:</span>
227
+                <span>总分:</span>
228
+              </div>
229
+                <table class="table" border="1" style="width: 100%;border-collapse: collapse;margin-bottom: 30px;">
230
+                  <thead>
231
+                    <tr>
232
+                      <th style="width: 180px; text-align: left;margin-left: 5px;">LOS评分</th>
233
+                    </tr>
234
+                  </thead>
235
+                  <tbody>
236
+                    <tr v-for="(item, index) in LOS" :key="index">
237
+                      <td style="padding: 5px;">
238
+                        <div class="rightjiange" style="position: relative;">
239
+                          <label style="">
240
+                            <input type="radio" name="ball" :value="item.value"  />
241
+                            <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
242
+                            <div style="display: inline-block;position: absolute;top:0px">
243
+                                {{ item.value }}
244
+                            </div>
245
+                          </label>
246
+                        </div>
247
+                      </td>
248
+                    </tr>
249
+                  </tbody>
250
+                </table>
251
+
252
+                <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
253
+                  <thead>
254
+                    <tr>
255
+                      <th colspan="2">RASS评分</th>
256
+                    </tr>
257
+                  </thead>
258
+                  <tbody>
259
+                    <tr class="bg_color" v-for="(item,index) in RASS" :key="index">
260
+                        <td class='bing' style="width: 50%;">
261
+                          <div class="" style="position: relative;">
262
+                            <label style="">
263
+                              <input type="radio" name="ball" :value="item.value"  />
264
+                              <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
265
+                              <div style="display: inline-block;width: 80%;">
266
+                                  {{ item.value }}
267
+                              </div>
268
+                            </label>
269
+                          </div>
270
+                        </td>
271
+                        <td class='bing'>
272
+                          <div class="rightjiange" style="position: relative;">
273
+                            <label style="">
274
+                              <input type="radio" name="ball" :value="item.value2"  />
275
+                              <div style="display: inline-block;">{{ item.title2 }}</div>&nbsp;
276
+                              <div style="display: inline-block;position: absolute;top:0px">
277
+                                  {{ item.value2 }}
278
+                              </div>
279
+                            </label>
280
+                          </div>
281
+                        </td>
282
+                    </tr>
283
+                  </tbody>
284
+                </table>
285
+              <div style="font-size: 16px;">打印时间:</div>
286
+            </div>
287
+          </div>
288
+        </div>
289
+      </div>
290
+    </el-dialog>
140 291
   </div>
141 292
 </template>
142 293
 <script>
294
+import print from 'print-js'
143 295
 export default{
144 296
   data(){
145 297
     return{
146 298
       tableData:[],
147
-      multipleSelection:''
299
+      multipleSelection:[],
300
+      tengtongvalue:[],
301
+      RASS_dialogVisible:false,
302
+      teng_dialogVisible:false,
303
+      mingxi_dialogVisible:false,
304
+      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
305
+      LOS:[{title:'0分', value:'清醒'},{title:'1分', value:'有些昏昏欲睡,但容易唤醒'},
306
+            {title:'2分', value:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态'},
307
+            {title:'3分', value:'无意识,无法唤醒'},{title:'S分', value:'正常意识,容易唤醒'}
308
+          ],
309
+      RASS:[{title:'-5分', value:'无法唤醒,对声音或物理刺激均无反应',title2:'0分', value2:'警觉的平静的'},
310
+            {title:'-4分', value:'深度镇静,对声音刺激无反应,但对物理刺激有运动或睁眼反应',title2:'+1分', value2:'不安的焦虑的:焦虑但无强烈的攻击行为'},
311
+            {title:'-3分', value:'中度镇静,对声音刺激有活动或睁眼动作(但无目光接触)',title2:'+2分', value2:'焦虑的激动的:经常性的无目的活动,人机对抗'},
312
+            {title:'-2分', value:'轻度镇静,对于声音刺激可以有简短的目光接触的觉醒,<10s',title2:'+3分', value2:'非常焦虑激动的:牵拉或拔除管道,容易焦虑不安'},
313
+            {title:'-1分', value:'困倦的昏昏欲睡的,不完全觉醒但能保持觉醒状态,对于声音刺激眼睛可以睁开或有目光接触≥10s',title2:'+4分', value2:'好斗的好战的:过于好斗,有暴力倾向,对医护人员有攻击行为'},
314
+          ],
148 315
     }
149 316
   },
150 317
   methods:{
@@ -153,6 +320,61 @@ export default{
153 320
     },
154 321
     handleSelectionChange(val) {
155 322
       this.multipleSelection = val;
323
+    },
324
+    teng_SelectionChanges(val){
325
+      this.tengtongvalue = val
326
+    },
327
+    Rass_pingfen(ids){
328
+      if(this.multipleSelection.length==0){
329
+        this.$message('请选择需要打印的记录')
330
+      }else{
331
+        if(ids==1){
332
+          this.RASS_dialogVisible=true
333
+        }else{
334
+          this.mingxi_dialogVisible=true
335
+        }
336
+      }
337
+    },
338
+    tengtong_open(){
339
+      if(this.tengtongvalue.length==0){
340
+        this.$message('请选择需要打印的记录')
341
+      }else{
342
+        this.teng_dialogVisible = true
343
+      }
344
+    },
345
+    print_pingfen(ids){
346
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
347
+      if(ids==1){
348
+        printJS({
349
+          printable: 'pingfeng',
350
+          type: 'html',
351
+          style: style,
352
+          scanStyles: false
353
+        })
354
+        this.dialogVisible=false
355
+      }else if(ids==2){
356
+        printJS({
357
+          printable: 'mingxi',
358
+          type: 'html',
359
+          style: style,
360
+          scanStyles: false
361
+        })
362
+        this.mingxi_dialogVisible=false
363
+      }
364
+
365
+    },
366
+    print_teng(){
367
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
368
+      printJS({
369
+        printable: 'pingfeng',
370
+        type: 'html',
371
+        style: style,
372
+        scanStyles: false
373
+      })
374
+      this.teng_dialogVisible=false
375
+    },
376
+    teng_dele(row){
377
+      this.tableData.splice(row, 1);
156 378
     }
157 379
   }
158 380
 }
@@ -171,4 +393,10 @@ export default{
171 393
   color: gray;
172 394
   font-size: 18px;
173 395
 }
174
-</style>
396
+.table tr td{
397
+  padding:5px,
398
+}
399
+input{
400
+  -webkit-appearance: checkbox;
401
+}
402
+</style>

+ 471 - 41
src/xt_pages/user/history/daoguan_history.vue View File

@@ -2,14 +2,14 @@
2 2
 <template>
3 3
   <div class="patient-container">
4 4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6 6
         <div style="width: 50%;">
7 7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8 8
           <div class="history">历史评分</div>
9 9
         </div>
10 10
         <div style="margin-left: 30%;">
11
-          <el-button type="primary" @click="dialogVisible=true">打印评分</el-button>
12
-          <el-button type="primary">打印明细</el-button>
11
+          <el-button type="primary" @click="open_pingfen">打印评分</el-button>
12
+          <el-button type="primary" @click="open_mingxi">打印明细</el-button>
13 13
         </div>
14 14
       </div>
15 15
       <div>
@@ -17,7 +17,7 @@
17 17
           ref="multipleTable"
18 18
           :data="tableData"
19 19
           border
20
-          
20
+
21 21
           tooltip-effect="dark"
22 22
           :header-cell-style="{
23 23
             background:'#4579c5',
@@ -26,16 +26,15 @@
26 26
           style="width: 100%"
27 27
           @selection-change="handleSelectionChange">
28 28
           <el-table-column
29
-            fixed
30 29
             type="selection"
31 30
             width="55"
32 31
             align="center">
33 32
           </el-table-column>
34 33
           <el-table-column
34
+            prop="time"
35 35
             label="评估日期"
36
-            width="180"
36
+            width="120"
37 37
             align="center">
38
-            <template slot-scope="scope">{{ scope.row.date }}</template>
39 38
           </el-table-column>
40 39
           <el-table-column
41 40
             prop="name"
@@ -58,74 +57,380 @@
58 57
           <el-table-column
59 58
             prop="name"
60 59
             label="护理措施"
61
-            width="500"
60
+            width=""
62 61
             align="center">
63 62
           </el-table-column>
64 63
           <el-table-column
65
-            prop="name"
64
+            prop="mark"
66 65
             label="总评分"
67
-            width="130"
66
+            width="80"
68 67
             align="center">
69 68
           </el-table-column>
70 69
           <el-table-column
71
-            prop="name"
70
+            prop="evaluate"
72 71
             label="责任护士"
73
-            width="160"
72
+            width="100"
74 73
             align="center">
75 74
           </el-table-column>
76 75
           <el-table-column
77
-            fixed="right"
78
-            prop="address"
79 76
             label="操作"
80
-            width="180"
77
+            width="155"
81 78
             align="center"
82 79
             show-overflow-tooltip>
83 80
             <template slot-scope="scope">
84
-              <el-button type="primary" icon="el-icon-edit-outline"></el-button>
81
+              <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
85 82
               <el-button type="primary" icon="el-icon-delete"></el-button>
86 83
             </template>
87 84
           </el-table-column>
88 85
         </el-table>
89 86
       </div>
90 87
     </div>
91
-    
88
+
92 89
     <!-- 打印评分 -->
93 90
     <el-dialog
94 91
       title="提示"
95 92
       :visible.sync="dialogVisible"
96 93
       width="67%"
97
-      :before-close="handleClose">
94
+      >
98 95
       <div>
99
-        <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
96
+        <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
100 97
         <div id="pingfeng" >
101 98
           <div class="diedao_content" style="">
102 99
             <div style="width:100%">
100
+              <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
101
+              <div style="margin-top: 20px;font-size: 16px;">
102
+                <span>患者姓名:</span>
103
+                <span>透析号:</span>
104
+                <span>打印时间:</span>
105
+              </div>
103 106
               <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
104 107
                 <tr>
105
-                  <td style="width:180px">评估日期</td>
106
-                  <td style="width:100px">分数</td>
107
-                  <td style="">护理措施</td>
108
-                  <td style="width:150px">评估护士</td>
108
+                  <td style="width:100px">评估日期</td>
109
+                  <td style="width:100px">脱管后风险程度</td>
110
+                  <td style="width:100px">患者意识程度</td>
111
+                  <td style="width:100px">患者配合程度</td>
112
+                  <td style="width:400px">护理措施</td>
113
+                  <td style="width:100px">总评分</td>
114
+                  <td style="width:100px">责任护士</td>
109 115
                 </tr>
110
-                <tr>
111
-                  <td>2023-09-26</td>
112
-                  <td>15</td>
113
-                  <td>无</td>
114
-                  <td>何韦明</td>
116
+
117
+                <tr v-for="(item,index) in multipleSelection" :key="index">
118
+                  <td>{{ item.time }}</td>
119
+                  <td></td>
120
+                  <td></td>
121
+                  <td></td>
122
+                  <td></td>
123
+                  <td>{{ item.mark }}</td>
124
+                  <td>{{ item.evaluate }}</td>
115 125
                 </tr>
116 126
               </table>
117 127
             </div>
118 128
           </div>
119 129
         </div>
120 130
       </div>
121
-      
131
+
122 132
       <span slot="footer" class="dialog-footer">
123 133
         <el-button @click="dialogVisible = false">取 消</el-button>
124 134
         <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
125 135
       </span>
126 136
     </el-dialog>
137
+     <!-- 打印明细 -->
138
+     <el-dialog
139
+      title="提示"
140
+      :visible.sync="mingxi_dialogVisible"
141
+      width="67%"
142
+      >
143
+      <div>
144
+        <div style="">
145
+          <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
146
+        </div>
147
+
148
+        <div id="mingxi" >
149
+          <div class="diedao_content" style="page-break-after: always;" v-for="i in multipleSelection">
150
+            <div style="width:100%;margin-top: 20px;">
151
+              <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
152
+              <div style="margin-top: 20px;font-size: 16px;">
153
+                <span>患者姓名:</span>
154
+                <span>透析号:</span>
155
+                <span>评估日期:</span>
156
+                <span>评估护士:</span>
157
+                <span>总分:</span>
158
+              </div>
159
+              <table  border="1" style="width: 100%; border-collapse:collapse ;">
160
+                <thead>
161
+                  <tr>
162
+                      <th style="width: 15%;">项目</th>
163
+                      <th style="width: 50%;">分值</th>
164
+                      <th>护理措施</th>
165
+                  </tr>
166
+                </thead>
167
+                <tbody>
168
+                  <tr>
169
+                    <td class="start">A.脱管后风险程度</td>
170
+                    <td>
171
+                      <div class="jiange">
172
+                        <el-radio-group >
173
+                          <el-radio v-for="(item,index ) in tuoguan" :label="item" :key="index" style="">{{ item }}</el-radio>
174
+                        </el-radio-group>
175
+                      </div>
176
+                    </td>
177
+                    <td rowspan="3">
178
+                      <div style="vertical-align: top; color: black; padding: 5px;">
179
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;1.管道维护,导管脱落严重后果及预防措施的健康教育;</label> <br/>
180
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;2.床边悬挂警示标识(>9分悬挂);</label><br/>
181
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;3.正确妥善固定;</label><br/>
182
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;</label><br/>
183
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;5.加强巡视,及时发现满足患者需要;</label><br/>
184
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;6.严格交接班,各班重点交接,观察外露长度,必要时记录;</label><br/>
185
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;</label><br/>
186
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;</label><br/>
187
+                        <label><input name="ball" type="checkbox" value="football" />&nbsp;9.对于气管插管清醒患者,进行心理疏导和安全教育。</label>
188
+                      </div>
189
+                    </td>
190
+                  </tr>
191
+                  <tr>
192
+                    <td class="start">B.患者意识程度</td>
193
+                    <td>
194
+                      <div class="jiange">
195
+                          <el-radio-group >
196
+                              <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio>
197
+                          </el-radio-group>
198
+                      </div>
199
+                    </td>
200
+                  </tr>
201
+                  <tr>
202
+                    <td class="start">C.患者配合程度</td>
203
+                    <td>
204
+                      <div  class="jiange">
205
+                          <el-radio-group >
206
+                            <el-radio v-for="(item,index ) in peihe" :label="item" :key="index">{{ item }}</el-radio>
207
+                          </el-radio-group>
208
+                      </div>
209
+                    </td>
210
+                  </tr>
211
+                </tbody>
212
+              </table>
213
+              <div style="margin-top: 20px;">
214
+                    <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
215
+                    <div class="zhuangui">
216
+                        <p style="display: inline-block; margin-right: 70px;">患者/家属签字: <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span></p>
217
+                        <p style="display: inline-block;">
218
+                            日期:
219
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
220
+                        </p>
221
+                    </div>
222
+                    <div class="zhuangui">
223
+                        <span>转归:</span>
224
+                        <el-radio  label="1">脱落</el-radio>
225
+                        <el-radio  label="2">未脱落</el-radio>
226
+                    </div>
227
+                    <div class="zhuangui">
228
+                        <p style="display: inline-block; margin-right: 30px;">
229
+                            评估人签字:
230
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
231
+                        </p>
232
+                        <p style="display: inline-block;">
233
+                            日期:
234
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
235
+                        </p>
236
+                    </div>
237
+                    <div class="zhuangui">
238
+                        <p style="display: inline-block; margin-right: 30px;">
239
+                            护士长签字:
240
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
241
+                        </p>
242
+                        <p style="display: inline-block;">
243
+                            日期:
244
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
245
+                        </p>
246
+                    </div>
247
+              </div>
248
+              <hr style="margin: 10px 0px;border:1px solid rgb(135, 133, 133);"/><!--水平线-->
249
+              <div class="shuoming">
250
+                  <p>说明:</p>
251
+                  <p>1.<5分为正常,5~8分为危险,≥9分为高度危险。</p>
252
+                  <p>2.导管脱落危险因素≥5分,需填写该表。</p>
253
+                  <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
254
+              </div>
255
+              <div style="font-size: 16px;">打印时间:</div>
256
+            </div>
257
+          </div>
258
+        </div>
259
+      </div>
260
+    </el-dialog>
261
+     <!-- 编辑 -->
262
+     <el-dialog
263
+      title="提示"
264
+      :visible.sync="editor_dialogVisible"
265
+      width="67%"
266
+      >
267
+      <div>
268
+        <table class="tables" border="1" style="width: 100%;border-collapse: collapse;">
269
+          <thead>
270
+            <tr>
271
+                <th style="width: 15%;">项目</th>
272
+                <th style="width: 50%;">分值</th>
273
+                <th>护理措施</th>
274
+            </tr>
275
+          </thead>
276
+          <tbody>
277
+            <tr>
278
+              <td class="start">A.脱管后风险程度</td>
279
+              <td>
280
+                <div class="jiange">
281
+                  <el-radio-group v-model="radio" @change="handleCheckedCitiesChange">
282
+                    <el-radio v-for="(item,index ) in tuoguan" :label="item" :key="index" style="">{{ item }}</el-radio>
283
+                  </el-radio-group>
284
+                </div>
285
+              </td>
286
+              <td rowspan="3">
287
+                <div style="vertical-align: top; color: black; padding: 5px;">
288
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;1.管道维护,导管脱落严重后果及预防措施的健康教育;</label> <br/>
289
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;2.床边悬挂警示标识(>9分悬挂);</label><br/>
290
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;3.正确妥善固定;</label><br/>
291
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;</label><br/>
292
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;5.加强巡视,及时发现满足患者需要;</label><br/>
293
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;6.严格交接班,各班重点交接,观察外露长度,必要时记录;</label><br/>
294
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;</label><br/>
295
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;</label><br/>
296
+                  <label><input name="ball" type="checkbox" value="football" />&nbsp;9.对于气管插管清醒患者,进行心理疏导和安全教育。</label>
297
+                </div>
298
+              </td>
299
+            </tr>
300
+            <tr>
301
+              <td class="start">B.患者意识程度</td>
302
+              <td>
303
+                <div class="jiange">
304
+                    <el-radio-group v-model="radio1"  @change="handleCheckedCitiesChange">
305
+                        <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio>
306
+                    </el-radio-group>
307
+                </div>
308
+              </td>
309
+            </tr>
310
+            <tr>
311
+              <td class="start">C.患者配合程度</td>
312
+              <td>
313
+                <div  class="jiange">
314
+                    <el-radio-group v-model="radio2" @change="handleCheckedCitiesChange">
315
+                      <el-radio v-for="(item,index ) in peihe" :label="item" :key="index">{{ item }}</el-radio>
316
+                    </el-radio-group>
317
+                </div>
318
+              </td>
319
+            </tr>
320
+          </tbody>
321
+        </table>
322
+      </div>
323
+
324
+      <div class="content_top" style="margin: 10px 0px;">
325
+        <div>
326
+            <div class="bottoms">
327
+            <span>总分:</span>
328
+            <el-input v-model="duct_Totalpoints" style="width: 100px;"></el-input>分
329
+            </div>
330
+
331
+            <div class="bottoms">
332
+                <span>评估日期:</span>
333
+                <el-date-picker
334
+                    v-model="value1"
335
+                    type="date"
336
+                    placeholder="选择日期"
337
+                    :clearable="false"
338
+                    style="width: 150px;">
339
+                </el-date-picker>
340
+            </div>
341
+
342
+            <div class="bottoms">
343
+                <span>评估人:</span>
344
+                <el-select v-model="value" placeholder="请选择" >
345
+                    <el-option
346
+                    v-for="item in options"
347
+                    :key="item.value"
348
+                    :label="item.label"
349
+                    :value="item.value"
350
+                    style="width:150px;">
351
+                    </el-option>
352
+                </el-select>
353
+            </div>
354
+
355
+        </div>
356
+        <div style="margin:5px 10px;">
357
+          <el-button type="primary">确认</el-button>
358
+        </div>
359
+      </div>
360
+      <hr style="border:none;height:1px;background:#DCDFE6;"/><!--水平线-->
361
+      <div style="margin-top: 20px;">
362
+          <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
363
+          <div class="zhuangui">
364
+              <p style="display: inline-block; margin-right: 70px;">患者/家属签字: <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span></p>
365
+              <p style="display: inline-block;">
366
+                  日期:
367
+                  <el-date-picker
368
+                      v-model="value1"
369
+                      type="date"
370
+                      placeholder="选择日期"
371
+                      style="width: 150px;">
372
+                  </el-date-picker>
373
+              </p>
374
+          </div>
375
+          <div class="zhuangui">
376
+              <span>转归:</span>
377
+              <el-radio v-model="radio" label="1">脱落</el-radio>
378
+              <el-radio v-model="radio" label="2">未脱落</el-radio>
379
+          </div>
380
+          <div class="zhuangui">
381
+              <p style="display: inline-block; margin-right: 30px;">
382
+                  评估人签字:
383
+                  <el-select v-model="value" placeholder="请选择" style="width: 120px;">
384
+                      <el-option
385
+                      v-for="item in options"
386
+                      :key="item.value"
387
+                      :label="item.label"
388
+                      :value="item.value">
389
+                      </el-option>
390
+                  </el-select>
391
+              </p>
392
+              <p style="display: inline-block;">
393
+                  日期:
394
+                  <el-date-picker
395
+                      v-model="value1"
396
+                      type="date"
397
+                      placeholder="选择日期"
398
+                      style="width: 150px;">
399
+                  </el-date-picker>
400
+              </p>
401
+          </div>
402
+          <div class="zhuangui">
403
+              <p style="display: inline-block; margin-right: 30px;">
404
+                  护士长签字:
405
+                  <el-select v-model="value" placeholder="请选择" style="width: 120px;">
406
+                      <el-option
407
+                      v-for="item in options"
408
+                      :key="item.value"
409
+                      :label="item.label"
410
+                      :value="item.value">
411
+                      </el-option>
412
+                  </el-select>
413
+              </p>
414
+              <p style="display: inline-block;">
415
+                  日期:
416
+                  <el-date-picker
417
+                      v-model="value1"
418
+                      type="date"
419
+                      placeholder="选择日期"
420
+                      style="width: 150px;">
421
+                  </el-date-picker>
422
+              </p>
423
+          </div>
424
+      </div>
425
+      <hr style="margin: 10px 0px;border:none;height:1px;background:#DCDFE6;"/><!--水平线-->
426
+      <div class="shuoming">
427
+          <p>说明:</p>
428
+          <p>1.<5分为正常,5~8分为危险,≥9分为高度危险。</p>
429
+          <p>2.导管脱落危险因素≥5分,需填写该表。</p>
430
+          <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
431
+      </div>
432
+    </el-dialog>
127 433
 
128
-    
129 434
   </div>
130 435
 </template>
131 436
 <script>
@@ -134,8 +439,26 @@ export default{
134 439
   data(){
135 440
     return{
136 441
       tableData:[],
137
-      multipleSelection:'',
442
+      multipleSelection:[],
138 443
       dialogVisible:false,
444
+      mingxi_dialogVisible:false,
445
+      editor_dialogVisible:false,
446
+      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
447
+      tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
448
+      yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
449
+      peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)'],
450
+
451
+      value1:'',
452
+      radio:'',
453
+      radio1:'',
454
+      radio2:'',
455
+      radio_val:null,
456
+      radio1_val:null,
457
+      radio2_val:null,
458
+      // duct_Totalpoints:0,
459
+      options:[],
460
+      input:'',
461
+      value:'',
139 462
     }
140 463
   },
141 464
   methods:{
@@ -145,14 +468,67 @@ export default{
145 468
     handleSelectionChange(val) {
146 469
       this.multipleSelection = val;
147 470
     },
148
-    print_pingfen(){
471
+    open_pingfen(){
472
+      if(this.multipleSelection.length==0){
473
+        this.$message('请选择需要打印的记录')
474
+      }else{
475
+        this.dialogVisible=true
476
+      }
477
+
478
+    },
479
+    open_mingxi(){
480
+      if(this.multipleSelection.length==0){
481
+        this.$message('请选择需要打印的记录')
482
+      }else{
483
+        this.mingxi_dialogVisible=true
484
+      }
485
+
486
+    },
487
+    print_pingfen(ids){
149 488
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
150
-      printJS({
151
-        printable: 'pingfeng',
152
-        type: 'html',
153
-        style: style,
154
-        scanStyles: false
155
-      })
489
+      if(ids==1){
490
+        printJS({
491
+          printable: 'pingfeng',
492
+          type: 'html',
493
+          style: style,
494
+          scanStyles: false
495
+        })
496
+        this.dialogVisible=false
497
+      }else if(ids==2){
498
+        printJS({
499
+          printable: 'mingxi',
500
+          type: 'html',
501
+          style: style,
502
+          scanStyles: false
503
+        })
504
+        this.mingxi_dialogVisible=false
505
+      }
506
+
507
+    },
508
+    open_xiugai(row){
509
+      this.editor_dialogVisible=true
510
+    },
511
+
512
+    handleCheckedCitiesChange(e){
513
+      const ball=e
514
+      const jiequ =(ball.split('(')[1].split('分')[0]) * 1
515
+      if(e == this.radio){
516
+        this.radio_val = jiequ
517
+      }
518
+      if(e == this.radio1){
519
+        this.radio1_val = jiequ
520
+      }
521
+      if(e == this.radio2){
522
+        this.radio2_val = jiequ
523
+      }
524
+    },
525
+    daoguanhistory(){
526
+      this.$router.push({path: '/patients/daoguan_history'})
527
+    }
528
+  },
529
+  computed:{
530
+    duct_Totalpoints(){
531
+      return this.radio_val + this.radio1_val + this.radio2_val
156 532
     }
157 533
   }
158 534
 }
@@ -173,11 +549,65 @@ export default{
173 549
 }
174 550
 .diedao_content{
175 551
   background-color: white;
176
-  width:960px;  
177
-  margin:0 auto; 
552
+  width:960px;
553
+  margin:0 auto;
178 554
   padding: 0 0 20px 0;
179 555
 }
180 556
 .table tr td{
181 557
   padding:5px,
182 558
 }
183
-</style>
559
+.tables{
560
+    border: 1px solid #DCDFE6;
561
+    border-collapse:collapse;
562
+    border-spacing: 0;
563
+    thead th{
564
+        background: #0077ff9f;
565
+        color: white;
566
+        text-align: center;
567
+        height: 40px;
568
+    }
569
+    tbody td{
570
+        height: 40px;
571
+        .el-radio {
572
+          color: #101010;
573
+          cursor: pointer;
574
+          margin-right: 30px;
575
+          font-size: 15px !important;
576
+        }
577
+    }
578
+    .start{
579
+        text-align: center;
580
+    }
581
+    .bing{
582
+        width: 150px;
583
+        text-align: center;
584
+    }
585
+    .bg_color{
586
+        background: rgb(243, 240, 240);
587
+    }
588
+    .jiange{
589
+        // margin-left: 20px;
590
+        padding-left: 10px;
591
+        color: black;
592
+    }
593
+    input{
594
+        -webkit-appearance: checkbox;
595
+    }
596
+}
597
+.shuoming p{
598
+  margin-top: 5px;
599
+  color: rgb(167, 165, 165);
600
+}
601
+.zhuangui{
602
+  margin-top: 10px;
603
+}
604
+.content_top{
605
+  display: flex;
606
+  justify-content: space-between;
607
+}
608
+.bottoms{
609
+  display: inline-block;
610
+  margin-left: 10px;
611
+  margin-top: 5px;
612
+}
613
+</style>

+ 659 - 17
src/xt_pages/user/history/date_history.vue View File

@@ -2,17 +2,17 @@
2 2
 <template>
3 3
   <div class="patient-container">
4 4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6 6
         <div style="width: 50%;">
7 7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8 8
           <div class="history">历史评分</div>
9 9
         </div>
10 10
         <div style="margin-left: 30%;">
11
-          <el-button type="primary">打印评分</el-button>
12
-          <el-button type="primary">打印明细</el-button>
11
+          <el-button type="primary" @click="open_pingfeng">打印评分</el-button>
12
+          <el-button type="primary" @click="open_mingxi">打印明细</el-button>
13 13
         </div>
14 14
       </div>
15
-      
15
+
16 16
       <div>
17 17
         <el-table
18 18
           ref="multipleTable"
@@ -26,15 +26,17 @@
26 26
           style="width: 100%"
27 27
           @selection-change="handleSelectionChange">
28 28
           <el-table-column
29
+
29 30
             type="selection"
30 31
             width="55"
31 32
             align="center">
32 33
           </el-table-column>
33 34
           <el-table-column
35
+            prop="time"
34 36
             label="评估日期"
35
-            width=""
37
+            width="90"
36 38
             align="center">
37
-            
39
+
38 40
           </el-table-column>
39 41
           <el-table-column
40 42
             prop="name"
@@ -52,7 +54,7 @@
52 54
             label="修饰"
53 55
             width=""
54 56
             align="center">
55
-            
57
+
56 58
           </el-table-column>
57 59
           <el-table-column
58 60
             prop="name"
@@ -70,7 +72,7 @@
70 72
             label="控制小便"
71 73
             width=""
72 74
             align="center">
73
-            
75
+
74 76
           </el-table-column>
75 77
           <el-table-column
76 78
             prop="name"
@@ -94,43 +96,522 @@
94 96
             label="上下楼梯"
95 97
             width=""
96 98
             align="center">
97
-            
99
+
98 100
           </el-table-column>
99 101
           <el-table-column
100
-            prop="name"
102
+            prop="mark"
101 103
             label="总分"
102 104
             width=""
103 105
             align="center">
104 106
           </el-table-column>
105 107
           <el-table-column
106
-            prop="name"
108
+            prop="evaluate"
107 109
             label="评估人"
108 110
             width=""
109 111
             align="center">
110 112
           </el-table-column>
111 113
           <el-table-column
114
+
112 115
             prop="address"
113 116
             label="操作"
114
-            width=""
117
+            width="150"
115 118
             align="center"
116
-            show-overflow-tooltip>
119
+            >
117 120
             <template slot-scope="scope">
118
-              <el-button type="primary" icon="el-icon-edit-outline"></el-button>
121
+              <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
119 122
               <el-button type="primary" icon="el-icon-delete"></el-button>
120 123
             </template>
121 124
           </el-table-column>
122 125
         </el-table>
123 126
       </div>
124 127
     </div>
125
-      
128
+
129
+     <!-- 打印评分 -->
130
+    <el-dialog
131
+      title="提示"
132
+      :visible.sync="dialogVisible"
133
+      width="67%"
134
+      >
135
+      <div>
136
+        <div style="overflow: hidden;">
137
+          <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
138
+        </div>
139
+
140
+        <div id="pingfeng" >
141
+          <div class="diedao_content" style="">
142
+            <div style="width:100%;margin-top: 20px;">
143
+              <div style="text-align: center;"><h1>血液透析中心日常生活能力评定记录</h1></div>
144
+              <div style="margin-top: 20px;font-size: 16px;">
145
+                <span>患者姓名:</span>
146
+                <span>透析号:</span>
147
+                <span>打印时间:</span>
148
+              </div>
149
+              <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
150
+                <tr>
151
+                  <td style="">评估日期</td>
152
+                  <td style="">进食</td>
153
+                  <td style="">洗澡</td>
154
+                  <td style="">修饰</td>
155
+                  <td style="">穿衣</td>
156
+                  <td style="">控制大便</td>
157
+                  <td style="">控制小便</td>
158
+                  <td style="">如厕</td>
159
+                  <td style="">床椅转移</td>
160
+                  <td style="">平地行走</td>
161
+                  <td style="">上下楼梯</td>
162
+                  <td style="">总分</td>
163
+                  <td style="">评估人</td>
164
+                </tr>
165
+                <tr v-for="item in multipleSelection" >
166
+                  <td>{{item.time}}</td>
167
+                  <td></td>
168
+                  <td></td>
169
+                  <td></td>
170
+                  <td></td>
171
+                  <td></td>
172
+                  <td></td>
173
+                  <td></td>
174
+                  <td></td>
175
+                  <td></td>
176
+                  <td></td>
177
+                  <td>{{item.mark}}</td>
178
+                  <td>{{item.evaluate}}</td>
179
+                </tr>
180
+              </table>
181
+            </div>
182
+          </div>
183
+        </div>
184
+      </div>
185
+      <span slot="footer" class="dialog-footer">
186
+        <el-button @click="dialogVisible = false">取 消</el-button>
187
+        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
188
+      </span>
189
+    </el-dialog>
190
+    <!-- 打印明细 -->
191
+    <el-dialog
192
+      title="提示"
193
+      :visible.sync="mingxi_dialogVisible"
194
+      width="67%"
195
+      >
196
+      <div>
197
+        <div style="">
198
+          <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
199
+        </div>
200
+
201
+        <div id="mingxi" >
202
+          <div class="diedao_content" style="page-break-after: always;" v-for="i in multipleSelection">
203
+            <div style="width:100%;margin-top: 20px;">
204
+              <div style="text-align: center;"><h1>血液透析中心日常生活能力评定记录</h1></div>
205
+              <div style="margin-top: 20px;font-size: 16px;">
206
+                <span>患者姓名:</span>
207
+                <span>透析号:</span>
208
+                <span>评估日期:</span>
209
+                <span>评估护士:</span>
210
+                <span>总分:</span>
211
+              </div>
212
+              <table  border="1" style="width: 100%; border-collapse:collapse ;">
213
+                <thead>
214
+                  <tr>
215
+                    <th style="width: 150px;">项目</th>
216
+                    <th colspan="4">分值</th>
217
+                  </tr>
218
+                </thead>
219
+                <tbody>
220
+                  <tr class="bg_color">
221
+                    <td class="start">进食</td>
222
+                    <td v-for="(item,index) in jinshi" :key="index">
223
+                        <div class="jiange">
224
+                          <span>
225
+                            <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
226
+                                {{ item.label }}
227
+                            </label>
228
+                          </span>
229
+                        </div>
230
+                    </td>
231
+                    <td>&nbsp;</td>
232
+                  </tr>
233
+                  <tr>
234
+                    <td class="start">洗澡</td>
235
+                    <td v-for="(item,index) in xizao" :key="index">
236
+                      <div class="jiange">
237
+                        <span>
238
+                          <label><input type="checkbox" name="ball" :value="item.value"/>&nbsp;
239
+                              {{ item.label }}
240
+                          </label>
241
+                        </span>
242
+                      </div>
243
+                    </td>
244
+                    <td></td>
245
+                    <td></td>
246
+                  </tr>
247
+                  <tr class="bg_color">
248
+                    <td class="start">修饰</td>
249
+                    <td v-for="(item,index) in xiushi" :key="index">
250
+                        <div class="jiange">
251
+                          <span>
252
+                            <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
253
+                                {{item.label}}
254
+                            </label>
255
+                          </span>
256
+                        </div>
257
+                    </td>
258
+                    <td></td>
259
+                    <td></td>
260
+                  </tr>
261
+                  <tr>
262
+                    <td class="start">穿衣</td>
263
+                    <td v-for="(item,index) in chuanyi" :key="index">
264
+                      <div class="jiange">
265
+                        <span>
266
+                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
267
+                              {{item.label}}
268
+                          </label>
269
+                        </span>
270
+                      </div>
271
+                    </td>
272
+                    <td></td>
273
+                  </tr>
274
+                  <tr class="bg_color">
275
+                    <td class="start">控制大便</td>
276
+                    <td v-for="(item,index) in dabian" :key="index">
277
+                      <div class="jiange">
278
+                        <span>
279
+                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
280
+                              {{item.label}}
281
+                          </label>
282
+                        </span>
283
+                      </div>
284
+                    </td>
285
+                    <td></td>
286
+                  </tr>
287
+                  <tr>
288
+                    <td class="start">控制小便</td>
289
+                    <td v-for="(item,index) in xioabian" :key="index">
290
+                      <div class="jiange">
291
+                        <span>
292
+                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
293
+                              {{item.label}}
294
+                          </label>
295
+                        </span>
296
+                      </div>
297
+                    </td>
298
+                    <td></td>
299
+                  </tr>
300
+                  <tr class="bg_color">
301
+                    <td class="start">如厕</td>
302
+                    <td v-for="(item,index) in ruce" :key="index">
303
+                      <div class="jiange">
304
+                        <span>
305
+                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
306
+                              {{item.label}}
307
+                          </label>
308
+                        </span>
309
+                      </div>
310
+                    </td>
311
+                    <td></td>
312
+                  </tr>
313
+                  <tr>
314
+                    <td class="start">床椅转移</td>
315
+                    <td v-for="(item,index) in chuangyi" :key="index">
316
+                      <div class="jiange">
317
+                        <span>
318
+                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
319
+                              {{item.label}}
320
+                          </label>
321
+                        </span>
322
+                      </div>
323
+                    </td>
324
+                  </tr>
325
+                  <tr class="bg_color">
326
+                    <td class="start">平地行走</td>
327
+                    <td v-for="(item,index) in pingdi" :key="index">
328
+                      <div class="jiange">
329
+                        <span>
330
+                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
331
+                              {{item.label}}
332
+                          </label>
333
+                        </span>
334
+                      </div>
335
+                    </td>
336
+                  </tr>
337
+                  <tr>
338
+                    <td class="start">上下楼梯</td>
339
+                    <td v-for="(item,index) in louti" :key="index">
340
+                      <div class="jiange">
341
+                        <span>
342
+                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
343
+                              {{ item.label }}
344
+                          </label>
345
+                        </span>
346
+                      </div>
347
+                    </td>
348
+                    <td></td>
349
+                  </tr>
350
+                </tbody>
351
+              </table>
352
+              <div style="font-size: 16px;">打印时间:</div>
353
+            </div>
354
+          </div>
355
+        </div>
356
+      </div>
357
+    </el-dialog>
358
+    <!-- 编辑 -->
359
+    <el-dialog
360
+      title="提示"
361
+      :visible.sync="editor_dialogVisible"
362
+      width="67%"
363
+      >
364
+      <div>
365
+        <table class="table" border="1" style="width: 100%;">
366
+            <thead>
367
+              <tr>
368
+                <th style="width: 150px;">项目</th>
369
+                <th colspan="4">分值</th>
370
+              </tr>
371
+            </thead>
372
+            <tbody>
373
+              <tr class="bg_color">
374
+                <td class="start">进食</td>
375
+                <td v-for="(item,index) in jinshi" :key="index">
376
+                    <div class="jiange">
377
+                      <span>
378
+                        <label><input type="checkbox" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
379
+                            {{ item.label }}
380
+                        </label>
381
+                      </span>
382
+                    </div>
383
+                </td>
384
+                <td>&nbsp;</td>
385
+              </tr>
386
+              <tr>
387
+                <td class="start">洗澡</td>
388
+                <td v-for="(item,index) in xizao" :key="index">
389
+                  <div class="jiange">
390
+                    <span>
391
+                      <label><input type="checkbox" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
392
+                          {{ item.label }}
393
+                      </label>
394
+                    </span>
395
+                  </div>
396
+                </td>
397
+                <td></td>
398
+                <td></td>
399
+              </tr>
400
+              <tr class="bg_color">
401
+                <td class="start">修饰</td>
402
+                <td v-for="(item,index) in xiushi" :key="index">
403
+                    <div class="jiange">
404
+                      <span>
405
+                        <label><input type="checkbox" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
406
+                            {{item.label}}
407
+                        </label>
408
+                      </span>
409
+                    </div>
410
+                </td>
411
+                <td></td>
412
+                <td></td>
413
+              </tr>
414
+              <tr>
415
+                <td class="start">穿衣</td>
416
+                <td v-for="(item,index) in chuanyi" :key="index">
417
+                  <div class="jiange">
418
+                    <span>
419
+                      <label><input type="checkbox" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
420
+                          {{item.label}}
421
+                      </label>
422
+                    </span>
423
+                  </div>
424
+                </td>
425
+                <td></td>
426
+              </tr>
427
+              <tr class="bg_color">
428
+                <td class="start">控制大便</td>
429
+                <td v-for="(item,index) in dabian" :key="index">
430
+                  <div class="jiange">
431
+                    <span>
432
+                      <label><input type="checkbox" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
433
+                          {{item.label}}
434
+                      </label>
435
+                    </span>
436
+                  </div>
437
+                </td>
438
+                <td></td>
439
+              </tr>
440
+              <tr>
441
+                <td class="start">控制小便</td>
442
+                <td v-for="(item,index) in xioabian" :key="index">
443
+                  <div class="jiange">
444
+                    <span>
445
+                      <label><input type="checkbox" name="ball" :value="item.value" @click="xioabianclick($event,item.value)"/>&nbsp;
446
+                          {{item.label}}
447
+                      </label>
448
+                    </span>
449
+                  </div>
450
+                </td>
451
+                <td></td>
452
+              </tr>
453
+              <tr class="bg_color">
454
+                <td class="start">如厕</td>
455
+                <td v-for="(item,index) in ruce" :key="index">
456
+                  <div class="jiange">
457
+                    <span>
458
+                      <label><input type="checkbox" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
459
+                          {{item.label}}
460
+                      </label>
461
+                    </span>
462
+                  </div>
463
+                </td>
464
+                <td></td>
465
+              </tr>
466
+              <tr>
467
+                <td class="start">床椅转移</td>
468
+                <td v-for="(item,index) in chuangyi" :key="index">
469
+                  <div class="jiange">
470
+                    <span>
471
+                      <label><input type="checkbox" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
472
+                          {{item.label}}
473
+                      </label>
474
+                    </span>
475
+                  </div>
476
+                </td>
477
+              </tr>
478
+              <tr class="bg_color">
479
+                <td class="start">平地行走</td>
480
+                <td v-for="(item,index) in pingdi" :key="index">
481
+                  <div class="jiange">
482
+                    <span>
483
+                      <label><input type="checkbox" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
484
+                          {{item.label}}
485
+                      </label>
486
+                    </span>
487
+                  </div>
488
+                </td>
489
+              </tr>
490
+              <tr>
491
+                <td class="start">上下楼梯</td>
492
+                <td v-for="(item,index) in louti" :key="index">
493
+                  <div class="jiange">
494
+                    <span>
495
+                      <label><input type="checkbox" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
496
+                          {{ item.label }}
497
+                      </label>
498
+                    </span>
499
+                  </div>
500
+                </td>
501
+                <td></td>
502
+              </tr>
503
+              <tr>
504
+                <td colspan="5">
505
+                  <div class="content_top" style="margin: 10px 0px;">
506
+                    <div>
507
+                        <div class="bottoms">
508
+                        <span>总分:</span>
509
+                        <el-input v-model="date_Totalpoints" style="width: 100px;"></el-input>分
510
+                        </div>
511
+
512
+                        <div class="bottoms">
513
+                            <span>评估日期:</span>
514
+                            <el-date-picker
515
+                                v-model="value1"
516
+                                type="date"
517
+                                placeholder="选择日期"
518
+                                :clearable="false"
519
+                                style="width: 150px;">
520
+                            </el-date-picker>
521
+                        </div>
522
+
523
+                        <div class="bottoms">
524
+                            <span>评估人:</span>
525
+                            <el-select v-model="value" placeholder="请选择" >
526
+                                <el-option
527
+                                v-for="item in options"
528
+                                :key="item.value"
529
+                                :label="item.label"
530
+                                :value="item.value"
531
+                                style="width:150px;">
532
+                                </el-option>
533
+                            </el-select>
534
+                        </div>
535
+
536
+                    </div>
537
+                    <div style="margin:5px 10px;">
538
+                            <el-button type="primary">确认</el-button>
539
+                    </div>
540
+                  </div>
541
+                </td>
542
+              </tr>
543
+            </tbody>
544
+        </table>
545
+      </div>
546
+    </el-dialog>
126 547
   </div>
127 548
 </template>
128 549
 <script>
550
+import print from 'print-js'
129 551
 export default{
130 552
   data(){
131 553
     return{
132 554
       tableData:[],
133
-      multipleSelection:''
555
+      multipleSelection:[],
556
+      dialogVisible:false,
557
+      mingxi_dialogVisible:false,
558
+      editor_dialogVisible:false,
559
+      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
560
+      jinshi:[{value:10,label:'可独立进食(10分)'},
561
+              {value:5,label:'需部分帮助(如协助夹菜等)(5分)'},
562
+              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
563
+            ],
564
+      xizao:[{value:5,label:'准备好洗澡水后可独立完成(5分)'},
565
+              {value:0,label:'在洗澡过程中需他人帮助(0分)'}
566
+            ],
567
+      xiushi:[{value:5,label:'可自己独立完成(5分)'},
568
+              {value:0,label:'需他人帮助(0分)'}
569
+            ],
570
+      chuanyi:[{value:10,label:'可独立完成(10分)'},
571
+              {value:5,label:'需部分帮助(如协助系鞋带等)(5分)'},
572
+              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
573
+            ],
574
+      dabian:[{value:10,label:'可控制大便(10分)'},
575
+              {value:5,label:'偶尔失禁(5分)'},
576
+              {value:0,label:'完全失禁(0分)'}
577
+            ],
578
+      xioabian:[{value:10,label:'可控制大便(10分)'},
579
+              {value:5,label:'偶尔失禁(5分)'},
580
+              {value:0,label:'完全失禁(0分)'}
581
+            ],
582
+      ruce:[{value:10,label:'可独立完成(10分)'},
583
+            {value:5,label:'需部分帮助(如协助整理衣裤等)(5分)'},
584
+            {value:0,label:'需极大帮助或完全依赖他人(0分)'}
585
+          ],
586
+      chuangyi:[{value:15,label:'可独立完成(15分)'},
587
+              {value:10,label:'需部分帮助(1人协助))(10分)'},
588
+              {value:5,label:'需极大帮助(2人协助)(5分)'},
589
+              {value:0,label:'完全依赖他人,不能坐(0分)'}
590
+            ],
591
+      pingdi:[{value:15,label:'可独立在平地上行走>45S,可用辅助工具(15分)'},
592
+              {value:10,label:'需部分帮助(他人搀扶或使用辅助工具)(10分)'},
593
+              {value:5,label:'需极大帮助(可坐轮椅自动移动))(5分)'},
594
+              {value:0,label:'完全依赖他人(0分)'}
595
+            ],
596
+      louti:[{value:10,label:'可独立上下1层楼梯(可用辅助工具)(10分)'},
597
+              {value:5,label:'需部分帮助(他人帮助)(5分)'},
598
+              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
599
+            ],
600
+
601
+      value:'',
602
+      input:'',
603
+      value1:'',
604
+      options:[],
605
+      jinshi_val:null,
606
+      xizao_val:null,
607
+      xiushi_val:null,
608
+      chuanyi_val:null,
609
+      dabian_val:null,
610
+      xiaobian_val:null,
611
+      ruce_val:null,
612
+      chuangyi_val:null,
613
+      paingdi_val:null,
614
+      louti_val:null,
134 615
     }
135 616
   },
136 617
   methods:{
@@ -139,6 +620,126 @@ export default{
139 620
     },
140 621
     handleSelectionChange(val) {
141 622
       this.multipleSelection = val;
623
+    },
624
+    open_pingfeng(){
625
+      if(this.multipleSelection.length==0){
626
+        this.$message('选择至少一条数据')
627
+      }else{
628
+        this.dialogVisible=true
629
+      }
630
+
631
+    },
632
+    open_mingxi(){
633
+      if(this.multipleSelection.length==0){
634
+        this.$message('选择至少一条数据')
635
+      }else{
636
+        this.mingxi_dialogVisible=true
637
+      }
638
+
639
+    },
640
+    print_pingfen(id){
641
+      this.dialogVisible=false
642
+      this.mingxi_dialogVisible=false
643
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
644
+      if(id==1){
645
+        printJS({
646
+          printable: 'pingfeng',
647
+          type: 'html',
648
+          style: style,
649
+          scanStyles: false
650
+        })
651
+
652
+      }else if(id==2){
653
+        printJS({
654
+          printable: 'mingxi',
655
+          type: 'html',
656
+          style: style,
657
+          scanStyles: false
658
+        })
659
+
660
+      }
661
+
662
+
663
+    },
664
+    open_xiugai(row){
665
+      this.editor_dialogVisible=true
666
+    },
667
+
668
+    jinshiclick(e,val){
669
+     if(e.target.checked == true){
670
+      this.jinshi_val = val
671
+     }else{
672
+      this.jinshi_val =this.jinshi_val - val
673
+     }
674
+    },
675
+    xizaoclick(e,val){
676
+      if(e.target.checked == true){
677
+      this.xizao_val = val
678
+     }else{
679
+      this.xizao_val =this.xizao_val - val
680
+     }
681
+    },
682
+    xiushiclick(e,val){
683
+     if(e.target.checked == true){
684
+      this.xiushi_val = val
685
+     }else{
686
+      this.xiushi_val =this.xiushi_val - val
687
+     }
688
+    },
689
+    chuanyiclick(e,val){
690
+      if(e.target.checked == true){
691
+      this.chuanyi_val = val
692
+     }else{
693
+      this.chuanyi_val =this.chuanyi_val - val
694
+     }
695
+    },
696
+    dabianclick(e,val){
697
+     if(e.target.checked == true){
698
+      this.dabian_val = val
699
+     }else{
700
+      this.dabian_val =this.dabian_val - val
701
+     }
702
+    },
703
+    xiaobianclick(e,val){
704
+      if(e.target.checked == true){
705
+      this.xiaobian_val = val
706
+     }else{
707
+      this.xiaobian_val =this.xiaobian_val - val
708
+     }
709
+    },
710
+    ruceclick(e,val){
711
+     if(e.target.checked == true){
712
+      this.ruce_val = val
713
+     }else{
714
+      this.ruce_val =this.ruce_val - val
715
+     }
716
+    },
717
+    chuangyiclick(e,val){
718
+      if(e.target.checked == true){
719
+      this.chuangyi_val = val
720
+     }else{
721
+      this.chuangyi_val =this.chuangyi_val - val
722
+     }
723
+    },
724
+    pingdiclick(e,val){
725
+     if(e.target.checked == true){
726
+      this.paingdi_val = val
727
+     }else{
728
+      this.paingdi_val =this.paingdi_val - val
729
+     }
730
+    },
731
+    louticlick(e,val){
732
+      if(e.target.checked == true){
733
+      this.louti_val = val
734
+     }else{
735
+      this.louti_val =this.louti_val - val
736
+     }
737
+    },
738
+  },
739
+  computed:{
740
+    date_Totalpoints(){
741
+      return this.jinshi_val + this.xizao_val + this.xiushi_val + this.chuanyi_val + this.dabian_val + this.xiaobian_val +
742
+      this.ruce_val + this.chuangyi_val + this.paingdi_val + this.louti_val
142 743
     }
143 744
   }
144 745
 }
@@ -157,4 +758,45 @@ export default{
157 758
   color: gray;
158 759
   font-size: 18px;
159 760
 }
160
-</style>
761
+
762
+.table{
763
+  border: 1px solid #DCDFE6;
764
+  border-collapse:collapse;
765
+  border-spacing: 0;
766
+  thead th{
767
+      background: #0077ff9f;
768
+      color: white;
769
+      text-align: center;
770
+      height: 40px;
771
+  }
772
+  tbody td{
773
+      height: 40px;
774
+  }
775
+  .start{
776
+      text-align: center;
777
+  }
778
+  .bing{
779
+      width: 150px;
780
+      text-align: center;
781
+  }
782
+  .bg_color{
783
+      background: rgb(243, 240, 240);
784
+  }
785
+  .jiange{
786
+      margin-left: 20px;
787
+      color: black;
788
+  }
789
+  .content_top{
790
+    display: flex;
791
+    justify-content: space-between;
792
+  }
793
+  .bottoms{
794
+    display: inline-block;
795
+    margin-left: 10px;
796
+    margin-top: 5px;
797
+  }
798
+}
799
+input{
800
+  -webkit-appearance: checkbox;
801
+}
802
+</style>

+ 230 - 17
src/xt_pages/user/history/mind_history.vue View File

@@ -7,8 +7,8 @@
7 7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8 8
           <div class="history">历史评分</div>
9 9
         </div>
10
-        <div style="margin-left: 30%;">
11
-          <el-button type="primary">打印记录</el-button>
10
+        <div style="margin-left: 40%;">
11
+          <el-button type="primary" @click="open_print">打印记录</el-button>
12 12
         </div>
13 13
       </div>
14 14
       <div>
@@ -30,64 +30,209 @@
30 30
             align="center">
31 31
           </el-table-column>
32 32
           <el-table-column
33
+            prop="time"
33 34
             label="评估日期"
34
-            width="180"
35
+            width="150"
35 36
             align="center">
36
-            <template slot-scope="scope">{{ scope.row.date }}</template>
37
+            
37 38
           </el-table-column>
38 39
           <el-table-column
39
-            prop="name"
40
+            prop=""
40 41
             label="心理评估"
41
-            width="130"
42
+            width=""
42 43
             align="center">
43 44
           </el-table-column>
44 45
           <el-table-column
45
-            prop="name"
46
+            prop="mark"
46 47
             label="情感障碍"
47
-            width=""
48
+            width="150"
48 49
             align="center">
49 50
           </el-table-column>
50 51
           <el-table-column
51
-            prop="name"
52
+            prop="mark"
52 53
             label="自伤"
53 54
             width="160"
54 55
             align="center">
55 56
           </el-table-column>
56 57
           <el-table-column
57
-            prop="name"
58
+            prop="mark"
58 59
             label="伤人"
59
-            width=""
60
+            width="150"
60 61
             align="center">
61 62
           </el-table-column>
62 63
           <el-table-column
63
-            prop="name"
64
+            prop="evaluate"
64 65
             label="评估护士"
65
-            width=""
66
+            width="150"
66 67
             align="center">
67 68
           </el-table-column>
68 69
           <el-table-column
69 70
             prop="address"
70 71
             label="操作"
71
-            width=""
72
+            width="160"
72 73
             align="center"
73 74
             show-overflow-tooltip>
74 75
             <template slot-scope="scope">
75
-              <el-button type="primary" icon="el-icon-edit-outline"></el-button>
76
+              <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
76 77
               <el-button type="primary" icon="el-icon-delete"></el-button>
77 78
             </template>
78 79
           </el-table-column>
79 80
         </el-table>
80 81
       </div>
81 82
     </div>
82
-      
83
+      <!-- 打印评分 -->
84
+      <el-dialog
85
+      title="提示"
86
+      :visible.sync="dialogVisible"
87
+      width="67%"
88
+      >
89
+      <div>
90
+        <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
91
+        <div id="pingfeng" >
92
+          <div class="diedao_content" style="">
93
+            <div style="width:100%">
94
+              <div style="text-align: center;"><h1>血液透析中心营养状况评估记录</h1></div>
95
+              <div style="margin-top: 20px;font-size: 16px;">
96
+                <span>患者姓名:</span>
97
+                <span>透析号:</span>
98
+                <span>打印时间:</span>
99
+              </div>
100
+              <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
101
+                <tr>
102
+                  <td style="width:100px">评估日期</td>
103
+                  <td style="">心理评估</td>
104
+                  <td style="width:100px">感情障碍</td>
105
+                  <td style="width:100px">自伤</td>
106
+                  <td style="width:100px">伤人</td>
107
+                  <td style="width:100px">责任护士</td>
108
+                </tr>
109
+
110
+                <tr v-for="(item,index) in multipleSelection" :key="index">
111
+                  <td>{{ item.time }}</td>
112
+                  <td>{{ item.mark }}</td>
113
+                  <td>{{ item.mark }}</td>
114
+                  <td>{{ item.mark }}</td>
115
+                  <td>{{ item.mark }}</td>
116
+                  <td>{{ item.evaluate }}</td>
117
+                </tr>
118
+              </table>
119
+            </div>
120
+          </div>
121
+        </div>
122
+      </div>
123
+    </el-dialog>  
124
+    <!-- 编辑 -->
125
+    <el-dialog
126
+      title="提示"
127
+      :visible.sync="editor_dialogVisible"
128
+      width="67%"
129
+      >
130
+      <div>
131
+        <table class="tables" border="1" style="width: 100%;">
132
+            <thead>
133
+                <tr>
134
+                    <th style="width: 130px;">项目</th>
135
+                    <th style="">症状</th>
136
+                </tr>
137
+            </thead>
138
+            <tbody>
139
+            <tr class="bg_color">
140
+                <td class="start">心理评估</td>
141
+                <td>
142
+                    <div class="jiange">
143
+                        <span v-for="item in xinli" class="rightjiange">
144
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
145
+                        </span>
146
+                    </div>
147
+                </td>
148
+            </tr>
149
+            <tr>
150
+                <td class="start">情感障碍</td>
151
+                <td>
152
+                    <div class="jiange">
153
+                        <el-radio-group v-model="radio1">
154
+                            <el-radio v-for="(item,index ) in qingan" :label="item" :key="index" style="color: black;font-size: 15px;">{{ item }}</el-radio>
155
+                        </el-radio-group>
156
+                    </div>
157
+                </td>                           
158
+            </tr>
159
+            <tr class="bg_color">
160
+                <td class="start">自伤</td>
161
+                <td>
162
+                    <div  class="jiange">
163
+                        <el-radio-group v-model="radio2">
164
+                        <el-radio v-for="(item,index ) in qingan" :label="item" :key="index" style="color: black;font-size: 15px;">{{ item }}</el-radio>
165
+                        </el-radio-group>
166
+                    </div>
167
+                </td>
168
+            </tr>
169
+            <tr>
170
+                <td class="start">伤人</td>
171
+                <td>
172
+                    <div  class="jiange">
173
+                        <el-radio-group v-model="radio3">
174
+                            <el-radio v-for="(item,index ) in qingan" :label="item" :key="index" style="color: black;font-size: 15px;">{{ item }}</el-radio>
175
+                        </el-radio-group>
176
+                    </div>
177
+                </td>
178
+            </tr>
179
+            </tbody>
180
+        </table>
181
+      </div>
182
+
183
+      <div class="content_top" style="margin-bottom: 10px ;">
184
+          <div>
185
+              <div class="bottoms">
186
+                  <span>评估日期:</span>
187
+                  <el-date-picker
188
+                      v-model="value1"
189
+                      type="date"
190
+                      placeholder="选择日期"
191
+                      :clearable="false"
192
+                      style="width: 150px;">
193
+                  </el-date-picker>
194
+              </div>
195
+
196
+              <div class="bottoms">
197
+                  <span>评估人:</span>
198
+                  <el-select v-model="value" placeholder="请选择" >
199
+                      <el-option
200
+                      v-for="item in options"
201
+                      :key="item.value"
202
+                      :label="item.label"
203
+                      :value="item.value"
204
+                      style="width:150px;">
205
+                      </el-option>
206
+                  </el-select>
207
+              </div>
208
+          </div>
209
+          <div style="margin:5px 10px;">
210
+              <el-button type="primary">确认</el-button>
211
+          </div>
212
+      </div>
213
+    </el-dialog>  
83 214
   </div>
84 215
 </template>
85 216
 <script>
217
+import print from 'print-js'
86 218
 export default{
87 219
   data(){
88 220
     return{
89 221
       tableData:[],
90
-      multipleSelection:''
222
+      multipleSelection:[],
223
+      dialogVisible:false,
224
+      editor_dialogVisible:false,
225
+      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
226
+
227
+      checkList:'',
228
+      radio1:'',
229
+      radio2:'',
230
+      radio3:'',
231
+      options:[],
232
+      value:'',
233
+      value1:'',
234
+      xinli:['配合治疗','担忧','烦躁','抵触情绪','拒绝治疗','坐立不安','怪异行为','其他'],
235
+      qingan:['有','无',],
91 236
     }
92 237
   },
93 238
   methods:{
@@ -96,6 +241,26 @@ export default{
96 241
     },
97 242
     handleSelectionChange(val) {
98 243
       this.multipleSelection = val;
244
+    },
245
+    open_print(){
246
+      if(this.multipleSelection.length==0){
247
+        this.$message('请选择需要打印的记录')
248
+      }else{
249
+        this.dialogVisible=true
250
+      }
251
+    },
252
+    print_pingfen(){
253
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
254
+      printJS({
255
+        printable: 'pingfeng',
256
+        type: 'html',
257
+        style: style,
258
+        scanStyles: false
259
+      })
260
+      this.dialogVisible=false
261
+    },
262
+    open_xiugai(row){
263
+      this.editor_dialogVisible=true
99 264
     }
100 265
   }
101 266
 }
@@ -114,4 +279,52 @@ export default{
114 279
   color: gray;
115 280
   font-size: 18px;
116 281
 }
282
+.table tr td th {
283
+  padding: 5px;
284
+}
285
+.content_top{
286
+      display: flex;
287
+      justify-content: space-between; 
288
+    }
289
+.tables{
290
+    border: 1px solid #DCDFE6;
291
+    border-collapse:collapse;
292
+    border-spacing: 0;
293
+    thead th{
294
+        background: #0077ff9f;
295
+        color: white;
296
+        text-align: center;
297
+        height: 40px;
298
+    }
299
+    tbody td{
300
+        height: 40px;
301
+    }
302
+    .start{
303
+        text-align: center;
304
+    }
305
+    .bing{
306
+        width: 150px;
307
+        text-align: center;
308
+    }
309
+    .bg_color{
310
+        background: rgb(243, 240, 240);
311
+    }
312
+    .jiange{
313
+        margin-left: 20px;
314
+        color: black;
315
+    }
316
+    .rightjiange{
317
+      margin-right: 40px;
318
+      font-size: 15px;
319
+    }
320
+    
321
+    input{
322
+        -webkit-appearance: checkbox;
323
+    }
324
+}
325
+.bottoms{
326
+  display: inline-block;
327
+  margin-left: 10px;
328
+  margin-top: 5px; 
329
+}
117 330
 </style>

+ 587 - 14
src/xt_pages/user/history/nourishment_history.vue View File

@@ -8,8 +8,8 @@
8 8
           <div class="history">历史评分</div>
9 9
         </div>
10 10
         <div style="margin-left: 30%;">
11
-          <el-button type="primary">打印评分</el-button>
12
-          <el-button type="primary">打印明细</el-button>
11
+          <el-button type="primary" @click="open_print(1)">打印评分</el-button>
12
+          <el-button type="primary" @click="open_print(2)">打印明细</el-button>
13 13
         </div>
14 14
       </div>
15 15
       <div>
@@ -31,37 +31,37 @@
31 31
             align="center">
32 32
           </el-table-column>
33 33
           <el-table-column
34
+            prop="time"
34 35
             label="评估日期"
35
-            width="180"
36
+            width=""
36 37
             align="center">
37
-            <template slot-scope="scope">{{ scope.row.date }}</template>
38 38
           </el-table-column>
39 39
           <el-table-column
40
-            prop="name"
40
+            prop="mark"
41 41
             label="疾病相关"
42
-            width="130"
42
+            width=""
43 43
             align="center">
44 44
           </el-table-column>
45 45
           <el-table-column
46
-            prop="name"
46
+            prop="mark"
47 47
             label="营养受损"
48 48
             width=""
49 49
             align="center">
50 50
           </el-table-column>
51 51
           <el-table-column
52
-            prop="name"
52
+            prop="mark"
53 53
             label="年龄评分"
54
-            width="160"
54
+            width=""
55 55
             align="center">
56 56
           </el-table-column>
57 57
           <el-table-column
58
-            prop="name"
58
+            prop="mark"
59 59
             label="总分"
60 60
             width=""
61 61
             align="center">
62 62
           </el-table-column>
63 63
           <el-table-column
64
-            prop="name"
64
+            prop="evaluate"
65 65
             label="评估护士"
66 66
             width=""
67 67
             align="center">
@@ -73,22 +73,486 @@
73 73
             align="center"
74 74
             show-overflow-tooltip>
75 75
             <template slot-scope="scope">
76
-              <el-button type="primary" icon="el-icon-edit-outline"></el-button>
76
+              <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
77 77
               <el-button type="primary" icon="el-icon-delete"></el-button>
78 78
             </template>
79 79
           </el-table-column>
80 80
         </el-table>
81 81
       </div>
82 82
     </div>
83
-      
83
+     <!-- 打印评分 -->
84
+     <el-dialog
85
+      title="提示"
86
+      :visible.sync="dialogVisible"
87
+      width="67%"
88
+      >
89
+      <div>
90
+        <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
91
+        <div id="pingfeng" >
92
+          <div class="diedao_content" style="">
93
+            <div style="width:100%">
94
+              <div style="text-align: center;"><h1>血液透析中心营养状况评估记录</h1></div>
95
+              <div style="margin-top: 20px;font-size: 16px;">
96
+                <span>患者姓名:</span>
97
+                <span>透析号:</span>
98
+                <span>打印时间:</span>
99
+              </div>
100
+              <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
101
+                <tr>
102
+                  <td style="width:100px">评估日期</td>
103
+                  <td style="width:100px">疾病相关</td>
104
+                  <td style="width:100px">营养受损</td>
105
+                  <td style="width:100px">年龄评分</td>
106
+                  <td style="width:100px">总评分</td>
107
+                  <td style="width:100px">责任护士</td>
108
+                </tr>
109
+
110
+                <tr v-for="(item,index) in multipleSelection" :key="index">
111
+                  <td>{{ item.time }}</td>
112
+                  <td>{{ item.mark }}</td>
113
+                  <td>{{ item.mark }}</td>
114
+                  <td>{{ item.mark }}</td>
115
+                  <td>{{ item.mark }}</td>
116
+                  <td>{{ item.evaluate }}</td>
117
+                </tr>
118
+              </table>
119
+            </div>
120
+          </div>
121
+        </div>
122
+      </div>
123
+    </el-dialog>  
124
+     <!-- 打印明细 -->
125
+     <el-dialog
126
+      title="提示"
127
+      :visible.sync="mingxi_dialogVisible"
128
+      width="67%"
129
+      >
130
+      <div>
131
+        <div style="">
132
+          <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
133
+        </div>
134
+
135
+        <div id="mingxi" >
136
+          <div class="diedao_content" style="page-break-after: always;" v-for="i in multipleSelection">
137
+            <div style="width:100%;margin-top: 20px;">
138
+              <div style="text-align: center;"><h1>血液透析中心营养状况评估记录</h1></div>
139
+              <div style="margin-top: 20px;font-size: 16px;">
140
+                <span>患者姓名:</span>
141
+                <span>透析号:</span>
142
+                <span>评估日期:</span>
143
+                <span>评估护士:</span>
144
+                <span>总分:</span>
145
+              </div>
146
+              <div>
147
+                <table class="table" border="1" style="width: 100%;margin-bottom: 20px;border-collapse: collapse;">
148
+                  <thead>
149
+                    <tr>
150
+                      <th colspan="2" style="text-align: left;padding-left: 5px;">疾病相关评分</th>
151
+                    </tr>
152
+                  </thead>
153
+                  <tbody>
154
+                    <tr class="bg_color">
155
+                      <td style="width: 100px;">
156
+                        <el-radio  label="0" >0分</el-radio>
157
+                      </td>
158
+                      <td class="saoyang wenzi_color">营养需要量无增加</td>
159
+                    </tr>
160
+                    <tr>
161
+                      <td style="width: 100px;">
162
+                        <el-radio  label="1" >1分</el-radio>
163
+                      </td>
164
+                      <td class="saoyang wenzi_color">
165
+                          营养需要量轻度增加:
166
+                          <div >
167
+                              <span v-for="item in qingdu" style="margin-right: 5px;">
168
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
169
+                              </span>
170
+                              <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
171
+                                <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
172
+                              </label>
173
+                          </div>
174
+                      </td>
175
+                    </tr>
176
+                    <tr class="bg_color">
177
+                      <td class="start">
178
+                        <el-radio  label="2" >2分</el-radio>
179
+                      </td>
180
+                      <td class="saoyang wenzi_color">
181
+                          营养需要量中度增加:
182
+                          <div >
183
+                              <span v-for="item in zhdu" style="margin-right: 5px;">
184
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
185
+                              </span>
186
+                              <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
187
+                                <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
188
+                              </label>
189
+                          </div>
190
+                      </td>
191
+                    </tr>
192
+                    <tr>
193
+                      <td class="start">
194
+                        <el-radio v-model="radio" label="3" >3分</el-radio>
195
+                      </td>
196
+                      <td class="saoyang wenzi_color">
197
+                          营养需要量重度增加:
198
+                          <div >
199
+                              <span v-for="item in zhongsdu" style="margin-right: 5px;">
200
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
201
+                              </span>
202
+                              <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
203
+                                  <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
204
+                              </label>
205
+                          </div>
206
+                      </td>
207
+                    </tr>
208
+                  </tbody>
209
+                </table>
210
+
211
+                <table class="table" border="1" style="width: 100%;margin-bottom: 20px;border-collapse: collapse;">
212
+                    <thead>
213
+                        <tr>
214
+                          <th colspan="2" style="text-align: left;padding-left: 5px;">营养受损评分</th>
215
+                        </tr>
216
+                    </thead>
217
+                    <tbody>
218
+                    <tr class="bg_color">
219
+                        <td style="width: 100px;">
220
+                          <el-radio  label="0" >0分</el-radio>
221
+                        </td>
222
+
223
+                        <td class="saoyang wenzi_color" >无营养受损</td>
224
+                    </tr>
225
+                    <tr>
226
+                        <td style="width: 100px;">
227
+                          <el-radio  label="1" >1分</el-radio>
228
+                        </td>
229
+
230
+                        <td class="saoyang">
231
+                            <div >
232
+                                <span class="rightjiange">
233
+                                    <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
234
+                                        3个月内体重下降>5%
235
+                                    </label>
236
+                                    <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
237
+                                        一周内进食量较从前减少25%-50%
238
+                                    </label>
239
+                                </span>
240
+
241
+                            </div>
242
+                        </td>
243
+                    </tr>
244
+                    <tr class="bg_color">
245
+                      <td style="width: 100px;">
246
+                        <el-radio  label="2">2分</el-radio>
247
+                      </td>
248
+
249
+                      <td class="saoyang">
250
+                          <div >
251
+                              <span class="rightjiange">
252
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
253
+                                      2个月内体重下降>5%
254
+                                  </label>
255
+                                  <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
256
+                                      一周内进食量较从前减少50%-75%
257
+                                  </label>
258
+                              </span>
259
+
260
+                          </div>
261
+                      </td>
262
+                    </tr>
263
+                    <tr>
264
+                      <td style="width: 100px;">
265
+                        <el-radio  label="3" >3分</el-radio>
266
+                      </td>
267
+                      <td class="saoyang">
268
+                          <div >
269
+                              <span class="rightjiange">
270
+                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
271
+                                      1个月内体重下降>5%
272
+                                  </label>
273
+                                  <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
274
+                                      一周内进食量较从前减少75%-100%
275
+                                  </label>
276
+                                  <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
277
+                                      体重指数(BMI)<18.5
278
+                                  </label>
279
+                                  <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
280
+                                      血蛋白<30g/L(得不到准确的BNI值时用白蛋白替代)
281
+                                  </label>
282
+                              </span>
283
+
284
+                          </div>
285
+                      </td>
286
+                    </tr>
287
+                    </tbody>
288
+                </table>
289
+
290
+                <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
291
+                    <thead>
292
+                        <tr>
293
+                          <th colspan="2" style="text-align: left;padding-left: 5px;">年龄评分</th>
294
+                        </tr>
295
+                    </thead>
296
+                    <tbody>
297
+                      <tr >
298
+                          <td style="width: 100px;">
299
+                            <el-radio  label="0" >0分</el-radio>
300
+                          </td>
301
+                          <td class="saoyang" style="font-size: 15px;">≤70岁</td>
302
+                      </tr>
303
+                      <tr>
304
+                          <td style="width: 100px;">
305
+                            <el-radio  label="1" >1分</el-radio>
306
+                          </td>
307
+                          <td class="saoyang" style="font-size: 15px;">>70岁</td>
308
+                      </tr>
309
+                    </tbody>
310
+                </table>
311
+              </div> 
312
+              
313
+              <div style="font-size: 16px;">打印时间:</div>
314
+            </div>
315
+          </div>
316
+        </div>
317
+      </div>
318
+    </el-dialog>
319
+    <!-- 编辑 -->
320
+    <el-dialog
321
+      title="提示"
322
+      :visible.sync="editor_dialogVisible"
323
+      width="67%"
324
+      >
325
+      <div>
326
+        <table class="tables" border="1" style="width: 100%;margin-bottom: 20px;border-collapse: collapse;">
327
+            <thead>
328
+                <tr>
329
+                    <th colspan="2" style="text-align: left;padding-left: 5px;">疾病相关评分</th>
330
+                </tr>
331
+            </thead>
332
+            <tbody>
333
+            <tr class="bg_color">
334
+                <td class="start yingyang">
335
+                  <el-radio v-model="radio" label="0" @change="radio_change">0分</el-radio>
336
+                </td>
337
+                <td class="saoyang wenzi_color">营养需要量无增加</td>
338
+            </tr>
339
+            <tr>
340
+              <td class="start">
341
+                <el-radio v-model="radio" label="1" @change="radio_change">1分</el-radio>
342
+              </td>
343
+              <td class="saoyang wenzi_color">
344
+                  营养需要量轻度增加:
345
+                  <div >
346
+                      <span v-for="item in qingdu" class="rightjiange">
347
+                          <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
348
+                      </span>
349
+                      <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
350
+                          <el-input v-model="input" placeholder="" style="width: 120px;"></el-input>
351
+                      </label>
352
+                  </div>
353
+              </td>
354
+            </tr>
355
+            <tr class="bg_color">
356
+                <td class="start">
357
+                  <el-radio v-model="radio" label="2" @change="radio_change">2分</el-radio>
358
+                </td>
359
+                <td class="saoyang wenzi_color">
360
+                    营养需要量中度增加:
361
+                    <div >
362
+                        <span v-for="item in zhdu" class="rightjiange">
363
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
364
+                        </span>
365
+                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
366
+                            <el-input v-model="input" placeholder="" style="width: 120px;"></el-input>
367
+                        </label>
368
+                    </div>
369
+                </td>
370
+            </tr>
371
+            <tr>
372
+                <td class="start">
373
+                  <el-radio v-model="radio" label="3" @change="radio_change">3分</el-radio>
374
+                </td>
375
+                <td class="saoyang wenzi_color">
376
+                    营养需要量重度增加:
377
+                    <div >
378
+                        <span v-for="item in zhongsdu" class="rightjiange">
379
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
380
+                        </span>
381
+                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
382
+                            <el-input v-model="input" placeholder="" style="width: 120px;"></el-input>
383
+                        </label>
384
+                    </div>
385
+                </td>
386
+            </tr>
387
+            </tbody>
388
+        </table>
389
+
390
+        <table class="tables" border="1" style="width: 100%;margin-bottom: 20px;border-collapse: collapse;">
391
+            <thead>
392
+                <tr>
393
+                    <th colspan="2" style="text-align: left;padding-left: 5px;">营养受损评分</th>
394
+                </tr>
395
+            </thead>
396
+            <tbody>
397
+            <tr class="bg_color">
398
+                <td class="start yingyang">
399
+                  <el-radio v-model="radio1" label="0" @change="radio_change">0分</el-radio>
400
+                </td>
401
+
402
+                <td class="saoyang wenzi_color" >无营养受损</td>
403
+            </tr>
404
+            <tr>
405
+                <td class="start">
406
+                  <el-radio v-model="radio1" label="1" @change="radio_change">1分</el-radio>
407
+                </td>
408
+
409
+                <td class="saoyang">
410
+                    <div >
411
+                        <span class="rightjiange">
412
+                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
413
+                                3个月内体重下降>5%
414
+                            </label>
415
+                            <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
416
+                                一周内进食量较从前减少25%-50%
417
+                            </label>
418
+                        </span>
419
+
420
+                    </div>
421
+                </td>
422
+            </tr>
423
+            <tr class="bg_color">
424
+              <td class="start">
425
+                <el-radio v-model="radio1" label="2" @change="radio_change">2分</el-radio>
426
+              </td>
427
+
428
+              <td class="saoyang">
429
+                  <div >
430
+                      <span class="rightjiange">
431
+                          <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
432
+                              2个月内体重下降>5%
433
+                          </label>
434
+                          <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
435
+                              一周内进食量较从前减少50%-75%
436
+                          </label>
437
+                      </span>
438
+
439
+                  </div>
440
+              </td>
441
+            </tr>
442
+            <tr>
443
+              <td class="start">
444
+                <el-radio v-model="radio1" label="3" @change="radio_change">3分</el-radio>
445
+              </td>
446
+              <td class="saoyang">
447
+                  <div >
448
+                      <span class="rightjiange">
449
+                          <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
450
+                              1个月内体重下降>5%
451
+                          </label>
452
+                          <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
453
+                              一周内进食量较从前减少75%-100%
454
+                          </label>
455
+                          <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
456
+                              体重指数(BMI)<18.5
457
+                          </label>
458
+                          <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
459
+                              血蛋白<30g/L(得不到准确的BNI值时用白蛋白替代)
460
+                          </label>
461
+                      </span>
462
+
463
+                  </div>
464
+              </td>
465
+            </tr>
466
+            </tbody>
467
+        </table>
468
+
469
+        <table class="tables" border="1" style="width: 100%;border-collapse: collapse;">
470
+            <thead>
471
+                <tr>
472
+                    <th colspan="2" style="text-align: left;padding-left: 5px;">年龄评分</th>
473
+                </tr>
474
+            </thead>
475
+            <tbody>
476
+              <tr class="bg_color ">
477
+                  <td class="start yingyang">
478
+                    <el-radio v-model="radio2" label="0" @change="radio_change">0分</el-radio>
479
+                  </td>
480
+                  <td class="saoyang" style="font-size: 15px;">≤70岁</td>
481
+              </tr>
482
+              <tr>
483
+                  <td class="start yingyang">
484
+                    <el-radio v-model="radio2" label="1" @change="radio_change">1分</el-radio>
485
+                  </td>
486
+                  <td class="saoyang" style="font-size: 15px;">>70岁</td>
487
+              </tr>
488
+            </tbody>
489
+        </table>
490
+      </div>
491
+      <div class="content_top" style="margin: 20px 0px;">
492
+          <div>
493
+              <div class="bottoms">
494
+                  <span>营养风险总评分:</span>
495
+                  <el-input v-model="nour_Totalpoints" style="width: 50px;"></el-input>分 (疾病相关评分+营养受损评分+年龄评分)
496
+              </div>
497
+
498
+              <div class="bottoms">
499
+                  <span>评估日期:</span>
500
+                  <el-date-picker
501
+                      v-model="value1"
502
+                      type="date"
503
+                      placeholder="选择日期"
504
+                      :clearable="false"
505
+                      style="width: 150px;">
506
+                  </el-date-picker>
507
+              </div>
508
+
509
+              <div class="bottoms">
510
+                  <span>评估人:</span>
511
+                  <el-select v-model="value" placeholder="请选择" style="width:120px;">
512
+                      <el-option
513
+                      v-for="item in options"
514
+                      :key="item.value"
515
+                      :label="item.label"
516
+                      :value="item.value"
517
+                      >
518
+                      </el-option>
519
+                  </el-select>
520
+              </div>
521
+          </div>
522
+          <div>
523
+              <el-button type="primary">确定</el-button>
524
+          </div>
525
+      </div>
526
+    </el-dialog>
84 527
   </div>
85 528
 </template>
86 529
 <script>
530
+import print from 'print-js'
87 531
 export default{
88 532
   data(){
89 533
     return{
90 534
       tableData:[],
91
-      multipleSelection:''
535
+      multipleSelection:[],
536
+      dialogVisible:false,
537
+      mingxi_dialogVisible:false,
538
+      editor_dialogVisible:false,
539
+      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
540
+      qingdu:['骸骨折','慢性疾病急性发作或有','COPD','血液透析','肝硬化','一般恶性肿瘤患者','糖尿病'],
541
+      zhdu:['腹部大手术','脑卒中','重度肺炎','血液恶性肿瘤'],
542
+      zhongsdu:['颅脑损伤','骨髓移植','大于APACHE分的ICU患者'],
543
+
544
+
545
+      checkList:[],
546
+      options:[],
547
+      value:'',
548
+      value1:'',
549
+      input:'',
550
+      radio:'',
551
+      radio1:'',
552
+      radio2:'',
553
+      radio_val:null,
554
+      radio1_val:null,
555
+      radio2_val:null,
92 556
     }
93 557
   },
94 558
   methods:{
@@ -97,6 +561,59 @@ export default{
97 561
     },
98 562
     handleSelectionChange(val) {
99 563
       this.multipleSelection = val;
564
+    },
565
+    open_print(ids){
566
+      if(this.multipleSelection.length==0){
567
+        this.$message('请选择需要打印的记录')
568
+      }else{
569
+        if(ids==1){
570
+          this.dialogVisible=true
571
+        }else{
572
+          this.mingxi_dialogVisible=true
573
+        }
574
+      }
575
+    },
576
+    print_pingfen(ids){
577
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
578
+      if(ids==1){
579
+        printJS({
580
+          printable: 'pingfeng',
581
+          type: 'html',
582
+          style: style,
583
+          scanStyles: false
584
+        })
585
+        this.dialogVisible=false
586
+      }else if(ids==2){
587
+        printJS({
588
+          printable: 'mingxi',
589
+          type: 'html',
590
+          style: style,
591
+          scanStyles: false
592
+        })
593
+        this.mingxi_dialogVisible=false
594
+      }
595
+
596
+    },
597
+    open_xiugai(row){
598
+      this.editor_dialogVisible=true
599
+    },
600
+    radio_change(e){
601
+      const ball=e * 1
602
+      console.log('1111',e);
603
+      if(ball == this.radio){
604
+        this.radio_val = ball
605
+      }
606
+      if(e == this.radio1){
607
+        this.radio1_val = ball
608
+      }
609
+      if(e == this.radio2){
610
+        this.radio2_val = ball
611
+      }
612
+    },
613
+  },
614
+  computed:{
615
+    nour_Totalpoints(){
616
+      return this.radio_val + this.radio1_val + this.radio2_val
100 617
     }
101 618
   }
102 619
 }
@@ -115,4 +632,60 @@ export default{
115 632
   color: gray;
116 633
   font-size: 18px;
117 634
 }
635
+input{
636
+  -webkit-appearance: checkbox;
637
+}
638
+.table tr td th {
639
+  padding: 5px;
640
+}
641
+.tables{
642
+  border: 1px solid #DCDFE6;
643
+  border-collapse:collapse;
644
+  border-spacing: 0;
645
+  thead th{
646
+      background: #0077ff9f;
647
+      color: white;
648
+      text-align: center;
649
+      height: 40px;
650
+  }
651
+  tbody td{
652
+      height: 40px;
653
+  }
654
+  .start{
655
+      text-align: center;
656
+  }
657
+  .bing{
658
+      width: 150px;
659
+      text-align: center;
660
+  }
661
+  .bg_color{
662
+      background: rgb(243, 240, 240);
663
+  }
664
+  .jiange{
665
+      margin-left: 20px;
666
+      color: black;
667
+  }
668
+  .rightjiange{
669
+    margin-right: 40px;
670
+    font-size: 15px;
671
+  }
672
+  input{
673
+      -webkit-appearance: checkbox;
674
+  }
675
+  .saoyang{
676
+        padding: 5px;
677
+  }
678
+  .yingyang{
679
+      width: 8%;
680
+  }
681
+}
682
+.bottoms{
683
+  display: inline-block;
684
+  margin-left: 10px;
685
+  margin-top: 5px;
686
+}
687
+.content_top{
688
+  display: flex;
689
+  justify-content: space-between;
690
+}
118 691
 </style>

+ 410 - 13
src/xt_pages/user/history/pruritus_history.vue View File

@@ -8,8 +8,8 @@
8 8
           <div class="history">历史评分</div>
9 9
         </div>
10 10
         <div style="margin-left: 30%;">
11
-          <el-button type="primary">打印评分</el-button>
12
-          <el-button type="primary">打印明细</el-button>
11
+          <el-button type="primary" @click="open_print(1)">打印评分</el-button>
12
+          <el-button type="primary" @click="open_print(2)">打印明细</el-button>
13 13
         </div>
14 14
       </div>
15 15
       <div>
@@ -31,15 +31,15 @@
31 31
             align="center">
32 32
           </el-table-column>
33 33
           <el-table-column
34
+            prop="time"
34 35
             label="评估日期"
35
-            width="180"
36
+            width="150"
36 37
             align="center">
37
-            <template slot-scope="scope">{{ scope.row.date }}</template>
38 38
           </el-table-column>
39 39
           <el-table-column
40 40
             prop="name"
41 41
             label="痒的部位"
42
-            width="130"
42
+            width=""
43 43
             align="center">
44 44
           </el-table-column>
45 45
           <el-table-column
@@ -51,7 +51,7 @@
51 51
           <el-table-column
52 52
             prop="name"
53 53
             label="痒的频率"
54
-            width="160"
54
+            width=""
55 55
             align="center">
56 56
           </el-table-column>
57 57
           <el-table-column
@@ -61,15 +61,15 @@
61 61
             align="center">
62 62
           </el-table-column>
63 63
           <el-table-column
64
-            prop="name"
64
+            prop="mark"
65 65
             label="总分"
66
-            width=""
66
+            width="80"
67 67
             align="center">
68 68
           </el-table-column>
69 69
           <el-table-column
70
-            prop="name"
70
+            prop="evaluate"
71 71
             label="评估护士"
72
-            width=""
72
+            width="100"
73 73
             align="center">
74 74
           </el-table-column>
75 75
           <el-table-column
@@ -79,22 +79,292 @@
79 79
             align="center"
80 80
             show-overflow-tooltip>
81 81
             <template slot-scope="scope">
82
-              <el-button type="primary" icon="el-icon-edit-outline"></el-button>
82
+              <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
83 83
               <el-button type="primary" icon="el-icon-delete"></el-button>
84 84
             </template>
85 85
           </el-table-column>
86 86
         </el-table>
87 87
       </div>
88 88
     </div>
89
-      
89
+     <!-- 打印评分 -->
90
+     <el-dialog
91
+      title="提示"
92
+      :visible.sync="dialogVisible"
93
+      width="67%"
94
+      >
95
+      <div>
96
+        <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
97
+        <div id="pingfeng" >
98
+          <div class="diedao_content" style="">
99
+            <div style="width:100%">
100
+              <div style="text-align: center;"><h1>血液透析中心营养状况评估记录</h1></div>
101
+              <div style="margin-top: 20px;font-size: 16px;">
102
+                <span>患者姓名:</span>
103
+                <span>透析号:</span>
104
+                <span>打印时间:</span>
105
+              </div>
106
+              <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
107
+                <tr>
108
+                  <td style="width:100px">评估日期</td>
109
+                  <td style="width:100px">痒的部位</td>
110
+                  <td style="width:150px">痒的程度</td>
111
+                  <td style="width:150px">痒的频率</td>
112
+                  <td style="width:150px">痒对睡眠的影响</td>
113
+                  <td style="width:80px">总分</td>
114
+                  <td style="width:100px">责任护士</td>
115
+                </tr>
116
+
117
+                <tr v-for="(item,index) in multipleSelection" :key="index">
118
+                  <td>{{ item.time }}</td>
119
+                  <td>{{ item.mark }}</td>
120
+                  <td>{{ item.mark }}</td>
121
+                  <td>{{ item.mark }}</td>
122
+                  <td>{{ item.mark }}</td>
123
+                  <td>{{ item.mark }}</td>
124
+                  <td>{{ item.evaluate }}</td>
125
+                </tr>
126
+              </table>
127
+            </div>
128
+          </div>
129
+        </div>
130
+      </div>
131
+    </el-dialog>  
132
+     <!-- 打印明细 -->
133
+     <el-dialog
134
+      title="提示"
135
+      :visible.sync="mingxi_dialogVisible"
136
+      width="67%"
137
+      >
138
+      <div>
139
+        <div style="overflow: hidden;">
140
+          <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
141
+        </div>
142
+
143
+        <div id="mingxi" >
144
+          <div class="diedao_content" style="">
145
+            <div style="width:100%;margin-top: 20px;">
146
+              <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
147
+              <div style="margin-top: 20px;font-size: 16px;">
148
+                <span>患者姓名:</span>
149
+                <span>透析号:</span>
150
+                <span>评估日期:</span>
151
+                <span>评估护士:</span>
152
+                <span>总分:</span>
153
+              </div>
154
+              <div>
155
+                <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
156
+                  <thead>
157
+                    <tr>
158
+                      <th style="width: 10%;">项目</th>
159
+                      <th style="width: 57%;">结果</th>
160
+                      <th style="width: 3%;">得分</th>
161
+                      <th style="width: 30%;">说明</th>
162
+                    </tr>
163
+                  </thead>
164
+                  <tbody>
165
+                    <tr>
166
+                      <td class="start">痒的部位</td>
167
+                      <td>
168
+                          <div class="jiange">
169
+                              <span v-for="item in buwei" class="rightjiange" >
170
+                                  <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
171
+                              </span> 
172
+                              <label ><input type="checkbox" name="ball" value="其他" />
173
+                                  &nbsp;其他 <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
174
+                              </label>
175
+                          </div>
176
+                      </td>
177
+                      <td class="start">{{checked_points}}</td>
178
+                      <td class="saoyang">瘙痒部位:计分范围1~3分一个部位瘙痒计1分,最多得3分,选全身计3分</td>
179
+                    </tr>
180
+                    <tr>
181
+                      <td class="start">痒的程度</td>
182
+                      <td>
183
+                          <div class="jiange">
184
+                              <el-radio-group  >
185
+                                  <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
186
+                              </el-radio-group>
187
+                          </div>
188
+                      </td> 
189
+                      <td class="start">{{radio1_points}}</td>
190
+                      <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>                          
191
+                    </tr>
192
+                    <tr>
193
+                      <td class="start">痒的频率</td>
194
+                      <td>
195
+                          <div  class="jiange">
196
+                              <el-radio-group >
197
+                                  <el-radio v-for="(item,index ) in pinlv" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
198
+                              </el-radio-group>
199
+                          </div>
200
+                      </td>
201
+                      <td class="start">{{radio2_points}}</td>
202
+                      <td class="saoyang">瘙痒频率:计分范围1~5分瘙痒有过4次,每次<10min或有1次瘙痒>10min计1分,以此类推,一直持续计5分</td>
203
+                    </tr>
204
+                    <tr>
205
+                      <td class="start">痒对睡眠的影响</td>
206
+                      <td>
207
+                          <div  class="jiange">
208
+                              <el-radio-group >
209
+                                  <el-radio v-for="(item,index ) in yingxiang" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
210
+                              </el-radio-group>
211
+                          </div>
212
+                      </td>
213
+                      <td class="start">{{radio3_points}}</td>
214
+                      <td class="saoyang">
215
+                          瘙痒对睡眠的影响:计分范围0~6分无影响0分,一夜痒醒1次计2分,一夜痒醒2次计4分,一夜痒醒3次以上计6分
216
+                      </td>
217
+                    </tr>
218
+                  </tbody>
219
+                </table>
220
+              </div>
221
+            </div>
222
+            <div style="font-size: 16px;">打印时间:</div>
223
+          </div>
224
+        </div>
225
+      </div>
226
+    </el-dialog>
227
+    <!-- 编辑 -->
228
+    <el-dialog
229
+      title="提示"
230
+      :visible.sync="editor_dialogVisible"
231
+      width="67%"
232
+      >
233
+      <div>
234
+          <table class="table" border="1" style="width: 100%;">
235
+            <thead>
236
+              <tr>
237
+                <th style="width: 10%;">项目</th>
238
+                <th style="width: 57%;">结果</th>
239
+                <th style="width: 3%;">得分</th>
240
+                <th style="width: 30%;">说明</th>
241
+              </tr>
242
+            </thead>
243
+            <tbody>
244
+              <tr>
245
+                <td class="start">痒的部位</td>
246
+                <td>
247
+                    <div class="jiange">
248
+                        <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
249
+                            <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
250
+                        </span> 
251
+                        <label @change="handleCheckedCitiesChange"><input type="checkbox" name="ball" value="其他" />
252
+                            &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
253
+                        </label>
254
+                    </div>
255
+                </td>
256
+                <td class="start">{{checked_points}}</td>
257
+                <td class="saoyang">瘙痒部位:计分范围1~3分一个部位瘙痒计1分,最多得3分,选全身计3分</td>
258
+              </tr>
259
+              <tr>
260
+                <td class="start">痒的程度</td>
261
+                <td>
262
+                    <div class="jiange">
263
+                        <el-radio-group v-model="radio1" @change="radiochecked">
264
+                            <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
265
+                        </el-radio-group>
266
+                    </div>
267
+                </td> 
268
+                <td class="start">{{radio1_points}}</td>
269
+                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>                          
270
+              </tr>
271
+              <tr>
272
+                <td class="start">痒的频率</td>
273
+                <td>
274
+                    <div  class="jiange">
275
+                        <el-radio-group v-model="radio2" @change="radiochecked">
276
+                            <el-radio v-for="(item,index ) in pinlv" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
277
+                        </el-radio-group>
278
+                    </div>
279
+                </td>
280
+                <td class="start">{{radio2_points}}</td>
281
+                <td class="saoyang">瘙痒频率:计分范围1~5分瘙痒有过4次,每次<10min或有1次瘙痒>10min计1分,以此类推,一直持续计5分</td>
282
+              </tr>
283
+              <tr>
284
+                <td class="start">痒对睡眠的影响</td>
285
+                <td>
286
+                    <div  class="jiange">
287
+                        <el-radio-group v-model="radio3" @change="radiochecked">
288
+                            <el-radio v-for="(item,index ) in yingxiang" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
289
+                        </el-radio-group>
290
+                    </div>
291
+                </td>
292
+                <td class="start">{{radio3_points}}</td>
293
+                <td class="saoyang">
294
+                    瘙痒对睡眠的影响:计分范围0~6分无影响0分,一夜痒醒1次计2分,一夜痒醒2次计4分,一夜痒醒3次以上计6分
295
+                </td>
296
+              </tr>
297
+            </tbody>
298
+          </table>
299
+        </div>
300
+
301
+        <p style="margin: 20px 0px 10px 0px;">备注:总分得分范围3(轻度瘙痒)~19分(最大程度瘙痒)</p>
302
+        <div class="content_top" style="margin-bottom: 10px ;">
303
+          <div>
304
+            <div class="bottoms">
305
+              <span>总分:</span>
306
+              <el-input v-model="pruritus_Totalpoints" style="width: 100px;"></el-input>分
307
+            </div>
308
+            <div class="bottoms">
309
+              <span>评估日期:</span>
310
+              <el-date-picker
311
+                  v-model="value1"
312
+                  type="date"
313
+                  placeholder="选择日期"
314
+                  :clearable="false"
315
+                  style="width: 150px;">
316
+              </el-date-picker>
317
+            </div>
318
+
319
+            <div class="bottoms">
320
+              <span>评估人:</span>
321
+              <el-select v-model="value" placeholder="请选择" >
322
+                  <el-option
323
+                  v-for="item in options"
324
+                  :key="item.value"
325
+                  :label="item.label"
326
+                  :value="item.value"
327
+                  style="width:150px;">
328
+                  </el-option>
329
+              </el-select>
330
+            </div>
331
+          </div>
332
+          <div style="margin:5px 10px;">
333
+              <el-button type="primary">确认</el-button>
334
+          </div>
335
+        </div>   
336
+    </el-dialog>  
90 337
   </div>
91 338
 </template>
92 339
 <script>
340
+import print from 'print-js'
93 341
 export default{
94 342
   data(){
95 343
     return{
96 344
       tableData:[],
97
-      multipleSelection:''
345
+      multipleSelection:[],
346
+      dialogVisible:false,
347
+      mingxi_dialogVisible:false,
348
+      editor_dialogVisible:false,
349
+      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
350
+
351
+      buwei:['躯体','上肢','下肢','头皮','全身'],
352
+      chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
353
+      pinlv:['很少时候(1)','较少时候(2)','较多时候(3)','很多时候(4)','一直持续(5)'],
354
+      yingxiang:['无影响(0)','一夜痒醒一次(2)','一夜痒醒两次(4)','一夜痒醒三次(6)'],
355
+      checkList:[],
356
+      radio1:'',
357
+      radio2:'',
358
+      radio3:'',
359
+      input:'',
360
+      ball:'',
361
+      radio1_points:0,
362
+      radio2_points:0,
363
+      radio3_points:0,
364
+      checked_points:0,
365
+      options:[],
366
+      value:'',
367
+      value1:'',
98 368
     }
99 369
   },
100 370
   methods:{
@@ -103,6 +373,83 @@ export default{
103 373
     },
104 374
     handleSelectionChange(val) {
105 375
       this.multipleSelection = val;
376
+    },
377
+    open_print(ids){
378
+      if(this.multipleSelection.length==0){
379
+        this.$message('请选择需要打印的记录')
380
+      }else{
381
+        if(ids==1){
382
+          this.dialogVisible=true
383
+        }else{
384
+          this.mingxi_dialogVisible=true
385
+        }
386
+      }
387
+    },
388
+    print_pingfen(ids){
389
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
390
+      if(ids==1){
391
+        printJS({
392
+          printable: 'pingfeng',
393
+          type: 'html',
394
+          style: style,
395
+          scanStyles: false
396
+        })
397
+        this.dialogVisible=false
398
+      }else{
399
+        printJS({
400
+          printable: 'mingxi',
401
+          type: 'html',
402
+          style: style,
403
+          scanStyles: false
404
+        })
405
+        this.mingxi_dialogVisible=false
406
+      }
407
+      
408
+    },
409
+    open_xiugai(row){
410
+      this.editor_dialogVisible=true
411
+    },
412
+    handleCheckedCitiesChange(e){
413
+      this.ball = e.target.value
414
+      console.log('1111111',this.ball)
415
+      if(e.target.checked==true){
416
+        if(e.target.value == '全身'){
417
+          this.checked_points = 3
418
+          // this.pruritus_Totalpoints=this.pruritus_Totalpoints + this.checked_points
419
+        }else{
420
+          var checked =1
421
+          this.checked_points = this.checked_points + checked
422
+          // this.pruritus_Totalpoints=this.pruritus_Totalpoints + checked
423
+        }
424
+      }else{
425
+        if(e.target.value == '全身'){
426
+          this.checked_points = 0
427
+          // this.pruritus_Totalpoints=this.pruritus_Totalpoints - 3
428
+        }else{
429
+          var checked =1
430
+          this.checked_points = this.checked_points - checked
431
+          // this.pruritus_Totalpoints=this.pruritus_Totalpoints - checked
432
+        }
433
+      }
434
+    },
435
+    radiochecked(e){
436
+      const bal=e
437
+      const jiequ =(bal.split('(')[1].split(')')[0]) * 1
438
+      if(bal == this.radio1){
439
+        this.radio1_points =jiequ
440
+      }
441
+      if(bal == this.radio2){
442
+        this.radio2_points =jiequ
443
+      }
444
+      if(bal == this.radio3){
445
+        this.radio3_points =jiequ
446
+      }
447
+    },
448
+    
449
+  },
450
+  computed:{
451
+    pruritus_Totalpoints(){
452
+      return this.checked_points + this.radio1_points + this.radio2_points +this.radio3_points
106 453
     }
107 454
   }
108 455
 }
@@ -121,4 +468,54 @@ export default{
121 468
   color: gray;
122 469
   font-size: 18px;
123 470
 }
471
+.table tr td th {
472
+  padding: 5px;
473
+}
474
+.content_top{
475
+      display: flex;
476
+      justify-content: space-between; 
477
+}
478
+.table{
479
+    border: 1px solid #DCDFE6;
480
+    border-collapse:collapse;
481
+    border-spacing: 0;
482
+    thead th{
483
+        background: #0077ff9f;
484
+        color: white;
485
+        text-align: center;
486
+        height: 40px;
487
+    }
488
+    tbody td{
489
+        height: 40px;
490
+    }
491
+    .start{
492
+        text-align: center;
493
+    }
494
+    .bing{
495
+        width: 150px;
496
+        text-align: center;
497
+    }
498
+    .bg_color{
499
+        background: rgb(243, 240, 240);
500
+    }
501
+    .jiange{
502
+        margin-left: 20px;
503
+        color: black;
504
+    }
505
+    .rightjiange{
506
+      margin-right: 40px;
507
+      font-size: 15px;
508
+    }
509
+    input{
510
+        -webkit-appearance: checkbox;
511
+    }
512
+    .saoyang{
513
+          padding: 5px;
514
+    }
515
+}
516
+.bottoms{
517
+    display: inline-block;
518
+    margin-left: 10px;
519
+    margin-top: 5px; 
520
+}
124 521
 </style>

+ 57 - 33
src/xt_pages/user/history/tumble_history.vue View File

@@ -2,14 +2,15 @@
2 2
 <template>
3 3
   <div class="patient-container">
4 4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6 6
         <div style="width: 50%;">
7 7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8 8
           <div class="history">历史评分</div>
9 9
         </div>
10 10
         <div style="margin-left: 30%;">
11
-          <el-button type="primary" @click="open_pingfen">打印评分</el-button>
12
-          <el-button type="primary" @click="open_mingxi">打印明细</el-button>
11
+          <el-button type="primary" @click="open_pingfen(1)">打印评分</el-button>
12
+          <el-button type="primary" @click="open_pingfen(2)">打印评分</el-button>
13
+          <!-- <el-button type="primary" @click="open_mingxi">打印明细</el-button> -->
13 14
         </div>
14 15
       </div>
15 16
       <div>
@@ -68,7 +69,7 @@
68 69
         </el-table>
69 70
       </div>
70 71
     </div>
71
-      
72
+
72 73
     <!-- 打印评分 -->
73 74
     <el-dialog
74 75
       title="提示"
@@ -77,9 +78,9 @@
77 78
       >
78 79
       <div>
79 80
         <div style="overflow: hidden;">
80
-          <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
81
+          <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
81 82
         </div>
82
-        
83
+
83 84
         <div id="pingfeng" >
84 85
           <div class="diedao_content" style="">
85 86
             <div style="width:100%;margin-top: 20px;">
@@ -107,7 +108,7 @@
107 108
           </div>
108 109
         </div>
109 110
       </div>
110
-      
111
+
111 112
       <span slot="footer" class="dialog-footer">
112 113
         <el-button @click="dialogVisible = false">取 消</el-button>
113 114
         <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
@@ -120,10 +121,10 @@
120 121
       width="67%">
121 122
       <div>
122 123
         <div style="overflow: hidden;">
123
-          <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
124
+          <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
124 125
         </div>
125
-        
126
-        <div id="pingfeng" >
126
+
127
+        <div id="mingxi" >
127 128
           <div class="diedao_content" style="">
128 129
             <div style="width:100%;margin-top: 20px;">
129 130
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
@@ -571,7 +572,7 @@
571 572
               </table>
572 573
             </div>
573 574
           </div>
574
-          
575
+
575 576
           <div class="content_top" style="margin-top: 10px;">
576 577
             <div style="flex: 1;">
577 578
               <span>评估日期:</span>
@@ -598,7 +599,7 @@
598 599
             <div style="flex: 1;">
599 600
               <el-button type="primary" @click="erci_editor">确认</el-button>
600 601
             </div>
601
-            
602
+
602 603
           </div>
603 604
         </div>
604 605
       </div>
@@ -644,28 +645,51 @@ export default{
644 645
       this.multipleSelection=val;
645 646
       console.log('0000',this.multipleSelection);
646 647
     },
647
-    open_pingfen(){
648
-      if(this.multipleSelection.length==0){
649
-        this.$message('至少选择一条数据')
650
-      }else{
651
-        this.dialogVisible=true
648
+    open_pingfen(ids){
649
+      if(ids==1){
650
+        if(this.multipleSelection.length==0){
651
+          this.$message('至少选择一条数据')
652
+        }else{
653
+          this.dialogVisible=true
654
+        }
652 655
       }
653
-    },
654
-    open_mingxi(){
655
-      if(this.multipleSelection.length==0){
656
-        this.$message('至少选择一条数据')
657
-      }else{
658
-        this.mingxi_dialogVisible=true
656
+      if(ids==2){
657
+        if(this.multipleSelection.length==0){
658
+          this.$message('至少选择一条数据')
659
+        }else{
660
+          this.mingxi_dialogVisible=true
661
+        }
659 662
       }
663
+
660 664
     },
661
-    print_pingfen(){
665
+    // open_mingxi(){
666
+    //   if(this.multipleSelection.length==0){
667
+    //     this.$message('至少选择一条数据')
668
+    //   }else{
669
+    //     this.mingxi_dialogVisible=true
670
+    //   }
671
+    // },
672
+    print_pingfen(ids){
662 673
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
663
-      printJS({
664
-        printable: 'pingfeng',
665
-        type: 'html',
666
-        style: style,
667
-        scanStyles: false
668
-      })
674
+      if(ids==1){
675
+        printJS({
676
+          printable: 'pingfeng',
677
+          type: 'html',
678
+          style: style,
679
+          scanStyles: false
680
+        })
681
+        this.dialogVisible=false
682
+      }
683
+      if(ids==2){
684
+        printJS({
685
+          printable: 'mingxi',
686
+          type: 'html',
687
+          style: style,
688
+          scanStyles: false
689
+        })
690
+        this.mingxi_dialogVisible=false
691
+      }
692
+
669 693
     },
670 694
     open_editor(row){
671 695
       this.bianji_dialogVisible=true
@@ -711,8 +735,8 @@ export default{
711 735
 }
712 736
 .diedao_content{
713 737
   background-color: white;
714
-  width:960px;  
715
-  margin:0 auto; 
738
+  width:960px;
739
+  margin:0 auto;
716 740
   padding: 0 0 20px 0;
717 741
 }
718 742
 .tables tr td{
@@ -798,4 +822,4 @@ p{
798 822
   height: 40px;
799 823
   padding: 5px;
800 824
 }
801
-</style>
825
+</style>