Browse Source

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

陈少旭 1 week ago
parent
commit
28ae66d949
35 changed files with 3386 additions and 900 deletions
  1. 7 0
      src/api/doctor.js
  2. 1 1
      src/api/patient.js
  3. 11 0
      src/router/modules/dialysis.js
  4. 59 46
      src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue
  5. 6 0
      src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue
  6. 51 70
      src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue
  7. 1 0
      src/xt_pages/dialysis/details/index.vue
  8. 1 0
      src/xt_pages/dialysis/details/indexs.vue
  9. 2 3
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  10. 34 0
      src/xt_pages/dialysis/newDoctorAdvice.vue
  11. 578 0
      src/xt_pages/dialysis/nurseInspectionPrint.vue
  12. 43 30
      src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue
  13. 24 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  14. 70 45
      src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue
  15. 7 3
      src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue
  16. 5 5
      src/xt_pages/outpatientCharges/invoicePrint.vue
  17. 4 3
      src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue
  18. 73 36
      src/xt_pages/sign/lineUp.vue
  19. 4 3
      src/xt_pages/stock/drugs/components/expiryDateDrugQuery.vue
  20. 2 2
      src/xt_pages/stock/drugs/components/expiryDateDrugQueryPrint.vue
  21. 2 0
      src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue
  22. 67 12
      src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue
  23. 55 12
      src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue
  24. 32 10
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  25. 29 9
      src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue
  26. 67 20
      src/xt_pages/user/Informed/Informedconsent.vue
  27. 266 0
      src/xt_pages/user/Informed/components/Surrender_informed.vue
  28. 9 9
      src/xt_pages/user/components/PatientSidebar.vue
  29. 559 78
      src/xt_pages/user/courseOfDisease_new.vue
  30. 126 4
      src/xt_pages/user/inspection.vue
  31. 5 7
      src/xt_pages/user/physiqueprinting.vue
  32. 440 55
      src/xt_pages/user/sickHistory_new.vue
  33. 356 50
      src/xt_pages/user/text_content.vue
  34. 389 386
      src/xt_pages/workforce/remind_print_setting_one.vue
  35. 1 1
      src/xt_permission.js

+ 7 - 0
src/api/doctor.js View File

@@ -13,3 +13,10 @@ export function fetchAllAdminUsers() {
13 13
   })
14 14
 }
15 15
 
16
+
17
+export function fetchMoibleAllDoctorAndNurse(){
18
+  return request({
19
+    url:"/api/mobilealldoctors",
20
+    method:"Get",
21
+  })
22
+}

+ 1 - 1
src/api/patient.js View File

