Browse Source

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

陈少旭 1 year ago
parent
commit
9df8ec6c20
73 changed files with 6007 additions and 2080 deletions
  1. 726 726
      package-lock.json
  2. 18 0
      src/api/advice.js
  3. 4 4
      src/api/role/admin.js
  4. 2 2
      src/api/stock.js
  5. 9 0
      src/router/modules/dialysis.js
  6. 12 0
      src/router/modules/workforce.js
  7. 25 18
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  8. 1 0
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftyThree.vue
  9. 13 2
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  10. 3 3
      src/xt_pages/dialysis/details/index.vue
  11. 41 16
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  12. 14 2
      src/xt_pages/dialysis/newDoctorAdvice.vue
  13. 403 0
      src/xt_pages/dialysis/patientDoctorAdvice.vue
  14. 6 108
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  15. 3 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThreeAdvice.vue
  16. 16 49
      src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue
  17. 8 1
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  18. 123 2
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  19. 18 79
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue
  20. 75 36
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue
  21. 1457 0
      src/xt_pages/dialysis/template/DialysisPrintOrderZero.vue
  22. 8 12
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  23. 21 12
      src/xt_pages/hospitalStation/doctorDesk.vue
  24. 3 3
      src/xt_pages/hospitalStation/print.vue
  25. 6 4
      src/xt_pages/outpatientCharges/allListPrint.vue
  26. 189 0
      src/xt_pages/outpatientCharges/allListTemplate/printTwo.vue
  27. 8 3
      src/xt_pages/outpatientCharges/invoicePrint.vue
  28. 53 46
      src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue
  29. 7 8
      src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue
  30. 22 7
      src/xt_pages/outpatientCharges/statementPrint.vue
  31. 1 1
      src/xt_pages/outpatientCharges/statementTemplate/printFive.vue
  32. 105 112
      src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue
  33. 9 5
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  34. 19 13
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  35. 4 4
      src/xt_pages/outpatientDoctorStation/print.vue
  36. 54 2
      src/xt_pages/outpatientDoctorStation/template/printFour.vue
  37. 1 1
      src/xt_pages/outpatientDoctorStation/template/printOne.vue
  38. 8 6
      src/xt_pages/role/admin.vue
  39. 1 1
      src/xt_pages/role/components/AdminInfoForm.vue
  40. 9 0
      src/xt_pages/sign/signIn.vue
  41. 3 0
      src/xt_pages/stock/drugs/drugStockInOrderAdd.vue
  42. 3 0
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  43. 6 0
      src/xt_pages/stock/stockFlow.vue
  44. 14 2
      src/xt_pages/stock/stockOutOrderAdd.vue
  45. 8 0
      src/xt_pages/stock/stockOutOrderEdit.vue
  46. 62 62
      src/xt_pages/user/components/PatientSidebar.vue
  47. 1 1
      src/xt_pages/user/evaluationtool/Cathetershedding.vue
  48. 4 4
      src/xt_pages/user/evaluationtool/Fallassessment.vue
  49. 99 22
      src/xt_pages/user/evaluationtool/Glasgow.vue
  50. 62 25
      src/xt_pages/user/evaluationtool/Muscleforce.vue
  51. 122 27
      src/xt_pages/user/evaluationtool/OHpressuresore.vue
  52. 14 8
      src/xt_pages/user/evaluationtool/RassAssessment.vue
  53. 67 50
      src/xt_pages/user/evaluationtool/behavior.vue
  54. 239 184
      src/xt_pages/user/evaluationtool/dailyLife.vue
  55. 38 5
      src/xt_pages/user/evaluationtool/hemodialysis.vue
  56. 172 139
      src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue
  57. 45 19
      src/xt_pages/user/evaluationtool/pressuresore.vue
  58. 110 24
      src/xt_pages/user/evaluationtool/pruritusAssessment.vue
  59. 93 35
      src/xt_pages/user/history/Children_history.vue
  60. 65 12
      src/xt_pages/user/history/Pressure_history.vue
  61. 31 3
      src/xt_pages/user/history/RASS_history.vue
  62. 28 4
      src/xt_pages/user/history/daoguan_history.vue
  63. 150 70
      src/xt_pages/user/history/date_history.vue
  64. 38 12
      src/xt_pages/user/history/mind_history.vue
  65. 34 8
      src/xt_pages/user/history/nourishment_history.vue
  66. 45 18
      src/xt_pages/user/history/pruritus_history.vue
  67. 54 12
      src/xt_pages/user/history/tumble_history.vue
  68. 1 1
      src/xt_pages/user/inspection.vue
  69. 12 12
      src/xt_pages/workforce/components/ScheduleItem.vue
  70. 29 10
      src/xt_pages/workforce/components/nextTableWeeks.vue
  71. 36 20
      src/xt_pages/workforce/components/tableWeeks.vue
  72. 2 3
      src/xt_pages/workforce/remind.vue
  73. 815 0
      src/xt_pages/workforce/remind_print_setting_two.vue

File diff suppressed because it is too large
+ 726 - 726
package-lock.json


+ 18 - 0
src/api/advice.js View File

583
     method: 'get',
583
     method: 'get',
584
     params: params
584
     params: params
585
   })
585
   })
586
+}
587
+
588
+export function getPatientsByName(params){
589
+   
590
+  return request({
591
+    url:"/api/schedule/getpatientbyname",
592
+    method:"get",
593
+    params:params,
594
+  })
595
+}
596
+
597
+export function getDocAdviceByPatientId(params){
598
+  
599
+  return request({
600
+    url:"/api/schedule/getdocadvicebypatientid",
601
+    method:"get",
602
+    params:params,
603
+  })
586
 }
604
 }

+ 4 - 4
src/api/role/admin.js View File

276
 }
276
 }
277
 
277
 
278
 export function UploadPrintOrder(data){
278
 export function UploadPrintOrder(data){
279
-  
279
+  console.log("DATAOWOWOWOW",data)
280
   return request({
280
   return request({
281
     url:"/api/device/uploadprintorder",
281
     url:"/api/device/uploadprintorder",
282
-    method:"Post",
282
+    method:"post",
283
     data:data,
283
     data:data,
284
   })
284
   })
285
 }
285
 }
286
 
286
 
287
-export function CreateQianshuUserName(data){
287
+export function CreateQianshuUserName(admin_user_id,data){
288
   
288
   
289
   return request({
289
   return request({
290
-    url:"/api/device/createqianshuusername",
290
+    url:"/api/device/createqianshuusername?admin_user_id="+admin_user_id,
291
     method:"Post",
291
     method:"Post",
292
     data:data,
292
     data:data,
293
   })
293
   })

+ 2 - 2
src/api/stock.js View File

273
   })
273
   })
274
 }
274
 }
275
 
275
 
276
-export function postWarehouseOut(params, warehousing_time, dealer_id, manufacturer_id, type, storehouse_id) {
276
+export function postWarehouseOut(params, warehousing_time, dealer_id, manufacturer_id, type, storehouse_id,warehouseOut_id) {
277
   return request({
277
   return request({
278
-    url: '/api/warehouseout/create?warehousing_out_time=' + warehousing_time + '&dealer_id=' + dealer_id + '&manufacturer_id=' + manufacturer_id + '&type=' + type + '&storehouse_id=' + storehouse_id,
278
+    url: '/api/warehouseout/create?warehousing_out_time=' + warehousing_time + '&dealer_id=' + dealer_id + '&manufacturer_id=' + manufacturer_id + '&type=' + type + '&storehouse_id=' + storehouse_id+"&warehouseOut_id="+warehouseOut_id,
279
     method: 'post',
279
     method: 'post',
280
     data: params
280
     data: params
281
   })
281
   })

+ 9 - 0
src/router/modules/dialysis.js View File

56
         noCache: true
56
         noCache: true
57
       }
57
       }
58
     },
58
     },
59
+    {
60
+      path: '/dialysis/patientDoctorAdvice',
61
+      component: () => import('@/xt_pages/dialysis/patientDoctorAdvice'),
62
+      name: '医嘱统计',
63
+      meta: {
64
+        title: '医嘱统计',
65
+        noCache: true
66
+      }
67
+    },
59
     {
68
     {
60
       path: '/dialysis/longDoctorAdvice',
69
       path: '/dialysis/longDoctorAdvice',
61
       component: () => import('@/xt_pages/dialysis/longDoctorAdvice'),
70
       component: () => import('@/xt_pages/dialysis/longDoctorAdvice'),

+ 12 - 0
src/router/modules/workforce.js View File

143
       noCache: true
143
       noCache: true
144
     }
144
     }
145
   },
145
   },
146
+  // id 10469
147
+  {
148
+    path: '/schedule/remind/print/setting/two',
149
+    component: () => import('@/xt_pages/workforce/remind_print_setting_two'),
150
+    name: 'remind_print_setting_two',
151
+    hidden: true,
152
+    is_menu: false,
153
+    meta: {
154
+      title: 'remind_print_setting_two',
155
+      noCache: true
156
+    }
157
+  },
146
   {
158
   {
147
     path: '/scheduleTablePrint',
159
     path: '/scheduleTablePrint',
148
     component: () => import('@/xt_pages/workforce/scheduleTablePrint'),
160
     component: () => import('@/xt_pages/workforce/scheduleTablePrint'),

+ 25 - 18
src/xt_pages/dialysis/batch_print/batch_print_order.vue View File

48
48
49
             </div>
49
             </div>
50
             <div class="inline_block" style="margin-left: 25px">
50
             <div class="inline_block" style="margin-left: 25px">
51
-              科室:
51
+              科室22
52
               <check-box
52
               <check-box
53
                 text="门诊透析"
53
                 text="门诊透析"
54
                 :checked="record.patient.source == 1"
54
                 :checked="record.patient.source == 1"
662
                     <div class="row" style="padding: 2px 0;">
662
                     <div class="row" style="padding: 2px 0;">
663
                       <div class="inline_block">
663
                       <div class="inline_block">
664
                         抗凝方式:
664
                         抗凝方式:
665
-                        <check-box
666
-                          text="普通肝素"
667
-                          :checked="
668
-                            isCheckBoxChecked(
669
-                              record.prescription,
670
-                              'anticoagulant',
671
-                              2
672
-                            )
673
-                          "
674
-                        ></check-box>
665
+                        <check-box text="普通肝素" :checked="isCheckBoxChecked(record.prescription,'anticoagulant',2)"></check-box>
666
+                        <check-box text="肝素钙注射液" :checked="isCheckBoxChecked(record.prescription,'anticoagulant',14)"></check-box>
675
                         ( 首剂
667
                         ( 首剂
668
+                        <div class="under_line" style="width: 50px;">
669
+                          {{isCheckBoxChecked( record.prescription,"anticoagulant",2)? record.prescription.anticoagulant_shouji: ""}}
670
+                          {{isCheckBoxChecked( record.prescription,"anticoagulant",14)? record.prescription.anticoagulant_shouji: ""}}
671
+                        </div>
672
+                        mg&nbsp; 维持
676
                         <div class="under_line" style="width: 50px;">
673
                         <div class="under_line" style="width: 50px;">
677
                           {{
674
                           {{
678
                             isCheckBoxChecked(
675
                             isCheckBoxChecked(
680
                               "anticoagulant",
677
                               "anticoagulant",
681
                               2
678
                               2
682
                             )
679
                             )
683
-                              ? record.prescription.anticoagulant_shouji
680
+                              ? record.prescription.anticoagulant_weichi
684
                               : ""
681
                               : ""
685
                           }}
682
                           }}
686
-                        </div>
687
-                        mg&nbsp; 维持
688
-                        <div class="under_line" style="width: 50px;">
689
                           {{
683
                           {{
690
                             isCheckBoxChecked(
684
                             isCheckBoxChecked(
691
                               record.prescription,
685
                               record.prescription,
692
                               "anticoagulant",
686
                               "anticoagulant",
693
-                              2
687
+                              14
694
                             )
688
                             )
695
                               ? record.prescription.anticoagulant_weichi
689
                               ? record.prescription.anticoagulant_weichi
696
                               : ""
690
                               : ""
734
                             "
728
                             "
735
                           ></check-box>
729
                           ></check-box>
736
                         </span>
730
                         </span>
737
-                        <div class="under_line" style="width: 40px;">
731
+                        <div class="under_line" style="width: 50px;">
738
                           <span v-if="record.prescription.anticoagulant == 3"
732
                           <span v-if="record.prescription.anticoagulant == 3"
739
                             >{{
733
                             >{{
740
                               isCheckBoxChecked(
734
                               isCheckBoxChecked(
768
                                 : ""
762
                                 : ""
769
                             }}
763
                             }}
770
                           </span>
764
                           </span>
765
+                          <span v-if="record.prescription.anticoagulant == 14"
766
+                            >{{
767
+                              isCheckBoxChecked(
768
+                                record.prescription,
769
+                                "anticoagulant",
770
+                                14
771
+                              )
772
+                                ? record.prescription.anticoagulant_zongliang
773
+                                : ""
774
+                            }}
775
+                          </span>
771
                         </div>
776
                         </div>
772
                         IU
777
                         IU
773
                         <check-box
778
                         <check-box
1476
                         "
1481
                         "
1477
                       ></check-box>
1482
                       ></check-box>
1478
                       ( 科室
1483
                       ( 科室
1479
-                      <div class="under_line" style="width: 200px;"></div>
1484
+                      <div class="under_line" style="width: 200px;">
1485
+                        {{ record.assessment_after_dislysis.inpatient_department }}
1486
+                      </div>
1480
                       交待病房护士/患者/陪人观察内容:
1487
                       交待病房护士/患者/陪人观察内容:
1481
                       <check-box
1488
                       <check-box
1482
                         text="意识状态"
1489
                         text="意识状态"

+ 1 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyThree.vue View File

848
                         :src="setAdminUserES(advice[0]&&advice[0].execution_staff)"
848
                         :src="setAdminUserES(advice[0]&&advice[0].execution_staff)"
849
                         alt=""
849
                         alt=""
850
                         srcset=""
850
                         srcset=""
851
+                        v-else
851
                       />
852
                       />
852
                     </td>
853
                     </td>
853
                     <td style="line-height: 30px" width="90">
854
                     <td style="line-height: 30px" width="90">

+ 13 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

1489
                             }}
1489
                             }}
1490
                           </td>
1490
                           </td>
1491
                           <td>
1491
                           <td>
1492
-                            {{
1492
+                            <span v-if="org_id ==10551">
1493
+                              {{
1493
                               monitor_record.venous_pressure
1494
                               monitor_record.venous_pressure
1494
                                 ? monitor_record.venous_pressure
1495
                                 ? monitor_record.venous_pressure
1495
                                 : "/"
1496
                                 : "/"
1496
-                            }}
1497
+                              }}
1498
+                            </span>
1499
+
1500
+                            <span v-if="org_id !=10551">
1501
+                              {{
1502
+                              monitor_record.venous_pressure
1503
+                                ? monitor_record.venous_pressure
1504
+                                : ""
1505
+                              }}
1506
+                            </span>
1507
+                           
1497
                           </td>
1508
                           </td>
1498
                           <td>
1509
                           <td>
1499
                             {{
1510
                             {{

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

459
             <div style="border: 1px solid black;width: 82%;"  >
459
             <div style="border: 1px solid black;width: 82%;"  >
460
               <div style="margin: 5px 0;">
460
               <div style="margin: 5px 0;">
461
                 <span style="font-weight: bolder;">{{main_collection.patient.name}} </span>&nbsp;&nbsp;
461
                 <span style="font-weight: bolder;">{{main_collection.patient.name}} </span>&nbsp;&nbsp;
462
+                 
463
+                <span>
462
                   <span v-if="main_collection.patient.gender==1">男</span>
464
                   <span v-if="main_collection.patient.gender==1">男</span>
463
                   <span v-if="main_collection.patient.gender==2">女</span>
465
                   <span v-if="main_collection.patient.gender==2">女</span>
464
-                <span>
465
-
466
                 </span>&nbsp;&nbsp;
466
                 </span>&nbsp;&nbsp;
467
                 <span>{{getNewAge(main_collection.patient.id_card_no)  }}岁</span>&nbsp;&nbsp;<span>{{getTimes(main_collection.schedule_date)}}</span>&nbsp;&nbsp;
467
                 <span>{{getNewAge(main_collection.patient.id_card_no)  }}岁</span>&nbsp;&nbsp;<span>{{getTimes(main_collection.schedule_date)}}</span>&nbsp;&nbsp;
468
                 <span></span>
468
                 <span></span>
489
               </div>
489
               </div>
490
               <div style="display: flex;margin: 5px 0;">
490
               <div style="display: flex;margin: 5px 0;">
491
                 <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
491
                 <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
492
-                <div style="flex: 1;">置换液总量:{{main_collection.prescription.displace_liqui_value}}L</div>
492
+                <div style="flex: 1;">置换液总量:<span v-if="main_collection.prescription.displace_liqui_value>0">{{main_collection.prescription.displace_liqui_value}}</span>L</div>
493
               </div>
493
               </div>
494
               <div style="margin: 5px 0;">
494
               <div style="margin: 5px 0;">
495
                 <div>透析液类型:
495
                 <div>透析液类型:

+ 41 - 16
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

110
           org_template_info.template_id == 50 ||
110
           org_template_info.template_id == 50 ||
111
           org_template_info.template_id == 52 ||
111
           org_template_info.template_id == 52 ||
112
           org_template_info.template_id == 53  ||
112
           org_template_info.template_id == 53  ||
113
-          org_template_info.template_id == 64 )
113
+          org_template_info.template_id == 64 ||
114
+          org_template_info.template_id == 199 )
114
         "
115
         "
115
       >
116
       >
116
       <div>
117
       <div>
1309
             v-if="org_template_info.template_id == 68"
1310
             v-if="org_template_info.template_id == 68"
1310
           >
1311
           >
1311
           </DialysisPrintOrderSixtyeight>
1312
           </DialysisPrintOrderSixtyeight>
1313
+
1314
+          <DialysisPrintOrderZero
1315
+            v-bind:childResponse="childResponse"
1316
+            v-if="org_template_info.template_id == 199"
1317
+          >
1318
+          </DialysisPrintOrderZero>
1312
         </div>
1319
         </div>
1313
       </el-container>
1320
       </el-container>
1314
     </div>
1321
     </div>
1395
 import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix.vue'
1402
 import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix.vue'
1396
 import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven.vue'
1403
 import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven.vue'
1397
 import DialysisPrintOrderSixtyeight from './template/DialysisPrintOrderSixtyeight.vue'
1404
 import DialysisPrintOrderSixtyeight from './template/DialysisPrintOrderSixtyeight.vue'
1405
+import DialysisPrintOrderZero from './template/DialysisPrintOrderZero.vue'
1398
 export default {
1406
 export default {
1399
   name: "dialysisPrintOrder",
1407
   name: "dialysisPrintOrder",
1400
   components: {
1408
   components: {
1466
     DialysisPrintOrderSixtyFive,
1474
     DialysisPrintOrderSixtyFive,
1467
     DialysisPrintOrderSixtysix,
1475
     DialysisPrintOrderSixtysix,
1468
     DialysisPrintOrderSixtyeight,
1476
     DialysisPrintOrderSixtyeight,
1477
+    DialysisPrintOrderZero,
1469
     LabelBox,
1478
     LabelBox,
1470
     BreadCrumb,
1479
     BreadCrumb,
1471
     // DialysisPrintOrderSixtyFive
1480
     // DialysisPrintOrderSixtyFive
2016
           style: style2,
2025
           style: style2,
2017
           scanStyles: false,
2026
           scanStyles: false,
2018
         });
2027
         });
2019
-      }else if (
2020
-        this.org_template_info.template_id == 64
2021
-      ) {
2028
+      }else if (this.org_template_info.template_id == 64 ) {
2022
         printJS({
2029
         printJS({
2023
           printable: "dialysis-print-box-64",
2030
           printable: "dialysis-print-box-64",
2024
           type: "html",
2031
           type: "html",
2025
           style: style12,
2032
           style: style12,
2026
           scanStyles: false,
2033
           scanStyles: false,
2027
         });
2034
         });
2035
+        console.log("printjswowoowowowwoow",style12)
2028
 
2036
 
2029
       }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
2037
       }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
2030
         printJS({
2038
         printJS({
2043
         });
2051
         });
2044
       }
2052
       }
2045
       else if (this.org_template_info.template_id == 68 ) {
2053
       else if (this.org_template_info.template_id == 68 ) {
2046
-        console.log('6666',this.org_template_info.template_id);
2047
         printJS({
2054
         printJS({
2048
           printable: "dialysis-print-box-1",
2055
           printable: "dialysis-print-box-1",
2049
           type: "html",
2056
           type: "html",
2090
           style: style2,
2097
           style: style2,
2091
           scanStyles: false,
2098
           scanStyles: false,
2092
         });
2099
         });
2100
+      }else if (this.org_template_info.template_id == 199 ) {
2101
+        printJS({
2102
+          printable: "dialysis-print-box-64",
2103
+          type: "html",
2104
+          style: style12,
2105
+          scanStyles: false,
2106
+        });
2107
+       
2108
+
2093
       }
2109
       }
2094
     },
2110
     },
2095
     printThisOnePage() {
2111
     printThisOnePage() {
2210
           scanStyles: false,
2226
           scanStyles: false,
2211
         });
2227
         });
2212
       } else if (this.org_template_info.template_id == 53 ) {
2228
       } else if (this.org_template_info.template_id == 53 ) {
2213
-        console.log("进来233232323232")
2229
+       
2214
         printJS({
2230
         printJS({
2215
           printable: "dialysis-print-box-1-2",
2231
           printable: "dialysis-print-box-1-2",
2216
           type: "html",
2232
           type: "html",
2217
           style: style93,
2233
           style: style93,
2218
           scanStyles: false,
2234
           scanStyles: false,
2219
         });
2235
         });
2236
+      }else if (this.org_template_info.template_id == 199 ) {
2237
+        printJS({
2238
+          printable: "dialysis-print-box-64",
2239
+          type: "html",
2240
+          style: style12,
2241
+          scanStyles: false,
2242
+        });
2243
+       
2244
+
2220
       }
2245
       }
2221
     },
2246
     },
2222
 
2247
 
2255
       return name;
2280
       return name;
2256
     },
2281
     },
2257
     setAdminUserES(id) {
2282
     setAdminUserES(id) {
2258
-      console.log(id);
2283
+      // console.log(id);
2259
       if (id == 0) {
2284
       if (id == 0) {
2260
         return "";
2285
         return "";
2261
       }
2286
       }
2277
       getDialysisRecord(this.queryParams).then((response) => {
2302
       getDialysisRecord(this.queryParams).then((response) => {
2278
         if (response.data.state == 1) {
2303
         if (response.data.state == 1) {
2279
           this.childResponse = response;
2304
           this.childResponse = response;
2280
-          console.log('this.org_template_info是数据',response.data.data);
2305
+          // console.log('this.org_template_info是数据',response.data.data.org_template_info.template_id);
2281
           this.org_template_info = response.data.data.org_template_info;
2306
           this.org_template_info = response.data.data.org_template_info;
2282
           this.loading = false;
2307
           this.loading = false;
2283
           //   this.adminUser = response.data.data.users
2308
           //   this.adminUser = response.data.data.users
2704
       });
2729
       });
2705
     },
2730
     },
2706
     changePatient(schedual) {
2731
     changePatient(schedual) {
2707
-      console.log(schedual);
2732
+      // console.log(schedual);
2708
       var xtdate = parseTime(schedual.schedule_date, "{y}-{m}-{d}");
2733
       var xtdate = parseTime(schedual.schedule_date, "{y}-{m}-{d}");
2709
       this.$router.push(
2734
       this.$router.push(
2710
         "/dialysis/print?xtdate=" +
2735
         "/dialysis/print?xtdate=" +
2731
     getData() {
2756
     getData() {
2732
       let patientArr = [];
2757
       let patientArr = [];
2733
       patientArr = JSON.parse(JSON.stringify(this.zone_schedules));
2758
       patientArr = JSON.parse(JSON.stringify(this.zone_schedules));
2734
-      console.log("patientArr", patientArr);
2759
+      // console.log("patientArr", patientArr);
2735
       let arr1 = [];
2760
       let arr1 = [];
2736
       if (this.patientStateVal == 0) {
2761
       if (this.patientStateVal == 0) {
2737
         arr1 = patientArr;
2762
         arr1 = patientArr;
2738
-        console.log(arr1);
2763
+        // console.log(arr1);
2739
       } else if (this.patientStateVal == 1) {
2764
       } else if (this.patientStateVal == 1) {
2740
         let arr = [];
2765
         let arr = [];
2741
         arr = patientArr;
2766
         arr = patientArr;
2756
             }
2781
             }
2757
           }
2782
           }
2758
         }
2783
         }
2759
-        console.log("执行1", arr);
2784
+        // console.log("执行1", arr);
2760
         arr1 = arr;
2785
         arr1 = arr;
2761
       } else if (this.patientStateVal == 2) {
2786
       } else if (this.patientStateVal == 2) {
2762
         let arr = [];
2787
         let arr = [];
2774
                   .systolic_blood_pressure != 0)
2799
                   .systolic_blood_pressure != 0)
2775
             ) {
2800
             ) {
2776
               // 删除元素后改变i的值
2801
               // 删除元素后改变i的值
2777
-              console.log("几次");
2802
+              // console.log("几次");
2778
               arr[i].schedules.splice(j--, 1);
2803
               arr[i].schedules.splice(j--, 1);
2779
             }
2804
             }
2780
           }
2805
           }
2781
         }
2806
         }
2782
-        console.log("执行2", arr);
2807
+        // console.log("执行2", arr);
2783
         arr1 = arr;
2808
         arr1 = arr;
2784
       } else if (this.patientStateVal == 3) {
2809
       } else if (this.patientStateVal == 3) {
2785
         let arr = [];
2810
         let arr = [];
2895
         newArr.push(...item.schedules);
2920
         newArr.push(...item.schedules);
2896
       });
2921
       });
2897
       this.tableData = newArr;
2922
       this.tableData = newArr;
2898
-      console.log("table", this.tableData);
2923
+      // console.log("table", this.tableData);
2899
     },
2924
     },
2900
   },
2925
   },
2901
   watch: {
2926
   watch: {
2926
   },
2951
   },
2927
   created() {
2952
   created() {
2928
     // console.log("hhahahhahahahah=======",this.org_template_info.template_id)
2953
     // console.log("hhahahhahahahah=======",this.org_template_info.template_id)
2929
-    console.log("this.$store.getters.xt_user.org.id",this.$store.getters.xt_user.org.id)
2954
+    // console.log("this.$store.getters.xt_user.org.id",this.$store.getters.xt_user.org.id)
2930
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2955
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2931
     var zone_selected = this.$store.getters.zone_selected;
2956
     var zone_selected = this.$store.getters.zone_selected;
2932
     var patient_state_selected = this.$store.getters.patient_state_selected;
2957
     var patient_state_selected = this.$store.getters.patient_state_selected;

+ 14 - 2
src/xt_pages/dialysis/newDoctorAdvice.vue View File

39
           </template>
39
           </template>
40
        </el-autocomplete>
40
        </el-autocomplete>
41
        <el-button type="primary" @click="toSeach">搜索</el-button>
41
        <el-button type="primary" @click="toSeach">搜索</el-button>
42
+
43
+       
42
       </div>
44
       </div>
45
+      <!-- <div class="filter-container">
46
+      <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
47
+       <el-button type="primary" @click="toSeachOne">搜索</el-button>
48
+
49
+       
50
+      </div> -->
43
       <div class="cell clearfix">
51
       <div class="cell clearfix">
44
         <label class="title">
52
         <label class="title">
45
           <span class="name">日期查询:</span>
53
           <span class="name">日期查询:</span>
830
       execution_frequency:"",
838
       execution_frequency:"",
831
       zoneIdList:[],
839
       zoneIdList:[],
832
       partion_str:"",
840
       partion_str:"",
841
+      keyword:"",
833
     };
842
     };
834
   },
843
   },
835
   created() {
844
   created() {
959
          var schedule_type = this.listQuery.schedul_type
968
          var schedule_type = this.listQuery.schedul_type
960
          var partition_type = this.listQuery.partition_type
969
          var partition_type = this.listQuery.partition_type
961
        
970
        
962
-        getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType,execution_frequency:nameOne}).then(rs => {
971
+        getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType,execution_frequency:nameOne,keyword:this.keyword}).then(rs => {
963
         var resp = rs.data
972
         var resp = rs.data
964
         if (resp.state == 1) {
973
         if (resp.state == 1) {
965
             this.admin_users = resp.data.adminUser
974
             this.admin_users = resp.data.adminUser
1547
         return searchArray
1556
         return searchArray
1548
       },
1557
       },
1549
      handleSelect(val) {
1558
      handleSelect(val) {
1550
-       console.log("val323223232323232323",val)
1559
+      
1551
        this.patient_id = val.id
1560
        this.patient_id = val.id
1552
        this.listQuery.keyword = val.name
1561
        this.listQuery.keyword = val.name
1553
        this.requestSchedualDoctors(this.time)
1562
        this.requestSchedualDoctors(this.time)
1556
        this.patient_id = 0
1565
        this.patient_id = 0
1557
        this.requestSchedualDoctors(this.time)
1566
        this.requestSchedualDoctors(this.time)
1558
      },
1567
      },
1568
+     toSeachOne(){
1569
+      this.requestSchedualDoctors(this.time)
1570
+     },
1559
      toExcution(){
1571
      toExcution(){
1560
 
1572
 
1561
        if(this.selecting_schs.length ==0){
1573
        if(this.selecting_schs.length ==0){

+ 403 - 0
src/xt_pages/dialysis/patientDoctorAdvice.vue View File

1
+<template>
2
+    <div class="main-contain">
3
+       <div class="position">
4
+         <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        
6
+       </div>
7
+       <div class="app-container">
8
+         <div class="filter-container">
9
+            <el-form :inline="true" :model="listQuery">
10
+                <el-form-item label>
11
+
12
+                <!-- <el-autocomplete
13
+                    class="checkSearch"
14
+                    popper-class="my-autocomplete"
15
+                    v-model.trim="listQuery.search"
16
+                    :fetch-suggestions="querySearchAsync"
17
+                    :trigger-on-focus="false"
18
+                    placeholder="病人透析号/姓名"
19
+                    @select="handleSelect"
20
+                    style="width:160px;"
21
+                    >
22
+                    <i class="el-icon-search el-input__icon" slot="suffix"></i>
23
+                    <template slot-scope="{ item }">
24
+                        <div class="name">{{ item.name }}</div>
25
+                    </template>
26
+                </el-autocomplete> -->
27
+                <el-input v-model="listQuery.search" style="width: 200px;" placeholder="请输入患者姓名或透析号"></el-input>
28
+                <el-button type="primary" size="small" @click="toSeach">搜索</el-button>
29
+                </el-form-item>
30
+            </el-form>
31
+
32
+            <label class="title" style="text-align:left;">
33
+              <span class="name">日期查询</span> :
34
+            </label>
35
+            <el-date-picker
36
+                v-model="listQuery.start_time"
37
+                prefix-icon="el-icon-date"
38
+                @change="changeTime"
39
+                :editable="false"
40
+                style="width: 196px;"
41
+                type="date"
42
+                placeholder="选择日期时间"
43
+                align="right"
44
+                format="yyyy-MM-dd"
45
+                value-format="yyyy-MM-dd"
46
+            ></el-date-picker>
47
+            <span class>-</span>
48
+            <el-date-picker
49
+                v-model="listQuery.end_time"
50
+                prefix-icon="el-icon-date"
51
+                @change="changeEndTime"
52
+                :editable="false"
53
+                style="width: 196px;"
54
+                type="date"
55
+                placeholder="选择日期时间"
56
+                align="right"
57
+                format="yyyy-MM-dd"
58
+                value-format="yyyy-MM-dd"
59
+            ></el-date-picker>
60
+
61
+            <el-container>
62
+                <div style="width:160px">
63
+                    <div class="tableTitle" style="margin-bottom: 10px;">患者列表</div>
64
+                    <el-table :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
65
+                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
66
+                    highlight-current-row
67
+                    @current-change="handleChange"
68
+                    ref="singleTable"
69
+                    >
70
+                    <el-table-column prop="dialysis_no" label="透析号" width="70">
71
+                        <template slot-scope="scope">{{scope.row.dialysis_no}}</template>
72
+                    </el-table-column>
73
+                    <el-table-column prop="name" label="姓名" width="90">
74
+                        <template slot-scope="scope">{{ scope.row.name }}</template>
75
+                    </el-table-column>
76
+                    </el-table>
77
+                </div>
78
+                <div style="padding-left:10px;flex:1">
79
+                  <div class="tableTitle" style="margin-top: 10px;margin-bottom: 10px;">统计表</div>
80
+                  <div>
81
+                    <el-button type="primary" @click="exportList" style="margin-bottom: 10px;">导出</el-button>
82
+                    <el-table 
83
+                     :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
84
+                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
85
+                     highlight-current-row
86
+                     
87
+                      >
88
+                            <el-table-column  label="医嘱名称" min-width="200" align="center">
89
+                               <template slot-scope="scope">
90
+                                   {{ scope.row.advice_name }}
91
+                               </template>
92
+                            </el-table-column>
93
+                            <!-- <el-table-column  label="生产厂家" width="140">
94
+                                <template slot-scope="scope">
95
+                                 
96
+                                </template>
97
+                            </el-table-column> -->
98
+                            <el-table-column  label="规格" min-width="200" align="center">
99
+                                <template slot-scope="scope">
100
+                                    {{ scope.row.specification_name }}
101
+                                </template>
102
+                            </el-table-column>
103
+                            <el-table-column  label="数量" min-width="200" align="center">
104
+                                <template slot-scope="scope">
105
+                                   {{ getCount(scope.row.child) }}
106
+                                </template>
107
+                                
108
+                            </el-table-column>
109
+                          
110
+                     </el-table>
111
+
112
+                    <el-pagination
113
+                    align="right"
114
+                    @size-change="handleSizeChange"
115
+                    @current-change="handleCurrentChange"
116
+                    :current-page="listQuery.page"
117
+                    :page-sizes="[20, 40, 60, 80, 100,200,300,500,1000]"
118
+                    :page-size="10"
119
+                    background
120
+                    style="margin-top:20px;"
121
+                    layout="total, sizes, prev, pager, next, jumper"
122
+                    :total="total"
123
+                    ></el-pagination>
124
+                   </div>
125
+                </div>
126
+            </el-container>
127
+         </div>
128
+      </div> 
129
+    </div>
130
+</template>
131
+<script>
132
+    import {getPatientsByName,getDocAdviceByPatientId} from '@/api/advice'
133
+    import BreadCrumb from "@/xt_pages/components/bread-crumb";
134
+    export default {
135
+        components: {
136
+             BreadCrumb
137
+         }, 
138
+        data(){
139
+          
140
+          return{
141
+            crumbs: [
142
+              { path: false, name: "透析管理" },
143
+              { path: false, name: "药品统计" }
144
+           ], 
145
+           listQuery:{
146
+            search:"",
147
+            start_time:"",
148
+            end_time:"",
149
+            page:1,
150
+            limit:10,
151
+           },
152
+           patientsData:[],
153
+           DialysisData:[],
154
+           total:0,
155
+           patient_id:0
156
+          }
157
+         
158
+        },
159
+        created(){
160
+            var nowDate = new Date();
161
+            var nowYear = nowDate.getFullYear();
162
+            var nowMonth = nowDate.getMonth() + 1;
163
+            var nowDay = nowDate.getDate();
164
+            this.listQuery.end_time = nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
165
+            nowDate.setMonth(nowDate.getMonth() - 1);
166
+            nowYear = nowDate.getFullYear();
167
+            nowMonth = nowDate.getMonth() + 1;
168
+            nowDay = nowDate.getDate();
169
+            this.listQuery.start_time = nowYear + "-" + (nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
170
+
171
+            //获取该机构下的所有患者
172
+           this.getPatientsByName()
173
+          },
174
+        methods:{
175
+            getPatientsByName(){
176
+                  var keyword = this.listQuery.search
177
+                  var params = {
178
+                    keyword:keyword,
179
+                  }
180
+                getPatientsByName(params).then(response=>{
181
+                    if(response.data.state == 1){
182
+                    var patients = response.data.data.patients
183
+                    
184
+                    this.patientsData = patients
185
+                     
186
+                    
187
+                    this.$nextTick(()=>{
188
+                        // 别忘了标签上定义ref  这里的 myTable就说获取的标签上的ref命的名
189
+                        this.$refs.singleTable.setCurrentRow(this.patientsData[0])
190
+                    })
191
+                    
192
+                   
193
+                    }
194
+                })
195
+             },
196
+            handleSelect(){
197
+
198
+            },
199
+            changeTime(){
200
+              this.handleChange(this.patient_id)
201
+            },
202
+            changeEndTime(){
203
+              this.handleChange(this.patient_id)
204
+            },
205
+            handleSizeChange(){
206
+
207
+            },
208
+            handleCurrentChange(){
209
+
210
+            },
211
+            exportList(){
212
+                var params = {
213
+                  patient_id:0,
214
+                  start_time:this.listQuery.start_time,
215
+                  end_time:this.listQuery.end_time,
216
+                  limit:this.listQuery.limit,
217
+                  page:this.listQuery.page,
218
+                }
219
+                console.log("paramswowowoow",params)
220
+                
221
+              getDocAdviceByPatientId(params).then(response=>{
222
+                  if(response.data.state == 1){
223
+                    var list =  response.data.data.list
224
+                    var tableData = []
225
+                    if(list!=null && list.length>0){
226
+                        let dataInfo = {}
227
+                        list.forEach((item, index) => {
228
+                        let { patient_id } = item
229
+                        if (!dataInfo[patient_id]) {
230
+                            dataInfo[patient_id] = {
231
+                            patient_id:item.patient_id,
232
+                            child: [],
233
+                            }
234
+                        }
235
+                       })
236
+                       let arr = Object.values(dataInfo)
237
+
238
+                       if(arr!=null && arr.length>0){
239
+                         for(let i=0;i<list.length;i++){
240
+                           for(let j=0;j<arr.length;j++){
241
+                              if(list[i].patient_id == arr[j].patient_id){
242
+                                  arr[j].child.push(list[i])
243
+                              } 
244
+                           } 
245
+                         }
246
+                       }
247
+
248
+                       console.log("arrwowoowowo",arr)
249
+
250
+                      if(arr!=null && arr.length>0){
251
+                         for(let i=0;i<arr.length;i++){
252
+                            let dataInfo = {}
253
+                            arr[i].child.forEach((item, index) => {
254
+                            let { advice_name} = item
255
+                            if (!dataInfo[advice_name]) {
256
+                                    dataInfo[advice_name] = {
257
+                                    advice_name:item.advice_name,
258
+                                    childOne: [],
259
+                                    count:0,
260
+                                    specification_name:item.advice_desc +item.drug_spec_unit,
261
+                                    patient_id:item.patient_id,
262
+                                 }
263
+                                }
264
+                            })
265
+                            let newArr = Object.values(dataInfo)
266
+                            console.log("newArrwoowow",newArr)
267
+                            if(newArr!=null && newArr.length>0){
268
+                              for(let z=0;z<arr[i].child.length;z++){
269
+                                for(let y=0;y<newArr.length;y++){
270
+                                   if(arr[i].child[z].advice_name == newArr[y].advice_name){
271
+                                     newArr[y].childOne.push(arr[i].child[z])
272
+                                   }
273
+
274
+                                }
275
+                              }
276
+                            }
277
+                            console.log("newArrwoowow",newArr)
278
+                            tableData.push(...newArr)
279
+                         }           
280
+                      }
281
+                    console.log("tableDatawpwwwoow",tableData)
282
+                   
283
+                    for(let i=0;i<tableData.length;i++){
284
+                       tableData[i].index = i+1
285
+                       tableData[i].count_name = this.getCount(tableData[i].childOne)
286
+                       tableData[i].specification_name =tableData[i].specification_name
287
+                       tableData[i].query_date = this.listQuery.start_time + "~" + this.listQuery.end_time
288
+                      tableData[i].patient_name = this.getPatientName(tableData[i].patient_id)
289
+                
290
+                     }
291
+                     import('@/vendor/Export2Excel').then(excel => {
292
+                        
293
+                            const tHeader = ['序号','患者姓名','查询日期','药品名称','规格&单位','数量']
294
+                            const filterVal = ['index','patient_name','query_date','advice_name','specification_name','count_name']
295
+
296
+                            const data = this.formatJson(filterVal,tableData)
297
+
298
+                            excel.export_json_to_excel({
299
+                            header: tHeader,
300
+                            data,
301
+                            filename: '患者药品使用查询表'
302
+                            })
303
+                        })
304
+                    }
305
+                  }
306
+              })
307
+           
308
+            },
309
+            formatJson(filterVal, jsonData) {
310
+                return jsonData.map(v => filterVal.map(j => v[j]))
311
+            },
312
+            getPatientName(id){
313
+                var patient_name = ""
314
+                for(let i=0;i<this.patientsData.length;i++){
315
+                if(id == this.patientsData[i].id){
316
+                    patient_name = this.patientsData[i].name
317
+                }
318
+                }
319
+                return patient_name
320
+            },
321
+            handleChange(val){
322
+                console.log("valwoowowowwo",val)
323
+                this.patient_id =val.id
324
+                var params = {
325
+                  patient_id:val.id,
326
+                  start_time:this.listQuery.start_time,
327
+                  end_time:this.listQuery.end_time,
328
+                  limit:this.listQuery.limit,
329
+                  page:this.listQuery.page,
330
+                }
331
+                console.log("paramswowowoow",params)
332
+              getDocAdviceByPatientId(params).then(response=>{
333
+                  if(response.data.state == 1){
334
+                    var list =  response.data.data.list
335
+
336
+                    if(list!=null && list.length>0){
337
+                        let dataInfo = {}
338
+                        list.forEach((item, index) => {
339
+                        let { advice_name } = item
340
+                        if (!dataInfo[advice_name]) {
341
+                            dataInfo[advice_name] = {
342
+                            advice_name:item.advice_name,
343
+                            child: [],
344
+                            count:0,
345
+                            specification_name:item.advice_desc +item.drug_spec_unit,
346
+                            patient_id:item.patient_id,
347
+                            }
348
+                        }
349
+                       })
350
+                       let arr = Object.values(dataInfo)
351
+
352
+                       if(arr!=null && arr.length>0){
353
+                         for(let i=0;i<list.length;i++){
354
+                           for(let j=0;j<arr.length;j++){
355
+                              if(list[i].advice_name == arr[j].advice_name){
356
+                                  arr[j].child.push(list[i])
357
+                              } 
358
+                           } 
359
+                         }
360
+                       }
361
+
362
+                       this.DialysisData= []
363
+
364
+                       this.DialysisData = arr
365
+
366
+                       console.log("arrwoowowowowo",arr)
367
+                    }
368
+                   
369
+                  }
370
+              })
371
+            },
372
+            toSeach(){
373
+              this.getPatientsByName()
374
+            },
375
+            getCount(val){
376
+               var count =0
377
+               if(val!=null && val.length>0){
378
+                for(let i=0;i<val.length;i++){
379
+                    count+=val[i].prescribing_number
380
+                }
381
+               }
382
+               return count
383
+               
384
+            }
385
+        }   
386
+    }
387
+</script>
388
+
389
+<style lang="scss" scoped>
390
+.tableTitle {
391
+  font-size: 16px;
392
+  color: #000;
393
+  font-weight: bold;
394
+  margin-bottom: 10px;
395
+}
396
+</style>
397
+<style lang="scss">
398
+.page_timePersonal {
399
+  .cell {
400
+    text-align: center;
401
+  }
402
+}
403
+</style>

+ 6 - 108
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

940
                       :src="setAdminUserES(advice.advice_doctor)"
940
                       :src="setAdminUserES(advice.advice_doctor)"
941
                       alt=""
941
                       alt=""
942
                       srcset=""
942
                       srcset=""
943
+                      v-else
943
                     />
944
                     />
944
                   </td>
945
                   </td>
945
                   <td style="text-align: left; padding-left: 5px" width="344">
946
                   <td style="text-align: left; padding-left: 5px" width="344">
999
                       :src="setAdminUserES(advice.execution_staff)"
1000
                       :src="setAdminUserES(advice.execution_staff)"
1000
                       alt=""
1001
                       alt=""
1001
                       srcset=""
1002
                       srcset=""
1003
+                      v-else
1002
                     />
1004
                     />
1003
                   </td>
1005
                   </td>
1004
                   <td style="line-height: 30px" width="90">
1006
                   <td style="line-height: 30px" width="90">
1287
                   <td style="height: 20px" width="90">
1289
                   <td style="height: 20px" width="90">
1288
                     <p style="height: 20px; line-height: 20px">核对</p>
1290
                     <p style="height: 20px; line-height: 20px">核对</p>
1289
                   </td>
1291
                   </td>
1290
-                  <!-- <td style="height: 20px" width="144">
1291
-                    <p style="height: 20px; line-height: 20px">上次透后体重</p>
1292
-                  </td> -->
1293
-                  <!-- <td style="height: 20px" width="60">
1294
-                    {{
1295
-                      patientInfo.total_dialysis +
1296
-                        patientInfo.user_sys_before_count >
1297
-                      0
1298
-                        ? patientInfo.user_sys_before_count
1299
-                        : "/"
1300
-                    }}kg
1301
-                  </td> -->
1302
                 </tr>
1292
                 </tr>
1303
               </table>
1293
               </table>
1304
             </td>
1294
             </td>
1308
             :key="advice_index"
1298
             :key="advice_index"
1309
             style="transform: translateY(3px)"
1299
             style="transform: translateY(3px)"
1310
           >
1300
           >
1311
-            <td>
1301
+            <td v-if="advice.advice_name!=''">
1312
               <table class="print-table" border="1">
1302
               <table class="print-table" border="1">
1313
                 <tr>
1303
                 <tr>
1314
                   <td width="60">
1304
                   <td width="60">
1326
                       :src="setAdminUserES(advice.advice_doctor)"
1316
                       :src="setAdminUserES(advice.advice_doctor)"
1327
                       alt=""
1317
                       alt=""
1328
                       srcset=""
1318
                       srcset=""
1319
+                      v-else
1329
                     />
1320
                     />
1330
                   </td>
1321
                   </td>
1331
                   <td style="text-align: left; padding-left: 5px" width="344">
1322
                   <td style="text-align: left; padding-left: 5px" width="344">
1361
                       getTime(advice.execution_time, "{h}:{i}")
1352
                       getTime(advice.execution_time, "{h}:{i}")
1362
                     }}</span>
1353
                     }}</span>
1363
                   </td>
1354
                   </td>
1364
-                  <!-- <td
1365
-                    style="line-height: 30px"
1366
-                    width="90"
1367
-                    v-if="org_id == 10249 || org_id == 0"
1368
-                  >
1369
-                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">
1370
-                      {{ getAdminUser(advice.advice_doctor) }}
1371
-                    </span>
1372
-                    <img
1373
-                      style="height: 30px"
1374
-                      :src="setAdminUserES(advice.advice_doctor)"
1375
-                      alt=""
1376
-                      srcset=""
1377
-                    />
1378
-                  </td> -->
1379
                   <td style="line-height: 10px" width="90">
1355
                   <td style="line-height: 10px" width="90">
1380
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
1356
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
1381
                       getAdminUser(advice.execution_staff)
1357
                       getAdminUser(advice.execution_staff)
1385
                       :src="setAdminUserES(advice.execution_staff)"
1361
                       :src="setAdminUserES(advice.execution_staff)"
1386
                       alt=""
1362
                       alt=""
1387
                       srcset=""
1363
                       srcset=""
1364
+                      v-else
1388
                     />
1365
                     />
1389
                   </td>
1366
                   </td>
1390
                   <td style="line-height: 30px" width="90">
1367
                   <td style="line-height: 30px" width="90">
1400
                     />
1377
                     />
1401
                   </td>
1378
                   </td>
1402
 
1379
 
1403
-                  <!-- <td v-if="advice_index === 0" width="145">透前体重:</td> -->
1404
-                  <!-- <td v-if="advice_index === 0" width="60">
1405
-                    {{
1406
-                      patientInfo.total_dialysis +
1407
-                        patientInfo.user_sys_before_count >
1408
-                      0
1409
-                        ? patientInfo.user_sys_before_count
1410
-                        : "/"
1411
-                    }}kg
1412
-                  </td> -->
1413
-                  <!-- <td v-if="advice_index === 1" width="145">体重增加量:</td> -->
1414
-                  <!-- <td v-if="advice_index === 1" width="60">
1415
-                    {{
1416
-                      assessmentafter.weight_after == 0 ||
1417
-                      predialysis.weight_before == 0
1418
-                        ? 0
1419
-                        : (
1420
-                            predialysis.weight_before -
1421
-                            assessmentafter.weight_after
1422
-                          ).toFixed(2)
1423
-                    }}kg
1424
-                  </td> -->
1425
-                  <!-- <td v-if="advice_index === 2" width="145">干体重(DW):</td> -->
1426
-                  <!-- <td v-if="advice_index === 2" width="60">
1427
-                    {{
1428
-                      patientInfo.total_dialysis +
1429
-                        patientInfo.user_sys_before_count >
1430
-                      0
1431
-                        ? predialysis.user_sys_before_count
1432
-                        : "/"
1433
-                    }}kg
1434
-                  </td> -->
1435
-                  <!-- <td v-if="advice_index === 3" width="145">较干体重增加量:</td> -->
1436
-                  <!-- <td v-if="advice_index === 3" width="60">
1437
-                    {{
1438
-                      patientInfo.total_dialysis +
1439
-                        patientInfo.user_sys_before_count >
1440
-                        0 && afterdialysis.weight_after != 0
1441
-                        ? (
1442
-                            afterdialysis.weight_after - predialysis.dry_weight
1443
-                          ).toFixed(2)
1444
-                        : 0
1445
-                    }}kg
1446
-                  </td> -->
1447
-                  <!-- <td v-if="advice_index === 4" width="145">机器显示脱水量:</td>
1448
-                  <td v-if="advice_index === 4" width="60">
1449
-                    {{
1450
-                      patientInfo.total_dialysis +
1451
-                        patientInfo.user_sys_before_count >
1452
-                      0
1453
-                        ? afterdialysis.actual_ultrafiltration
1454
-                        : "/"
1455
-                    }}ml
1456
-                  </td> -->
1457
-                  <!-- <td v-if="advice_index === 5" width="145">透后体重:</td>
1458
-                  <td v-if="advice_index === 5" width="60">
1459
-                    {{
1460
-                      patientInfo.total_dialysis +
1461
-                        patientInfo.user_sys_before_count >
1462
-                      0
1463
-                        ? afterdialysis.weight_after
1464
-                        : "/"
1465
-                    }}kg
1466
-                  </td>
1467
-                  <td v-if="advice_index === 6" width="145">
1468
-                    本次透析体重下降量:
1469
-                  </td>
1470
-                  <td v-if="advice_index === 6" width="60">
1471
-                    {{
1472
-                      afterdialysis.weight_after == 0 ||
1473
-                      predialysis.weight_before == 0
1474
-                        ? 0
1475
-                        : (
1476
-                            predialysis.weight_before -
1477
-                            afterdialysis.weight_after
1478
-                          ).toFixed(2)
1479
-                    }}kg
1480
-                  </td> -->
1481
-                  <!-- <td v-if="advice_index > 6" width="145"></td>
1482
-                  <td v-if="advice_index > 6" width="60"></td> -->
1380
+                 
1483
                 </tr>
1381
                 </tr>
1484
               </table>
1382
               </table>
1485
             </td>
1383
             </td>

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

377
                         v-if="setAdminUserES(advices[0].advice_doctor) == ''"
377
                         v-if="setAdminUserES(advices[0].advice_doctor) == ''"
378
                       >
378
                       >
379
                         {{ getAdminUser(advices[0].advice_doctor) }}
379
                         {{ getAdminUser(advices[0].advice_doctor) }}
380
+                      
380
                       </span>
381
                       </span>
381
                       <img
382
                       <img
382
                         class="es-img"
383
                         class="es-img"
867
                       :src="setAdminUserES(advice.advice_doctor)"
868
                       :src="setAdminUserES(advice.advice_doctor)"
868
                       alt=""
869
                       alt=""
869
                       srcset=""
870
                       srcset=""
871
+                      v-else
870
                     />
872
                     />
871
                   </td>
873
                   </td>
872
                   <td style="text-align: left; padding-left: 5px" width="340">
874
                   <td style="text-align: left; padding-left: 5px" width="340">
926
                       :src="setAdminUserES(advice.execution_staff)"
928
                       :src="setAdminUserES(advice.execution_staff)"
927
                       alt=""
929
                       alt=""
928
                       srcset=""
930
                       srcset=""
931
+                      v-else
929
                     />
932
                     />
930
                   </td>
933
                   </td>
931
                   <td style="line-height: 30px" width="90">
934
                   <td style="line-height: 30px" width="90">

+ 16 - 49
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

1204
                           置换量<br />(L)
1204
                           置换量<br />(L)
1205
                         </td>
1205
                         </td>
1206
                         <td width="210">病情变化及处理</td>
1206
                         <td width="210">病情变化及处理</td>
1207
-
1208
-                        <!-- <td width="100">时间</td>
1209
-                    <td width="30">T<br>C°</td>
1210
-                    <td width="30">P<br/>次/分</td>
1211
-                    <td width="30">R<br/>次/分</td>
1212
-                    <td width="100">BP<br/>mmHg</td>
1213
-                    <td width="60">静脉压/动脉压<br/>mmHg</td>
1214
-                    <td width="80">血流量<br/>ml/min</td>
1215
-                    <td width="90">超滤量累计L</td>
1216
-                    <td width="80">钠浓度<br/>mmol/L</td>
1217
-                    <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
1218
-                    <td  width="100">护士签名</td> -->
1219
                       </tr>
1207
                       </tr>
1220
 
1208
 
1221
                       <tr
1209
                       <tr
1436
                           医嘱内容
1424
                           医嘱内容
1437
                         </td>
1425
                         </td>
1438
                       </tr>
1426
                       </tr>
1439
-                      <!-- <tr style="line-height:35px;padding:8px 5px;">
1440
-                    <td colspan="4" style="font-size: 16px">开医嘱</td>
1441
-                    <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1442
-                  </tr> -->
1443
                       <tr style="line-height: 35px; padding: 8px 5px">
1427
                       <tr style="line-height: 35px; padding: 8px 5px">
1444
                         <td style="font-size: 16px" width="10%">时间</td>
1428
                         <td style="font-size: 16px" width="10%">时间</td>
1445
                         <td style="font-size: 16px" colspan="2" width="45%">
1429
                         <td style="font-size: 16px" colspan="2" width="45%">
1521
                             >({{ advice.remark }})</span
1505
                             >({{ advice.remark }})</span
1522
                           >
1506
                           >
1523
                         </td>
1507
                         </td>
1524
-                        <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
1525
-                      <span>{{advice.delivery_way}}</span>
1526
-                      <span>{{advice.execution_frequency}}</span>
1527
-                      <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1528
-                    </td> -->
1529
-                        <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1530
                         <td height="32px" v-if="advice.advice_doctor">
1508
                         <td height="32px" v-if="advice.advice_doctor">
1531
                           <span
1509
                           <span
1532
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1510
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1544
                           <span v-if="setAdminUserES(advice.doctor) == ''">{{
1522
                           <span v-if="setAdminUserES(advice.doctor) == ''">{{
1545
                             getAdminUser(advice.doctor)
1523
                             getAdminUser(advice.doctor)
1546
                           }}</span>
1524
                           }}</span>
1547
-                          <img
1525
+                           <img
1548
                             style="height: 30px"
1526
                             style="height: 30px"
1549
                             :src="setAdminUserES(advice.doctor)"
1527
                             :src="setAdminUserES(advice.doctor)"
1550
                             alt=""
1528
                             alt=""
1551
                             srcset=""
1529
                             srcset=""
1530
+                            v-else
1552
                           />
1531
                           />
1553
                         </td>
1532
                         </td>
1554
-                        <!-- <td height="35px">
1555
-                      <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1556
-                      <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1557
-                    </td> -->
1558
                         <td height="32px">
1533
                         <td height="32px">
1559
                           <span
1534
                           <span
1560
                             v-if="setAdminUserES(advice.execution_staff) == ''"
1535
                             v-if="setAdminUserES(advice.execution_staff) == ''"
1726
           </div>
1701
           </div>
1727
         </template>
1702
         </template>
1728
         <div class="row" style="margin-top: -11px; position: relative">
1703
         <div class="row" style="margin-top: -11px; position: relative">
1729
-          <table class="proj_table">
1704
+          <table border="1" class="proj_table" style="border-collapse: collapse;text-align:center ;">
1730
             <template v-if="doctor_advices_2.length > 0">
1705
             <template v-if="doctor_advices_2.length > 0">
1731
               <tr style="line-height: 35px; padding: 8px 5px">
1706
               <tr style="line-height: 35px; padding: 8px 5px">
1732
                 <td
1707
                 <td
1738
                     font-size: 16px;
1713
                     font-size: 16px;
1739
                     padding: 6px 8px;
1714
                     padding: 6px 8px;
1740
                     line-height: 30px;
1715
                     line-height: 30px;
1741
-                    border: 1px solid;
1716
+                    border: 1px solid black;
1742
                   "
1717
                   "
1743
                 >
1718
                 >
1744
                   医嘱内容
1719
                   医嘱内容
1752
                 style="line-height: 35px; padding: 8px 5px"
1727
                 style="line-height: 35px; padding: 8px 5px"
1753
                 class="split_table_tr"
1728
                 class="split_table_tr"
1754
               >
1729
               >
1755
-                <td style="font-size: 16px" width="10%">时间</td>
1756
-                <td style="font-size: 16px" colspan="2" width="45%">
1730
+                <td style="font-size: 16px;border: 1px solid black;" width="10%">时间</td>
1731
+                <td style="font-size: 16px;border: 1px solid black;" colspan="2" width="45%">
1757
                   医嘱内容
1732
                   医嘱内容
1758
                 </td>
1733
                 </td>
1759
-                <td style="font-size: 16px" width="10%">医生签名</td>
1734
+                <td style="font-size: 16px;border: 1px solid black;" width="10%">医生签名</td>
1760
                 <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
1735
                 <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
1761
-                <td style="font-size: 16px" width="10%">执行人签名</td>
1762
-                <td style="font-size: 16px" width="10%">时间</td>
1736
+                <td style="font-size: 16px;border: 1px solid black;" width="10%">执行人签名</td>
1737
+                <td style="font-size: 16px;border: 1px solid black;" width="10%">时间</td>
1763
               </tr>
1738
               </tr>
1764
               <!-- <template v-for="group in doctor_advices" > -->
1739
               <!-- <template v-for="group in doctor_advices" > -->
1765
               <tr
1740
               <tr
1767
                 v-for="(advice, advice_index) in doctor_advices_2"
1742
                 v-for="(advice, advice_index) in doctor_advices_2"
1768
                 :key="advice_index"
1743
                 :key="advice_index"
1769
               >
1744
               >
1770
-                <td height="32px">
1745
+                <td height="32px" style="border: 1px solid black;">
1771
                   <span v-if="advice.start_time">
1746
                   <span v-if="advice.start_time">
1772
                     {{ getTime(advice.start_time, "{h}:{i}") }}
1747
                     {{ getTime(advice.start_time, "{h}:{i}") }}
1773
                   </span>
1748
                   </span>
1777
                   height="32px"
1752
                   height="32px"
1778
                   colspan="2"
1753
                   colspan="2"
1779
                   class="advice-name"
1754
                   class="advice-name"
1780
-                  style="padding-left: 7px"
1755
+                  style="padding-left: 7px;border: 1px solid black;"
1781
                 >
1756
                 >
1782
                   <span v-if="advice.parent_id > 0">---></span>
1757
                   <span v-if="advice.parent_id > 0">---></span>
1783
                   <span>{{ advice.advice_name }}</span>
1758
                   <span>{{ advice.advice_name }}</span>
1824
                     >({{ advice.remark }})</span
1799
                     >({{ advice.remark }})</span
1825
                   >
1800
                   >
1826
                 </td>
1801
                 </td>
1827
-                <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
1828
-                  <span>{{advice.delivery_way}}</span>
1829
-                  <span>{{advice.execution_frequency}}</span>
1830
-                  <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1831
-                </td> -->
1832
-                <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1833
-                <td height="32px">
1802
+                <td height="32px" style="border: 1px solid black;">
1834
                   <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{
1803
                   <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{
1835
                     getAdminUser(advice.advice_doctor)
1804
                     getAdminUser(advice.advice_doctor)
1836
                   }}</span>
1805
                   }}</span>
1852
                     v-else
1821
                     v-else
1853
                   />
1822
                   />
1854
                 </td>
1823
                 </td>
1855
-                <!-- <td height="35px">
1856
-                  <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1857
-                  <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1858
-                </td> -->
1859
-                <td height="32px">
1824
+
1825
+                <td height="32px" style="border: 1px solid black;">
1860
                   <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
1826
                   <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
1861
                     getAdminUser(advice.execution_staff)
1827
                     getAdminUser(advice.execution_staff)
1862
                   }}</span>
1828
                   }}</span>
1868
                     v-else
1834
                     v-else
1869
                   />
1835
                   />
1870
                 </td>
1836
                 </td>
1871
-                <td height="32px">
1837
+                <td height="32px" style="border: 1px solid black;">
1872
                   <span v-if="advice.execution_time">{{
1838
                   <span v-if="advice.execution_time">{{
1873
                     getTime(advice.execution_time, "{h}:{i}")
1839
                     getTime(advice.execution_time, "{h}:{i}")
1874
                   }}</span>
1840
                   }}</span>
1886
                   font-size: 16px;
1852
                   font-size: 16px;
1887
                   padding: 6px 8px;
1853
                   padding: 6px 8px;
1888
                   line-height: 30px;
1854
                   line-height: 30px;
1855
+                  border: 1px solid black;
1889
                 "
1856
                 "
1890
               >
1857
               >
1891
                 透析后情况
1858
                 透析后情况

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

377
                   <tbody>
377
                   <tbody>
378
                     <tr>
378
                     <tr>
379
                       <td width="70">抗凝方式:</td>
379
                       <td width="70">抗凝方式:</td>
380
-                      <td width="80">
380
+                      <td width="80" v-if="prescription.anticoagulant == 2 ">
381
                         <label-box :isChecked="prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
381
                         <label-box :isChecked="prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
382
                       </td>
382
                       </td>
383
+                      <td width="120" v-if="prescription.anticoagulant == 14">
384
+                        <label-box :isChecked="prescription.anticoagulant == 14 ? true : false" showValue="肝素钙注射液"></label-box>
385
+                      </td>
383
                       <td width="10">(</td>
386
                       <td width="10">(</td>
384
                       <td width="35">首剂</td>
387
                       <td width="35">首剂</td>
385
                       <td width="50">
388
                       <td width="50">
386
                         <div class="under-line">
389
                         <div class="under-line">
387
                           &nbsp;
390
                           &nbsp;
388
                           <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_shouji }}</span>
391
                           <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_shouji }}</span>
392
+                          <span v-if="prescription.anticoagulant == 14">{{ prescription.anticoagulant_shouji }}</span>
389
                         </div>
393
                         </div>
390
                       </td>
394
                       </td>
391
                       <td width="50">mg</td>
395
                       <td width="50">mg</td>
395
                         <div class="under-line">
399
                         <div class="under-line">
396
                           &nbsp;
400
                           &nbsp;
397
                           <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_weichi }}</span>
401
                           <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_weichi }}</span>
402
+                          <span v-if="prescription.anticoagulant == 14">{{ prescription.anticoagulant_weichi }}</span>
398
                         </div>
403
                         </div>
399
                       </td>
404
                       </td>
400
                       <td width="40">mg/h</td>
405
                       <td width="40">mg/h</td>
412
                       <td width="60">
417
                       <td width="60">
413
                         <div class="under-line">
418
                         <div class="under-line">
414
                           &nbsp;
419
                           &nbsp;
420
+                          <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_zongliang }}</span>
415
                           <span v-if="prescription.anticoagulant == 3">{{ prescription.anticoagulant_zongliang }}</span>
421
                           <span v-if="prescription.anticoagulant == 3">{{ prescription.anticoagulant_zongliang }}</span>
416
                           <span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_zongliang }}</span>
422
                           <span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_zongliang }}</span>
417
                           <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
423
                           <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
424
+                          <span v-if="prescription.anticoagulant == 14">{{ prescription.anticoagulant_zongliang }}</span>
418
                         </div>
425
                         </div>
419
                       </td>
426
                       </td>
420
                       <td width="20" v-if="isShowZero">mg</td>
427
                       <td width="20" v-if="isShowZero">mg</td>

+ 123 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4
+    <el-button type="primary" @click="toUpload">一键上传</el-button>
4
     
5
     
5
     <div id="dialysis-print-box-1"  ref="pdfContent">
6
     <div id="dialysis-print-box-1"  ref="pdfContent">
6
       <div
7
       <div
1498
                           }}
1499
                           }}
1499
                         </td>
1500
                         </td>
1500
                         <td>
1501
                         <td>
1501
-                          {{
1502
+                          <span v-if="org_id ==10551">
1503
+                            {{
1502
                             monitor.venous_pressure
1504
                             monitor.venous_pressure
1503
                               ? monitor.venous_pressure
1505
                               ? monitor.venous_pressure
1504
                               : "/"
1506
                               : "/"
1505
-                          }}
1507
+                            }}
1508
+                          </span>
1509
+                          <span v-if="org_id!=10551">
1510
+                            {{
1511
+                            monitor.venous_pressure
1512
+                              ? monitor.venous_pressure
1513
+                              : ""
1514
+                            }}
1515
+                          </span>
1516
+                          
1506
                         </td>
1517
                         </td>
1507
                         <td>
1518
                         <td>
1508
                           <span
1519
                           <span
3434
     };
3445
     };
3435
   },
3446
   },
3436
   methods: {
3447
   methods: {
3448
+    toUpload() {
3449
+         
3450
+         let dom = document.getElementById("dialysis-print-box-1")
3451
+         //调用方法下载
3452
+         html2canvas(dom, {
3453
+           useCORS: true, //允许跨域
3454
+           allowTaint: false,
3455
+           logging: false,
3456
+           letterRendering: true,
3457
+           ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
3458
+           scale: 4, //按比例增加分辨率
3459
+           background: '#fff',//pdf背景色为白色,默认是黑色的
3460
+         }).then((canvas) => {
3461
+           //返回图片dataURL,参数:图片格式和清晰度(0-1)
3462
+           var pageData = canvas.toDataURL('image/jpeg', 1.0);
3463
+ 
3464
+           //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
3465
+           var pdf = new jsPDF('', 'pt', 'a4');
3466
+ 
3467
+           //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
3468
+           //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
3469
+           pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
3470
+           
3471
+           console.log("pdf222222222222222222",pdf)
3472
+
3473
+           var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
3474
+           // console.log("base63",newBase64Data)
3475
+           const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
3476
+           console.log("blobwoowowowwo",blob)
3477
+           this.openPdf(blob);
3478
+           
3479
+           // var data = {
3480
+           //   name:newBase64Data,
3481
+           // }
3482
+           // UploadPrintOrder(data).then(response=>{
3483
+           //   if(response.data.state == 1){
3484
+           //     var sign =  response.data.data.sign
3485
+           //     console.log("SIGNWWOOWWO")
3486
+           //     var pdfBase64 = response.data.data.pdfBase64
3487
+           //     console.log("pdfBase64",pdfBase64)
3488
+           //     this.$message.success("保存成功!")
3489
+           //     const blob = this.base64ToBlob(pdfBase64, 'application/pdf');
3490
+           //     this.openPdf(blob);
3491
+           //   }
3492
+           // })
3493
+           
3494
+           // this.viewPdf(newBase64Data)
3495
+           //保存到pdf,名字是stone
3496
+           // pdf.save('stone.pdf');
3497
+          
3498
+         });
3499
+       },
3500
+    
3501
+     viewPdf(content) {
3502
+       console.log("content",content);
3503
+       const blob = this.base64ToBlob(content);
3504
+       if (window.navigator && window.navigator.msSaveOrOpenBlob) {
3505
+         window.navigator.msSaveOrOpenBlob(blob);
3506
+       } else {
3507
+         const fileURL = URL.createObjectURL(blob);
3508
+         console.log("fileUlrwowowoow",fileURL)
3509
+         window.open(fileURL);//打开ppf文件
3510
+       }
3511
+     },
3512
+     compare (property) {
3513
+       return function (a, b) {
3514
+           var value1 = a[property]
3515
+           var value2 = b[property]
3516
+           return value1 - value2
3517
+       }
3518
+     },
3519
+ 
3520
+     openPdf(blob) {
3521
+       const objectUrl = URL.createObjectURL(blob);
3522
+       const a = document.createElement('a');
3523
+       a.href = objectUrl;
3524
+       a.target = '_blank';
3525
+       a.click();
3526
+       URL.revokeObjectURL(objectUrl);
3527
+     },
3528
+      base64ToBlob(base64Data, contentType) {
3529
+       contentType = contentType || '';
3530
+       const sliceSize = 1024;
3531
+       const byteCharacters = window.atob(base64Data);
3532
+       const bytesLength = byteCharacters.length;
3533
+       const slicesCount = Math.ceil(bytesLength / sliceSize);
3534
+       const byteArrays = new Array(slicesCount);
3535
+ 
3536
+       for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
3537
+         const begin = sliceIndex * sliceSize;
3538
+         const end = Math.min(begin + sliceSize, bytesLength);
3539
+ 
3540
+         const bytes = new Array(end - begin);
3541
+         for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
3542
+           bytes[i] = byteCharacters[offset].charCodeAt(0);
3543
+         }
3544
+         byteArrays[sliceIndex] = new Uint8Array(bytes);
3545
+       }
3546
+ 
3547
+       return new Blob(byteArrays, {
3548
+         type: contentType
3549
+       });
3550
+     },
3551
+    
3552
+     UploadPdf(res) {
3553
+       let pdfBase64Str = res;
3554
+       let title = "上传给后端的个人报告";
3555
+       var myfile = this.dataURLtoFile(pdfBase64Str, title + ".pdf")
3556
+       console.log("myfile",myfile)
3557
+     },
3437
     // 获取当前年份,用于年龄计算
3558
     // 获取当前年份,用于年龄计算
3438
     getoldAge() {
3559
     getoldAge() {
3439
       let date = new Date();
3560
       let date = new Date();

+ 18 - 79
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue View File

1498
                           医嘱内容
1498
                           医嘱内容
1499
                         </td>
1499
                         </td>
1500
                       </tr>
1500
                       </tr>
1501
-                      <!-- <tr style="line-height:35px;padding:8px 5px;">
1502
-                    <td colspan="4" style="font-size: 16px">开医嘱</td>
1503
-                    <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1504
-                  </tr> -->
1505
                       <tr style="line-height: 35px; padding: 8px 5px">
1501
                       <tr style="line-height: 35px; padding: 8px 5px">
1506
                         <td style="font-size: 16px" width="10%">时间</td>
1502
                         <td style="font-size: 16px" width="10%">时间</td>
1507
                         <td style="font-size: 16px" colspan="2" width="45%">
1503
                         <td style="font-size: 16px" colspan="2" width="45%">
1510
                         <td style="font-size: 16px" width="10%">医生签名</td>
1506
                         <td style="font-size: 16px" width="10%">医生签名</td>
1511
                         <td style="font-size: 16px" width="10%">时间</td>
1507
                         <td style="font-size: 16px" width="10%">时间</td>
1512
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1508
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1513
-                        <td
1514
-                          style="font-size: 16px"
1515
-                          width="10%"
1516
-                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1517
-                        >
1518
-                          核对护士
1519
-                        </td>
1509
+                       
1520
                       </tr>
1510
                       </tr>
1521
-                      <!-- <template v-for="group in doctor_advices" > -->
1522
-
1523
                       <tr
1511
                       <tr
1524
                         v-for="(advice, advice_index) in doctor_advices"
1512
                         v-for="(advice, advice_index) in doctor_advices"
1525
                         :key="advice_index"
1513
                         :key="advice_index"
1528
                           <span v-if="advice.start_time">
1516
                           <span v-if="advice.start_time">
1529
                             {{ getTime(advice.start_time, "{h}:{i}") }}
1517
                             {{ getTime(advice.start_time, "{h}:{i}") }}
1530
                           </span>
1518
                           </span>
1531
-                          <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1519
+
1532
                         </td>
1520
                         </td>
1533
                         <td
1521
                         <td
1534
                           height="32px"
1522
                           height="32px"
1536
                           class="advice-name"
1524
                           class="advice-name"
1537
                           style="padding-left: 7px"
1525
                           style="padding-left: 7px"
1538
                         >
1526
                         >
1539
-                          <span v-if="advice.parent_id > 0">---></span>
1527
+                      
1528
+                          <span v-if="advice.parent_id > 0"></span>
1540
                           <span>{{ advice.advice_name }}</span>
1529
                           <span>{{ advice.advice_name }}</span>
1541
                           <span v-if="advice && advice.advice_desc"
1530
                           <span v-if="advice && advice.advice_desc"
1542
                             >({{ advice.advice_desc
1531
                             >({{ advice.advice_desc
1563
                             >({{ advice.remark }})</span
1552
                             >({{ advice.remark }})</span
1564
                           >
1553
                           >
1565
                         </td>
1554
                         </td>
1566
-                        <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
1567
-                      <span>{{advice.delivery_way}}</span>
1568
-                      <span>{{advice.execution_frequency}}</span>
1569
-                      <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1570
-                    </td> -->
1571
-                        <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1555
+                      
1572
                         <td height="32px">
1556
                         <td height="32px">
1573
                           <span
1557
                           <span
1574
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1558
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1582
                             v-else
1566
                             v-else
1583
                           />
1567
                           />
1584
                         </td>
1568
                         </td>
1585
-                        <!-- <td height="35px">
1586
-                      <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1587
-                      <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1588
-                    </td> -->
1569
+                       
1589
                         <td height="32px">
1570
                         <td height="32px">
1590
                           <span v-if="advice.execution_time">{{
1571
                           <span v-if="advice.execution_time">{{
1591
                             getTime(advice.execution_time, "{h}:{i}")
1572
                             getTime(advice.execution_time, "{h}:{i}")
1604
                             v-else
1585
                             v-else
1605
                           />
1586
                           />
1606
                         </td>
1587
                         </td>
1607
-
1608
-                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
1609
-                          <span v-if="setAdminUserES(advice.checker) == ''">{{
1610
-                            getAdminUser(advice.checker)
1611
-                          }}</span>
1612
-                          <img
1613
-                            style="height: 30px"
1614
-                            :src="setAdminUserES(advice.checker)"
1615
-                            alt=""
1616
-                            srcset=""
1617
-                            v-else
1618
-                          />
1619
-                        </td>
1620
                       </tr>
1588
                       </tr>
1621
-                      <!-- </template> -->
1622
                     </tbody>
1589
                     </tbody>
1623
                   </table>
1590
                   </table>
1624
                 </td>
1591
                 </td>
1820
             </div>
1787
             </div>
1821
           </div>
1788
           </div>
1822
         </template>
1789
         </template>
1790
+
1823
         <div class="row" style="margin-top: -11px; position: relative">
1791
         <div class="row" style="margin-top: -11px; position: relative">
1824
           <table class="proj_table">
1792
           <table class="proj_table">
1825
             <tbody>
1793
             <tbody>
1839
                     医嘱内容
1807
                     医嘱内容
1840
                   </td>
1808
                   </td>
1841
                 </tr>
1809
                 </tr>
1842
-                <!-- <tr style="line-height:35px;padding:8px 5px;">
1843
-                <td colspan="4" style="font-size: 16px">开医嘱</td>
1844
-                <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1845
-              </tr> -->
1810
+              
1846
                 <tr style="line-height: 35px; padding: 8px 5px">
1811
                 <tr style="line-height: 35px; padding: 8px 5px">
1847
                   <td style="font-size: 15px" width="10%">时间</td>
1812
                   <td style="font-size: 15px" width="10%">时间</td>
1848
                   <td style="font-size: 15px" colspan="2" width="45%">
1813
                   <td style="font-size: 15px" colspan="2" width="45%">
1851
                   <td style="font-size: 15px" width="10%">医生签名</td>
1816
                   <td style="font-size: 15px" width="10%">医生签名</td>
1852
                   <td style="font-size: 15px" width="10%">时间</td>
1817
                   <td style="font-size: 15px" width="10%">时间</td>
1853
                   <td style="font-size: 15px" width="10%">执行人签名</td>
1818
                   <td style="font-size: 15px" width="10%">执行人签名</td>
1854
-                  <td
1855
-                    style="font-size: 15px"
1856
-                    width="10%"
1857
-                    v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1858
-                  >
1859
-                    核对护士
1860
-                  </td>
1819
+                 
1861
                 </tr>
1820
                 </tr>
1862
-                <!-- <template v-for="group in doctor_advices" > -->
1821
+               
1863
                 <tr
1822
                 <tr
1864
                   v-for="(advice, advice_index) in doctor_advices"
1823
                   v-for="(advice, advice_index) in doctor_advices"
1865
                   :key="advice_index"
1824
                   :key="advice_index"
1868
                     <span v-if="advice.start_time">
1827
                     <span v-if="advice.start_time">
1869
                       {{ getTime(advice.start_time, "{h}:{i}") }}
1828
                       {{ getTime(advice.start_time, "{h}:{i}") }}
1870
                     </span>
1829
                     </span>
1871
-                    <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1830
+                  
1872
                   </td>
1831
                   </td>
1873
                   <td
1832
                   <td
1874
                     height="32px"
1833
                     height="32px"
1876
                     class="advice-name"
1835
                     class="advice-name"
1877
                     style="padding-left: 7px"
1836
                     style="padding-left: 7px"
1878
                   >
1837
                   >
1879
-                    <span v-if="advice.parent_id > 0">---></span>
1838
+                    <span v-if="advice.parent_id > 0"></span>
1880
                     <span>{{ advice.advice_name }}</span>
1839
                     <span>{{ advice.advice_name }}</span>
1881
                     <span v-if="advice && advice.advice_desc"
1840
                     <span v-if="advice && advice.advice_desc"
1882
                       >({{ advice.advice_desc
1841
                       >({{ advice.advice_desc
1903
                       >({{ advice.remark }})</span
1862
                       >({{ advice.remark }})</span
1904
                     >
1863
                     >
1905
                   </td>
1864
                   </td>
1906
-                  <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
1907
-                <span>{{advice.delivery_way}}</span>
1908
-                <span>{{advice.execution_frequency}}</span>
1909
-                <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1910
-              </td> -->
1911
-                  <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1865
+                
1912
                   <td height="32px">
1866
                   <td height="32px">
1913
                     <span
1867
                     <span
1914
                       v-if="setAdminUserES(advice.advice_doctor) == ''"
1868
                       v-if="setAdminUserES(advice.advice_doctor) == ''"
1922
                       v-else
1876
                       v-else
1923
                     />
1877
                     />
1924
                   </td>
1878
                   </td>
1925
-                  <!-- <td height="35px">
1926
-                <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1927
-                <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1928
-              </td> -->
1879
+                  
1929
                   <td height="32px">
1880
                   <td height="32px">
1930
                     <span v-if="advice.execution_time">{{
1881
                     <span v-if="advice.execution_time">{{
1931
                       getTime(advice.execution_time, "{h}:{i}")
1882
                       getTime(advice.execution_time, "{h}:{i}")
1945
                     />
1896
                     />
1946
                   </td>
1897
                   </td>
1947
 
1898
 
1948
-                  <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
1949
-                    <span v-if="setAdminUserES(advice.checker) == ''">{{
1950
-                      getAdminUser(advice.checker)
1951
-                    }}</span>
1952
-                    <img
1953
-                      style="height: 30px"
1954
-                      :src="setAdminUserES(advice.checker)"
1955
-                      alt=""
1956
-                      srcset=""
1957
-                      v-else
1958
-                    />
1959
-                  </td>
1960
                 </tr>
1899
                 </tr>
1961
               </template>
1900
               </template>
1962
 
1901
 
2562
          <div style="position: relative; left: 70%;top: 50px;width: 288px;">
2501
          <div style="position: relative; left: 70%;top: 50px;width: 288px;">
2563
           患者签名:
2502
           患者签名:
2564
           <div class="under_line" style="width: 120px;">
2503
           <div class="under_line" style="width: 120px;">
2565
-            <img
2504
+            <!-- <img
2566
               style="height: 30px"
2505
               style="height: 30px"
2567
               :src="dialysisOrder == null? 0: dialysisOrder.url"
2506
               :src="dialysisOrder == null? 0: dialysisOrder.url"
2568
               alt=""
2507
               alt=""
2569
               srcset=""
2508
               srcset=""
2570
-            />
2509
+            /> -->
2571
           </div>
2510
           </div>
2572
         </div>
2511
         </div>
2573
       </div>
2512
       </div>
3679
       
3618
       
3680
         console.log("时间我我我哦我我",this.doctor_advices)
3619
         console.log("时间我我我哦我我",this.doctor_advices)
3681
         if (this.doctor_advices.length <= 6) {
3620
         if (this.doctor_advices.length <= 6) {
3682
-          var nl = 6;
3683
-          this.print_length = 6;
3621
+          var nl = 3;
3622
+          this.print_length = 3;
3684
 
3623
 
3685
           for (let index = 0; index < nl; index++) {
3624
           for (let index = 0; index < nl; index++) {
3686
             if (
3625
             if (

+ 75 - 36
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

2
   <div >
2
   <div >
3
     <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
     <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
4
     <el-button type="primary" @click="toUpload">一键上传</el-button>
4
     <el-button type="primary" @click="toUpload">一键上传</el-button>
5
-    <div id="dialysis-print-box-64">
5
+    <div >
6
       <div
6
       <div
7
-        id="dialysis-print-box-64-1"
7
+        id="dialysis-print-box-64-1  "
8
         class="dialysis-print-order print-template-two print_page_main_content"
8
         class="dialysis-print-order print-template-two print_page_main_content"
9
+        
9
       >
10
       >
10
-        <div>
11
-          <!-- <div
11
+        <div id="dialysis-print-box-64" style="padding:10px 0 0 40px  ;">
12
+          <!-- <div 10px 0 0 40px
12
             class="order-yy-name"
13
             class="order-yy-name"
13
             style=" letter-spacing: 0;
14
             style=" letter-spacing: 0;
14
                 font-weight: 600;
15
                 font-weight: 600;
24
               <div style="display:inline-block; ;">病历号:
25
               <div style="display:inline-block; ;">病历号:
25
                 {{patientInfo.record_number?patientInfo.record_number:"" }}
26
                 {{patientInfo.record_number?patientInfo.record_number:"" }}
26
               </div>
27
               </div>
27
-              <div style="display:inline-block;margin-left: 90px;">
28
+              <div style="display:inline-block;margin-left: 50px;">
28
                 姓名:{{ patientInfo.name }}
29
                 姓名:{{ patientInfo.name }}
29
               </div>
30
               </div>
30
-              <div style="display:inline-block; margin-left: 90px;">
31
+              <div style="display:inline-block; margin-left: 50px;">
31
                 性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
32
                 性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
32
               </div>
33
               </div>
33
-              <div style="display:inline-block; margin-left: 90px;">
34
+              <div style="display:inline-block; margin-left: 50px;">
34
                 年龄:{{ getAge(patientInfo) }}
35
                 年龄:{{ getAge(patientInfo) }}
35
               </div>
36
               </div>
36
-              <div style="display:inline-block; margin-left: 90px;">
37
+              <div style="display:inline-block; margin-left: 50px;">
37
                 透析次数:{{
38
                 透析次数:{{
38
                   patientInfo.total_dialysis +
39
                   patientInfo.total_dialysis +
39
                     patientInfo.user_sys_before_count
40
                     patientInfo.user_sys_before_count
52
                 透析中心:{{ orgname }}
53
                 透析中心:{{ orgname }}
53
               </div>
54
               </div>
54
             </div>
55
             </div>
55
-            <table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse; width: 960px; ">
56
+            <table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse; width: 100%; ">
56
               <tr>
57
               <tr>
57
                 <td colspan="3" style="border:1px solid black">
58
                 <td colspan="3" style="border:1px solid black">
58
                   <div style="display: inline-block; word-break: break-all;word-wrap: break-word;">
59
                   <div style="display: inline-block; word-break: break-all;word-wrap: break-word;">
1320
     },
1321
     },
1321
 
1322
 
1322
     toUpload() {
1323
     toUpload() {
1323
-        let dom = document.getElementById("dialysis-print-box-64");
1324
+       
1325
+        let dom = document.getElementById("dialysis-print-box-64")
1324
         //调用方法下载
1326
         //调用方法下载
1325
         html2canvas(dom, {
1327
         html2canvas(dom, {
1326
           useCORS: true, //允许跨域
1328
           useCORS: true, //允许跨域
1330
           ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
1332
           ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
1331
           scale: 4, //按比例增加分辨率
1333
           scale: 4, //按比例增加分辨率
1332
           background: '#fff',//pdf背景色为白色,默认是黑色的
1334
           background: '#fff',//pdf背景色为白色,默认是黑色的
1333
-       
1334
         }).then((canvas) => {
1335
         }).then((canvas) => {
1335
           //返回图片dataURL,参数:图片格式和清晰度(0-1)
1336
           //返回图片dataURL,参数:图片格式和清晰度(0-1)
1336
           var pageData = canvas.toDataURL('image/jpeg', 1.0);
1337
           var pageData = canvas.toDataURL('image/jpeg', 1.0);
1339
           var pdf = new jsPDF('', 'pt', 'a4');
1340
           var pdf = new jsPDF('', 'pt', 'a4');
1340
 
1341
 
1341
           //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
1342
           //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
1342
-          pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
1343
+          // pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
1344
+          pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
1343
 
1345
 
1344
           var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1346
           var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1345
           console.log("base63",newBase64Data)
1347
           console.log("base63",newBase64Data)
1346
-          this.viewPdf(newBase64Data)
1347
 
1348
 
1348
-          var data = {
1349
-            name:newBase64Data,
1350
-          }
1351
-          UploadPrintOrder(data).then(response=>{
1352
-            if(response.data.state == 1){
1353
-              var sign =  response.data.data.sign
1354
-              console.log("SIGNWWOOWWO")
1355
-              this.$message.success("保存成功!")
1356
-            }
1357
-          })
1349
+          const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
1350
+          this.openPdf(blob);
1351
+          // this.viewPdf(newBase64Data)
1352
+          
1353
+          // var data = {
1354
+          //   name:newBase64Data,
1355
+          // }
1356
+          // UploadPrintOrder(data).then(response=>{
1357
+          //   if(response.data.state == 1){
1358
+          //     var sign =  response.data.data.sign
1359
+          //     console.log("SIGNWWOOWWO")
1360
+          //     this.$message.success("保存成功!")
1361
+          //   }
1362
+          // })
1358
           
1363
           
1359
           // this.viewPdf(newBase64Data)
1364
           // this.viewPdf(newBase64Data)
1360
           //保存到pdf,名字是stone
1365
           //保存到pdf,名字是stone
1374
         window.open(fileURL);//打开ppf文件
1379
         window.open(fileURL);//打开ppf文件
1375
       }
1380
       }
1376
     },
1381
     },
1377
-    base64ToBlob(code) {
1378
-      code = code.replace(/[\n\r]/g, '');// 检查base64字符串是否符合base64编码
1379
-      // atob() 方法用于解码使用 base-64 编码的字符串。
1380
-      const raw = window.atob(code);
1381
-      const rawLength = raw.length;
1382
-      const uInt8Array = new Uint8Array(rawLength);
1383
-      for (let i = 0; i < rawLength; ++i) {
1384
-      // 将解码后的逐个字符转换成Unicode序号,放入Unit8Array数组
1385
-        uInt8Array[i] = raw.charCodeAt(i);
1386
-      }
1387
-      // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1388
-      return new Blob([uInt8Array], { type: 'application/pdf' });
1389
-    },
1382
+    // base64ToBlob(code) {
1383
+    //   code = code.replace(/[\n\r]/g, '');// 检查base64字符串是否符合base64编码
1384
+    //   // atob() 方法用于解码使用 base-64 编码的字符串。
1385
+    //   const raw = window.atob(code);
1386
+    //   const rawLength = raw.length;
1387
+    //   const uInt8Array = new Uint8Array(rawLength);
1388
+    //   for (let i = 0; i < rawLength; ++i) {
1389
+    //   // 将解码后的逐个字符转换成Unicode序号,放入Unit8Array数组
1390
+    //     uInt8Array[i] = raw.charCodeAt(i);
1391
+    //   }
1392
+    //   // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1393
+    //   return new Blob([uInt8Array], { type: 'application/pdf' });
1394
+    // },
1390
     compare (property) {
1395
     compare (property) {
1391
       return function (a, b) {
1396
       return function (a, b) {
1392
           var value1 = a[property]
1397
           var value1 = a[property]
1394
           return value1 - value2
1399
           return value1 - value2
1395
       }
1400
       }
1396
     },
1401
     },
1402
+
1403
+    openPdf(blob) {
1404
+      const objectUrl = URL.createObjectURL(blob);
1405
+      const a = document.createElement('a');
1406
+      a.href = objectUrl;
1407
+      a.target = '_blank';
1408
+      a.click();
1409
+      URL.revokeObjectURL(objectUrl);
1410
+    },
1411
+     base64ToBlob(base64Data, contentType) {
1412
+      contentType = contentType || '';
1413
+      const sliceSize = 1024;
1414
+      const byteCharacters = window.atob(base64Data);
1415
+      const bytesLength = byteCharacters.length;
1416
+      const slicesCount = Math.ceil(bytesLength / sliceSize);
1417
+      const byteArrays = new Array(slicesCount);
1418
+
1419
+      for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
1420
+        const begin = sliceIndex * sliceSize;
1421
+        const end = Math.min(begin + sliceSize, bytesLength);
1422
+
1423
+        const bytes = new Array(end - begin);
1424
+        for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
1425
+          bytes[i] = byteCharacters[offset].charCodeAt(0);
1426
+        }
1427
+        byteArrays[sliceIndex] = new Uint8Array(bytes);
1428
+      }
1429
+
1430
+      return new Blob(byteArrays, {
1431
+        type: contentType
1432
+      });
1433
+    },
1434
+
1435
+  
1397
   },
1436
   },
1398
   created() {
1437
   created() {
1399
     var bloodAccessParOpera = getDataConfig(
1438
     var bloodAccessParOpera = getDataConfig(

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


+ 8 - 12
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

1566
       this.$refs.additionalCharges.hide()
1566
       this.$refs.additionalCharges.hide()
1567
 
1567
 
1568
     }, searchProjectAction() {
1568
     }, searchProjectAction() {
1569
-      console.log('~~~~')
1570
-      
1571
-      // console.log(this.allProject)
1572
-
1573
-
1569
+      console.log('~~~~',this.search_project_keyword)
1570
+      console.log('1111',this.allProject)
1574
       if (this.search_project_keyword.length == 0) {
1571
       if (this.search_project_keyword.length == 0) {
1575
         this.tabProject = this.allProject
1572
         this.tabProject = this.allProject
1576
 
1573
 
1577
       } else {
1574
       } else {
1578
         let arr = []
1575
         let arr = []
1579
         for (let i = 0; i < this.allProject.length; i++) {
1576
         for (let i = 0; i < this.allProject.length; i++) {
1580
-
1577
+          
1581
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1578
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1582
-              arr = arr.concat(this.allProject[i])
1579
+                arr = arr.concat(this.allProject[i])
1583
             }
1580
             }
1584
           
1581
           
1585
         }
1582
         }
1586
         this.tabProject = arr
1583
         this.tabProject = arr
1584
+        console.log('rrrr',this.tabProject)
1587
       }
1585
       }
1588
 
1586
 
1589
     }, searchProjectTeamAction() {
1587
     }, searchProjectTeamAction() {
1609
         for (let i = 0; i < this.drugs.length; i++) {
1607
         for (let i = 0; i < this.drugs.length; i++) {
1610
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 || 
1608
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 || 
1611
           this.drugs[i].wubi.indexOf(this.search_keyword) != -1 || 
1609
           this.drugs[i].wubi.indexOf(this.search_keyword) != -1 || 
1612
-          this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1613
-          this.drugs[i].first_letter.indexOf(this.search_keyword) != -1) {
1610
+          this.drugs[i].pinyin.indexOf(this.search_keyword) != -1) {
1614
             arr = arr.concat(this.drugs[i])
1611
             arr = arr.concat(this.drugs[i])
1615
           }
1612
           }
1616
         }
1613
         }
3463
               total: good_info[i].total,
3460
               total: good_info[i].total,
3464
               is_special_diseases: good_info[i].is_special_diseases,
3461
               is_special_diseases: good_info[i].is_special_diseases,
3465
               good_info: good_info[i],
3462
               good_info: good_info[i],
3466
-              stock_count: good_info[i].stock_count
3463
+              stock_count: good_info[i].stock_count,
3464
+              first_letter:good_info[i].first_letter
3467
             }
3465
             }
3468
             this.tabProject.push(obj)
3466
             this.tabProject.push(obj)
3469
           }
3467
           }
3470
-
3471
           this.allProject = this.tabProject
3468
           this.allProject = this.tabProject
3472
-
3473
         }
3469
         }
3474
       })
3470
       })
3475
 
3471
 

+ 21 - 12
src/xt_pages/hospitalStation/doctorDesk.vue View File

558
             let arr4 = []
558
             let arr4 = []
559
             // console.log('3333',this.all_data);
559
             // console.log('3333',this.all_data);
560
             for (let i = 0; i < this.all_data.length; i++) {
560
             for (let i = 0; i < this.all_data.length; i++) {
561
-              if (this.all_data[i].name.indexOf(this.search_input) != -1 || 
562
-              this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 ||
563
-              this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
564
-                arr4 = arr4.concat(this.all_data[i])
561
+              if(this.all_data[i].first_letter !=undefined){
562
+                if (this.all_data[i].name.indexOf(this.search_input) != -1 || 
563
+                  this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 ||
564
+                  this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
565
+                    arr4 = arr4.concat(this.all_data[i])
566
+                }
565
               }
567
               }
568
+              
566
             }
569
             }
567
             this.patientTableData = arr4
570
             this.patientTableData = arr4
568
             break
571
             break
570
             let arr2 = []
573
             let arr2 = []
571
             // console.log('4444',this.all_data);
574
             // console.log('4444',this.all_data);
572
             for (let i = 0; i < this.all_data.length; i++) {
575
             for (let i = 0; i < this.all_data.length; i++) {
573
-              if (this.all_data[i].name.indexOf(this.search_input) != -1 || 
574
-                  this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 ||
575
-                  this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
576
-                arr2 = arr2.concat(this.all_data[i])
576
+              if(this.all_data[i].first_letter !=undefined){
577
+                if (this.all_data[i].name.indexOf(this.search_input) != -1 || 
578
+                    this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 ||
579
+                    this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
580
+                  arr2 = arr2.concat(this.all_data[i])
581
+                }
577
               }
582
               }
583
+             
578
             }
584
             }
579
             this.patientTableData = arr2
585
             this.patientTableData = arr2
580
 
586
 
583
             let arr3 = []
589
             let arr3 = []
584
             // console.log('5555',this.all_data);
590
             // console.log('5555',this.all_data);
585
             for (let i = 0; i < this.all_data.length; i++) {
591
             for (let i = 0; i < this.all_data.length; i++) {
586
-              if (this.all_data[i].name.indexOf(this.search_input) != -1 || 
587
-              this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 || 
588
-              this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
589
-                arr3 = arr3.concat(this.all_data[i])
592
+              if(this.all_data[i].first_letter !=undefined){
593
+                if (this.all_data[i].name.indexOf(this.search_input) != -1 || 
594
+                  this.all_data[i].his_patient.number.indexOf(this.search_input) != -1 || 
595
+                  this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
596
+                  arr3 = arr3.concat(this.all_data[i])
597
+                }
590
               }
598
               }
599
+              
591
             }
600
             }
592
             this.patientTableData = arr3
601
             this.patientTableData = arr3
593
             break
602
             break

+ 3 - 3
src/xt_pages/hospitalStation/print.vue View File

14
 
14
 
15
         <div class='dialysisPage'>
15
         <div class='dialysisPage'>
16
             <div v-if="org_id != 10138">
16
             <div v-if="org_id != 10138">
17
-                <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
-                <printFour v-if="org_id == 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
-                <printFive v-if="org_id == 10215 || org_id == 0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
17
+                <printOne v-if="org_id != 10088 && org_id != 10215 && org_id!=0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
+                <printFour v-if="org_id == 10088 || org_id == 0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
+                <printFive v-if="org_id == 10215 " v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
20
             </div>
20
             </div>
21
             <div v-else>
21
             <div v-else>
22
                 <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
22
                 <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>

+ 6 - 4
src/xt_pages/outpatientCharges/allListPrint.vue View File

13
     </template>
13
     </template>
14
 
14
 
15
     <div class='dialysisPage' style="padding-top:40px;">
15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne  v-if="org_id != 10215 && org_id != 0 && org_id !=9671&&org_id !=9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17
-      <summary-print v-if="org_id == 10215|| org_id == 0 || org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18
-
16
+      <printOne  v-if="org_id != 10215 && org_id !=0 && org_id !=9671&&org_id !=9675&& org_id !=10515" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17
+      <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18
+      <printTwo v-if="org_id==10515 || org_id==0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
19
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
19
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
20
     </div>
20
     </div>
21
   </div>
21
   </div>
27
   import printOne from './allListTemplate/printOne'
27
   import printOne from './allListTemplate/printOne'
28
   import ListPrintTwo from './listTemplate/listPrintTwo'
28
   import ListPrintTwo from './listTemplate/listPrintTwo'
29
   import SummaryPrint from './allListTemplate/summaryPrint'
29
   import SummaryPrint from './allListTemplate/summaryPrint'
30
+  import printTwo from './allListTemplate/printTwo'
30
 
31
 
31
   export default {
32
   export default {
32
     name: 'allListPrint',
33
     name: 'allListPrint',
33
     components: {
34
     components: {
34
       SummaryPrint,
35
       SummaryPrint,
35
       ListPrintTwo,
36
       ListPrintTwo,
36
-      printOne
37
+      printOne,
38
+      printTwo
37
     },
39
     },
38
     props: {
40
     props: {
39
       paramsObj: Object
41
       paramsObj: Object

+ 189 - 0
src/xt_pages/outpatientCharges/allListTemplate/printTwo.vue View File

1
+<template>
2
+  <div id="allList-print" class="allList-print">
3
+    <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</div>
4
+      <div class="allListInfo">
5
+        <div>患者姓名:{{ patient.name }}</div>
6
+        <div>透析号:{{ patient.dialysis_no }}</div>
7
+        <div>性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
8
+        <div>年龄:{{ patient.age }} 岁</div>
9
+        <div v-if="$store.getters.xt_user.org_id  == 0">日期:{{ hospital.in_hosptial_time }} 至
10
+          {{ hospital.out_hosptial_time }}
11
+        </div>
12
+        <div v-else>日期:{{ getTimes(order.settle_start_time) }} 至 {{ getTimes(order.settle_end_time) }}</div>
13
+
14
+      </div>
15
+    <div v-for='(i,index) in pageArr.length' :key="index">
16
+      <table class="allListTable" border="1">
17
+        <tr v-if="index==0">
18
+          <td style="width:10%">类别</td>
19
+          <td style="width:50%">项目名称</td>
20
+          <td style="width:10%">规格</td>
21
+          <td style="width:10%">单价(元)</td>
22
+          <td style="width:10%">数量</td>
23
+          <td style="width:10%">金额(元)</td>
24
+        </tr>
25
+        <template v-for='item in list.slice(index * 13,(index * 13) + pageArr[index])'>
26
+          <tr v-if="item.is_total == 2">
27
+            <td style="width:10%">{{ item.med_chrgitm_type }}</td>
28
+            <td style="width:50%">{{ item.name }}</td>
29
+            <td style="width:10%">{{ item.spec }}</td>
30
+            <td style="width:10%">{{ (item.price).toFixed(2) }}</td>
31
+            <td style="width:10%">{{ item.count }}{{ item.unit }}</td>
32
+            <td style="width:10%">{{ (item.price * item.count).toFixed(2) }}</td>
33
+          </tr>
34
+          <tr>
35
+            <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{ item.total }}元</td>
36
+          </tr>
37
+        </template>
38
+      </table>
39
+    </div>
40
+    <div class="tableBottom">
41
+      <div class="tableBottomOne">制表人:{{ admin.user_name }}</div>
42
+      <div class="tableBottomOne">制表日期:{{ getNowTime() }}</div>
43
+      <div class="tableBottomOne">总费用:{{ order.medfee_sumamt }}元</div>
44
+    </div>
45
+  </div>
46
+</template>
47
+
48
+<script>
49
+import { uParseTime } from '@/utils/tools'
50
+
51
+export default {
52
+  props: {
53
+    list: {
54
+      type: Array,
55
+      default: function() {
56
+        return []
57
+      }
58
+    }, patient: {
59
+      type: Object,
60
+      default: function() {
61
+        return {}
62
+      }
63
+    }, order: {
64
+      type: Object,
65
+      default: function() {
66
+        return {}
67
+      }
68
+    }, admin: {
69
+      type: Object,
70
+      default: function() {
71
+        return {}
72
+      }
73
+    }, hospital: {
74
+      type: Object,
75
+      default: function() {
76
+        return {}
77
+      }
78
+
79
+    }
80
+  },
81
+  data() {
82
+    return {
83
+      page: 1,
84
+      pageArr: []
85
+    }
86
+  },
87
+  methods: {
88
+    getNowTime: function() {
89
+      let dateTime
90
+      let yy = new Date().getFullYear()
91
+      let mm = new Date().getMonth() + 1
92
+      let dd = new Date().getDate()
93
+      let hh = new Date().getHours()
94
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
95
+          :
96
+          new Date().getMinutes()
97
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
98
+          :
99
+          new Date().getSeconds()
100
+      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
101
+      return dateTime
102
+    },
103
+    getTimes(time) {
104
+      return uParseTime(time, '{y}-{m}-{d}')
105
+    }, getTotal: function(items) {
106
+      let total = 0
107
+      for (let i = 0; i < items.length; i++) {
108
+        total = total + (items[i].count * items[i].price).toFixed(2)
109
+      }
110
+      return total
111
+
112
+    },
113
+    getPage() {
114
+      if (this.list.length <= 13) {
115
+        this.page = 1
116
+        this.pageArr.push(this.list.length)
117
+      } else if (this.list.length > 13) {
118
+        this.page = parseInt(this.list.length / 13)
119
+        let num = this.list.length % 13
120
+        for (var i = 0; i < this.page; i++) {
121
+          this.pageArr.push(13)
122
+        }
123
+        if (num != 0) {
124
+          this.pageArr.push(num)
125
+        }
126
+      }
127
+    }
128
+
129
+  },
130
+  watch: {
131
+    list: {
132
+      handler(newVal) {
133
+        this.getPage()
134
+      },
135
+      deep: true
136
+    }
137
+  }
138
+}
139
+
140
+
141
+</script>
142
+
143
+<style lang="scss" scoped>
144
+.allList-print {
145
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
146
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
147
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
148
+  margin-bottom: 20px;
149
+  padding: 20px 10px;
150
+}
151
+
152
+.allListTitle {
153
+  font-size: 22px;
154
+  text-align: center;
155
+  font-weight: bold;
156
+  margin-bottom: 10px;
157
+}
158
+
159
+.allListInfo {
160
+  display: flex;
161
+  font-size: 14px;
162
+  justify-content: space-between;
163
+  margin: 10px 0;
164
+}
165
+
166
+.allListTable {
167
+  width: 100%;
168
+  text-align: center;
169
+  border-collapse: collapse;
170
+  line-height: 20px;
171
+  font-size: 12px;
172
+  border-color: #000;
173
+  text-align: left;
174
+}
175
+
176
+.allListTable tr td {
177
+  padding: 0 5px;
178
+}
179
+
180
+.tableBottom {
181
+  font-size: 14px;
182
+  display: flex;
183
+  margin-top: 20px;
184
+}
185
+
186
+.tableBottomOne {
187
+  margin-right: 40px;
188
+}
189
+</style>

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

10
         type="primary"
10
         type="primary"
11
       >打印</el-button>
11
       >打印</el-button>
12
     </template>
12
     </template>
13
-    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 "><!---->
13
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 "><!--&& org_id != 10188 && org_id != 0-->
14
         <div class='dialysisPage'>
14
         <div class='dialysisPage'>
15
           <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387 && org_id != 10480 && org_id != 0" >
15
           <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387 && org_id != 10480 && org_id != 0" >
16
             <printOne v-if="org_id != 10088" :paramsObj="invoiceParams"></printOne>
16
             <printOne v-if="org_id != 10088" :paramsObj="invoiceParams"></printOne>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
21
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
21
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
22
-          <printthirteen v-if="org_id == 0 " :paramsObj="invoiceParams"></printthirteen>
23
-<!--          <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
22
+          <!-- <printthirteen v-if="org_id == 10188 || org_id == 0 " :paramsObj="invoiceParams"></printthirteen> -->
23
+<!--         <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
24
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
24
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
25
           <PrintNight v-if="org_id == 10210" :paramsObj="invoiceParams"></PrintNight>
25
           <PrintNight v-if="org_id == 10210" :paramsObj="invoiceParams"></PrintNight>
26
           <!-- <PrintTen v-if="org_id == 10375 ||org_id == 0 " :paramsObj="invoiceParams"></PrintTen> -->
26
           <!-- <PrintTen v-if="org_id == 10375 ||org_id == 0 " :paramsObj="invoiceParams"></PrintTen> -->
44
         <print-ten :paramsObj="invoiceParams"></print-ten>
44
         <print-ten :paramsObj="invoiceParams"></print-ten>
45
       </div>
45
       </div>
46
     </div>
46
     </div>
47
+    <!-- <div class="app-container" style="padding-top:30px;" v-if="org_id == 10188 || org_id == 0 ">
48
+      <div class='dialysisPage'>
49
+        <printthirteen  :paramsObj="invoiceParams"></printthirteen>
50
+      </div>
51
+    </div> -->
47
     <!-- <div class="app-container" style="padding-top:40px;" v-if="org_id == 0">
52
     <!-- <div class="app-container" style="padding-top:40px;" v-if="org_id == 0">
48
       <div class='dialysisPage'>
53
       <div class='dialysisPage'>
49
         <printthirteen :paramsObj="invoiceParams"></printthirteen>
54
         <printthirteen :paramsObj="invoiceParams"></printthirteen>

+ 53 - 46
src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue View File

1
 
1
 
2
 <template>
2
 <template>
3
   <div id='invoice-print'>
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>
4
+    <div v-for='(i,index) in pageArr.length' :key="index" style="width: 80%;margin: 0 auto;font-size: 16px;">
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;">
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>
7
+        <div style="flex: 1.1;">业务流水号:{{ list.order_number }}</div>
8
+        <div style="flex: 0.9;">医疗机构类型:</div>
10
         <div style="flex: 1;">医院国家编码:H32092103007</div>
9
         <div style="flex: 1;">医院国家编码:H32092103007</div>
11
-      </div> 
10
+       
11
+      </div>
12
+      <div style="display: flex;">
13
+        <div style="flex:1;">医生:{{ doctor_info.user_name }}</div>
14
+        <div style="flex: 1;">医生编码:{{ doctor_info.doctor_number }}</div>
15
+        <div style="flex: 1;">No.{{list.order.fa_piao_number}}</div>
16
+      </div>
12
       <div style="display: flex;border: 1px solid black;padding: 5px 0;">
17
       <div style="display: flex;border: 1px solid black;padding: 5px 0;">
13
         <div style="flex: 1;">姓名:{{ paramsObj.name }}</div>
18
         <div style="flex: 1;">姓名:{{ paramsObj.name }}</div>
14
         <div style="flex: 1;">性别:</div>
19
         <div style="flex: 1;">性别:</div>
15
         <div style="flex: 1;">医保类型:</div>
20
         <div style="flex: 1;">医保类型:</div>
16
         <div style="flex: 1;">社会保障号码:</div>
21
         <div style="flex: 1;">社会保障号码:</div>
17
-       
22
+
18
       </div>
23
       </div>
19
       <div style="display: flex;border: 1px solid black;text-align: center;border-top:none;">
24
       <div style="display: flex;border: 1px solid black;text-align: center;border-top:none;">
20
         <div style="flex: 1;display: flex;">
25
         <div style="flex: 1;display: flex;">
26
           <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">数量</div>
31
           <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>
32
           <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">金额</div>
28
         </div>
33
         </div>
34
+        <div style="flex: 2;display: flex;border-left: 1px solid black;">
35
+          <div style="flex: 1; padding: 5px 0;">项目/规格</div>
36
+          <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">数量</div>
37
+          <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">金额</div>
38
+        </div>
29
       </div>
39
       </div>
30
 
40
 
31
-      <div style="display: flex;border: 1px solid black;border-top:none;height: 200px;">
32
-        <div style="flex: 1;margin-left: 10px;" >
41
+      <div style="display: flex;border: 1px solid black;border-top:none;min-height: 200px;">
42
+        <div style="flex: 1;" >
33
           <div v-if="list.westernMedicineCostTotal">西药 &nbsp;&nbsp;{{ list.westernMedicineCostTotal }}</div>
43
           <div v-if="list.westernMedicineCostTotal">西药 &nbsp;&nbsp;{{ list.westernMedicineCostTotal }}</div>
34
           <div v-if="list.treatCostTotal">治疗费 &nbsp;&nbsp;{{ list.treatCostTotal }}</div>
44
           <div v-if="list.treatCostTotal">治疗费 &nbsp;&nbsp;{{ list.treatCostTotal }}</div>
35
           <div v-if="list.bedCostTotal">床位费 &nbsp;&nbsp;{{ list.bedCostTotal }}</div>
45
           <div v-if="list.bedCostTotal">床位费 &nbsp;&nbsp;{{ list.bedCostTotal }}</div>
40
           <div v-if="list.materialCostTotal">材料费 &nbsp;&nbsp;{{ list.materialCostTotal }}</div>
50
           <div v-if="list.materialCostTotal">材料费 &nbsp;&nbsp;{{ list.materialCostTotal }}</div>
41
         </div>
51
         </div>
42
         <div style="flex: 2;border-left: 1px solid black;">
52
         <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;">
53
+          <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])" style="">
54
+            <span style="display:inline-block;width:56%;">
45
                 <span v-if="item.advice.id == 0">
55
                 <span v-if="item.advice.id == 0">
46
                     <span v-if="item.project.type == 2">{{ item.project.project.project_name }}</span>
56
                     <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>
57
                     <span v-if="item.project.type == 3">{{ item.project.good_info.good_name }}</span>
64
             </span>
74
             </span>
65
           </div>
75
           </div>
66
         </div>
76
         </div>
77
+        <div style="flex: 2;border-left: 1px solid black;">
78
+          
79
+        </div>
67
       </div>
80
       </div>
68
       <div style="display: flex;border:1px solid black;border-top: none;">
81
       <div style="display: flex;border:1px solid black;border-top: none;">
69
         <div style="flex: 2; padding: 5px 0;">
82
         <div style="flex: 2; padding: 5px 0;">
72
         </div>
85
         </div>
73
         <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">¥:{{ list.medfee_sumamt }}</div>
86
         <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">¥:{{ list.medfee_sumamt }}</div>
74
       </div>
87
       </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;">
88
+      <div style="border:1px solid black;border-top: none;height: 80px;">
89
+        <div style="padding: 5px 0; position: relative;">
83
           <div v-if="index == pageArr.length - 1">
90
           <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>
91
+            <div style="display:flex;">
92
+              <div style="flex: 1;">医疗总费用:{{ list.order.medfee_sumamt }}</div>
93
+              <div style="flex: 1;">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
94
+              <div style="flex: 1;">统筹支出:{{ list.order.hifp_pay }}</div>
95
+              <div style="flex: 1;">大病支出:{{list.order.hifmi_pay}}</div>
107
 
96
 
108
             </div>
97
             </div>
109
-          <span style="position: absolute;left: 90%;top: 70%;">(手写无效)</span>
98
+            <div style="display:flex;">
99
+              <div style="flex: 1;">个人账户支付:{{ list.order.acct_pay }}</div>
100
+              <div style="flex: 1;">现金支出:{{ list.order.psn_cash_pay }}</div>
101
+              <div style="flex: 1;">本次账户:0</div>
102
+              <div style="flex: 1;">上次账户:0</div>
103
+            </div>
104
+            <div style="display:flex;">
105
+              <div style="flex: 1;">账户余额:{{ list.order.balc }}</div>
106
+              <div style="flex: 1;">其他支出:{{ list.order.oth_pay }}</div>
107
+              <div style="flex: 1;">大病补充保险支出:0</div>
108
+              <div style="flex: 1;">民政支出:0</div>
109
+            </div>
110
+            <div style="display:flex;">
111
+              <div style="flex: 1;">医疗救助基金支出:{{ list.order.maf_pay }}</div>
112
+              <div style="flex: 1;">企业补充医疗保险基金支出:{{ list.order.hifes_pay }}</div>
113
+            </div>
114
+
115
+          </div>
116
+          <!-- <span style="position: absolute;left: 80%;top: 70%;">(手写无效)</span> -->
110
         </div>
117
         </div>
111
       </div>
118
       </div>
112
       <div style="display: flex;">
119
       <div style="display: flex;">
113
         <div style="flex: 1;">收款单位(章):{{ org_name }}</div>
120
         <div style="flex: 1;">收款单位(章):{{ org_name }}</div>
114
         <div style="flex: 1;">收费员:{{ paramsObj.chargeName }}</div>
121
         <div style="flex: 1;">收费员:{{ paramsObj.chargeName }}</div>
115
-        <div style="flex: 1;"> 
122
+        <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>
123
           <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
117
124
118
           <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
125
           <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
119
-          月  
126
+          月
120
           <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
127
           <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
121
128
122
           </div>
129
           </div>
267
         }
274
         }
268
     }
275
     }
269
 }
276
 }
270
-</script>
277
+</script>

+ 7 - 8
src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue View File

80
         <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'30px'}">
80
         <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'30px'}">
81
           {{paramsObj.name}}
81
           {{paramsObj.name}}
82
         </div>
82
         </div>
83
-        <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'200px'}">
83
+        <!-- <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'200px'}">
84
           {{list.order.fa_piao_number}}
84
           {{list.order.fa_piao_number}}
85
-        </div>
85
+        </div> -->
86
       </div>
86
       </div>
87
 
87
 
88
       <div style="display: flex;">
88
       <div style="display: flex;">
89
         <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'81px'}">
89
         <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'81px'}">
90
-
91
         </div>
90
         </div>
92
         <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'190px'}">
91
         <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'190px'}">
93
-
92
+          
94
         </div>
93
         </div>
95
         <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'300px'}">
94
         <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'300px'}">
96
         {{printDate}}
95
         {{printDate}}
97
         </div>
96
         </div>
98
       </div>
97
       </div>
99
       <div style="display: flex;">
98
       <div style="display: flex;">
100
-        <div :style="{position: 'absolute',top:(170+(index * 450))+'px',left:'75px'}">{{list.westernMedicineCostTotal?list.westernMedicineCostTotal:""}}</div>
101
-        <div :style="{position: 'absolute',top:(170+(index * 450))+'px',left:'121px'}"></div>
102
-        <div :style="{position: 'absolute',top:(170+(index * 450))+'px',left:'270px'}">{{ list.operationCostTotal?list.operationCostTotal:""}}</div>
103
-        <div :style="{position: 'absolute',top:(170+(index * 450))+'px',left:'310px'}"></div>
99
+        <div :style="{position: 'absolute',top:(155+(index * 450))+'px',left:'75px'}">{{list.westernMedicineCostTotal?list.westernMedicineCostTotal:""}}</div>
100
+        <div :style="{position: 'absolute',top:(155+(index * 450))+'px',left:'121px'}"></div>
101
+        <div :style="{position: 'absolute',top:(155+(index * 450))+'px',left:'270px'}">{{ list.operationCostTotal?list.operationCostTotal:""}}</div>
102
+        <div :style="{position: 'absolute',top:(155+(index * 450))+'px',left:'310px'}"></div>
104
       </div>
103
       </div>
105
       <div style="display: flex;">
104
       <div style="display: flex;">
106
         <div :style="{position: 'absolute',top:(190+(index * 450))+'px',left:'75px'}">{{list.chineseTraditionalMedicineCostTotal?list.chineseTraditionalMedicineCostTotal:""}}</div>
105
         <div :style="{position: 'absolute',top:(190+(index * 450))+'px',left:'75px'}">{{list.chineseTraditionalMedicineCostTotal?list.chineseTraditionalMedicineCostTotal:""}}</div>

+ 22 - 7
src/xt_pages/outpatientCharges/statementPrint.vue View File

31
           v-if="org_id == 10138 || org_id == 10278  "
31
           v-if="org_id == 10138 || org_id == 10278  "
32
         ></printThree>
32
         ></printThree>
33
         <printFour
33
         <printFour
34
-          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088 || org_id == 0 "
34
+          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088 "
35
           :info="info"
35
           :info="info"
36
           :paramsObj="paramsObj"
36
           :paramsObj="paramsObj"
37
           :balanceAccounts="balanceAccounts"
37
           :balanceAccounts="balanceAccounts"
55
       </printSeven>
55
       </printSeven>
56
       <print10191 :info="info" v-if="org_id == 10191"></print10191>
56
       <print10191 :info="info" v-if="org_id == 10191"></print10191>
57
       <printTen :info="info" v-if="org_id == 10210"></printTen>
57
       <printTen :info="info" v-if="org_id == 10210"></printTen>
58
-      <printEleven :info="info" v-if="org_id == 10485 || org_id == 0"></printEleven>
58
+      <printEleven :info="info" v-if="org_id == 10485"></printEleven>
59
+      <!-- 阜阳经沃 -->
60
+      <printtwelve :info="info" v-if="org_id == 10480 || org_id == 0"></printtwelve>
59
       <printOne :info="info" v-if=" org_id != 9990 &&
61
       <printOne :info="info" v-if=" org_id != 9990 &&
60
             org_id != 10138 &&
62
             org_id != 10138 &&
61
             org_id != 9504 &&
63
             org_id != 9504 &&
62
             org_id != 10028 &&
64
             org_id != 10028 &&
63
             org_id != 0 &&
65
             org_id != 0 &&
64
-            org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485 && this.paramsObj.balance_accounts_type == 1">
66
+            org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485 &&org_id != 10480 && this.paramsObj.balance_accounts_type == 1">
65
       </printOne>
67
       </printOne>
66
 
68
 
67
       <privateChargePrint :info="info" v-if="org_id != 9990 &&
69
       <privateChargePrint :info="info" v-if="org_id != 9990 &&
68
             org_id != 10138 &&
70
             org_id != 10138 &&
69
             org_id != 9504 &&
71
             org_id != 9504 &&
70
             org_id != 10028 &&
72
             org_id != 10028 &&
71
-            org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485 &&org_id != 0 && this.paramsObj.balance_accounts_type == 2">
73
+            org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485 &&org_id != 0 &&org_id != 10480 && this.paramsObj.balance_accounts_type == 2">
72
       </privateChargePrint>
74
       </privateChargePrint>
73
 
75
 
74
     </div>
76
     </div>
92
 import Print10191 from './statementTemplate/print10191'
94
 import Print10191 from './statementTemplate/print10191'
93
 import printTen from './statementTemplate/printTen'
95
 import printTen from './statementTemplate/printTen'
94
 import printEleven from './statementTemplate/printeEleven'
96
 import printEleven from './statementTemplate/printeEleven'
95
-
97
+import printtwelve from './statementTemplate/printtwelve'
96
 export default {
98
 export default {
97
   name: 'dialysisPrintOrder',
99
   name: 'dialysisPrintOrder',
98
   components: {
100
   components: {
107
     testVue,
109
     testVue,
108
     printFive,
110
     printFive,
109
     printTen,
111
     printTen,
110
-    printEleven
112
+    printEleven,
113
+    printtwelve
111
   },
114
   },
112
   props: {
115
   props: {
113
     paramsObj: Object
116
     paramsObj: Object
302
           //   scanStyles: false,
305
           //   scanStyles: false,
303
           // });
306
           // });
304
         } else if (
307
         } else if (
305
-          this.$store.getters.xt_user.org_id == 10485 || this.$store.getters.xt_user.org_id == 0
308
+          this.$store.getters.xt_user.org_id == 10485
306
         ) {
309
         ) {
307
           const style =
310
           const style =
308
             '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table tr td {padding: 5px;line-height: 30px;border: none;}'
311
             '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table tr td {padding: 5px;line-height: 30px;border: none;}'
313
             scanStyles: false
316
             scanStyles: false
314
           })
317
           })
315
 
318
 
319
+        }else if (
320
+          this.$store.getters.xt_user.org_id == 10480 || this.$store.getters.xt_user.org_id == 0
321
+        ) {
322
+          const style =
323
+            '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table tr td {padding: 2px;line-height: 30px;border: 1px solid black;text-align: center;}'
324
+          printJS({
325
+            printable: 'statement-print',
326
+            type: 'html',
327
+            style: style,
328
+            scanStyles: false
329
+          })
330
+
316
         } else {
331
         } else {
317
           const style =
332
           const style =
318
             '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
333
             '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue View File

23
       </tr>
23
       </tr>
24
 
24
 
25
         <!-- 帐单列表分为左右两列,需要对数据进行x/2分别放进list_L,list_R两个数组进行循环 -->
25
         <!-- 帐单列表分为左右两列,需要对数据进行x/2分别放进list_L,list_R两个数组进行循环 -->
26
-        <tr>
26
+        <tr></tr>
27
 <!--          <td colspan="24">-->
27
 <!--          <td colspan="24">-->
28
 <!--            <template v-for="(v, i) in info.list" >-->
28
 <!--            <template v-for="(v, i) in info.list" >-->
29
 <!--              <el-row gutter="24" >-->
29
 <!--              <el-row gutter="24" >-->

+ 105 - 112
src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue View File

1
 <template>
1
 <template>
2
-  <div>
2
+  <div id="prescription-print">
3
     <div v-for="(item, index) in advicePrint" :key="index">
3
     <div v-for="(item, index) in advicePrint" :key="index">
4
-      <div id="prescription-print3" class="prescription-print">
5
-        
6
-        <div class="printTitle">检验申请单</div>
7
-
8
-        <div style="border: 1px solid #000;margin-bottom: 10px;">
9
-          <div
10
-            style="
11
-              display: flex;
12
-              justify-content: space-between;
13
-              border-bottom: 1px solid #000;
14
-              line-height: 40px;
15
-              padding: 0 10px;
16
-            "
17
-          >
18
-            <div>是否急诊:否</div>
19
-            <div>
20
-              结算方式:{{
21
-                faber && faber.transBody
22
-                  ? getName(faber.transBody.outputlist1)
23
-                  : ""
24
-              }}
25
-            </div>
26
-            <div>金额:{{ total }}</div>
27
-          </div>
28
-          <div
29
-            style="
30
-              display: flex;
31
-              justify-content: space-between;
32
-              border-bottom: 1px solid #000;
33
-              line-height: 40px;
34
-              padding: 0 10px;
35
-            "
36
-          >
37
-            <div>
38
-              姓名:{{ item.patient.name }}
39
-              <!-- {{
40
-                advicePrint[0].patient.name
41
-                  ? advicePrint[0].patient.name.indexOf("(") > -1
42
-                    ? advicePrint[0].patient.name.substring(
43
-                        0,
44
-                        advicePrint[0].patient.name.indexOf("(")
45
-                      )
46
-                    : advicePrint[0].patient.name
47
-                  : ""
48
-              }} -->
49
-            </div>
50
-            <div>
51
-              性别:
52
-              <span v-if="item.patient.gender == 1">男</span>
53
-              <span v-if="item.patient.gender == 2">女</span>
54
-            </div>
55
-            <div>年龄:{{getAge(item.patient)?getAge(item.patient):""}}岁</div>
56
-
57
-          </div>
58
-          <div style="margin-bottom: 20px; padding: 10px 10px 0" >
59
-            病史摘要:{{
60
-              history.history_of_present_illness
61
-                ? history.history_of_present_illness
4
+    <div      id="prescription-print"  class="prescription-print"     style="page-break-after: always">
5
+      <div class="printTitle">检验申请单</div>
6
+
7
+      <div style="border: 1px solid #000;margin-bottom: 10px;">
8
+        <div
9
+          style="
10
+            display: flex;
11
+            justify-content: space-between;
12
+            border-bottom: 1px solid #000;
13
+            line-height: 40px;
14
+            padding: 0 10px;
15
+          "
16
+        >
17
+          <div>是否急诊:否</div>
18
+          <div>
19
+            结算方式:{{
20
+              faber && faber.transBody
21
+                ? getName(faber.transBody.outputlist1)
62
                 : ""
22
                 : ""
63
             }}
23
             }}
64
           </div>
24
           </div>
65
-          <!-- <div style="margin-bottom:20px;padding:0 10px;"   >体格检查:
66
-                      <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
67
-                      <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
68
-                      <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
69
-                      <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
70
-                  </div> -->
71
-          <div style="margin-bottom: 20px; padding: 0 10px">
72
-            临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
25
+          <div>金额:{{ total }}</div>
26
+        </div>
27
+        <div
28
+          style="
29
+            display: flex;
30
+            justify-content: space-between;
31
+            border-bottom: 1px solid #000;
32
+            line-height: 40px;
33
+            padding: 0 10px;
34
+          "
35
+        >
36
+          <div>
37
+            姓名:{{
38
+              advicePrint[0].patient.name
39
+                ? advicePrint[0].patient.name.indexOf("(") > -1
40
+                  ? advicePrint[0].patient.name.substring(
41
+                    0,
42
+                    advicePrint[0].patient.name.indexOf("(")
43
+                  )
44
+                  : advicePrint[0].patient.name
45
+                : ""
46
+            }}
73
           </div>
47
           </div>
74
-          <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
75
-            <div>检验项目:</div>
76
-            <div style="position: relative;">
77
-              <div v-for="item in projectPrint" style="margin-bottom: 10px">
78
-                {{ item.team.project_team }}
79
-              </div>
80
-              <div v-for="item in singleProjectPrint">
81
-                <!-- <div v-if="item.remark == '血透前抽血'" style="border-right: 1px solid red;padding-bottom: 5px;"> -->
82
-                  {{ item.project.project_name }}
83
-                <!-- </div> -->
84
-              </div>
85
-              <!-- <div style="height: 10px;"></div>
86
-              <div v-for="item in singleProjectPrint" >
87
-                <div v-if="item.remark == '血透后抽血'" style="border-right: 1px solid rgb(0, 47, 255);padding-bottom: 5px;">
88
-                  {{ item.project.project_name }}
89
-                </div>
90
-              </div> -->
91
-              <!-- <span style="position: absolute;top: 65px;right: -77px;" v-if=" singleProjectPrint.length>0">血透前抽血</span>
92
-              <span style="position: absolute;bottom: 96px;right: -77px;" v-if=" singleProjectPrint.length>0">血透后抽血</span> -->
93
-            </div>
48
+          <div>
49
+            性别:
50
+            <span v-if="advicePrint[0].patient.gender == 1">男</span>
51
+            <span v-if="advicePrint[0].patient.gender == 2">女</span>
94
           </div>
52
           </div>
95
-          <div
96
-            style="
97
-              display: flex;
98
-              justify-content: space-between;
99
-              border-top: 1px solid #000;
100
-              line-height: 40px;
101
-              padding: 0 10px;
102
-            "
103
-          >
104
-            <div>开单医生:{{ doctor ? doctor : "" }}</div>
105
-            <div>
106
-              开单日期:
107
-              {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
108
-            </div>
109
-            <div>
110
-              医生签字:
53
+          <!--          <div>-->
54
+          <!--            年龄:{{-->
55
+          <!--              advicePrint[0].patient.age ? advicePrint[0].patient.age : ""-->
56
+          <!--            }}岁-->
57
+          <!--          </div>-->
58
+          <div>年龄:{{getAge(advicePrint[0].patient)?getAge(advicePrint[0].patient):""}}岁</div>
111
 
59
 
112
-              <span style="width: 100px; display: inline-block"></span>
60
+        </div>
61
+        <div style="margin-bottom: 20px; padding: 10px 10px 0" v-if="org_id!=10278 && org_id!=10138 && org_id!=0">
62
+          病史摘要:{{
63
+            history.history_of_present_illness
64
+              ? history.history_of_present_illness
65
+              : ""
66
+          }}
67
+        </div>
68
+        <!-- <div style="margin-bottom:20px;padding:0 10px;">体格检查:
69
+                    <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
70
+                    <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
71
+                    <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
72
+                    <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
73
+                </div> -->
74
+        <div style="margin-bottom: 20px; padding: 0 10px">
75
+          临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}
76
+        </div>
77
+        <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
78
+          <div>检验项目:</div>
79
+          <div>
80
+<!--            <div v-for="item in projectPrint" style="margin-bottom: 10px">-->
81
+<!--              {{ item.team.project_team }}-->
82
+<!--            </div>-->
83
+            <div v-for="subitem in item.singleProjectPrint" style="margin-bottom: 10px">
84
+              {{ subitem.project.project_name }}
113
             </div>
85
             </div>
114
           </div>
86
           </div>
115
         </div>
87
         </div>
116
-      
88
+        <div
89
+          style="
90
+            display: flex;
91
+            justify-content: space-between;
92
+            border-top: 1px solid #000;
93
+            line-height: 40px;
94
+            padding: 0 10px;
95
+          "
96
+        >
97
+          <div>开单医生:{{ doctor ? doctor : "" }}</div>
98
+          <div>
99
+            开单日期:
100
+            {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
101
+          </div>
102
+          <div>
103
+            医生签字:
104
+            <span style="width: 100px; display: inline-block"></span>
105
+          </div>
106
+        </div>
117
       </div>
107
       </div>
108
+   
118
     </div>
109
     </div>
110
+    </div>
111
+
119
   </div>
112
   </div>
120
 </template>
113
 </template>
121
 <script>
114
 <script>
281
           var projectlist = response.data.data.projectlist;
274
           var projectlist = response.data.data.projectlist;
282
 
275
 
283
           var projectlist = response.data.data.projectlist;
276
           var projectlist = response.data.data.projectlist;
284
-          console.log("所有项目列表", this.singleProjectPrint);
277
+          // console.log("所有项目列表", projectlist);
285
           this.projectList = projectlist;
278
           this.projectList = projectlist;
286
           this.getPage();
279
           this.getPage();
287
           let outputlist1Name = response.data.data.his.patient_info
280
           let outputlist1Name = response.data.data.his.patient_info
345
               total =
338
               total =
346
                 total +
339
                 total +
347
                 this.prescriptions[i].project[a].price *
340
                 this.prescriptions[i].project[a].price *
348
-                  this.prescriptions[i].project[a].count;
341
+                this.prescriptions[i].project[a].count;
349
             }
342
             }
350
           }
343
           }
351
 
344
 
358
               addtotal =
351
               addtotal =
359
                 addtotal +
352
                 addtotal +
360
                 this.prescriptions[i].additionalcharge[a].price *
353
                 this.prescriptions[i].additionalcharge[a].price *
361
-                  this.prescriptions[i].additionalcharge[a].count;
354
+                this.prescriptions[i].additionalcharge[a].count;
362
             }
355
             }
363
           }
356
           }
364
           addtotal = Math.floor(addtotal * 100) / 100;
357
           addtotal = Math.floor(addtotal * 100) / 100;
372
               total =
365
               total =
373
                 total +
366
                 total +
374
                 this.prescriptions[i].advices[a].price *
367
                 this.prescriptions[i].advices[a].price *
375
-                  this.prescriptions[i].advices[a].prescribing_number;
368
+                this.prescriptions[i].advices[a].prescribing_number;
376
             }
369
             }
377
           }
370
           }
378
 
371
 
385
               addtotal =
378
               addtotal =
386
                 addtotal +
379
                 addtotal +
387
                 this.prescriptions[i].additionalcharge[a].price *
380
                 this.prescriptions[i].additionalcharge[a].price *
388
-                  this.prescriptions[i].additionalcharge[a].count;
381
+                this.prescriptions[i].additionalcharge[a].count;
389
             }
382
             }
390
           }
383
           }
391
           addtotal = Math.floor(addtotal * 100) / 100;
384
           addtotal = Math.floor(addtotal * 100) / 100;
556
 <style lang="scss" scoped>
549
 <style lang="scss" scoped>
557
 .prescription-print {
550
 .prescription-print {
558
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
551
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
559
-    0 0 60px rgba(0, 0, 0, 0.06) inset;
552
+  0 0 60px rgba(0, 0, 0, 0.06) inset;
560
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
553
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
561
-    0 0 40px rgba(0, 0, 0, 0.06) inset;
554
+  0 0 40px rgba(0, 0, 0, 0.06) inset;
562
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
555
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
563
   margin-bottom: 20px;
556
   margin-bottom: 20px;
564
   padding: 20px 10px;
557
   padding: 20px 10px;

+ 9 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

314
                                           </template>
314
                                           </template>
315
                                       </el-table-column>
315
                                       </el-table-column>
316
 
316
 
317
-                                      <el-table-column label="库存" width="60" v-if="org_id != 10454">
317
+                                      <el-table-column label="库存" width="60" v-if="org_id != 10206">
318
                                           <template slot-scope="scope">
318
                                           <template slot-scope="scope">
319
                                              <!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==record_date ||org_id ==10340">
319
                                              <!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==record_date ||org_id ==10340">
320
                                              <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
320
                                              <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
426
                                                  {{scope.row.stock_count}}
426
                                                  {{scope.row.stock_count}}
427
                                             </span>
427
                                             </span>
428
                                             <span v-else> {{ scope.row.total }}</span> -->
428
                                             <span v-else> {{ scope.row.total }}</span> -->
429
-                                            <span v-if="org_id != 10454 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
429
+                                            <span v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
430
 <!--                                            //针对坐标系统的库存数据-->
430
 <!--                                            //针对坐标系统的库存数据-->
431
-                                            <span v-if="org_id == 10454 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
431
+                                            <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
432
 
432
 
433
                                           </template>
433
                                           </template>
434
                                       </el-table-column>
434
                                       </el-table-column>
1617
 
1617
 
1618
     }, searchProjectAction() {
1618
     }, searchProjectAction() {
1619
       console.log('~~~~',this.search_project_keyword)
1619
       console.log('~~~~',this.search_project_keyword)
1620
-      // console.log(this.allProject)
1620
+      console.log('5555',this.tabProject)
1621
+      console.log('6666',this.allProject)
1622
+      // console.log('4444',this.tabProject[1].first_letter.indexOf(this.search_project_keyword) != -1)
1621
       if (this.search_project_keyword.length == 0) {
1623
       if (this.search_project_keyword.length == 0) {
1622
         this.tabProject = this.allProject
1624
         this.tabProject = this.allProject
1623
-
1624
       } else {
1625
       } else {
1625
         let arr = []
1626
         let arr = []
1626
         for (let i = 0; i < this.allProject.length; i++) {
1627
         for (let i = 0; i < this.allProject.length; i++) {
1627
 
1628
 
1629
+            // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
1630
+
1628
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1631
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1629
               arr = arr.concat(this.allProject[i])
1632
               arr = arr.concat(this.allProject[i])
1630
             }
1633
             }
3601
               is_special_diseases: good_info[i].is_special_diseases,
3604
               is_special_diseases: good_info[i].is_special_diseases,
3602
               good_info: good_info[i],
3605
               good_info: good_info[i],
3603
               stock_count:good_info[i].stock_count,
3606
               stock_count:good_info[i].stock_count,
3607
+              first_letter:good_info[i].first_letter,
3604
               bbx01:good_info[i].bbx01,
3608
               bbx01:good_info[i].bbx01,
3605
               zuobiao_stock_num:0,
3609
               zuobiao_stock_num:0,
3606
 
3610
 

+ 19 - 13
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

854
           case 0:
854
           case 0:
855
             let arr = []
855
             let arr = []
856
             for (let i = 0; i < this.all_data.length; i++) {
856
             for (let i = 0; i < this.all_data.length; i++) {
857
-              if (this.all_data[i].name.indexOf(this.search_input) != -1 ||
858
-               this.all_data[i].number.indexOf(this.search_input) != -1 ||
859
-               this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
860
-                arr = arr.concat(this.all_data[i])
861
-                console.log(arr)
857
+              if( this.all_data[i].first_letter !=undefined){
858
+                if (this.all_data[i].name.indexOf(this.search_input) != -1 ||
859
+                this.all_data[i].number.indexOf(this.search_input) != -1 ||
860
+                this.all_data[i].first_letter.indexOf(this.search_input) != -1) {
861
+                  arr = arr.concat(this.all_data[i])
862
+                  console.log(arr)
863
+                }
862
               }
864
               }
865
+
863
             }
866
             }
864
             this.all_data = arr
867
             this.all_data = arr
865
 
868
 
868
             let arr2 = []
871
             let arr2 = []
869
 
872
 
870
             for (let i = 0; i < this.cure_data.length; i++) {
873
             for (let i = 0; i < this.cure_data.length; i++) {
871
-              if (this.cure_data[i].name.indexOf(this.search_input) != -1 ||
872
-              this.cure_data[i].number.indexOf(this.search_input) != -1 ||
873
-              this.cure_data[i].first_letter.indexOf(this.search_input) != -1) {
874
-                console.log('2222',this.cure_data);
875
-                arr2 = arr2.concat(this.cure_data[i])
874
+              if(this.cure_data[i].first_letter != undefined){
875
+                if (this.cure_data[i].name.indexOf(this.search_input) != -1 ||
876
+                  this.cure_data[i].number.indexOf(this.search_input) != -1 ||
877
+                  this.cure_data[i].first_letter.indexOf(this.search_input) != -1) {
878
+                    console.log('2222',this.cure_data);
879
+                    arr2 = arr2.concat(this.cure_data[i])
880
+                }
876
               }
881
               }
882
+
877
             }
883
             }
878
             this.cure_data = arr2
884
             this.cure_data = arr2
879
 
885
 
1492
           this.additions = response.data.data.additions
1498
           this.additions = response.data.data.additions
1493
 
1499
 
1494
           //针对普爱医院获取药品和耗材相关库存数据
1500
           //针对普爱医院获取药品和耗材相关库存数据
1495
-          if(this.org_id == 10454 || this.org_id == 10205){
1501
+          if(this.org_id == 10206){
1496
             var that = this
1502
             var that = this
1497
             axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
1503
             axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
1498
 
1504
 
1569
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1575
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1570
                 first_letter:response.data.data.list_two[i].first_letter
1576
                 first_letter:response.data.data.list_two[i].first_letter
1571
               }
1577
               }
1572
-              console.log('6666',obj);
1578
+              // console.log('6666',obj);
1573
               this.un_cure_data.push(obj)
1579
               this.un_cure_data.push(obj)
1574
             }
1580
             }
1575
 
1581
 
1598
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1604
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1599
                   first_letter:response.data.data.list[i].first_letter
1605
                   first_letter:response.data.data.list[i].first_letter
1600
                 }
1606
                 }
1601
-                console.log('8888',obj);
1607
+                // console.log('8888',obj);
1602
                 this.un_cure_data.push(obj)
1608
                 this.un_cure_data.push(obj)
1603
               }
1609
               }
1604
               //已就诊
1610
               //已就诊

+ 4 - 4
src/xt_pages/outpatientDoctorStation/print.vue View File

3
     <div class="dialysisPage" style="padding-top: 40px">
3
     <div class="dialysisPage" style="padding-top: 40px">
4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
5
 
5
 
6
-        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188" v-bind:childResponse="childResponse"
6
+        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188 && org_id != 0" v-bind:childResponse="childResponse"
7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
9
         :prescription_id="prescription_id"></printOne>
9
         :prescription_id="prescription_id"></printOne>
28
         </prinSeven>
28
         </prinSeven>
29
 
29
 
30
         <printFour
30
         <printFour
31
-          v-if="org_id == 10088"
31
+          v-if="org_id == 10088 || org_id == 0"
32
           v-bind:childResponse="childResponse"
32
           v-bind:childResponse="childResponse"
33
           :advicePrint="advicePrint"
33
           :advicePrint="advicePrint"
34
           :ids="ids"
34
           :ids="ids"
99
   getAllDoctorList,
99
   getAllDoctorList,
100
   getAllHisPatientList,
100
   getAllHisPatientList,
101
 } from "@/api/project/project";
101
 } from "@/api/project/project";
102
-import PrintTen from '../outpatientCharges/invoiceTemplate/printTen.vue'
102
+import PrintTen from '../outpatientCharges/invoiceTemplate/printTen'
103
 import PrintTenOne from './template/printTenOne.vue'
103
 import PrintTenOne from './template/printTenOne.vue'
104
 export default {
104
 export default {
105
   name: "dialysisPrintOrder",
105
   name: "dialysisPrintOrder",
159
       }
159
       }
160
        else {
160
        else {
161
         const style =
161
         const style =
162
-          "@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;position: relative;}.drugsBox div{line-height: 20px;width:80%} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBoxxxx{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .doctorBoxxxx p {margin-left: auto} .actionBar p{width:150px;}}";
162
+          "@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:100px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;position: relative;}.drugsBox div{line-height: 20px;width:80%} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBoxxxx{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .doctorBoxxxx p {margin-left: auto} .actionBar p{width:150px;}}";
163
         printJS({
163
         printJS({
164
           printable: "prescriptionPrint",
164
           printable: "prescriptionPrint",
165
           type: "html",
165
           type: "html",

+ 54 - 2
src/xt_pages/outpatientDoctorStation/template/printFour.vue View File

52
 
52
 
53
           </div>
53
           </div>
54
           <div class="doctorBox">
54
           <div class="doctorBox">
55
-              <p>医师:{{item.doctor?item.doctor:""}}</p>
55
+            <p>
56
+            医师:
57
+            <span
58
+              style="display: inline-block"
59
+              v-if="item.creator == ''"
60
+            >
61
+                {{ item.doctor }}
62
+              </span>
63
+            <span
64
+              style="display: inline-block"
65
+              v-else-if="doc_name != ''"
66
+            >
67
+                {{ doc_name }}
68
+              </span>
69
+            <img
70
+              style="height: 50px;"
71
+              :src="setAdminUserES(item.creator,item.doctor)"
72
+              alt=""
73
+              srcset=""
74
+
75
+            />
76
+          </p>
56
               <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
77
               <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
57
           </div>
78
           </div>
58
           <div class="actionBar">
79
           <div class="actionBar">
61
                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
82
                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
62
                  <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
83
                  <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
63
                  <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
84
                  <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
64
-
65
                  <p>审核:</p>
85
                  <p>审核:</p>
66
                  <p>配对:</p>
86
                  <p>配对:</p>
67
                  <p>核对:</p>
87
                  <p>核对:</p>
105
         projectList:[],
125
         projectList:[],
106
         orgname:"",
126
         orgname:"",
107
         diagnoses:[],
127
         diagnoses:[],
128
+        operatorMaps: {},
129
+        operators: [],
130
+        doctorList_1: [],
108
       }
131
       }
109
     },
132
     },
110
    methods:{
133
    methods:{
134
+   // 电子签名
135
+   setAdminUserES(id,name) {
136
+      console.log(id)
137
+      console.log(name)
138
+      console.log(this.operatorMaps)
139
+
140
+
141
+      if (id == 0) {
142
+        return "";
143
+      }
144
+      if (id in this.operatorMaps) {
145
+        return this.operatorMaps[id].url;
146
+      } else {
147
+        this.doc_name = name
148
+        return "";
149
+      }
150
+    },
111
      getAge(patient){
151
      getAge(patient){
112
        var thisLen = patient.id_card_no.length
152
        var thisLen = patient.id_card_no.length
113
        var birth = ''
153
        var birth = ''
171
             this.advicePrint = advicePrint
211
             this.advicePrint = advicePrint
172
             this.prescriptions = advicePrint
212
             this.prescriptions = advicePrint
173
             console.log("处方222222",this.prescriptions)
213
             console.log("处方222222",this.prescriptions)
214
+            this.doctorList_1 = response.data.data.eles;
215
+            console.log(this.doctorList_1, "医生列表");
216
+            if (this.doctorList_1.length > 0) {
217
+              var operatorsLen = this.doctorList_1.length;
218
+              for (var index = 0; index < operatorsLen; index++) {
219
+                this.$set(
220
+                  this.operatorMaps,
221
+                  this.doctorList_1[index].creator,
222
+                  this.doctorList_1[index]
223
+                );
224
+              }
225
+            }
174
             var hisPatient = response.data.data.hisPatient
226
             var hisPatient = response.data.data.hisPatient
175
             console.log("hisPatient",hisPatient)
227
             console.log("hisPatient",hisPatient)
176
             this.hisPatient = hisPatient
228
             this.hisPatient = hisPatient

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

56
             </div>
56
             </div>
57
           </div>
57
           </div>
58
         </div>
58
         </div>
59
-        <div class="prescriptionBox" >
59
+        <div class="prescriptionBox" style="min-height: 350px;">
60
           <div class="Rp">Rp:</div>
60
           <div class="Rp">Rp:</div>
61
           <div
61
           <div
62
             class="drugsBox"
62
             class="drugsBox"

+ 8 - 6
src/xt_pages/role/admin.vue View File

287
               </el-button>
287
               </el-button>
288
             </span> -->
288
             </span> -->
289
 
289
 
290
-            <!-- <span>
290
+           <!-- <span>
291
               <el-button type="primary" size="small" @click="toQianShu(scope.row.user_id,scope.row.user_name)">
291
               <el-button type="primary" size="small" @click="toQianShu(scope.row.user_id,scope.row.user_name)">
292
                     <span>创建签署人用户</span>
292
                     <span>创建签署人用户</span>
293
               </el-button>
293
               </el-button>
297
               <el-button type="primary" size="small" @click="toYinZhang(scope.row.user_id,scope.row.user_name)">
297
               <el-button type="primary" size="small" @click="toYinZhang(scope.row.user_id,scope.row.user_name)">
298
                     <span>创建个人印章</span>
298
                     <span>创建个人印章</span>
299
               </el-button>
299
               </el-button>
300
-            </span>
301
-
300
+            </span>  -->
301
+<!-- 
302
             <span>
302
             <span>
303
               <el-button type="primary" size="small" @click="toShouQuan(scope.row.user_id,scope.row.user_name)">
303
               <el-button type="primary" size="small" @click="toShouQuan(scope.row.user_id,scope.row.user_name)">
304
                     <span>创建企业印章</span>
304
                     <span>创建企业印章</span>
305
               </el-button>
305
               </el-button>
306
-            </span> -->
306
+            </span>  -->
307
             <el-tooltip
307
             <el-tooltip
308
               class="item"
308
               class="item"
309
               effect="dark"
309
               effect="dark"
1046
       })
1046
       })
1047
     },
1047
     },
1048
    
1048
    
1049
-    toQianShu(){
1050
-      CreateQianshuUserName().then(response=>{
1049
+    toQianShu(admin_user_id){
1050
+       
1051
+      CreateQianshuUserName(admin_user_id).then(response=>{
1051
          if(response.data.state==1){
1052
          if(response.data.state==1){
1052
           var sign =  response.data.data.sign
1053
           var sign =  response.data.data.sign
1053
           var userId =  response.data.data.userId
1054
           var userId =  response.data.data.userId
1055
+          this.$message.success("签署成功!")
1054
          }
1056
          }
1055
       }) 
1057
       }) 
1056
     },
1058
     },

+ 1 - 1
src/xt_pages/role/components/AdminInfoForm.vue View File

75
        </el-form-item>
75
        </el-form-item>
76
     </el-col>
76
     </el-col>
77
     <el-col :span="8">
77
     <el-col :span="8">
78
-       <el-form-item label="工号:">
78
+       <el-form-item label="身份证(工号):">
79
            <el-input v-model="form.job_number" style="width:180px;"></el-input>
79
            <el-input v-model="form.job_number" style="width:180px;"></el-input>
80
        </el-form-item>
80
        </el-form-item>
81
     </el-col>
81
     </el-col>

+ 9 - 0
src/xt_pages/sign/signIn.vue View File

45
                         <div :class="Object.keys(queueInfo).length>0 ? 'signInMainLeft' : 'signInMainLeft100'">
45
                         <div :class="Object.keys(queueInfo).length>0 ? 'signInMainLeft' : 'signInMainLeft100'">
46
                             <div class="signInMainLeftTitle">
46
                             <div class="signInMainLeftTitle">
47
                                 <p>排队号</p>
47
                                 <p>排队号</p>
48
+                                <p v-if="$store.getters.xt_user.org.id==3877 || $store.getters.xt_user.org.id==10485">床位号</p>
48
                                 <p>姓名</p>
49
                                 <p>姓名</p>
49
                                 <p>病历号</p>
50
                                 <p>病历号</p>
50
                                 <p>签到时间</p>
51
                                 <p>签到时间</p>
57
                                         <span v-if="item.schedule_type == 3">晚上</span>
58
                                         <span v-if="item.schedule_type == 3">晚上</span>
58
                                         {{ item.queue_no }}号
59
                                         {{ item.queue_no }}号
59
                                     </p>
60
                                     </p>
61
+                                    <p v-if="$store.getters.xt_user.org.id==3877 || $store.getters.xt_user.org.id==10485">{{ item.partition_name + item.bed_name }}</p>
60
                                     <p>{{ item.patient_name }}</p>
62
                                     <p>{{ item.patient_name }}</p>
61
                                     <p>{{ item.dialysis_no }}</p>
63
                                     <p>{{ item.dialysis_no }}</p>
62
                                     <p>{{ item.create_time }}</p>
64
                                     <p>{{ item.create_time }}</p>
138
                         <div :class="Object.keys(queueInfo).length>0 ? 'signInMainLeft' : 'signInMainLeft100'">
140
                         <div :class="Object.keys(queueInfo).length>0 ? 'signInMainLeft' : 'signInMainLeft100'">
139
                             <div class="signInMainLeftTitle">
141
                             <div class="signInMainLeftTitle">
140
                                 <p>排队号</p>
142
                                 <p>排队号</p>
143
+                                <p v-if="$store.getters.xt_user.org.id==3877 || $store.getters.xt_user.org.id==10485">床位号</p>
141
                                 <p>姓名</p>
144
                                 <p>姓名</p>
142
                                 <p>病历号</p>
145
                                 <p>病历号</p>
146
+                                
143
                                 <p>签到时间</p>
147
                                 <p>签到时间</p>
144
                             </div>
148
                             </div>
145
                             <div class="signInList">
149
                             <div class="signInList">
150
                                         <span v-if="item.schedule_type == 3">晚上</span>
154
                                         <span v-if="item.schedule_type == 3">晚上</span>
151
                                         {{ item.queue_no }}号
155
                                         {{ item.queue_no }}号
152
                                     </p>
156
                                     </p>
157
+                                    <p v-if="$store.getters.xt_user.org.id==3877 || $store.getters.xt_user.org.id==10485">{{ item.partition_name + item.bed_name }}</p>
153
                                     <p>{{ item.patient_name }}</p>
158
                                     <p>{{ item.patient_name }}</p>
154
                                     <p>{{ item.dialysis_no }}</p>
159
                                     <p>{{ item.dialysis_no }}</p>
155
                                     <p>{{ item.create_time }}</p>
160
                                     <p>{{ item.create_time }}</p>
257
         },
262
         },
258
     },
263
     },
259
     created(){
264
     created(){
265
+        
260
         if(sessionStorage.getItem('signInKey') != null){
266
         if(sessionStorage.getItem('signInKey') != null){
261
             if(sessionStorage.getItem('signInKey') == 1){
267
             if(sessionStorage.getItem('signInKey') == 1){
262
                 this.dialogTableVisible = true
268
                 this.dialogTableVisible = true
340
                     if(res.channel == 'queue/join'){
346
                     if(res.channel == 'queue/join'){
341
                         if(res.data.type == 1){
347
                         if(res.data.type == 1){
342
                             this.signInList = res.data.patientQueueList.data
348
                             this.signInList = res.data.patientQueueList.data
349
+                            console.log("signInListWOOWOWOWOWOWOW",this.signInList)
343
                             this.count = res.data.patientQueueList.count
350
                             this.count = res.data.patientQueueList.count
344
                             this.signInList.map(item => {
351
                             this.signInList.map(item => {
345
                                 item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
352
                                 item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
363
                     }else if(res.channel == 'queue/queuelist'){
370
                     }else if(res.channel == 'queue/queuelist'){
364
                         console.log(11111111111,res.data)
371
                         console.log(11111111111,res.data)
365
                         this.signInList = res.data.patientQueueList.data
372
                         this.signInList = res.data.patientQueueList.data
373
+                        console.log("signInListWOOWOWOWOWOWOW",this.signInList)
366
                         this.count = res.data.patientQueueList.count
374
                         this.count = res.data.patientQueueList.count
367
                         this.signInList.map(item => {
375
                         this.signInList.map(item => {
368
                             item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
376
                             item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
370
                     }else if(res.channel == 'queue/queuelistbyq'){
378
                     }else if(res.channel == 'queue/queuelistbyq'){
371
                         console.log(11111111111,res.data)
379
                         console.log(11111111111,res.data)
372
                         this.signInList = res.data.patientQueueList.data
380
                         this.signInList = res.data.patientQueueList.data
381
+                        console.log("signInListWOOWOWOWOWOWOW",this.signInList)
373
                         this.count = res.data.patientQueueList.count
382
                         this.count = res.data.patientQueueList.count
374
                         this.signInList.map(item => {
383
                         this.signInList.map(item => {
375
                             item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
384
                             item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')

+ 3 - 0
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

821
           const array = this.recordInfo.recordData;
821
           const array = this.recordInfo.recordData;
822
           if (this.storehouse_id == 0) {
822
           if (this.storehouse_id == 0) {
823
             this.$message.error("仓库不能为空!");
823
             this.$message.error("仓库不能为空!");
824
+            this.loading = false;
824
             return false;
825
             return false;
825
           }
826
           }
826
           for (let i = 0; i < array.length; i++) {
827
           for (let i = 0; i < array.length; i++) {
827
             if (array[i].drug_id == 0) {
828
             if (array[i].drug_id == 0) {
828
               this.$message.error("药品名称或者药品规格名称不能为空");
829
               this.$message.error("药品名称或者药品规格名称不能为空");
830
+              this.loading = false;
829
               return;
831
               return;
830
             }
832
             }
831
           }
833
           }
832
 
834
 
833
           if (this.recordInfo.recordData.length <= 0) {
835
           if (this.recordInfo.recordData.length <= 0) {
834
             this.$message.success("请添加入库商品");
836
             this.$message.success("请添加入库商品");
837
+            this.loading = false;
835
             return;
838
             return;
836
           }
839
           }
837
 
840
 

+ 3 - 0
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

813
         count_two +=val3[i].count
813
         count_two +=val3[i].count
814
       }
814
       }
815
      }
815
      }
816
+     console.log("countwowowoowow3333",count)
817
+     console.log("count_one222222",count_one)
818
+     console.log("count_two222222",count_two)
816
      all_count = count +count_one - count_two
819
      all_count = count +count_one - count_two
817
      if(all_count >0){
820
      if(all_count >0){
818
        return all_count
821
        return all_count

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

96
              {{getTime(scope.row.ctime)}}
96
              {{getTime(scope.row.ctime)}}
97
            </template>
97
            </template>
98
         </el-table-column>
98
         </el-table-column>
99
+
100
+        <el-table-column prop="drug_name" label="出库日期" align="center">
101
+           <template slot-scope="scope">
102
+             {{getTime(scope.row.system_time)}}
103
+           </template>
104
+        </el-table-column>
99
         <el-table-column prop="drug_name" label="仓库名称"  align="center">
105
         <el-table-column prop="drug_name" label="仓库名称"  align="center">
100
            <template slot-scope="scope">
106
            <template slot-scope="scope">
101
              <span>{{getHouseName(scope.row.storehouse_id)}}</span>
107
              <span>{{getHouseName(scope.row.storehouse_id)}}</span>

+ 14 - 2
src/xt_pages/stock/stockOutOrderAdd.vue View File

661
           for (let i = 0; i < array.length; i++) {
661
           for (let i = 0; i < array.length; i++) {
662
             if (array[i].good_type_id == 0) {
662
             if (array[i].good_type_id == 0) {
663
               this.$message.error("商品类型不能为空");
663
               this.$message.error("商品类型不能为空");
664
+              this.loading = false
664
               return;
665
               return;
665
             }
666
             }
666
             if (array[i].good_id == 0) {
667
             if (array[i].good_id == 0) {
667
               this.$message.error("规格名称不能为空");
668
               this.$message.error("规格名称不能为空");
669
+              this.loading = false
668
               return;
670
               return;
669
             }
671
             }
670
             total = total + array[i].price * array[i].return_count;
672
             total = total + array[i].price * array[i].return_count;
671
           }
673
           }
672
           if (this.recordInfo.recordData.length <= 0) {
674
           if (this.recordInfo.recordData.length <= 0) {
673
             this.$message.success("请添加出库商品");
675
             this.$message.success("请添加出库商品");
676
+            this.loading = false
674
             return;
677
             return;
675
           }
678
           }
676
 
679
 
696
           }
699
           }
697
 
700
 
698
           for(let i=0;i<this.recordInfo.recordData.length;i++){
701
           for(let i=0;i<this.recordInfo.recordData.length;i++){
702
+             
703
+            if(parseInt(this.recordInfo.recordData[i].count) > parseInt(this.recordInfo.recordData[i].stock_count) ){
704
+               this.$message.error(this.recordInfo.recordData[i].good_name+"/"+this.recordInfo.recordData[i].specification_name+"库存不足!")
705
+               this.loading = false
706
+               return
707
+            }
708
+
699
             for(let j=0;j<this.manufacturerList.length;j++){
709
             for(let j=0;j<this.manufacturerList.length;j++){
700
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
710
               if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
701
                  this.recordInfo.recordData[i].manufacturer = this.manufacturerList[j].id
711
                  this.recordInfo.recordData[i].manufacturer = this.manufacturerList[j].id
720
               }
730
               }
721
 
731
 
722
             }
732
             }
733
+            
723
           }
734
           }
724
           const params = {
735
           const params = {
725
             stockOut: this.recordInfo.recordData
736
             stockOut: this.recordInfo.recordData
726
           };
737
           };
727
-
738
+          console.log("pramsswoowowowoow",params)
739
+          console.log(" this.warehouseOut_id", this.warehouseOut_id)
728
           const loading = this.$loading({
740
           const loading = this.$loading({
729
             lock: true,
741
             lock: true,
730
             text: 'Loading',
742
             text: 'Loading',
921
 
933
 
922
     },
934
     },
923
     getSupplyCount(count,sum_count,index){
935
     getSupplyCount(count,sum_count,index){
924
-
936
+       
925
       if(sum_count < count){
937
       if(sum_count < count){
926
         this.$message.error("出库数量不能大于剩余库存")
938
         this.$message.error("出库数量不能大于剩余库存")
927
         for(let i=0;i<this.recordInfo.recordData.length;i++){
939
         for(let i=0;i<this.recordInfo.recordData.length;i++){

+ 8 - 0
src/xt_pages/stock/stockOutOrderEdit.vue View File

648
             for (let i = 0; i < array.length; i++) {
648
             for (let i = 0; i < array.length; i++) {
649
               if (array[i].good_type_id == 0) {
649
               if (array[i].good_type_id == 0) {
650
                 this.$message.error('商品类型不能为空')
650
                 this.$message.error('商品类型不能为空')
651
+                this.loading = false
651
                 return
652
                 return
652
               }
653
               }
653
               if (array[i].good_id == 0) {
654
               if (array[i].good_id == 0) {
654
                 this.$message.error('规格名称不能为空')
655
                 this.$message.error('规格名称不能为空')
656
+                this.loading = false
655
                 return
657
                 return
656
               }
658
               }
657
             }
659
             }
658
             for(let i=0;i<this.recordInfo.recordData.length;i++){
660
             for(let i=0;i<this.recordInfo.recordData.length;i++){
661
+
662
+              if(parseInt(this.recordInfo.recordData[i].count) > parseInt(this.recordInfo.recordData[i].stock_count) ){
663
+                this.$message.error(this.recordInfo.recordData[i].good_name+"/"+this.recordInfo.recordData[i].specification_name+"库存不足!")
664
+                this.loading = false
665
+                return
666
+               }
659
                if(this.recordInfo.recordData[i].dealer == ""){
667
                if(this.recordInfo.recordData[i].dealer == ""){
660
                 this.recordInfo.recordData[i].dealer = 0
668
                 this.recordInfo.recordData[i].dealer = 0
661
              }
669
              }

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

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
       name:""
274
       name:""

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

1
 <template>
1
 <template>
2
     <div class="patient-container">
2
     <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-5"></patient-sidebar>
3
+        <patient-sidebar :id="patientID" defaultActive="5-6"></patient-sidebar>
4
         <div>
4
         <div>
5
             <div class="patient-app-container advice-container app-container">
5
             <div class="patient-app-container advice-container app-container">
6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">

+ 4 - 4
src/xt_pages/user/evaluationtool/Fallassessment.vue View File

4
       <patient-sidebar :id="patient_id" defaultActive="5-1"></patient-sidebar>
4
       <patient-sidebar :id="patient_id" defaultActive="5-1"></patient-sidebar>
5
       <div>
5
       <div>
6
         <div class="patient-app-container advice-container app-container">
6
         <div class="patient-app-container advice-container app-container">
7
-          <div class='content_top' style="width: 95%;margin-bottom: 20px;">
7
+          <div class='content_top' style="width: 97%;margin-bottom: 20px;">
8
             <div style="font-size: 20px">跌倒评估评分</div>
8
             <div style="font-size: 20px">跌倒评估评分</div>
9
             <div>
9
             <div>
10
               <el-button @click="Historicalscore">历史评分</el-button>
10
               <el-button @click="Historicalscore">历史评分</el-button>
12
             </div>
12
             </div>
13
           </div>
13
           </div>
14
 
14
 
15
-          <div class='content_top' style="width: 95%;">
15
+          <div class='content_top' style="width: 97%;">
16
             <div style="width: 49%; ">
16
             <div style="width: 49%; ">
17
               <div style="margin-bottom: 50px;">
17
               <div style="margin-bottom: 50px;">
18
                 <div class="biaotou content_top">
18
                 <div class="biaotou content_top">
152
                 </div>
152
                 </div>
153
                 <div>
153
                 <div>
154
                   <span>护士:</span>
154
                   <span>护士:</span>
155
-                  <el-select v-model="Nurse" placeholder="请选择" >
155
+                  <el-select v-model="Nurse" placeholder="请选择" style="width:120px;">
156
                     <el-option
156
                     <el-option
157
                       v-for="item in options"
157
                       v-for="item in options"
158
                       :key="item.value"
158
                       :key="item.value"
159
                       :label="item.label"
159
                       :label="item.label"
160
                       :value="item.value"
160
                       :value="item.value"
161
-                      style="width:150px;">
161
+                      >
162
                     </el-option>
162
                     </el-option>
163
                   </el-select>
163
                   </el-select>
164
                 </div>
164
                 </div>

+ 99 - 22
src/xt_pages/user/evaluationtool/Glasgow.vue View File

34
                     <td>
34
                     <td>
35
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
35
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
36
                         <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
36
                         <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
37
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
37
+                          <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
38
                         </span>
38
                         </span>
39
                       </div>
39
                       </div>
40
                     </td>
40
                     </td>
44
                     <td class="start">言语反映 (V)</td>
44
                     <td class="start">言语反映 (V)</td>
45
                     <td>
45
                     <td>
46
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
46
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
47
-                        <span v-for="item in yanyu" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
48
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
47
+                        <span v-for="item in yanyu" class="ttbwzz-type-a" @change="yuyan_change">
48
+                          <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
49
                         </span>
49
                         </span>
50
                       </div>
50
                       </div>
51
                     </td>
51
                     </td>
55
                     <td class="start">运动反应(M)</td>
55
                     <td class="start">运动反应(M)</td>
56
                     <td>
56
                     <td>
57
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
57
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
58
-                        <span v-for="item in yundong" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
59
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
58
+                        <span v-for="item in yundong" class="ttbwzz-type-a" @change="yundong_change">
59
+                          <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
60
                         </span>
60
                         </span>
61
                       </div>
61
                       </div>
62
                     </td>
62
                     </td>
120
               :data="history_Glasgow"
120
               :data="history_Glasgow"
121
               stripe
121
               stripe
122
               border
122
               border
123
+              @row-click="glasgow_click"
124
+              :highlight-current-row="true"
123
               :header-cell-style="{
125
               :header-cell-style="{
124
                   background: '#0077ff9f',color:'white'}"
126
                   background: '#0077ff9f',color:'white'}"
125
               style="width: 100%">
127
               style="width: 100%">
209
               <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
211
               <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
210
                   <span style="position: relative; top: -55px;">护理措施:</span>
212
                   <span style="position: relative; top: -55px;">护理措施:</span>
211
                   <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
213
                   <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
212
-                      
214
+
213
                   </div>
215
                   </div>
214
               </div>
216
               </div>
215
-              
217
+
216
             </div>
218
             </div>
217
           </div>
219
           </div>
218
         </div>
220
         </div>
219
       </div>
221
       </div>
220
-      
222
+
221
     </el-dialog>
223
     </el-dialog>
224
+
222
     </div>
225
     </div>
226
+     <!-- 删除弹窗 -->
227
+     <el-dialog
228
+      title="提示"
229
+      :visible.sync="dele_dialogVisible"
230
+      width="30%">
231
+      <span>确认删除该数据</span>
232
+      <span slot="footer" class="dialog-footer">
233
+        <el-button @click="dele_Cancel">取 消</el-button>
234
+        <el-button type="primary" @click="deleclick">确 定</el-button>
235
+      </span>
236
+    </el-dialog>
223
   </div>
237
   </div>
224
 </template>
238
 </template>
225
 <script>
239
 <script>
237
       value1:'',
251
       value1:'',
238
       value:'',
252
       value:'',
239
       input:'',
253
       input:'',
240
-      Glasgow_Totalpoints:null,
254
+      zhengyan_num:null,
255
+      yuyan_num:null,
256
+      yundong_num:null,
241
       options:[],
257
       options:[],
242
       tableData:[],
258
       tableData:[],
243
-      zhengyan:['自动睁眼(4分)','互换睁眼(3分)','刺激睁眼(2分)','无反应(1分)'],
244
-      yanyu:['正常(5分)','不准确回答问题(4分)','不恰当词句(3分)','不能理解的言语(2分)','无言语反映(1分)'],
245
-      yundong:['能按指令运动肢体(6分)','对刺痛能定位(5分)','对刺痛能躲避(4分)','刺痛肢体屈曲(3分)','刺痛肢体过伸(2分)','无反应(1分)'],
259
+      zhengyan:[{value:4,label:'自动睁眼(4分)'},{value:3,label:'互换睁眼(3分)'},{value:2,label:'刺激睁眼(2分)'},{value:1,label:'无反应(1分)'}],
260
+      yanyu:[{value:5,label:'正常(5分)'},{value:4,label:'不准确回答问题(4分)'},{value:3,label:'不恰当词句(3分)'},{value:2,label:'不能理解的言语(2分)'},{value:1,label:'无言语反映(1分)'}],
261
+      yundong:[{value:6,label:'能按指令运动肢体(6分)'},{value:5,label:'对刺痛能定位(5分)'},{value:4,label:'对刺痛能躲避(4分)'},{value:3,label:'刺痛肢体屈曲(3分)'},{value:2,label:'刺痛肢体过伸(2分)'},{value:1,label:'无反应(1分)'}],
246
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
262
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
247
       history_Glasgow:[{date:'2023-9-27',mark:'',evaluate:''}],
263
       history_Glasgow:[{date:'2023-9-27',mark:'',evaluate:''}],
248
 
264
 
252
       Glas_baoxiao:false,
268
       Glas_baoxiao:false,
253
       cancel_num:0,
269
       cancel_num:0,
254
       Glas_pinggu:null,
270
       Glas_pinggu:null,
255
-      open_print:false
271
+      open_print:false,
272
+      dele_id:'',
273
+      dele_dialogVisible:false,
256
     }
274
     }
257
   },
275
   },
258
   methods:{
276
   methods:{
259
     handleCheckedCitiesChange(e){
277
     handleCheckedCitiesChange(e){
260
       var ball = e.target.value
278
       var ball = e.target.value
261
-      var jiequ =(ball.split('(')[1].split('分')[0]) * 1
262
-      if(e.target.checked==true){
263
-        this.Glasgow_Totalpoints=this.Glasgow_Totalpoints + jiequ
264
-        return this.Glasgow_Totalpoints
265
-      }else{
266
-        this.Glasgow_Totalpoints=this.Glasgow_Totalpoints-jiequ
267
-        return this.Glasgow_Totalpoints
279
+      // var jiequ =(ball.split('(')[1].split('分')[0]) * 1
280
+      // if(e.target.checked==true){
281
+      //   this.Glasgow_Totalpoints=this.Glasgow_Totalpoints + jiequ
282
+      //   return this.Glasgow_Totalpoints
283
+      // }else{
284
+      //   this.Glasgow_Totalpoints=this.Glasgow_Totalpoints-jiequ
285
+      //   return this.Glasgow_Totalpoints
286
+      // }
287
+      const checkboxs=document.getElementsByClassName('checkbox1')
288
+      for(let i=0;i<checkboxs.length;i++){
289
+        if(ball==checkboxs[i].value ){
290
+          console.log('vvvv',ball,'bbbb',e.target.checked);
291
+          this.zhengyan_num = checkboxs[i].value
292
+          checkboxs[i].checked=true
293
+        }else{
294
+          checkboxs[i].checked = false
295
+        }
296
+      }
297
+    },
298
+    yuyan_change(e){
299
+      var ball = e.target.value
300
+      const checkboxs=document.getElementsByClassName('checkbox2')
301
+      for(let i=0;i<checkboxs.length;i++){
302
+        if(ball==checkboxs[i].value ){
303
+          console.log('vvvv',ball,'bbbb',e.target.checked);
304
+          this.yuyan_num = checkboxs[i].value
305
+          checkboxs[i].checked=true
306
+        }else{
307
+          checkboxs[i].checked = false
308
+        }
309
+      }
310
+    },
311
+    yundong_change(e){
312
+      var ball = e.target.value
313
+      const checkboxs=document.getElementsByClassName('checkbox3')
314
+      for(let i=0;i<checkboxs.length;i++){
315
+        if(ball==checkboxs[i].value ){
316
+          console.log('vvvv',ball,'bbbb',e.target.checked);
317
+          this.yundong_num = checkboxs[i].value
318
+          checkboxs[i].checked=true
319
+        }else{
320
+          checkboxs[i].checked = false
321
+        }
268
       }
322
       }
269
-
270
     },
323
     },
271
     Glas_add(){
324
     Glas_add(){
272
       this.cancel_num=0
325
       this.cancel_num=0
301
       this.Glasadd_show=false
354
       this.Glasadd_show=false
302
       this.cancel_num =1
355
       this.cancel_num =1
303
     },
356
     },
357
+    glasgow_click(row,column, event){
358
+      this.dele_id=row.id
359
+    },
304
     Glas_dele(){
360
     Glas_dele(){
305
       this.append=false
361
       this.append=false
306
       this.Glas_gzdayin=false
362
       this.Glas_gzdayin=false
307
       this.Glasadd_show=true
363
       this.Glasadd_show=true
308
       this.Glas_baoxiao=false
364
       this.Glas_baoxiao=false
309
       this.cancel_num=0
365
       this.cancel_num=0
366
+      this.dele_dialogVisible=true
367
+    },
368
+    deleclick(){
369
+      for(let i=0;i<this.history_Glasgow.length;i++){
370
+        if(this.dele_id==this.history_Glasgow[i].id){
371
+          this.history_Glasgow.splice(i,1)
372
+        }
373
+      }
374
+      this.dele_dialogVisible=false
375
+    },
376
+    dele_Cancel(){
377
+      this.append=false
378
+      this.Glasadd_show=true
379
+      this.Glas_gzdayin=true
380
+      this.dele_dialogVisible=false
310
     },
381
     },
311
     Glas_quxiao(){
382
     Glas_quxiao(){
312
       // console.log('1111',this.cancel_num);
383
       // console.log('1111',this.cancel_num);
333
         scanStyles: false
404
         scanStyles: false
334
       })
405
       })
335
       this.open_print=false
406
       this.open_print=false
407
+    },
408
+
409
+  },
410
+  computed:{
411
+    Glasgow_Totalpoints(){
412
+      return this.zhengyan_num*1 + this.yuyan_num*1 + this.yundong_num*1
336
     }
413
     }
337
   }
414
   }
338
 }
415
 }
405
     z-index: -1;
482
     z-index: -1;
406
 }
483
 }
407
 .tables {
484
 .tables {
408
-  
485
+
409
   thead th{
486
   thead th{
410
     text-align: center;
487
     text-align: center;
411
     height: 40px;
488
     height: 40px;

+ 62 - 25
src/xt_pages/user/evaluationtool/Muscleforce.vue View File

97
                       <td class="start">{{ item.title }}</td>
97
                       <td class="start">{{ item.title }}</td>
98
                       <td>
98
                       <td>
99
                         <div class="jiange">
99
                         <div class="jiange">
100
-                          <label style="font-size: 15px;"><input type="checkbox" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;{{ item.value }}</label>
100
+                          <label style="font-size: 15px;"><input type="checkbox" class="checkbox" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;{{ item.label }}</label>
101
                         </div>
101
                         </div>
102
                       </td>
102
                       </td>
103
                     </tr>
103
                     </tr>
154
                   :data="history_muscle"
154
                   :data="history_muscle"
155
                   stripe
155
                   stripe
156
                   border
156
                   border
157
+                  @row-click="Muscle_click"
157
                   :highlight-current-row="true"
158
                   :highlight-current-row="true"
158
                   :header-cell-style="{
159
                   :header-cell-style="{
159
                       background: '#0077ff9f',color:'white'
160
                       background: '#0077ff9f',color:'white'
181
 
182
 
182
       </div>
183
       </div>
183
 
184
 
184
-      <el-dialog
185
+
186
+    </div>
187
+    <!-- 打印 -->
188
+    <el-dialog
185
       title="提示"
189
       title="提示"
186
       :visible.sync="open_print"
190
       :visible.sync="open_print"
187
       width="67%"
191
       width="67%"
224
                       <!-- <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input> -->
228
                       <!-- <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input> -->
225
                   </div>
229
                   </div>
226
               </div>
230
               </div>
227
-              
231
+
228
             </div>
232
             </div>
229
           </div>
233
           </div>
230
         </div>
234
         </div>
231
       </div>
235
       </div>
232
-      
233
-    </el-dialog>
234
-    </div>
235
 
236
 
237
+    </el-dialog>
238
+    <!-- 删除弹窗 -->
239
+    <el-dialog
240
+      title="提示"
241
+      :visible.sync="dele_dialogVisible"
242
+      width="30%">
243
+      <span>确认删除该数据</span>
244
+      <span slot="footer" class="dialog-footer">
245
+        <el-button @click="dele_Cancel">取 消</el-button>
246
+        <el-button type="primary" @click="deleclick">确 定</el-button>
247
+      </span>
248
+    </el-dialog>
236
   </div>
249
   </div>
237
 </template>
250
 </template>
238
 <script>
251
 <script>
256
       options:[],
269
       options:[],
257
       tableData:[],
270
       tableData:[],
258
       shuju:[
271
       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:' 正常肌力'},
272
+        {title:'0级',label:'肌肉完全不收缩',value:0},
273
+        {title:'1级',label:'可见肌肉收缩但无肢体运动',value:1},
274
+        {title:'2级',label:'肢体能在床上移动,但不能抬离床面,即不能对抗地心引力',value:2},
275
+        {title:'3级',label:'肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力',value:3},
276
+        {title:'4级',label:'能在一般的外加阻力下作运动,但力量较正常弱',value:4},
277
+        {title:'5级',label:' 正常肌力',value:5},
265
       ],
278
       ],
266
-      history_muscle:[{date:'2023-9-27',mark:'',evaluate:''}],
279
+      history_muscle:[{id:'001',date:'2023-9-27',mark:'',evaluate:''}],
267
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
280
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
268
       append:false,
281
       append:false,
269
       add_open:1,
282
       add_open:1,
271
       baocun_quxiao:false,
284
       baocun_quxiao:false,
272
       muscle_gsdayin:false,
285
       muscle_gsdayin:false,
273
       cancel_num:0,
286
       cancel_num:0,
274
-      open_print:false
287
+      open_print:false,
288
+      dele_id:'',
289
+      dele_dialogVisible:false,
275
     }
290
     }
276
   },
291
   },
277
   methods:{
292
   methods:{
278
     handleCheckedCitiesChange(e){
293
     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);
294
+      console.log('6666',e.target.value);
295
+      const ball = e.target.value
296
+      const checkboxs=document.getElementsByClassName('checkbox')
297
+      for(let i=0;i<checkboxs.length;i++){
298
+        if(ball==checkboxs[i].value ){
299
+          console.log('vvvv',this.ball,'bbbb',e.target.checked);
300
+          this.Mus_Totalpoints = checkboxs[i].value
301
+          checkboxs[i].checked=true
302
+        }else{
303
+          checkboxs[i].checked = false
288
         }
304
         }
289
       }
305
       }
290
     },
306
     },
318
         }
334
         }
319
       }
335
       }
320
     },
336
     },
337
+    Muscle_click(row,column, event){
338
+      this.dele_id=row.id
339
+    },
321
     muscle_dele(){
340
     muscle_dele(){
322
       this.muscle_gsdayin=false
341
       this.muscle_gsdayin=false
323
       this.baocun_quxiao = false
342
       this.baocun_quxiao = false
324
       this.append=false
343
       this.append=false
325
       this.muscle_pinggu=null
344
       this.muscle_pinggu=null
345
+      this.dele_dialogVisible=true
346
+    },
347
+    deleclick(){
348
+      for(let i=0;i<this.history_muscle.length;i++){
349
+        if(this.dele_id==this.history_muscle[i].id){
350
+          this.history_muscle.splice(i,1)
351
+        }
352
+      }
353
+      this.dele_dialogVisible=false
354
+    },
355
+    dele_Cancel(){
356
+      this.dele_dialogVisible=false
357
+      this.muscle_gsdayin=true
358
+      this.muscle_show=true
359
+      this.baocun_quxiao=false
360
+      this.append=false
326
     },
361
     },
327
     muscle_cancel(){
362
     muscle_cancel(){
328
       if(this.cancel_num==0){
363
       if(this.cancel_num==0){
353
         scanStyles: false
388
         scanStyles: false
354
       })
389
       })
355
       this.open_print=false
390
       this.open_print=false
356
-    }
391
+    },
392
+
393
+
357
   }
394
   }
358
 }
395
 }
359
 </script>
396
 </script>
415
     z-index: -1;
452
     z-index: -1;
416
 }
453
 }
417
 .tables {
454
 .tables {
418
-  
455
+
419
   thead th{
456
   thead th{
420
     // background: #0077ff9f;
457
     // background: #0077ff9f;
421
     // color: white;
458
     // color: white;

+ 122 - 27
src/xt_pages/user/evaluationtool/OHpressuresore.vue View File

37
                               <td>
37
                               <td>
38
                                   <div class="jiange">
38
                                   <div class="jiange">
39
                                       <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange">
39
                                       <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange">
40
-                                          <label><input type="checkbox" name="ball" :value="item"/>&nbsp;{{ item }}</label>
40
+                                          <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value"/>&nbsp;{{ item.label }}</label>
41
                                       </span>
41
                                       </span>
42
                                   </div>
42
                                   </div>
43
                               </td>
43
                               </td>
46
                               <td class="start">病理性骨突出</td>
46
                               <td class="start">病理性骨突出</td>
47
                               <td>
47
                               <td>
48
                                   <div class="jiange">
48
                                   <div class="jiange">
49
-                                      <span v-for="item in bingli" class="rightjiange" @change="handleCheckedCitiesChange">
50
-                                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
49
+                                      <span v-for="item in bingli" class="rightjiange" @change="bingligu">
50
+                                          <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
51
                                       </span>
51
                                       </span>
52
                                   </div>
52
                                   </div>
53
                               </td>
53
                               </td>
57
                               <td class="start">浮肿</td>
57
                               <td class="start">浮肿</td>
58
                               <td>
58
                               <td>
59
                                   <div class="jiange">
59
                                   <div class="jiange">
60
-                                      <span v-for="item in edema" class="rightjiange" @change="handleCheckedCitiesChange">
61
-                                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
60
+                                      <span v-for="item in edema" class="rightjiange" @change="fozhong_chang">
61
+                                          <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
62
                                       </span>
62
                                       </span>
63
                                   </div>
63
                                   </div>
64
                               </td>
64
                               </td>
68
                               <td class="start">关节痉挛</td>
68
                               <td class="start">关节痉挛</td>
69
                                 <td>
69
                                 <td>
70
                                   <div class="jiange">
70
                                   <div class="jiange">
71
-                                      <span v-for="item in guanjie" class="rightjiange" @change="handleCheckedCitiesChange">
72
-                                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
71
+                                      <span v-for="item in guanjie" class="rightjiange" @change="guanjie_change">
72
+                                          <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
73
                                       </span>
73
                                       </span>
74
                                   </div>
74
                                   </div>
75
                               </td>
75
                               </td>
137
               :data="history_OH"
137
               :data="history_OH"
138
               stripe
138
               stripe
139
               border
139
               border
140
+              @row-click="dele_click"
141
+              :highlight-current-row="true"
140
               :header-cell-style="{
142
               :header-cell-style="{
141
                   background: '#0077ff9f',color:'white'}"
143
                   background: '#0077ff9f',color:'white'}"
142
               style="width: 100%">
144
               style="width: 100%">
160
           </div>
162
           </div>
161
         </div>
163
         </div>
162
       </div>
164
       </div>
163
-      
165
+
166
+
167
+    </div>
168
+    <!-- 打印 -->
164
     <el-dialog
169
     <el-dialog
165
       title="提示"
170
       title="提示"
166
       :visible.sync="open_print"
171
       :visible.sync="open_print"
252
           </div>
257
           </div>
253
         </div>
258
         </div>
254
       </div>
259
       </div>
255
-      
260
+
261
+    </el-dialog>
262
+    <!-- 删除弹窗 -->
263
+    <el-dialog
264
+      title="提示"
265
+      :visible.sync="dele_dialogVisible"
266
+      width="30%">
267
+      <span>确认删除该数据</span>
268
+      <span slot="footer" class="dialog-footer">
269
+        <el-button @click="dele_Cancel">取 消</el-button>
270
+        <el-button type="primary" @click="deleclick">确 定</el-button>
271
+      </span>
256
     </el-dialog>
272
     </el-dialog>
257
-    </div>
258
   </div>
273
   </div>
259
 </template>
274
 </template>
260
 <script>
275
 <script>
267
   data(){
282
   data(){
268
     return{
283
     return{
269
       patientID:0,
284
       patientID:0,
270
-      Totalpoints:null,
285
+      tiwei_num:null,
286
+      bingli_num:null,
287
+      edema_num:null,
288
+      gaunjie_num:null,
271
       ball:'',
289
       ball:'',
272
       input:'',
290
       input:'',
273
-      history_OH:[{date:'2023-9-27',mark:'',evaluate:''}],
291
+      history_OH:[{id:'001',date:'2023-9-27',mark:'',evaluate:''}],
274
       form:[],
292
       form:[],
275
       appraiser:null,
293
       appraiser:null,
276
       value1:'',
294
       value1:'',
277
       options:[],
295
       options:[],
278
-      tiwei:['能(0分)','不能完全自立(1.5分)','不能(3分)'],
279
-      bingli:['无(0分)','轻度/中度(1.5分)','高度(3分)'],
280
-      edema:['无(0分)','有(3分)'],
281
-      guanjie:['无(0分)','有(1分)'],
296
+      tiwei:[{value:0,label:'能(0分)'},{value:1.5,label:'不能完全自立(1.5分)'},{value:3,label:'不能(3分)'}],
297
+      bingli:[{value:0,label:'无(0分)'},{value:1.5,label:'轻度/中度(1.5分)'},{value:3,label:'高度(3分)'}],
298
+      edema:[{value:0,label:'无(0分)'},{value:3,label:'有(3分)'}],
299
+      guanjie:[{value:0,label:'无(0分)'},{value:1,label:'有(1分)'}],
282
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
300
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
283
       checkList:[],
301
       checkList:[],
284
       checkList1:[],
302
       checkList1:[],
292
       zsgy_open:0,//控制编辑,删除,打印显示
310
       zsgy_open:0,//控制编辑,删除,打印显示
293
       cancel_num:0,//取消的条件
311
       cancel_num:0,//取消的条件
294
       open_print:false,
312
       open_print:false,
313
+      dele_id:'',//删除的索引
314
+      dele_dialogVisible:false
295
     }
315
     }
296
   },
316
   },
297
   methods:{
317
   methods:{
298
     //选择的总分
318
     //选择的总分
299
     handleCheckedCitiesChange(e){
319
     handleCheckedCitiesChange(e){
300
-      this.ball = e.target.value
301
-      var jiequ =(this.ball.split('(')[1].split('分')[0]) * 1
302
-      if(e.target.checked==true){
303
-        this.Totalpoints=this.Totalpoints + jiequ
304
-        console.log('22222 .slice(1)',this.ball);
305
-        console.log('3333333333',this.Totalpoints);
306
-        return this.Totalpoints
307
-      }else{
308
-        this.Totalpoints=this.Totalpoints-jiequ
309
-        return this.Totalpoints
320
+      const ball = e.target.value
321
+      const checkboxs=document.getElementsByClassName('checkbox1')
322
+      for(let i=0;i<checkboxs.length;i++){
323
+        if(ball==checkboxs[i].value ){
324
+            console.log('vvvv',ball,'bbbb',e.target.checked);
325
+            this.tiwei_num = checkboxs[i].value
326
+            e.target.checked=true
327
+            checkboxs[i].checked=true
328
+        }else{
329
+          checkboxs[i].checked = false
330
+        }
331
+        // if(checkboxs[i].checked == true){
332
+        //   if(ball==checkboxs[i].value){
333
+        //     checkboxs[i].checked=false
334
+        //   }
335
+        // }
336
+      }
337
+    },
338
+    bingligu(e){
339
+      const ball=e.target.value
340
+      const checkboxs=document.getElementsByClassName('checkbox2')
341
+      for(let i=0;i<checkboxs.length;i++){
342
+        if(ball==checkboxs[i].value ){
343
+          console.log('vvvv',ball,'bbbb',e.target.checked);
344
+          this.bingli_num = checkboxs[i].value
345
+          checkboxs[i].checked=true
346
+        }else{
347
+          checkboxs[i].checked = false
348
+        }
349
+      }
350
+    },
351
+    fozhong_chang(e){
352
+      const ball=e.target.value
353
+      const checkboxs=document.getElementsByClassName('checkbox3')
354
+      for(let i=0;i<checkboxs.length;i++){
355
+        if(ball==checkboxs[i].value ){
356
+          console.log('vvvv',ball,'bbbb',e.target.checked);
357
+          this.edema_num = checkboxs[i].value
358
+          checkboxs[i].checked=true
359
+        }else{
360
+          checkboxs[i].checked = false
361
+        }
362
+      }
363
+    },
364
+    guanjie_change(e){
365
+      const ball=e.target.value
366
+      const checkboxs=document.getElementsByClassName('checkbox4')
367
+      for(let i=0;i<checkboxs.length;i++){
368
+        if(ball==checkboxs[i].value ){
369
+          console.log('vvvv',ball,'bbbb',e.target.checked);
370
+          this.gaunjie_num= checkboxs[i].value
371
+          checkboxs[i].checked=true
372
+        }else{
373
+          checkboxs[i].checked = false
374
+        }
310
       }
375
       }
311
-
312
     },
376
     },
313
     // 新增
377
     // 新增
314
     OHadd(){
378
     OHadd(){
352
       this.baocun_open=1
416
       this.baocun_open=1
353
       this.cancel_num=1
417
       this.cancel_num=1
354
     },
418
     },
419
+    dele_click(row, column, event){
420
+      this.dele_id=row.id
421
+    },
355
     //删除
422
     //删除
356
     dele_OH(){
423
     dele_OH(){
357
       this.zsgy_open=0
424
       this.zsgy_open=0
358
       this.append=false
425
       this.append=false
426
+      this.dele_dialogVisible=true
427
+    },
428
+    deleclick(){
429
+      for(let i=0;i<this.history_OH.length;i++){
430
+        if(this.dele_id==this.history_OH[i].id){
431
+          this.history_OH.splice(i,1)
432
+        }
433
+      }
434
+      this.dele_dialogVisible=false
359
     },
435
     },
360
     //打印
436
     //打印
361
     print_OH(){
437
     print_OH(){
362
       this.open_print=true
438
       this.open_print=true
363
     },
439
     },
440
+    dele_Cancel(){
441
+      this.append=false
442
+      this.zsgy_open=1
443
+      this.add_show=true
444
+      this.dele_dialogVisible=false
445
+    },
364
     //取消
446
     //取消
365
     cancel_OH(){
447
     cancel_OH(){
448
+      const checkboxs=document.getElementsByClassName('ball')
366
       this.baocun_open=0
449
       this.baocun_open=0
367
       console.log('1111',this.cancel_num);
450
       console.log('1111',this.cancel_num);
368
       if(this.cancel_num==1){
451
       if(this.cancel_num==1){
372
         this.zsgy_open=0
455
         this.zsgy_open=0
373
         this.add_show=true
456
         this.add_show=true
374
         this.append=false
457
         this.append=false
458
+        this.tiwei_num=''
459
+        this.bingli_num=null
460
+        this.edema_num=null
461
+        this.gaunjie_num=null
462
+        for(let i=0;i<checkboxs.length;i++){
463
+          checkboxs[i].checked = false
464
+        }
375
       }
465
       }
376
 
466
 
377
     },
467
     },
385
       })
475
       })
386
       this.open_print=false
476
       this.open_print=false
387
     }
477
     }
478
+  },
479
+  computed:{
480
+    Totalpoints(){
481
+      return this.gaunjie_num*1 + this.edema_num*1 + this.bingli_num*1 + this.tiwei_num*1
482
+    }
388
   }
483
   }
389
 }
484
 }
390
 </script>
485
 </script>

+ 14 - 8
src/xt_pages/user/evaluationtool/RassAssessment.vue View File

1
 <template>
1
 <template>
2
     <div class="patient-container">
2
     <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-6"></patient-sidebar>
3
+        <patient-sidebar :id="patientID" defaultActive="5-7"></patient-sidebar>
4
         <div>
4
         <div>
5
             <div class="patient-app-container advice-container app-container">
5
             <div class="patient-app-container advice-container app-container">
6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
196
                                         <img :src="item.imgs" alt="">
196
                                         <img :src="item.imgs" alt="">
197
                                       </div>
197
                                       </div>
198
                                       <span>
198
                                       <span>
199
-                                        <label >
199
+                                        <!-- <el-radio :label="item.text" :value="item.value" :key="index" style="color: black;" ></el-radio> -->
200
+                                        <!-- <label >
200
                                         <input type="radio" :value="item.value"  name="ttpggj-bqf" @click="radioclick($event,item.value)">
201
                                         <input type="radio" :value="item.value"  name="ttpggj-bqf" @click="radioclick($event,item.value)">
201
-                                        {{item.text}}</label>
202
+                                        {{item.text}}</label> -->
203
+                                        <el-radio-group v-model="radio1" @change="radioclick($event,item.value)">
204
+                                          <el-radio  :label="item.text" :value="item.value" :key="index" style="color: black;" >
205
+                                          </el-radio>
206
+                                      </el-radio-group>
202
                                       </span>
207
                                       </span>
203
                                     </div>
208
                                     </div>
204
                                   </div>
209
                                   </div>
544
           }
549
           }
545
         }
550
         }
546
       },
551
       },
547
-      radioclick(e,val){
548
-        if(e.target.checked == true){
549
-          this.radio_val =val
552
+      radioclick(e,value){
553
+        console.log('2222',e,value);
554
+        if(e == this.radio1){
555
+          this.radio_val =value
550
         }
556
         }
551
       },
557
       },
552
       yuyanchange(e){
558
       yuyanchange(e){
566
         // this.shijue = val
572
         // this.shijue = val
567
         this.shijue_val =val
573
         this.shijue_val =val
568
         console.log('00000',val);
574
         console.log('00000',val);
569
-         
575
+
570
       },
576
       },
571
       click_NRS(val){
577
       click_NRS(val){
572
         this.NRS_val = val
578
         this.NRS_val = val
594
           return this.behav_val
600
           return this.behav_val
595
           // this.$refs.behavior.getTotalpoints()
601
           // this.$refs.behavior.getTotalpoints()
596
         }
602
         }
597
-        
603
+
598
       }
604
       }
599
     }
605
     }
600
 }
606
 }

+ 67 - 50
src/xt_pages/user/evaluationtool/behavior.vue View File

51
           </table>
51
           </table>
52
         </div>
52
         </div>
53
         <div v-if="radio == '老年痴呆症量表'">
53
         <div v-if="radio == '老年痴呆症量表'">
54
-          <table border="1" class="table">
54
+          <table border="1" class="table" style="white-space:pre-wrap;">
55
             <thead>
55
             <thead>
56
               <tr>
56
               <tr>
57
-                <td>老年痴呆症疼痛估量表</td>
58
-                <td>0</td>
59
-                <td>1</td>
60
-                <td>2</td>
57
+                <td style="width: 17%;">老年痴呆症疼痛估量表</td>
58
+                <td style="width: 27%;">0</td>
59
+                <td style="width: 27%;">1</td>
60
+                <td style="width: 27%;">2</td>
61
               </tr>
61
               </tr>
62
             </thead>
62
             </thead>
63
-            <tbody>
64
-              <tr class="bg_color">
63
+             <tbody>
64
+             <tr class="bg_color">
65
                 <td>1、呼吸</td>
65
                 <td>1、呼吸</td>
66
-                <td v-for="(item,index) in laor_huxi" :key="index">
67
-                  <el-radio v-model="radio_lrhuxi" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
66
+                <td v-for="(item,index) in laor_huxi" :key="index" >
67
+                  <div>
68
+                    <el-radio v-model="radio_lrhuxi" :label="item.value" @change="laorhuxi"
69
+                    style="white-space: normal;">
70
+                    {{ item.label }}
71
+                    </el-radio>
72
+                  </div>
68
                 </td>
73
                 </td>
69
               </tr>
74
               </tr>
70
               <tr class="">
75
               <tr class="">
71
                 <td>2、负面声音表达</td>
76
                 <td>2、负面声音表达</td>
72
                 <td v-for="(item,index) in laor_fumian" :key="index">
77
                 <td v-for="(item,index) in laor_fumian" :key="index">
73
-                  <el-radio v-model="radio_lrfumian" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
78
+                  <div style="Word-break: break-all">
79
+                    <el-radio v-model="radio_lrfumian" :label="item.value" @change="laorhuxi"
80
+                    style="white-space: normal;">{{ item.label }}</el-radio>
81
+                  </div>
74
                 </td>
82
                 </td>
75
               </tr>
83
               </tr>
76
-              <tr class="bg_color">
84
+               <tr class="bg_color">
77
                 <td>3、面部表情</td>
85
                 <td>3、面部表情</td>
78
                 <td v-for="(item,index) in laor_mianbu" :key="index">
86
                 <td v-for="(item,index) in laor_mianbu" :key="index">
79
-                  <el-radio v-model="radio_lrmianbu" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
87
+                  <el-radio v-model="radio_lrmianbu" :label="item.value" @change="laorhuxi"
88
+                  style="white-space: normal;">{{ item.label }}</el-radio>
80
                 </td>
89
                 </td>
81
               </tr>
90
               </tr>
82
               <tr class="">
91
               <tr class="">
83
                 <td>4、身体语言</td>
92
                 <td>4、身体语言</td>
84
                 <td v-for="(item,index) in laor_shengti" :key="index">
93
                 <td v-for="(item,index) in laor_shengti" :key="index">
85
-                  <el-radio v-model="radio_lrshengti" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
94
+                  <el-radio v-model="radio_lrshengti" :label="item.value" @change="laorhuxi"
95
+                  style="white-space: normal;">{{ item.label }}</el-radio>
86
                 </td>
96
                 </td>
87
               </tr>
97
               </tr>
88
               <tr class="bg_color">
98
               <tr class="bg_color">
89
                 <td>5、可安抚程度</td>
99
                 <td>5、可安抚程度</td>
90
                 <td v-for="(item,index) in laor_keanfu" :key="index">
100
                 <td v-for="(item,index) in laor_keanfu" :key="index">
91
-                  <el-radio v-model="radio_lrkeanfu" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
101
+                  <el-radio v-model="radio_lrkeanfu" :label="item.value" @change="laorhuxi"
102
+                  style="white-space: normal;">{{ item.label }}</el-radio>
92
                 </td>
103
                 </td>
93
               </tr>
104
               </tr>
94
             </tbody>
105
             </tbody>
108
               <tr class="bg_color">
119
               <tr class="bg_color">
109
                 <td>1、面部表情</td>
120
                 <td>1、面部表情</td>
110
                 <td v-for="(item,index) in zhongzhen_mianbu" :key="index">
121
                 <td v-for="(item,index) in zhongzhen_mianbu" :key="index">
111
-                  <el-radio v-model="radio_zzmianbu" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
122
+                  <el-radio v-model="radio_zzmianbu" :label="item.value" @change="zhongzheng"
123
+                  style="white-space: normal;">{{ item.label }}</el-radio>
112
                 </td>
124
                 </td>
113
               </tr>
125
               </tr>
114
               <tr class="">
126
               <tr class="">
115
                 <td>2、身体运动</td>
127
                 <td>2、身体运动</td>
116
                 <td v-for="(item,index) in zhongzhen_shengti" :key="index">
128
                 <td v-for="(item,index) in zhongzhen_shengti" :key="index">
117
-                  <el-radio v-model="radio_zzshengti" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
129
+                  <el-radio v-model="radio_zzshengti" :label="item.value" @change="zhongzheng"
130
+                  style="white-space: normal;">{{ item.label }}</el-radio>
118
                 </td>
131
                 </td>
119
               </tr>
132
               </tr>
120
               <tr class="bg_color">
133
               <tr class="bg_color">
121
                 <td>3、肌紧张(对上肢被动屈伸的评估)</td>
134
                 <td>3、肌紧张(对上肢被动屈伸的评估)</td>
122
                 <td v-for="(item,index) in zhongzhen_jjinz" :key="index">
135
                 <td v-for="(item,index) in zhongzhen_jjinz" :key="index">
123
-                  <el-radio v-model="radio_zzjjinz" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
136
+                  <el-radio v-model="radio_zzjjinz" :label="item.value" @change="zhongzheng"
137
+                  style="white-space: normal;">{{ item.label }}</el-radio>
124
                 </td>
138
                 </td>
125
               </tr>
139
               </tr>
126
               <tr class="">
140
               <tr class="">
127
                 <td>4、机械通气的顺应(插管患者)</td>
141
                 <td>4、机械通气的顺应(插管患者)</td>
128
                 <td v-for="(item,index) in zhongzhen_jixie" :key="index">
142
                 <td v-for="(item,index) in zhongzhen_jixie" :key="index">
129
-                  <el-radio v-model="radio_zzjixie" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
143
+                  <el-radio v-model="radio_zzjixie" :label="item.value" @change="zhongzheng"
144
+                  style="white-space: normal;">{{ item.label }}</el-radio>
130
                 </td>
145
                 </td>
131
               </tr>
146
               </tr>
132
               <tr class="bg_color">
147
               <tr class="bg_color">
133
                 <td>5、发声(未插管患者)</td>
148
                 <td>5、发声(未插管患者)</td>
134
                 <td v-for="(item,index) in zhongzhen_fashen" :key="index">
149
                 <td v-for="(item,index) in zhongzhen_fashen" :key="index">
135
-                  <el-radio v-model="radio_zzfasheng" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
150
+                  <el-radio v-model="radio_zzfasheng" :label="item.value" @change="zhongzheng"
151
+                  style="white-space: normal;">{{ item.label }}</el-radio>
136
                 </td>
152
                 </td>
137
               </tr>
153
               </tr>
138
             </tbody>
154
             </tbody>
260
       mianbu_val:0,
276
       mianbu_val:0,
261
       shengti_val:0,
277
       shengti_val:0,
262
       keanfu_val:0,
278
       keanfu_val:0,
263
-      
279
+
264
       zzmian_val:0,
280
       zzmian_val:0,
265
       zzshengti_val:0,
281
       zzshengti_val:0,
266
       zzjjinz_val:0,
282
       zzjjinz_val:0,
353
     //   }else if (this.radio == '2月-7岁患者量表') {
369
     //   }else if (this.radio == '2月-7岁患者量表') {
354
     //     return this.hzface_val + this.hzleg_val + this.hzactiv_val + this.hzcry_val + this.hzcon_val
370
     //     return this.hzface_val + this.hzleg_val + this.hzactiv_val + this.hzcry_val + this.hzcon_val
355
     //   }
371
     //   }
356
-      
372
+
357
     // }
373
     // }
358
   }
374
   }
359
 
375
 
361
 </script>
377
 </script>
362
 
378
 
363
 <style lang="scss" scoped>
379
 <style lang="scss" scoped>
364
-    .jiange{
365
-        margin-left: 20px;
366
-        color: black;
367
-        line-height: 40px;
368
-    }
369
-    .table{
370
-        border: 1px solid #DCDFE6;
371
-        border-collapse:collapse;
372
-        border-spacing: 0;
373
-        width: 98%;
374
-        margin:10px auto;
375
-        thead td{
376
-            text-align: center;
377
-        }
378
-        tbody td{
379
-            font-size: 15px;
380
-            padding: 5px;
381
-        }
382
-        tr td{
383
-            line-height: 30px;
384
-        }
385
-        .bg_color{
386
-            background: rgb(243, 240, 240);
387
-        }
388
-        input{
389
-            -webkit-appearance: checkbox;
390
-        }
391
-    }
392
-</style>
380
+  .jiange{
381
+      margin-left: 20px;
382
+      color: black;
383
+      line-height: 40px;
384
+  }
385
+  .table{
386
+      border: 1px solid #DCDFE6;
387
+      border-collapse:collapse;
388
+      border-spacing: 0;
389
+      width: 98%;
390
+      margin:10px auto;
391
+      thead td{
392
+          text-align: center;
393
+      }
394
+      tbody td{
395
+          font-size: 15px;
396
+          padding: 5px;
397
+      }
398
+      tr td{
399
+          line-height: 30px;
400
+      }
401
+      .bg_color{
402
+          background: rgb(243, 240, 240);
403
+      }
404
+      input{
405
+          -webkit-appearance: checkbox;
406
+      }
407
+  }
408
+
409
+</style>

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

1
 <!--  日常生活能力评估 -->
1
 <!--  日常生活能力评估 -->
2
 <template>
2
 <template>
3
     <div class="patient-container">
3
     <div class="patient-container">
4
-        <patient-sidebar :id="patientID" defaultActive="5-4"></patient-sidebar>
4
+        <patient-sidebar :id="patientID" defaultActive="5-5"></patient-sidebar>
5
         <div>
5
         <div>
6
             <div class="patient-app-container advice-container app-container">
6
             <div class="patient-app-container advice-container app-container">
7
 
7
 
14
 
14
 
15
                 <div>
15
                 <div>
16
                   <table class="table" border="1" style="width: 100%;">
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">
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" class="checkbox1" 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">
40
+                          <div class="jiange">
41
+                            <span>
42
+                              <label><input type="checkbox" class="checkbox2" 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">
40
                             <div class="jiange">
54
                             <div class="jiange">
41
                               <span>
55
                               <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">
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">
120
-                            <div class="jiange">
121
-                              <span>
122
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
56
+                                <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
123
                                     {{item.label}}
57
                                     {{item.label}}
124
                                 </label>
58
                                 </label>
125
                               </span>
59
                               </span>
126
                             </div>
60
                             </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>
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" class="checkbox4" 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" class="checkbox5" 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" class="checkbox6" name="ball" :value="item.value" @click="xiaobianclick($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" class="checkbox7" 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" class="checkbox8" 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" class="checkbox9" 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" class="checkbox10" 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>
155
                   </table>
156
                 </div>
156
                 </div>
157
 
157
 
244
               {value:5,label:'偶尔失禁(5分)'},
244
               {value:5,label:'偶尔失禁(5分)'},
245
               {value:0,label:'完全失禁(0分)'}
245
               {value:0,label:'完全失禁(0分)'}
246
             ],
246
             ],
247
-      xioabian:[{value:10,label:'可控制便(10分)'},
247
+      xioabian:[{value:10,label:'可控制便(10分)'},
248
               {value:5,label:'偶尔失禁(5分)'},
248
               {value:5,label:'偶尔失禁(5分)'},
249
               {value:0,label:'完全失禁(0分)'}
249
               {value:0,label:'完全失禁(0分)'}
250
             ],
250
             ],
270
   },
270
   },
271
   methods:{
271
   methods:{
272
     jinshiclick(e,val){
272
     jinshiclick(e,val){
273
-     if(e.target.checked == true){
274
-      this.jinshi_val = val
275
-     }else{
276
-      this.jinshi_val =this.jinshi_val - val
277
-     }
273
+      const checkboxs=document.getElementsByClassName('checkbox1')
274
+      for(let i=0;i<checkboxs.length;i++){
275
+        if(val==checkboxs[i].value){
276
+          this.jinshi_val = val
277
+          checkboxs[i].value
278
+          checkboxs[i].checked=true
279
+        }else{
280
+          checkboxs[i].checked = false
281
+        }
282
+      }
278
     },
283
     },
279
     xizaoclick(e,val){
284
     xizaoclick(e,val){
280
-      if(e.target.checked == true){
281
-      this.xizao_val = val
282
-     }else{
283
-      this.xizao_val =this.xizao_val - val
284
-     }
285
+      const checkboxs=document.getElementsByClassName('checkbox2')
286
+      for(let i=0;i<checkboxs.length;i++){
287
+        if(val==checkboxs[i].value){
288
+          this.xizao_val = val
289
+          checkboxs[i].value
290
+          checkboxs[i].checked=true
291
+        }else{
292
+          checkboxs[i].checked = false
293
+        }
294
+      }
285
     },
295
     },
286
     xiushiclick(e,val){
296
     xiushiclick(e,val){
287
-     if(e.target.checked == true){
288
-      this.xiushi_val = val
289
-     }else{
290
-      this.xiushi_val =this.xiushi_val - val
291
-     }
297
+     const checkboxs=document.getElementsByClassName('checkbox3')
298
+      for(let i=0;i<checkboxs.length;i++){
299
+        if(val==checkboxs[i].value){
300
+          this.xiushi_val = val
301
+          checkboxs[i].value
302
+          checkboxs[i].checked=true
303
+        }else{
304
+          checkboxs[i].checked = false
305
+        }
306
+      }
292
     },
307
     },
293
     chuanyiclick(e,val){
308
     chuanyiclick(e,val){
294
-      if(e.target.checked == true){
295
-      this.chuanyi_val = val
296
-     }else{
297
-      this.chuanyi_val =this.chuanyi_val - val
298
-     }
309
+     const checkboxs=document.getElementsByClassName('checkbox4')
310
+      for(let i=0;i<checkboxs.length;i++){
311
+        if(val==checkboxs[i].value){
312
+          this.chuanyi_val = val
313
+          checkboxs[i].value
314
+          checkboxs[i].checked=true
315
+        }else{
316
+          checkboxs[i].checked = false
317
+        }
318
+      }
299
     },
319
     },
300
     dabianclick(e,val){
320
     dabianclick(e,val){
301
-     if(e.target.checked == true){
302
-      this.dabian_val = val
303
-     }else{
304
-      this.dabian_val =this.dabian_val - val
305
-     }
321
+     const checkboxs=document.getElementsByClassName('checkbox5')
322
+      for(let i=0;i<checkboxs.length;i++){
323
+        if(val==checkboxs[i].value){
324
+          this.dabian_val = val
325
+          checkboxs[i].value
326
+          checkboxs[i].checked=true
327
+        }else{
328
+          checkboxs[i].checked = false
329
+        }
330
+      }
306
     },
331
     },
307
     xiaobianclick(e,val){
332
     xiaobianclick(e,val){
308
-      if(e.target.checked == true){
309
-      this.xiaobian_val = val
310
-     }else{
311
-      this.xiaobian_val =this.xiaobian_val - val
312
-     }
333
+     const checkboxs=document.getElementsByClassName('checkbox6')
334
+      for(let i=0;i<checkboxs.length;i++){
335
+        if(val==checkboxs[i].value){
336
+          this.xiaobian_val = val
337
+          checkboxs[i].value
338
+          checkboxs[i].checked=true
339
+        }else{
340
+          checkboxs[i].checked = false
341
+        }
342
+      }
313
     },
343
     },
314
     ruceclick(e,val){
344
     ruceclick(e,val){
315
-     if(e.target.checked == true){
316
-      this.ruce_val = val
317
-     }else{
318
-      this.ruce_val =this.ruce_val - val
319
-     }
345
+     const checkboxs=document.getElementsByClassName('checkbox7')
346
+      for(let i=0;i<checkboxs.length;i++){
347
+        if(val==checkboxs[i].value){
348
+          this.ruce_val = val
349
+          checkboxs[i].value
350
+          checkboxs[i].checked=true
351
+        }else{
352
+          checkboxs[i].checked = false
353
+        }
354
+      }
320
     },
355
     },
321
     chuangyiclick(e,val){
356
     chuangyiclick(e,val){
322
-      if(e.target.checked == true){
323
-      this.chuangyi_val = val
324
-     }else{
325
-      this.chuangyi_val =this.chuangyi_val - val
326
-     }
357
+     const checkboxs=document.getElementsByClassName('checkbox8')
358
+      for(let i=0;i<checkboxs.length;i++){
359
+        if(val==checkboxs[i].value){
360
+          this.chuangyi_val = val
361
+          checkboxs[i].value
362
+          checkboxs[i].checked=true
363
+        }else{
364
+          checkboxs[i].checked = false
365
+        }
366
+      }
327
     },
367
     },
328
     pingdiclick(e,val){
368
     pingdiclick(e,val){
329
-     if(e.target.checked == true){
330
-      this.paingdi_val = val
331
-     }else{
332
-      this.paingdi_val =this.paingdi_val - val
333
-     }
369
+    //  if(e.target.checked == true){
370
+    //   this.paingdi_val = val
371
+    //  }else{
372
+    //   this.paingdi_val =this.paingdi_val - val
373
+    //  }
374
+     const checkboxs=document.getElementsByClassName('checkbox9')
375
+      for(let i=0;i<checkboxs.length;i++){
376
+        if(val==checkboxs[i].value){
377
+          this.paingdi_val = val
378
+          checkboxs[i].value
379
+          checkboxs[i].checked=true
380
+        }else{
381
+          checkboxs[i].checked = false
382
+        }
383
+      }
334
     },
384
     },
335
     louticlick(e,val){
385
     louticlick(e,val){
336
-      if(e.target.checked == true){
337
-      this.louti_val = val
338
-     }else{
339
-      this.louti_val =this.louti_val - val
340
-     }
386
+     const checkboxs=document.getElementsByClassName('checkbox10')
387
+      for(let i=0;i<checkboxs.length;i++){
388
+        if(val==checkboxs[i].value){
389
+          this.louti_val = val
390
+          checkboxs[i].value
391
+          checkboxs[i].checked=true
392
+        }else{
393
+          checkboxs[i].checked = false
394
+        }
395
+      }
341
     },
396
     },
342
     datehistory(){
397
     datehistory(){
343
       this.$router.push({path: '/patients/date_history'})
398
       this.$router.push({path: '/patients/date_history'})

+ 38 - 5
src/xt_pages/user/evaluationtool/hemodialysis.vue View File

642
                   :data="history_hemod"
642
                   :data="history_hemod"
643
                   stripe
643
                   stripe
644
                   border
644
                   border
645
+                  @row-click="hemod_click"
646
+                  :highlight-current-row="true"
645
                   :header-cell-style="{
647
                   :header-cell-style="{
646
                       background: '#0077ff9f',color:'white'}"
648
                       background: '#0077ff9f',color:'white'}"
647
                   style="width: 100%">
649
                   style="width: 100%">
1262
                       </tbody>
1264
                       </tbody>
1263
                   </table>
1265
                   </table>
1264
               </div>
1266
               </div>
1265
-              
1267
+
1266
             </div>
1268
             </div>
1267
           </div>
1269
           </div>
1268
         </div>
1270
         </div>
1269
       </div>
1271
       </div>
1270
-      
1272
+
1273
+    </el-dialog>
1274
+     <!-- 删除弹窗 -->
1275
+     <el-dialog
1276
+      title="提示"
1277
+      :visible.sync="dele_dialogVisible"
1278
+      width="30%">
1279
+      <span>确认删除该数据</span>
1280
+      <span slot="footer" class="dialog-footer">
1281
+        <el-button @click="dele_Cancel">取 消</el-button>
1282
+        <el-button type="primary" @click="deleclick">确 定</el-button>
1283
+      </span>
1271
     </el-dialog>
1284
     </el-dialog>
1272
   </div>
1285
   </div>
1273
 </template>
1286
 </template>
1318
       cancel_num:0,
1331
       cancel_num:0,
1319
       hemod_pinggu:null,
1332
       hemod_pinggu:null,
1320
       open_print:false,
1333
       open_print:false,
1334
+      dele_id:'',
1335
+      dele_dialogVisible:false,
1321
     }
1336
     }
1322
   },
1337
   },
1323
   methods:{
1338
   methods:{
1339
         const pinggrlen=this.pinggr
1354
         const pinggrlen=this.pinggr
1340
         for(let i=0;i<lent.length;i++){
1355
         for(let i=0;i<lent.length;i++){
1341
           for(let y=0;y<pinggrlen.length;y++){
1356
           for(let y=0;y<pinggrlen.length;y++){
1342
-            if(this.hemod_pinggu=pinggrlen[y].id){
1357
+            if(this.hemod_pinggu==pinggrlen[y].id){
1343
               lent[i].evaluate=pinggrlen[y].label
1358
               lent[i].evaluate=pinggrlen[y].label
1344
-              return lent[i].evaluate
1359
+              return lent
1345
             }
1360
             }
1346
           }
1361
           }
1347
         }
1362
         }
1366
       this.baocunqx=true
1381
       this.baocunqx=true
1367
       this.gsdayin=false
1382
       this.gsdayin=false
1368
     },
1383
     },
1384
+    dele_Cancel(){
1385
+      this.append=false
1386
+      this.append=true
1387
+      this.baocunqx=false
1388
+      this.dele_dialogVisible=false
1389
+    },
1369
     hemod_dele(){
1390
     hemod_dele(){
1370
       this.append=false
1391
       this.append=false
1371
       this.gsdayin=false
1392
       this.gsdayin=false
1372
       this.baocunqx=false
1393
       this.baocunqx=false
1373
       this.hemodadd_show=true
1394
       this.hemodadd_show=true
1374
       this.cancel_num=0
1395
       this.cancel_num=0
1396
+      this.dele_dialogVisible=true
1397
+    },
1398
+    hemod_click(row,column, event){
1399
+      this.dele_id=row.id
1400
+    },
1401
+    deleclick(){
1402
+      for(let i=0;i<this.history_hemod.length;i++){
1403
+        if(this.dele_id==this.history_hemod[i].id){
1404
+          this.history_hemod.splice(i,1)
1405
+        }
1406
+      }
1407
+      this.dele_dialogVisible=false
1375
     },
1408
     },
1376
     print_pingfen(){
1409
     print_pingfen(){
1377
       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: 20px;} .tables tbody td{height: 20px;padding:0 10px} .tables{font-size: 16px;}}'
1410
       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: 20px;} .tables tbody td{height: 20px;padding:0 10px} .tables{font-size: 16px;}}'
1446
   z-index: -1;
1479
   z-index: -1;
1447
 }
1480
 }
1448
 .tables {
1481
 .tables {
1449
-  
1482
+
1450
   thead th{
1483
   thead th{
1451
     text-align: center;
1484
     text-align: center;
1452
     height: 20px;
1485
     height: 20px;

+ 172 - 139
src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue View File

13
               </div>
13
               </div>
14
 
14
 
15
               <div>
15
               <div>
16
-                  <table class="table" id="table" border="1" style="width: 100%;">
17
-                      <thead>
18
-                          <tr>
19
-                          <th style="width:10%;">项目</th>
20
-                          <th style="width: 22.4%;">4分</th>
21
-                          <th style="width: 22.4%;">3分</th>
22
-                          <th style="width: 22.4%;">2分</th>
23
-                          <th style="width: 22.4%;">1分</th>
24
-                          </tr>
25
-                      </thead>
26
-                      <tbody>
27
-                          <tr class="bg_color">
28
-                            <td class="start">年龄</td>
29
-                            <td v-for="(item,index) in age" :key="index">
30
-                              <div class="jiange">
31
-                                <label><input name="ball" type="checkbox"  :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
32
-                              </div>
33
-                            </td>
34
-                          </tr>
35
-                          <tr>
36
-                            <td style="border-right: none;">
37
-                              <div class="bing">性别</div>
38
-                            </td>
39
-                            <td colspan="2" style="border-left: none;"></td>
40
-                            <td v-for="(item,index) in sex" :key="index">
41
-                              <div class="jiange">
42
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
43
-                              </div>
44
-                            </td>
45
-                          </tr>
46
-                          <tr class="bg_color">
47
-                            <td class="start">诊断</td>
48
-                            <td v-for="(item,index) in diagnosis" :key="index">
49
-                              <div class="jiange">
50
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
51
-                              </div>
52
-                            </td>
53
-                              
54
-                          </tr>
55
-                          <tr>
56
-                            <td style="border-right: none;">
57
-                                <div class="bing">认知障碍</div>
58
-                            </td>
59
-                            <td style="border-left: none;"></td>
60
-                            <td v-for="(item,index) in cognize" :key="index">
61
-                              <div class="jiange">
62
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
63
-                              </div>
64
-                            </td>
65
-                              
66
-                          </tr>
67
-                          <tr class="bg_color">
68
-                            <td class="start">环境因素</td>
69
-                            <td v-for="(item,index) in environment" :key="index">
70
-                              <div class="jiange">
71
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
72
-                              </div>
73
-                            </td>
16
+                <table class="table" id="table" border="1" style="width: 100%;">
17
+                  <thead>
18
+                    <tr>
19
+                    <th style="width:10%;">项目</th>
20
+                    <th style="width: 22.4%;">4分</th>
21
+                    <th style="width: 22.4%;">3分</th>
22
+                    <th style="width: 22.4%;">2分</th>
23
+                    <th style="width: 22.4%;">1分</th>
24
+                    </tr>
25
+                  </thead>
26
+                  <tbody>
27
+                    <tr class="bg_color">
28
+                      <td class="start">年龄</td>
29
+                      <td v-for="(item,index) in age" :key="index">
30
+                        <div class="jiange">
31
+                          <label><input name="ball" class="checked1" type="checkbox" :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
32
+                        </div>
33
+                      </td>
34
+                    </tr>
35
+                    <tr>
36
+                      <td style="border-right: none;">
37
+                        <div class="bing">性别</div>
38
+                      </td>
39
+                      <td colspan="2" style="border-left: none;"></td>
40
+                      <td v-for="(item,index) in sex" :key="index">
41
+                        <div class="jiange">
42
+                          <label><input name="ball" class="checked2" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
43
+                        </div>
44
+                      </td>
45
+                    </tr>
46
+                    <tr class="bg_color">
47
+                      <td class="start">诊断</td>
48
+                      <td v-for="(item,index) in diagnosis" :key="index">
49
+                        <div class="jiange">
50
+                          <label><input name="ball" class="checked3" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
51
+                        </div>
52
+                      </td>
74
 
53
 
75
-                          </tr>
76
-                          <tr>
77
-                            <td style="border-right: none;">
78
-                                <div class="bing">药物使用</div>
79
-                            </td>
80
-                            <td style="border-left: none;"></td>
81
-                            <td v-for="(item,index) in medicine" :key="index">
82
-                              <div class="jiange">
83
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
84
-                              </div>
85
-                            </td>
54
+                    </tr>
55
+                    <tr>
56
+                      <td style="border-right: none;">
57
+                          <div class="bing">认知障碍</div>
58
+                      </td>
59
+                      <td style="border-left: none;"></td>
60
+                      <td v-for="(item,index) in cognize" :key="index">
61
+                        <div class="jiange">
62
+                          <label><input name="ball" class="checked4" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
63
+                        </div>
64
+                      </td>
86
 
65
 
87
-                          </tr>
88
-                          <tr class="bg_color">
89
-                          <td colspan="5" style="height: 30px;"></td>
66
+                    </tr>
67
+                    <tr class="bg_color">
68
+                      <td class="start">环境因素</td>
69
+                      <td v-for="(item,index) in environment" :key="index">
70
+                        <div class="jiange">
71
+                          <label><input name="ball" class="checked5" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
72
+                        </div>
73
+                      </td>
90
 
74
 
91
-                          </tr>
92
-                          <tr>
93
-                          <td colspan="5">
94
-                            <div class="content_top" >
95
-                              <div>
96
-                                  <div class="bottoms">
97
-                                  <span>总分:</span>
98
-                                  <el-input v-model="pedia_Totalpoints" style="width: 100px;"></el-input>分
99
-                                  </div>
75
+                    </tr>
76
+                    <tr>
77
+                      <td style="border-right: none;">
78
+                          <div class="bing">药物使用</div>
79
+                      </td>
80
+                      <td style="border-left: none;"></td>
81
+                      <td v-for="(item,index) in medicine" :key="index">
82
+                        <div class="jiange">
83
+                          <label><input name="ball" class="checked6" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
84
+                        </div>
85
+                      </td>
100
 
86
 
101
-                                  <div class="bottoms">
102
-                                      <span>评估日期:</span>
103
-                                      <el-date-picker
104
-                                          v-model="value1"
105
-                                          type="date"
106
-                                          placeholder="选择日期"
107
-                                          :clearable="false"
108
-                                          style="width: 150px;">
109
-                                      </el-date-picker>
110
-                                  </div>
87
+                    </tr>
88
+                    <tr class="bg_color">
89
+                    <td colspan="5" style="height: 30px;"></td>
111
 
90
 
112
-                                  <div class="bottoms">
113
-                                      <span>评估人:</span>
114
-                                      <el-select v-model="value" placeholder="请选择" >
115
-                                          <el-option
116
-                                          v-for="item in options"
117
-                                          :key="item.value"
118
-                                          :label="item.label"
119
-                                          :value="item.value"
120
-                                          style="width:150px;">
121
-                                          </el-option>
122
-                                      </el-select>
123
-                                  </div>
91
+                    </tr>
92
+                    <tr>
93
+                    <td colspan="5">
94
+                      <div class="content_top" >
95
+                        <div>
96
+                            <div class="bottoms">
97
+                            <span>总分:</span>
98
+                            <el-input v-model="pedia_Totalpoints" style="width: 100px;"></el-input>分
99
+                            </div>
100
+
101
+                            <div class="bottoms">
102
+                                <span>评估日期:</span>
103
+                                <el-date-picker
104
+                                    v-model="value1"
105
+                                    type="date"
106
+                                    placeholder="选择日期"
107
+                                    :clearable="false"
108
+                                    style="width: 150px;">
109
+                                </el-date-picker>
110
+                            </div>
124
 
111
 
125
-                              </div>
126
-                              <div style="margin:5px 10px;">
127
-                                <el-button type="primary">确认</el-button>
128
-                              </div>
112
+                            <div class="bottoms">
113
+                                <span>评估人:</span>
114
+                                <el-select v-model="value" placeholder="请选择" >
115
+                                    <el-option
116
+                                    v-for="item in options"
117
+                                    :key="item.value"
118
+                                    :label="item.label"
119
+                                    :value="item.value"
120
+                                    style="width:150px;">
121
+                                    </el-option>
122
+                                </el-select>
129
                             </div>
123
                             </div>
130
-                          </td>
131
-                          </tr>
132
-                      </tbody>
133
-                  </table>
124
+
125
+                        </div>
126
+                        <div style="margin:5px 10px;">
127
+                          <el-button type="primary">确认</el-button>
128
+                        </div>
129
+                      </div>
130
+                    </td>
131
+                    </tr>
132
+                  </tbody>
133
+                </table>
134
 
134
 
135
               </div>
135
               </div>
136
 
136
 
184
               ],
184
               ],
185
       cognize:[{value:3,lable:'没有意识到不能自我行动'},
185
       cognize:[{value:3,lable:'没有意识到不能自我行动'},
186
                 {value:2,lable:'忘记有行动的限制'},
186
                 {value:2,lable:'忘记有行动的限制'},
187
-                {value:1,lable:'能自我辨识方位;昏迷、无反应'}], 
187
+                {value:1,lable:'能自我辨识方位;昏迷、无反应'}],
188
       environment:[{value:4,lable:'住院期间有跌倒坠床史:患儿移动或活动时需要使用辅助工具(拐杖、助行器、转运床、轮椅等);婴幼儿放置在无护栏的成人床'},
188
       environment:[{value:4,lable:'住院期间有跌倒坠床史:患儿移动或活动时需要使用辅助工具(拐杖、助行器、转运床、轮椅等);婴幼儿放置在无护栏的成人床'},
189
                 {value:3,lable:'近1个月有跌倒坠床史:婴幼儿放置在有护栏的成人床'},
189
                 {value:3,lable:'近1个月有跌倒坠床史:婴幼儿放置在有护栏的成人床'},
190
                 {value:2,lable:'近3个月有跌倒坠床史:婴幼儿放置在有护栏的婴儿床'},
190
                 {value:2,lable:'近3个月有跌倒坠床史:婴幼儿放置在有护栏的婴儿床'},
191
-                {value:1,lable:'>3个月有跌倒坠床史/无跌倒坠床史'}],  
191
+                {value:1,lable:'>3个月有跌倒坠床史/无跌倒坠床史'}],
192
       medicine:[{value:3,lable:'联合用药:镇静剂、安眠药、巴比妥类药、吩噻嗪类药、抗抑郁药、利尿药、降压药、强心剂、麻醉药、化疗药、散瞳剂'},
192
       medicine:[{value:3,lable:'联合用药:镇静剂、安眠药、巴比妥类药、吩噻嗪类药、抗抑郁药、利尿药、降压药、强心剂、麻醉药、化疗药、散瞳剂'},
193
                 {value:2,lable:'以上其中一种药物'},
193
                 {value:2,lable:'以上其中一种药物'},
194
-                {value:1,lable:'其他药物/没有'}],                     
194
+                {value:1,lable:'其他药物/没有'}],
195
       checked:'',
195
       checked:'',
196
       checkList:[],
196
       checkList:[],
197
       dialogVisible:false,
197
       dialogVisible:false,
198
       text:'',
198
       text:'',
199
+      num:1
199
     }
200
     }
200
   },
201
   },
201
   methods:{
202
   methods:{
202
     ageChange(e,val){
203
     ageChange(e,val){
203
-      console.log('22222',val);
204
-      if(e.target.checked == true){
204
+      console.log('22222',e,val);
205
+      const checkboxs=document.getElementsByClassName('checked1')
206
+     for(let i=0;i<checkboxs.length;i++){
207
+      if(val==checkboxs[i].value){
205
         this.agevalue = val
208
         this.agevalue = val
209
+        checkboxs[i].value
210
+        checkboxs[i].checked=true
206
       }else{
211
       }else{
207
-        this.agevalue = this.agevalue - val
212
+        checkboxs[i].checked = false
208
       }
213
       }
214
+     }
209
     },
215
     },
210
     sexChange(e,val){
216
     sexChange(e,val){
211
-      if(e.target.checked == true){
212
-        this.sexvalue = val
213
-      }else{
214
-        this.sexvalue =  this.sexvalue - val
215
-      }
217
+      const checkboxs=document.getElementsByClassName('checked2')
218
+      for(let i=0;i<checkboxs.length;i++){
219
+        if(val==checkboxs[i].value ){
220
+          console.log('vvvv',val,'bbbb',e.target.checked);
221
+          this.sexvalue = val
222
+
223
+          checkboxs[i].checked=true
224
+
225
+        }else{
226
+          checkboxs[i].checked = false
227
+        }
228
+     }
216
     },
229
     },
217
     diagnosischange(e,val){
230
     diagnosischange(e,val){
218
-      if(e.target.checked == true){
219
-        this.diagnosis_val = val
220
-      }else{
221
-        this.diagnosis_val =  this.diagnosis_val - val
222
-      }
231
+      const checkboxs=document.getElementsByClassName('checked3')
232
+      for(let i=0;i<checkboxs.length;i++){
233
+        if(val==checkboxs[i].value ){
234
+          console.log('vvvv',val,'bbbb',e.target.checked);
235
+          this.diagnosis_val = val
236
+          checkboxs[i].checked=true
237
+        }else{
238
+          checkboxs[i].checked = false
239
+        }
240
+     }
223
     },
241
     },
224
     cognizeChange(e,val){
242
     cognizeChange(e,val){
225
-      if(e.target.checked == true){
226
-        this.cognize_val = val
227
-      }else{
228
-        this.cognize_val =  this.cognize_val - val
243
+      const checkboxs=document.getElementsByClassName('checked4')
244
+      for(let i=0;i<checkboxs.length;i++){
245
+        if(val==checkboxs[i].value ){
246
+          console.log('vvvv',val,'bbbb',e.target.checked);
247
+          this.cognize_val = val
248
+          checkboxs[i].checked=true
249
+        }else{
250
+          checkboxs[i].checked = false
251
+        }
229
       }
252
       }
230
     },
253
     },
231
     environChange(e,val){
254
     environChange(e,val){
232
-      if(e.target.checked == true){
233
-        this.environment_val = val
234
-      }else{
235
-        this.environment_val =  this.environment_val - val
255
+      const checkboxs=document.getElementsByClassName('checked5')
256
+      for(let i=0;i<checkboxs.length;i++){
257
+        if(val==checkboxs[i].value ){
258
+          console.log('vvvv',val,'bbbb',e.target.checked);
259
+          this.environment_val = val
260
+          checkboxs[i].checked=true
261
+        }else{
262
+          checkboxs[i].checked = false
263
+        }
236
       }
264
       }
237
     },
265
     },
238
     medicineChange(e,val){
266
     medicineChange(e,val){
239
-      if(e.target.checked == true){
240
-        this.medicine_val = val
241
-      }else{
242
-        this.medicine_val =  this.medicine_val - val
267
+      const checkboxs=document.getElementsByClassName('checked6')
268
+      for(let i=0;i<checkboxs.length;i++){
269
+        if(val==checkboxs[i].value ){
270
+          console.log('vvvv',val,'bbbb',e.target.checked);
271
+          this.medicine_val = val
272
+          checkboxs[i].checked=true
273
+        }else{
274
+          checkboxs[i].checked = false
275
+        }
243
       }
276
       }
244
     },
277
     },
245
     // 历史评估
278
     // 历史评估

+ 45 - 19
src/xt_pages/user/evaluationtool/pressuresore.vue View File

50
                       15~18分为低危;<br>
50
                       15~18分为低危;<br>
51
                       13~14分为中危;<br>
51
                       13~14分为中危;<br>
52
                       10~12分为高危;<br>
52
                       10~12分为高危;<br>
53
-                      ≤9分为极高危 
53
+                      ≤9分为极高危
54
                     </div>
54
                     </div>
55
                   </td>
55
                   </td>
56
                   <td rowspan="6" style="position: relative;vertical-align: top;">
56
                   <td rowspan="6" style="position: relative;vertical-align: top;">
72
                     <div class="jiange">
72
                     <div class="jiange">
73
                       <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
73
                       <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
74
                     </div>
74
                     </div>
75
-                    <div class="tianjia">
75
+                    <div class="tianjia" @click="add_press=true">
76
                       <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
76
                       <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
77
                       +添加
77
                       +添加
78
                     </div>
78
                     </div>
188
                   <th>D</th>
188
                   <th>D</th>
189
                   <th>E</th>
189
                   <th>E</th>
190
                   <th>F</th>
190
                   <th>F</th>
191
-                </tr> 
191
+                </tr>
192
               </thead>
192
               </thead>
193
               <tbody>
193
               <tbody>
194
                 <tr>
194
                 <tr>
202
                     </el-date-picker>
202
                     </el-date-picker>
203
                   </td>
203
                   </td>
204
                   <td class="start">
204
                   <td class="start">
205
-                    <el-input v-model="input" style="width:100px;"></el-input>
205
+                    <el-input v-model="ganzhi" style="width:80px;"></el-input>
206
                   </td>
206
                   </td>
207
                   <td class="start">
207
                   <td class="start">
208
-                    <el-input v-model="input" style="width:100px"></el-input>
208
+                    <el-input v-model="shidu" style="width:80px"></el-input>
209
                   </td>
209
                   </td>
210
                   <td class="start">
210
                   <td class="start">
211
-                    <el-input v-model="input" style="width:100px"></el-input>
211
+                    <el-input v-model="huodong" style="width:80px"></el-input>
212
                   </td>
212
                   </td>
213
                   <td class="start">
213
                   <td class="start">
214
-                    <el-input v-model="input" style="width:100px"></el-input>
214
+                    <el-input v-model="yidong" style="width:80px"></el-input>
215
                   </td>
215
                   </td>
216
                   <td class="start">
216
                   <td class="start">
217
-                    <el-input v-model="input" style="width:100px"></el-input>
217
+                    <el-input v-model="yingyang" style="width:80px"></el-input>
218
                   </td>
218
                   </td>
219
                   <td class="start">
219
                   <td class="start">
220
-                    <el-input v-model="input" style="width:100px"></el-input>
220
+                    <el-input v-model="mocha" style="width:80px"></el-input>
221
                   </td>
221
                   </td>
222
                   <td class="start">
222
                   <td class="start">
223
-                    <el-input v-model="input" style="width:100px"></el-input>
223
+                    <el-input v-model="mark" style="width:70px"></el-input>
224
                   </td>
224
                   </td>
225
                   <td class="start">
225
                   <td class="start">
226
-                    <el-select v-model="value" placeholder="请选择" >
226
+                    <el-select v-model="value" placeholder="请选择" style="width:120px;">
227
                         <el-option
227
                         <el-option
228
                           v-for="item in options"
228
                           v-for="item in options"
229
                           :key="item.value"
229
                           :key="item.value"
230
                           :label="item.label"
230
                           :label="item.label"
231
                           :value="item.value"
231
                           :value="item.value"
232
-                          style="width:150px;">
232
+                          >
233
                         </el-option>
233
                         </el-option>
234
                     </el-select>
234
                     </el-select>
235
                   </td>
235
                   </td>
264
             </div>
264
             </div>
265
             <div class="zhuangui">
265
             <div class="zhuangui">
266
                 <p style="display: inline-block; margin-right: 30px;">
266
                 <p style="display: inline-block; margin-right: 30px;">
267
-                    评估人签字: 
267
+                    评估人签字:
268
                     <el-input v-model="input" style="width:120px;"></el-input>
268
                     <el-input v-model="input" style="width:120px;"></el-input>
269
                 </p>
269
                 </p>
270
                 <p style="display: inline-block;">
270
                 <p style="display: inline-block;">
280
             <div class="content_top">
280
             <div class="content_top">
281
               <div class="zhuangui">
281
               <div class="zhuangui">
282
                 <p style="display: inline-block; margin-right: 30px;">
282
                 <p style="display: inline-block; margin-right: 30px;">
283
-                    护士长签字: 
283
+                    护士长签字:
284
                     <el-select v-model="value" placeholder="请选择" style="width: 120px;">
284
                     <el-select v-model="value" placeholder="请选择" style="width: 120px;">
285
                         <el-option
285
                         <el-option
286
                         v-for="item in options"
286
                         v-for="item in options"
318
 
318
 
319
         </div>
319
         </div>
320
       </div>
320
       </div>
321
-        
321
+      <!-- 添加弹窗页面 -->
322
+      <el-dialog
323
+        title="增加护理措施"
324
+        :visible.sync="add_press"
325
+        width="30%"
326
+      >
327
+        <span>
328
+          护理措施:
329
+          <input type="text" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;">
330
+        </span>
331
+        <span slot="footer" class="dialog-footer">
332
+          <el-button @click="add_press = false">取 消</el-button>
333
+          <el-button type="primary" @click="add_press = false">确 定</el-button>
334
+        </span>
335
+      </el-dialog>
322
     </div>
336
     </div>
323
 </template>
337
 </template>
324
 <script>
338
 <script>
335
       input:'',
349
       input:'',
336
       options:[],
350
       options:[],
337
       value:'',
351
       value:'',
338
-      zhuangui:['出院','死亡','其他']
352
+      ganzhi:null,
353
+      shidu:null,
354
+      huodong:null,
355
+      yidong:null,
356
+      yingyang:null,
357
+      mocha:null,
358
+      zhuangui:['出院','死亡','其他'],
359
+      add_press:false,
339
     }
360
     }
340
    },
361
    },
341
    methods:{
362
    methods:{
342
     yachaunghistory(){
363
     yachaunghistory(){
343
       this.$router.push({path: '/patients/Pressure_history'})
364
       this.$router.push({path: '/patients/Pressure_history'})
344
     }
365
     }
366
+   },
367
+   computed:{
368
+    mark(){
369
+      return this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
370
+    }
345
    }
371
    }
346
 }
372
 }
347
 </script>
373
 </script>
348
 <style lang="scss" scoped>
374
 <style lang="scss" scoped>
349
   .content_top{
375
   .content_top{
350
     display: flex;
376
     display: flex;
351
-    justify-content: space-between; 
377
+    justify-content: space-between;
352
   }
378
   }
353
   .table{
379
   .table{
354
         border: 1px solid #DCDFE6;
380
         border: 1px solid #DCDFE6;
364
         tbody td{
390
         tbody td{
365
            height: 40px;
391
            height: 40px;
366
            padding: 5px;
392
            padding: 5px;
367
-           
393
+
368
         }
394
         }
369
         .start{
395
         .start{
370
           vertical-align: top;
396
           vertical-align: top;
401
     .zhuangui{
427
     .zhuangui{
402
         margin-top: 10px;
428
         margin-top: 10px;
403
     }
429
     }
404
-</style>
430
+</style>

+ 110 - 24
src/xt_pages/user/evaluationtool/pruritusAssessment.vue View File

24
               <tr>
24
               <tr>
25
                 <td class="start">痒的部位</td>
25
                 <td class="start">痒的部位</td>
26
                 <td>
26
                 <td>
27
-                    <div class="jiange">
28
-                        <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
29
-                            <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
30
-                        </span> 
31
-                        <label @change="handleCheckedCitiesChange"><input type="checkbox" name="ball" value="其他" />
32
-                            &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
33
-                        </label>
34
-                    </div>
27
+                  <div class="jiange">
28
+                    <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
29
+                        <label><input type="checkbox" class="check" name="ball" :value="item" />&nbsp;{{ item }}</label>
30
+                    </span>
31
+                    <label @change="handleCheckedCitiesChange"><input type="checkbox" class="check" name="ball" value="其他" />
32
+                        &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
33
+                    </label>
34
+                    <!-- quan_change -->
35
+                    <label @change="handleCheckedCitiesChange">
36
+                      <input type="checkbox" class="check" name="ball" value="全身" />&nbsp;全身
37
+                    </label>
38
+                  </div>
35
                 </td>
39
                 </td>
36
                 <td class="start">{{checked_points}}</td>
40
                 <td class="start">{{checked_points}}</td>
37
                 <td class="saoyang">瘙痒部位:计分范围1~3分一个部位瘙痒计1分,最多得3分,选全身计3分</td>
41
                 <td class="saoyang">瘙痒部位:计分范围1~3分一个部位瘙痒计1分,最多得3分,选全身计3分</td>
44
                             <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
48
                             <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
45
                         </el-radio-group>
49
                         </el-radio-group>
46
                     </div>
50
                     </div>
47
-                </td> 
51
+                </td>
48
                 <td class="start">{{radio1_points}}</td>
52
                 <td class="start">{{radio1_points}}</td>
49
-                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>                          
53
+                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>
50
               </tr>
54
               </tr>
51
               <tr>
55
               <tr>
52
                 <td class="start">痒的频率</td>
56
                 <td class="start">痒的频率</td>
112
           <div style="margin:5px 10px;">
116
           <div style="margin:5px 10px;">
113
               <el-button type="primary">确认</el-button>
117
               <el-button type="primary">确认</el-button>
114
           </div>
118
           </div>
115
-        </div>  
119
+        </div>
116
       </div>
120
       </div>
117
     </div>
121
     </div>
118
-      
122
+
119
   </div>
123
   </div>
120
 </template>
124
 </template>
121
 <script>
125
 <script>
138
       radio3_points:0,
142
       radio3_points:0,
139
       checked_points:0,
143
       checked_points:0,
140
       // pruritus_Totalpoints:0,
144
       // pruritus_Totalpoints:0,
141
-      buwei:['躯体','上肢','下肢','头皮','全身'],
145
+      buwei:['躯体','上肢','下肢','头皮'],
142
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
146
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
143
       pinlv:['很少时候(1)','较少时候(2)','较多时候(3)','很多时候(4)','一直持续(5)'],
147
       pinlv:['很少时候(1)','较少时候(2)','较多时候(3)','很多时候(4)','一直持续(5)'],
144
       yingxiang:['无影响(0)','一夜痒醒一次(2)','一夜痒醒两次(4)','一夜痒醒三次(6)'],
148
       yingxiang:['无影响(0)','一夜痒醒一次(2)','一夜痒醒两次(4)','一夜痒醒三次(6)'],
149
   },
153
   },
150
   methods:{
154
   methods:{
151
     handleCheckedCitiesChange(e){
155
     handleCheckedCitiesChange(e){
152
-      this.ball = e.target.value
153
-      console.log('1111111',this.ball)
156
+      const ball = e.target.value
157
+      // const checkboxs=document.getElementsByClassName('checkbox1')
158
+      const checkbox2=document.getElementsByClassName('check')
159
+      // if(checkboxs[0].checked==true){
160
+      //   // if(e.target.value == '全身'){
161
+      //     this.checked_points = 3
162
+      //   // }else{
163
+      //   //   var checked =1
164
+      //   //   this.checked_points = this.checked_points + checked
165
+      //   // }
166
+      // }else{
167
+      //   // if(e.target.value == '全身'){
168
+      //     this.checked_points = 0
169
+      //   // }else{
170
+      //   //   var checked =1
171
+      //   //   this.checked_points = this.checked_points - checked
172
+      //   // }
173
+      // }
174
+      // for(let i=0;i<checkbox2.length;i++){
175
+      //   if(ball=='全身'){
176
+      //     if(ball==checkbox2[i].value){
177
+      //       console.log('1111',this.checked_points);
178
+      //       checkbox2[i].checked=true
179
+      //       this.checked_points = 3
180
+      //     }else{
181
+      //       console.log('2222',this.checked_points);
182
+      //       checkbox2[i].checked=false
183
+      //     }
184
+      //   }else{
185
+      //     if(checkbox2[i].value=='全身'){
186
+      //       console.log('3333',this.checked_points);
187
+      //       this.checked_points=0
188
+      //       checkbox2[i].checked=false
189
+      //     }else{
190
+      //       if(checkbox2[i].value==ball){
191
+      //         console.log('4444',this.checked_points);
192
+      //         var checked =1
193
+      //         e.target.checked=true
194
+      //         this.checked_points = this.checked_points + checked
195
+      //         // return this.checked_points
196
+      //       }
197
+
198
+      //     }
199
+
200
+      //   }
201
+      //   // if(checkboxs[0].checked==true){
202
+      //   //   this.checked_points = 3
203
+      //   //   checkbox2[i].checked=false
204
+      //   // }else{
205
+      //   //   if(ball==checkbox2[i].value){
206
+      //   //     console.log('2222',checkbox2[1].value);
207
+      //   //     checkboxs[0].checked=false
208
+      //   //     checkbox2[i].checked=true
209
+      //   //     var checked =1
210
+      //   //     this.checked_points = this.checked_points + checked
211
+      //   //   }
212
+      //   // }
213
+      // }
214
+      // console.log('1111111',ball)
215
+      // for(let i=0;i<checkbox2.length;i++){
216
+      //   if(ball=='全身'){
217
+      //     checkboxs[0].checked=true
218
+      //     checkbox2[i].checked=false
219
+      //     this.checked_points = 3
220
+      //   }else{
221
+      //     var checked =1
222
+      //     checkboxs[0].checked=false
223
+      //     e.target.checked=true
224
+      //     this.checked_points = this.checked_points + checked
225
+      //   }
226
+      // }
227
+
228
+      // if(ball=='全身'){
229
+      //   checkboxs[0].checked=true
230
+      // }else{
231
+      //   checkboxs[0].checked=false
232
+      // }
233
+
154
       if(e.target.checked==true){
234
       if(e.target.checked==true){
155
         if(e.target.value == '全身'){
235
         if(e.target.value == '全身'){
156
           this.checked_points = 3
236
           this.checked_points = 3
157
-          // this.pruritus_Totalpoints=this.pruritus_Totalpoints + this.checked_points
158
         }else{
237
         }else{
159
-          var checked =1
160
-          this.checked_points = this.checked_points + checked
161
-          // this.pruritus_Totalpoints=this.pruritus_Totalpoints + checked
238
+          // if(this.checked_points<3){
239
+            var checked =1
240
+            this.checked_points = this.checked_points + checked
241
+          // }else{
242
+          //   this.checked_points = 3
243
+          // }
162
         }
244
         }
163
       }else{
245
       }else{
164
         if(e.target.value == '全身'){
246
         if(e.target.value == '全身'){
165
           this.checked_points = 0
247
           this.checked_points = 0
166
-          // this.pruritus_Totalpoints=this.pruritus_Totalpoints - 3
167
         }else{
248
         }else{
168
           var checked =1
249
           var checked =1
169
           this.checked_points = this.checked_points - checked
250
           this.checked_points = this.checked_points - checked
170
-          // this.pruritus_Totalpoints=this.pruritus_Totalpoints - checked
171
         }
251
         }
172
       }
252
       }
173
     },
253
     },
254
+    quan_change(e){
255
+      const ball=e.target.value
256
+      if(ball=='全身'){
257
+
258
+      }
259
+    },
174
     radiochecked(e){
260
     radiochecked(e){
175
       const bal=e
261
       const bal=e
176
       const jiequ =(bal.split('(')[1].split(')')[0]) * 1
262
       const jiequ =(bal.split('(')[1].split(')')[0]) * 1
198
 <style lang="scss" scoped>
284
 <style lang="scss" scoped>
199
     .content_top{
285
     .content_top{
200
       display: flex;
286
       display: flex;
201
-      justify-content: space-between; 
287
+      justify-content: space-between;
202
     }
288
     }
203
     .table{
289
     .table{
204
         border: 1px solid #DCDFE6;
290
         border: 1px solid #DCDFE6;
241
     .bottoms{
327
     .bottoms{
242
         display: inline-block;
328
         display: inline-block;
243
         margin-left: 10px;
329
         margin-left: 10px;
244
-        margin-top: 5px; 
330
+        margin-top: 5px;
245
     }
331
     }
246
-</style>
332
+</style>

+ 93 - 35
src/xt_pages/user/history/Children_history.vue View File

58
             show-overflow-tooltip>
58
             show-overflow-tooltip>
59
             <template slot-scope="scope">
59
             <template slot-scope="scope">
60
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
60
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
61
-              <el-button type="primary" icon="el-icon-delete"></el-button>
61
+              <el-button type="primary" icon="el-icon-delete" @click="deletes(scope.row)"></el-button>
62
             </template>
62
             </template>
63
           </el-table-column>
63
           </el-table-column>
64
         </el-table>
64
         </el-table>
230
             <td class="start">年龄</td>
230
             <td class="start">年龄</td>
231
             <td v-for="(item,index) in age" :key="index">
231
             <td v-for="(item,index) in age" :key="index">
232
               <div class="jiange">
232
               <div class="jiange">
233
-                <label><input name="ball" type="checkbox"  :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
233
+                <label><input name="ball" class="checked1" type="checkbox" :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
234
               </div>
234
               </div>
235
             </td>
235
             </td>
236
           </tr>
236
           </tr>
241
             <td colspan="2" style="border-left: none;"></td>
241
             <td colspan="2" style="border-left: none;"></td>
242
             <td v-for="(item,index) in sex" :key="index">
242
             <td v-for="(item,index) in sex" :key="index">
243
               <div class="jiange">
243
               <div class="jiange">
244
-                <label><input name="ball" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
244
+                <label><input name="ball" class="checked2" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
245
               </div>
245
               </div>
246
             </td>
246
             </td>
247
           </tr>
247
           </tr>
249
             <td class="start">诊断</td>
249
             <td class="start">诊断</td>
250
             <td v-for="(item,index) in diagnosis" :key="index">
250
             <td v-for="(item,index) in diagnosis" :key="index">
251
               <div class="jiange">
251
               <div class="jiange">
252
-                <label><input name="ball" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
252
+                <label><input name="ball" class="checked3" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
253
               </div>
253
               </div>
254
             </td>
254
             </td>
255
 
255
 
261
             <td style="border-left: none;"></td>
261
             <td style="border-left: none;"></td>
262
             <td v-for="(item,index) in cognize" :key="index">
262
             <td v-for="(item,index) in cognize" :key="index">
263
               <div class="jiange">
263
               <div class="jiange">
264
-                <label><input name="ball" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
264
+                <label><input name="ball" class="checked4" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
265
               </div>
265
               </div>
266
             </td>
266
             </td>
267
 
267
 
270
             <td class="start">环境因素</td>
270
             <td class="start">环境因素</td>
271
             <td v-for="(item,index) in environment" :key="index">
271
             <td v-for="(item,index) in environment" :key="index">
272
               <div class="jiange">
272
               <div class="jiange">
273
-                <label><input name="ball" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
273
+                <label><input name="ball" class="checked5" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
274
               </div>
274
               </div>
275
             </td>
275
             </td>
276
 
276
 
282
             <td style="border-left: none;"></td>
282
             <td style="border-left: none;"></td>
283
             <td v-for="(item,index) in medicine" :key="index">
283
             <td v-for="(item,index) in medicine" :key="index">
284
               <div class="jiange">
284
               <div class="jiange">
285
-                <label><input name="ball" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
285
+                <label><input name="ball" class="checked6" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
286
               </div>
286
               </div>
287
             </td>
287
             </td>
288
 
288
 
331
         </tbody>
331
         </tbody>
332
       </table>
332
       </table>
333
     </el-dialog>
333
     </el-dialog>
334
+     <!--删除 -->
335
+     <el-dialog
336
+      title="提示"
337
+      :visible.sync="delete_centerDialogVisible"
338
+      width="20%"
339
+      center>
340
+      <span>是否删除该记录</span>
341
+      <span slot="footer" class="dialog-footer">
342
+        <el-button @click="delete_centerDialogVisible=false">取 消</el-button>
343
+        <el-button type="primary" @click="delete_childer">确 定</el-button>
344
+      </span>
345
+    </el-dialog>
334
   </div>
346
   </div>
335
 </template>
347
 </template>
336
 <script>
348
 <script>
338
 export default{
350
 export default{
339
   data(){
351
   data(){
340
     return{
352
     return{
341
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
353
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
342
       multipleSelection:[],
354
       multipleSelection:[],
343
       dialogVisible:false,
355
       dialogVisible:false,
344
       mingxi_dialogVisible:false,
356
       mingxi_dialogVisible:false,
345
       editor_dialogVisible:false,
357
       editor_dialogVisible:false,
358
+      delete_centerDialogVisible:false,
346
 
359
 
360
+      row:'',
347
       value1:'',
361
       value1:'',
348
       value:'',
362
       value:'',
349
       options:[],
363
       options:[],
374
       checked:'',
388
       checked:'',
375
       checkList:[],
389
       checkList:[],
376
       text:'',
390
       text:'',
391
+
377
     }
392
     }
378
   },
393
   },
379
   methods:{
394
   methods:{
400
     open_editor(row){
415
     open_editor(row){
401
       this.editor_dialogVisible =true
416
       this.editor_dialogVisible =true
402
     },
417
     },
403
-
418
+    deletes(row){
419
+      this.row=row.id
420
+      this.delete_centerDialogVisible = true
421
+    },
422
+    delete_childer(){
423
+      for(let i=0;i<this.tableData.length;i++){
424
+        if(this.row==this.tableData[i].id){
425
+          this.tableData.splice(i,1)
426
+        }
427
+      }
428
+      this.delete_centerDialogVisible=false
429
+    },
404
     print_pingfen(id){
430
     print_pingfen(id){
405
       this.dialogVisible=false
431
       this.dialogVisible=false
406
       this.mingxi_dialogVisible=false
432
       this.mingxi_dialogVisible=false
428
     },
454
     },
429
 
455
 
430
     ageChange(e,val){
456
     ageChange(e,val){
431
-      console.log('22222',val);
432
-      if(e.target.checked == true){
457
+      console.log('22222',e,val);
458
+      const checkboxs=document.getElementsByClassName('checked1')
459
+     for(let i=0;i<checkboxs.length;i++){
460
+      if(val==checkboxs[i].value){
433
         this.agevalue = val
461
         this.agevalue = val
462
+        checkboxs[i].value
463
+        checkboxs[i].checked=true
434
       }else{
464
       }else{
435
-        this.agevalue = this.agevalue - val
465
+        checkboxs[i].checked = false
436
       }
466
       }
467
+     }
437
     },
468
     },
438
     sexChange(e,val){
469
     sexChange(e,val){
439
-      if(e.target.checked == true){
440
-        this.sexvalue = val
441
-      }else{
442
-        this.sexvalue =  this.sexvalue - val
443
-      }
470
+      const checkboxs=document.getElementsByClassName('checked2')
471
+      for(let i=0;i<checkboxs.length;i++){
472
+        if(val==checkboxs[i].value ){
473
+          console.log('vvvv',val,'bbbb',e.target.checked);
474
+          this.sexvalue = val
475
+
476
+          checkboxs[i].checked=true
477
+
478
+        }else{
479
+          checkboxs[i].checked = false
480
+        }
481
+     }
444
     },
482
     },
445
     diagnosischange(e,val){
483
     diagnosischange(e,val){
446
-      if(e.target.checked == true){
447
-        this.diagnosis_val = val
448
-      }else{
449
-        this.diagnosis_val =  this.diagnosis_val - val
450
-      }
484
+      const checkboxs=document.getElementsByClassName('checked3')
485
+      for(let i=0;i<checkboxs.length;i++){
486
+        if(val==checkboxs[i].value ){
487
+          console.log('vvvv',val,'bbbb',e.target.checked);
488
+          this.diagnosis_val = val
489
+          checkboxs[i].checked=true
490
+        }else{
491
+          checkboxs[i].checked = false
492
+        }
493
+     }
451
     },
494
     },
452
     cognizeChange(e,val){
495
     cognizeChange(e,val){
453
-      if(e.target.checked == true){
454
-        this.cognize_val = val
455
-      }else{
456
-        this.cognize_val =  this.cognize_val - val
496
+      const checkboxs=document.getElementsByClassName('checked4')
497
+      for(let i=0;i<checkboxs.length;i++){
498
+        if(val==checkboxs[i].value ){
499
+          console.log('vvvv',val,'bbbb',e.target.checked);
500
+          this.cognize_val = val
501
+          checkboxs[i].checked=true
502
+        }else{
503
+          checkboxs[i].checked = false
504
+        }
457
       }
505
       }
458
     },
506
     },
459
     environChange(e,val){
507
     environChange(e,val){
460
-      if(e.target.checked == true){
461
-        this.environment_val = val
462
-      }else{
463
-        this.environment_val =  this.environment_val - val
508
+      const checkboxs=document.getElementsByClassName('checked5')
509
+      for(let i=0;i<checkboxs.length;i++){
510
+        if(val==checkboxs[i].value ){
511
+          console.log('vvvv',val,'bbbb',e.target.checked);
512
+          this.environment_val = val
513
+          checkboxs[i].checked=true
514
+        }else{
515
+          checkboxs[i].checked = false
516
+        }
464
       }
517
       }
465
     },
518
     },
466
     medicineChange(e,val){
519
     medicineChange(e,val){
467
-      if(e.target.checked == true){
468
-        this.medicine_val = val
469
-      }else{
470
-        this.medicine_val =  this.medicine_val - val
520
+      const checkboxs=document.getElementsByClassName('checked6')
521
+      for(let i=0;i<checkboxs.length;i++){
522
+        if(val==checkboxs[i].value ){
523
+          console.log('vvvv',val,'bbbb',e.target.checked);
524
+          this.medicine_val = val
525
+          checkboxs[i].checked=true
526
+        }else{
527
+          checkboxs[i].checked = false
528
+        }
471
       }
529
       }
472
     },
530
     },
473
   },
531
   },
474
   computed:{
532
   computed:{
475
     pedia_Totalpoints(){
533
     pedia_Totalpoints(){
476
       return this.agevalue + this.sexvalue + this.diagnosis_val +this.cognize_val + this.environment_val + this.medicine_val
534
       return this.agevalue + this.sexvalue + this.diagnosis_val +this.cognize_val + this.environment_val + this.medicine_val
477
-    }
535
+    },
478
   }
536
   }
479
 }
537
 }
480
 </script>
538
 </script>

+ 65 - 12
src/xt_pages/user/history/Pressure_history.vue View File

94
             show-overflow-tooltip>
94
             show-overflow-tooltip>
95
             <template slot-scope="scope">
95
             <template slot-scope="scope">
96
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
96
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
97
-              <el-button type="primary" icon="el-icon-delete"></el-button>
97
+              <el-button type="primary" icon="el-icon-delete" @click="open_delete(scope.row)"></el-button>
98
             </template>
98
             </template>
99
           </el-table-column>
99
           </el-table-column>
100
         </el-table>
100
         </el-table>
431
                   <div class="jiange">
431
                   <div class="jiange">
432
                     <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
432
                     <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
433
                   </div>
433
                   </div>
434
-                  <div class="tianjia">
434
+                  <div class="tianjia" @click="add_press=true">
435
                     <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
435
                     <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
436
                     +添加
436
                     +添加
437
                   </div>
437
                   </div>
561
                   </el-date-picker>
561
                   </el-date-picker>
562
                 </td>
562
                 </td>
563
                 <td class="start">
563
                 <td class="start">
564
-                  <el-input v-model="input" style="width:80px;"></el-input>
564
+                    <el-input v-model="ganzhi" style="width:80px;"></el-input>
565
                 </td>
565
                 </td>
566
                 <td class="start">
566
                 <td class="start">
567
-                  <el-input v-model="input" style="width:80px"></el-input>
567
+                  <el-input v-model="shidu" style="width:80px"></el-input>
568
                 </td>
568
                 </td>
569
                 <td class="start">
569
                 <td class="start">
570
-                  <el-input v-model="input" style="width:80px"></el-input>
570
+                  <el-input v-model="huodong" style="width:80px"></el-input>
571
                 </td>
571
                 </td>
572
                 <td class="start">
572
                 <td class="start">
573
-                  <el-input v-model="input" style="width:80px"></el-input>
573
+                  <el-input v-model="yidong" style="width:80px"></el-input>
574
                 </td>
574
                 </td>
575
                 <td class="start">
575
                 <td class="start">
576
-                  <el-input v-model="input" style="width:80px"></el-input>
576
+                  <el-input v-model="yingyang" style="width:80px"></el-input>
577
                 </td>
577
                 </td>
578
                 <td class="start">
578
                 <td class="start">
579
-                  <el-input v-model="input" style="width:80px"></el-input>
579
+                  <el-input v-model="mocha" style="width:80px"></el-input>
580
                 </td>
580
                 </td>
581
                 <td class="start">
581
                 <td class="start">
582
-                  <el-input v-model="input" style="width:80px"></el-input>
582
+                  <el-input v-model="mark" style="width:70px"></el-input>
583
                 </td>
583
                 </td>
584
                 <td class="start">
584
                 <td class="start">
585
-                  <el-select v-model="value" placeholder="请选择" >
585
+                  <el-select v-model="value" placeholder="请选择"  style="width:120px;">
586
                       <el-option
586
                       <el-option
587
                         v-for="item in options"
587
                         v-for="item in options"
588
                         :key="item.value"
588
                         :key="item.value"
589
                         :label="item.label"
589
                         :label="item.label"
590
                         :value="item.value"
590
                         :value="item.value"
591
-                        style="width:150px;">
591
+                       >
592
                       </el-option>
592
                       </el-option>
593
                   </el-select>
593
                   </el-select>
594
                 </td>
594
                 </td>
666
           </div>
666
           </div>
667
       </div>
667
       </div>
668
     </el-dialog>
668
     </el-dialog>
669
+    <!-- 编辑添加弹窗页面 -->
670
+    <el-dialog
671
+        title="增加护理措施"
672
+        :visible.sync="add_press"
673
+        width="30%"
674
+      >
675
+        <span>
676
+          护理措施:
677
+          <input type="text" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;">
678
+        </span>
679
+        <span slot="footer" class="dialog-footer">
680
+          <el-button @click="add_press = false">取 消</el-button>
681
+          <el-button type="primary" @click="add_press = false">确 定</el-button>
682
+        </span>
683
+    </el-dialog>
684
+    <!--删除 -->
685
+    <el-dialog
686
+      title="提示"
687
+      :visible.sync="delete_centerDialogVisible"
688
+      width="20%"
689
+      center>
690
+      <span>是否删除该记录</span>
691
+      <span slot="footer" class="dialog-footer">
692
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
693
+        <el-button type="primary" @click="delete_press">确 定</el-button>
694
+      </span>
695
+    </el-dialog>
669
   </div>
696
   </div>
670
 </template>
697
 </template>
671
 <script>
698
 <script>
673
 export default{
700
 export default{
674
   data(){
701
   data(){
675
     return{
702
     return{
676
-      tableData:[{time:'2023-9-27',ganzhi:'2',shidu:'2',huodong:'3',yidong:'4',yingyang:'1',mocha:'3',mark:'15',evaluate:'千亦雪'}],
703
+      tableData:[{id:1,time:'2023-9-27',ganzhi:'2',shidu:'2',huodong:'3',yidong:'4',yingyang:'1',mocha:'3',mark:'15',evaluate:'千亦雪'}],
677
       multipleSelection:[],
704
       multipleSelection:[],
678
       dialogVisible:false,
705
       dialogVisible:false,
679
       mingxi_dialogVisible:false,
706
       mingxi_dialogVisible:false,
680
       editor_dialogVisible:false,
707
       editor_dialogVisible:false,
708
+      delete_centerDialogVisible:false,
681
 
709
 
710
+      ganzhi:null,
711
+      shidu:null,
712
+      huodong:null,
713
+      yidong:null,
714
+      yingyang:null,
715
+      mocha:null,
716
+      add_press:false,
682
       zhuangui:['出院','死亡','其他'],
717
       zhuangui:['出院','死亡','其他'],
683
       value1:'',
718
       value1:'',
684
       checkList:[],
719
       checkList:[],
685
       input:'',
720
       input:'',
686
       options:[],
721
       options:[],
687
       value:'',
722
       value:'',
723
+      row:''
688
     }
724
     }
689
   },
725
   },
690
   methods:{
726
   methods:{
711
     open_editor(row){
747
     open_editor(row){
712
       this.editor_dialogVisible =true
748
       this.editor_dialogVisible =true
713
     },
749
     },
750
+    open_delete(row){
751
+      this.row=row.id
752
+      this.delete_centerDialogVisible=true
753
+    },
754
+    delete_press(){
755
+      for(let i=0;i<this.tableData.length;i++){
756
+        if(this.row==this.tableData[i].id){
757
+          this.tableData.splice(i,1)
758
+        }
759
+      }
760
+      this.delete_centerDialogVisible=false
761
+    },
714
     print_pingfen(id){
762
     print_pingfen(id){
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}}'
763
       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
       if(id==1){
764
       if(id==1){
732
       }
780
       }
733
 
781
 
734
     },
782
     },
783
+  },
784
+  computed:{
785
+    mark(){
786
+      return this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
787
+    }
735
   }
788
   }
736
 }
789
 }
737
 </script>
790
 </script>

+ 31 - 3
src/xt_pages/user/history/RASS_history.vue View File

61
             align="center"
61
             align="center"
62
             show-overflow-tooltip>
62
             show-overflow-tooltip>
63
             <template slot-scope="scope">
63
             <template slot-scope="scope">
64
-              <el-button type="primary" icon="el-icon-delete"></el-button>
64
+              <el-button type="primary" icon="el-icon-delete" @click="RASS_delete(scope.row)"></el-button>
65
             </template>
65
             </template>
66
           </el-table-column>
66
           </el-table-column>
67
         </el-table>
67
         </el-table>
288
         </div>
288
         </div>
289
       </div>
289
       </div>
290
     </el-dialog>
290
     </el-dialog>
291
+     <!--删除 -->
292
+     <el-dialog
293
+      title="提示"
294
+      :visible.sync="delete_centerDialogVisible"
295
+      width="20%"
296
+      center>
297
+      <span>是否删除该记录</span>
298
+      <span slot="footer" class="dialog-footer">
299
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
300
+        <el-button type="primary" @click="deletes">确 定</el-button>
301
+      </span>
302
+    </el-dialog>
291
   </div>
303
   </div>
292
 </template>
304
 </template>
293
 <script>
305
 <script>
301
       RASS_dialogVisible:false,
313
       RASS_dialogVisible:false,
302
       teng_dialogVisible:false,
314
       teng_dialogVisible:false,
303
       mingxi_dialogVisible:false,
315
       mingxi_dialogVisible:false,
304
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
316
+      delete_centerDialogVisible:false,
317
+      row:'',
318
+
319
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:1,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
305
       LOS:[{title:'0分', value:'清醒'},{title:'1分', value:'有些昏昏欲睡,但容易唤醒'},
320
       LOS:[{title:'0分', value:'清醒'},{title:'1分', value:'有些昏昏欲睡,但容易唤醒'},
306
             {title:'2分', value:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态'},
321
             {title:'2分', value:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态'},
307
             {title:'3分', value:'无意识,无法唤醒'},{title:'S分', value:'正常意识,容易唤醒'}
322
             {title:'3分', value:'无意识,无法唤醒'},{title:'S分', value:'正常意识,容易唤醒'}
374
       this.teng_dialogVisible=false
389
       this.teng_dialogVisible=false
375
     },
390
     },
376
     teng_dele(row){
391
     teng_dele(row){
377
-      this.tableData.splice(row, 1);
392
+      this.row=row.id
393
+      this.delete_centerDialogVisible=true
394
+    },
395
+    RASS_delete(row){
396
+      this.row=row.id
397
+      this.delete_centerDialogVisible=true
398
+    },
399
+    deletes(){
400
+      for(let i=0;i<this.tableData.length;i++){
401
+        if(this.row==this.tableData[i].id){
402
+          this.tableData.splice(i,1)
403
+        }
404
+      }
405
+      this.delete_centerDialogVisible=false
378
     }
406
     }
379
   }
407
   }
380
 }
408
 }

+ 28 - 4
src/xt_pages/user/history/daoguan_history.vue View File

79
             show-overflow-tooltip>
79
             show-overflow-tooltip>
80
             <template slot-scope="scope">
80
             <template slot-scope="scope">
81
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
81
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
82
-              <el-button type="primary" icon="el-icon-delete"></el-button>
82
+              <el-button type="primary" icon="el-icon-delete" @click="open_delete(scope.row)"></el-button>
83
             </template>
83
             </template>
84
           </el-table-column>
84
           </el-table-column>
85
         </el-table>
85
         </el-table>
430
           <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
430
           <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
431
       </div>
431
       </div>
432
     </el-dialog>
432
     </el-dialog>
433
-
433
+     <!--删除 -->
434
+     <el-dialog
435
+      title="提示"
436
+      :visible.sync="delete_centerDialogVisible"
437
+      width="20%"
438
+      center>
439
+      <span>是否删除该记录</span>
440
+      <span slot="footer" class="dialog-footer">
441
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
442
+        <el-button type="primary" @click="delete_daogaun">确 定</el-button>
443
+      </span>
444
+    </el-dialog>
434
   </div>
445
   </div>
435
 </template>
446
 </template>
436
 <script>
447
 <script>
443
       dialogVisible:false,
454
       dialogVisible:false,
444
       mingxi_dialogVisible:false,
455
       mingxi_dialogVisible:false,
445
       editor_dialogVisible:false,
456
       editor_dialogVisible:false,
446
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
457
+      delete_centerDialogVisible:false,
458
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
447
       tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
459
       tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
448
       yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
460
       yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
449
       peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)'],
461
       peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)'],
459
       options:[],
471
       options:[],
460
       input:'',
472
       input:'',
461
       value:'',
473
       value:'',
474
+      row:''
462
     }
475
     }
463
   },
476
   },
464
   methods:{
477
   methods:{
508
     open_xiugai(row){
521
     open_xiugai(row){
509
       this.editor_dialogVisible=true
522
       this.editor_dialogVisible=true
510
     },
523
     },
511
-
524
+    open_delete(row){
525
+      this.row=row.id
526
+      this.delete_centerDialogVisible=true
527
+    },
528
+    delete_daogaun(){
529
+      for(let i=0;i<this.tableData.length;i++){
530
+        if(this.row==this.tableData[i].id){
531
+          this.tableData.splice(i,1)
532
+        }
533
+      }
534
+      this.delete_centerDialogVisible=false
535
+    },
512
     handleCheckedCitiesChange(e){
536
     handleCheckedCitiesChange(e){
513
       const ball=e
537
       const ball=e
514
       const jiequ =(ball.split('(')[1].split('分')[0]) * 1
538
       const jiequ =(ball.split('(')[1].split('分')[0]) * 1

+ 150 - 70
src/xt_pages/user/history/date_history.vue View File

119
             >
119
             >
120
             <template slot-scope="scope">
120
             <template slot-scope="scope">
121
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
121
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
122
-              <el-button type="primary" icon="el-icon-delete"></el-button>
122
+              <el-button type="primary" icon="el-icon-delete" @click="open_delete(scope.row)"></el-button>
123
             </template>
123
             </template>
124
           </el-table-column>
124
           </el-table-column>
125
         </el-table>
125
         </el-table>
373
               <tr class="bg_color">
373
               <tr class="bg_color">
374
                 <td class="start">进食</td>
374
                 <td class="start">进食</td>
375
                 <td v-for="(item,index) in jinshi" :key="index">
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>
376
+                  <div class="jiange">
377
+                    <span>
378
+                      <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
379
+                          {{ item.label }}
380
+                      </label>
381
+                    </span>
382
+                  </div>
383
                 </td>
383
                 </td>
384
                 <td>&nbsp;</td>
384
                 <td>&nbsp;</td>
385
               </tr>
385
               </tr>
388
                 <td v-for="(item,index) in xizao" :key="index">
388
                 <td v-for="(item,index) in xizao" :key="index">
389
                   <div class="jiange">
389
                   <div class="jiange">
390
                     <span>
390
                     <span>
391
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
391
+                      <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
392
                           {{ item.label }}
392
                           {{ item.label }}
393
                       </label>
393
                       </label>
394
                     </span>
394
                     </span>
402
                 <td v-for="(item,index) in xiushi" :key="index">
402
                 <td v-for="(item,index) in xiushi" :key="index">
403
                     <div class="jiange">
403
                     <div class="jiange">
404
                       <span>
404
                       <span>
405
-                        <label><input type="checkbox" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
405
+                        <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
406
                             {{item.label}}
406
                             {{item.label}}
407
                         </label>
407
                         </label>
408
                       </span>
408
                       </span>
416
                 <td v-for="(item,index) in chuanyi" :key="index">
416
                 <td v-for="(item,index) in chuanyi" :key="index">
417
                   <div class="jiange">
417
                   <div class="jiange">
418
                     <span>
418
                     <span>
419
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
419
+                      <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
420
                           {{item.label}}
420
                           {{item.label}}
421
                       </label>
421
                       </label>
422
                     </span>
422
                     </span>
429
                 <td v-for="(item,index) in dabian" :key="index">
429
                 <td v-for="(item,index) in dabian" :key="index">
430
                   <div class="jiange">
430
                   <div class="jiange">
431
                     <span>
431
                     <span>
432
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
432
+                      <label><input type="checkbox" class="checkbox5" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
433
                           {{item.label}}
433
                           {{item.label}}
434
                       </label>
434
                       </label>
435
                     </span>
435
                     </span>
442
                 <td v-for="(item,index) in xioabian" :key="index">
442
                 <td v-for="(item,index) in xioabian" :key="index">
443
                   <div class="jiange">
443
                   <div class="jiange">
444
                     <span>
444
                     <span>
445
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="xioabianclick($event,item.value)"/>&nbsp;
445
+                      <label><input type="checkbox" class="checkbox6" name="ball" :value="item.value" @click="xiaobianclick($event,item.value)"/>&nbsp;
446
                           {{item.label}}
446
                           {{item.label}}
447
                       </label>
447
                       </label>
448
                     </span>
448
                     </span>
455
                 <td v-for="(item,index) in ruce" :key="index">
455
                 <td v-for="(item,index) in ruce" :key="index">
456
                   <div class="jiange">
456
                   <div class="jiange">
457
                     <span>
457
                     <span>
458
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
458
+                      <label><input type="checkbox" class="checkbox7" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
459
                           {{item.label}}
459
                           {{item.label}}
460
                       </label>
460
                       </label>
461
                     </span>
461
                     </span>
468
                 <td v-for="(item,index) in chuangyi" :key="index">
468
                 <td v-for="(item,index) in chuangyi" :key="index">
469
                   <div class="jiange">
469
                   <div class="jiange">
470
                     <span>
470
                     <span>
471
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
471
+                      <label><input type="checkbox" class="checkbox8" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
472
                           {{item.label}}
472
                           {{item.label}}
473
                       </label>
473
                       </label>
474
                     </span>
474
                     </span>
480
                 <td v-for="(item,index) in pingdi" :key="index">
480
                 <td v-for="(item,index) in pingdi" :key="index">
481
                   <div class="jiange">
481
                   <div class="jiange">
482
                     <span>
482
                     <span>
483
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
483
+                      <label><input type="checkbox" class="checkbox9" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
484
                           {{item.label}}
484
                           {{item.label}}
485
                       </label>
485
                       </label>
486
                     </span>
486
                     </span>
492
                 <td v-for="(item,index) in louti" :key="index">
492
                 <td v-for="(item,index) in louti" :key="index">
493
                   <div class="jiange">
493
                   <div class="jiange">
494
                     <span>
494
                     <span>
495
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
495
+                      <label><input type="checkbox" class="checkbox10" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
496
                           {{ item.label }}
496
                           {{ item.label }}
497
                       </label>
497
                       </label>
498
                     </span>
498
                     </span>
544
         </table>
544
         </table>
545
       </div>
545
       </div>
546
     </el-dialog>
546
     </el-dialog>
547
+     <!--删除 -->
548
+     <el-dialog
549
+      title="提示"
550
+      :visible.sync="delete_centerDialogVisible"
551
+      width="20%"
552
+      center>
553
+      <span>是否删除该记录</span>
554
+      <span slot="footer" class="dialog-footer">
555
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
556
+        <el-button type="primary" @click="delete_date">确 定</el-button>
557
+      </span>
558
+    </el-dialog>
547
   </div>
559
   </div>
548
 </template>
560
 </template>
549
 <script>
561
 <script>
556
       dialogVisible:false,
568
       dialogVisible:false,
557
       mingxi_dialogVisible:false,
569
       mingxi_dialogVisible:false,
558
       editor_dialogVisible:false,
570
       editor_dialogVisible:false,
559
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
571
+      delete_centerDialogVisible:false,
572
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
560
       jinshi:[{value:10,label:'可独立进食(10分)'},
573
       jinshi:[{value:10,label:'可独立进食(10分)'},
561
               {value:5,label:'需部分帮助(如协助夹菜等)(5分)'},
574
               {value:5,label:'需部分帮助(如协助夹菜等)(5分)'},
562
               {value:0,label:'需极大帮助或完全依赖他人(0分)'}
575
               {value:0,label:'需极大帮助或完全依赖他人(0分)'}
575
               {value:5,label:'偶尔失禁(5分)'},
588
               {value:5,label:'偶尔失禁(5分)'},
576
               {value:0,label:'完全失禁(0分)'}
589
               {value:0,label:'完全失禁(0分)'}
577
             ],
590
             ],
578
-      xioabian:[{value:10,label:'可控制便(10分)'},
591
+      xioabian:[{value:10,label:'可控制便(10分)'},
579
               {value:5,label:'偶尔失禁(5分)'},
592
               {value:5,label:'偶尔失禁(5分)'},
580
               {value:0,label:'完全失禁(0分)'}
593
               {value:0,label:'完全失禁(0分)'}
581
             ],
594
             ],
612
       chuangyi_val:null,
625
       chuangyi_val:null,
613
       paingdi_val:null,
626
       paingdi_val:null,
614
       louti_val:null,
627
       louti_val:null,
628
+      row:''
615
     }
629
     }
616
   },
630
   },
617
   methods:{
631
   methods:{
664
     open_xiugai(row){
678
     open_xiugai(row){
665
       this.editor_dialogVisible=true
679
       this.editor_dialogVisible=true
666
     },
680
     },
667
-
681
+    open_delete(row){
682
+      this.row=row.id
683
+      this.delete_centerDialogVisible=true
684
+    },
685
+    delete_date(){
686
+      for(let i=0;i<this.tableData.length;i++){
687
+        if(this.row==this.tableData[i].id){
688
+          this.tableData.splice(i,1)
689
+        }
690
+      }
691
+      this.delete_centerDialogVisible=false
692
+    },
668
     jinshiclick(e,val){
693
     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
-     }
694
+      const checkboxs=document.getElementsByClassName('checkbox1')
695
+      for(let i=0;i<checkboxs.length;i++){
696
+        if(val==checkboxs[i].value){
697
+          this.jinshi_val = val
698
+          checkboxs[i].value
699
+          checkboxs[i].checked=true
700
+        }else{
701
+          checkboxs[i].checked = false
702
+        }
703
+      }
674
     },
704
     },
675
     xizaoclick(e,val){
705
     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
-     }
706
+      const checkboxs=document.getElementsByClassName('checkbox2')
707
+      for(let i=0;i<checkboxs.length;i++){
708
+        if(val==checkboxs[i].value){
709
+          this.xizao_val = val
710
+          checkboxs[i].value
711
+          checkboxs[i].checked=true
712
+        }else{
713
+          checkboxs[i].checked = false
714
+        }
715
+      }
681
     },
716
     },
682
     xiushiclick(e,val){
717
     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
-     }
718
+     const checkboxs=document.getElementsByClassName('checkbox3')
719
+      for(let i=0;i<checkboxs.length;i++){
720
+        if(val==checkboxs[i].value){
721
+          this.xiushi_val = val
722
+          checkboxs[i].value
723
+          checkboxs[i].checked=true
724
+        }else{
725
+          checkboxs[i].checked = false
726
+        }
727
+      }
688
     },
728
     },
689
     chuanyiclick(e,val){
729
     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
-     }
730
+     const checkboxs=document.getElementsByClassName('checkbox4')
731
+      for(let i=0;i<checkboxs.length;i++){
732
+        if(val==checkboxs[i].value){
733
+          this.chuanyi_val = val
734
+          checkboxs[i].value
735
+          checkboxs[i].checked=true
736
+        }else{
737
+          checkboxs[i].checked = false
738
+        }
739
+      }
695
     },
740
     },
696
     dabianclick(e,val){
741
     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
-     }
742
+     const checkboxs=document.getElementsByClassName('checkbox5')
743
+      for(let i=0;i<checkboxs.length;i++){
744
+        if(val==checkboxs[i].value){
745
+          this.dabian_val = val
746
+          checkboxs[i].value
747
+          checkboxs[i].checked=true
748
+        }else{
749
+          checkboxs[i].checked = false
750
+        }
751
+      }
702
     },
752
     },
703
     xiaobianclick(e,val){
753
     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
-     }
754
+     const checkboxs=document.getElementsByClassName('checkbox6')
755
+      for(let i=0;i<checkboxs.length;i++){
756
+        if(val==checkboxs[i].value){
757
+          this.xiaobian_val = val
758
+          checkboxs[i].value
759
+          checkboxs[i].checked=true
760
+        }else{
761
+          checkboxs[i].checked = false
762
+        }
763
+      }
709
     },
764
     },
710
     ruceclick(e,val){
765
     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
-     }
766
+     const checkboxs=document.getElementsByClassName('checkbox7')
767
+      for(let i=0;i<checkboxs.length;i++){
768
+        if(val==checkboxs[i].value){
769
+          this.ruce_val = val
770
+          checkboxs[i].value
771
+          checkboxs[i].checked=true
772
+        }else{
773
+          checkboxs[i].checked = false
774
+        }
775
+      }
716
     },
776
     },
717
     chuangyiclick(e,val){
777
     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
-     }
778
+     const checkboxs=document.getElementsByClassName('checkbox8')
779
+      for(let i=0;i<checkboxs.length;i++){
780
+        if(val==checkboxs[i].value){
781
+          this.chuangyi_val = val
782
+          checkboxs[i].value
783
+          checkboxs[i].checked=true
784
+        }else{
785
+          checkboxs[i].checked = false
786
+        }
787
+      }
723
     },
788
     },
724
     pingdiclick(e,val){
789
     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
-     }
790
+    //  if(e.target.checked == true){
791
+    //   this.paingdi_val = val
792
+    //  }else{
793
+    //   this.paingdi_val =this.paingdi_val - val
794
+    //  }
795
+     const checkboxs=document.getElementsByClassName('checkbox9')
796
+      for(let i=0;i<checkboxs.length;i++){
797
+        if(val==checkboxs[i].value){
798
+          this.paingdi_val = val
799
+          checkboxs[i].value
800
+          checkboxs[i].checked=true
801
+        }else{
802
+          checkboxs[i].checked = false
803
+        }
804
+      }
730
     },
805
     },
731
     louticlick(e,val){
806
     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
-     }
807
+     const checkboxs=document.getElementsByClassName('checkbox10')
808
+      for(let i=0;i<checkboxs.length;i++){
809
+        if(val==checkboxs[i].value){
810
+          this.louti_val = val
811
+          checkboxs[i].value
812
+          checkboxs[i].checked=true
813
+        }else{
814
+          checkboxs[i].checked = false
815
+        }
816
+      }
737
     },
817
     },
738
   },
818
   },
739
   computed:{
819
   computed:{

+ 38 - 12
src/xt_pages/user/history/mind_history.vue View File

2
 <template>
2
 <template>
3
   <div class="patient-container">
3
   <div class="patient-container">
4
     <div class="patient-app-containers advice-container app-container">
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
         <div style="width: 50%;">
6
         <div style="width: 50%;">
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8
           <div class="history">历史评分</div>
8
           <div class="history">历史评分</div>
16
           ref="multipleTable"
16
           ref="multipleTable"
17
           :data="tableData"
17
           :data="tableData"
18
           border
18
           border
19
-          
19
+
20
           tooltip-effect="dark"
20
           tooltip-effect="dark"
21
           :header-cell-style="{
21
           :header-cell-style="{
22
             background:'#4579c5',
22
             background:'#4579c5',
34
             label="评估日期"
34
             label="评估日期"
35
             width="150"
35
             width="150"
36
             align="center">
36
             align="center">
37
-            
37
+
38
           </el-table-column>
38
           </el-table-column>
39
           <el-table-column
39
           <el-table-column
40
             prop=""
40
             prop=""
74
             show-overflow-tooltip>
74
             show-overflow-tooltip>
75
             <template slot-scope="scope">
75
             <template slot-scope="scope">
76
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
76
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
77
-              <el-button type="primary" icon="el-icon-delete"></el-button>
77
+              <el-button type="primary" icon="el-icon-delete" @click="open_delet(scope.row)"></el-button>
78
             </template>
78
             </template>
79
           </el-table-column>
79
           </el-table-column>
80
         </el-table>
80
         </el-table>
120
           </div>
120
           </div>
121
         </div>
121
         </div>
122
       </div>
122
       </div>
123
-    </el-dialog>  
123
+    </el-dialog>
124
     <!-- 编辑 -->
124
     <!-- 编辑 -->
125
     <el-dialog
125
     <el-dialog
126
       title="提示"
126
       title="提示"
154
                             <el-radio v-for="(item,index ) in qingan" :label="item" :key="index" style="color: black;font-size: 15px;">{{ item }}</el-radio>
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>
155
                         </el-radio-group>
156
                     </div>
156
                     </div>
157
-                </td>                           
157
+                </td>
158
             </tr>
158
             </tr>
159
             <tr class="bg_color">
159
             <tr class="bg_color">
160
                 <td class="start">自伤</td>
160
                 <td class="start">自伤</td>
210
               <el-button type="primary">确认</el-button>
210
               <el-button type="primary">确认</el-button>
211
           </div>
211
           </div>
212
       </div>
212
       </div>
213
-    </el-dialog>  
213
+    </el-dialog>
214
+    <!-- 删除 -->
215
+    <el-dialog
216
+      title="提示"
217
+      :visible.sync="delete_centerDialogVisible"
218
+      width="20%"
219
+      center>
220
+      <span>是否删除该记录</span>
221
+      <span slot="footer" class="dialog-footer">
222
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
223
+        <el-button type="primary" @click="delete_mind">确 定</el-button>
224
+      </span>
225
+    </el-dialog>
214
   </div>
226
   </div>
215
 </template>
227
 </template>
216
 <script>
228
 <script>
222
       multipleSelection:[],
234
       multipleSelection:[],
223
       dialogVisible:false,
235
       dialogVisible:false,
224
       editor_dialogVisible:false,
236
       editor_dialogVisible:false,
225
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
237
+      delete_centerDialogVisible:false,
238
+      row:'',
239
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
226
 
240
 
227
       checkList:'',
241
       checkList:'',
228
       radio1:'',
242
       radio1:'',
261
     },
275
     },
262
     open_xiugai(row){
276
     open_xiugai(row){
263
       this.editor_dialogVisible=true
277
       this.editor_dialogVisible=true
278
+    },
279
+    open_delet(row){
280
+      this.row=row.id
281
+      this.delete_centerDialogVisible=true
282
+    },
283
+    delete_mind(){
284
+      for(let i=0;i<this.tableData.length;i++){
285
+        if(this.row==this.tableData[i].id){
286
+          this.tableData.splice(i,1)
287
+        }
288
+      }
289
+      this.delete_centerDialogVisible=false
264
     }
290
     }
265
   }
291
   }
266
 }
292
 }
284
 }
310
 }
285
 .content_top{
311
 .content_top{
286
       display: flex;
312
       display: flex;
287
-      justify-content: space-between; 
313
+      justify-content: space-between;
288
     }
314
     }
289
 .tables{
315
 .tables{
290
     border: 1px solid #DCDFE6;
316
     border: 1px solid #DCDFE6;
317
       margin-right: 40px;
343
       margin-right: 40px;
318
       font-size: 15px;
344
       font-size: 15px;
319
     }
345
     }
320
-    
346
+
321
     input{
347
     input{
322
         -webkit-appearance: checkbox;
348
         -webkit-appearance: checkbox;
323
     }
349
     }
325
 .bottoms{
351
 .bottoms{
326
   display: inline-block;
352
   display: inline-block;
327
   margin-left: 10px;
353
   margin-left: 10px;
328
-  margin-top: 5px; 
354
+  margin-top: 5px;
329
 }
355
 }
330
-</style>
356
+</style>

+ 34 - 8
src/xt_pages/user/history/nourishment_history.vue View File

2
 <template>
2
 <template>
3
   <div class="patient-container">
3
   <div class="patient-container">
4
     <div class="patient-app-containers advice-container app-container">
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
         <div style="width: 50%;">
6
         <div style="width: 50%;">
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8
           <div class="history">历史评分</div>
8
           <div class="history">历史评分</div>
17
           ref="multipleTable"
17
           ref="multipleTable"
18
           :data="tableData"
18
           :data="tableData"
19
           border
19
           border
20
-          
20
+
21
           tooltip-effect="dark"
21
           tooltip-effect="dark"
22
           :header-cell-style="{
22
           :header-cell-style="{
23
             background:'#4579c5',
23
             background:'#4579c5',
74
             show-overflow-tooltip>
74
             show-overflow-tooltip>
75
             <template slot-scope="scope">
75
             <template slot-scope="scope">
76
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
76
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
77
-              <el-button type="primary" icon="el-icon-delete"></el-button>
77
+              <el-button type="primary" icon="el-icon-delete" @click="open_delet(scope.row)"></el-button>
78
             </template>
78
             </template>
79
           </el-table-column>
79
           </el-table-column>
80
         </el-table>
80
         </el-table>
120
           </div>
120
           </div>
121
         </div>
121
         </div>
122
       </div>
122
       </div>
123
-    </el-dialog>  
123
+    </el-dialog>
124
      <!-- 打印明细 -->
124
      <!-- 打印明细 -->
125
      <el-dialog
125
      <el-dialog
126
       title="提示"
126
       title="提示"
308
                       </tr>
308
                       </tr>
309
                     </tbody>
309
                     </tbody>
310
                 </table>
310
                 </table>
311
-              </div> 
312
-              
311
+              </div>
312
+
313
               <div style="font-size: 16px;">打印时间:</div>
313
               <div style="font-size: 16px;">打印时间:</div>
314
             </div>
314
             </div>
315
           </div>
315
           </div>
524
           </div>
524
           </div>
525
       </div>
525
       </div>
526
     </el-dialog>
526
     </el-dialog>
527
+    <!-- 删除 -->
528
+    <el-dialog
529
+      title="提示"
530
+      :visible.sync="delete_centerDialogVisible"
531
+      width="20%"
532
+      center>
533
+      <span>是否删除该记录</span>
534
+      <span slot="footer" class="dialog-footer">
535
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
536
+        <el-button type="primary" @click="delete_niouris">确 定</el-button>
537
+      </span>
538
+    </el-dialog>
527
   </div>
539
   </div>
528
 </template>
540
 </template>
529
 <script>
541
 <script>
536
       dialogVisible:false,
548
       dialogVisible:false,
537
       mingxi_dialogVisible:false,
549
       mingxi_dialogVisible:false,
538
       editor_dialogVisible:false,
550
       editor_dialogVisible:false,
539
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
551
+      delete_centerDialogVisible:false,
552
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
540
       qingdu:['骸骨折','慢性疾病急性发作或有','COPD','血液透析','肝硬化','一般恶性肿瘤患者','糖尿病'],
553
       qingdu:['骸骨折','慢性疾病急性发作或有','COPD','血液透析','肝硬化','一般恶性肿瘤患者','糖尿病'],
541
       zhdu:['腹部大手术','脑卒中','重度肺炎','血液恶性肿瘤'],
554
       zhdu:['腹部大手术','脑卒中','重度肺炎','血液恶性肿瘤'],
542
       zhongsdu:['颅脑损伤','骨髓移植','大于APACHE分的ICU患者'],
555
       zhongsdu:['颅脑损伤','骨髓移植','大于APACHE分的ICU患者'],
553
       radio_val:null,
566
       radio_val:null,
554
       radio1_val:null,
567
       radio1_val:null,
555
       radio2_val:null,
568
       radio2_val:null,
569
+      row:'',
556
     }
570
     }
557
   },
571
   },
558
   methods:{
572
   methods:{
597
     open_xiugai(row){
611
     open_xiugai(row){
598
       this.editor_dialogVisible=true
612
       this.editor_dialogVisible=true
599
     },
613
     },
614
+    open_delet(row){
615
+      this.row=row.id
616
+      this.delete_centerDialogVisible=true
617
+    },
618
+    delete_niouris(){
619
+      for(let i=0;i<this.tableData.length;i++){
620
+        if(this.row==this.tableData[i].id){
621
+          this.tableData.splice(i,1)
622
+        }
623
+      }
624
+      this.delete_centerDialogVisible=false
625
+    },
600
     radio_change(e){
626
     radio_change(e){
601
       const ball=e * 1
627
       const ball=e * 1
602
       console.log('1111',e);
628
       console.log('1111',e);
688
   display: flex;
714
   display: flex;
689
   justify-content: space-between;
715
   justify-content: space-between;
690
 }
716
 }
691
-</style>
717
+</style>

+ 45 - 18
src/xt_pages/user/history/pruritus_history.vue View File

2
 <template>
2
 <template>
3
   <div class="patient-container">
3
   <div class="patient-container">
4
     <div class="patient-app-containers advice-container app-container">
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
         <div style="width: 50%;">
6
         <div style="width: 50%;">
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8
           <div class="history">历史评分</div>
8
           <div class="history">历史评分</div>
17
           ref="multipleTable"
17
           ref="multipleTable"
18
           :data="tableData"
18
           :data="tableData"
19
           border
19
           border
20
-          
20
+
21
           tooltip-effect="dark"
21
           tooltip-effect="dark"
22
           :header-cell-style="{
22
           :header-cell-style="{
23
             background:'#4579c5',
23
             background:'#4579c5',
80
             show-overflow-tooltip>
80
             show-overflow-tooltip>
81
             <template slot-scope="scope">
81
             <template slot-scope="scope">
82
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
82
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
83
-              <el-button type="primary" icon="el-icon-delete"></el-button>
83
+              <el-button type="primary" icon="el-icon-delete" @click="open_delet(scope.row)"></el-button>
84
             </template>
84
             </template>
85
           </el-table-column>
85
           </el-table-column>
86
         </el-table>
86
         </el-table>
128
           </div>
128
           </div>
129
         </div>
129
         </div>
130
       </div>
130
       </div>
131
-    </el-dialog>  
131
+    </el-dialog>
132
      <!-- 打印明细 -->
132
      <!-- 打印明细 -->
133
      <el-dialog
133
      <el-dialog
134
       title="提示"
134
       title="提示"
168
                           <div class="jiange">
168
                           <div class="jiange">
169
                               <span v-for="item in buwei" class="rightjiange" >
169
                               <span v-for="item in buwei" class="rightjiange" >
170
                                   <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
170
                                   <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
171
-                              </span> 
171
+                              </span>
172
                               <label ><input type="checkbox" name="ball" value="其他" />
172
                               <label ><input type="checkbox" name="ball" value="其他" />
173
                                   &nbsp;其他 <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
173
                                   &nbsp;其他 <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
174
                               </label>
174
                               </label>
185
                                   <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
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>
186
                               </el-radio-group>
187
                           </div>
187
                           </div>
188
-                      </td> 
188
+                      </td>
189
                       <td class="start">{{radio1_points}}</td>
189
                       <td class="start">{{radio1_points}}</td>
190
-                      <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>                          
190
+                      <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>
191
                     </tr>
191
                     </tr>
192
                     <tr>
192
                     <tr>
193
                       <td class="start">痒的频率</td>
193
                       <td class="start">痒的频率</td>
247
                     <div class="jiange">
247
                     <div class="jiange">
248
                         <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
248
                         <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
249
                             <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
249
                             <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
250
-                        </span> 
250
+                        </span>
251
                         <label @change="handleCheckedCitiesChange"><input type="checkbox" name="ball" value="其他" />
251
                         <label @change="handleCheckedCitiesChange"><input type="checkbox" name="ball" value="其他" />
252
                             &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
252
                             &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
253
                         </label>
253
                         </label>
264
                             <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
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>
265
                         </el-radio-group>
266
                     </div>
266
                     </div>
267
-                </td> 
267
+                </td>
268
                 <td class="start">{{radio1_points}}</td>
268
                 <td class="start">{{radio1_points}}</td>
269
-                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>                          
269
+                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>
270
               </tr>
270
               </tr>
271
               <tr>
271
               <tr>
272
                 <td class="start">痒的频率</td>
272
                 <td class="start">痒的频率</td>
332
           <div style="margin:5px 10px;">
332
           <div style="margin:5px 10px;">
333
               <el-button type="primary">确认</el-button>
333
               <el-button type="primary">确认</el-button>
334
           </div>
334
           </div>
335
-        </div>   
336
-    </el-dialog>  
335
+        </div>
336
+    </el-dialog>
337
+     <!-- 删除 -->
338
+    <el-dialog
339
+      title="提示"
340
+      :visible.sync="delete_centerDialogVisible"
341
+      width="20%"
342
+      center>
343
+      <span>是否删除该记录</span>
344
+      <span slot="footer" class="dialog-footer">
345
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
346
+        <el-button type="primary" @click="delete_pruritus">确 定</el-button>
347
+      </span>
348
+    </el-dialog>
337
   </div>
349
   </div>
338
 </template>
350
 </template>
339
 <script>
351
 <script>
346
       dialogVisible:false,
358
       dialogVisible:false,
347
       mingxi_dialogVisible:false,
359
       mingxi_dialogVisible:false,
348
       editor_dialogVisible:false,
360
       editor_dialogVisible:false,
349
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
361
+      delete_centerDialogVisible:false,
362
+
363
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
350
 
364
 
351
       buwei:['躯体','上肢','下肢','头皮','全身'],
365
       buwei:['躯体','上肢','下肢','头皮','全身'],
352
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
366
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
365
       options:[],
379
       options:[],
366
       value:'',
380
       value:'',
367
       value1:'',
381
       value1:'',
382
+      row:'',
368
     }
383
     }
369
   },
384
   },
370
   methods:{
385
   methods:{
404
         })
419
         })
405
         this.mingxi_dialogVisible=false
420
         this.mingxi_dialogVisible=false
406
       }
421
       }
407
-      
422
+
408
     },
423
     },
409
     open_xiugai(row){
424
     open_xiugai(row){
410
       this.editor_dialogVisible=true
425
       this.editor_dialogVisible=true
411
     },
426
     },
427
+    open_delet(row){
428
+      this.row=row.id
429
+      this.delete_centerDialogVisible=true
430
+    },
431
+    delete_pruritus(){
432
+      for(let i=0;i<this.tableData.length;i++){
433
+        if(this.row==this.tableData[i].id){
434
+          this.tableData.splice(i,1)
435
+        }
436
+      }
437
+      this.delete_centerDialogVisible=false
438
+    },
412
     handleCheckedCitiesChange(e){
439
     handleCheckedCitiesChange(e){
413
       this.ball = e.target.value
440
       this.ball = e.target.value
414
       console.log('1111111',this.ball)
441
       console.log('1111111',this.ball)
445
         this.radio3_points =jiequ
472
         this.radio3_points =jiequ
446
       }
473
       }
447
     },
474
     },
448
-    
475
+
449
   },
476
   },
450
   computed:{
477
   computed:{
451
     pruritus_Totalpoints(){
478
     pruritus_Totalpoints(){
473
 }
500
 }
474
 .content_top{
501
 .content_top{
475
       display: flex;
502
       display: flex;
476
-      justify-content: space-between; 
503
+      justify-content: space-between;
477
 }
504
 }
478
 .table{
505
 .table{
479
     border: 1px solid #DCDFE6;
506
     border: 1px solid #DCDFE6;
516
 .bottoms{
543
 .bottoms{
517
     display: inline-block;
544
     display: inline-block;
518
     margin-left: 10px;
545
     margin-left: 10px;
519
-    margin-top: 5px; 
546
+    margin-top: 5px;
520
 }
547
 }
521
-</style>
548
+</style>

+ 54 - 12
src/xt_pages/user/history/tumble_history.vue View File

604
         </div>
604
         </div>
605
       </div>
605
       </div>
606
     </el-dialog>
606
     </el-dialog>
607
+    <!--删除 -->
608
+    <el-dialog
609
+      title="提示"
610
+      :visible.sync="delete_centerDialogVisible"
611
+      width="20%"
612
+      center>
613
+      <span>是否删除该记录</span>
614
+      <span slot="footer" class="dialog-footer">
615
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
616
+        <el-button type="primary" @click="delete_tumble">确 定</el-button>
617
+      </span>
618
+    </el-dialog>
619
+    <!-- 添加弹窗页面 -->
620
+    <el-dialog
621
+        title="添加"
622
+        :visible.sync="add_centerDialogVisible"
623
+        width="30%"
624
+        center>
625
+        <span>
626
+          <el-input
627
+            type="textarea"
628
+            :autosize="{ minRows: 4, maxRows: 6}"
629
+            placeholder="请输入需要添加的内容.."
630
+            v-model="textarea2">
631
+          </el-input>
632
+        </span>
633
+        <span slot="footer" class="dialog-footer">
634
+          <el-button @click="add_centerDialogVisible = false">取 消</el-button>
635
+          <el-button type="primary" @click="add_tumble">确 定</el-button>
636
+        </span>
637
+      </el-dialog>
607
   </div>
638
   </div>
608
 </template>
639
 </template>
609
 <script>
640
 <script>
611
 export default{
642
 export default{
612
   data(){
643
   data(){
613
     return{
644
     return{
614
-      tableData:[{time:'2023-9-27',mark:'15',measures:'无',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',measures:'无',evaluate:'千任雪'}],
645
+      tableData:[{id:1,time:'2023-9-27',mark:'15',measures:'无',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',measures:'无',evaluate:'千任雪'}],
615
       multipleSelection:[],
646
       multipleSelection:[],
616
       dialogVisible:false,
647
       dialogVisible:false,
617
       mingxi_dialogVisible:false,
648
       mingxi_dialogVisible:false,
618
       bianji_dialogVisible:false,
649
       bianji_dialogVisible:false,
650
+      delete_centerDialogVisible:false,
651
+      add_centerDialogVisible:false,
619
 
652
 
653
+      row:'',
620
       pingdate:'',
654
       pingdate:'',
621
       Nurse:'',
655
       Nurse:'',
622
       input:'',
656
       input:'',
646
       console.log('0000',this.multipleSelection);
680
       console.log('0000',this.multipleSelection);
647
     },
681
     },
648
     open_pingfen(ids){
682
     open_pingfen(ids){
649
-      if(ids==1){
650
-        if(this.multipleSelection.length==0){
651
-          this.$message('至少选择一条数据')
652
-        }else{
683
+      if(this.multipleSelection.length==0){
684
+        this.$message('请选择需要打印的记录')
685
+      }else{
686
+        if(ids==1){
653
           this.dialogVisible=true
687
           this.dialogVisible=true
654
-        }
655
-      }
656
-      if(ids==2){
657
-        if(this.multipleSelection.length==0){
658
-          this.$message('至少选择一条数据')
659
         }else{
688
         }else{
660
           this.mingxi_dialogVisible=true
689
           this.mingxi_dialogVisible=true
661
         }
690
         }
662
-      }
663
 
691
 
692
+      }
664
     },
693
     },
665
     // open_mingxi(){
694
     // open_mingxi(){
666
     //   if(this.multipleSelection.length==0){
695
     //   if(this.multipleSelection.length==0){
696
       console.log('1111',row);
725
       console.log('1111',row);
697
     },
726
     },
698
     delete_fall(row){
727
     delete_fall(row){
728
+      this.row=row.id
729
+      this.delete_centerDialogVisible=true
699
       console.log('3333',row);
730
       console.log('3333',row);
700
       // this.tableData.splice(row)
731
       // this.tableData.splice(row)
701
     },
732
     },
733
+    delete_tumble(){
734
+      for(let i=0;i<this.tableData.length;i++){
735
+        if(this.row==this.tableData[i].id){
736
+          this.tableData.splice(i,1)
737
+        }
738
+      }
739
+      this.delete_centerDialogVisible=false
740
+    },
741
+    add_tumble(){
742
+      this.add_centerDialogVisible = false
743
+    },
702
     add(){
744
     add(){
703
-      this.centerDialogVisible =true
745
+      this.add_centerDialogVisible =true
704
     },
746
     },
705
     handleCheckedCitiesChange(e){
747
     handleCheckedCitiesChange(e){
706
       var ball = e.target.value
748
       var ball = e.target.value

+ 1 - 1
src/xt_pages/user/inspection.vue View File

1314
 
1314
 
1315
 
1315
 
1316
 
1316
 
1317
-                  if(this.org_id == 10121){
1317
+                  if(this.org_id == 10121 || this.org_id ==10278 || this.org_id ==10138){
1318
                     item.value = inspectionsMap[items[index].id].inspect_value
1318
                     item.value = inspectionsMap[items[index].id].inspect_value
1319
                     item.item_name = inspectionsMap[items[index].id].item_name
1319
                     item.item_name = inspectionsMap[items[index].id].item_name
1320
                   }else{
1320
                   }else{

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

2
   <!-- 排班表填充内容 -->
2
   <!-- 排班表填充内容 -->
3
     <div >
3
     <div >
4
 
4
 
5
-            <div>
6
-                <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span>
7
-                <template v-if="schedulMode">
8
-                  <br/>
9
-                  <span v-if="scheduleDetail.mode_name.length>0"  :class='modeColor(scheduleDetail.mode_name)' >{{'('+scheduleDetail.mode_name+')'}}</span>
10
-                </template>
11
-                <template v-if="schedulFlag">
12
-                  <br/><span >{{scheduleDetail.dialysis_machine_name}}</span>
13
-                </template>
14
-                
15
-            </div>
5
+      <div>
6
+          <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span>
7
+          <template v-if="schedulMode">
8
+            <br/>
9
+            <span v-if="scheduleDetail.mode_name.length>0"  :class='modeColor(scheduleDetail.mode_name)' >{{'('+scheduleDetail.mode_name+')'}}</span>
10
+          </template>
11
+          <template v-if="schedulFlag">
12
+            <br/><span >{{scheduleDetail.dialysis_machine_name}}</span>
13
+          </template>
14
+
15
+      </div>
16
     </div>
16
     </div>
17
 </template>
17
 </template>
18
 
18
 
43
   },
43
   },
44
   data() {
44
   data() {
45
     return {
45
     return {
46
-      
46
+
47
     }
47
     }
48
   },
48
   },
49
 
49
 

+ 29 - 10
src/xt_pages/workforce/components/nextTableWeeks.vue View File

150
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
150
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
151
                 <span v-if="org_id!=10131&& org_id !=10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
151
                 <span v-if="org_id!=10131&& org_id !=10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
152
                 <span v-if="org_id==10131 || org_id == 10215">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span>
152
                 <span v-if="org_id==10131 || org_id == 10215">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span>
153
-              
153
+
154
               </span>
154
               </span>
155
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ scope.row.dialysissolution.dialysis_dialyszers}}</span>
155
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ scope.row.dialysissolution.dialysis_dialyszers}}</span>
156
           </span>
156
           </span>
366
           str = zone.join(",")
366
           str = zone.join(",")
367
         }
367
         }
368
 
368
 
369
-       
369
+
370
         let weekOfDay = parseInt(moment().format('E'))
370
         let weekOfDay = parseInt(moment().format('E'))
371
         let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
371
         let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
372
-        
372
+
373
         let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
373
         let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
374
 
374
 
375
         console.log("开始时间++++++++",(this.getTimestamp(next_monday)/1000)-28800)
375
         console.log("开始时间++++++++",(this.getTimestamp(next_monday)/1000)-28800)
377
         var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
377
         var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
378
         console.log("now_time------------------",now_time)
378
         console.log("now_time------------------",now_time)
379
 
379
 
380
-       
381
-      
380
+
381
+
382
        const params = {
382
        const params = {
383
           start_time:next_monday,
383
           start_time:next_monday,
384
           end_time:next_sunday,
384
           end_time:next_sunday,
651
         var name = ''
651
         var name = ''
652
         for (let i = 0; i < solution.length; i++) {
652
         for (let i = 0; i < solution.length; i++) {
653
           if (mode_id == solution[i].mode_id) {
653
           if (mode_id == solution[i].mode_id) {
654
-         
654
+
655
             name = solution[i].dialyzer_perfusion_apparatus
655
             name = solution[i].dialyzer_perfusion_apparatus
656
-            
656
+
657
           }
657
           }
658
         }
658
         }
659
         console.log('name', name)
659
         console.log('name', name)
664
       this.getNextScheduleWeekDay()
664
       this.getNextScheduleWeekDay()
665
     },
665
     },
666
     signPrint() {
666
     signPrint() {
667
-        
667
+        //
668
         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id ==10375){
668
         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id ==10375){
669
          var zone = this.zone
669
          var zone = this.zone
670
           var newArr = []
670
           var newArr = []
683
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
683
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
684
           })
684
           })
685
           }
685
           }
686
-        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340){
686
+        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340 && this.org_id !=10375 && this.org_id !=10469  && this.org_id !=0 ){
687
           var zone = this.zone
687
           var zone = this.zone
688
         var newArr = []
688
         var newArr = []
689
         for(let i=0;i<this.zoneList.length;i++){
689
         for(let i=0;i<this.zoneList.length;i++){
701
           path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
701
           path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
702
         })
702
         })
703
         }
703
         }
704
-       
704
+        else if(this.org_id==10469 || this.org_id==0){
705
+          var zone = this.zone
706
+          console.log("zone23232",zone)
707
+          var newArr = []
708
+          for(let i=0;i<this.zoneList.length;i++){
709
+            newArr.push(this.zoneList[i].id)
710
+          }
711
+          var arr = newArr.join(",")
712
+          var str = ""
713
+          if(this.zone == 0){
714
+            str = arr
715
+          }
716
+          if(zone != 0){
717
+            str = zone.join(",")
718
+          }
719
+          this.$router.push({
720
+            path: '/schedule/remind/print/setting/two?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
721
+          })
722
+        }
723
+
705
     },
724
     },
706
     getTime(val) {
725
     getTime(val) {
707
       if(val == ""){
726
       if(val == ""){

+ 36 - 20
src/xt_pages/workforce/components/tableWeeks.vue View File

27
                 打印设置
27
                 打印设置
28
             </el-button>
28
             </el-button>
29
 
29
 
30
-           
30
+
31
         </div>
31
         </div>
32
 
32
 
33
         <div class="cell clearfix">
33
         <div class="cell clearfix">
230
                     </span> -->
230
                     </span> -->
231
 
231
 
232
                     <!-- <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
232
                     <!-- <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
233
-                    
233
+
234
                       <!-- {{scope.row.prescription.dialysis_dialyszers}} -->
234
                       <!-- {{scope.row.prescription.dialysis_dialyszers}} -->
235
                     <span v-if="scope.row.prescription.dialysis_dialyszers =='' ">
235
                     <span v-if="scope.row.prescription.dialysis_dialyszers =='' ">
236
                        {{scope.row.dialysissolution.dialysis_dialyszers}}
236
                        {{scope.row.dialysissolution.dialysis_dialyszers}}
240
                        {{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}
240
                        {{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}
241
                     </span>
241
                     </span>
242
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus !=''">{{scope.row.prescription.dialyzer_perfusion_apparatus}}</span>
242
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus !=''">{{scope.row.prescription.dialyzer_perfusion_apparatus}}</span>
243
-  
243
+
244
                     <span v-if="scope.row.prescription.dialysis_irrigation==''">/{{scope.row.dialysissolution.dialysis_irrigation}}</span>
244
                     <span v-if="scope.row.prescription.dialysis_irrigation==''">/{{scope.row.dialysissolution.dialysis_irrigation}}</span>
245
                     <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{scope.row.prescription.dialysis_irrigation}}</span>
245
                     <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{scope.row.prescription.dialysis_irrigation}}</span>
246
             </template>
246
             </template>
259
                     <span v-if="scope.row.dialysissolution.anticoagulant === 9">达肝素</span>
259
                     <span v-if="scope.row.dialysissolution.anticoagulant === 9">达肝素</span>
260
                     <span v-if="scope.row.dialysissolution.anticoagulant === 10">体外抗凝</span>
260
                     <span v-if="scope.row.dialysissolution.anticoagulant === 10">体外抗凝</span>
261
                     <span v-if="scope.row.dialysissolution.anticoagulant === 11">那屈肝素</span>
261
                     <span v-if="scope.row.dialysissolution.anticoagulant === 11">那屈肝素</span>
262
-                       
262
+
263
                     <span v-if="scope.row.dialysissolution.antioxidant_commodity_name!=''">
263
                     <span v-if="scope.row.dialysissolution.antioxidant_commodity_name!=''">
264
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
264
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
265
           </span>
265
           </span>
865
 
865
 
866
         return desc
866
         return desc
867
 
867
 
868
-      }
869
-      ,
868
+      },
870
       printAction() {
869
       printAction() {
871
         var zone = this.zone
870
         var zone = this.zone
872
         var newArr = []
871
         var newArr = []
876
         var arr = newArr.join(",")
875
         var arr = newArr.join(",")
877
         var str = ""
876
         var str = ""
878
         if(this.zone == 0){
877
         if(this.zone == 0){
879
-           str = arr  
878
+           str = arr
880
         }
879
         }
881
         if(zone != 0){
880
         if(zone != 0){
882
           str = zone.join(",")
881
           str = zone.join(",")
884
         this.$router.push({
883
         this.$router.push({
885
           path: '/schedule/remind/print?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str
884
           path: '/schedule/remind/print?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str
886
         })
885
         })
887
-      }
888
-      ,
886
+      },
889
       signPrint() {
887
       signPrint() {
890
-
891
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 0 || this.org_id == 10375){
888
+//
889
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340  || this.org_id == 10375){
892
          var zone = this.zone
890
          var zone = this.zone
893
           console.log("zone23232",zone)
891
           console.log("zone23232",zone)
894
           var newArr = []
892
           var newArr = []
898
           var arr = newArr.join(",")
896
           var arr = newArr.join(",")
899
           var str = ""
897
           var str = ""
900
           if(this.zone == 0){
898
           if(this.zone == 0){
901
-            str = arr  
899
+            str = arr
902
           }
900
           }
903
           if(zone != 0){
901
           if(zone != 0){
904
             str = zone.join(",")
902
             str = zone.join(",")
907
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
905
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
908
           })
906
           })
909
         }
907
         }
910
-        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340 && this.org_id != 0 && this.org_id!=10375){
908
+        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340 && this.org_id != 0 && this.org_id!=10375 && this.org_id!=10469){
911
           var zone = this.zone
909
           var zone = this.zone
912
           console.log("zone23232",zone)
910
           console.log("zone23232",zone)
913
           var newArr = []
911
           var newArr = []
917
           var arr = newArr.join(",")
915
           var arr = newArr.join(",")
918
           var str = ""
916
           var str = ""
919
           if(this.zone == 0){
917
           if(this.zone == 0){
920
-            str = arr  
918
+            str = arr
921
           }
919
           }
922
           if(zone != 0){
920
           if(zone != 0){
923
             str = zone.join(",")
921
             str = zone.join(",")
925
           this.$router.push({
923
           this.$router.push({
926
             path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
924
             path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
927
           })
925
           })
928
-         }
929
-      
926
+        }else if(this.org_id==10469 || this.org_id==0){
927
+          var zone = this.zone
928
+          console.log("zone23232",zone)
929
+          var newArr = []
930
+          for(let i=0;i<this.zoneList.length;i++){
931
+            newArr.push(this.zoneList[i].id)
932
+          }
933
+          var arr = newArr.join(",")
934
+          var str = ""
935
+          if(this.zone == 0){
936
+            str = arr
937
+          }
938
+          if(zone != 0){
939
+            str = zone.join(",")
940
+          }
941
+          this.$router.push({
942
+            path: '/schedule/remind/print/setting/two?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
943
+          })
944
+        }
945
+
930
       }
946
       }
931
       ,
947
       ,
932
       compare(property) {
948
       compare(property) {
989
       ,
1005
       ,
990
 
1006
 
991
       getScheduleList() {
1007
       getScheduleList() {
992
-        
1008
+
993
         var zone = this.zone
1009
         var zone = this.zone
994
         var newArr = []
1010
         var newArr = []
995
         for(let i=0;i<this.zoneList.length;i++){
1011
         for(let i=0;i<this.zoneList.length;i++){
998
         var arr = newArr.join(",")
1014
         var arr = newArr.join(",")
999
         var str = ""
1015
         var str = ""
1000
         if(this.zone == 0){
1016
         if(this.zone == 0){
1001
-           str = arr  
1017
+           str = arr
1002
         }
1018
         }
1003
         if(zone != 0){
1019
         if(zone != 0){
1004
           str = zone.join(",")
1020
           str = zone.join(",")
1544
         var name = ''
1560
         var name = ''
1545
         for (let i = 0; i < solution.length; i++) {
1561
         for (let i = 0; i < solution.length; i++) {
1546
           if (mode_id == solution[i].mode_id) {
1562
           if (mode_id == solution[i].mode_id) {
1547
-         
1563
+
1548
             name = solution[i].dialyzer_perfusion_apparatus
1564
             name = solution[i].dialyzer_perfusion_apparatus
1549
-            
1565
+
1550
           }
1566
           }
1551
         }
1567
         }
1552
         console.log('name', name)
1568
         console.log('name', name)

+ 2 - 3
src/xt_pages/workforce/remind.vue View File

5
 
5
 
6
   </div>
6
   </div>
7
   <div class="app-container">
7
   <div class="app-container">
8
-
9
     <el-tabs v-model="activeName"  ref="elTabs">
8
     <el-tabs v-model="activeName"  ref="elTabs">
10
         <el-tab-pane name="thisWeek">
9
         <el-tab-pane name="thisWeek">
11
             <span slot="label"><i class="el-icon-date"></i> 本周({{theWeek.thisWeek}})</span>
10
             <span slot="label"><i class="el-icon-date"></i> 本周({{theWeek.thisWeek}})</span>
12
         </el-tab-pane>
11
         </el-tab-pane>
13
         <el-tab-pane name="nextWeek">
12
         <el-tab-pane name="nextWeek">
14
             <span slot="label"><i class="el-icon-date"></i> 下一周({{theWeek.nextWeek}})</span>
13
             <span slot="label"><i class="el-icon-date"></i> 下一周({{theWeek.nextWeek}})</span>
15
-        </el-tab-pane> 
14
+        </el-tab-pane>
16
     </el-tabs>
15
     </el-tabs>
17
     <table-push v-if="activeName=='pushTime'"></table-push>
16
     <table-push v-if="activeName=='pushTime'"></table-push>
18
     <!-- <table-weeks v-else :week-time="activeName"> </table-weeks> -->
17
     <!-- <table-weeks v-else :week-time="activeName"> </table-weeks> -->
19
-     
18
+
20
    <table-weeks v-if="activeName == 'thisWeek'"> </table-weeks>
19
    <table-weeks v-if="activeName == 'thisWeek'"> </table-weeks>
21
    <nextTableWeeks v-if="activeName =='nextWeek'"></nextTableWeeks>
20
    <nextTableWeeks v-if="activeName =='nextWeek'"></nextTableWeeks>
22
   </div>
21
   </div>

+ 815 - 0
src/xt_pages/workforce/remind_print_setting_two.vue View File

1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button
8
+            size="small"
9
+            icon="el-icon-printer"
10
+            type="primary"
11
+            @click="printAction"
12
+            >打印</el-button
13
+          >
14
+        </el-col>
15
+      </el-row>
16
+    </div>
17
+    <div class="app-container" style="background-color: white;">
18
+      <div id="print_content">
19
+        <div class="print_main_content">
20
+          <div class="table_panel">
21
+            <div v-for="(main_collection,index) in scheduleData" :key="index" class="boxshadow"
22
+              style="page-break-after: always; box-sizing: border-box;margin: 0px 35px 30px;">
23
+              <div style="border: 1px solid black;width: 90%;"  >
24
+                <div style="margin: 5px 5px;">
25
+                  <span>
26
+                    <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
27
+                    <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
28
+                  </span>&nbsp;&nbsp;
29
+                  <span>
30
+                    <span v-if="main_collection.patient.gender==1">男</span>
31
+                    <span v-if="main_collection.patient.gender==2">女</span>
32
+                  </span>&nbsp;&nbsp;
33
+                  <span>
34
+                    <span v-if="type ==1 && printObj.name == 1">{{getNewAge(main_collection.patient.id_card_no) }}岁</span>
35
+                    <span v-if="type ==2 && printObj.name == 1">{{getNewAge(main_collection.id_card_no) }}岁</span>
36
+                  </span>&nbsp;&nbsp;
37
+
38
+                  <!-- <span>{{getNewAge(main_collection.patient.id_card_no)  }}岁</span>&nbsp;&nbsp; -->
39
+                  <span>{{getTimes(main_collection.schedule_date)}}</span>&nbsp;&nbsp;
40
+                  <span></span>&nbsp;&nbsp;
41
+                  <span>
42
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
43
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
44
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
45
+                  </span>&nbsp;&nbsp;<span>{{ main_collection.number.number }}</span>
46
+                </div>
47
+                <div style="margin: 5px 5px;">
48
+                  <span>身高:{{ main_collection.patient.height?main_collection.patient.height:"" }} cm</span>&nbsp;&nbsp;
49
+                  <span>干体重:{{main_collection.assessmentbefor.dry_weight}}kg</span>&nbsp;&nbsp;
50
+                  <span>HCT:%</span>&nbsp;&nbsp;<span>KTV目标:</span>
51
+                </div>
52
+              </div>
53
+              <div style="height: 30px;width: 90%;border: 1px solid black;">
54
+
55
+              </div>
56
+              <div style="border: 1px solid black;width: 90%;">
57
+                <div style="display: flex;margin: 5px 5px;">
58
+                  <div style="flex: 1;">透析模式:{{getModeId(main_collection.mode_id)}}</div>
59
+                  <div style="flex: 1;">透析器/灌流器:
60
+                    {{ main_collection.dialysissolution.dialysis_strainer }}
61
+                    <span v-if="printObj.dialyzers == 1&& main_collection.dialysissolution.dialysis_dialyszers!=''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
62
+                    <span v-if="printObj.perfusion_apparatus == 1&& main_collection.dialysissolution.dialysis_irrigation!=''">{{main_collection.dialysissolution.dialysis_irrigation}}</span>
63
+                    <span v-if="main_collection.dialysissolution.dialysis_strainer!=''">{{ main_collection.dialysissolution.dialysis_strainer }}</span>
64
+                    <span v-if="main_collection.dialysissolution.dialyzer_perfusion_apparatus!=''">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
65
+                  </div>
66
+
67
+                </div>
68
+                <div style="display: flex;margin: 5px 5px;">
69
+                  <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
70
+                  <div style="flex: 1;">置换液总量:{{main_collection.prescription.displace_liqui_value}}L</div>
71
+                </div>
72
+                <div style="margin: 5px 5px;">
73
+                  <div>透析液类型:
74
+                    <span>Na:{{ main_collection.prescription.sodium }}</span>
75
+                    <span>K:{{ main_collection.prescription.kalium }}</span>
76
+                    <span>Ca:{{main_collection.prescription.calcium }}</span>
77
+                    <span>
78
+                      <span v-if="main_collection.prescription.chaptalization==0"> 不含 </span>
79
+                      <span v-if="main_collection.prescription.chaptalization>0"> 含糖:{{main_collection.prescription.chaptalization}} </span>
80
+                      HCO3:</span>
81
+                  </div>
82
+                </div>
83
+                <div style="display: flex;margin: 5px 5px;">
84
+                  <div style="flex: 1;">超滤曲线:</div>
85
+                  <div style="flex: 1;">Na曲线:</div>
86
+                </div>
87
+                <div style="margin: 5px 5px;">
88
+                  <span>抗凝方案:</span>
89
+                  <span>{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
90
+                  <span>
91
+                    首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
92
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
93
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}mg
94
+                    </span>
95
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
96
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
97
+                    </span>
98
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
99
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}mg
100
+                    </span>
101
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
102
+                    {{main_collection.dialysissolution.anticoagulant_shouji}} mg
103
+                    </span>
104
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
105
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
106
+                    </span>
107
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
108
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
109
+                    </span>
110
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
111
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
112
+                    </span>
113
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
114
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
115
+                    </span>
116
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
117
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
118
+                      </span>
119
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
120
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
121
+                    </span>
122
+                  </span>
123
+
124
+                  <span>
125
+                    维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
126
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
127
+                      mg/h
128
+                    </span>
129
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
130
+                      mg/h
131
+                    </span>
132
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
133
+                    iu/h
134
+                    </span>
135
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
136
+                      mg/h
137
+                    </span>
138
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
139
+                      mg/h
140
+                    </span>
141
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
142
+                    iu/h
143
+                    </span>
144
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
145
+                    iu/h
146
+                    </span>
147
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
148
+                      iu/h
149
+                    </span>
150
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
151
+                      iu/h
152
+                    </span>
153
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
154
+                      iu/h
155
+                      </span>
156
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
157
+                      iu/h
158
+                    </span>
159
+                  </span>
160
+
161
+                  <span>
162
+                      总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
163
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
164
+                      mg
165
+                    </span>
166
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
167
+                      mg
168
+                    </span>
169
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
170
+                      iu
171
+                    </span>
172
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
173
+                    mg
174
+                    </span>
175
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
176
+                      mg
177
+                    </span>
178
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
179
+                    iu
180
+                    </span>
181
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
182
+                      iu
183
+                    </span>
184
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
185
+                      iu
186
+                    </span>
187
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
188
+                    iu
189
+                    </span>
190
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
191
+                      iu
192
+                      </span>
193
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
194
+                    iu
195
+                    </span>
196
+                  </span>
197
+                </div>
198
+                <div style="margin: 5px 5px;">
199
+                  血管通路:{{getBloodAccess(main_collection.assessmentbefor.blood_access_part_opera_id)}}
200
+                </div>
201
+              </div>
202
+              <div style="border: 1px solid black;width: 90%;">
203
+                <div style="margin: 5px 5px;">高危因素:{{ main_collection.prescription.remark }}</div>
204
+              </div>
205
+            </div>
206
+          </div>
207
+        </div>
208
+      </div>
209
+    </div>
210
+  </div>
211
+</template>
212
+
213
+<script>
214
+  import { getScheduleList,getPrintList,getNextScheduleWeekDayOne } from '@/api/schedule'
215
+  import { parseTime } from '@/utils'
216
+  import { uParseTime } from '@/utils/tools'
217
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
218
+  import { getDataConfig } from '@/utils/data'
219
+  import print from 'print-js'
220
+  const moment = require('moment')
221
+  export default {
222
+    name: 'SchedulePrint',
223
+    data() {
224
+      return {
225
+        crumbs: [
226
+          { path: false, name: '排班提醒' },
227
+          { path: false, name: '排班提醒打印' }
228
+        ],
229
+        scheduleData:[],
230
+        week_type: 0,
231
+        day:'',
232
+        td_1_width: '10%',
233
+        td_2_width: '10%',
234
+        td_3_width: '25%',
235
+        td_4_width: '45%',
236
+        modeOptions: null,
237
+        anticoagulants_confit:null,
238
+        currentDate:'',
239
+        start_time:moment().week(moment().week() + 1).startOf('week').unix(),
240
+        end_time:moment().week(moment().week() + 1).endOf('week').unix(),
241
+        org_id:0,
242
+        now_time:0,
243
+        zone:"",
244
+        pre_status:0,
245
+        printObj:{},
246
+        type:1,
247
+        printDate:'',
248
+        blood_access_part_opera:[],
249
+      }
250
+    },
251
+    components: {
252
+      BreadCrumb
253
+    },
254
+    created() {
255
+     this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
256
+     this.type = this.$route.query.type
257
+     this.getPrintList()
258
+     this.org_id = this.$store.getters.xt_user.org.id
259
+     console.log("机构ID",this.org_id)
260
+     this.currentDate = this.getCurrentDate()
261
+     console.log("打印时间----------------------------",this.currentDate)
262
+    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
263
+    this.modeOptions = this.$store.getters.treatment_mode
264
+    this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
265
+    this.week_type = this.$route.query.week_type
266
+    this.week_time  = this.$route.query.week_time
267
+    this.zone = this.$route.query.zone
268
+    this.pre_status = this.$route.query.prestatus
269
+
270
+    if(parseInt(this.$route.query.type) == 1){
271
+      const params = {
272
+          week_type:this.week_type,
273
+          week_time:this.week_time,
274
+          zone:this.zone,
275
+        }
276
+       console.log("params",params)
277
+       getScheduleList(params).then(response=>{
278
+         if(response.data.state ==1){
279
+           var list = response.data.data.list
280
+
281
+           for(let i=0;i<list.length;i++){
282
+              list[i].sort = list[i].number.sort
283
+           }
284
+           var arr = list.sort(this.compare('sort'))
285
+           console.log("arr--------",arr)
286
+           this.scheduleData = arr
287
+
288
+             let a = response.data.data.day
289
+              console.log("a",a)
290
+              var myDate = new Date(a);
291
+              var year = myDate.getFullYear(); //年
292
+              var month = myDate.getMonth() + 1; //月
293
+              var day = myDate.getDate(); //日
294
+              var days = myDate.getDay();
295
+              switch(days) {
296
+              case 1:
297
+                days = '星期一';
298
+                break;
299
+              case 2:
300
+                days = '星期二';
301
+                break;
302
+              case 3:
303
+                days = '星期三';
304
+                break;
305
+              case 4:
306
+                days = '星期四';
307
+                break;
308
+              case 5:
309
+                days = '星期五';
310
+                break;
311
+              case 6:
312
+                days = '星期六';
313
+                break;
314
+              case 0:
315
+                days = '星期日';
316
+                break;
317
+          }
318
+          var str = year + "年" + month + "月" + day + "日  ";
319
+          this.currentDate = str
320
+          }
321
+       })
322
+
323
+      var now_time = parseInt(this.week_type) * 86400 + this.start_time
324
+      console.log("now",now_time)
325
+      this.now_time = now_time
326
+    }
327
+    if(parseInt(this.$route.query.type) == 2){
328
+       this.getNextScheduleWeekDay()
329
+    }
330
+
331
+    },
332
+    methods: {
333
+      getAdvice:function(doctor_advice) {
334
+        if (doctor_advice != null) {
335
+
336
+        let name = ""
337
+        for (let i = 0; i< doctor_advice.length; i++) {
338
+
339
+          let prescribing_number = ''
340
+          let single_dose = ''
341
+          let drug_spec = ''
342
+
343
+          if (doctor_advice[i].prescribing_number > 0) {
344
+            prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
345
+          }
346
+          if (doctor_advice[i].single_dose > 0) {
347
+            single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
348
+          }
349
+
350
+          if (doctor_advice[i].drug_spec > 0) {
351
+            drug_spec = doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
352
+          }
353
+
354
+          name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
355
+
356
+          if (doctor_advice[i].child.length > 0) {
357
+
358
+            for (let a = 0; a < doctor_advice[i].child.length; a++) {
359
+
360
+              if (doctor_advice[i].child[a].prescribing_number > 0) {
361
+                doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
362
+              } else {
363
+                doctor_advice[i].child[a]['presc'] = ''
364
+              }
365
+
366
+              if (doctor_advice[i].child[a].single_dose > 0) {
367
+                doctor_advice[i].child[a]['single'] = " " + ' 单次用量 ' + " " + doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
368
+              } else {
369
+                doctor_advice[i].child[a]['single'] = ''
370
+              }
371
+
372
+              name = name + "▲" + doctor_advice[i].child[a].advice_name + ""
373
+                + doctor_advice[i].child[a].advice_desc
374
+                + doctor_advice[i].child[a].drug_spec_unit
375
+                + doctor_advice[i].child[a].presc
376
+                + doctor_advice[i].child[a].single + "\n"
377
+            }
378
+
379
+          }
380
+        }
381
+          return name
382
+
383
+
384
+        }
385
+
386
+      },
387
+      printAction: function() {
388
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel {font-size:25px } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
389
+        // const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 170px;} @page {margin-top:10px;}}'
390
+          printJS({
391
+            printable: 'print_content',
392
+            type: 'html',
393
+            documentTitle: '  ',
394
+            style: style,
395
+            scanStyles: false
396
+          })
397
+
398
+      }, getSchedulesType: function(type) {
399
+        let type_name = ''
400
+        switch (type) {
401
+          case 1:
402
+            type_name = '上午'
403
+            break
404
+          case 2:
405
+            type_name = '下午'
406
+            break
407
+          case 3:
408
+            type_name = '晚上'
409
+            break
410
+        }
411
+        return type_name
412
+      },
413
+      getCurrentDate: function () {
414
+        console.log(this.$route.query.week_type)
415
+        var myDate = new Date();
416
+        var year = myDate.getFullYear(); //年
417
+        var month = myDate.getMonth() + 1; //月
418
+        var day = myDate.getDate() + 7; //日
419
+        var newday = myDate.getDay();
420
+        var days = parseInt(this.$route.query.week_type);
421
+        var dayNum = parseInt(this.$route.query.week_type);
422
+        switch(days) {
423
+          case 1:
424
+            days = '星期一';
425
+            break;
426
+          case 2:
427
+            days = '星期二';
428
+            break;
429
+          case 3:
430
+            days = '星期三';
431
+            break;
432
+          case 4:
433
+            days = '星期四';
434
+            break;
435
+          case 5:
436
+            days = '星期五';
437
+            break;
438
+          case 6:
439
+            days = '星期六';
440
+            break;
441
+          case 7:
442
+            days = '星期日';
443
+            break;
444
+        }
445
+        if(newday > dayNum){
446
+          let lastDay = day - (newday - dayNum)
447
+          console.log("lastDay1",lastDay)
448
+          var str = year + "年" + month + "月" + lastDay + "日  " + days;
449
+          return str;
450
+        }else if(newday < dayNum){
451
+          let lastDay = day + (dayNum - newday)
452
+          console.log("lastDay2",lastDay)
453
+          var str = year + "年" + month + "月" + lastDay + "日  " + days;
454
+          return str;
455
+        }else{
456
+          var str = year + "年" + month + "月" + day + "日  " + days;
457
+          return str;
458
+        }
459
+
460
+
461
+      },
462
+
463
+       compare(property) {
464
+       return function (a, b) {
465
+          var value1 = a[property];
466
+          var value2 = b[property];
467
+          return value1 - value2;
468
+      }
469
+     },
470
+     getTime(val) {
471
+         if(val == ""){
472
+          return ""
473
+         }else {
474
+          return uParseTime(val, '{y}-{m}-{d}')
475
+         }
476
+      },
477
+      getTimes(time) {
478
+        return uParseTime(time, '{y}-{m}-{d}')
479
+      },
480
+     getPrintList(){
481
+      getPrintList().then(response=>{
482
+         if(response.data.state == 1){
483
+           var list = response.data.data.list
484
+           console.log("打印设置",list)
485
+           this.printObj = list
486
+         }
487
+      })
488
+     },
489
+     getTimestamp(time) { //把时间日期转成时间戳
490
+        return (new Date(time)).getTime()
491
+    },
492
+    getNextScheduleWeekDay() {
493
+        const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
494
+        const end = moment().weekday(7).format('YYYY-MM-DD')
495
+        var zone = this.zone
496
+        // var newArr = []
497
+        // for(let i=0;i<this.zoneList.length;i++){
498
+        //    newArr.push(this.zoneList[i].id)
499
+        // }
500
+        // var arr = newArr.join(",")
501
+        // var str = ""
502
+        // if(this.zone == 0){
503
+        //    str = arr
504
+        // }
505
+        // if(zone != 0){
506
+        //   str = zone.join(",")
507
+        // }
508
+        // var now_time = parseInt(this.week_type) * 86400 + this.start_time
509
+        let weekOfDay = parseInt(moment().format('E'))
510
+        let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
511
+        var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
512
+        const params = {
513
+          start_time:moment().week(moment().week() + 1).startOf('week').unix(),
514
+          end_time:moment().week(moment().week() + 1).endOf('week').unix(),
515
+          week_type:this.week_type,
516
+          week_time:this.week_time,
517
+          zone:this.zone,
518
+          record_date:this.getTime(now_time)
519
+        }
520
+        // const params = {
521
+        //   start_time:1609603200,
522
+        //   end_time:1610208000,
523
+        //   week_type:this.week_type,
524
+        //   week_time:this.week_time,
525
+        // }
526
+      console.log("params",params)
527
+      getNextScheduleWeekDayOne(params).then(response => {
528
+        this.scheduleData = [];
529
+        if (response.data.state == 1) {
530
+          var scheduleData = response.data.data.schedule;
531
+
532
+          for(let i=0;i<scheduleData.length;i++){
533
+              scheduleData[i].sort = scheduleData[i].number.sort
534
+          }
535
+            var arr =   scheduleData.sort(this.compare('sort'))
536
+            console.log("元旦快乐",arr)
537
+            this.scheduleData = arr
538
+
539
+            // var newList = []
540
+            // for(let i=0;i<scheduleData.length;i++){
541
+            //   if(scheduleData.prescription.id > 0){
542
+            //      newList.push(scheduleData[i])
543
+            //   }
544
+            // }
545
+            // var arr =   newList.sort(this.compare('sort'))
546
+            // console.log("元旦快乐",arr)
547
+            // this.scheduleData = arr
548
+        } else {
549
+          this.$message.error("网络错误");
550
+          return false;
551
+        }
552
+      });
553
+     },
554
+    getAnticoagulant(name){
555
+
556
+      if(name == 0){
557
+         name = ""
558
+       }
559
+       if(name == 1){
560
+         name = "无肝素"
561
+       }
562
+       if(name == 2){
563
+         name = "普通肝素"
564
+       }
565
+       if(name == 3){
566
+         name ="低分子肝素"
567
+       }
568
+
569
+       if(name == 4){
570
+         name = "阿加曲班"
571
+       }
572
+        if(name == 5){
573
+         name = "枸橼酸钠"
574
+       }
575
+        if(name == 6){
576
+         name = "低分子肝素钙"
577
+       }
578
+        if(name == 7){
579
+         name = "低分子肝素钠"
580
+       }
581
+       if(name == 8){
582
+         name = "依诺肝素"
583
+       }
584
+
585
+       if(name == 9){
586
+         name = "达肝素"
587
+       }
588
+       if(name == 10){
589
+         name = "体外抗凝"
590
+       }
591
+
592
+       if(name == 11){
593
+         name = "那屈肝素"
594
+       }
595
+
596
+       if(name == 12){
597
+         name = "无抗凝剂"
598
+       }
599
+       if(name == 13){
600
+         name = "那屈肝素钙"
601
+       }
602
+
603
+
604
+
605
+       return name
606
+     },
607
+     getAnticoagulantZonliang(arr,mode_id){
608
+       var name = 0
609
+       if(arr.length > 0){
610
+         for(let i=0;i<arr.length;i++){
611
+          if(mode_id == arr[i].mode_id){
612
+            name = arr[i].anticoagulant_zongliang
613
+          }
614
+        }
615
+       }
616
+       return name
617
+     },
618
+      getNewAge(UUserCard) {
619
+      if (UUserCard != null && UUserCard != '') {
620
+        // 获取年龄
621
+        var myDate = new Date()
622
+        var month = myDate.getMonth() + 1
623
+        var day = myDate.getDate()
624
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
625
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
626
+          age++
627
+        }
628
+        return age
629
+      }
630
+      },
631
+      getModeId(val){
632
+      var name =""
633
+      if(val == 1){
634
+        name ="HD"
635
+      }
636
+      if(val == 2){
637
+        name ="HDF"
638
+      }
639
+      if(val == 3){
640
+        name ="HD+HP"
641
+      }
642
+      if(val == 4){
643
+        name ="HP"
644
+      }
645
+      if(val == 5){
646
+        name ="HF"
647
+      }
648
+      if(val == 6){
649
+        name ="SCUF"
650
+      }
651
+      if(val == 7){
652
+        name ="IUF"
653
+      }
654
+      if(val == 8){
655
+        name ="IUF"
656
+      }
657
+      if(val == 9){
658
+        name ="HFHD+HP"
659
+      }
660
+      if(val == 10){
661
+        name ="HFHD+HP"
662
+      }
663
+      if(val == 11){
664
+        name ="HFR"
665
+      }
666
+      if(val == 12){
667
+        name ="HDF+HP"
668
+      }
669
+      if(val == 13){
670
+        name ="CRRT"
671
+      }
672
+      if(val == 14){
673
+        name ="腹水回输"
674
+      }
675
+      if(val == 19){
676
+        name ="IUF+HD"
677
+      }
678
+      if(val == 20){
679
+        name ="UF"
680
+      }
681
+      if(val == 21){
682
+        name ="HD+"
683
+      }
684
+      if(val == 22){
685
+        name ="血浆胆红素吸附+HDF"
686
+      }
687
+      if(val == 23){
688
+        name ="血浆胆红素吸附"
689
+      }
690
+      if(val == 24){
691
+        name ="I-HDF"
692
+      }
693
+      if(val == 25){
694
+        name ="HD高通"
695
+      }
696
+      if(val == 26){
697
+        name ="CVVH"
698
+      }
699
+      if(val == 27){
700
+        name ="CVVHD"
701
+      }
702
+      if(val == 28){
703
+        name ="CVVHDF"
704
+      }
705
+      if(val == 29){
706
+        name ="PE"
707
+      }
708
+      if(val == 30){
709
+        name ="血浆胆红素吸附+HP"
710
+      }
711
+      if(val == 31){
712
+        name ="HPD"
713
+      }
714
+      if(val == 32){
715
+        name ="HDP"
716
+      }
717
+      return name
718
+      },
719
+      getBloodAccess(id){
720
+        var name = ""
721
+        for(let i=0;i<this.blood_access_part_opera.length;i++){
722
+          if(id == this.blood_access_part_opera[i].id){
723
+             name = this.blood_access_part_opera[i].name
724
+          }
725
+        }
726
+        return name
727
+      }
728
+    }
729
+  }
730
+</script>
731
+
732
+<style rel="stylesheet/scss" lang="scss" scoped>
733
+.print_main_content {
734
+  background-color: white;
735
+  max-width: 1500px;
736
+  margin: 0 auto;
737
+  padding: 0 0 20px 0;
738
+
739
+  .order_title_panl {
740
+    text-align: center;
741
+
742
+    .main_title {
743
+      font-size: 18px;
744
+      line-height: 40px;
745
+      font-weight: 500;
746
+    }
747
+  }
748
+  .table_panel {
749
+    .boxshadow{
750
+      box-shadow: 0 0 5px gray;
751
+      padding: 10px 20px;
752
+    }
753
+    .table {
754
+      width: 100%;
755
+      border: 1px solid;
756
+      border-collapse: collapse;
757
+      padding: 2px;
758
+
759
+      thead {
760
+        tr {
761
+          td {
762
+            border: 1px solid;
763
+            text-align: center;
764
+            font-size: 20px;
765
+            padding: 15px 5px;
766
+          }
767
+        }
768
+      }
769
+      tbody {
770
+        tr {
771
+          td {
772
+            border: 1px solid;
773
+            text-align: center;
774
+            font-size: 18px;
775
+            padding: 10px 5px;
776
+
777
+            .proj {
778
+              padding: 5px 0;
779
+              text-align: left;
780
+
781
+              .proj_title {
782
+                font-size: 16px;
783
+                font-weight: 500;
784
+                line-height: 25px;
785
+              }
786
+
787
+              .proj_item {
788
+                font-size: 15px;
789
+                line-height: 20px;
790
+
791
+                .zone_name {
792
+                  font-weight: 500;
793
+                }
794
+              }
795
+            }
796
+          }
797
+        }
798
+      }
799
+    }
800
+  }
801
+}
802
+.signPrint{
803
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
804
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
805
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
806
+  margin-bottom: 20px;
807
+  padding: 20px 10px;
808
+}
809
+.printCell{
810
+  span{
811
+    display: inline-block;
812
+    width: 180px;
813
+  }
814
+}
815
+</style>