@@ -1282,7 +1282,7 @@ export function modifySickHistoryTemplate(data){
1282 1282
 export function deleteSickHistoryTempalte(id,params){
1283 1283
 
1284 1284
   return request({
1285
-    url:"/api/patient/deletesickhistorytemplate?id="+id,
1285
+    url:"/api/patient/deletesickhistorytemplate?template_id="+id,
1286 1286
     method:"get",
1287 1287
     params:params
1288 1288
   })

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

@@ -131,6 +131,17 @@ export default {
131 131
         noCache: true
132 132
       }
133 133
     },
134
+    {
135
+      path: '/dialysis/nurseInspection/print',
136
+      component: () => import('@/xt_pages/dialysis/nurseInspectionPrint'),
137
+      name: '透析项目打印',
138
+      hidden: true,
139
+      is_menu: false,
140
+      meta: {
141
+        title: '透析项目打印',
142
+        noCache: true
143
+      }
144
+    },
134 145
 
135 146
     {
136 147
       path: '/dialysis/doctorAdviceStaticPrint',

+ 59 - 46
src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue View File

@@ -191,21 +191,32 @@
191 191
                         次/分
192 192
                       </div>
193 193
                       <div class="inline_block" style="flex: 1;">
194
-                        血压:
195
-                        <div class="under_line" style="width: 50px; text-align: center">
196
-                          {{
197
-                            record.assessment_before_dislysis.systolic_blood_pressure
198
-                              ? record.assessment_before_dislysis.systolic_blood_pressure
199
-                              : ""
200
-                          }}
194
+                        血压:       
195
+                        <div class="inline_block" v-if="record.assessment_before_dislysis.systolic_blood_pressure!='' && 
196
+                          record.assessment_before_dislysis.diastolic_blood_pressure !=''"
197
+                        >
198
+                          <div class="under_line" style="width: 50px; text-align: center">
199
+                              {{
200
+                                record.assessment_before_dislysis.systolic_blood_pressure
201
+                                  ? record.assessment_before_dislysis.systolic_blood_pressure
202
+                                  : ""
203
+                              }}
204
+                          </div>
205
+                          /
206
+                          <div class="under_line" style="width: 50px; text-align: center">
207
+                            {{
208
+                              record.assessment_before_dislysis.diastolic_blood_pressure
209
+                                ? record.assessment_before_dislysis.diastolic_blood_pressure
210
+                                : ""
211
+                            }}
212
+                          </div>
201 213
                         </div>
202
-                        /
203
-                        <div class="under_line" style="width: 50px; text-align: center">
204
-                          {{
205
-                            record.assessment_before_dislysis.diastolic_blood_pressure
206
-                              ? record.assessment_before_dislysis.diastolic_blood_pressure
207
-                              : ""
208
-                          }}
214
+                        <div class="inline_block" v-else>
215
+                          <div class="under_line" 
216
+                            style="width: 100px; text-align: center"
217
+                          >
218
+                            拒测血压
219
+                          </div>
209 220
                         </div>
210 221
                         mmHg
211 222
                       </div>
@@ -701,7 +712,6 @@
701 712
                     </table>
702 713
                   </td>
703 714
                 </tr>
704
-
705 715
                 <tr>
706 716
                   <td style="padding: 0; position: relative" colspan="2">
707 717
                     <table class="inside_table">
@@ -1033,38 +1043,38 @@
1033 1043
                       </div>
1034 1044
                       <div class="inline_block" style="flex: 1">
1035 1045
                         血压:
1036
-                        <div class="under_line"
1037
-                          style="width: 50px; text-align: center"
1046
+                        <div class="inline_block" v-if="record.assessment_after_dislysis.systolic_blood_pressure!='' && 
1047
+                          record.assessment_after_dislysis.diastolic_blood_pressure !=''"
1038 1048
                         >
1039
-                          <!-- {{
1040
-                            record.assessment_after_dislysis.systolic_blood_pressure
1041
-                              ? record.assessment_after_dislysis.systolic_blood_pressure
1042
-                              : "/"
1043
-                          }} -->
1044
-                          <span v-if="record.monitor_records.length>0">
1049
+                          <div class="under_line" style="width: 50px; text-align: center">
1050
+                              {{
1051
+                                record.assessment_after_dislysis.systolic_blood_pressure
1052
+                                  ? record.assessment_after_dislysis.systolic_blood_pressure
1053
+                                  : ""
1054
+                              }}
1055
+                              <!-- <span v-if="record.monitor_records.length>0">
1056
+                                {{
1057
+                                  record.monitor_records[record.monitor_records.length-1].systolic_blood_pressure ?
1058
+                                  record.monitor_records[record.monitor_records.length-1].systolic_blood_pressure :''
1059
+                                }}
1060
+                              </span>
1061
+                              <span v-else></span> -->
1062
+                          </div>
1063
+                          /
1064
+                          <div class="under_line" style="width: 50px; text-align: center">
1045 1065
                             {{
1046
-                              record.monitor_records[record.monitor_records.length-1].systolic_blood_pressure ?
1047
-                              record.monitor_records[record.monitor_records.length-1].systolic_blood_pressure :''
1066
+                              record.assessment_after_dislysis.diastolic_blood_pressure
1067
+                                ? record.assessment_after_dislysis.diastolic_blood_pressure
1068
+                                : ""
1048 1069
                             }}
1049
-                          </span>
1050
-                          <span v-else></span>
1070
+                          </div>
1051 1071
                         </div>
1052
-                        /
1053
-                        <div class="under_line"
1054
-                          style="width: 50px; text-align: center"
1055
-                        >
1056
-                          <!-- {{
1057
-                             record.assessment_after_dislysis.diastolic_blood_pressure
1058
-                              ?  record.assessment_after_dislysis.diastolic_blood_pressure
1059
-                              : "/"
1060
-                          }} -->
1061
-                          <span v-if="record.monitor_records.length>0">
1062
-                            {{
1063
-                              record.monitor_records[record.monitor_records.length-1].diastolic_blood_pressure ?
1064
-                              record.monitor_records[record.monitor_records.length-1].diastolic_blood_pressure : ''
1065
-                            }}
1066
-                          </span>
1067
-                          <span v-else></span>
1072
+                        <div class="inline_block" v-else>
1073
+                          <div class="under_line" 
1074
+                            style="width: 100px; text-align: center"
1075
+                          >
1076
+                            拒测血压
1077
+                          </div>
1068 1078
                         </div>
1069 1079
                         mmHg
1070 1080
                       </div>
@@ -1193,12 +1203,15 @@
1193 1203
                         <div class="under_line"
1194 1204
                           style="width: 70px; text-align: center"
1195 1205
                         >
1196
-                          <span v-if="record.monitor_records !='' && record.monitor_records[record.monitor_records.length - 1].ultrafiltration_volume !=''">
1206
+                          <!-- <span v-if="record.monitor_records !='' && record.monitor_records[record.monitor_records.length - 1].ultrafiltration_volume !=''">
1197 1207
                             {{ (record.monitor_records[record.monitor_records.length - 1].ultrafiltration_volume/1000).toFixed(1) }}
1208
+                          </span> -->
1209
+                          <span v-if="record.assessment_after_dislysis.actual_ultrafiltration !=''">
1210
+                            {{ record.assessment_after_dislysis.actual_ultrafiltration>100
1211
+                              ? (record.assessment_after_dislysis.actual_ultrafiltration/1000).toFixed(1) : record.assessment_after_dislysis.actual_ultrafiltration }}
1198 1212
                           </span>
1199 1213
                           <span v-else>
1200
-                            {{ record.assessment_after_dislysis.actual_ultrafiltration
1201
-                              ? record.assessment_after_dislysis.actual_ultrafiltration : '' }}
1214
+
1202 1215
                           </span>
1203 1216
                           <!-- {{
1204 1217
                             record.assessment_after_dislysis.actual_ultrafiltration

+ 6 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue View File

@@ -273,6 +273,12 @@
273 273
               <span v-if="record.assessment_before_dislysis.is_hemorrhage != 2 && record.assessment_before_dislysis.is_hemorrhage != 1">/</span>
274 274
             </div>
275 275
           </div>
276
+          <div class="row">
277
+            备注
278
+            <div class="inline_block under_line" style="width:90%;text-align: center;white-space: normal;">
279
+              {{ record.prescription.remark ? record.prescription.remark : '/'}}
280
+            </div>
281
+          </div>
276 282
           <div class="row">
277 283
             上机医生
278 284
             <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">

+ 51 - 70
src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue View File

@@ -372,7 +372,7 @@
372 372
                       class="row"
373 373
                       style="padding: 2px 0; line-height: 23px; display: flex"
374 374
                     >
375
-                      <div class="inline_block">
375
+                      <div class="inline_block" style="flex: 1;">
376 376
                         血管通路:
377 377
                         <div
378 378
                           class="under_line"
@@ -401,7 +401,7 @@
401 401
                         内瘘:
402 402
                         <div
403 403
                           class="under_line"
404
-                          style="width: 120px; text-align: center"
404
+                          style="width: 80%; text-align: center"
405 405
                         >
406 406
                           {{
407 407
                             record.assessment_before_dislysis &&
@@ -415,12 +415,12 @@
415 415
 
416 416
                       <div
417 417
                         class="inline_block"
418
-                        style="margin-left: 10px; flex: 1"
418
+                        style="flex: 1"
419 419
                       >
420 420
                         导管:
421 421
                         <div
422 422
                           class="under_line"
423
-                          style="width: 120px; text-align: center"
423
+                          style="width: 80%; text-align: center"
424 424
                         >
425 425
                           {{
426 426
                             record.assessment_before_dislysis &&
@@ -1041,33 +1041,7 @@
1041 1041
                           class="under_line"
1042 1042
                           style="width: 150px; text-align: center"
1043 1043
                         >
1044
-                          <span v-if="record.prescription.anticoagulant == 0"
1045
-                            >&nbsp;/</span
1046
-                          >
1047
-                          <span v-if="record.prescription.anticoagulant == 1"
1048
-                            >&nbsp;无肝素</span
1049
-                          >
1050
-                          <span v-if="record.prescription.anticoagulant == 2"
1051
-                            >&nbsp;普通肝素</span
1052
-                          >
1053
-                          <span v-if="record.prescription.anticoagulant == 3"
1054
-                            >&nbsp;低分子肝素</span
1055
-                          >
1056
-                          <span v-if="record.prescription.anticoagulant == 4"
1057
-                            >&nbsp;阿加曲班</span
1058
-                          >
1059
-                          <span v-if="record.prescription.anticoagulant == 5"
1060
-                            >&nbsp;枸橼酸钠</span
1061
-                          >
1062
-                          <span v-if="record.prescription.anticoagulant == 6"
1063
-                            >&nbsp;低分子肝素钙</span
1064
-                          >
1065
-                          <span v-if="record.prescription.anticoagulant == 7"
1066
-                            >&nbsp;低分子肝素钠</span
1067
-                          >
1068
-                          <span v-if="record.prescription.anticoagulant == 8"
1069
-                            >&nbsp;依诺肝素</span
1070
-                          >
1044
+                          {{ getvalue(record.prescription.anticoagulant) }}
1071 1045
                         </div>
1072 1046
                       </div>
1073 1047
                       <div class="inline_block" style="margin-left: 20px">
@@ -1083,18 +1057,8 @@
1083 1057
                               : "/"
1084 1058
                           }}
1085 1059
                         </div>
1086
-                        <span v-if="record.prescription.anticoagulant == 4"
1087
-                          >mg</span
1088
-                        >
1089
-                        <span v-if="record.prescription.anticoagulant == 3"
1090
-                          >iu</span
1091
-                        >
1092
-                        <span v-if="record.prescription.anticoagulant == 2"
1093
-                          >iu</span
1094
-                        >
1095
-                        <span v-if="record.prescription.anticoagulant == 1"
1096
-                          >mg</span
1097
-                        >
1060
+                        {{ getshouji(record.prescription.anticoagulant) }}
1061
+                       
1098 1062
                       </div>
1099 1063
                       <div class="inline_block" style="margin-left: 20px">
1100 1064
                         维持:
@@ -1128,21 +1092,8 @@
1128 1092
                               : 0
1129 1093
                           }}
1130 1094
                         </div>
1131
-                        <span v-if="record.prescription.anticoagulant == 5"
1132
-                          >ml/h</span
1133
-                        >
1134
-                        <span v-if="record.prescription.anticoagulant == 4"
1135
-                          >mg/h</span
1136
-                        >
1137
-                        <span v-if="record.prescription.anticoagulant == 3"
1138
-                          >iu/h</span
1139
-                        >
1140
-                        <span v-if="record.prescription.anticoagulant == 2"
1141
-                          >iu/h</span
1142
-                        >
1143
-                        <span v-if="record.prescription.anticoagulant == 1"
1144
-                          >mg/h</span
1145
-                        >
1095
+                        {{ getweichi(record.prescription.anticoagulant) }}
1096
+                      
1146 1097
                       </div>
1147 1098
                       <div class="inline_block" style="margin-left: 20px">
1148 1099
                         总量:
@@ -1157,18 +1108,8 @@
1157 1108
                               : "/"
1158 1109
                           }}
1159 1110
                         </div>
1160
-                        <span v-if="record.prescription.anticoagulant == 4"
1161
-                          >mg</span
1162
-                        >
1163
-                        <span v-if="record.prescription.anticoagulant == 3"
1164
-                          >iu</span
1165
-                        >
1166
-                        <span v-if="record.prescription.anticoagulant == 2"
1167
-                          >iu</span
1168
-                        >
1169
-                        <span v-if="record.prescription.anticoagulant == 1"
1170
-                          >mg</span
1171
-                        >
1111
+                        {{ getzongliang(record.prescription.anticoagulant) }}
1112
+                        
1172 1113
                       </div>
1173 1114
                     </div>
1174 1115
                     <div
@@ -3063,6 +3004,46 @@ export default {
3063 3004
     getNumber: function (record) {
3064 3005
       console.log(record);
3065 3006
     },
3007
+    getvalue(id){
3008
+      const options = this.anticoagulantsConfit
3009
+      if(id!=0){
3010
+        for(let i in options){
3011
+          if(options[i].id == id){
3012
+            return options[i].name
3013
+          }
3014
+        }
3015
+      }
3016
+    },
3017
+    getshouji(id){
3018
+      const options = this.anticoagulantsConfit
3019
+      if(id!=0){
3020
+        for(let i in options){
3021
+          if(options[i].id == id){
3022
+            return options[i].shouji_unit
3023
+          }
3024
+        }
3025
+      }
3026
+    },
3027
+    getweichi(id){
3028
+      const options = this.anticoagulantsConfit
3029
+      if(id!=0){
3030
+        for(let i in options){
3031
+          if(options[i].id == id){
3032
+            return options[i].weichi_unit
3033
+          }
3034
+        }
3035
+      }
3036
+    },
3037
+    getzongliang(id){
3038
+      const options = this.anticoagulantsConfit
3039
+      if(id!=0){
3040
+        for(let i in options){
3041
+          if(options[i].id == id){
3042
+            return options[i].zongliang_unit
3043
+          }
3044
+        }
3045
+      }
3046
+    }
3066 3047
   },
3067 3048
 };
3068 3049
 </script>

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

@@ -3069,6 +3069,7 @@ export default {
3069 3069
        var params = {
3070 3070
          patient_id:this.$route.query.patient_id,
3071 3071
          record_date:this.$route.query.date,
3072
+         mode_id:this.$route.query.mode_id,
3072 3073
        }
3073 3074
       getInitPrintData(params).then(response=>{
3074 3075
         if(response.data.state == 1){

+ 1 - 0
src/xt_pages/dialysis/details/indexs.vue View File

@@ -1912,6 +1912,7 @@ export default {
1912 1912
        var params = {
1913 1913
          patient_id:this.$route.query.patient_id,
1914 1914
          record_date:this.$route.query.date,
1915
+         mode_id:this.$route.query.mode_id,
1915 1916
        }
1916 1917
       getInitPrintData(params).then(response=>{
1917 1918
         if(response.data.state == 1){

+ 2 - 3
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -1934,7 +1934,6 @@ export default {
1934 1934
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1935 1935
       // const style3 =
1936 1936
       //   '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
1937
-      //
1938 1937
       const style4 =
1939 1938
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:18px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:18px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:18px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:20px;height:20px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:23px;font-weight: 200;}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1940 1939
       const style5 =
@@ -2701,12 +2700,12 @@ export default {
2701 2700
           this.patient_id = response.data.data.patientInfo.DialysisSchedule.patient_id
2702 2701
           this.patient_name = response.data.data.patientInfo.name
2703 2702
 
2704
-          // if(this.org_id !=10206 ){//&& this.org_id !=0
2703
+          // if(this.org_id !=0){//&& this.org_id !=0
2705 2704
             this.org_template_info.template_id= response.data.data.org_template_info.template_id
2706 2705
             this.org_template_info = response.data.data.org_template_info;
2707 2706
           // }else{
2708 2707
           //   this.org_template_info = response.data.data.org_template_info;
2709
-          //   this.org_template_info.template_id= 82
2708
+          //   this.org_template_info.template_id= 68
2710 2709
           // }
2711 2710
 
2712 2711
 

+ 34 - 0
src/xt_pages/dialysis/newDoctorAdvice.vue View File

@@ -29,6 +29,15 @@
29 29
           type="primary"
30 30
           >项目打印
31 31
       </el-button>
32
+
33
+      <el-button
34
+          size="small"
35
+          icon="el-icon-printer"
36
+          :disabled="selecting_schs.length == 0"
37
+          @click="batchPrintActionFive"
38
+          type="primary"
39
+          >化验打印
40
+      </el-button>
32 41
     </div>
33 42
     </div>
34 43
     <div class="app-container">
@@ -1596,6 +1605,31 @@ export default {
1596 1605
        }
1597 1606
        this.$router.push({ path: "/dialysis/doctocInspection/print",query:{time: new Date(this.time).getTime(),delivery_way:name,excution_way:this.excution_way,schedulType:this.schedulType,partitionType:this.partitionType} });
1598 1607
     },
1608
+    batchPrintActionFive:function(){
1609
+      console.log("处方哈回复奥回复的话啊哈地方h")
1610
+      if(this.selecting_schs.length === 0) {
1611
+        this.$message.error("请至少选择一条需要打印的内容");
1612
+        return false;
1613
+      }
1614
+      // 模板ID为6
1615
+      var sch_ids = [];
1616
+
1617
+      for (let index = 0; index < this.selecting_schs.length; index++) {
1618
+        sch_ids.push(this.selecting_schs[index].patient_id);
1619
+      }
1620
+
1621
+      this.$store.dispatch("SetAdviceIDs", sch_ids);
1622
+       var name = ""
1623
+        for(let i=0;i<this.deliveryWay.length;i++){
1624
+            if(this.delivery_way == this.deliveryWay[i].id){
1625
+              name = this.deliveryWay[i].name
1626
+            }
1627
+        }
1628
+        if(name == '全部'){
1629
+          name = ""
1630
+       }
1631
+       this.$router.push({ path: "/dialysis/nurseInspection/print",query:{time: new Date(this.time).getTime(),delivery_way:name,excution_way:this.excution_way,schedulType:this.schedulType,partitionType:this.partitionType} });
1632
+    },
1599 1633
     signPrintAction:function(){
1600 1634
       if (this.selecting_schs.length === 0) {
1601 1635
         this.$message.error("请至少选择一条需要打印的内容");

+ 578 - 0
src/xt_pages/dialysis/nurseInspectionPrint.vue View File

@@ -0,0 +1,578 @@
1
+package dialysis
2
+<template>
3
+    <div class="main-contain">
4
+        <div class="position">
5
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
6
+        <el-row style="float:right;">
7
+            <el-col :span="24">
8
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
9
+            </el-col>
10
+        </el-row>
11
+        </div>
12
+        <div class="app-container" style="background-color: white;">
13
+            <div id="dialysisTable">
14
+                <div class="order_title_panl">
15
+                    <span class="main_title">化验项目</span>
16
+                </div>
17
+                <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
18
+                <table class="table dialysisTable" border="1" cellspacing="0" cellpadding="0">
19
+                    <tr>
20
+                    <th width="40px">姓名</th>
21
+                   
22
+                    <th width="40px">床位号</th>
23
+                 
24
+                    <th width="50px">开始时间</th>
25
+                    <th width="200px">医嘱内容</th>
26
+                    <th width="50px">执行时间</th>
27
+                    <th width="50px">执行护士</th>
28
+                    <th width="50px">校对护士</th>
29
+                    <th width="50px">校对时间</th>
30
+                    <th width="50px">开嘱医生</th>
31
+                    <th width="50px">开嘱时间</th>
32
+                    </tr>
33
+                    <template v-for="(schedules, zone_name, index) in scheduleMap">
34
+                    <tr >
35
+                        <td>{{ zone_name }}</td>
36
+                        <td></td>
37
+                        <td></td>
38
+                        <td></td>
39
+                        <td></td>
40
+                        <td></td>
41
+                        <td></td>
42
+                        <td></td>
43
+                        <td></td>
44
+                        <td></td>
45
+                    </tr>
46
+                    <template v-for="schedule in schedules">
47
+                        <template v-for="(group, group_index) in schedule.new_advice">
48
+                        <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
49
+                            <td
50
+                            v-if="advice_index == 0"
51
+                            :rowspan="group.advices.length"
52
+                            >{{ advice.parent_id == 0 ? schedule.patient.name : "" }}
53
+                            <br>
54
+                            ({{ advice.parent_id == 0 ? schedule.dialysis_no : ""}})
55
+                            <br>
56
+                            <span v-if="schedule.mode_id == 1">(HD)</span>
57
+                            <span v-if="schedule.mode_id == 2">(HDF)</span>
58
+                            <span v-if="schedule.mode_id == 3">(HD+HP)</span>
59
+                            <span v-if="schedule.mode_id == 4">(HP)</span>
60
+                            <span v-if="schedule.mode_id == 5">(HF)</span>
61
+                            <span v-if="schedule.mode_id == 6">(SCUF)</span>
62
+                            <span v-if="schedule.mode_id == 7">(IUF)</span>
63
+                            <span v-if="schedule.mode_id == 8">(HFHD)</span>
64
+                            <span v-if="schedule.mode_id == 9">(HFHD+HP)</span>
65
+                            <span v-if="schedule.mode_id == 10">(PHF)</span>
66
+                            <span v-if="schedule.mode_id == 11">(HFR)</span>
67
+                            <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
68
+                            <span v-if="schedule.mode_id == 13">(CRRT)</span>
69
+                            <span v-if="schedule.mode_id == 14">(腹水回输)</span>
70
+                            <span v-if="schedule.mode_id == 24">I-HDF</span>
71
+                            </td>
72
+                           
73
+                        
74
+                            <td>
75
+                                {{ schedule.device_number.number }}
76
+                            </td>
77
+                           
78
+                            <td v-if="advice_index == 0" :rowspan="group.advices.length">
79
+                            {{
80
+                            advice.parent_id == 0
81
+                            ? parseTime(advice.start_time, "{m}-{d} {h}:{i}")
82
+                            : ""
83
+                            }}
84
+                            </td>
85
+                            <td
86
+                            :class="
87
+                                advice.parent_id == 0
88
+                                ? 'advice_content'
89
+                                : 'subadvice_content'
90
+                            "
91
+                            >
92
+                            <span>{{ advice.advice_name }}</span>
93
+                            <span>{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span>
94
+                            <span v-if="advice.prescribing_number">
95
+                                {{ advice.prescribing_number
96
+                                }}{{ advice.prescribing_number_unit }}
97
+                            </span>
98
+                            <span v-if="advice.single_dose">
99
+                                单次用量 {{ advice.single_dose
100
+                                }}{{ advice.single_dose_unit }}
101
+                            </span>
102
+                            <span>{{ advice.delivery_way }}</span>
103
+                            <span>{{ advice.execution_frequency }}</span>
104
+                            <span
105
+                                v-if="advice.parent_id == 0 && advice.remark.length > 0"
106
+                            >({{ advice.remark }})</span>
107
+                            </td>
108
+                            <td>{{ parseTime(advice.execution_time, "{m}-{d} {h}:{i}") }}</td>
109
+                            <td>{{ getName(advice.execution_staff) }}</td>
110
+                            <td>{{ getName(advice.checker) }}</td>
111
+                            <td>{{ parseTime(advice.check_time, "{m}-{d} {h}:{i}") }}</td>
112
+                            <td>{{ getName(advice.advice_doctor) }}</td>
113
+                            <td>{{ parseTime(advice.start_time, "{m}-{d} {h}:{i}") }}</td>
114
+                        </tr>
115
+                        </template>
116
+                     </template>
117
+                    </template>
118
+                </table>
119
+            </div>
120
+        </div>
121
+
122
+        
123
+    </div>
124
+</template>
125
+
126
+<script>
127
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
128
+import { getSchedualDoctors } from '@/api/advice'
129
+import { parseTime } from '@/utils'
130
+import print from 'print-js'
131
+const moment = require('moment')
132
+export default {
133
+    components:{
134
+        BreadCrumb
135
+    },
136
+    data(){
137
+        return{
138
+            crumbs: [
139
+                { path: false, name: '耗材药品' },
140
+                { path: false, name: '打印' }
141
+            ],
142
+            tableData:[],
143
+            start_time:"",
144
+            end_time:"",
145
+            print_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
146
+
147
+            zone_selected: 0,
148
+            scheduleMap:[],
149
+            time:'',
150
+            show:true,
151
+            showOne:false,
152
+            delivery_way:"",
153
+            org_id:0,
154
+        }
155
+    },
156
+    methods:{
157
+        printAction: function() {
158
+            const style = '@media print { .dialysisTable{width:960px;margin: 0 auto;text-align: center;border-collapse: collapse;}.order_title_panl {text-align: center;.main_title {font-size: 18px;line-height: 40px;font-weight: 500;}}.dialysisTable tr{padding: 5px 0;}.dialysisTable th {color: #000;padding: 0;margin: 0;height: 30px;}.dialysisTable tr td {padding: 0px 0;}.subadvice_content {text-align: left;padding-left: 25px !important;padding-right: 5px !important;}.advice_content {text-align: left;padding-left: 5px !important;padding-right: 5px !important;padding: 5px 5px !important;} }'
159
+
160
+            printJS({
161
+            printable: 'dialysisTable',
162
+            type: 'html',
163
+            documentTitle: '  ',
164
+            style: style,
165
+            scanStyles: false
166
+            })
167
+        },
168
+        requestSchedualDoctors (time) {
169
+            let newTime =  moment(time).format('YYYY-MM-DD')
170
+            getSchedualDoctors({
171
+            date: newTime,
172
+            patient_type: 0,
173
+            advice_type: 2,
174
+            delivery_way:this.delivery_way,
175
+            excution_way:this.$route.query.excution_way,
176
+            }).then(rs => {
177
+                var resp = rs.data
178
+                if (resp.state == 1) {
179
+                this.admin_user = resp.data.adminUser
180
+                var config = resp.data.config
181
+                let project_config = resp.data.project_config
182
+                
183
+                if(project_config.is_open == 1){
184
+                    this.project = resp.data.project
185
+                    console.log("this.project--------------",this.project)
186
+                    resp.data.hisAdvices.map((item,index) => {
187
+                     item.doctor_advice = []
188
+                    item.new_advice = item.new_advice ? item.new_advice : []
189
+                     
190
+                    if(this.project[index].project.length > 0){
191
+                        this.project[index].project.map(it => {
192
+                        let obj = {
193
+                            advice_doctor: it.doctor,
194
+                            start_time:it.start_time,
195
+                            advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
196
+                            cost_classify:it.type == 2? it.project.cost_classify:"100",
197
+                            execution_time:it.execution_time,
198
+                            execution_state:it.execution_state,
199
+                            execution_staff:it.execution_staff,
200
+                            check_time:it.check_time,
201
+                            check_state:it.check_state,
202
+                            checker:it.checker,
203
+                            created_time:it.ctime,
204
+                            remark:'',
205
+                            id:it.id,
206
+                            parent_id:0,
207
+                            groupno:0,
208
+                            advice_type:6,
209
+
210
+                        }
211
+                        console.log("cost_classify-------",obj)
212
+                        if(obj.cost_classify == 3){
213
+                         item.doctor_advice.push(obj)
214
+                        }
215
+  
216
+                        
217
+                        })
218
+                    }
219
+                    
220
+                   })
221
+                }
222
+
223
+                if(config.is_open == 1){
224
+                   var schedulesArr = resp.data.hisAdvices
225
+                   let schedules = []
226
+                   var ids = this.$store.getters.temp_params.advice_ids
227
+                   console.log('ids',ids)
228
+                   schedulesArr.map(item => {
229
+                    if(ids.indexOf(item.patient_id) > -1){
230
+                        schedules.push(item)
231
+                    }
232
+
233
+                })
234
+
235
+                for (let i = 0; i < schedules.length; i++) {
236
+                    schedules[i].dialysis_no = schedules[i].patient.dialysis_no
237
+                }
238
+
239
+
240
+                var arr = []
241
+                for (let j = 0; j < schedules.length; j++) {
242
+                    arr.push(schedules[j].dialysis_no)
243
+                }
244
+                arr.sort(function (a, b) {
245
+                    return a - b
246
+                })
247
+
248
+
249
+                var arrTwo = []
250
+                for (let i = 0; i < arr.length; i++) {
251
+                    for (let j = 0; j < schedules.length; j++) {
252
+                    if (arr[i] == schedules[j].dialysis_no) {
253
+                        arrTwo.push(schedules[j])
254
+                    }
255
+                    }
256
+                }
257
+
258
+                arrTwo.map((item, index) => {
259
+
260
+                    item.doctor_advice.sort(this.compare('start_time'))
261
+                })
262
+
263
+
264
+                const res = new Map()
265
+                let a = arrTwo.filter(
266
+                    a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
267
+                )
268
+
269
+
270
+
271
+                schedules = a
272
+                var zoneMap = {}
273
+                var scheduleMap = {}
274
+                for (let index = 0; index < schedules.length; index++) {
275
+                    const schedule = schedules[index]
276
+                    if (schedule.doctor_advice.length == 0) {
277
+                    continue
278
+                    }
279
+                    if (scheduleMap[schedule.device_number.zone.name] == null) {
280
+                    scheduleMap[schedule.device_number.zone.name] = []
281
+                    }
282
+                    scheduleMap[schedule.device_number.zone.name].push(schedule)
283
+                    if (zoneMap[schedule.device_number.zone.name] == null) {
284
+                    zoneMap[schedule.device_number.zone.name] =
285
+                        schedule.device_number.zone
286
+                    }
287
+                }
288
+
289
+                var zones = []
290
+                zones.push({ value: 0, text: '全部分区' })
291
+                for (var zoneName in zoneMap) {
292
+                    zones.push({ value: zoneMap[zoneName].id, text: zoneName })
293
+                }
294
+
295
+                zones = zones.sort(function (a, b) {
296
+                    return a.value > b.value
297
+                })
298
+                this.zones = zones
299
+                for (var key in scheduleMap) {
300
+                    let mapArr = scheduleMap[key]
301
+                    for (let i = 0; i < mapArr.length; i++) {
302
+                    mapArr[i]['new_advice'] = []
303
+                    }
304
+                }
305
+
306
+                for (var key in scheduleMap) {
307
+                    let mapArr = scheduleMap[key]
308
+                    for (let i = 0; i < mapArr.length; i++) {
309
+                    var maps = mapArr[i]
310
+                    var resp_advices = maps.doctor_advice
311
+                    if (resp_advices.length > 0) {
312
+                        var newGroupObject = function () {
313
+                        return Object.assign(
314
+                            {},
315
+                            {
316
+                            group_no: 0,
317
+                            advices: []
318
+                            }
319
+                        )
320
+                        }
321
+                        var initGroupBlock = function (group, advice) {
322
+                        group.group_no = advice.groupno
323
+                        }
324
+
325
+                        var advice_groups = []
326
+                        var group = newGroupObject()
327
+                        for (let index = 0; index < resp_advices.length; index++) {
328
+                        const advice = resp_advices[index]
329
+                        if (advice.groupno == 0) {
330
+                            // 老版本的医嘱
331
+                            if (advice.parent_id > 0) {
332
+                            if (advice_groups.length > 0) {
333
+                                var parent_group = advice_groups[advice_groups.length - 1]
334
+                                if (parent_group.advices.length > 0) {
335
+                                if (parent_group.advices[0].id == advice.parent_id) {
336
+                                    parent_group.advices.push(advice)
337
+                                }
338
+                                }
339
+                            }
340
+                            continue
341
+                            } else {
342
+                            if (group.group_no > 0) {
343
+                                advice_groups.push(group)
344
+                                group = newGroupObject()
345
+                            }
346
+
347
+                            initGroupBlock(group, advice)
348
+                            group.advices.push(advice)
349
+                            advice_groups.push(group)
350
+                            group = newGroupObject()
351
+                            continue
352
+                            }
353
+                        } else {
354
+                            if (group.group_no > 0 && group.group_no != advice.groupno) {
355
+                            advice_groups.push(group)
356
+                            group = newGroupObject()
357
+                            }
358
+                            if (group.group_no == 0) {
359
+                            initGroupBlock(group, advice)
360
+                            }
361
+                            if (group.group_no == advice.groupno) {
362
+                            group.advices.push(advice)
363
+                            }
364
+                        }
365
+                        }
366
+                        if (group.group_no > 0) {
367
+                        // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
368
+                        advice_groups.push(group)
369
+                        }
370
+                        advice_groups = advice_groups
371
+                    } else {
372
+                        advice_groups = []
373
+                    }
374
+                    
375
+                    maps.new_advice = advice_groups
376
+                    }
377
+                 }
378
+
379
+                    this.scheduleMap = scheduleMap
380
+
381
+                   
382
+                 
383
+                 }
384
+                
385
+              
386
+
387
+                
388
+ 
389
+
390
+                }
391
+            })
392
+        },
393
+        compare (property) {
394
+            return function (a, b) {
395
+                var value1 = a[property]
396
+                var value2 = b[property]
397
+                return value1 - value2
398
+            }
399
+        },
400
+        parseTime: function (time, layout) {
401
+            if (time == 0) {
402
+                return ''
403
+            }
404
+            return parseTime(time, layout)
405
+        },
406
+        getName (val) {
407
+            for (let i = 0; i < this.admin_user.length; i++) {
408
+                if (this.admin_user[i].id == val) {
409
+                    return this.admin_user[i].name
410
+                }
411
+            }
412
+        },
413
+    },
414
+    computed: {
415
+      filtedScheduals: function () {
416
+        var scheduleMap = new Object()
417
+        if (this.zone_selected == 0) {
418
+            for (const key in this.scheduleMap) {
419
+            scheduleMap[key] = this.scheduleMap[key]
420
+            }
421
+        } else {
422
+            var zone_name = this.zones[this.zone_selected].text
423
+            scheduleMap[zone_name] = this.scheduleMap[zone_name]
424
+        }
425
+
426
+        if (this.schedule_type_selected != 0) {
427
+            var _scheduleMap = {}
428
+            for (const key in scheduleMap) {
429
+            var origin_schedules = scheduleMap[key]
430
+            var schedules = []
431
+            for (let index = 0; index < origin_schedules.length; index++) {
432
+                const schedule = origin_schedules[index]
433
+                if (schedule.schedule_type == this.schedule_type_selected) {
434
+                schedules.push(schedule)
435
+                }
436
+            }
437
+            if (schedules.length > 0) {
438
+                _scheduleMap[key] = schedules
439
+            }
440
+            }
441
+
442
+            scheduleMap = _scheduleMap
443
+        }
444
+        for (var key in scheduleMap) {
445
+            let mapArr = scheduleMap[key]
446
+            for (let i = 0; i < mapArr.length; i++) {
447
+            mapArr[i]['new_advice'] = []
448
+            }
449
+        }
450
+
451
+        for (var key in scheduleMap) {
452
+            let mapArr = scheduleMap[key]
453
+            for (let i = 0; i < mapArr.length; i++) {
454
+            var maps = mapArr[i]
455
+            var resp_advices = maps.doctor_advice
456
+            if (resp_advices.length > 0) {
457
+                var newGroupObject = function () {
458
+                return Object.assign(
459
+                    {},
460
+                    {
461
+                    group_no: 0,
462
+                    advices: []
463
+                    }
464
+                )
465
+                }
466
+                var initGroupBlock = function (group, advice) {
467
+                group.group_no = advice.groupno
468
+                }
469
+
470
+                var advice_groups = []
471
+                var group = newGroupObject()
472
+                for (let index = 0; index < resp_advices.length; index++) {
473
+                const advice = resp_advices[index]
474
+                if (advice.groupno == 0) {
475
+                    // 老版本的医嘱
476
+                    if (advice.parent_id > 0) {
477
+                    if (advice_groups.length > 0) {
478
+                        var parent_group = advice_groups[advice_groups.length - 1]
479
+                        if (parent_group.advices.length > 0) {
480
+                        if (parent_group.advices[0].id == advice.parent_id) {
481
+                            parent_group.advices.push(advice)
482
+                        }
483
+                        }
484
+                    }
485
+                    continue
486
+                    } else {
487
+                    if (group.group_no > 0) {
488
+                        advice_groups.push(group)
489
+                        group = newGroupObject()
490
+                    }
491
+
492
+                    initGroupBlock(group, advice)
493
+                    group.advices.push(advice)
494
+                    advice_groups.push(group)
495
+                    group = newGroupObject()
496
+                    continue
497
+                    }
498
+                } else {
499
+                    if (group.group_no > 0 && group.group_no != advice.groupno) {
500
+                    advice_groups.push(group)
501
+                    group = newGroupObject()
502
+                    }
503
+                    if (group.group_no == 0) {
504
+                    initGroupBlock(group, advice)
505
+                    }
506
+                    if (group.group_no == advice.groupno) {
507
+                    group.advices.push(advice)
508
+                    }
509
+                }
510
+                }
511
+                if (group.group_no > 0) {
512
+                // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
513
+                advice_groups.push(group)
514
+                }
515
+                advice_groups = advice_groups
516
+            } else {
517
+                advice_groups = []
518
+            }
519
+            maps.new_advice = advice_groups
520
+            }
521
+        }
522
+        console.log("222222",scheduleMap)
523
+        return scheduleMap
524
+        }
525
+    },
526
+    created(){
527
+      var time = this.$route.query.time
528
+      var delivery_way = this.$route.query.delivery_way
529
+      this.delivery_way = delivery_way
530
+      this.time = moment(time).format('YYYY-MM-DD')
531
+      console.log(11,this.$route.query)
532
+      this.requestSchedualDoctors(time)
533
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
534
+    }
535
+}
536
+</script>
537
+
538
+
539
+<style rel="stylesheet/scss" lang="scss" scoped>
540
+.dialysisTable{
541
+    width:960px;
542
+    margin: 0 auto;
543
+    text-align: center;
544
+    border-collapse: collapse;
545
+}
546
+.order_title_panl {
547
+    text-align: center;
548
+
549
+    .main_title {
550
+      font-size: 18px;
551
+      line-height: 40px;
552
+      font-weight: 500;
553
+    }
554
+}
555
+.dialysisTable tr{
556
+    padding: 10px 0;
557
+}
558
+.dialysisTable th {
559
+    color: #000;
560
+    padding: 0;
561
+    margin: 0;
562
+    height: 30px;
563
+}
564
+.dialysisTable tr td {
565
+    padding: 12px 0;
566
+}
567
+.subadvice_content {
568
+    text-align: left;
569
+    padding-left: 25px !important;
570
+    padding-right: 5px !important;
571
+}
572
+.advice_content {
573
+    text-align: left;
574
+    padding-left: 5px !important;
575
+    padding-right: 5px !important;
576
+    padding: 15px 5px !important;
577
+}
578
+</style>

+ 43 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue View File

@@ -184,8 +184,7 @@
184 184
               </tr>
185 185
               <tr>
186 186
                 <td colspan="2">
187
-                  <div
188
-                    class="row"
187
+                  <div class="row"
189 188
                     style="padding: 2px 0; line-height: 23px; display: flex"
190 189
                   >
191 190
                     <div class="inline_block" style="flex: 1">
@@ -359,11 +358,10 @@
359 358
                     </div>
360 359
                   </div>
361 360
 
362
-                  <div
363
-                    class="row"
361
+                  <div class="row"
364 362
                     style="padding: 2px 0; line-height: 23px; display: flex"
365 363
                   >
366
-                    <div class="inline_block">
364
+                    <div class="inline_block" style="flex: 1;">
367 365
                       血管通路:
368 366
                       <div
369 367
                         class="under_line"
@@ -374,12 +372,11 @@
374 372
                         {{ predialysis.blood_access_part_opera_name }}
375 373
                       </div>
376 374
                     </div>
377
-                    <div class="inline_block" style="margin-left: 10px">
375
+                    <div class="inline_block" style="flex: 1;">
378 376
                       内瘘:
379
-                      <div
380
-                        class="under_line"
377
+                      <div class="under_line"
381 378
                         style="
382
-                          width: 180px;
379
+                          width: 80%;
383 380
                           text-align: center;
384 381
                           white-space: normal;
385 382
                         "
@@ -392,10 +389,7 @@
392 389
                       </div>
393 390
                     </div>
394 391
 
395
-                    <div
396
-                      class="inline_block"
397
-                      style="margin-left: 10px; flex: 1.4"
398
-                    >
392
+                    <div class="inline_block" style="flex: 1">
399 393
                       导管:
400 394
                       <div
401 395
                         class="under_line"
@@ -941,8 +935,7 @@
941 935
                   <div class="row" style="padding: 2px 0; line-height: 23px">
942 936
                     <div class="inline_block">
943 937
                       抗凝剂:
944
-                      <div
945
-                        class="under_line"
938
+                      <div class="under_line"
946 939
                         style="width: 150px; text-align: center"
947 940
                       >
948 941
                         {{
@@ -968,10 +961,7 @@
968 961
                             : "/"
969 962
                         }}
970 963
                       </div>
971
-                      <span v-if="prescription.anticoagulant == 4">mg</span>
972
-                      <span v-if="prescription.anticoagulant == 3">iu</span>
973
-                      <span v-if="prescription.anticoagulant == 2">iu</span>
974
-                      <span v-if="prescription.anticoagulant == 1">mg</span>
964
+                      {{ getshouji(prescription.anticoagulant) }}
975 965
                     </div>
976 966
                     <div class="inline_block" style="margin-left: 20px">
977 967
                       维持:
@@ -997,11 +987,7 @@
997 987
                             : "0"
998 988
                         }}
999 989
                       </div>
1000
-                      <span v-if="prescription.anticoagulant == 5">ml/h</span>
1001
-                      <span v-if="prescription.anticoagulant == 4">mg/h</span>
1002
-                      <span v-if="prescription.anticoagulant == 3">iu/h</span>
1003
-                      <span v-if="prescription.anticoagulant == 2">iu/h</span>
1004
-                      <span v-if="prescription.anticoagulant == 1">mg/h</span>
990
+                      {{ getweichi(prescription.anticoagulant) }}
1005 991
                     </div>
1006 992
                     <div
1007 993
                       class="inline_block"
@@ -1054,10 +1040,7 @@
1054 1040
                             : "/"
1055 1041
                         }}
1056 1042
                       </div>
1057
-                      <span v-if="prescription.anticoagulant == 4">mg</span>
1058
-                      <span v-if="prescription.anticoagulant == 3">iu</span>
1059
-                      <span v-if="prescription.anticoagulant == 2">iu</span>
1060
-                      <span v-if="prescription.anticoagulant == 1">mg</span>
1043
+                      {{ getzongliang(prescription.anticoagulant) }}
1061 1044
                     </div>
1062 1045
                     <!-- <div class="inline_block" style="margin-left: 20px">
1063 1046
                       透析机号:
@@ -2786,7 +2769,6 @@ export default {
2786 2769
         );
2787 2770
       }
2788 2771
     },
2789
-
2790 2772
     getXuserName(id) {
2791 2773
       if (id <= 0) {
2792 2774
         return "";
@@ -3252,6 +3234,36 @@ export default {
3252 3234
         return "0.0";
3253 3235
       }
3254 3236
     },
3237
+    getshouji(id){
3238
+      const options = this.anticoagulantsConfit
3239
+      if(id!=0){
3240
+        for(let i in options){
3241
+          if(options[i].id == id){
3242
+            return options[i].shouji_unit
3243
+          }
3244
+        }
3245
+      }
3246
+    },
3247
+    getweichi(id){
3248
+      const options = this.anticoagulantsConfit
3249
+      if(id!=0){
3250
+        for(let i in options){
3251
+          if(options[i].id == id){
3252
+            return options[i].weichi_unit
3253
+          }
3254
+        }
3255
+      }
3256
+    },
3257
+    getzongliang(id){
3258
+      const options = this.anticoagulantsConfit
3259
+      if(id!=0){
3260
+        for(let i in options){
3261
+          if(options[i].id == id){
3262
+            return options[i].zongliang_unit
3263
+          }
3264
+        }
3265
+      }
3266
+    }
3255 3267
   },
3256 3268
   watch: {
3257 3269
     "patientInfo.gender": function () {
@@ -3297,7 +3309,8 @@ export default {
3297 3309
     this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
3298 3310
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
3299 3311
     this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
3300
-
3312
+    console.log('this.anticoagulantsConfit',this.anticoagulantsConfit);
3313
+    
3301 3314
     this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
3302 3315
     this.blood_access_part_opera = getDataConfig(
3303 3316
       "hemodialysis",

+ 24 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue View File

@@ -1201,10 +1201,34 @@
1201 1201
                       </td>
1202 1202
                      <td></td>
1203 1203
                     </tr>
1204
+                    <tr v-if="org_id ==10016">
1205
+                      <td width="100">治疗小结:</td>
1206
+                      <td width="370">
1207
+                        {{
1208
+                          summary.dialysis_summary
1209
+                            ? summary.dialysis_summary
1210
+                            : "/"
1211
+                        }}
1212
+                      </td>
1213
+                    </tr>
1214
+                    <tr v-if="org_id ==10016">
1215
+                      <td  width="100"> 宣教知识:</td>
1216
+                      <td  width="370">
1217
+                        {{
1218
+                          summary.mission
1219
+                            ? summary.mission
1220
+                            : "/"
1221
+                        }}
1222
+                      </td>
1223
+                    </tr>
1224
+                   
1204 1225
                   </tbody>
1205 1226
                 </table>
1206 1227
 
1207 1228
                 
1229
+                
1230
+
1231
+                
1208 1232
 
1209 1233
                 <!-- <table class="table-box">
1210 1234
                   <tbody>

+ 70 - 45
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue View File

@@ -179,20 +179,31 @@
179 179
                     </div>
180 180
                     <div class="inline_block" style="flex: 1;">
181 181
                       血压:
182
-                      <div class="under_line" style="width: 50px; text-align: center">
183
-                        {{
184
-                          predialysis.systolic_blood_pressure
185
-                            ? predialysis.systolic_blood_pressure
186
-                            : ""
187
-                        }}
182
+                      <div class="inline_block" v-if="predialysis.systolic_blood_pressure!='' && 
183
+                          predialysis.diastolic_blood_pressure !=''"
184
+                      >
185
+                        <div class="under_line" style="width: 50px; text-align: center">
186
+                          {{
187
+                            predialysis.systolic_blood_pressure
188
+                              ? predialysis.systolic_blood_pressure
189
+                              : ""
190
+                          }}
191
+                        </div>
192
+                        /
193
+                        <div class="under_line" style="width: 50px; text-align: center">
194
+                          {{
195
+                            predialysis.diastolic_blood_pressure
196
+                              ? predialysis.diastolic_blood_pressure
197
+                              : ""
198
+                          }}
199
+                        </div>
188 200
                       </div>
189
-                      /
190
-                      <div class="under_line" style="width: 50px; text-align: center">
191
-                        {{
192
-                          predialysis.diastolic_blood_pressure
193
-                            ? predialysis.diastolic_blood_pressure
194
-                            : ""
195
-                        }}
201
+                      <div class="inline_block" v-else>
202
+                        <div class="under_line" 
203
+                          style="width: 100px; text-align: center"
204
+                        >
205
+                          拒测血压
206
+                        </div>
196 207
                       </div>
197 208
                       mmHg
198 209
                     </div>
@@ -823,7 +834,6 @@
823 834
             </tbody>
824 835
           </table>
825 836
         </div>
826
-
827 837
         <div class="row" style="margin-top: -11px; position: relative">
828 838
           <table class="proj_table">
829 839
             <tbody>
@@ -873,39 +883,49 @@
873 883
                     </div>
874 884
                     <div class="inline_block"style="flex: 1">
875 885
                       血压:
876
-                      <div class="under_line"
877
-                        style="width: 50px; text-align: center"
886
+                      <div class="inline_block" v-if="afterdialysis.systolic_blood_pressure!='' && 
887
+                          afterdialysis.diastolic_blood_pressure !=''"
878 888
                       >
879
-                        <!-- {{
880
-                          afterdialysis.systolic_blood_pressure
881
-                            ? afterdialysis.systolic_blood_pressure
882
-                            : "/"
883
-                        }} -->
884
-                          <span v-if="monitors.length>0">
889
+                        <div class="under_line" 
890
+                          style="width: 50px; text-align: center"
891
+                        >
892
+                          {{
893
+                            afterdialysis.systolic_blood_pressure
894
+                              ? afterdialysis.systolic_blood_pressure
895
+                              : ""
896
+                          }}
897
+                            <!-- <span v-if="monitors.length>0">
898
+                              {{
899
+                                monitors[monitors.length-1].systolic_blood_pressure ?
900
+                                monitors[monitors.length-1].systolic_blood_pressure :""
901
+                              }}
902
+                            </span>
903
+                            <span v-else></span> -->
904
+                        </div>
905
+                        /
906
+                        <div class="under_line"
907
+                          style="width: 50px; text-align: center"
908
+                        >
909
+                          {{
910
+                            afterdialysis.diastolic_blood_pressure
911
+                              ? afterdialysis.diastolic_blood_pressure
912
+                              : ""
913
+                          }}
914
+                          <!-- <span v-if="monitors.length>0">
885 915
                             {{
886
-                              monitors[monitors.length-1].systolic_blood_pressure ?
887
-                              monitors[monitors.length-1].systolic_blood_pressure :""
916
+                              monitors[monitors.length-1].diastolic_blood_pressure ?
917
+                                monitors[monitors.length-1].diastolic_blood_pressure :""
888 918
                             }}
889 919
                           </span>
890
-                           <span v-else></span>
920
+                          <span v-else></span> -->
921
+                        </div>
891 922
                       </div>
892
-                      /
893
-                      <div
894
-                        class="under_line"
895
-                        style="width: 50px; text-align: center"
896
-                      >
897
-                        <!-- {{
898
-                          afterdialysis.diastolic_blood_pressure
899
-                            ? afterdialysis.diastolic_blood_pressure
900
-                            : "/"
901
-                        }} -->
902
-                        <span v-if="monitors.length>0">
903
-                          {{
904
-                            monitors[monitors.length-1].diastolic_blood_pressure ?
905
-                              monitors[monitors.length-1].diastolic_blood_pressure :""
906
-                          }}
907
-                        </span>
908
-                        <span v-else></span>
923
+                      <div class="inline_block" v-else>
924
+                        <div class="under_line" 
925
+                          style="width: 100px; text-align: center"
926
+                        >
927
+                          拒测血压
928
+                        </div>
909 929
                       </div>
910 930
                       mmHg
911 931
                     </div>
@@ -1050,13 +1070,18 @@
1050 1070
                       <div class="under_line"
1051 1071
                         style="width: 70px; text-align: center"
1052 1072
                       >
1053
-                        <span v-if=" monitors.length !=0 &&monitors[monitors.length - 1].ultrafiltration_volume !=''">
1073
+                        <!-- <span v-if=" monitors.length !=0 &&monitors[monitors.length - 1].ultrafiltration_volume !=''">
1054 1074
                           {{ (monitors[monitors.length - 1].ultrafiltration_volume/1000).toFixed(1) }}
1075
+                        </span> -->
1076
+                        <span v-if="afterdialysis.actual_ultrafiltration !=''">
1077
+                          {{ afterdialysis.actual_ultrafiltration>100
1078
+                            ? (afterdialysis.actual_ultrafiltration/1000).toFixed(1) : afterdialysis.actual_ultrafiltration }}
1055 1079
                         </span>
1056
-                        <span v-else>
1080
+                        <span v-else></span>
1081
+                        <!-- <span>
1057 1082
                           {{ afterdialysis.actual_ultrafiltration
1058 1083
                             ? afterdialysis.actual_ultrafiltration : "" }}
1059
-                        </span>
1084
+                        </span> -->
1060 1085
                       </div>
1061 1086
                       L
1062 1087
                     </div>

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

@@ -116,9 +116,7 @@
116 116
           
117 117
         </div>
118 118
 
119
-        <div class="row">
120
-
121
-        </div>
119
+        
122 120
         <div class="row">
123 121
           抗凝药物&nbsp;&nbsp;
124 122
           <div class="inline_block under_line" style="width:90%;text-align: left;">
@@ -248,6 +246,12 @@
248 246
             </div>
249 247
           </div> -->
250 248
         </div>
249
+        <div class="row">
250
+          备注
251
+          <div class="inline_block under_line" style="width:90%;text-align: center;white-space: normal;">
252
+            {{ prescription.remark ? prescription.remark : '/'}}
253
+          </div>
254
+        </div>
251 255
         <div class="row">
252 256
           上机医生
253 257
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">

+ 5 - 5
src/xt_pages/outpatientCharges/invoicePrint.vue View File

@@ -17,10 +17,10 @@
17 17
     </template>
18 18
     <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 && org_id != 10567 && org_id != 10188 && org_id != 10633"><!--&& org_id != 10188 && org_id != 0-->
19 19
         <div class='dialysisPage'>
20
-          <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 " >
20
+          <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" >
21 21
             <printOne v-if="org_id != 10088 && org_id != 10510 && org_id != 0" :paramsObj="invoiceParams"></printOne>
22 22
             <printThree v-if="org_id == 10088 " :paramsObj="invoiceParams" :show="showclick"></printThree>
23
-            <printfifteen v-if="org_id == 10510 || org_id == 0 " :paramsObj="invoiceParams"></printfifteen>
23
+            <printfifteen v-if="org_id == 10510 " :paramsObj="invoiceParams"></printfifteen>
24 24
           </div>
25 25
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
26 26
           <printFour v-if="org_id == 10215 " :paramsObj="invoiceParams"></printFour>
@@ -30,7 +30,7 @@
30 30
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
31 31
           <PrintNight v-if="org_id == 10210" :paramsObj="invoiceParams"></PrintNight>
32 32
           <!-- <PrintTen v-if="org_id == 10375 ||org_id == 0 " :paramsObj="invoiceParams"></PrintTen> -->
33
-          <printtwelve :paramsObj="invoiceParams"  v-if="org_id == 10480 "></printtwelve>
33
+          <printtwelve :paramsObj="invoiceParams"  v-if="org_id == 10480 || org_id == 0 "></printtwelve>
34 34
         </div>
35 35
     </div>
36 36
 
@@ -40,7 +40,7 @@
40 40
       </div>
41 41
     </div>
42 42
 
43
-    <div class="app-container" style="" v-if="org_id == 10217 || org_id == 10633">
43
+    <div class="app-container" style="" v-if=" org_id == 10633">
44 44
       <div class='dialysisPage'>
45 45
         <printSix :paramsObj="invoiceParams"></printSix>
46 46
       </div>
@@ -57,7 +57,7 @@
57 57
       </div>
58 58
     </div>
59 59
 
60
-    <div class="app-container" style="padding-top:20px;" v-if="org_id == 10188  ">
60
+    <div class="app-container" style="padding-top:20px;" v-if="org_id == 10188 || org_id == 10217">
61 61
       <div class='dialysisPage'>
62 62
         <printthirteen  :paramsObj="invoiceParams"></printthirteen>
63 63
       </div>

+ 4 - 3
src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue View File

@@ -2,12 +2,13 @@
2 2
 <template>
3 3
   <div id='invoice-print'>
4 4
     <div v-for='(i,index) in pageArr.length' :key="index" style="width: 90%;margin: 0 auto;font-size: 17px;">
5
-      <div style="text-align: center;width: 100%;font-size: 20px; font-weight: bolder;">盐城响水燕舞血液透析中心收据</div>
5
+      <div v-if="org_id==10188" style="text-align: center;width: 100%;font-size: 20px; font-weight: bolder;">盐城响水燕舞血液透析中心收据</div>
6
+      <div v-if="org_id==10217" style="text-align: center;width: 100%;font-size: 20px; font-weight: bolder;">大丰燕舞血液透析中心</div>
6 7
       <div style="display: flex; margin: 15px 0 5px 0;">
7 8
         <div style="flex: 1.1;">业务流水号:{{ list.order_number }}</div>
8 9
         <div style="flex: 0.9;">医疗机构类型:</div>
9 10
         <div style="flex: 1;">医院国家编码:H32092103007</div>
10
-       
11
+
11 12
       </div>
12 13
       <div style="display: flex;">
13 14
         <!-- <div style="flex:1;">医生:{{ doctor_info.user_name }}</div>
@@ -78,7 +79,7 @@
78 79
           </div>
79 80
         </div>
80 81
         <div style="flex: 2;border-left: 1px solid black;">
81
-          
82
+
82 83
         </div>
83 84
       </div>
84 85
       <div style="display: flex;border:1px solid black;border-top: none;">

+ 73 - 36
src/xt_pages/sign/lineUp.vue View File

@@ -74,7 +74,7 @@
74 74
                                 <p style="width:16%">{{ item.end_time && item.start_time ? getDates(item.end_time) : '--' }}</p>
75 75
                             </div>
76 76
                         </div>
77
-                    </div> 
77
+                    </div>
78 78
                     <div class="callingBox">
79 79
                         <div :class="(queueConfig.jzjhyc == 1 && queueConfig.sjjhyc == 0) ? 'callingBoxLeft1' : 'callingBoxLeft'" v-if="queueConfig.jzjhyc == 1">
80 80
                             <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
@@ -123,10 +123,10 @@
123 123
                             </div>
124 124
                         </div>
125 125
                     </div>
126
-                </div> 
127
-                
126
+                </div>
127
+
128 128
              </div>
129
-        
129
+
130 130
             <!-- <div class="page_lineUp">
131 131
                 <div class="lineUpTitle">
132 132
                     <div>{{ this.$store.getters.xt_user.org.org_name }}<span>&nbsp;&nbsp;温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
@@ -159,7 +159,7 @@
159 159
                                 <p style="width:16%">07:38:00</p>
160 160
                             </div>
161 161
                         </div>
162
-                    </div> 
162
+                    </div>
163 163
                     <div class="callingBox">
164 164
                         <div class="callingBoxLeft">
165 165
                             <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
@@ -209,7 +209,7 @@
209 209
                         </div>
210 210
                     </div>
211 211
                 </div>
212
-                
212
+
213 213
             </div> -->
214 214
         </div>
215 215
         <div class="app-container">
@@ -251,7 +251,7 @@
251 251
                                 <p style="width:16%">{{ item.end_time && item.start_time ? getDates(item.end_time) : '--' }}</p>
252 252
                             </div>
253 253
                         </div>
254
-                    </div> 
254
+                    </div>
255 255
                     <div class="callingBox">
256 256
                         <div :class="(queueConfig.jzjhyc == 1 && queueConfig.sjjhyc == 0) ? 'callingBoxLeft1' : 'callingBoxLeft'" v-if="queueConfig.jzjhyc == 1">
257 257
                             <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
@@ -301,9 +301,9 @@
301 301
                         </div>
302 302
                     </div>
303 303
                 </div>
304
-                
304
+
305 305
             </div>
306
-        
306
+
307 307
             <!-- <div class="page_lineUp">
308 308
                 <div class="lineUpTitle">
309 309
                     <div>{{ this.$store.getters.xt_user.org.org_name }}<span>&nbsp;&nbsp;温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
@@ -336,7 +336,7 @@
336 336
                                 <p style="width:16%">07:38:00</p>
337 337
                             </div>
338 338
                         </div>
339
-                    </div> 
339
+                    </div>
340 340
                     <div class="callingBox">
341 341
                         <div class="callingBoxLeft">
342 342
                             <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
@@ -386,7 +386,7 @@
386 386
                         </div>
387 387
                     </div>
388 388
                 </div>
389
-                
389
+
390 390
             </div> -->
391 391
         </div>
392 392
     </div>
@@ -410,7 +410,7 @@ export default {
410 410
             dialogTableVisible:false,
411 411
             showSetting: false,
412 412
             lineUpList:[],
413
-            count:0,
413
+            // count:0,
414 414
             page:1,
415 415
             timer:null,
416 416
             queueConfig:{
@@ -428,8 +428,8 @@ export default {
428 428
 
429 429
             voice:true,
430 430
             a:1,
431
-            newTimes:null
432
-            
431
+            newTimes:null,
432
+
433 433
         }
434 434
     },
435 435
     computed: {
@@ -445,10 +445,19 @@ export default {
445 445
             sessionStorage.removeItem('lineUpKey')
446 446
             sessionStorage.removeItem('signInKey')
447 447
         }
448
-        this.initData = {
449
-            cmd: "queue/join",
450
-            data: {type:2,page:1,size:6},
451
-        };
448
+        if(this.queueConfig.jzjhyc ==1&&this.queueConfig.sjjhyc ==1){
449
+          this.initData = {
450
+              cmd: "queue/join",
451
+              data: {type:2,page:1,size:6},
452
+          };
453
+        }else{
454
+          this.initData = {
455
+              cmd: "queue/join",
456
+              data: {type:2,page:1,size:10},
457
+          };
458
+        }
459
+        console.log('11111111222',this.initData);
460
+
452 461
         this.websocketSend(this.initData)
453 462
         let newobj = {
454 463
             cmd: "queue/callreturn",
@@ -483,33 +492,61 @@ export default {
483 492
         // this.websocketMess();
484 493
     },
485 494
     mounted(){
486
-        
495
+      console.log('queueConfig.jzjhyc1111',this.queueConfig.jzjhyc,this.queueConfig.sjjhyc);
496
+
487 497
         this.timer = setInterval(() => {
498
+
499
+          if(this.queueConfig.jzjhyc ==1&&this.queueConfig.sjjhyc ==1){
488 500
             if(this.page < Math.ceil(this.count / 6)){
489
-                console.log('执行',Math.ceil(this.count / 6),this.page)
490
-                this.page++
491
-                let obj = {
501
+              console.log('执行',Math.ceil(this.count / 6),this.page)
502
+              this.page++
503
+              let obj = {
504
+                  cmd: "queue/queuelist",
505
+                  data: {page:this.page,size:6,sort:0}
506
+              };
507
+              this.websocketSend(obj)
508
+              setTimeout(() => {
509
+                  this.websocketMess();
510
+              }, 1000);
511
+            }else{
512
+                console.log('执行22223333')
513
+                this.page = 1
514
+                let a = {
492 515
                     cmd: "queue/queuelist",
493 516
                     data: {page:this.page,size:6,sort:0}
494 517
                 };
495
-                this.websocketSend(obj)
518
+                this.websocketSend(a)
496 519
                 setTimeout(() => {
497 520
                     this.websocketMess();
498 521
                 }, 1000);
522
+
523
+            }
524
+          }else{
525
+            if(this.page < Math.ceil(this.count / 10)){
526
+              console.log('执行',Math.ceil(this.count / 10),this.page)
527
+              this.page++
528
+              let obj = {
529
+                  cmd: "queue/queuelist",
530
+                  data: {page:this.page,size:10,sort:0}
531
+              };
532
+              this.websocketSend(obj)
533
+              setTimeout(() => {
534
+                  this.websocketMess();
535
+              }, 1000);
499 536
             }else{
500
-                console.log('执行22223333')
537
+                console.log('执行22223333444444')
501 538
                 this.page = 1
502 539
                 let a = {
503 540
                     cmd: "queue/queuelist",
504
-                    data: {page:this.page,size:6,sort:0}
541
+                    data: {page:this.page,size:10,sort:0}
505 542
                 };
506 543
                 this.websocketSend(a)
507 544
                 setTimeout(() => {
508 545
                     this.websocketMess();
509 546
                 }, 1000);
510
-                
511 547
             }
512
-            console.log('切换时间',this.queueConfig)
548
+          }
549
+          console.log('切换时间11',this.queueConfig)
513 550
         }, 1000 * parseInt(this.queueConfig.qhsj));
514 551
         this.timerID = setInterval(() => {
515 552
             this.updateTime()
@@ -543,7 +580,7 @@ export default {
543 580
         websocketSend(data) {
544 581
             try {
545 582
                 this.websocket.send(JSON.stringify(data))
546
-                
583
+
547 584
             } catch (error) {
548 585
                 this.showError = true;
549 586
                 this.showIndex = 4;
@@ -551,12 +588,12 @@ export default {
551 588
             }
552 589
         },
553 590
         websocketMess() {
554
-            console.log('测试')
591
+            console.log('测试',this.websocket)
555 592
             this.websocket.onmessage = e => {
556 593
                 let res = JSON.parse(e.data);
557 594
                 // let res = re.data;
558 595
                 console.log('res',res)
559
-                
596
+
560 597
                     if(res.channel == 'queue/join'){
561 598
                         if(res.data.type == 2){
562 599
                             this.queueConfig = res.data.queueConfig
@@ -587,7 +624,7 @@ export default {
587 624
                         console.log(999999999999,res.data)
588 625
                         let second = res.data.second
589 626
                         let newType = res.data.type
590
-                    
627
+
591 628
                         console.log('执行几次',this.voiceNum)
592 629
                         if(this.voice == true){
593 630
                             this.patient_id = res.data.patientInfo.patient_id
@@ -606,7 +643,7 @@ export default {
606 643
                                     this.voicePrompt(res.data.callVolUrl)
607 644
                                 }else{
608 645
                                     this.voiceNum = 1;
609
-                                    this.voice = true 
646
+                                    this.voice = true
610 647
                                     let obj = {
611 648
                                         cmd: "queue/callreturn",
612 649
                                         data: {patient_id:this.patient_id,type:newType},
@@ -624,13 +661,13 @@ export default {
624 661
                         }
625 662
                     }else if(res.channel == 'updateCallList'){
626 663
                         this.receivingPatient = res.data.queue_list
627
-                        
664
+
628 665
                     }else if(res.channel == 'updateWaitCallList'){
629 666
                         this.waitDoctorList = res.data.queue_list
630 667
                     }else if(res.channel == 'updateUpCallList'){
631 668
                         this.upPatientList = res.data.queue_list
632 669
                     }
633
-                
670
+
634 671
                 // else if(res.channel == "patientQueueInfo"){
635 672
                 //     this.queueInfo = res.data.queueInfo
636 673
                 //     let obj = {
@@ -638,7 +675,7 @@ export default {
638 675
                 //         data: {page:1,size:10}
639 676
                 //     };
640 677
                 //     this.websocketSend(obj)
641
-                    
678
+
642 679
                 // }
643 680
             }
644 681
         },
@@ -719,7 +756,7 @@ export default {
719 756
         border-radius: 15px;
720 757
         display: flex;
721 758
         flex-direction: column;
722
-        
759
+
723 760
     }
724 761
     .lineUpMainLeftTitle{
725 762
         display: flex;

+ 4 - 3
src/xt_pages/stock/drugs/components/expiryDateDrugQuery.vue View File

@@ -76,8 +76,9 @@
76 76
             </el-table-column>
77 77
             <el-table-column label="库存" align="center">
78 78
               <template slot-scope="scope">
79
-                <span v-if="scope.row.stock_max_number > 0"> {{scope.row.stock_max_number}}{{scope.row.XtBaseDrug.max_unit}}</span>
80
-                <span v-if="scope.row.stock_min_number > 0">{{scope.row.stock_min_number}}{{scope.row.XtBaseDrug.min_unit}}</span>  
79
+                <span v-if="scope.row.stock_max_number > 0"> {{scope.row.stock_max_number}}{{scope.row.max_unit}}</span>
80
+                <span v-if="scope.row.stock_min_number > 0">{{scope.row.stock_min_number}}{{scope.row.min_unit}}</span>  
81
+                
81 82
               </template>
82 83
             </el-table-column>
83 84
         
@@ -559,7 +560,7 @@ export default {
559 560
           this.tableList[i].specification_name = this.tableList[i].XtBaseDrug.dose + this.tableList[i].XtBaseDrug.dose_unit +"*"+this.tableList[i].XtBaseDrug.min_number+this.tableList[i].XtBaseDrug.min_unit+"/"+this.tableList[i].XtBaseDrug.max_unit
560 561
           this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
561 562
           this.tableList[i].expiry = this.getTime(this.tableList[i].expiry_date)
562
-          this.tableList[i].stock_count =  this.tableList[i].stock_max_number + this.tableList[i].XtBaseDrug.max_unit + this.tableList[i].stock_min_number + this.tableList[i].XtBaseDrug.min_unit
563
+          this.tableList[i].stock_count =  this.tableList[i].stock_max_number + this.tableList[i].max_unit + this.tableList[i].stock_min_number + this.tableList[i].min_unit
563 564
           this.tableList[i].flush_date = this.getDaysBetween(this.getTime(this.tableList[i].expiry_date),this.getTime(this.nowtime))
564 565
        }
565 566
       import('@/vendor/Export2Excel').then(excel => {

+ 2 - 2
src/xt_pages/stock/drugs/components/expiryDateDrugQueryPrint.vue View File

@@ -42,8 +42,8 @@
42 42
                                   <td width="80">{{getManufacturName(item.manufacturer)}} </td>
43 43
                                   <td width="80">{{item.price}}</td>    
44 44
                                   <td width="80">
45
-                                     <span v-if="item.stock_max_number > 0">{{item.stock_max_number}}{{item.XtBaseDrug.max_unit}}</span>
46
-                                     <span v-if="item.stock_min_number >0">{{item.stock_min_number}}{{item.XtBaseDrug.min_unit}}</span>
45
+                                     <span v-if="item.stock_max_number > 0">{{item.stock_max_number}}{{item.max_unit}}</span>
46
+                                     <span v-if="item.stock_min_number >0">{{item.stock_min_number}}{{item.min_unit}}</span>
47 47
                                   </td>   
48 48
                                   <td width="80">{{item.batch_number}}</td>  
49 49
                                   <td width="80">{{getTime(item.expiry_date)}}</td>  

+ 2 - 0
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue View File

@@ -1090,6 +1090,8 @@ export default {
1090 1090
 
1091 1091
    },
1092 1092
    drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
1093
+    console.log("arr----------------",arr)
1094
+    console.log("newArr----------------",arr2)
1093 1095
     var total = 0
1094 1096
     var totalone_price = 0
1095 1097
     var total_two_price = 0

+ 67 - 12
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue View File

@@ -217,6 +217,7 @@ export default {
217 217
   },
218 218
   methods:{
219 219
     GetInitStartFlowPice(val1,val2,val3,val4,val5,min_number,min_unit,max_unit){
220
+     
220 221
       var total_one_price =0
221 222
       var total_two_price = 0
222 223
       var total_three_price =0
@@ -226,15 +227,18 @@ export default {
226 227
    
227 228
       if(val1!=null && val1.length>0){
228 229
          for(let i=0;i<val1.length;i++){
229
-          total_one_price +=val1[i].count*val1[i].price
230
+          total_one_price +=val1[i].count/min_number*val1[i].price
230 231
          }
231 232
       }  
233
+      console.log("total_one_price",total_one_price)
232 234
 
233 235
       if(val2!=null && val2.length>0){
234 236
          for(let i=0;i<val2.length;i++){
235
-          total_two_price +=val2[i].count*val2[i].price
237
+         
238
+          total_two_price +=val2[i].count/min_number*val2[i].price
236 239
          }
237 240
       }  
241
+      console.log("total_two_price",total_two_price)
238 242
     
239 243
       console.log("val3",val3)
240 244
       if(val3!=null && val3.length>0){
@@ -242,41 +246,71 @@ export default {
242 246
           total_three_price +=val3[i].count*val3[i].price
243 247
          }
244 248
       }  
249
+      console.log("total_three_price",total_three_price)
245 250
       if(val4!=null && val4.length>0){
246 251
          for(let i=0;i<val4.length;i++){
247 252
           total_four_price +=val4[i].count*val4[i].price
248 253
          }
249 254
       }  
255
+      console.log("total_four_price",total_four_price)
250 256
 
251 257
       if(val5!=null && val5.length>0){
252 258
          for(let i=0;i<val5.length;i++){
253 259
           total_five_price +=val5[i].count*val5[i].price
254 260
          }
255 261
       }  
256
-     
257
-      var total = (total_one_price + total_two_price -total_three_price-total_four_price + total_five_price).toFixed(2)
258
-      if(total >0){
259
-        return ""
262
+      console.log("total_five_price",total_five_price)
263
+      if(total_one_price == ""){
264
+        total_one_price = 0
265
+      }
266
+      if(total_two_price == ""){
267
+        total_two_price = 0
268
+      }
269
+      if(total_three_price == ""){
270
+        total_three_price = 0
271
+      }
272
+      if(total_four_price == ""){
273
+        total_four_price = 0
274
+      }
275
+      if(total_five_price == ""){
276
+        total_five_price = 0
277
+      }
278
+      console.log("total_one_price----",total_one_price)
279
+      console.log("total_two_price----",total_two_price)
280
+      console.log("total_three_price----",total_three_price)
281
+      console.log("total_four_price----",total_four_price)
282
+      console.log("total_five_price----",total_five_price)
283
+    
284
+      var total =  total_one_price + total_two_price - total_three_price - total_four_price + total_five_price
285
+      if(total >1){
286
+        return total.toFixed(2)
260 287
       }else{
261
-        return total
288
+        return ""
262 289
       }
290
+     
263 291
        
264 292
     },
265 293
     drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
266
-      
294
+        
267 295
         var total = 0
268 296
         var totalone_price = 0
269 297
         var total_two_price = 0
270 298
         if(arr!=null && arr.length > 0){
271 299
           for(let i=0;i<arr.length;i++){
272
-            totalone_price += arr[i].count * arr[i].price
300
+            totalone_price += arr[i].count/min_number * arr[i].price
273 301
           }
274 302
         }
275 303
         if(arr2!=null && arr2.length >0){
276 304
           for(let i=0;i<arr2.length;i++){ 
277
-            total_two_price += arr2[i].count * arr2[i].price
305
+            total_two_price += arr2[i].count/min_number * arr2[i].price
278 306
           }
279 307
         }
308
+        if(totalone_price== ""){
309
+           totalone_price = 0
310
+        }
311
+        if(total_two_price== ""){
312
+           total_two_price = 0
313
+        }
280 314
         total = totalone_price + total_two_price
281 315
 
282 316
         if(total>0){
@@ -307,6 +341,15 @@ export default {
307 341
         total_three_price +=arr3[i].count * arr3[i].price
308 342
       }
309 343
     }
344
+    if(totalone_price==""){
345
+      totalone_price=0
346
+    }
347
+    if(total_two_price == ""){
348
+      total_two_price =0
349
+    }
350
+    if(total_three_price == ""){
351
+      total_three_price =0
352
+    }
310 353
  
311 354
     total = (totalone_price + total_two_price - total_three_price).toFixed(2)
312 355
     if(total >0){
@@ -317,11 +360,23 @@ export default {
317 360
     
318 361
    },
319 362
    GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
320
-
363
+    
364
+     if(totalone == ""){
365
+        totalone =0
366
+     }
367
+     if(totaltwo == ""){
368
+       totaltwo =0
369
+     }
370
+     if(totalone == ""){
371
+        totalone =0
372
+     }
373
+     if(totalthree == ""){
374
+      totalthree =0
375
+     }
321 376
    
322 377
      var total = 0
323 378
       total = (parseFloat(totalone)  + parseFloat(totaltwo)  - parseFloat(totalthree))
324
-      console.log("total-=---------------",total)
379
+     
325 380
       if(total >0){
326 381
         return total.toFixed(2)
327 382
       }else{

+ 55 - 12
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue View File

@@ -1498,13 +1498,13 @@ export default {
1498 1498
    
1499 1499
       if(val1!=null && val1.length>0){
1500 1500
          for(let i=0;i<val1.length;i++){
1501
-          total_one_price +=val1[i].count*val1[i].price
1501
+          total_one_price +=val1[i].count/min_number*val1[i].price
1502 1502
          }
1503 1503
       }  
1504 1504
 
1505 1505
       if(val2!=null && val2.length>0){
1506 1506
          for(let i=0;i<val2.length;i++){
1507
-          total_two_price +=val2[i].count*val2[i].price
1507
+          total_two_price +=val2[i].count/min_number*val2[i].price
1508 1508
          }
1509 1509
       }  
1510 1510
     
@@ -1526,9 +1526,25 @@ export default {
1526 1526
          }
1527 1527
       }  
1528 1528
      
1529
+      if(total_one_price == ""){
1530
+        total_one_price = 0
1531
+      }
1532
+      if(total_two_price == ""){
1533
+        total_two_price = 0
1534
+      }
1535
+      if(total_three_price == ""){
1536
+        total_three_price = 0
1537
+      }
1538
+      if(total_four_price == ""){
1539
+        total_four_price = 0
1540
+      }
1541
+      if(total_five_price == ""){
1542
+        total_five_price = 0
1543
+      }
1544
+
1529 1545
       var total = (total_one_price + total_two_price -total_three_price-total_four_price + total_five_price)
1530 1546
        
1531
-      if(total >0){
1547
+      if(total >1){
1532 1548
         return total.toFixed(2)
1533 1549
       }else{
1534 1550
         return ""
@@ -1542,13 +1558,19 @@ export default {
1542 1558
       var total_two_price = 0
1543 1559
       if(arr!=null && arr.length > 0){
1544 1560
         for(let i=0;i<arr.length;i++){
1545
-          totalone_price += arr[i].count * arr[i].price
1561
+          totalone_price += arr[i].count/min_number * arr[i].price
1546 1562
         }
1547 1563
       }
1548 1564
       if(arr2!=null && arr2.length >0){
1549 1565
         for(let i=0;i<arr2.length;i++){ 
1550
-          total_two_price += arr2[i].count * arr2[i].price
1566
+          total_two_price += arr2[i].count/min_number * arr2[i].price
1567
+        }
1568
+      }
1569
+      if(totalone_price== ""){
1570
+           totalone_price = 0
1551 1571
         }
1572
+      if(total_two_price== ""){
1573
+          total_two_price = 0
1552 1574
       }
1553 1575
       total = totalone_price + total_two_price
1554 1576
 
@@ -1580,6 +1602,16 @@ export default {
1580 1602
           total_three_price +=arr3[i].count * arr3[i].price
1581 1603
         }
1582 1604
       }
1605
+      if(totalone_price==""){
1606
+        totalone_price=0
1607
+      }
1608
+      if(total_two_price == ""){
1609
+        total_two_price =0
1610
+      }
1611
+      if(total_three_price == ""){
1612
+        total_three_price =0
1613
+      }
1614
+ 
1583 1615
   
1584 1616
       total = (totalone_price + total_two_price - total_three_price)
1585 1617
       if(total >0){
@@ -1590,13 +1622,24 @@ export default {
1590 1622
     
1591 1623
    },
1592 1624
    GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
1593
-      console.log("totalone----------------",totalone)
1594
-      console.log("totaltwo----------------",totalone)
1595
-      console.log("totalthree----------------",totalthree)
1596
-      var total = 0
1597
-      total = totalone  + totaltwo  - totalthree
1598
-      if(total >0 || total!="NaN"){
1599
-        console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
1625
+     
1626
+    if(totalone == ""){
1627
+        totalone =0
1628
+     }
1629
+     if(totaltwo == ""){
1630
+       totaltwo =0
1631
+     }
1632
+     if(totalone == ""){
1633
+        totalone =0
1634
+     }
1635
+     if(totalthree == ""){
1636
+      totalthree =0
1637
+     }
1638
+   
1639
+     var total = 0
1640
+      total = (parseFloat(totalone)  + parseFloat(totaltwo)  - parseFloat(totalthree))
1641
+     
1642
+      if(total >0){
1600 1643
         return total.toFixed(2)
1601 1644
       }else{
1602 1645
         return ""

+ 32 - 10
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

@@ -754,7 +754,7 @@ export default {
754 754
     }
755 755
     if(val2!=null && val2.length > 0){
756 756
      for(let i=0;i<val2.length;i++){
757
-      count_one_price +=val2[i].count * val[i].price
757
+      count_one_price +=val2[i].count * val2[i].price
758 758
      }
759 759
     }
760 760
     all_count_price = count_price + count_one_price
@@ -804,7 +804,7 @@ export default {
804 804
    if(all_price >0 ){
805 805
     return all_price.toFixed(2)
806 806
    }else{
807
-    return "0.00"
807
+    return ""
808 808
    }
809 809
   },
810 810
   getWarehouseOut(val){
@@ -911,7 +911,7 @@ export default {
911 911
     if (total_price_all > 0) {
912 912
        return total_price_all.toFixed(2)
913 913
      }else{
914
-      return  "0.00"
914
+      return  ""
915 915
      }
916 916
    },
917 917
    getWarehosueOutInfo(val,val2,val3){
@@ -957,12 +957,12 @@ export default {
957 957
      }
958 958
      if(val2!=null && val2.length > 0){
959 959
       for(let i=0;i<val2.length;i++){
960
-        count_one_price +=val2[i].count  * val[i].price
960
+        count_one_price +=val2[i].count  * val2[i].price
961 961
       }
962 962
      }
963 963
      if(val3!=null && val3.length > 0){
964 964
       for(let i=0;i<val3.length;i++){
965
-        count_two_price +=val3[i].count  * val[i].price
965
+        count_two_price +=val3[i].count  * val3[i].price
966 966
       }
967 967
      }
968 968
      console.log("本期减少",count_price)
@@ -971,7 +971,9 @@ export default {
971 971
      all_count_price = count_price +count_one_price - count_two_price
972 972
      console.log("数据我哦我我",all_count_price)
973 973
      if(all_count_price >0){
974
-       return all_count_price
974
+       return all_count_price.toFixed(2)
975
+     }else{
976
+      return "0.00"
975 977
      }
976 978
    },
977 979
    stockOutprice(val,val2,val3){
@@ -1288,7 +1290,12 @@ export default {
1288 1290
          }
1289 1291
 
1290 1292
        }
1291
-       return total_price
1293
+       if(total_price>0){
1294
+        return total_price.toFixed(2)
1295
+       }else{
1296
+        return ""
1297
+       }
1298
+      
1292 1299
     },
1293 1300
 
1294 1301
     getAllOutStockIn(val){
@@ -1307,7 +1314,12 @@ export default {
1307 1314
           total_price += val[i].count * val[i].price
1308 1315
          }
1309 1316
        }
1310
-       return total_price
1317
+       if(total_price>0){
1318
+        return total_price.toFixed(2)
1319
+       }else{
1320
+        return ""
1321
+       }
1322
+       
1311 1323
     },
1312 1324
     getAllStockInFlow(val){
1313 1325
       var count = 0
@@ -1325,7 +1337,12 @@ export default {
1325 1337
           total_price+= val[i].count * val[i].total_price
1326 1338
         }
1327 1339
       }
1328
-      return total_price
1340
+      if(total_price>0){
1341
+        return total_price.toFixed(2)
1342
+      }else{
1343
+        return ""
1344
+      }
1345
+     
1329 1346
     },
1330 1347
     getAllStockOutFlow(val){
1331 1348
       var count = 0
@@ -1343,7 +1360,12 @@ export default {
1343 1360
           total_price+= val[i].count * val[i].price
1344 1361
         }
1345 1362
       }
1346
-      return total_price
1363
+      if(total_price>0){
1364
+         return total_price.toFixed(2)
1365
+      }else{
1366
+        return ""
1367
+      }
1368
+     
1347 1369
     },
1348 1370
     getAllQuery(){
1349 1371
 

+ 29 - 9
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue View File

@@ -817,7 +817,12 @@ export default {
817 817
          }
818 818
 
819 819
        }
820
-       return total_price
820
+       if(total_price>0){
821
+        return total_price.toFixed(2)
822
+       }else{
823
+        return ""
824
+       }
825
+      
821 826
     },
822 827
     getAllOutStockIn(val){
823 828
        var count = 0 
@@ -835,7 +840,12 @@ export default {
835 840
           total_price+= val[i].count * val[i].total_price
836 841
         }
837 842
       }
838
-      return total_price
843
+      if(total_price>0){
844
+        return total_price.toFixed(2)
845
+      }else{
846
+        return ""
847
+      }
848
+      
839 849
     },
840 850
     getAllStockInFlow(val){
841 851
       var count = 0
@@ -862,7 +872,12 @@ export default {
862 872
           total_price += val[i].count * val[i].price
863 873
          }
864 874
        }
865
-       return total_price
875
+       if(total_price>0){
876
+        return total_price.toFixed(2)
877
+      }else{
878
+        return ""
879
+      }
880
+     
866 881
     },
867 882
     getAllStockOutFlowPrice(val){
868 883
       var total_price = 0
@@ -871,7 +886,12 @@ export default {
871 886
           total_price+= val[i].count * val[i].price
872 887
         }
873 888
       }
874
-      return total_price
889
+      if(total_price>0){
890
+        return total_price.toFixed(2)
891
+      }else{
892
+        return ""
893
+      }
894
+    
875 895
     },
876 896
     getWarehouseInfoOnePrice(val,val2){
877 897
       var count_price =0 
@@ -884,13 +904,13 @@ export default {
884 904
       }
885 905
       if(val2!=null && val2.length > 0){
886 906
       for(let i=0;i<val2.length;i++){
887
-        count_one_price +=val2[i].count * val[i].price
907
+        count_one_price +=val2[i].count * val2[i].price
888 908
       }
889 909
       }
890 910
       all_count_price = count_price + count_one_price
891 911
 
892 912
       if(all_count_price > 0 ){
893
-        return all_count_price
913
+        return all_count_price.toFixed(2)
894 914
       }else{
895 915
         return 0
896 916
       }
@@ -907,12 +927,12 @@ export default {
907 927
      }
908 928
      if(val2!=null && val2.length > 0){
909 929
       for(let i=0;i<val2.length;i++){
910
-        count_one_price +=val2[i].count  * val[i].price
930
+        count_one_price +=val2[i].count  * val2[i].price
911 931
       }
912 932
      }
913 933
      if(val3!=null && val3.length > 0){
914 934
       for(let i=0;i<val3.length;i++){
915
-        count_two_price +=val3[i].count  * val[i].price
935
+        count_two_price +=val3[i].count  * val3[i].price
916 936
       }
917 937
      }
918 938
      console.log("本期减少",count_price)
@@ -921,7 +941,7 @@ export default {
921 941
      all_count_price = count_price +count_one_price - count_two_price
922 942
      console.log("数据我哦我我",all_count_price)
923 943
      if(all_count_price >0){
924
-       return all_count_price
944
+       return all_count_price.toFixed(2)
925 945
      }else{
926 946
       return 0
927 947
      }

+ 67 - 20
src/xt_pages/user/Informed/Informedconsent.vue View File

@@ -151,6 +151,9 @@
151 151
                 <div v-if="show22">
152 152
                   <Death_informed :patient_id ="this.patientID" ref="childrtwotytwo" :patientDeathPlan="patientDeathPlan" @getPatientDeathRecord="getPatientDeathRecord"></Death_informed>
153 153
                 </div>
154
+                <div v-if="show23">
155
+                  <Surrender_informed :patient_id ="this.patientID" ref="childrtwotythree"></Surrender_informed>
156
+                </div>
154 157
               </div>
155 158
             </div>
156 159
           </el-tab-pane>
@@ -184,6 +187,7 @@ import nonheparin_informed from './components/nonheparin_informed'
184 187
 import CRRT_informed from './components/CRRT_informed'
185 188
 import Terminate_informed from './components/Terminate_informed'
186 189
 import hemodialysis from './components/hemodialysis'
190
+import Surrender_informed from './components/Surrender_informed'
187 191
 import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,
188 192
   getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,
189 193
   getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed,
@@ -211,7 +215,8 @@ export default {
211 215
     nonheparin_informed,
212 216
     CRRT_informed,
213 217
     Terminate_informed,
214
-    hemodialysis
218
+    hemodialysis,
219
+    Surrender_informed
215 220
   },
216 221
   data() {
217 222
     return {
@@ -226,7 +231,8 @@ export default {
226 231
                 // {date:'疾病诊断证明书',value:'17'},{date:'无肝素血液透析风险知情同意书',value:'18'},
227 232
                 // {date:'连续肾脏替代治疗(CRRT)治疗知情同意书',value:'19'},{date:'患方要求终止治疗及风险、责任承担承诺书',value:'20'},
228 233
                 // {date:'血液透析知情同意书',value:'21'}
229
-                {date:'死亡病例讨论记录',value:'22'}
234
+                {date:'死亡病例讨论记录',value:'22'},
235
+                // {date:'拒绝或放弃医学治疗告知书',value:'23'}
230 236
       ],
231 237
 
232 238
       face_show:true,
@@ -250,6 +256,7 @@ export default {
250 256
       show20:false,
251 257
       show21:false,
252 258
       show22:false,
259
+      show23:false,
253 260
       patientID:0,
254 261
       patient:{},
255 262
       tableData:[],
@@ -448,7 +455,7 @@ export default {
448 455
        getPatientDeathRecord().then(response=>{
449 456
          if(response.data.state == 1){
450 457
             var list = response.data.data.record
451
-          
458
+
452 459
             this.patientDeathPlan = list
453 460
             console.log("list=================",this.patientDeathPlan)
454 461
             this.$refs.childrtwotytwo.show(list)
@@ -505,7 +512,8 @@ export default {
505 512
           this.show19 = false,
506 513
           this.show20 = false,
507 514
           this.show21 = false,
508
-          this.show22 = false
515
+          this.show22 = false,
516
+          this.show23 = false,
509 517
           this.getFilterInformed()
510 518
         }
511 519
         if(row.value==3){
@@ -528,7 +536,8 @@ export default {
528 536
           this.show19 = false,
529 537
           this.show20 = false,
530 538
           this.show21 = false,
531
-          this.show22 = false
539
+          this.show22 = false,
540
+          this.show23 = false,
532 541
           this.getProfundaInformed()
533 542
         }
534 543
         if(row.value==4){
@@ -551,7 +560,8 @@ export default {
551 560
           this.show19 = false,
552 561
           this.show20 = false,
553 562
           this.show21 = false,
554
-          this.show22 = false
563
+          this.show22 = false,
564
+          this.show23 = false,
555 565
           this.getArterOvernous()
556 566
         }
557 567
         if(row.value==5){
@@ -574,7 +584,8 @@ export default {
574 584
           this.show19 = false,
575 585
           this.show20 = false,
576 586
           this.show21 = false,
577
-          this.show22 = false
587
+          this.show22 = false,
588
+          this.show23 = false,
578 589
           this.getHighRiskInformed()
579 590
         }
580 591
         if(row.value==6){
@@ -597,7 +608,8 @@ export default {
597 608
           this.show19 = false,
598 609
           this.show20 = false,
599 610
           this.show21 = false,
600
-          this.show22 = false
611
+          this.show22 = false,
612
+          this.show23 = false,
601 613
           this.getAnticoagulationInformed()
602 614
         }
603 615
         if(row.value==7){
@@ -620,7 +632,8 @@ export default {
620 632
           this.show19 = false,
621 633
           this.show20 = false,
622 634
           this.show21 = false,
623
-          this.show22 = false
635
+          this.show22 = false,
636
+          this.show23 = false,
624 637
           this.getCriticalInformed()
625 638
         }
626 639
         if(row.value==8){
@@ -643,7 +656,8 @@ export default {
643 656
           this.show19 = false,
644 657
           this.show20 = false,
645 658
           this.show21 = false,
646
-          this.show22 = false
659
+          this.show22 = false,
660
+          this.show23 = false,
647 661
           this.getHemoperfusionInformed()
648 662
         }
649 663
         if(row.value==9){
@@ -689,7 +703,8 @@ export default {
689 703
           this.show19 = false,
690 704
           this.show20 = false,
691 705
           this.show21 = false,
692
-          this.show22 = false
706
+          this.show22 = false,
707
+          this.show23 = false
693 708
         }
694 709
         // if(row.value==11){
695 710
         //   this.face_show=false
@@ -731,7 +746,8 @@ export default {
731 746
           this.show19 = false,
732 747
           this.show20 = false,
733 748
           this.show21 = false,
734
-          this.show22 = false
749
+          this.show22 = false,
750
+          this.show23 = false,
735 751
           this.getTherapyInformed()
736 752
         }
737 753
         if(row.value==13){
@@ -754,7 +770,8 @@ export default {
754 770
           this.show19 = false,
755 771
           this.show20 = false,
756 772
           this.show21 = false,
757
-          this.show22 = false
773
+          this.show22 = false,
774
+          this.show23 = false,
758 775
           this.getPatientMeDicalList()
759 776
         }
760 777
         if(row.value==14){
@@ -777,7 +794,8 @@ export default {
777 794
           this.show19 = false,
778 795
           this.show20 = false,
779 796
           this.show21 = false,
780
-          this.show22 = false
797
+          this.show22 = false,
798
+          this.show23 = false,
781 799
           this.getTreamentPlan()
782 800
         }
783 801
         // if(row.value==15){
@@ -842,7 +860,8 @@ export default {
842 860
           this.show19 = false,
843 861
           this.show20 = false,
844 862
           this.show21 = false,
845
-          this.show22 = false
863
+          this.show22 = false,
864
+          this.show23 = false
846 865
         }
847 866
         if(row.value==18){
848 867
           this.filter_show=false
@@ -864,7 +883,8 @@ export default {
864 883
           this.show19 = false,
865 884
           this.show20 = false,
866 885
           this.show21 = false,
867
-          this.show22 = false
886
+          this.show22 = false,
887
+          this.show23 = false
868 888
         }
869 889
         if(row.value==19){
870 890
           this.filter_show=false
@@ -886,7 +906,8 @@ export default {
886 906
           this.show19 = true,
887 907
           this.show20 = false,
888 908
           this.show21 = false,
889
-          this.show22 = false
909
+          this.show22 = false,
910
+          this.show23 = false
890 911
         }
891 912
         if(row.value==20){
892 913
           this.filter_show=false
@@ -908,7 +929,8 @@ export default {
908 929
           this.show19 = false,
909 930
           this.show20 = true,
910 931
           this.show21 = false,
911
-          this.show22 = false
932
+          this.show22 = false,
933
+          this.show23 = false
912 934
         }
913 935
         if(row.value==21){
914 936
           this.filter_show=false
@@ -930,7 +952,8 @@ export default {
930 952
           this.show19 = false,
931 953
           this.show20 = false,
932 954
           this.show21 = true,
933
-          this.show22 = false
955
+          this.show22 = false,
956
+          this.show23 = false
934 957
         }
935 958
         if(row.value==22){
936 959
           this.filter_show=false
@@ -952,9 +975,33 @@ export default {
952 975
           this.show19 = false,
953 976
           this.show20 = false,
954 977
           this.show21 = false,
955
-          this.show22 = true
978
+          this.show22 = true,
979
+          this.show23 = false,
956 980
           this.getPatientDeathRecord()
957 981
         }
982
+        if(row.value==23){
983
+          this.filter_show=false
984
+          this.face_show=false
985
+          this.profunda_show=false,
986
+          this.arteriovenous_show=false,
987
+          this.Highrisk_show=false,
988
+          this.anticoagulation_show=false,
989
+          this.critical_show=false,
990
+          this.hemoperfusion_show=false,
991
+          this.Bring_show=false,
992
+          this.catheterization_show=false,
993
+          this.therapy_show=false,
994
+          this.history_show=false,
995
+          this.show14=false,
996
+          this.show16=false,
997
+          this.show17=false,
998
+          this.show18=false,
999
+          this.show19 = false,
1000
+          this.show20 = false,
1001
+          this.show21 = false,
1002
+          this.show22 = false,
1003
+          this.show23 = true
1004
+        }
958 1005
     },
959 1006
 
960 1007
   }

+ 266 - 0
src/xt_pages/user/Informed/components/Surrender_informed.vue View File

@@ -0,0 +1,266 @@
1
+<!-- 透析器(滤器) -->
2
+<!-- 自带 -->
3
+<template>
4
+  <div style="border:1px solid gainsboro ;padding:10px">
5
+      <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;">
6
+        <!-- <el-button type="primary">主要按钮</el-button> -->
7
+         <el-button type="primary" style=""  @click="bianji">
8
+              编辑
9
+          </el-button>
10
+        <!--<el-button type="danger" style=""  @click="">
11
+              删除
12
+        </el-button> -->
13
+        <el-button type="success" style=""  @click="printThisPage">
14
+            打印
15
+        </el-button>
16
+      </div>
17
+      <div id="print_content">
18
+          <div class="print_page_main_content">
19
+            <div class="content">
20
+              <div style="text-align: center;font-size: 20px;">{{ orgname }}</div>
21
+                <h2 style="text-align: center;margin-bottom: 10px;">拒绝或放弃医学治疗告知书</h2>
22
+
23
+                <div style="border-bottom: 1px solid gainsboro;display: flex;justify-content: space-around;">
24
+                  <div >姓名:
25
+                    {{ patient.name }}
26
+                  </div>
27
+                  <div >性别:
28
+                    <span v-if="patient.gender == 1">男</span>
29
+                    <span v-if="patient.gender == 2">女</span>
30
+                  </div>
31
+                  <div >门诊号:
32
+                    {{ patient.admission_number }}
33
+                  </div>
34
+                </div>
35
+                <div style="margin-top: 10px;" v-html="content"></div>
36
+
37
+            </div>
38
+          </div>
39
+      </div>
40
+      <el-dialog
41
+        title="提示"
42
+        :visible.sync="dialogVisible"
43
+        width="60%"
44
+        >
45
+        <div>
46
+          <h2 style="text-align: center;">患方要求终止治疗及风险、责任承担承诺书</h2>
47
+
48
+          <div style="text-align: right;">
49
+            透析号:{{ patient.dialysis_no }}
50
+          </div>
51
+          <div style="display: flex;margin: 10px 0;">
52
+            <div style="flex:1">姓名:{{ patient.name }}</div>
53
+            <div style="flex:1">性别:
54
+              <span v-if="patient.gender == 1">男</span>
55
+                <span v-if="patient.gender == 2">女</span>
56
+            </div>
57
+            <div style="flex:1">年龄:
58
+              {{ getAge(patient) }}
59
+            </div>
60
+            <div style="flex:1">住院(门诊)号:
61
+              {{ patient.admission_number }}
62
+            </div>
63
+          </div>
64
+          <div style="border-bottom: 1px solid gainsboro;">
65
+            诊断:
66
+            {{ patient.diagnose }}
67
+          </div>
68
+          <keep-alive>
69
+            <editor ref="editor"
70
+                    id="editor"
71
+                    style="width: 100%"
72
+                    v-bind:r_content="content">
73
+            </editor>
74
+          </keep-alive>
75
+        </div>
76
+        <span slot="footer" class="dialog-footer">
77
+          <el-button @click="dialogVisible = false">取 消</el-button>
78
+          <el-button type="primary" @click="saveDialyzerInformed">保 存</el-button>
79
+        </span>
80
+      </el-dialog>
81
+  </div>
82
+</template>
83
+
84
+<script>
85
+import print from "print-js";
86
+import Editor from '@/components/Editor'
87
+import { getPatientDetailInformedconsent,saveDialyzerInformed  } from '@/api/patient'
88
+import { jsGetAge, uParseTime } from "@/utils/tools";
89
+const content=`
90
+    <p style="">
91
+      <span>尊敬的患者、患者家属或患者的法定监护人、授权委托人:</span>
92
+    </p>
93
+    <p style="text-indent:20px">
94
+      <span>根据患者目前的疾病状况,医生认为患者应当接受治疗,并建议患者接受适当的医疗措施。</span>
95
+    </p>
96
+    <p style="text-indent:20px">
97
+      <span>但是患者现在拒绝或者放弃我院医护人员建议的以下医疗措施(指明操作/治疗名称):</span>
98
+    </p>
99
+    <p style="text-indent:20px">
100
+      <span>特此告知可能出现的后果,请患者、患者家属或患者的法定监护人、授权委托人认真斟酌后决定。</span>
101
+    </p>
102
+    <p style="text-indent:20px">
103
+      <span>1、拒绝或放弃医学治疗,在我院原有的治疗中断,有可能导致病情反复甚至加重,从而为以后的诊断和治疗增加困难,甚至使原有疾病无法治煎或者使患者丧失最佳治疗时机,也有可能促进或者导致患者死亡;</span>
104
+    </p>
105
+    <p style="text-indent:20px">
106
+      <span>2、拒绝或放弃医学治疗,在我院原有的治疗中断,有可能出现各种感染或使原有的感染加重、伤口延迟愈合、疼痛等各种症状加重或症状持续时间延长,增加患者的痛苦,甚至可能导致不良后果;</span>
107
+    </p>
108
+    <p style="text-indent:20px">
109
+      <span>3、拒绝或放弃医学治疗,在我院原有的治疗中断,患者有可能会出现某一个或者多个器官功能减退部分功能甚或全部功能的丧失,有可能诱发患者出现出血、休克、其他疾病和症状,甚至产生不良后果;</span>
110
+    </p>
111
+    <p style="text-indent:20px">
112
+      <span>4、拒绝或放弃医学治疗有可能导致原有的医疗花费失去应有的作用;</span>
113
+    </p>
114
+    <p style="text-indent:20px">
115
+      <span>5、拒绝或放弃医学治疗有可能增加患者其他不可预料的风险及不良后果。</span>
116
+    </p>
117
+    <p style='font-weight: bold;'>
118
+      <span>患者家属或患者的法定监护人、授权委托人意见:</span>
119
+    </p>
120
+    <p style="text-indent:20px">
121
+      <span>我(或是患者的监护人)已年满18周岁且具有完全民事行为能力,我拒绝或放弃医院对我的医学治疗服务。医护人员已经向我解释了接受医疗措施对我的疾病治疗的重要性和必要性,并且已将拒绝或者放弃医学治疗的风险及后果向我作了详细的告知。我仍然坚持拒绝或放弃医学治疗。</span>
122
+    </p>
123
+    <p style="text-indent:20px">
124
+      <span>我自愿承担拒绝或放弃医学治疗所带来的风险和不良后果。我拒绝或放弃医学治疗产生的不良后果与医院及医护人员无关。</span>
125
+    </p>
126
+    
127
+    <p style="padding:10px 0px;display:flex;align-items: center;">
128
+        <span style="display: inline-block;flex: 1;">患者/法定监护人/委托代理人/签名:&nbsp;&nbsp;&nbsp;&nbsp;</span>
129
+        <span style="display: inline-block;flex: 1;">与患者关系:&nbsp;&nbsp;&nbsp;&nbsp;</span>
130
+    </p>
131
+    <p style="padding:10px 0px;align-items: center;">
132
+        <span>签名曰期:&nbsp;&nbsp;&nbsp;&nbsp;</span>
133
+    </p>
134
+    <p style="font-weight: bold;"><span>医生陈述:</span></p>
135
+    <p style="text-indent:20px">
136
+      <span>我已经将患者继续接受医学治疗的重要性和必要性以及拒绝或者放弃治疗的风险及后果向患者、患者家属或患者的法定监护人、授权委托人告知,并且解答了关于拒绝或者放弃治疗的相关问题。</span>
137
+    </p>
138
+    <p style="padding:10px 0px;display:flex;align-items: center;">
139
+        <span style="display: inline-block;flex: 1;">医师签名:&nbsp;&nbsp;&nbsp;&nbsp;</span>
140
+        <span style="display: inline-block;flex: 1;">签名曰期:&nbsp;&nbsp;&nbsp;&nbsp;</span>
141
+    </p>`
142
+export default{
143
+  props: {
144
+    patient_id: {
145
+        type: Number,
146
+      },
147
+      dialyzerInformedPrint:{
148
+        type:Object
149
+      }
150
+   },
151
+   components:{
152
+    Editor
153
+   },
154
+  data(){
155
+    return{
156
+      patient:{},
157
+      dialogVisible:false,
158
+      content:content,
159
+      orgname:'',
160
+    }
161
+   },
162
+  methods:{
163
+      getlist(){
164
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
165
+          if(response.data.state == 1){
166
+            var patient =  response.data.data.patients
167
+            console.log("patinet",patient)
168
+            this.patient =patient
169
+          }
170
+        })
171
+      },
172
+      printThisPage(){
173
+          const style = '@media print {.content p{font-size: 16px;font-family: 新宋体;  margin-bottom: 5px;}}'
174
+          printJS({
175
+              printable: 'print_content',
176
+              type: 'html',
177
+              documentTitle: '  ',
178
+              style: style,
179
+              scanStyles: false
180
+          })
181
+      },
182
+      getAge: function(val) {
183
+          if (val.id_card_no == undefined) {
184
+            return false
185
+          }
186
+          var thisLen = val.id_card_no.length
187
+          var birth = ''
188
+          if (thisLen == 15) {
189
+            birth = '19' + val.id_card_no.substr(6, 6)
190
+          } else {
191
+            birth = val.id_card_no.substr(6, 8)
192
+          }
193
+          var birthtwo =
194
+            birth.substr(0, 4) +
195
+            '-' +
196
+            birth.substr(4, 2) +
197
+            '-' +
198
+            birth.substr(6, 2)
199
+
200
+          var age = jsGetAge(birthtwo, '-')
201
+          return age
202
+      },
203
+      bianji(){
204
+        this.dialogVisible=true
205
+      },
206
+      show(val){
207
+
208
+       if(val!=null){
209
+        console.log("valw233223",val)
210
+         if(val.content!=""){
211
+           this.content = ""
212
+           this.content = val.content
213
+         }
214
+
215
+       }
216
+     },
217
+      saveDialyzerInformed(){
218
+         var params = {
219
+          content:this.$refs.editor.content,
220
+         }
221
+        saveDialyzerInformed(params).then(response=>{
222
+           if(response.data.state ==1){
223
+             var list = response.data.data.list
224
+            this.$message.success("保存成功!")
225
+            this.dialogVisible = false
226
+            this.$emit("getDialyzerInformed","");
227
+           }
228
+        })
229
+      }
230
+
231
+  },
232
+  created(){
233
+    this.orgname = this.$store.getters.xt_user.org.org_name;
234
+    console.log("hhahdfhahdfhahdf",this.dialyzerInformedPrint)
235
+    if(this.dialyzerInformedPrint!=null&& this.dialyzerInformedPrint.id >0){
236
+        this.content = ""
237
+        this.content =this.dialyzerInformedPrint.content
238
+    }
239
+    this.getlist()
240
+  }
241
+}
242
+</script>
243
+<style lang="scss" scoped>
244
+
245
+*{
246
+  // margin: 0;
247
+  // padding: 0;
248
+  border: 0;
249
+}
250
+  .content{
251
+      p{
252
+        font-size: 16px;
253
+        font-family: '新宋体';
254
+        line-height: 22px;
255
+        // padding-left: 20px;
256
+        margin-bottom: 5px;
257
+        text-align: justify;
258
+      }
259
+  }
260
+  .print_page_main_content {
261
+    background-color: white;
262
+    width: 100%;
263
+    padding: 0 0 0 0;
264
+    page-break-after: always;
265
+  }
266
+</style>

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

@@ -163,14 +163,14 @@ export default {
163 163
           name: '3',
164 164
           label: '病情记录',
165 165
           children: [
166
-            {
167
-              name: '3-1',
168
-              label: '病史'
169
-            },
170 166
             // {
171
-            //   name: '3-4',
172
-            //   label: '病史'
167
+            //   name: '3-1',
168
+            //   label: '病史'
173 169
             // },
170
+            {
171
+              name: '3-4',
172
+              label: '病史新'
173
+            },
174 174
             {
175 175
               name: '3-2',
176 176
               label: '体格检查'
@@ -179,10 +179,10 @@ export default {
179 179
             //   name: '3-3',
180 180
             //   label: '体格检查新'
181 181
             // },
182
-            // {
182
+            //  {
183 183
             //   name: '3-5',
184 184
             //   label: '病程记录新'
185
-            // },
185
+            //  },
186 186
             {
187 187
               name: '1-11',
188 188
               label: '首次病程记录'
@@ -328,7 +328,7 @@ export default {
328 328
       } else if (name == '1-2') {
329 329
         this.$router.push({ path: '/patients/course?id=' + this.id })
330 330
       } else if (name == '1-3') {
331
-        this.$router.push({ path: '/patients/inspection?id=' + this.id })
331
+        this.$router.push({ path: '/patients/inspection?id=' + this.id,query:{patient:this.currentPatient}})
332 332
       } else if (name == '1-4') {
333 333
         this.$router.push({
334 334
           path: '/patients/patient/' + this.id + '/doctorAdvice'

+ 559 - 78
src/xt_pages/user/courseOfDisease_new.vue View File

@@ -73,9 +73,9 @@
73 73
                 <el-select v-model="admin_user_id" placeholder="请选择" :disabled="disabled">
74 74
                   <el-option
75 75
                     v-for="item in doctorOptions"
76
-                    :key="item.id"
77
-                    :label="item.name"
78
-                    :value="item.id">
76
+                    :key="item.admin_user_id"
77
+                    :label="item.user_name"
78
+                    :value="item.admin_user_id">
79 79
                   </el-option>
80 80
                 </el-select>
81 81
               </div>
@@ -85,7 +85,7 @@
85 85
                 病程内容
86 86
               </span>
87 87
               <div style="display:flex;">
88
-                <div>
88
+                <!-- <div>
89 89
                   取值时间:
90 90
                   <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
91 91
                     <el-option
@@ -114,7 +114,7 @@
114 114
                     placeholder="选择日期"
115 115
                     style="width: 150px;">
116 116
                   </el-date-picker>
117
-                </div>
117
+                </div> -->
118 118
                 <!-- <div>
119 119
                   <el-button type="primary" size="small" @click="autotext_click">
120 120
                     生成
@@ -205,8 +205,8 @@
205 205
         top="0"
206 206
         >
207 207
         <div>
208
-          <!-- <div style="display:flex;"> -->
209
-            <!-- <div>
208
+          <div style="display:flex;position: absolute;left: 20%;top: 20px;">
209
+            <div>
210 210
               取值时间:
211 211
               <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
212 212
                 <el-option
@@ -235,7 +235,7 @@
235 235
                 placeholder="选择日期"
236 236
                 style="width: 150px;">
237 237
               </el-date-picker>
238
-            </div> -->
238
+            </div>
239 239
             <div style="text-align: right;margin-bottom: 10px;">
240 240
               <el-button type="primary" size="small" @click="autotext_click">
241 241
                 生成
@@ -244,11 +244,16 @@
244 244
                 取消
245 245
               </el-button>
246 246
             </div>
247
-          <!-- </div> -->
247
+          </div>
248 248
           <div v-show="AuToShow">
249
-            <text_content @new_content="newcontent" :patient="patient" :prescription="prescription" :berforList="berforList" 
250
-            :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList" 
251
-            :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num" :longAdvice="longAdvice" :groupPrescriptionList="groupPrescriptionList"></text_content>
249
+            <div v-html="textcontent" id="editer"></div>
250
+            <!-- <text_content @new_content="newcontent" :patient="patient" :prescription="prescription" :berforList="berforList"
251
+            :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList"
252
+            :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num" :longAdvice="longAdvice" :groupPrescriptionList="groupPrescriptionList" :afterList="afterList" :max_blood_flow_volume="max_blood_flow_volume"
253
+            :max_befor_systolic_blood_pressure="max_befor_systolic_blood_pressure" :min_befor_systolic_blood_pressure="min_befor_systolic_blood_pressure" :max_befor_diastolic_blood_pressure="max_befor_diastolic_blood_pressure"  :min_befor_diastolic_blood_pressure="min_befor_diastolic_blood_pressure"
254
+            :max_after_systolic_blood_pressure="max_after_systolic_blood_pressure" :min_after_systolic_blood_pressure="min_after_systolic_blood_pressure" :max_after_diastolic_blood_pressure="max_after_diastolic_blood_pressure" :min_after_diastolic_blood_pressure="min_after_diastolic_blood_pressure"
255
+            :max_monitor_systolic_blood_pressure="max_monitor_systolic_blood_pressure" :min_monitor_systolic_blood_pressure="min_monitor_systolic_blood_pressure" :max_monitor_diastolic_blood_pressure="max_monitor_diastolic_blood_pressure" :min_monitor_diastolic_blood_pressure="min_monitor_diastolic_blood_pressure"
256
+            :lastDryWeight="lastDryWeight" :patientVascularAccess="patientVascularAccess" :lastBefor="lastBefor"></text_content> -->
252 257
           </div>
253 258
         </div>
254 259
 
@@ -280,7 +285,7 @@
280 285
     deleteCourseTempalte,
281 286
     getAutoPatientContent
282 287
   } from '@/api/patient'
283
-  import { fetchAllDoctorAndNurse } from "@/api/doctor";
288
+  import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
284 289
   import { parseTime } from '@/utils'
285 290
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
286 291
   import { uParseTime } from '@/utils/tools'
@@ -329,9 +334,9 @@
329 334
         quzhi_date:1,
330 335
         start_date:'',
331 336
         end_date:'',
332
-        quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上'},],
337
+        quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上'},],
333 338
         tableData:[],
334
-        admin_user_id:0,
339
+        admin_user_id:"",
335 340
         record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
336 341
         template_name:"",
337 342
         id:0,
@@ -350,11 +355,37 @@
350 355
         AuToShow:false,
351 356
         num:"",
352 357
         longAdvice:[],
353
-        groupPrescriptionList:[]
358
+        groupPrescriptionList:[],
359
+        afterList:[],
360
+        max_blood_flow_volume:"",
361
+        max_befor_systolic_blood_pressure:"",
362
+        min_befor_systolic_blood_pressure:"",
363
+        max_befor_diastolic_blood_pressure:"",
364
+        min_befor_diastolic_blood_pressure:"",
365
+        max_after_systolic_blood_pressure:"",
366
+        min_after_systolic_blood_pressure:"",
367
+        max_after_diastolic_blood_pressure:"",
368
+        min_after_diastolic_blood_pressure:"",
369
+        max_monitor_systolic_blood_pressure:"",
370
+        min_monitor_systolic_blood_pressure:"",
371
+        max_monitor_diastolic_blood_pressure:"",
372
+        min_monitor_diastolic_blood_pressure:"",
373
+        lastDryWeight:{},
374
+        patientVascularAccess:{},
375
+        lastBefor:{},
376
+        Inspect:[{id:1,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
377
+            right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]},
378
+            {id:2,name:'血常规',date:'2024-12-19',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
379
+            right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]}
380
+        ],
381
+        textcontent:'',
354 382
       }
355 383
     },
356 384
     created() {
357 385
       this.admin_user_id = this.$store.getters.xt_user.user.id
386
+      if(this.admin_user_id == 0){
387
+         this.admin_user_id = ""
388
+      }
358 389
 
359 390
       this.patient_id = parseInt(this.$route.query.id)
360 391
       this.org_id = this.$store.getters.xt_user.template_info.org_id;
@@ -371,6 +402,8 @@
371 402
       // // const ceshi=`hellow word`
372 403
       // this.new_content = ceshi
373 404
       // this.$refs.editor.contents=ceshi
405
+      // this.start_date = this.getFirstDayOfWeek(new Date())
406
+      // this.end_date = this.getTime(new Date())
374 407
       this.fetchAllDoctorAndNurse()
375 408
       this.getlist()
376 409
     },
@@ -400,8 +433,13 @@
400 433
         this.library_dialog = false
401 434
       },
402 435
       getCurrentChangeOne(val){
436
+        console.log("val================",val)
403 437
         this.$refs.editor.contents = val.content
404 438
         this.record_date = this.getTime(val.record_time)
439
+        this.admin_user_id = val.recorder
440
+        if(this.admin_user_id == 0){
441
+           this.admin_user_id = ""
442
+        }
405 443
         this.id = val.id
406 444
       },
407 445
       getCurrentChangeTwo(val){
@@ -461,8 +499,8 @@
461 499
       getDocName(admin_user_id){
462 500
         var user_name = ""
463 501
         for(let i=0;i<this.doctorOptions.length;i++){
464
-          if(admin_user_id == this.doctorOptions[i].id){
465
-              user_name = this.doctorOptions[i].name
502
+          if(admin_user_id == this.doctorOptions[i].admin_user_id){
503
+              user_name = this.doctorOptions[i].user_name
466 504
           }
467 505
         }
468 506
        return user_name
@@ -481,7 +519,7 @@
481 519
         })
482 520
      },
483 521
      fetchAllDoctorAndNurse() {
484
-       fetchAllDoctorAndNurse().then(response => {
522
+      fetchMoibleAllDoctorAndNurse().then(response => {
485 523
         if (response.data.state == 1) {
486 524
           this.doctorOptions= []
487 525
           this.doctorOptions = response.data.data.doctors;
@@ -505,11 +543,21 @@
505 543
         this.add_index = 0
506 544
         this.disabled = true
507 545
         console.log("haaaaaaaaaaaaaaa",this.$refs)
546
+
547
+        if(this.record_date.length == 0) {
548
+          this.$message.error('请选择时间')
549
+          return
550
+        }
508 551
         this.new_content = this.$refs.editor.contents
509 552
         if (this.new_content.length == 0) {
510 553
           this.$message.error('请填写病程内容')
511 554
           return
512 555
         }
556
+
557
+        if(this.admin_user_id == ""){
558
+           this.admin_user_id = 0
559
+        }
560
+
513 561
         var params = {
514 562
           id:this.id,
515 563
           patient_id:this.patient_id,
@@ -557,54 +605,440 @@
557 605
         // this.auto_dialog = true
558 606
       },
559 607
       autotext_click(){
560
-        
561
-        // this.$nextTick(()=>{
562
-        //   const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
563
-        //   var newListArr =[]
564
-        //   for(let j in this.tab){
565
-        //     const obj={
566
-        //       id:this.tab[j].id,
567
-        //       newlist:'newList'+j
568
-        //     }
569
-        //     newListArr.push(obj) 
570
-        //   }
571
-        //   for(let i in this.tab){
572
-        //     for(let j in newListArr){
573
-        //       if(this.tab[i].id==newListArr[j].id){
574
-        //         let newList = document.createElement('p');
575
-        //         newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
576
-        //         let newListItem1 = document.createElement('span');
577
-        //         newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
578
-        //         let newListItem2 = document.createElement('span');
579
-        //         newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
580
-        //         let newListItem3 = document.createElement('span');
581
-        //         newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
582
-        //         let newListItem4 = document.createElement('span');
583
-        //         newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
584
-        //         let newListItem5 = document.createElement('span');
585
-        //         newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
586
-        //         let newListItem6 = document.createElement('span');
587
-        //         newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
588
-        //         newListItem1.textContent = this.tab[i].name;
589
-        //         newListItem2.textContent = this.tab[i].type;
590
-        //         newListItem3.textContent = this.tab[i].start;
591
-        //         newListItem4.textContent = this.tab[i].dosage;
592
-        //         newListItem5.textContent = this.tab[i].pinlv;
593
-        //         newListItem6.textContent = this.tab[i].status;
594
-        //         newList.appendChild(newListItem1);
595
-        //         newList.appendChild(newListItem2);
596
-        //         newList.appendChild(newListItem3);
597
-        //         newList.appendChild(newListItem4);
598
-        //         newList.appendChild(newListItem5);
599
-        //         newList.appendChild(newListItem6);
600
-        //         iframeDoc.appendChild(newList)
601
-        //       }
602
-        //     }
603
-        //   }
604
-        // })
608
+       
609
+          //  医嘱
610
+          if(this.longAdvice!=null && this.longAdvice.length>0){
611
+            for(let i=0;i<this.longAdvice.length;i++){
612
+                this.longAdvice[i].advice_type_name = ""
613
+                if(this.longAdvice[i].advice_type == 1){
614
+                  this.longAdvice[i].advice_type_name = "长期医嘱"
615
+                }
616
+                if(this.longAdvice[i].stop_state == 1){
617
+                  this.longAdvice[i].stop_state_name = "停用"
618
+                }
619
+                if(this.longAdvice[i].stop_state == 2){
620
+                  this.longAdvice[i].stop_state_name = "未停用"
621
+                }
622
+            }
623
+        }
624
+
625
+        if(this.inpectionList!=null&& this.inpectionList.length>0){
626
+           for(let i=0;i<this.inpectionList.length;i++){
627
+            this.inpectionList[i].group_no = ""
628
+             this.inpectionList[i].group_no = this.inpectionList[i].project_id.toString()+"_"+this.inpectionList[i].inspect_date.toString()
629
+           }
630
+        }
631
+
632
+
633
+        if(this.inpectionList!=null && this.inpectionList.length>0){
634
+          let dataInfo = {}
635
+          this.inpectionList.forEach((item, index) => {
636
+          let { group_no } = item
637
+          if (!dataInfo[group_no]) {
638
+            dataInfo[group_no] = {
639
+              group_no:group_no,
640
+              project_id:item.project_id,
641
+              name:item.project_name,
642
+              date:this.getTime(item.inspect_date),
643
+              child:[],
644
+              left: [],
645
+              right:[]
646
+            }
647
+          }
648
+        })
649
+        let arr = Object.values(dataInfo)
650
+        console.log("arr----------------------",arr)
651
+
652
+        if(arr!=null && arr.length>0){
653
+          for(let i=0;i<arr.length;i++){
654
+            for(let j=0;j<this.inpectionList.length;j++){
655
+              if(arr[i].group_no == this.inpectionList[j].group_no){
656
+                  arr[i].child.push(this.inpectionList[j])
657
+              }
658
+            }
659
+          }
660
+        }
661
+
662
+        for(let i=0;i<arr.length;i++){
663
+          for(let j=0;j<arr[i].child.length;j++){
664
+             if(j%2 ==0){
665
+               arr[i].left.push(arr[i].child[j])
666
+             }
667
+             if(j%2 == 1){
668
+              arr[i].right.push(arr[i].child[j])
669
+             }
670
+          }
671
+        }
672
+
673
+        this.Inspect = []
674
+        this.Inspect = arr
675
+        console.log("newarr----------------",arr)
676
+       }
677
+       const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
678
+              <tr>
679
+                <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
680
+              </tr>
681
+              <tr>
682
+                <td width="130" style="padding: 5px;">基本信息</td>
683
+                <td style="padding: 5px;">
684
+                  <span>姓名:</span>  <span>性别:</span>  <span>年龄:</span>  <span>透析号:</span>
685
+                </td>
686
+              </tr>
687
+              <tr>
688
+                <td style="align-items: center;padding: 5px;">透析处方</td>
689
+                <td style='padding:5px'>
690
+                  <p style='font-weight: bold;'>总次数:次 ;</p>
691
+                  <p style='margin-bottom: 10px;' >其中;
692
+
693
+                  </p>
694
+                  <p style='font-weight: bold;'>透析器:</p>
695
+                  <p style='margin-bottom: 10px;'>
696
+
697
+                  </p>
698
+                  <p style='font-weight: bold;'>透析液处方:</p>
699
+                  <p style='margin-bottom: 10px;'>
700
+
701
+                  </p>
702
+                  <p style='font-weight: bold;'>抗凝方式:</p>
703
+                  <p ></p>
704
+                </td>
705
+              </tr>
706
+              <tr>
707
+                <td style="align-items: center;padding: 5px;">透析情况</td>
708
+                <td style='padding:5px'>
709
+                  <p>透析间期平均体重增加:kg;</p>
710
+                  <p>凝血:;</p>
711
+                  <p>平均血流量:mL/min;最大血流量:mL/min;</p>
712
+                  <p>平均超滤量:ml/次;平均超滤率:mL/h;</p>
713
+                  <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:mmHg~mmHg;舒张压:mmHg~mmHg;</span></p>
714
+                  <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:mmHg~mmHg;舒张压:mmHg;</span></p>
715
+                  <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:mmHg~mmHg</span></p>
716
+                  <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">舒张压:mmHg~mmHg;</span></p>
717
+                </td>
718
+              </tr>
719
+              <tr>
720
+                <td style="align-items: center;padding: 5px;">干体重</td>
721
+                <td style='padding: 5px;'>
722
+                  <p>
723
+                    <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">kg;</span>
724
+                  </p>
725
+                  <p>
726
+                    <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class=""></span>
727
+                  </p>
728
+                </td>
729
+              </tr>
730
+              <tr>
731
+                <td style="align-items: center;padding: 5px;">血管通路</td>
732
+                <td style='padding: 5px;'>
733
+                  <p>
734
+                    <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class=""> &nbsp;&nbsp;建立时间:</span>
735
+                  </p>
736
+                </td>
737
+              </tr>
738
+              <tr>
739
+                <td style="align-items: center;padding: 5px;">合并症/并发症</td>
740
+                <td style='padding: 5px;'>
741
+                  <p>
742
+                    <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
743
+                  </p>
744
+                  <p>
745
+                    <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class=""></span>
746
+                  </p>
747
+                </td>
748
+              </tr>
749
+              <tr>
750
+                <td style="align-items: center;padding: 5px;">检查结果</td>
751
+                <td style='padding: 5px;'>
752
+                  <span class="">无</span>
753
+                </td>
754
+              </tr>
755
+              <tr>
756
+                <td style="align-items: center;padding: 5px;">检验结果</td>
757
+                <td></td>
758
+              </tr>
759
+              <tr>
760
+                <td style="align-items: center;padding: 5px;">医嘱用药</td>
761
+                <td  class='' style="padding: 0;">
762
+                  <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
763
+                    <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
764
+                </td>
765
+              </tr>
766
+
767
+
768
+              <tr>
769
+                <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
770
+                <td style='padding: 5px;'>
771
+                  <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
772
+                  <p class="">2、透析间期体重增加稳定,继续保持;</p>
773
+                  <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
774
+                </td>
775
+              </tr>
776
+              <tr>
777
+                <td style="align-items: center;padding: 5px;">医师签名</td>
778
+                <td style='padding: 5px;'>
779
+                  <p class=""></p>
780
+                </td>
781
+              </tr>
782
+            </table>`
783
+          console.log('1111111111textcontent',this.start_date);
784
+        this.textcontent = contents
785
+        this.$nextTick(()=>{
786
+          console.log('document.getElementById(editer)',document.getElementById('editer').getElementsByTagName('tbody')[0].children[9]);
787
+          const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
788
+          const jiancDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[8].children[1]
789
+          console.log('document.getElementById(editer)1111',jiancDoc);
790
+          if(this.Inspect.length<1){
791
+            let newList = document.createElement('p');
792
+            newList.style.cssText = 'padding: 5px;'
793
+            newList.textContent = '无';
794
+            jiancDoc.appendChild(newList)
795
+          }else{
796
+            let newList = document.createElement('p');
797
+                newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
798
+                let newListItem1 = document.createElement('span');
799
+                newListItem1.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
800
+                let newListItem2 = document.createElement('span');
801
+                newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
802
+                let newListItem3 = document.createElement('span');
803
+                newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
804
+                let newListItem4 = document.createElement('span');
805
+                newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
806
+                let newListItem5 = document.createElement('span');
807
+                newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
808
+                let newListItem6 = document.createElement('span');
809
+                newListItem6.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;'
810
+                newListItem1.textContent = '检验项目';
811
+                newListItem2.textContent = '检验时间';
812
+                newListItem3.textContent = '检验内容';
813
+                newListItem4.textContent = '结果';
814
+                newListItem5.textContent = '检验内容';
815
+                newListItem6.textContent = '结果';
816
+                newList.appendChild(newListItem1);
817
+                newList.appendChild(newListItem2);
818
+                newList.appendChild(newListItem3);
819
+                newList.appendChild(newListItem4);
820
+                newList.appendChild(newListItem5);
821
+                newList.appendChild(newListItem6);
822
+                jiancDoc.appendChild(newList)
823
+            for(let i in this.Inspect){
824
+              let newList1 = document.createElement('p');
825
+              const child1 = document.createElement('p')
826
+              const child2 = document.createElement('p')
827
+              const child3 = document.createElement('p')
828
+              newList1.appendChild(child1);
829
+              newList1.appendChild(child2);
830
+              newList1.appendChild(child3);
831
+              newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
832
+              child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
833
+              child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
834
+              child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
835
+
836
+              let newListItem1 = document.createElement('span');
837
+              newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
838
+              let newListItem2 = document.createElement('span');
839
+              newListItem2.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;'
840
+              newListItem1.textContent = this.Inspect[i].name;
841
+              newListItem2.textContent = this.Inspect[i].date;
842
+              child1.appendChild(newListItem1);
843
+              child1.appendChild(newListItem2);
844
+              for(let j in this.Inspect[i].left){
845
+                let newListItem3 = document.createElement('span');
846
+                newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
847
+                let newListItem4 = document.createElement('span');
848
+                newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
849
+                newListItem3.textContent = this.Inspect[i].left[j].item_name;
850
+                newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
851
+                child2.appendChild(newListItem3);
852
+                child2.appendChild(newListItem4);
853
+              }
854
+              for(let x in this.Inspect[i].right){
855
+                let newListItem5 = document.createElement('span');
856
+                newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
857
+                let newListItem6 = document.createElement('span');
858
+                newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
859
+                newListItem5.textContent = this.Inspect[i].right[x].item_name;
860
+                newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
861
+                child3.appendChild(newListItem5);
862
+                child3.appendChild(newListItem6);
863
+              }
864
+              jiancDoc.appendChild(newList1)
865
+            }
866
+          }
867
+          var newListArr =[]
868
+          for(let j in this.longAdvice){
869
+            const obj={
870
+              id:this.longAdvice[j].id,
871
+              newlist:'newList'+j
872
+            }
873
+            newListArr.push(obj) 
874
+          }
875
+          for(let i in this.longAdvice){
876
+            for(let j in newListArr){
877
+              if(this.longAdvice[i].id==newListArr[j].id){
878
+                let newList = document.createElement('p');
879
+                newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
880
+                let newListItem1 = document.createElement('span');
881
+                newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
882
+                let newListItem2 = document.createElement('span');
883
+                newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
884
+                let newListItem3 = document.createElement('span');
885
+                newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
886
+                let newListItem4 = document.createElement('span');
887
+                newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
888
+                let newListItem5 = document.createElement('span');
889
+                newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
890
+                let newListItem6 = document.createElement('span');
891
+                newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
892
+                newListItem1.textContent = this.longAdvice[i].advice_name;
893
+                newListItem2.textContent = this.longAdvice[i].advice_type_name;
894
+                newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
895
+                newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
896
+                newListItem5.textContent = this.longAdvice[i].execution_frequency;
897
+                newListItem6.textContent = this.longAdvice[i].stop_state_name;
898
+                newList.appendChild(newListItem1);
899
+                newList.appendChild(newListItem2);
900
+                newList.appendChild(newListItem3);
901
+                newList.appendChild(newListItem4);
902
+                newList.appendChild(newListItem5);
903
+                newList.appendChild(newListItem6);
904
+                iframeDoc.appendChild(newList)
905
+              }
906
+            }
907
+          }
908
+        })
909
+        this.new_content = this.textcontent
910
+        this.$refs.editor.contents = this.new_content
911
+
912
+        this.$nextTick(()=>{
913
+          const iframeDoc1 = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
914
+
915
+          const jiancDoc1 = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[8].children[1]
916
+          jiancDoc1.getElementsByTagName('br')[0].remove()
917
+          jiancDoc1.style.cssText='padding: 0'
918
+            if(this.Inspect.length<1){
919
+              let newList2 = document.createElement('p');
920
+              newList2.style.cssText = 'padding: 5px;'
921
+              newList2.textContent = '无';
922
+              jiancDoc.appendChild(newList2)
923
+            }else{
924
+              let newList = document.createElement('p');
925
+                  newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
926
+                  let newListItem1 = document.createElement('span');
927
+                  newListItem1.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
928
+                  let newListItem2 = document.createElement('span');
929
+                  newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
930
+                  let newListItem3 = document.createElement('span');
931
+                  newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
932
+                  let newListItem4 = document.createElement('span');
933
+                  newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
934
+                  let newListItem5 = document.createElement('span');
935
+                  newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
936
+                  let newListItem6 = document.createElement('span');
937
+                  newListItem6.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;'
938
+                  newListItem1.textContent = '检验项目';
939
+                  newListItem2.textContent = '检验时间';
940
+                  newListItem3.textContent = '检验内容';
941
+                  newListItem4.textContent = '结果';
942
+                  newListItem5.textContent = '检验内容';
943
+                  newListItem6.textContent = '结果';
944
+                  newList.appendChild(newListItem1);
945
+                  newList.appendChild(newListItem2);
946
+                  newList.appendChild(newListItem3);
947
+                  newList.appendChild(newListItem4);
948
+                  newList.appendChild(newListItem5);
949
+                  newList.appendChild(newListItem6);
950
+                  jiancDoc1.appendChild(newList)
951
+              for(let i in this.Inspect){
952
+                let newList1 = document.createElement('p');
953
+                const child1 = document.createElement('p')
954
+                const child2 = document.createElement('p')
955
+                const child3 = document.createElement('p')
956
+                newList1.appendChild(child1);
957
+                newList1.appendChild(child2);
958
+                newList1.appendChild(child3);
959
+                newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
960
+                child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
961
+                child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
962
+                child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
963
+
964
+                let newListItem1 = document.createElement('span');
965
+                newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
966
+                let newListItem2 = document.createElement('span');
967
+                newListItem2.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;'
968
+                newListItem1.textContent = this.Inspect[i].name;
969
+                newListItem2.textContent = this.Inspect[i].date;
970
+                child1.appendChild(newListItem1);
971
+                child1.appendChild(newListItem2);
972
+                for(let j in this.Inspect[i].left){
973
+                  let newListItem3 = document.createElement('span');
974
+                  newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
975
+                  let newListItem4 = document.createElement('span');
976
+                  newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;box-sizing: border-box;display: inline-block;padding: 5px 0;'
977
+                  newListItem3.textContent = this.Inspect[i].left[j].item_name;
978
+                  newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
979
+                  child2.appendChild(newListItem3);
980
+                  child2.appendChild(newListItem4);
981
+                }
982
+                for(let x in this.Inspect[i].right){
983
+                  let newListItem5 = document.createElement('span');
984
+                  newListItem5.style.cssText= 'width: 50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
985
+                  let newListItem6 = document.createElement('span');
986
+                  newListItem6.style.cssText= 'width: 50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
987
+                  newListItem5.textContent = this.Inspect[i].right[x].item_name;
988
+                  newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
989
+                  child3.appendChild(newListItem5);
990
+                  child3.appendChild(newListItem6);
991
+                }
992
+                jiancDoc1.appendChild(newList1)
993
+              }
994
+            }
995
+
996
+
997
+          var newListArr2 =[]
998
+          for(let j in this.longAdvice){
999
+            const obj={
1000
+              id:this.longAdvice[j].id,
1001
+              newlist:'newList'+j
1002
+            }
1003
+            newListArr2.push(obj)
1004
+          }
1005
+          for(let i in this.longAdvice){
1006
+            for(let j in newListArr2){
1007
+              if(this.longAdvice[i].id==newListArr2[j].id){
1008
+                let newList = document.createElement('p');
1009
+                newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
1010
+                let newListItem1 = document.createElement('span');
1011
+                newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1012
+                let newListItem2 = document.createElement('span');
1013
+                newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1014
+                let newListItem3 = document.createElement('span');
1015
+                newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1016
+                let newListItem4 = document.createElement('span');
1017
+                newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1018
+                let newListItem5 = document.createElement('span');
1019
+                newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1020
+                let newListItem6 = document.createElement('span');
1021
+                newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
1022
+                newListItem1.textContent = this.longAdvice[i].advice_name;
1023
+                newListItem2.textContent = this.longAdvice[i].advice_type_name;
1024
+                newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
1025
+                newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
1026
+                newListItem5.textContent = this.longAdvice[i].execution_frequency;
1027
+                newListItem6.textContent = this.longAdvice[i].stop_state_name;
1028
+                newList.appendChild(newListItem1);
1029
+                newList.appendChild(newListItem2);
1030
+                newList.appendChild(newListItem3);
1031
+                newList.appendChild(newListItem4);
1032
+                newList.appendChild(newListItem5);
1033
+                newList.appendChild(newListItem6);
1034
+                iframeDoc1.appendChild(newList)
1035
+              }
1036
+            }
1037
+          }
1038
+        })
605 1039
          this.AuToShow = true
606 1040
 
607
-      //  this.getAutoPatientContent()
1041
+
608 1042
       },
609 1043
       // 本周
610 1044
       getFirstDayOfWeek(date){
@@ -781,11 +1215,11 @@
781 1215
         console.log("start_time==============",params)
782 1216
        getAutoPatientContent(params).then(response=>{
783 1217
           if(response.data.state == 1){
784
-          
1218
+
785 1219
             var prescription =  response.data.data.prescription
786 1220
             this.prescription=[]
787 1221
             this.prescription = prescription
788
-           
1222
+
789 1223
             var berfor = response.data.data.berfor
790 1224
             this.berforList = []
791 1225
             this.berforList = berfor
@@ -804,10 +1238,10 @@
804 1238
             this.inpectionList = []
805 1239
 
806 1240
             this.inpectionList = inpectionList
807
-            
808
-           
1241
+
1242
+
809 1243
             var patient = response.data.data.patient
810
-           
1244
+
811 1245
             if(patient.gender == 1){
812 1246
                patient.gender_name = "男"
813 1247
             }
@@ -820,18 +1254,59 @@
820 1254
 
821 1255
            this.dialysisOrderList = []
822 1256
            this.dialysisOrderList = dialysisOrderList
823
-            
1257
+
824 1258
            var longAdvice = response.data.data.longAdvice
825
-        
1259
+
826 1260
            this.longAdvice = []
827 1261
            this.longAdvice = longAdvice
828 1262
 
1263
+           this.groupPrescriptionList = []
829 1264
            this.groupPrescriptionList = response.data.data.groupPrescriptionList
830 1265
 
831
-           this.auto_dialog  =  true
1266
+           this.afterList = response.data.data.after
1267
+
1268
+           this.max_blood_flow_volume = response.data.data.max_blood_flow_volume
1269
+
1270
+           this.max_befor_systolic_blood_pressure = response.data.data.max_befor_systolic_blood_pressure
1271
+
1272
+         this.min_befor_systolic_blood_pressure = response.data.data.min_befor_systolic_blood_pressure
1273
+
1274
+         this.max_befor_diastolic_blood_pressure  = response.data.data.max_befor_diastolic_blood_pressure
1275
+
1276
+         this.min_befor_diastolic_blood_pressure = response.data.data.min_befor_diastolic_blood_pressure
1277
+
1278
+
1279
+         this.max_after_systolic_blood_pressure = response.data.data.max_after_systolic_blood_pressure
1280
+
1281
+         this.min_after_systolic_blood_pressure = response.data.data.min_after_systolic_blood_pressure
1282
+
1283
+         this.max_after_diastolic_blood_pressure = response.data.data.max_after_diastolic_blood_pressure
1284
+
1285
+
1286
+         this.min_after_diastolic_blood_pressure = response.data.data.min_after_diastolic_blood_pressure
1287
+
1288
+         this.max_monitor_systolic_blood_pressure = response.data.data.max_monitor_systolic_blood_pressure
1289
+
1290
+
1291
+         this.min_monitor_systolic_blood_pressure = response.data.data.min_monitor_systolic_blood_pressure
1292
+
1293
+
1294
+         this.max_monitor_diastolic_blood_pressure = response.data.data.max_monitor_diastolic_blood_pressure
1295
+
1296
+
1297
+         this.min_monitor_diastolic_blood_pressure = response.data.data.min_monitor_diastolic_blood_pressure
1298
+
1299
+
1300
+         this.lastDryWeight = response.data.data.lastDryWeight
1301
+
1302
+         this.patientVascularAccess = response.data.data.patientVascularAccess
1303
+
1304
+         this.lastBefor = response.data.data.lastBefor
1305
+
1306
+         this.auto_dialog  =  true
1307
+
1308
+
832 1309
 
833
-            
834
-            
835 1310
           }
836 1311
        })
837 1312
 
@@ -1044,15 +1519,21 @@
1044 1519
       getTimeOne (time) {
1045 1520
       return uParseTime(time, '{y}-{m}-{d}')
1046 1521
       },
1047
-    
1522
+
1048 1523
       newcontent(val){
1049 1524
         this.new_content =''
1050 1525
         this.new_content = val
1051
-        // console.log('1111112323',this.new_content);
1526
+        console.log('1111112323',val);
1052 1527
         this.$refs.editor.contents = this.new_content
1053 1528
       }
1054 1529
     },
1055
-    
1530
+    beforeMount(){
1531
+      
1532
+    },
1533
+    mounted(){
1534
+
1535
+    }
1536
+
1056 1537
   }
1057 1538
 </script>
1058 1539
 

+ 126 - 4
src/xt_pages/user/inspection.vue View File

@@ -102,6 +102,9 @@
102 102
             >删除
103 103
             </el-button
104 104
             >
105
+            <el-button size="small" class="filter-item" type="primary" icon="el-icon-printer" @click="Printcheck" >
106
+              打印
107
+            </el-button>
105 108
           </div>
106 109
           <div class="filter-container">
107 110
             <el-button class="filter-item" type="text" style="color:#000"
@@ -247,6 +250,76 @@
247 250
             :total="total"
248 251
           >
249 252
           </el-pagination>
253
+
254
+          <div style="display: none">
255
+            <div id="print_content">
256
+              <div style="text-align: center;border-bottom: 1px solid black;">
257
+                <h1>检验报告</h1>
258
+              </div>
259
+              <div style="display: flex;margin: 10px 0;">
260
+                <div style="flex: 1;">姓名:{{ patient.name }}</div>
261
+                <div style="flex: 1;">性别:{{ patient.gender ==1 ? '男' : '女' }}</div>
262
+                <div style="flex: 1;">年龄:{{ patient.age }}
263
+                  <!-- <span v-if="getAge(patient)>200">
264
+                    {{ patient.age }}
265
+                  </span>
266
+                  <span v-else>
267
+                    {{ getAge(patient) }}
268
+                  </span> -->
269
+                </div>
270
+              </div>
271
+              <table class="checktable" border="1" style="border-collapse: collapse;width: 100%;border-left: 0;border-right: 0;">
272
+                <thead>
273
+                  <tr style="padding: 5px 0;border-top:1px solid black ;border-bottom:1px solid black ;">
274
+                    <th width="150">项目</th>
275
+                    <th width="80">结果</th>
276
+                    <th width="50">提示</th>
277
+                    <th width="100">单位</th>
278
+                    <th width="100">参考区间</th>
279
+                  </tr>
280
+                </thead>
281
+                <tbody>
282
+                  <tr v-for="(item,index) in items" :key="index">
283
+                    <td width="150">{{ item.item_name }} {{ item.item_name_addition }}</td>
284
+                    <td width="80">
285
+                      <div>
286
+                        <span v-if="item.range_type == 2">
287
+                          <span v-if="item.value=='阳性'" style="color: red"> {{ item.value }}</span>
288
+                          <span v-else> {{ item.value }}</span>
289
+                        </span>
290
+                        <span v-if="item.range_type == 1">
291
+                          <span v-if="parseFloat(item.value) < parseFloat(getrange(item.range_min)) ">
292
+                            {{ item.value }}
293
+                          </span>
294
+                          <span v-if="parseFloat(getrange(item.range_min))<= parseFloat( item.value) && parseFloat(item.value)<= parseFloat(getrange(item.range_max)) ">
295
+                            {{ item.value }}
296
+                          </span>
297
+                          <span v-if="parseFloat(item.value) >parseFloat(getrange(item.range_max)) ">
298
+                            {{ item.value }}
299
+                          </span>
300
+                          <span v-if ="item.range_max ==''||item.range_min ==''">
301
+                            {{ item.value }}
302
+                          </span>
303
+                        </span>
304
+                      </div>
305
+                    </td>
306
+                    <td width="50">
307
+                      <span v-if="item.range_type == 1">
308
+                        <span v-if="parseFloat(item.value) < parseFloat(getrange(item.range_min)) ">
309
+                          <span v-if="item.value>0">↓</span>
310
+                        </span>
311
+                        <span v-if="parseFloat(item.value) >parseFloat(getrange(item.range_max)) ">
312
+                          <span v-if="item.value>0">↑</span>
313
+                        </span>
314
+                      </span>
315
+                    </td>
316
+                    <td width="100">{{ item.unit }}</td>
317
+                    <td width="100">{{ item.range_min }}~{{ item.range_max }}</td>
318
+                  </tr>
319
+                </tbody>
320
+              </table>
321
+            </div>
322
+          </div>
250 323
         </el-col>
251 324
       </el-row>
252 325
     </div>
@@ -505,7 +578,7 @@
505 578
 import PatientSidebar from './components/PatientSidebar'
506 579
 import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
507 580
 import { getToken } from '@/api/qiniu'
508
-
581
+import print from "print-js";
509 582
 import {
510 583
   CreatePatientInspection,
511 584
   CreatePatientPICInspection,
@@ -573,6 +646,7 @@ export default {
573 646
         page: 1
574 647
       },
575 648
       org_id:0,
649
+      patient:{},
576 650
     }
577 651
   },
578 652
   methods: {
@@ -724,7 +798,24 @@ export default {
724 798
         })
725 799
         .catch(() => {
726 800
         })
727
-    },submitRemindDialog(){
801
+    },
802
+    // 打印
803
+    Printcheck(){
804
+      if (this.project == null || this.itemDate == '') {
805
+        this.$message.error('请先选择打印的记录')
806
+        return false
807
+      }else{
808
+        const style='@media print{.checktable tr td,th{border: 0 !important;padding: 5px 0;text-align: center;}}'
809
+        printJS({
810
+          printable: "print_content",
811
+          type: "html",
812
+          documentTitle: "  ",
813
+          style: style,
814
+          scanStyles: false,
815
+        });
816
+      }
817
+    },
818
+    submitRemindDialog(){
728 819
       var temp_is_open = 0
729 820
       if(this.is_open){
730 821
         temp_is_open = 1
@@ -751,7 +842,8 @@ export default {
751 842
           this.dialogRemindDialogFormVisible = false
752 843
         }
753 844
       })
754
-    },submitNewRemind(){
845
+    },
846
+    submitNewRemind(){
755 847
       // console.log(this.is_open)
756 848
       var params = {
757 849
         patient: this.patientID,
@@ -953,6 +1045,7 @@ export default {
953 1045
           for (var index in this.form.formItem) {
954 1046
             this.form.formItem[index].value = '' + this.form.formItem[index].value
955 1047
           }
1048
+          console.log('this.patientID, this.form,',this.patientID, this.form, this.form.remind_cycle, this.form.inspect_date, this.form.project_id);
956 1049
 
957 1050
           EditPatientInspection(this.patientID, this.form, this.form.remind_cycle, this.form.inspect_date, this.form.project_id).then(response => {
958 1051
             if (response.data.state == 1) {
@@ -1364,7 +1457,7 @@ export default {
1364 1457
                     item.item_name = inspectionsMap[items[index].id].item_name
1365 1458
                   }else{
1366 1459
                     console.log('执行1');
1367
-                    
1460
+
1368 1461
                     if(this.org_id == 10702 || this.org_id == 0){
1369 1462
                       if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1370 1463
                           item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
@@ -1454,9 +1547,33 @@ export default {
1454 1547
       }
1455 1548
 
1456 1549
     },
1550
+    getAge: function(val) {
1551
+      if (val.id_card_no == undefined) {
1552
+        return false
1553
+      }
1554
+      var thisLen = val.id_card_no.length
1555
+      var birth = ''
1556
+      if (thisLen == 15) {
1557
+        birth = '19' + val.id_card_no.substr(6, 6)
1558
+      } else {
1559
+        birth = val.id_card_no.substr(6, 8)
1560
+      }
1561
+      var birthtwo =
1562
+        birth.substr(0, 4) +
1563
+        '-' +
1564
+        birth.substr(4, 2) +
1565
+        '-' +
1566
+        birth.substr(6, 2)
1567
+
1568
+      var age = jsGetAge(birthtwo, '-')
1569
+      return age
1570
+    }
1457 1571
   },
1458 1572
   created() {
1459 1573
     const id = this.$route.query && this.$route.query.id
1574
+    this.patient = this.$route.query.patient
1575
+    console.log('this.patient',this.patient);
1576
+
1460 1577
     this.org_id = this.$store.getters.xt_user.org.id,
1461 1578
     this.patientID = parseInt(id)
1462 1579
     if (isNaN(this.patientID) || this.patientID <= 0) {
@@ -1504,4 +1621,9 @@ export default {
1504 1621
 .el-table::before {
1505 1622
   background-color: #d0d3da;
1506 1623
 }
1624
+.checktable tr td,th{
1625
+  border: 0 !important;
1626
+  padding: 5px 0;
1627
+  text-align: center;
1628
+}
1507 1629
 </style>

+ 5 - 7
src/xt_pages/user/physiqueprinting.vue View File

@@ -37,29 +37,29 @@
37 37
             </div>
38 38
           </div>
39 39
 
40
-          <div style="display: flex; justify-self: start;margin-top: 5px ;">
40
+          <div style="display: flex; justify-self: start;margin-top: 5px ;width: 100%;">
41 41
             <div style="flex: 1;">性别:{{ getPatientGender(patient.gender) }}</div>
42 42
             <div style="flex: 1;">年龄:{{ patient.age }}</div>
43 43
             <div style="flex: 1;">出生日期:{{ getTime(patient.birthday, '{y}-{m}-{d}') }}</div>
44 44
           </div>
45
-          <div style="display: flex; justify-self: start; margin-top: 5px ;">
45
+          <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
46 46
             <div style="flex: 1;">身份证号:{{ patient.id_card_no }}</div>
47 47
             <div style="flex: 1;">病人来源:{{ patient.source == 1 ? '门诊' : '住院' }}</div>
48 48
             <div style="flex: 1;">透析号:{{ patient.dialysis_no }}</div>
49 49
           </div>
50
-          <div style="display: flex; justify-self: start; margin-top: 5px ;">
50
+          <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
51 51
             <div style="flex: 1;">
52 52
               首次透析日期:{{ patient.first_dialysis_date ? getTime(patient.first_dialysis_date, '{y}-{m}-{d}') : '' }}
53 53
             </div>
54 54
             <div style="flex: 1;">血型:{{ getBloodType(patient.blood_type) }}</div>
55 55
             <div style="flex: 1;">报销方式:{{ getWayOptions(patient.reimbursement_way_id) }}</div>
56 56
           </div>
57
-          <div style="display: flex; justify-self: start; margin-top: 5px ;">
57
+          <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
58 58
             <div style="flex: 1;">工作单位:{{ patient.work_unit }}</div>
59 59
             <div style="flex: 1;">联系电话:{{ patient.phone }}</div>
60 60
             <div style="flex: 1;">家庭住址:{{ patient.home_address }}</div>
61 61
           </div>
62
-          <div style="display: flex; justify-self: start; margin-top: 5px ;">
62
+          <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
63 63
             <div style="flex: 1;">肾移植史:{{ item.is_shenyizhi_history == 0?'无':'有' }}</div>
64 64
             <div style="flex: 1;">腹膜透析史:{{ item.is_fumo_dialysis_history == 0? '无':'有' }}</div>
65 65
             <div style="flex: 1;" v-if="item.is_hypersusceptibility == 0">过敏药物:无</div>
@@ -128,8 +128,6 @@
128 128
               <span style="font-weight: bold;">病历书写者:</span>
129 129
               {{getDoctorName(item.doctor_id)}}
130 130
             </div>
131
-            
132
-
133 131
           </div>
134 132
           <div style="float: right;">
135 133
             <span style="font-weight: bold;">日期:</span>

+ 440 - 55
src/xt_pages/user/sickHistory_new.vue View File

@@ -49,7 +49,7 @@
49 49
                 <div v-if='add_index == 0'>
50 50
                   <el-button type="primary" size="small" @click="showEdit">修改</el-button>
51 51
                   <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
52
-                  <el-button type="primary" size="small" @click="prints">打印</el-button>
52
+                  <el-button type="primary" size="small" @click="printOne">打印</el-button>
53 53
                 </div>
54 54
                 <div v-if="add_index == 1">
55 55
                   <el-button type="primary" size="small" @click="createAction">保存</el-button>
@@ -99,9 +99,9 @@
99 99
                 <el-select v-model="admin_user_id" placeholder="请选择" style="width: 120px;" :disabled="disabled">
100 100
                   <el-option
101 101
                     v-for="item in doctorOptions"
102
-                    :key="item.id"
103
-                    :label="item.name"
104
-                    :value="item.id">
102
+                    :key="item.admin_user_id"
103
+                    :label="item.user_name"
104
+                    :value="item.admin_user_id">
105 105
                   </el-option>
106 106
                 </el-select>
107 107
               </div>
@@ -115,7 +115,9 @@
115 115
                     :value="item.value">
116 116
                   </el-option>
117 117
                 </el-select>
118
-                <el-input v-if="shen_guomi == 2" v-model="guominyaowu_desc"></el-input>
118
+              </div>
119
+              <div style="width: 50%;"  v-if="shen_guomi == 2" >
120
+                过敏药物备注:  <el-input v-model="guominyaowu_desc" style="width: 300px;"></el-input>
119 121
               </div>
120 122
             </div>
121 123
 
@@ -136,8 +138,6 @@
136 138
       </div>
137 139
 
138 140
 
139
-
140
-
141 141
       <el-dialog
142 142
         title="设置模板"
143 143
         :visible.sync="template_dialog"
@@ -196,20 +196,122 @@
196 196
           <el-button @click="library_dialog = false">取消</el-button>
197 197
         </span>
198 198
       </el-dialog>
199
+    </div>
200
+    <!-- 打印 -->
201
+    <div style="display: none;">
202
+      <div id="Physical_print_content" style="font-size: 14px;">
203
+        <div style="width: 100%;text-align: center;margin-bottom: 10px;">
204
+          <h2>{{orgname}}</h2>
205
+        </div>
206
+        <div style="display: flex;padding: 5px 0;border-bottom: 1px solid black;">
207
+          <div style="flex: 1;">姓名:</div>
208
+          <div style="flex: 1;">病历号:</div>
209
+          <div style="flex: 1;">病区-床号:</div>
210
+          <div style="flex: 1;">接收日期:</div>
211
+        </div>
212
+        <div style="display: flex;margin: 5px;">
213
+          <div style="flex: 1;">性别:</div>
214
+          <div style="flex: 1;">年龄:岁 出生日期:</div>
215
+          <div style="flex: 1;">身份证号:340223194809195837</div>
216
+        </div>
217
+        <div style="display: flex;margin: 5px;">
218
+          <div style="flex: 1;">病人来源:</div>
219
+          <div style="flex: 1;">透析号:</div>
220
+          <div style="flex: 1;">首次透析日期:</div>
221
+        </div>
222
+        <div style="display: flex;margin: 5px;">
223
+          <div style="flex: 1;">报销方式:</div>
224
+          <div style="flex: 1;">工作单位:</div>
225
+          <div style="flex: 1;">联系电话:</div>
226
+        </div>
227
+        <div style="display: flex;margin: 5px;">
228
+          <div style="flex: 1;">过敏药物:</div>
229
+          <div style="flex: 1;">肾移植史:</div>
230
+          <div style="flex: 1;">腹膜透析史:</div>
231
+        </div>
232
+        <div style="display: flex;margin: 5px;">
233
+          <div style="flex: 1;">家庭住址: </div>
234
+          <!-- <div style="flex: 1;"></div>
235
+          <div style="flex: 1;"></div> -->
236
+        </div>
237
+        <div style="font-size: 20px;font-weight: bold;text-align: center;margin: 10px;">病史内容</div>
238
+        <div v-html="template_content"></div>
239
+        <div class="content" style="margin-top: 20px;">
240
+            <div style="text-align: center;font-size: 20px;font-weight: bold;margin: 10px;">体格检查单</div>
241
+            <div style="display: flex;justify-content: space-around;padding: 5px;">
242
+              <div style="">T:</div>
243
+              <div style="">P:</div>
244
+              <div style="">R:</div>
245
+              <div style="">BP:</div>
246
+            </div>
247
+            <div >
248
+              <span >{{  }}贫血容貌,</span>
249
+              <span>{{ }}体位,</span>
250
+              <span>{{ }}浮肿,</span>
251
+              <span>出血点/瘀斑/血肿:{{ }},</span>
252
+              <span>发育{{ }},</span>
253
+              <span>营养{{ }},</span>
254
+              <span>神志{{ }}</span> <br/>
199 255
 
256
+              <span style="font-weight: bold;">皮肤黏膜:</span>
257
+              <span>皮肤黏膜{{ }},</span>
258
+              <span>{{ }}皮下出血,</span>
259
+              <span>{{ }}紫癜,</span>
260
+              <span>皮肤温度:{{ }}</span><br/>
261
+              <span style="font-weight: bold;">淋巴结:</span>
262
+              <span>浅表淋巴肿大:{{  }}</span>
263
+              <span>部位:{{  }}</span>
264
+              <br/>
265
+              <span style="font-weight: bold;">头部:</span>
266
+              <span>眼睑{{ }}</span>
267
+              <span>瞳孔(等大等圆):{{  }}</span>
268
+              <span>左(mm):{{  }}</span>
269
+              <span>右(mm):{{  }}</span>
270
+              <span>对光反射:{{  }}</span>
271
+              <span>扁桃体:{{  }}</span>
272
+              <span>咽部:{{  }}</span>
273
+              <span>其他:{{  }}</span><br/>
274
+              <span style="font-weight: bold;">颈部:</span>
275
+              <span>颈静脉:{{ }}</span>
276
+              <span>甲状腺:{{  }}</span>
277
+              <span>其他:{{  }}</span><br/>
200 278
 
279
+              <span style="font-weight: bold;"> 肺脏:</span>
280
+              <span>呼吸音:{{  }}</span>
281
+              <span>胸膜摩擦音:{{ }}</span>
282
+              <span>部位:{{ }}</span>
283
+              <span>啰音:{{  }}</span>
284
+              <span>描述:{{  }}</span><br/>
285
+              <span style="font-weight: bold;">心脏:</span>
286
+              <span>心脏大小:{{  }}</span>
287
+              <span>心律:{{  }}</span>
288
+              <span>心包摩擦声:{{  }}</span>
289
+              <span>杂音:{{  }}</span>
290
+              <span>附加音:{{  }}</span>
291
+              <span>描述:{{  }}</span><br/>
292
+              <span style="font-weight: bold;">腹部:</span>
293
+              <span>腹水征:{{  }}</span>
294
+              <span>肝颈静脉返流征:{{  }}</span>
295
+              <span>肝脏(压痛):{{  }}</span>
296
+              <span>肝脏(叩痛):{{  }}</span>
297
+              <span>脾脏(压痛):{{  }}</span>
298
+              <span>脾脏(叩痛):{{  }}</span>
299
+              <span>肾脏(压痛):{{  }}</span>
300
+              <span>肾脏(叩痛):{{  }}</span>
301
+              <span>描述:{{  }}</span><br/>
302
+              <span style="font-weight: bold;">其他:</span>
303
+              <span>{{  }}</span>
201 304
 
202
-
203
-
204
-
205
-
206
-
207
-
208
-     
209
-     
305
+            </div>
306
+        </div>
307
+        <div style="text-align: right;">
308
+          <span>病历书写者:</span>
309
+          <span>日期:</span>
310
+        </div>
311
+      </div>
210 312
     </div>
211 313
   </div>
212
- 
314
+
213 315
 </template>
214 316
 
215 317
 <script>
@@ -217,7 +319,7 @@ import PatientSidebar from './components/PatientSidebar'
217 319
 import PatientSidebar_new from './components/PatientSidebar_new'
218 320
 import Editor from '@/components/Editor'
219 321
 import ueditor from '@/components/Uedtior'
220
-import { fetchAllDoctorAndNurse } from "@/api/doctor";
322
+import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
221 323
  import print from 'print-js'
222 324
 import {
223 325
   createNewSickHistoryRecord,
@@ -227,11 +329,13 @@ import {
227 329
   saveSickHistoryTemplate,
228 330
   getSickHistoryTempalate,
229 331
   modifySickHistoryTemplate,
230
-  deleteSickHistoryTempalte
332
+  deleteSickHistoryTempalte,
333
+  fetchPatient,
231 334
 } from '@/api/patient'
232 335
 import { parseTime } from '@/utils'
233
-import BreadCrumb from '@/xt_pages/components/bread-crumb' 
336
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
234 337
 import { uParseTime } from '@/utils/tools'
338
+import { getDataConfig } from "@/utils/data";
235 339
 export default {
236 340
   name: 'CourseOfDisease',
237 341
   components: {
@@ -300,11 +404,26 @@ export default {
300 404
       templateList:[],
301 405
       template_content:"",
302 406
       template_id:0,
407
+      form:{},
408
+      wayOptions: null,
409
+      patientVascularAccessOne:{},
410
+      orgname:'',
411
+      ids:[]
303 412
     }
304 413
   },
305 414
   created() {
415
+    this.orgname = this.$store.getters.xt_user.org.org_name;
416
+
417
+
418
+    this.fetchAllDoctorAndNurse()
419
+    this.wayOptions = getDataConfig("patient", "reimbursement_ways");
420
+    console.log('this.wayOptions',this.wayOptions);
421
+
306 422
     this.admin_user_id = this.$store.getters.xt_user.user.id
307
-    
423
+
424
+    if(this.admin_user_id == 0){
425
+        this.admin_user_id = ""
426
+    }
308 427
     this.patient_id = parseInt(this.$route.query.id)
309 428
 
310 429
     if (isNaN(this.patient_id) || this.patient_id <= 0) {
@@ -338,13 +457,20 @@ export default {
338 457
       (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
339 458
       '-' +
340 459
       (nowDay < 10 ? '0' + nowDay : nowDay)
341
-
342
-    this.getlist()
343
-    this.fetchAllDoctorAndNurse()
460
+      this.getlist()
461
+      this.fetchPatient(this.patient_id)
344 462
 
345 463
   },
346 464
   methods: {
465
+    printOne(){
466
+      if(this.ids.length == 0){
467
+        this.$message.error('请选择要打印的病程')
468
+        return
469
+      }
470
+      this.$router.push({ path: "/sickhistory/print?ids="+this.ids+"&patient_id="+this.patient_id});
471
+    },
347 472
     template_dele(){
473
+      console.log("hahhahahah",this.template_id)
348 474
      deleteSickHistoryTempalte(this.template_id).then(response=>{
349 475
         if(response.data.state == 1){
350 476
           var msg =  response.data.data.msg
@@ -387,26 +513,197 @@ export default {
387 513
       this.edit_index = row.index
388 514
     },
389 515
     template_click(){
390
-      console.log('this.add_index',this.add_index);
391 516
 
517
+      console.log('this.add_index',this.getwayoption(this.form.reimbursement_way_id));
392 518
       if(this.add_index ==0){
393 519
         this.template_dialog = true
394 520
       }else{
521
+        const mode=`<p style="font-size: 18px;font-weight: 600;width:100%;margin-bottom: 10px;text-align: center;">血液净化治疗患者首次门诊病历</p>
522
+        <table border="1" style="border-collapse: collapse;text-align: center;">
523
+      <tbody>
524
+        <tr>
525
+          <td style="width:8%;padding: 5px 0px;font-size: 16px;">
526
+            姓名
527
+          </td>
528
+          <td style="padding: 5px 0px;font-size: 16px;width:15%;">
529
+            ${this.form.name}
530
+          </td>
531
+          <td style="padding: 5px 0px;font-size: 16px;width:7%;">
532
+            性别
533
+          </td>
534
+          <td style="padding: 5px 0px;font-size: 16px;width:5%;">
535
+            ${this.form.gender==1 ? '男':'女'}
536
+          </td>
537
+          <td style="padding: 5px 0px;font-size: 16px;width:8%;">
538
+            年龄
539
+          </td>
540
+          <td style="padding: 5px 0px;font-size: 16px;width:10%;">
541
+            ${this.form.age}岁
542
+          </td>
543
+          <td style="padding: 5px 0px;font-size: 16px;width:12%;">
544
+            医保类型
545
+          </td>
546
+          <td style="padding: 5px 0px;font-size: 16px;width: 15%;">
547
+            ${this.getwayoption(this.form.reimbursement_way_id)}
548
+          </td>
549
+          <td style="padding: 5px 0px;font-size: 16px;width:10%;">
550
+            透析号
551
+          </td>
552
+          <td style="padding: 5px 0px;font-size: 16px;width:10%;">
553
+            ${this.form.dialysis_no}
554
+          </td>
555
+        </tr>
556
+        <tr>
557
+          <td style="padding: 5px 0px;font-size: 16px;">
558
+            电话
559
+          </td>
560
+          <td style="padding: 5px 0px;font-size: 16px;">
561
+            ${this.form.phone}
562
+          </td>
563
+          <td  style="padding: 5px 0px;font-size: 16px;">
564
+            民族
565
+          </td>
566
+          <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
567
+            ${this.form.nation}
568
+          </td>
569
+          <td style="padding: 5px 0px;font-size: 16px;">
570
+            身份证号
571
+          </td>
572
+          <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
573
+            ${this.form.id_card_no}
574
+          </td>
575
+        </tr>
576
+        <tr>
577
+          <td style="padding: 5px 0px;font-size: 16px;">
578
+            联系人
579
+          </td>
580
+          <td style="padding: 5px 0px;font-size: 16px;">
581
+            ${this.form.contact_name}
582
+          </td>
583
+          <td  style="padding: 5px 0px;font-size: 16px;">
584
+            电话
585
+          </td>
586
+          <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
587
+            ${this.form.home_telephone}
588
+          </td>
589
+          <td style="padding: 5px 0px;font-size: 16px;">
590
+            联系地址
591
+          </td>
592
+          <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
593
+            ${this.form.home_address}
594
+          </td>
595
+        </tr>
596
+        <tr>
597
+          <td colspan="2" style="padding: 5px 0px;font-size: 16px;">
598
+            首次透析时间
599
+          </td>
600
+          <td colspan="4" style="padding: 5px 0px;font-size: 16px;">
601
+            ${this.getTime(this.form.first_dialysis_date)}
602
+          </td>
603
+          <td style="padding: 5px 0px;font-size: 16px;">
604
+            血管通路
605
+          </td>
606
+          <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
607
+            ${this.patientVascularAccessOne.blood_access_part_id } ${ this.patientVascularAccessOne.blood_access_part_opera_id }
608
+          </td>
609
+        </tr>
610
+
611
+        <tr>
612
+          <td style="padding: 5px 0px;font-size: 16px; ">
613
+            主诉
614
+          </td>
615
+          <td colspan="9" style="text-align: left; padding:0px 5px ;font-size: 16px;">
616
+            ${this.form.patient_complains}
617
+          </td>
618
+        </tr>
619
+        <tr>
620
+          <td>
621
+            <div  class="td_proj_title">现<br />病<br />史</div>
622
+          </td>
623
+          <td colspan="9">${this.form.present_history}</td>
624
+        </tr>
625
+        <tr>
626
+          <td>
627
+            <div class="td_proj_title">既<br />往<br />史</div>
628
+          </td>
629
+          <td colspan="9">${this.form.past_history}</td>
630
+        </tr>
631
+        <tr>
632
+          <td>
633
+            <div class="td_proj_title">过敏史</div>
634
+          </td>
635
+          <td colspan="5">${this.form.allergic_history}</td>
636
+          <td>
637
+            <div class="td_proj_title">家族史</div>
638
+          </td>
639
+          <td colspan="3">${this.form.famality_record}</td>
640
+        </tr>
641
+
642
+        <tr>
643
+          <td colspan="10"><div class="td_proj_title">体格检查</div></td>
644
+        </tr>
645
+        <tr>
646
+          <td colspan="10">
647
+            T:${this.form.temperature}℃&nbsp;&nbsp;&nbsp; P:${this.form.pulse}次/分&nbsp;&nbsp;&nbsp; R:${this.form.respiratory}次/分&nbsp;&nbsp;&nbsp; BP:${this.form.sbp}/${this.form.dbp}mmHg
648
+          </td>
649
+        </tr>
650
+        <tr>
651
+          <td colspan="10">${this.form.remark}</td>
652
+        </tr>
653
+        <tr>
654
+          <td style="width: 15%;">
655
+            <div class="td_proj_title">辅助检查</div>
656
+          </td>
657
+          <td colspan="9">
658
+            <p style='min-height:30px'></p>
659
+          </td>
660
+        </tr>
661
+        <tr>
662
+          <td>
663
+            <div class="td_proj_title">诊<br />断</div>
664
+          </td>
665
+          <td colspan="9">${this.form.diagnose}</td>
666
+        </tr>
667
+        <tr>
668
+          <td>
669
+            <div class="td_proj_title">诊<br />疗<br />计<br />划</div>
670
+          </td>
671
+          <td colspan="9"><p>${this.form.treatment_plan}</p></td>
672
+        </tr>
673
+      </tbody>
674
+        </table>`
675
+        const obj={
676
+          id:0,
677
+          title:'病史模板',
678
+          status:1,
679
+          content:mode,
680
+          ctime:parseFloat((new Date()).getTime()/1000).toFixed(0),
681
+          mtime: parseFloat((new Date()).getTime()/1000).toFixed(0),
682
+        }
683
+        const arr = []
684
+        arr.push(obj)
685
+        console.log('1111',arr);
395 686
         getSickHistoryTempalate().then(response=>{
396 687
           if(response.data.state == 1){
397 688
             this.library_dialog = true
398 689
             this.templateList = response.data.data.templateList
690
+            this.templateList = this.templateList.concat(arr)
691
+            // this.templateList.unshift(obj)
399 692
             console.log("hahhahahaha",this.$refs)
400 693
             if(this.templateList!=null && this.templateList.length>0){
401
-              this.$refs.record_table_one.setCurrentRow(this.templateList[0])
694
+              this.$nextTick(()=>{
695
+                this.$refs.record_table_one.setCurrentRow(this.templateList[0])
696
+              })
402 697
             }
403 698
             console.log("haaaaaaaaaaaaa",this.templateList)
404
-            
405 699
           }
406 700
         })
407
-     
408
-      }
409 701
 
702
+        // this.templateList.push(obj)
703
+
704
+        console.log('11111111',obj);
705
+
706
+      }
410 707
     },
411 708
     template_save(){
412 709
        var params = {
@@ -420,11 +717,11 @@ export default {
420 717
            this.template_dialog = false
421 718
          }
422 719
       })
423
-    
424
-    
720
+
721
+
425 722
     },
426 723
     prints(){
427
-      const style ='@media print{.content{width:960px;margin:0 auto;font-size: 23px;}}'
724
+      const style ='@media print{.content{width:960px;margin:0 auto;}}'
428 725
       printJS({
429 726
         printable: 'Physical_print_content',
430 727
         type: 'html',
@@ -434,14 +731,14 @@ export default {
434 731
     },
435 732
 
436 733
     fetchAllDoctorAndNurse() {
437
-      fetchAllDoctorAndNurse().then(response => {
734
+      fetchMoibleAllDoctorAndNurse().then(response => {
438 735
         if (response.data.state == 1) {
439 736
           this.doctorOptions= []
440 737
           this.doctorOptions = response.data.data.doctors;
441 738
         }
442 739
       });
443 740
     },
444
-  
741
+
445 742
     didChangeCurrentRecord: function(record) {
446 743
       this.current_select_record = record
447 744
     },
@@ -455,7 +752,29 @@ export default {
455 752
         this.$message.error('请填写病程内容')
456 753
         return
457 754
       }
755
+      if(this.admin_user_id == 0){
756
+        this.$message.error('请选择医生')
757
+        return
758
+      }
759
+      if(this.start_time==""){
760
+        this.$message.error('请选择时间')
761
+        return
762
+      }
458 763
       this.uploading_new_record = true
764
+      if(this.shen_yizhi == ""){
765
+        this.shen_yizhi = 0
766
+      }
767
+      if(this.shen_fumo == ""){
768
+        this.shen_fumo = 0
769
+      }
770
+      if(this.shen_guomi == ""){
771
+        this.shen_guomi = 0
772
+      }
773
+
774
+      if(this.admin_user_id == ""){
775
+         this.admin_user_id = 0
776
+      }
777
+
459 778
       let params = {
460 779
         id:this.id,
461 780
         patient_id: this.patient_id,
@@ -499,13 +818,34 @@ export default {
499 818
     },
500 819
 
501 820
     createAction: function() {
502
-    
821
+
503 822
       console.log("hhhhhhhhhhhhhhhhhh",this.$refs)
504 823
       this.new_content = this.$refs.editor.contents
505 824
       if (this.new_content.length == 0) {
506 825
         this.$message.error('请填写病程内容')
507 826
         return
508 827
       }
828
+      if(this.admin_user_id == 0){
829
+        this.$message.error('请选择医生')
830
+        return
831
+      }
832
+      if(this.start_time == ""){
833
+        this.$message.error('请选择时间')
834
+        return
835
+      }
836
+      if(this.shen_yizhi == ""){
837
+        this.shen_yizhi = 0
838
+      }
839
+      if(this.shen_fumo == ""){
840
+        this.shen_fumo = 0
841
+      }
842
+      if(this.shen_guomi == ""){
843
+        this.shen_guomi = 0
844
+      }
845
+      if(this.admin_user_id == ""){
846
+         this.admin_user_id = 0
847
+      }
848
+
509 849
       let params = {
510 850
         id:this.id,
511 851
         patient_id: this.patient_id,
@@ -518,14 +858,15 @@ export default {
518 858
         guominyaowu_desc:this.guominyaowu_desc,
519 859
         doctor_id: this.admin_user_id
520 860
       }
521
-     
861
+
522 862
       createNewSickHistoryRecord(params).then(response => {
523 863
          if(response.data.state == 1){
524 864
            var patientSickHistory = response.data.data.patientSickHistory
525 865
            this.$message.success("保存成功!")
526 866
            this.getlist()
867
+           this.add_index = 0
868
+           this.disabled = true
527 869
          }
528
-
529 870
       }).catch(error => {
530 871
         this.uploading_new_record = false
531 872
         this.$message.error(error)
@@ -572,24 +913,18 @@ export default {
572 913
 
573 914
 
574 915
       },
575
-   
916
+
576 917
     showEdit() {
577 918
       this.add_index =1
578 919
       this.disabled = false
579
-   
920
+
580 921
     }, tableRow({ row, rowIndex }) {
581 922
       // 把每一行的索引放进row
582 923
       row.index = rowIndex
583 924
     }, onRowClick(row, event, column) {
584 925
       this.table_current_index = row.index
585 926
     },
586
-    print(){
587
-      if(this.ids.length == 0){
588
-        this.$message.error('请选择要打印的病程')
589
-        return
590
-      }
591
-      this.$router.push({ path: "/sickhistory/print?ids="+this.ids+"&patient_id="+this.patient_id});
592
-    },
927
+
593 928
     getlist(){
594 929
        var params = {
595 930
         patient_id:this.patient_id
@@ -599,49 +934,69 @@ export default {
599 934
           var list = response.data.data.list
600 935
           this.tableData = list
601 936
           this.$refs.record_table.setCurrentRow(this.tableData[0])
602
-        } 
937
+        }
603 938
       })
604 939
     },
605 940
     getDocName(admin_user_id){
606 941
       var user_name = ""
607 942
       for(let i=0;i<this.doctorOptions.length;i++){
608
-        if(admin_user_id == this.doctorOptions[i].id){
609
-             user_name = this.doctorOptions[i].name
943
+        if(admin_user_id == this.doctorOptions[i].admin_user_id){
944
+             user_name = this.doctorOptions[i].user_name
610 945
         }
611 946
       }
612 947
       return user_name
613 948
     },
614 949
     getTime (time) {
615
-      return uParseTime(time, '{y}-{m}-{d}')
950
+      if(time <0){
951
+        return  ""
952
+      }else{
953
+        return uParseTime(time, '{y}-{m}-{d}')
954
+      }
955
+
616 956
     },
617 957
     getCurrentChange(val){
958
+     
959
+      this.ids = []
960
+      this.ids.push(val.id)
618 961
       this.$refs.editor.contents = val.content
619 962
       this.record_time = this.getTime(val.record_time)
620 963
       this.id = val.id
621 964
       this.guominyaowu_desc = val.hypersusceptibility_desc
622 965
       if(val.is_fumo_dialysis_history>0){
623 966
         this.shen_fumo = val.is_fumo_dialysis_history
967
+      }else{
968
+        this.shen_fumo = ""
624 969
       }
625 970
       if(val.is_shenyizhi_history>0){
626 971
         this.shen_yizhi  = val.is_shenyizhi_history
972
+      }else{
973
+        this.shen_yizhi = ""
627 974
       }
628 975
       if(val.is_hypersusceptibility>0){
629 976
         this.shen_guomi = val.is_hypersusceptibility
977
+      }else{
978
+        this.shen_guomi = ""
630 979
       }
631
-      
980
+
632 981
       this.patient_id = val.patient_id
633
-      this.admin_user_id = val.admin_user_id
634
-    
982
+      this.admin_user_id = val.doctor_id
983
+      if(this.admin_user_id == 0){
984
+         this.admin_user_id = ""
985
+      }
986
+
987
+      this.start_time  = this.getTime(val.record_date)
988
+
635 989
     },
636 990
     getCurrentChangeOne(val){
637
-   
991
+      console.log("val-------------------",val.id)
638 992
       this.$refs.editorOne.contents = val.content
639 993
       this.template_content = ""
640 994
       this.template_content = val.content
995
+      this.template_id = ""
641 996
       this.template_id = val.id
642 997
     },
643 998
     saveTemplate(){
644
-   
999
+
645 1000
       var params = {
646 1001
         title:this.template_name,
647 1002
         content: this.$refs.editor.contents,
@@ -657,7 +1012,37 @@ export default {
657 1012
    toContentPint(){
658 1013
     this.$refs.editor.contents = this.template_content
659 1014
     this.library_dialog = false
660
-   }
1015
+   },
1016
+   fetchPatient(id) {
1017
+      fetchPatient(id).then((response) => {
1018
+          console.log('fetchPatient11111',response.data.data);
1019
+          if(response.data.state ==1){
1020
+            this.form = response.data.data.patient;
1021
+            this.patientVascularAccessOne = response.data.data.patientVascularAccessOne
1022
+          }
1023
+        })
1024
+        .catch((err) => {
1025
+          console.log("patient get err", err);
1026
+          this.$notify.error({
1027
+            title: "错误",
1028
+            message: "网络异常",
1029
+          });
1030
+          this.$router.push("/patients/patients");
1031
+        });
1032
+    },
1033
+    getwayoption(id){
1034
+      if(id != 0){
1035
+        for(let i in this.wayOptions){
1036
+          if(id == this.wayOptions[i].id){
1037
+            console.log('22222',this.wayOptions[i].name);
1038
+            return this.wayOptions[i].name
1039
+          }
1040
+        }
1041
+      }else{
1042
+        return ''
1043
+      }
1044
+
1045
+    }
661 1046
   }
662 1047
 }
663 1048
 </script>

+ 356 - 50
src/xt_pages/user/text_content.vue View File

@@ -46,7 +46,59 @@ export default{
46 46
     },
47 47
     groupPrescriptionList:{
48 48
       type:Array
49
+    },
50
+    afterList:{
51
+      type:Array
52
+    },
53
+    max_blood_flow_volume:{
54
+      type:Number
55
+    },
56
+    max_befor_systolic_blood_pressure:{
57
+      type:Number
58
+    },
59
+    min_befor_systolic_blood_pressure:{
60
+      type:Number
61
+    },
62
+    max_befor_diastolic_blood_pressure:{
63
+      type:Number
64
+    },
65
+    min_befor_diastolic_blood_pressure:{
66
+      type:Number
67
+    },
68
+    max_after_systolic_blood_pressure:{
69
+      type:Number
70
+    },
71
+    min_after_systolic_blood_pressure:{
72
+      type:Number
73
+    },
74
+    max_after_diastolic_blood_pressure:{
75
+      type:Number,
76
+    },
77
+    min_after_diastolic_blood_pressure:{
78
+      type:Number,
79
+    },
80
+    max_monitor_systolic_blood_pressure:{
81
+      type:Number,
82
+    },
83
+    min_monitor_systolic_blood_pressure:{
84
+      type:Number,
85
+    },
86
+    max_monitor_diastolic_blood_pressure:{
87
+      type:Number,
88
+    },
89
+    min_monitor_diastolic_blood_pressure:{
90
+      type:Number
91
+    },
92
+    lastDryWeight:{
93
+      type:Object
94
+    },
95
+    patientVascularAccess:{
96
+      type:Object
97
+    },
98
+    lastBefor:{
99
+      type:Object
49 100
     }
101
+    
50 102
    },
51 103
   data(){
52 104
     return {
@@ -58,7 +110,7 @@ export default{
58 110
       // ],
59 111
       Inspect:[{id:1,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
60 112
             right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]},
61
-            {id:2,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
113
+            {id:2,name:'血常规',date:'2024-12-19',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
62 114
             right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]}
63 115
       ],
64 116
        text:'',
@@ -70,13 +122,9 @@ export default{
70 122
   },
71 123
   watch:{
72 124
    
73
-    
74
-   
75 125
   },
76 126
   beforeMount(){
77
-     console.log("patinet==========================",this.patient)
78
-     console.log("longAdvice-----------------------",this.longAdvice)
79
-     console.log("除非==========================",this.prescription)
127
+
80 128
       var hd_total =0
81 129
       var hdArr =[]
82 130
       var hdf_total =0
@@ -149,7 +197,6 @@ export default{
149 197
       var hdf1000total=0
150 198
       var hdf1000Arr =[]
151 199
 
152
-      
153 200
       var hdf80total=0
154 201
       var hdf80Arr =[]
155 202
 
@@ -643,25 +690,163 @@ export default{
643 690
           dialysisIrrigationStr =  JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
644 691
   
645 692
 
646
-    //  医嘱
647
-    if(this.longAdvice!=null && this.longAdvice.length>0){
648
-        for(let i=0;i<this.longAdvice.length;i++){
649
-            this.longAdvice[i].advice_type_name = ""
650
-            if(this.longAdvice[i].advice_type == 1){
651
-              this.longAdvice[i].advice_type_name = "长期医嘱"
693
+        //  医嘱
694
+        if(this.longAdvice!=null && this.longAdvice.length>0){
695
+            for(let i=0;i<this.longAdvice.length;i++){
696
+                this.longAdvice[i].advice_type_name = ""
697
+                if(this.longAdvice[i].advice_type == 1){
698
+                  this.longAdvice[i].advice_type_name = "长期医嘱"
699
+                }
700
+                if(this.longAdvice[i].stop_state == 1){
701
+                  this.longAdvice[i].stop_state_name = "停用"
702
+                }
703
+                if(this.longAdvice[i].stop_state == 2){
704
+                  this.longAdvice[i].stop_state_name = "未停用"
705
+                }
652 706
             }
653
-            if(this.longAdvice[i].stop_state == 1){
654
-              this.longAdvice[i].stop_state_name = "停用"
707
+        }
708
+
709
+        //抗凝剂
710
+
711
+        var anticoagulant_str =""
712
+        if(this.groupPrescriptionList!=null && this.groupPrescriptionList.length>0){
713
+           
714
+            for(let i=0;i<this.groupPrescriptionList.length;i++){
715
+               anticoagulant_str += this.getAnticoagulantName(this.groupPrescriptionList[i].anticoagulant) +"," + "剂量:" +this.groupPrescriptionList[i].MinZongLiang +this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)+ "~" +this.groupPrescriptionList[i].MaxZongLiang + this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)
655 716
             }
656
-            if(this.longAdvice[i].stop_state == 2){
657
-              this.longAdvice[i].stop_state_name = "未停用"
717
+        }
718
+
719
+        //透前
720
+        var befor_total =0
721
+        var cha_weight = 0
722
+        var pingjun_weight = 0
723
+        if(this.berforList!=null){
724
+          befor_total = this.berforList.length
725
+          for(let i=0;i<this.berforList.length;i++){
726
+             cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
727
+          }
728
+        }
729
+        
730
+        pingjun_weight = (cha_weight/befor_total).toFixed(2)
731
+       
732
+        //透后凝血
733
+        var cruorNewArr = []
734
+        if(this.afterList!=null && this.afterList.length>0){
735
+           for(let i=0;i<this.afterList.length;i++){
736
+            cruorNewArr.push(this.afterList[i].cruor)
737
+           }
738
+        }
739
+      
740
+       let dialysisCrruorObj = {}
741
+        let dialysisCrruorStr = ""
742
+        if(cruorNewArr!=null && cruorNewArr.length>0){
743
+          cruorNewArr.forEach(item => {
744
+            dialysisCrruorObj[item] = (dialysisCrruorObj[item] + 1) || 1
745
+            })
746
+          }
747
+      
748
+
749
+        dialysisCrruorStr =  JSON.stringify(dialysisCrruorObj).replace(/^{|}$/g, '')
750
+       
751
+        //监测
752
+        var blood_flow_volume_total = 0
753
+        var ultrafiltration_volume_total = 0
754
+        var ultrafiltration_rate_total = 0
755
+        var total_length = 0
756
+        var pingjun_blood_flow_volume = 0
757
+        var pingjun_ultrafiltration_volume_total = 0
758
+        var pingjun_ultrafiltration_rate_total = 0
759
+        if(this.monitorList!=null && this.monitorList.length>0){
760
+          for(let i=0;i<this.monitorList.length;i++){
761
+            blood_flow_volume_total+=this.monitorList[i].blood_flow_volume
762
+            ultrafiltration_volume_total+=this.monitorList[i].ultrafiltration_volume
763
+            ultrafiltration_rate_total += this.monitorList[i].ultrafiltration_rate
764
+            total_length = this.monitorList.length
765
+          }
766
+        }
767
+        pingjun_blood_flow_volume = (blood_flow_volume_total/total_length).toFixed(2)
768
+        pingjun_ultrafiltration_volume_total = (ultrafiltration_volume_total/total_length).toFixed(2)
769
+        pingjun_ultrafiltration_rate_total = (ultrafiltration_rate_total/total_length).toFixed(2)
770
+
771
+        var dry_weight_str = ""
772
+        //干体重
773
+        if(this.dryweightList!=null && this.dryweightList.length>0){
774
+           for(let i=0;i<this.dryweightList.length;i++){
775
+            dry_weight_str =  this.getTimeOne(this.dryweightList[i].ctime)+" " +this.dryweightList[i].adjusted_value.slice(4,6)+ this.dryweightList[i].adjusted_value.slice(0,3)+"kg" + "调整到" +" "+ this.dryweightList[i].dry_weight+"kg"+","
776
+           }
777
+        } 
778
+
779
+        //血管通路
780
+        var vascularAccess_str = ""
781
+        var created_time = ""
782
+      
783
+        if(this.patientVascularAccess!=undefined){
784
+          vascularAccess_str  = this.patientVascularAccess.blood_access_part_id + this.patientVascularAccess.blood_access_part_opera_id
785
+          created_time  = this.getTime(this.patientVascularAccess.first_start_time)
786
+        }
787
+
788
+        //并发症
789
+        var complication = ""
790
+        if(this.lastBefor!=undefined){
791
+            complication = this.lastBefor.complication
792
+        }
793
+        
794
+        if(this.inpectionList!=null&& this.inpectionList.length>0){
795
+           for(let i=0;i<this.inpectionList.length;i++){
796
+            this.inpectionList[i].group_no = ""
797
+             this.inpectionList[i].group_no = this.inpectionList[i].project_id.toString()+"_"+this.inpectionList[i].inspect_date.toString()
798
+           }
799
+        }
800
+        console.log("hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",this.inpectionList)
801
+
802
+        if(this.inpectionList!=null && this.inpectionList.length>0){
803
+          let dataInfo = {}
804
+          this.inpectionList.forEach((item, index) => {
805
+          let { group_no } = item
806
+          if (!dataInfo[group_no]) {
807
+            dataInfo[group_no] = {
808
+              group_no:group_no,
809
+              project_id:item.project_id,
810
+              name:item.project_name,
811
+              date:this.getTime(item.inspect_date),
812
+              child:[],
813
+              left: [],
814
+              right:[]
658 815
             }
816
+          }
817
+        })
818
+        let arr = Object.values(dataInfo)
819
+        console.log("arr----------------------",arr)
820
+
821
+        if(arr!=null && arr.length>0){
822
+          for(let i=0;i<arr.length;i++){
823
+            for(let j=0;j<this.inpectionList.length;j++){
824
+              if(arr[i].group_no == this.inpectionList[j].group_no){
825
+                  arr[i].child.push(this.inpectionList[j])
826
+              }
827
+            }
828
+          }
659 829
         }
660
-    }
830
+          
831
+        for(let i=0;i<arr.length;i++){
832
+          for(let j=0;j<arr[i].child.length;j++){
833
+             if(j%2 ==0){
834
+               arr[i].left.push(arr[i].child[j])
835
+             }
836
+             if(j%2 == 1){
837
+              arr[i].right.push(arr[i].child[j])
838
+             }
839
+          }
840
+        }
841
+
842
+        this.Inspect = []
843
+        this.Inspect = arr
844
+        console.log("newarr----------------",arr)
845
+       }
846
+       
661 847
 
662 848
 
663
-     
664
-     const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
849
+       const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
665 850
               <tr>
666 851
                 <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
667 852
               </tr>
@@ -687,32 +872,31 @@ export default{
687 872
                   <p style='margin-bottom: 10px;'>
688 873
                      ${kalium}${sodium}${calcium}${bicarbonate}
689 874
                   </p>
690
-                  
691 875
                   <p style='font-weight: bold;'>抗凝方式:</p>
692
-                  <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
876
+                  <p >${anticoagulant_str}</p>
693 877
                 </td>
694 878
               </tr>
695 879
               <tr>
696 880
                 <td style="align-items: center;padding: 5px;">透析情况</td>
697 881
                 <td style='padding:5px'>
698
-                  <p>透析间期平均体重增加:2.90kg;</p>
699
-                  <p>凝血:透析器-0度(1次);</p>
700
-                  <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
701
-                  <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
702
-                  <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span></p>
703
-                  <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span></p>
704
-                  <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span></p>
705
-                  <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span></p>
882
+                  <p>透析间期平均体重增加:${pingjun_weight}kg;</p>
883
+                  <p>凝血:${dialysisCrruorStr};</p>
884
+                  <p>平均血流量:${pingjun_blood_flow_volume}mL/min;最大血流量:${this.max_blood_flow_volume}mL/min;</p>
885
+                  <p>平均超滤量:${pingjun_ultrafiltration_volume_total}ml/次;平均超滤率:${pingjun_ultrafiltration_rate_total}mL/h;</p>
886
+                  <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:${this.min_befor_systolic_blood_pressure}mmHg~${this.max_befor_systolic_blood_pressure}mmHg;舒张压:${this.min_befor_diastolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;</span></p>
887
+                  <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:${this.min_after_systolic_blood_pressure}mmHg~${this.max_after_systolic_blood_pressure}mmHg;舒张压:${this.min_after_diastolic_blood_pressure}~${this.max_after_diastolic_blood_pressure}mmHg;</span></p>
888
+                  <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:${this.min_monitor_systolic_blood_pressure}mmHg~${this.max_monitor_systolic_blood_pressure}mmHg</span></p>
889
+                  <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">舒张压:${this.min_monitor_diastolic_blood_pressure}mmHg~${this.max_monitor_diastolic_blood_pressure}mmHg;</span></p>
706 890
                 </td>
707 891
               </tr>
708 892
               <tr>
709 893
                 <td style="align-items: center;padding: 5px;">干体重</td>
710 894
                 <td style='padding: 5px;'>
711 895
                   <p>
712
-                    <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">73.7kg;</span>
896
+                    <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">${this.lastDryWeight.dry_weight}kg;</span>
713 897
                   </p>
714 898
                   <p>
715
-                    <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class=""></span>
899
+                    <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">${dry_weight_str}</span>
716 900
                   </p>
717 901
                 </td>
718 902
               </tr>
@@ -720,7 +904,7 @@ export default{
720 904
                 <td style="align-items: center;padding: 5px;">血管通路</td>
721 905
                 <td style='padding: 5px;'>
722 906
                   <p>
723
-                    <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
907
+                    <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${vascularAccess_str } &nbsp;&nbsp;建立时间:${ created_time }</span>
724 908
                   </p>   
725 909
                 </td>
726 910
               </tr>
@@ -731,21 +915,19 @@ export default{
731 915
                     <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
732 916
                   </p>
733 917
                   <p>
734
-                    <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class=""></span>
918
+                    <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">${complication}</span>
735 919
                   </p>
736 920
                 </td>
737 921
               </tr>
738 922
               <tr>
739
-                <td style="align-items: center;padding: 5px;">检结果</td>
923
+                <td style="align-items: center;padding: 5px;">检结果</td>
740 924
                 <td style='padding: 5px;'>
741 925
                   <span class="">无</span>
742 926
                 </td>
743 927
               </tr>
744 928
               <tr>
745
-                <td style="align-items: center;padding: 5px;">检查结果</td>
746
-                <td>
747
-                  
748
-                </td>
929
+                <td style="align-items: center;padding: 5px;">检验结果</td>
930
+                <td></td>
749 931
               </tr>
750 932
               <tr>
751 933
                 <td style="align-items: center;padding: 5px;">医嘱用药</td>
@@ -771,8 +953,8 @@ export default{
771 953
                 </td>
772 954
               </tr>
773 955
             </table>`
774
-            // this.text = contents
775
-            this.content = contents
956
+
957
+        this.content = contents
776 958
   },
777 959
   mounted(){
778 960
     this.$nextTick(() =>{
@@ -840,8 +1022,8 @@ export default{
840 1022
             newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
841 1023
             let newListItem4 = document.createElement('span');
842 1024
             newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
843
-            newListItem3.textContent = this.Inspect[i].left[j].c_name;
844
-            newListItem4.textContent = this.Inspect[i].left[j].c_value;
1025
+            newListItem3.textContent = this.Inspect[i].left[j].item_name;
1026
+            newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
845 1027
             child2.appendChild(newListItem3);
846 1028
             child2.appendChild(newListItem4);
847 1029
           }
@@ -850,16 +1032,14 @@ export default{
850 1032
             newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
851 1033
             let newListItem6 = document.createElement('span');
852 1034
             newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
853
-            newListItem5.textContent = this.Inspect[i].right[x].c_name;
854
-            newListItem6.textContent = this.Inspect[i].right[x].c_value;
1035
+            newListItem5.textContent = this.Inspect[i].right[x].item_name;
1036
+            newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
855 1037
             child3.appendChild(newListItem5);
856 1038
             child3.appendChild(newListItem6);
857 1039
           }
858 1040
           jiancDoc.appendChild(newList1)
859 1041
         }
860 1042
       }
861
-
862
-
863 1043
       var newListArr =[]
864 1044
       for(let j in this.longAdvice){
865 1045
         const obj={
@@ -902,21 +1082,147 @@ export default{
902 1082
         }
903 1083
       }
904 1084
       this.$emit('new_content',this.content)
1085
+
1086
+      
905 1087
     })
906
-   
907
-   
908 1088
   },
909 1089
   methods: {
910 1090
     getTime (time) {
911 1091
       return uParseTime(time, '{y}-{m}-{d}')
912 1092
      },
1093
+     getTimeOne (time) {
1094
+      return uParseTime(time, '{y}-{m}-{d}')
1095
+     },
1096
+    
1097
+     getAnticoagulantName(val){
1098
+       var anticoagulant_name = ""
1099
+       if(val == 1){
1100
+          anticoagulant_name = "无肝素"
1101
+       }
1102
+       if(val == 2){
1103
+          anticoagulant_name = "普通肝素"
1104
+       }
1105
+       if(val == 3){
1106
+          anticoagulant_name = "低分子肝素"
1107
+       }
1108
+       if(val == 4){
1109
+          anticoagulant_name = "阿加曲班"
1110
+       }
1111
+       if(val == 5){
1112
+          anticoagulant_name = "枸橼酸钠"
1113
+       }
1114
+       if(val == 6){
1115
+          anticoagulant_name = "低分子肝素钙"
1116
+       }
1117
+       if(val == 7){
1118
+          anticoagulant_name = "低分子肝素钠"
1119
+       }
1120
+       if(val == 8){
1121
+          anticoagulant_name = "依诺肝素"
1122
+       }
1123
+       if(val == 9){
1124
+          anticoagulant_name = "达肝素"
1125
+       }
1126
+       if(val == 10){
1127
+          anticoagulant_name = "体外抗凝"
1128
+       }
1129
+       if(val == 11){
1130
+          anticoagulant_name = "那屈肝素"
1131
+       }
1132
+       if(val == 12){
1133
+          anticoagulant_name = "无抗凝剂"
1134
+       }
1135
+       if(val == 13){
1136
+          anticoagulant_name = "那屈肝素钙"
1137
+       }
1138
+       if(val == 14){
1139
+          anticoagulant_name = "肝素钙注射液"
1140
+       }
1141
+       if(val == 15){
1142
+          anticoagulant_name = "甲磺酸萘莫司他"
1143
+       }
1144
+       if(val == 16){
1145
+          anticoagulant_name = "低分子量肝素钙"
1146
+       }
1147
+       if(val == 17){
1148
+          anticoagulant_name = "肝素钠"
1149
+       }
1150
+       if(val == 18){
1151
+          anticoagulant_name = "贝米肝素钠注射液"
1152
+       }
1153
+       if(val == 19){
1154
+          anticoagulant_name = "低分子量肝素钠"
1155
+       }
1156
+       return anticoagulant_name
1157
+     },
1158
+     getAnticoagulantUnit(val){
1159
+      var anticoagulant_name = ""
1160
+       if(val == 1){
1161
+          anticoagulant_name = "mg"
1162
+       }
1163
+       if(val == 2){
1164
+          anticoagulant_name = "IU"
1165
+       }
1166
+       if(val == 3){
1167
+          anticoagulant_name = "IU"
1168
+       }
1169
+       if(val == 4){
1170
+          anticoagulant_name = "mg"
1171
+       }
1172
+       if(val == 5){
1173
+          anticoagulant_name = "ml/h"
1174
+       }
1175
+       if(val == 6){
1176
+          anticoagulant_name = "IU"
1177
+       }
1178
+       if(val == 7){
1179
+          anticoagulant_name = "IU"
1180
+       }
1181
+       if(val == 8){
1182
+          anticoagulant_name = "IU/h"
1183
+       }
1184
+       if(val == 9){
1185
+          anticoagulant_name = "IU/h"
1186
+       }
1187
+       if(val == 10){
1188
+          anticoagulant_name = "mg/h"
1189
+       }
1190
+       if(val == 11){
1191
+          anticoagulant_name = "mg/h"
1192
+       }
1193
+       if(val == 12){
1194
+          anticoagulant_name = "mg/h"
1195
+       }
1196
+       if(val == 13){
1197
+          anticoagulant_name = "mg/h"
1198
+       }
1199
+       if(val == 14){
1200
+          anticoagulant_name = "iu/h"
1201
+       }
1202
+       if(val == 15){
1203
+          anticoagulant_name = "mg/h"
1204
+       }
1205
+       if(val == 16){
1206
+          anticoagulant_name = "iu/h"
1207
+       }
1208
+       if(val == 17){
1209
+          anticoagulant_name = "mg/h"
1210
+       }
1211
+       if(val == 18){
1212
+          anticoagulant_name = "iu/h"
1213
+       }
1214
+       if(val == 19){
1215
+          anticoagulant_name = "iu/h"
1216
+       }
1217
+       return anticoagulant_name
1218
+     }
913 1219
   }
914 1220
   
915 1221
 }
916 1222
 </script>
917 1223
 <style lang="scss" scoped>
918 1224
   .table tr td,th{
919
-    padding: 5px;
1225
+    // padding: 5px;
920 1226
   }
921 1227
   .text{
922 1228
     font-weight: bold;

+ 389 - 386
src/xt_pages/workforce/remind_print_setting_one.vue View File

@@ -23,7 +23,7 @@
23 23
             box-sizing: border-box;
24 24
             border: 1px solid black;
25 25
             ">
26
-              <!-- <div style="display: flex;justify-content: space-between;flex-wrap: wrap;">
26
+                <!-- <div style="display: flex;justify-content: space-between;flex-wrap: wrap;">
27 27
                 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 20px rgba(0, 0, 0, 0.06) inset; -->
28 28
                 <div class="signPrint" style="font-size:16px;width: 100%;padding:5px; word-wrap:break-word;">
29 29
                   <div style="font-size:24px;font-weight: 400;">姓名:
@@ -37,431 +37,434 @@
37 37
                       {{getNewAge(main_collection.id_card_no) }}岁)</span> 
38 38
                     
39 39
                   </div>
40
-               <div class="printCell">
41
-                  透析模式:
42
-                    <span>{{getModeId(main_collection.mode_id)}}</span>
40
+                  <div class="printCell">
41
+                    透析模式:
42
+                      <span>{{getModeId(main_collection.mode_id)}}</span>
43
+                  </div>
44
+                  <div class="printCell" v-if="org_id==10340 || org_id == 0">
45
+                    <span>干体重:{{main_collection.assessmentbefor.dry_weight}}kg</span>&nbsp;&nbsp;
46
+                  </div>
47
+                  <div class="printCell" v-if="org_id!=9671">
48
+                    <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
49
+                  </div>
50
+                  <div class="printCell" v-if="org_id==9671">
51
+                    <span>抗凝剂:{{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}</span>
52
+                  </div>
43 53
                   
44
-                </div>
45
-                <div class="printCell" v-if="org_id!=9671">
46
-                  <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
47
-                </div>
48
-                <div class="printCell" v-if="org_id==9671">
49
-                  <span>抗凝剂:{{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}</span>
50
-                </div>
51
-                <div class="printCell" v-if="org_id!=9671">
52
-                 首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
53
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
54
+                  <div class="printCell" v-if="org_id!=9671">
55
+                  首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
56
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
57
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}mg
58
+                    </span>
59
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
60
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
61
+                    </span>
62
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
54 63
                     {{main_collection.dialysissolution.anticoagulant_shouji}}mg
55
-                  </span>
56
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
57
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
58
-                  </span>
59
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
60
-                   {{main_collection.dialysissolution.anticoagulant_shouji}}mg
61
-                  </span>
62
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
63
-                   {{main_collection.dialysissolution.anticoagulant_shouji}} mg
64
-                   </span>
65
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
66
-                   {{main_collection.dialysissolution.anticoagulant_shouji}}iu
67
-                  </span>
68
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
69
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
70
-                   </span>
71
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
72
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
73
-                  </span>
74
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
75
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
76
-                  </span>
77
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
78
-                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
79 64
                     </span>
80
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
81
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
82
-                   </span>
83
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 12">
84
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
85
-                   </span>
86
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 13">
87
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
88
-                   </span>
89
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 14">
90
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
91
-                   </span>
92
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 15">
93
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
94
-                   </span>
95
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 16">
65
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
66
+                    {{main_collection.dialysissolution.anticoagulant_shouji}} mg
67
+                    </span>
68
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
96 69
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
97
-                   </span>
98
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 17">
99
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}mg
100
-                   </span>
101
-                 
102
-                </div>
103
-                <div class="printCell" v-if="org_id ==9671">
104
-                 首剂:<span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_shouji}} mg</span>
105
-                  <span v-if="main_collection.prescription.anticoagulant == 2">
70
+                    </span>
71
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
72
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
73
+                    </span>
74
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
75
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
76
+                    </span>
77
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
78
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
79
+                    </span>
80
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
81
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
82
+                      </span>
83
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
84
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
85
+                    </span>
86
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 12">
87
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
88
+                    </span>
89
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 13">
90
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
91
+                    </span>
92
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 14">
93
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
94
+                    </span>
95
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 15">
96
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
97
+                    </span>
98
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 16">
99
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
100
+                    </span>
101
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 17">
102
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}mg
103
+                    </span>
104
+                  
105
+                  </div>
106
+                  <div class="printCell" v-if="org_id ==9671">
107
+                  首剂:<span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_shouji}} mg</span>
108
+                    <span v-if="main_collection.prescription.anticoagulant == 2">
109
+                      {{main_collection.prescription.anticoagulant_shouji}}mg
110
+                    </span>
111
+                    <span v-if="main_collection.prescription.anticoagulant == 3">
112
+                      {{main_collection.prescription.anticoagulant_shouji}}iu
113
+                    </span>
114
+                    <span v-if="main_collection.prescription.anticoagulant == 4">
106 115
                     {{main_collection.prescription.anticoagulant_shouji}}mg
107
-                  </span>
108
-                  <span v-if="main_collection.prescription.anticoagulant == 3">
109
-                    {{main_collection.prescription.anticoagulant_shouji}}iu
110
-                  </span>
111
-                  <span v-if="main_collection.prescription.anticoagulant == 4">
112
-                   {{main_collection.prescription.anticoagulant_shouji}}mg
113
-                  </span>
114
-                  <span v-if="main_collection.prescription.anticoagulant == 5">
115
-                   {{main_collection.prescription.anticoagulant_shouji}} mg
116
-                   </span>
117
-                  <span v-if="main_collection.prescription.anticoagulant == 6">
118
-                   {{main_collection.prescription.anticoagulant_shouji}}iu
119
-                  </span>
120
-                  <span v-if="main_collection.prescription.anticoagulant == 7">
121
-                    {{main_collection.prescription.anticoagulant_shouji}}iu
122
-                   </span>
123
-                  <span v-if="main_collection.prescription.anticoagulant == 8">
124
-                    {{main_collection.prescription.anticoagulant_shouji}}iu
125
-                  </span>
126
-                  <span v-if="main_collection.prescription.anticoagulant == 9">
127
-                    {{main_collection.prescription.anticoagulant_shouji}}iu
128
-                  </span>
129
-                  <span v-if="main_collection.prescription.anticoagulant == 10">
130
-                     {{main_collection.prescription.anticoagulant_shouji}}iu
131 116
                     </span>
132
-                  <span v-if="main_collection.prescription.anticoagulant == 11">
117
+                    <span v-if="main_collection.prescription.anticoagulant == 5">
118
+                    {{main_collection.prescription.anticoagulant_shouji}} mg
119
+                    </span>
120
+                    <span v-if="main_collection.prescription.anticoagulant == 6">
133 121
                     {{main_collection.prescription.anticoagulant_shouji}}iu
134
-                   </span>
122
+                    </span>
123
+                    <span v-if="main_collection.prescription.anticoagulant == 7">
124
+                      {{main_collection.prescription.anticoagulant_shouji}}iu
125
+                    </span>
126
+                    <span v-if="main_collection.prescription.anticoagulant == 8">
127
+                      {{main_collection.prescription.anticoagulant_shouji}}iu
128
+                    </span>
129
+                    <span v-if="main_collection.prescription.anticoagulant == 9">
130
+                      {{main_collection.prescription.anticoagulant_shouji}}iu
131
+                    </span>
132
+                    <span v-if="main_collection.prescription.anticoagulant == 10">
133
+                      {{main_collection.prescription.anticoagulant_shouji}}iu
134
+                      </span>
135
+                    <span v-if="main_collection.prescription.anticoagulant == 11">
136
+                      {{main_collection.prescription.anticoagulant_shouji}}iu
137
+                    </span>
138
+                    
139
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 12">
140
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
141
+                    </span>
142
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 13">
143
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
144
+                    </span>
145
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 14">
146
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
147
+                    </span>
148
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 15">
149
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
150
+                    </span>
151
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 16">
152
+                      {{main_collection.dialysissolution.anticoagulant_shouji}}iu
153
+                    </span>
154
+                    <span v-if="main_collection.prescription.anticoagulant == 17">
155
+                      {{main_collection.prescription.anticoagulant_shouji}}mg
156
+                    </span>
135 157
                   
136
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 12">
137
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
138
-                   </span>
139
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 13">
140
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
141
-                   </span>
142
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 14">
143
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
144
-                   </span>
145
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 15">
146
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
147
-                   </span>
148
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 16">
149
-                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
150
-                   </span>
151
-                   <span v-if="main_collection.prescription.anticoagulant == 17">
152
-                    {{main_collection.prescription.anticoagulant_shouji}}mg
153
-                   </span>
154
-                 
155
-                </div>
156
-                <div class="printCell" v-if="org_id!=9671">
157
-                  维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
158
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
159
-                    mg/h
160
-                  </span>
161
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
162
-                    mg/h
163
-                  </span>
164
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
165
-                   iu/h
166
-                  </span>
167
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
168
-                    mg/h
169
-                  </span>
170
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
171
-                    mg/h
172
-                   </span>
173
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
174
-                   iu/h
175
-                  </span>
176
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
177
-                   iu/h
178
-                   </span>
179
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
180
-                    iu/h
181
-                  </span>
182
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
183
-                    iu/h
184
-                  </span>
185
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
186
-                    iu/h
158
+                  </div>
159
+                  <div class="printCell" v-if="org_id!=9671">
160
+                    维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
161
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
162
+                      mg/h
187 163
                     </span>
188
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
189
-                    iu/h
190
-                   </span>
191
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 12">
192
-                    iu/h
193
-                   </span>
194
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 13">
195
-                    iu/h
196
-                   </span>
197
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 14">
164
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
165
+                      mg/h
166
+                    </span>
167
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
198 168
                     iu/h
199
-                   </span>
200
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 15">
169
+                    </span>
170
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
171
+                      mg/h
172
+                    </span>
173
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
174
+                      mg/h
175
+                    </span>
176
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
201 177
                     iu/h
202
-                   </span>
203
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 16">
178
+                    </span>
179
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
204 180
                     iu/h
205
-                   </span>
206
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 17">
207
-                    mg/h
208
-                   </span>
209
-              
210
-                </div>
181
+                    </span>
182
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
183
+                      iu/h
184
+                    </span>
185
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
186
+                      iu/h
187
+                    </span>
188
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
189
+                      iu/h
190
+                      </span>
191
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
192
+                      iu/h
193
+                    </span>
194
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 12">
195
+                      iu/h
196
+                    </span>
197
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 13">
198
+                      iu/h
199
+                    </span>
200
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 14">
201
+                      iu/h
202
+                    </span>
203
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 15">
204
+                      iu/h
205
+                    </span>
206
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 16">
207
+                      iu/h
208
+                    </span>
209
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 17">
210
+                      mg/h
211
+                    </span>
212
+                
213
+                  </div>
211 214
 
212
-                <!-- <div class="printCell" v-if="org_id!=9671 && org_id!=10375  && org_id!=0">
213
-                  维持:{{main_collection.prescription.anticoagulant_weichi}}
214
-                   <span v-if="main_collection.prescription.anticoagulant == 1">
215
-                    mg/h
216
-                  </span>
217
-                  <span v-if="main_collection.prescription.anticoagulant == 2">
218
-                    mg/h
219
-                  </span>
220
-                  <span v-if="main_collection.prescription.anticoagulant == 3">
221
-                   iu/h
222
-                  </span>
223
-                  <span v-if="main_collection.prescription.anticoagulant == 4">
224
-                    mg/h
225
-                  </span>
226
-                  <span v-if="main_collection.prescription.anticoagulant == 5">
227
-                    mg/h
228
-                   </span>
229
-                  <span v-if="main_collection.prescription.anticoagulant == 6">
230
-                   iu/h
231
-                  </span>
232
-                  <span v-if="main_collection.prescription.anticoagulant == 7">
233
-                   iu/h
234
-                   </span>
235
-                  <span v-if="main_collection.prescription.anticoagulant == 8">
236
-                    iu/h
237
-                  </span>
238
-                  <span v-if="main_collection.prescription.anticoagulant == 9">
239
-                    iu/h
240
-                  </span>
241
-                  <span v-if="main_collection.prescription.anticoagulant == 10">
242
-                    iu/h
215
+                  <!-- <div class="printCell" v-if="org_id!=9671 && org_id!=10375  && org_id!=0">
216
+                    维持:{{main_collection.prescription.anticoagulant_weichi}}
217
+                    <span v-if="main_collection.prescription.anticoagulant == 1">
218
+                      mg/h
243 219
                     </span>
244
-                  <span v-if="main_collection.prescription.anticoagulant == 11">
245
-                    iu/h
246
-                   </span>
247
-                   <span v-if="main_collection.prescription.anticoagulant == 12">
248
-                    iu/h
249
-                   </span>
250
-                   <span v-if="main_collection.prescription.anticoagulant == 13">
251
-                    iu/h
252
-                   </span>
253
-                   <span v-if="main_collection.prescription.anticoagulant == 14">
220
+                    <span v-if="main_collection.prescription.anticoagulant == 2">
221
+                      mg/h
222
+                    </span>
223
+                    <span v-if="main_collection.prescription.anticoagulant == 3">
254 224
                     iu/h
255
-                   </span>
256
-                   <span v-if="main_collection.prescription.anticoagulant == 15">
225
+                    </span>
226
+                    <span v-if="main_collection.prescription.anticoagulant == 4">
227
+                      mg/h
228
+                    </span>
229
+                    <span v-if="main_collection.prescription.anticoagulant == 5">
230
+                      mg/h
231
+                    </span>
232
+                    <span v-if="main_collection.prescription.anticoagulant == 6">
257 233
                     iu/h
258
-                   </span>
259
-                   <span v-if="main_collection.prescription.anticoagulant == 16">
234
+                    </span>
235
+                    <span v-if="main_collection.prescription.anticoagulant == 7">
260 236
                     iu/h
261
-                   </span>
262
-                   <span v-if="main_collection.prescription.anticoagulant == 17">
263
-                    mg/h
264
-                   </span>
265
-              
266
-                </div> -->
267
-               
268
-                <div class="printCell" v-if="org_id!=9671">
269
-                  总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
270
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">
271
-                    mg
272
-                  </span>
273
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
237
+                    </span>
238
+                    <span v-if="main_collection.prescription.anticoagulant == 8">
239
+                      iu/h
240
+                    </span>
241
+                    <span v-if="main_collection.prescription.anticoagulant == 9">
242
+                      iu/h
243
+                    </span>
244
+                    <span v-if="main_collection.prescription.anticoagulant == 10">
245
+                      iu/h
246
+                      </span>
247
+                    <span v-if="main_collection.prescription.anticoagulant == 11">
248
+                      iu/h
249
+                    </span>
250
+                    <span v-if="main_collection.prescription.anticoagulant == 12">
251
+                      iu/h
252
+                    </span>
253
+                    <span v-if="main_collection.prescription.anticoagulant == 13">
254
+                      iu/h
255
+                    </span>
256
+                    <span v-if="main_collection.prescription.anticoagulant == 14">
257
+                      iu/h
258
+                    </span>
259
+                    <span v-if="main_collection.prescription.anticoagulant == 15">
260
+                      iu/h
261
+                    </span>
262
+                    <span v-if="main_collection.prescription.anticoagulant == 16">
263
+                      iu/h
264
+                    </span>
265
+                    <span v-if="main_collection.prescription.anticoagulant == 17">
266
+                      mg/h
267
+                    </span>
268
+                
269
+                  </div> -->
270
+                
271
+                  <div class="printCell" v-if="org_id!=9671">
272
+                    总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
273
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
274
+                      mg
275
+                    </span>
276
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 2">
277
+                      mg
278
+                    </span>
279
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 3">
280
+                      iu
281
+                    </span>
282
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 4">
274 283
                     mg
275
-                  </span>
276
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
284
+                    </span>
285
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 5">
286
+                      mg
287
+                    </span>
288
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 6">
277 289
                     iu
278
-                  </span>
279
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
280
-                   mg
281
-                  </span>
282
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
283
-                    mg
284
-                   </span>
285
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
286
-                   iu
287
-                  </span>
288
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
290
+                    </span>
291
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 7">
292
+                      iu
293
+                    </span>
294
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 8">
295
+                      iu
296
+                    </span>
297
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 9">
289 298
                     iu
290
-                   </span>
291
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
292
-                     iu
293
-                  </span>
294
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
295
-                   iu
296
-                  </span>
297
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
299
+                    </span>
300
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 10">
301
+                      iu
302
+                      </span>
303
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 11">
298 304
                     iu
299 305
                     </span>
300
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
301
-                   iu
302
-                   </span>
303
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 12">
304
-                   iu
305
-                   </span>
306
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 13">
307
-                   iu
308
-                   </span>
309
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 14">
310
-                   iu
311
-                   </span>
312
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 15">
313
-                   iu
314
-                   </span>
315
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 16">
316
-                   iu
317
-                   </span>
318
-                   <span v-if="main_collection.dialysissolution.anticoagulant == 17">
319
-                   mg
320
-                   </span>
321
-          
322
-                </div>
323
-
324
-                <div class="printCell" v-if="org_id==9671">
325
-                  总量:{{main_collection.prescription.anticoagulant_zongliang}}
326
-                  <span v-if="main_collection.prescription.anticoagulant == 1">
306
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 12">
307
+                    iu
308
+                    </span>
309
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 13">
310
+                    iu
311
+                    </span>
312
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 14">
313
+                    iu
314
+                    </span>
315
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 15">
316
+                    iu
317
+                    </span>
318
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 16">
319
+                    iu
320
+                    </span>
321
+                    <span v-if="main_collection.dialysissolution.anticoagulant == 17">
327 322
                     mg
328
-                  </span>
329
-                  <span v-if="main_collection.prescription.anticoagulant == 2">
323
+                    </span>
324
+            
325
+                  </div>
326
+
327
+                  <div class="printCell" v-if="org_id==9671">
328
+                    总量:{{main_collection.prescription.anticoagulant_zongliang}}
329
+                    <span v-if="main_collection.prescription.anticoagulant == 1">
330
+                      mg
331
+                    </span>
332
+                    <span v-if="main_collection.prescription.anticoagulant == 2">
333
+                      mg
334
+                    </span>
335
+                    <span v-if="main_collection.prescription.anticoagulant == 3">
336
+                      iu
337
+                    </span>
338
+                    <span v-if="main_collection.prescription.anticoagulant == 4">
330 339
                     mg
331
-                  </span>
332
-                  <span v-if="main_collection.prescription.anticoagulant == 3">
340
+                    </span>
341
+                    <span v-if="main_collection.prescription.anticoagulant == 5">
342
+                      mg
343
+                    </span>
344
+                    <span v-if="main_collection.prescription.anticoagulant == 6">
333 345
                     iu
334
-                  </span>
335
-                  <span v-if="main_collection.prescription.anticoagulant == 4">
336
-                   mg
337
-                  </span>
338
-                  <span v-if="main_collection.prescription.anticoagulant == 5">
339
-                    mg
340
-                   </span>
341
-                  <span v-if="main_collection.prescription.anticoagulant == 6">
342
-                   iu
343
-                  </span>
344
-                  <span v-if="main_collection.prescription.anticoagulant == 7">
346
+                    </span>
347
+                    <span v-if="main_collection.prescription.anticoagulant == 7">
348
+                      iu
349
+                    </span>
350
+                    <span v-if="main_collection.prescription.anticoagulant == 8">
351
+                      iu
352
+                    </span>
353
+                    <span v-if="main_collection.prescription.anticoagulant == 9">
345 354
                     iu
346
-                   </span>
347
-                  <span v-if="main_collection.prescription.anticoagulant == 8">
348
-                     iu
349
-                  </span>
350
-                  <span v-if="main_collection.prescription.anticoagulant == 9">
351
-                   iu
352
-                  </span>
353
-                  <span v-if="main_collection.prescription.anticoagulant == 10">
355
+                    </span>
356
+                    <span v-if="main_collection.prescription.anticoagulant == 10">
357
+                      iu
358
+                      </span>
359
+                    <span v-if="main_collection.prescription.anticoagulant == 11">
354 360
                     iu
355 361
                     </span>
356
-                  <span v-if="main_collection.prescription.anticoagulant == 11">
357
-                   iu
358
-                   </span>
359
-                   <span v-if="main_collection.prescription.anticoagulant == 12">
360
-                   iu
361
-                   </span>
362
-                   <span v-if="main_collection.prescription.anticoagulant == 13">
363
-                   iu
364
-                   </span>
365
-                   <span v-if="main_collection.prescription.anticoagulant == 14">
366
-                   iu
367
-                   </span>
368
-                   <span v-if="main_collection.prescription.anticoagulant == 15">
369
-                   iu
370
-                   </span>
371
-                   <span v-if="main_collection.prescription.anticoagulant == 16">
372
-                   iu
373
-                   </span>
374
-                   <span v-if="main_collection.prescription.anticoagulant == 17">
375
-                   mg
376
-                   </span>
377
-          
378
-                </div>
379
-                <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340 || org_id == 0">
380
-                    <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
381
-                </div>
382
-                <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
383
-                    <span v-if="main_collection.lastafterweight!=undefined">上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
384
-                </div>
385
-                <div class="printCell" v-if="org_id!=10517 && org_id!=0">身份证:
386
-                    <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
387
-                    <span v-if="type ==2">{{main_collection.id_card_no}} </span>
388
-                </div>
389
-                <div class="printCell">电话号码:
390
-                    <span v-if="type ==1">{{main_collection.patient.phone}} </span>
391
-                    <span v-if="type ==2">{{main_collection.phone}} </span>
392
-                </div>
393
-                <div class="printCell">
394
-                   透析器:
395
-                    <span v-if="org_id!=10375 && org_id!=0 && org_id!=10517">
396
-                      <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
397
-                      <span v-if="type ==2">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
362
+                    <span v-if="main_collection.prescription.anticoagulant == 12">
363
+                    iu
398 364
                     </span>
399
-                   
365
+                    <span v-if="main_collection.prescription.anticoagulant == 13">
366
+                    iu
367
+                    </span>
368
+                    <span v-if="main_collection.prescription.anticoagulant == 14">
369
+                    iu
370
+                    </span>
371
+                    <span v-if="main_collection.prescription.anticoagulant == 15">
372
+                    iu
373
+                    </span>
374
+                    <span v-if="main_collection.prescription.anticoagulant == 16">
375
+                    iu
376
+                    </span>
377
+                    <span v-if="main_collection.prescription.anticoagulant == 17">
378
+                    mg
379
+                    </span>
380
+            
381
+                  </div>
382
+                  <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340 || org_id == 0">
383
+                      <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
384
+                  </div>
385
+                  <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
386
+                      <span v-if="main_collection.lastafterweight!=undefined">上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
387
+                  </div>
388
+                  <div class="printCell" v-if="org_id!=10517 && org_id!=0">身份证:
389
+                      <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
390
+                      <span v-if="type ==2">{{main_collection.id_card_no}} </span>
391
+                  </div>
392
+                  <div class="printCell">电话号码:
393
+                      <span v-if="type ==1">{{main_collection.patient.phone}} </span>
394
+                      <span v-if="type ==2">{{main_collection.phone}} </span>
395
+                  </div>
396
+                  <div class="printCell">
397
+                    透析器:
398
+                      <span v-if="org_id!=10375 && org_id!=0 && org_id!=10517">
399
+                        <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
400
+                        <span v-if="type ==2">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
401
+                      </span>
402
+                    
400 403
 
401
-                    <span v-if="org_id ==10375 || org_id == 0 || org_id == 10517">
402
-                      <span v-if="type ==1">{{main_collection.dialysissolution.dialysis_dialyszers}} </span>
403
-                      <span v-if="type ==2">{{main_collection.dialysissolution.dialysis_dialyszers}} </span>
404
+                      <span v-if="org_id ==10375 || org_id == 0 || org_id == 10517">
405
+                        <span v-if="type ==1">{{main_collection.dialysissolution.dialysis_dialyszers}} </span>
406
+                        <span v-if="type ==2">{{main_collection.dialysissolution.dialysis_dialyszers}} </span>
407
+                      </span>
408
+                    
409
+                  </div>
410
+                  <div class="printCell">
411
+                    灌流器:
412
+                    <span v-if="org_id!=10375 && org_id!=0 && org_id!=10517">
413
+                      <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_irrigation}} </span>
414
+                      <span v-if="type ==2">{{main_collection.dialysis_order.dialysis_irrigation}} </span>
404 415
                     </span>
405 416
                   
406
-                </div>
407
-                <div class="printCell">
408
-                   灌流器:
409
-                   <span v-if="org_id!=10375 && org_id!=0 && org_id!=10517">
410
-                    <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_irrigation}} </span>
411
-                    <span v-if="type ==2">{{main_collection.dialysis_order.dialysis_irrigation}} </span>
412
-                   </span>
413
-                 
414 417
 
415
-                    <span v-if="org_id == 10375 || org_id == 0 || org_id == 10517"> 
416
-                      <span v-if="type ==1">{{main_collection.dialysissolution.dialysis_irrigation}} </span>
417
-                      <span v-if="type ==2">{{main_collection.dialysissolution.dialysis_irrigation}} </span>
418
-                    </span>
419
-                </div>
420
-                <div class="printCell">
421
-                  血管通路:
422
-                  <span v-if="org_id!=10375">
423
-                    <span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
424
-                    <span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
425
-                  </span>
418
+                      <span v-if="org_id == 10375 || org_id == 0 || org_id == 10517"> 
419
+                        <span v-if="type ==1">{{main_collection.dialysissolution.dialysis_irrigation}} </span>
420
+                        <span v-if="type ==2">{{main_collection.dialysissolution.dialysis_irrigation}} </span>
421
+                      </span>
422
+                  </div>
423
+                  <div class="printCell">
424
+                    血管通路:
425
+                    <span v-if="org_id!=10375">
426
+                      <span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
427
+                      <span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
428
+                    </span>
426 429
 
427
-                  <span v-if="org_id == 10375">
428
-                   <span v-if="type ==1">{{getBloodAccess(main_collection.dialysissolution.blood_access)}} </span>
429
-                   <span v-if="type ==2">{{getBloodAccess(main_collection.dialysissolution.blood_access)}} </span>
430
-                  </span>
431
-                 
432
-                </div>
433
-                
434
-                <div class="printCell">
435
-                  <span>
436
-                    分区/床号:
437
-                    <span  style="width:auto;">{{main_collection.zone.name}}/</span>
438
-                    {{ main_collection.number.number }}
439
-                  </span>
440
-                 
441
-                </div>
430
+                    <span v-if="org_id == 10375">
431
+                    <span v-if="type ==1">{{getBloodAccess(main_collection.dialysissolution.blood_access)}} </span>
432
+                    <span v-if="type ==2">{{getBloodAccess(main_collection.dialysissolution.blood_access)}} </span>
433
+                    </span>
434
+                  
435
+                  </div>
436
+                  
437
+                  <div class="printCell">
438
+                    <span>
439
+                      分区/床号:
440
+                      <span  style="width:auto;">{{main_collection.zone.name}}/</span>
441
+                      {{ main_collection.number.number }}
442
+                    </span>
443
+                  
444
+                  </div>
442 445
 
443
-                <div class="printCell">
444
-                  <span v-if="org_id!=0&&org_id!=9671">
445
-                    排班备注:
446
-                    <span  style="width:auto;">
447
-                     <span>
448
-                      {{ main_collection.dialysis_order.schedule_remark }}
449
-                    </span>  
446
+                  <div class="printCell">
447
+                    <span v-if="org_id!=0&&org_id!=9671">
448
+                      排班备注:
449
+                      <span  style="width:auto;">
450
+                      <span>
451
+                        {{ main_collection.dialysis_order.schedule_remark }}
452
+                      </span>  
453
+                      </span>
454
+                    
455
+                    </span>
456
+                    <span v-if="org_id == 0 || org_id ==9671">
457
+                      排班备注:
458
+                      <sapn v-if="main_collection.schedule_type ==1">上午</sapn>
459
+                      <sapn v-if="main_collection.schedule_type ==2">下午</sapn>
460
+                      <sapn v-if="main_collection.schedule_type ==3">晚上</sapn>
450 461
                     </span>
451 462
                   
452
-                  </span>
453
-                  <span v-if="org_id == 0 || org_id ==9671">
454
-                    排班备注:
455
-                    <sapn v-if="main_collection.schedule_type ==1">上午</sapn>
456
-                    <sapn v-if="main_collection.schedule_type ==2">下午</sapn>
457
-                    <sapn v-if="main_collection.schedule_type ==3">晚上</sapn>
458
-                  </span>
459
-                 
460
-                </div>
463
+                  </div>
461 464
               
462 465
                 </div> 
463 466
               <!-- </div> -->
464
-           </div>
467
+            </div>
465 468
           </div>
466 469
         </div>
467 470
       </div>

+ 1 - 1
src/xt_permission.js View File

@@ -25,7 +25,7 @@ router.beforeEach((to, from, next) => {
25 25
     next()
26 26
   }
27 27
   return
28
-  // 线上注释
28
+ // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
31 31
   // alert('path:' + to.path)