Browse Source

Merge branch '20220812' of http://git.shengws.com/csx/Vue_New into 2022-10-17_vue_schedule_branch

test_user 2 years ago
parent
commit
b924844504

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

@@ -567,3 +567,11 @@ export function excutionDoctorAdviceById(params) {
567 567
     params: params
568 568
   })
569 569
 }
570
+
571
+export function GetMobileScheduleList(params){
572
+  return request({
573
+    url:"/api/schedule/getmobileschedulelist",
574
+    method:"Get",
575
+    params:params,
576
+  })
577
+}

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

@@ -79,17 +79,29 @@ export default {
79 79
       }
80 80
     },
81 81
 
82
-    // {
83
-    //   path: '/dialysis/doctorAdviceStaticPrint',
84
-    //   component: () => import('@/xt_pages/dialysis/doctorAdviceStaticPrint'),
85
-    //   name: '透析医嘱统计打印',
86
-    //   hidden: true,
87
-    //   is_menu: false,
88
-    //   meta: {
89
-    //     title: '透析医嘱统计打印',
90
-    //     noCache: true
91
-    //   }
92
-    // },
82
+    {
83
+      path: '/dialysis/doctorAdviceStaticPrint',
84
+      component: () => import('@/xt_pages/dialysis/doctorAdviceStaticPrint'),
85
+      name: '透析医嘱统计打印',
86
+      hidden: true,
87
+      is_menu: false,
88
+      meta: {
89
+        title: '透析医嘱统计打印',
90
+        noCache: true
91
+      }
92
+    },
93
+
94
+    {
95
+      path: '/dialysis/doctorNewAdviceStaticPrint',
96
+      component: () => import('@/xt_pages/dialysis/doctorNewAdviceStaticPrint'),
97
+      name: '透析医嘱统计打印',
98
+      hidden: true,
99
+      is_menu: false,
100
+      meta: {
101
+        title: '透析医嘱统计打印',
102
+        noCache: true
103
+      }
104
+    },
93 105
 
94 106
     {
95 107
       path: '/dialysis/signPrint',

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

@@ -1221,27 +1221,27 @@
1221 1221
             <span>透析器及管路凝血情况:
1222 1222
                 <label-box
1223 1223
                 showValue="0级"
1224
-                :isChecked="record.assessment_after_dislysis.cruor.indexOf('透析器-0度') > -1"
1224
+                :isChecked="record.assessment_after_dislysis.cruor.indexOf('0级') > -1"
1225 1225
               ></label-box>
1226 1226
               <label-box
1227 1227
                 showValue="1级"
1228
-                :isChecked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') > -1"
1228
+                :isChecked="record.assessment_after_dislysis.cruor.indexOf('1级') > -1"
1229 1229
               ></label-box>
1230 1230
               <label-box
1231 1231
                 showValue="2级"
1232
-                :isChecked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') > -1"
1232
+                :isChecked="record.assessment_after_dislysis.cruor.indexOf('2级') > -1"
1233 1233
               ></label-box>
1234 1234
               <label-box
1235 1235
                 showValue="3级"
1236
-                :isChecked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅲ度') > -1"
1236
+                :isChecked="record.assessment_after_dislysis.cruor.indexOf('3级') > -1"
1237 1237
               ></label-box>
1238
-              <label-box
1238
+              <!-- <label-box
1239 1239
                   showValue="无"
1240
-                  :isChecked="record.assessment_after_dislysis.cruor.indexOf('透析器-0度') <= 0&&
1241
-                  record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅲ度') <= 0&&
1242
-                  record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') <= 0&&
1243
-                  record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') <= 0"
1244
-                ></label-box>
1240
+                  :isChecked="record.assessment_after_dislysis.cruor.indexOf('0级') <= 0&&
1241
+                  record.assessment_after_dislysis.cruor.indexOf('1级') <= 0&&
1242
+                  record.assessment_after_dislysis.cruor.indexOf('2级') <= 0&&
1243
+                  record.assessment_after_dislysis.cruor.indexOf('3级') <= 0"
1244
+                ></label-box> -->
1245 1245
              </span>
1246 1246
           </td>
1247 1247
         </tr>

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

@@ -142,8 +142,8 @@
142 142
           <label>目标超滤量 : </label>
143 143
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
144 144
           
145
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
146
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
145
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
146
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
147 147
         </li>
148 148
 
149 149
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">

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

@@ -1367,7 +1367,7 @@ export default {
1367 1367
     var date = this.$route.query && this.$route.query.date
1368 1368
     this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1369 1369
     if(this.$store.getters.xt_user.template_info.org_id == 0 ||  this.$store.getters.xt_user.template_info.org_id==9829){
1370
-      this.AssessmentAfterDislysis.pulse_frequency = 80
1370
+      this.form.pulse_frequency = 80
1371 1371
     }
1372 1372
   },
1373 1373
   components: {

+ 91 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

@@ -247,7 +247,7 @@
247 247
           prop="blood_access_id"
248 248
           :rules="isCheckmust('血管通路')"
249 249
         >
250
-          <el-select v-model="form.blood_access_id" placeholder="请选择">
250
+          <el-select v-model="form.blood_access_id" placeholder="请选择" @change="changeBloodAccessOpion">
251 251
             <el-option :key="0" label="请选择" :value="0"></el-option>
252 252
 
253 253
             <el-option
@@ -259,6 +259,37 @@
259 259
           </el-select>
260 260
         </el-form-item>
261 261
 
262
+       
263
+          <el-form-item
264
+            label="导管备注:"
265
+            :prop="isName('导管备注')"
266
+            :rules="isCheckmust('导管备注')"
267
+            v-if="isShowFiled('导管备注') && blood_access_option_name!=undefined&&blood_access_option_name.indexOf('置管') !== -1"
268
+          >
269
+            <el-select @change="dialysisSummarySelectChange" v-model="value2">
270
+              <el-option
271
+                v-for="(item, index) in summary"
272
+                :label="item.text"
273
+                :value="item.value"
274
+                :key="index"
275
+              ></el-option>
276
+            </el-select>
277
+          </el-form-item>
278
+       
279
+    
280
+          <el-form-item
281
+            :prop="isName('导管备注')"
282
+            :rules="isCheckmust('导管备注')"
283
+            v-if="isShowFiled('导管备注') && blood_access_option_name!=undefined&&blood_access_option_name.indexOf('置管') !== -1"
284
+          >
285
+            <el-input
286
+              type="textarea"
287
+              v-model="form.catheter_operation"
288
+              :rows="4"
289
+            ></el-input>
290
+          </el-form-item>
291
+    
292
+
262 293
         <el-form-item
263 294
           label="核酸检测日期:"
264 295
           style="width: 300px"
@@ -362,6 +393,7 @@ export default {
362 393
         dialysis_irrigation: "",
363 394
         blood_access_id: "",
364 395
         nuclein_date: moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
396
+        catheter_operation:""
365 397
       },
366 398
       blood_access_option: [],
367 399
       schedual_type: 0,
@@ -385,6 +417,9 @@ export default {
385 417
       },
386 418
       dialyzers: [],
387 419
       irrigations: [],
420
+      summary:[],
421
+      blood_access_option_name:"",
422
+      value2:""
388 423
     };
389 424
   },
390 425
   props: {
@@ -458,6 +493,7 @@ export default {
458 493
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
459 494
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
460 495
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
496
+    this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
461 497
     this.punctureNeedleOptions = getDataConfig(
462 498
       "hemodialysis",
463 499
       "puncture_needle"
@@ -467,6 +503,7 @@ export default {
467 503
       "hemodialysis",
468 504
       "vascular_access_desc"
469 505
     );
506
+    this.summary = getDataConfig('catheter_operation', 'catheter_operation')
470 507
   },
471 508
   watch: {
472 509
     patient: {
@@ -510,6 +547,11 @@ export default {
510 547
       this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
511 548
       this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
512 549
       this.form.blood_access_id = this.dialysis_order.blood_access_id;
550
+     
551
+      var blood_access_option_name = this.changeBloodAccessOpionOne(this.dialysis_order.blood_access_id)
552
+    
553
+      this.blood_access_option_name = blood_access_option_name
554
+      this.form.catheter_operation = this.dialysis_order.catheter_operation
513 555
       this.form.nuclein_date =
514 556
         this.dialysis_order.id == 0
515 557
           ? this.getTimeOne(this.lastOrder.nuclein_date)
@@ -820,7 +862,8 @@ export default {
820 862
             this.form.dialysis_dialyszers,
821 863
             this.form.dialysis_irrigation,
822 864
             this.form.blood_access_id,
823
-            this.form.nuclein_date
865
+            this.form.nuclein_date,
866
+            this.form.catheter_operation
824 867
           ).then((rs) => {
825 868
             this.loading = false;
826 869
             var resp = rs.data;
@@ -869,6 +912,7 @@ export default {
869 912
       ParamsQuery["blood_access_id"] = this.form.blood_access_id;
870 913
       ParamsQuery["nuclein_date"] = this.form.nuclein_date;
871 914
       ParamsQuery["mode"] = "2";
915
+      ParamsQuery['catheter_operation'] = this.form.catheter_operation
872 916
       if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
873 917
         ParamsQuery["mode"] = "3";
874 918
       }
@@ -997,6 +1041,51 @@ export default {
997 1041
     innerDialogCancle: function () {
998 1042
       this.InnerDialogProps.visibility = false;
999 1043
     },
1044
+   
1045
+    dialysisSummarySelectChange: function (values) {
1046
+      if (this.form.catheter_operation == "") {
1047
+        this.form.catheter_operation = values;
1048
+      } else {
1049
+       
1050
+        if (this.form.catheter_operation.indexOf(values) == -1) {
1051
+          if (
1052
+            this.form.catheter_operation
1053
+              .charAt(this.form.catheter_operation.length - 1)
1054
+              .indexOf("。") == -1
1055
+          ) {
1056
+            this.form.catheter_operation =
1057
+              this.form.catheter_operation+ "," + values;
1058
+          } else {
1059
+            this.form.catheter_operation =
1060
+              this.form.catheter_operation + "," + values;
1061
+            this.form.catheter_operation =
1062
+              this.form.catheter_operation+ values;
1063
+          }
1064
+        }
1065
+      }
1066
+    },
1067
+    changeBloodAccessOpion(id){
1068
+      var name = ""
1069
+      for(let i=0;i<this.blood_access_option.length;i++){
1070
+        console.log("id9999",this.blood_access_option[i].id)
1071
+        if(id == this.blood_access_option[i].id){
1072
+           name = this.blood_access_option[i].name
1073
+        }
1074
+      }
1075
+
1076
+      this.blood_access_option_name = name
1077
+    },
1078
+    changeBloodAccessOpionOne(id){
1079
+      var name = ""
1080
+      for(let i=0;i<this.blood_access_option.length;i++){
1081
+        console.log("id9999",this.blood_access_option[i].id)
1082
+        if(id == this.blood_access_option[i].id){
1083
+           name = this.blood_access_option[i].name
1084
+        }
1085
+      }
1086
+
1087
+      return name
1088
+    }
1000 1089
   },
1001 1090
 };
1002 1091
 </script>

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

@@ -95,7 +95,7 @@
95 95
                     </el-col>
96 96
 
97 97
                     <el-col :span="8"
98
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829)">
98
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440)">
99 99
                         <el-form-item label="目标超滤量(ml):">
100 100
                             <el-input
101 101
                                     type="number"
@@ -106,7 +106,7 @@
106 106
 
107 107
 
108 108
                     <el-col :span="8"
109
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829">
109
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
110 110
                         <el-form-item label="目标超滤量(L):">
111 111
                             <el-input
112 112
                                     type="number"
@@ -273,7 +273,7 @@
273 273
                     </el-col>
274 274
 
275 275
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
276
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829">
276
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
277 277
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
278 278
                             <el-form-item
279 279
                                     v-if='dialysisPrescription.anticoagulant != 1 &&this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id!=9990'
@@ -356,7 +356,7 @@
356 356
 
357 357
 
358 358
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
359
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829">
359
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
360 360
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 ">
361 361
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
362 362
                                           v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987  && this.$store.getters.xt_user.template_info.org_id != 54 && this.$store.getters.xt_user.template_info.org_id != 9990">
@@ -420,7 +420,7 @@
420 420
 
421 421
 
422 422
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
423
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829">
423
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
424 424
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
425 425
                             <el-form-item
426 426
                                     v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990'

+ 7 - 1
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

@@ -241,7 +241,7 @@ export default {
241 241
         this.date = date;
242 242
         this.record_date = uParseTime(this.date, "{y}-{m}-{d}");
243 243
       }
244
-
244
+     
245 245
       console.log("治疗小结", record);
246 246
       this.getPermission();
247 247
     },
@@ -470,6 +470,11 @@ export default {
470 470
               special_record: "",
471 471
             };
472 472
           }
473
+         
474
+          if(this.$store.getters.xt_user.org.id == 0 || this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 10340){
475
+             this.treatmentSummary.dialysis_summary = "安全下机"
476
+          }
477
+          
473 478
         }
474 479
       },
475 480
     },
@@ -489,6 +494,7 @@ export default {
489 494
       var date = this.$route.query && this.$route.query.date;
490 495
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
491 496
     }
497
+    
492 498
   },
493 499
 };
494 500
 </script>

+ 622 - 0
src/xt_pages/dialysis/doctorNewAdviceStaticPrint.vue View File

@@ -0,0 +1,622 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+          <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+          </el-col>
9
+        </el-row>
10
+      </div>
11
+      <div class="app-container" style="background-color: white;">
12
+  
13
+        <div id="print_content">
14
+          <div class="print_main_content">
15
+            <div class="order_title_panl">
16
+              <span class="main_title"> &nbsp;
17
+                药品统计
18
+              </span>
19
+              <span  style="float:right;">打印日期: &nbsp;
20
+                 {{$route.query.schedule_date}}
21
+              </span>
22
+            </div>
23
+            <div class="table_panel">
24
+  
25
+              <table class="table">
26
+                <thead>
27
+                <tr>
28
+                  <td width="50">序号</td>
29
+                  <td width="100">区域</td>
30
+                  <td width="100">责护</td>
31
+                  <td width="100">透析模式</td>
32
+                  <td  v-for="(item,index) in tabHead"  :key="index" :label="item.advice_name" width="150">
33
+                     {{item.advice_name}}
34
+                  </td>
35
+                </tr>
36
+                </thead>
37
+                <tbody>
38
+                 <tr v-for="(item,index) in tableDataList" :key="i">
39
+                  <td>
40
+                    <span v-if="item.is_total ==1"> {{index+1}}</span>
41
+                    <span v-if="item.is_total ==0">总计</span>
42
+                  </td>
43
+                  <td>
44
+                    <span v-if="item.is_total == 1">{{getZoneName(item.child)}}</span> 
45
+                  </td>
46
+                  <td>
47
+                    <span v-if="item.is_total == 1"> {{getAdminUserName(item.execution_staff)}}</span>
48
+                  </td>
49
+                  <td>
50
+                    <span v-if="item.is_total == 1"> {{getModeId(item.child)}}</span>
51
+                  </td>
52
+                  <td v-for="(it,i) in tabHead"  :key="i">
53
+                    <span v-if="item.is_total == 1">
54
+                      <span v-if="item.child[i]!=null">{{getDrugCount(item.child,it.advice_name)}}</span>
55
+                    </span>
56
+                    <span v-if="item.is_total == 0">
57
+                      {{getAllSumCount(it.advice_name)}}
58
+                    </span>
59
+                  </td>
60
+
61
+                 </tr>
62
+                </tbody>
63
+              </table>
64
+            </div>
65
+          </div>
66
+        </div>
67
+      </div>
68
+    </div>
69
+  </template>
70
+  
71
+  <script>
72
+    import { getDialysisAdviceToday } from '@/api/dialysis'
73
+    import { parseTime } from '@/utils'
74
+    import { uParseTime } from '@/utils/tools'
75
+    import BreadCrumb from '@/xt_pages/components/bread-crumb'
76
+    import print from 'print-js'
77
+    import { getDataConfig } from '@/utils/data'
78
+    export default {
79
+      name: 'SchedulePrint',
80
+      data() {
81
+        return {
82
+          crumbs: [
83
+            { path: false, name: '排班管理' },
84
+            { path: false, name: '排班打印' }
85
+          ],
86
+          td_1_width: '8%',
87
+          td_2_width: '8%',
88
+          td_3_width: '64%',
89
+          td_4_width: '20%',
90
+          month: 1,
91
+          begin_day: 1,
92
+          total:[],
93
+          list:[],
94
+          schedule_date:"",
95
+          schedule_type:0,
96
+          partition_type:0,
97
+          keywords:"",
98
+          loading:false,
99
+          tableData:[],
100
+          numberList:[],
101
+          partitionArr:[],
102
+          his_config:{},
103
+          typeList:[],
104
+          rowList:[],
105
+          dialysate_formulation:[],
106
+          body_fluid_option:[],
107
+          displace_liqui_part_option:[],
108
+          blood_access_option:[],
109
+          hemodialysisPipelinesOptions:[],
110
+          tableList:[],
111
+          druglist:[],
112
+          config:{},
113
+          tabHead:[],
114
+          tableDataList:[],
115
+          adminUserList:[],
116
+        }
117
+      },
118
+      components: {
119
+        BreadCrumb
120
+      },
121
+      created() {
122
+        this.getDialysisAdviceSchedudeList()
123
+      },
124
+      methods: {
125
+        getDialysisAdviceSchedudeList() {
126
+            var params = {
127
+              schedule_type:this.$route.query.schedule_type,
128
+              partion_type:this.$route.query.partion_type,
129
+              selected_date:this.$route.query.schedule_date,
130
+            }
131
+          console.log("params2332232wo",params)
132
+         getDialysisAdviceToday(params).then(response=>{
133
+            if(response.data.state == 1){
134
+             var doctorList = []
135
+             var druglist = response.data.data.drug
136
+             this.druglist = druglist
137
+             this.startdialogVisibleOne = true
138
+             var list = response.data.data.list
139
+          
140
+             var config = response.data.data.config
141
+             this.adminUserList = response.data.data.doctorList
142
+             
143
+             if(list!=null && list.length > 0){
144
+               for(let i=0;i<list.length;i++){
145
+                for(let j=0;j<list[i].xt_doctor_advice.length;j++){
146
+                  list[i].xt_doctor_advice[j].mode_id = list[i].mode_id
147
+                  list[i].xt_doctor_advice[j].zone_name = list[i].device_number.zone.name
148
+                  list[i].xt_doctor_advice[j].sort = list[i].device_number.zone.sort
149
+                  doctorList.push(list[i].xt_doctor_advice[j])
150
+                }
151
+               }
152
+             }
153
+          
154
+             if(config.is_open!=1){
155
+             
156
+              if(doctorList!=null && doctorList.length > 0){
157
+
158
+                let dataInfo = {}
159
+                  doctorList.forEach((item, index) => {
160
+                  item.advice_name = item.advice_name.replace(/\s/g,"")  
161
+                  let { advice_name } = item
162
+                  if (!dataInfo[advice_name]) {
163
+                    dataInfo[advice_name] = {
164
+                      advice_name:item.advice_name,
165
+                      child: [],
166
+                      count:0,
167
+                      execution_staff:item.execution_staff,
168
+                      specification_name:item.advice_desc +item.drug_spec_unit,
169
+                      patient_id:item.patient_id,
170
+                    }
171
+                  }
172
+                })
173
+                let arr = Object.values(dataInfo)
174
+                for(let i=0;i<arr.length;i++){
175
+                  for(let j=0;j<doctorList.length;j++){
176
+                    if(arr[i].advice_name == doctorList[j].advice_name){
177
+                        arr[i].child.push(doctorList[j])
178
+                    }
179
+                  }
180
+                }
181
+                this.tabHead = arr
182
+                console.log("arr---------------------",this.tabHead)
183
+              }
184
+
185
+              if(doctorList!=null && doctorList.length > 0){
186
+                
187
+                let dataInfo = {}
188
+                  doctorList.forEach((item, index) => {
189
+                  let { execution_staff } = item
190
+                  if (!dataInfo[execution_staff])  {
191
+                    dataInfo[execution_staff] = {
192
+                      execution_staff:item.execution_staff,
193
+                      child: [],
194
+                      count:0,
195
+                      sort:item.sort,
196
+                    }
197
+                  }
198
+                })
199
+                let newArr = Object.values(dataInfo)
200
+                if(newArr!=null && newArr.length >0){
201
+                  for(let i=0;i<newArr.length;i++){
202
+                    for(let j=0;j<doctorList.length;j++){
203
+                      if(newArr[i].execution_staff == doctorList[j].execution_staff){
204
+                         newArr[i].child.push(doctorList[j])
205
+                      }
206
+                    }
207
+                  }
208
+
209
+                }
210
+                var newList = newArr.sort(this.compareList('sort'))
211
+                if(newList!=null && newList.length >0){
212
+                  for(let i=0;i<newList.length;i++){
213
+                    newList[i].is_total = 1
214
+                  }
215
+                }
216
+
217
+                var obj = {is_total:0,count:0,execution_staff:0,child:[]}
218
+                newList.push(obj)
219
+                this.tableDataList = newList
220
+                console.log("999999999999999999-------",this.tableDataList)
221
+              }
222
+
223
+             
224
+             
225
+             }
226
+              
227
+              
228
+            }
229
+          })
230
+        },
231
+       getTimeOne(val) {
232
+          if(val == ""){
233
+          return ""
234
+          }else {
235
+          return uParseTime(val, '{y}-{m}-{d}')
236
+          }
237
+       },
238
+       getCount(val){
239
+         var count = 0
240
+         if(val!=null && val.length > 0){
241
+          for(let i=0;i<val.length;i++){
242
+            count += parseInt(val[i].prescribing_number)
243
+          }
244
+         }
245
+         if(count > 0){
246
+          return count
247
+         }else{
248
+          return 0
249
+         }
250
+       },
251
+      printAction: function() {
252
+      const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
253
+  
254
+      printJS({
255
+          printable: 'print_content',
256
+          type: 'html',
257
+          documentTitle: '  ',
258
+          style: style,
259
+          scanStyles: false
260
+       })
261
+      },
262
+      getSpecification(id){
263
+          var specification_name = ""
264
+          for(let i=0;i<this.druglist.length;i++){
265
+            if(id == this.druglist[i].id){
266
+              specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
267
+            }
268
+          }
269
+          return specification_name
270
+        },
271
+       getHisCount(val,max_unit,min_unit,min_number){
272
+          var total = 0
273
+          var max_str = "";
274
+          var min_str = "";
275
+          for(let i=0;i<val.length;i++){
276
+            total+=parseInt(val[i].prescribing_number)
277
+          }
278
+          if (total < min_number) {
279
+          min_str = total + min_unit;
280
+        }
281
+        if (total == 0) {
282
+          min_str = "";
283
+          max_str = "";
284
+        }
285
+        if (total >= min_number) {
286
+          if (parseInt(total / min_number) != 0) {
287
+            max_str = parseInt(total / min_number) + max_unit;
288
+          }
289
+          if (total % min_number != 0) {
290
+            min_str = (total % min_number) + min_unit;
291
+          }
292
+        }
293
+        return max_str + min_str;
294
+          
295
+        },
296
+
297
+        getModeId(val){
298
+        if(val!=null && val.length > 0){
299
+          let dataInfo = {}
300
+            val.forEach((item, index) => {
301
+            let { patient_id } = item
302
+            if (!dataInfo[patient_id])  {
303
+              dataInfo[patient_id] = {
304
+                patient_id:item.patient_id,
305
+                child: [],
306
+                count:0,
307
+                mode_id:item.mode_id,
308
+              }
309
+            }
310
+        })
311
+          let newArr = Object.values(dataInfo)
312
+        
313
+          if(newArr!=null && newArr.length >0){
314
+            let dataInfo = {}
315
+            newArr.forEach((item, index) => {
316
+              let { mode_id } = item
317
+              if (!dataInfo[mode_id])  {
318
+                dataInfo[mode_id] = {
319
+                  mode_id:item.mode_id,
320
+                  child: [],
321
+                  count:0,
322
+                }
323
+              }
324
+           })
325
+           let hisNewArr = Object.values(dataInfo)
326
+          
327
+           if(hisNewArr!=null && hisNewArr.length >0){
328
+             for(let i=0;i<hisNewArr.length;i++){
329
+               for(let j=0;j<newArr.length;j++){
330
+                 if(hisNewArr[i].mode_id == newArr[j].mode_id){
331
+                    hisNewArr[i].child.push(newArr[j])
332
+                 }
333
+               }
334
+             }
335
+           }
336
+         
337
+           
338
+           var str = ""
339
+           for(let i=0;i<hisNewArr.length;i++){
340
+             if(hisNewArr[i].mode_id == 1){
341
+                hisNewArr[i].mode_id = "HD"
342
+             }
343
+             if(hisNewArr[i].mode_id == 2){
344
+                hisNewArr[i].mode_id = "HDF"
345
+             }
346
+             if(hisNewArr[i].mode_id == 3){
347
+                hisNewArr[i].mode_id = "HD+HP"
348
+             }
349
+             if(hisNewArr[i].mode_id == 4){
350
+                hisNewArr[i].mode_id = "HP"
351
+             }
352
+             if(hisNewArr[i].mode_id == 5){
353
+                hisNewArr[i].mode_id = "HF"
354
+             }
355
+             if(hisNewArr[i].mode_id == 6){
356
+                hisNewArr[i].mode_id = "SCUF"
357
+             }
358
+             if(hisNewArr[i].mode_id == 7){
359
+                hisNewArr[i].mode_id = "IUF"
360
+             }
361
+             if(hisNewArr[i].mode_id == 8){
362
+                hisNewArr[i].mode_id = "HFHD"
363
+             }
364
+             if(hisNewArr[i].mode_id == 9){
365
+                hisNewArr[i].mode_id = "HFHD+HP"
366
+             }
367
+             if(hisNewArr[i].mode_id == 10){
368
+                hisNewArr[i].mode_id = "PHF"
369
+             }
370
+             if(hisNewArr[i].mode_id == 11){
371
+                hisNewArr[i].mode_id = "HFR"
372
+             }
373
+             if(hisNewArr[i].mode_id == 12){
374
+                hisNewArr[i].mode_id = "HDF+HP"
375
+             }
376
+             if(hisNewArr[i].mode_id == 13){
377
+                hisNewArr[i].mode_id = "CRRT"
378
+             }
379
+             if(hisNewArr[i].mode_id == 14){
380
+                hisNewArr[i].mode_id = "腹水回输"
381
+             }
382
+             if(hisNewArr[i].mode_id == 15){
383
+                hisNewArr[i].mode_id = "IUF+HD"
384
+             }
385
+             if(hisNewArr[i].mode_id == 20){
386
+                hisNewArr[i].mode_id = "UF"
387
+             }
388
+             if(hisNewArr[i].mode_id == 21){
389
+                hisNewArr[i].mode_id = "HD+"
390
+             }
391
+             if(hisNewArr[i].mode_id == 22){
392
+                hisNewArr[i].mode_id = "血浆胆红素吸附+HDF"
393
+             }
394
+             if(hisNewArr[i].mode_id == 23){
395
+                hisNewArr[i].mode_id = "血浆胆红素吸附"
396
+             }
397
+             if(hisNewArr[i].mode_id == 24){
398
+                hisNewArr[i].mode_id = "I-HDF"
399
+             }
400
+             if(hisNewArr[i].mode_id == 25){
401
+                hisNewArr[i].mode_id = "HD高通"
402
+             }
403
+             if(hisNewArr[i].mode_id == 26){
404
+                hisNewArr[i].mode_id = "CVVH"
405
+             }
406
+             if(hisNewArr[i].mode_id == 27){
407
+                hisNewArr[i].mode_id = "CVVHD"
408
+             }
409
+             if(hisNewArr[i].mode_id == 28){
410
+                hisNewArr[i].mode_id = "CVVHDF"
411
+             }
412
+             if(hisNewArr[i].mode_id == 29){
413
+                hisNewArr[i].mode_id = "PE"
414
+             }
415
+             if(hisNewArr[i].mode_id == 30){
416
+                hisNewArr[i].mode_id = "血浆胆红素吸附+HP"
417
+             }
418
+             if(hisNewArr[i].mode_id == 31){
419
+                hisNewArr[i].mode_id = "HPD"
420
+             }
421
+             if(hisNewArr[i].mode_id == 32){
422
+                hisNewArr[i].mode_id = "HDP"
423
+             }
424
+             str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n" 
425
+           }
426
+          
427
+           return str
428
+         }
429
+
430
+          // return newArr.length
431
+        }
432
+      },
433
+      getDrugCount(val,advice_name){
434
+        
435
+        if(val!=null){
436
+          for(let i=0;i<val.length;i++){
437
+           val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
438
+          }
439
+        }
440
+       
441
+        if(val!=null && val.length >0){
442
+            let dataInfo = {}
443
+            val.forEach((item, index) => {
444
+            
445
+            let { advice_name } = item
446
+            if (!dataInfo[advice_name])  {
447
+              dataInfo[advice_name] = {
448
+                advice_name:item.advice_name,
449
+                child: [],
450
+                count:0,
451
+              }
452
+            }
453
+          })
454
+       
455
+          let newArr = Object.values(dataInfo) 
456
+         
457
+         
458
+          if(newArr!=null && newArr.length >0){
459
+            for(let i=0;i<newArr.length;i++){
460
+              for(let j=0;j<val.length;j++){
461
+                if(newArr[i].advice_name == val[j].advice_name){
462
+                   newArr[i].child.push(val[j])
463
+                }
464
+              }
465
+            }
466
+          }
467
+          
468
+          var total = 0
469
+          var newHisArr =[]
470
+          if(newArr!=null && newArr.length >0){
471
+            for(let i=0;i<newArr.length;i++){
472
+               if(newArr[i].advice_name == advice_name){
473
+                  newHisArr.push(newArr[i])
474
+               }
475
+            }
476
+          }
477
+
478
+          if(newHisArr!=null && newHisArr.length>0){
479
+            
480
+            for(let i=0;i<newHisArr.length;i++){
481
+              for(let j=0;j<newHisArr[i].child.length;j++){
482
+                total += parseInt(newHisArr[i].child[j].prescribing_number)
483
+              }
484
+            }
485
+          }
486
+           
487
+          return total
488
+        }
489
+
490
+      },
491
+      getAdminUserName(id){
492
+        var name = ""
493
+        for(let i=0;i<this.adminUserList.length;i++){
494
+          if(id == this.adminUserList[i].id){
495
+             name = this.adminUserList[i].name
496
+          }
497
+        }
498
+        return name
499
+      },
500
+      getZoneName(val){
501
+        var zone_name = ""
502
+        if(val!=null && val.length >0){
503
+          zone_name = val[0].zone_name
504
+        }
505
+        return zone_name
506
+      },
507
+      compareList: function (k) {
508
+        return function (a, b) {
509
+          var M = a[k]
510
+          var N = b[k]
511
+          return M - N // 从低向高排
512
+          // return N - M;   // 从高向低排
513
+        }
514
+      },
515
+
516
+      getAllSumCount(advice_name){
517
+       
518
+       var hisNewArr =[]
519
+      if(this.tabHead.length!=null && this.tabHead.length >0){
520
+        for(let i=0;i<this.tabHead.length;i++){
521
+          if(this.tabHead[i].advice_name == advice_name){
522
+            hisNewArr.push(this.tabHead[i])
523
+          }
524
+        }
525
+      }
526
+      
527
+      var total = 0
528
+      if(hisNewArr!=null && hisNewArr.length > 0){
529
+        for(let i=0;i<hisNewArr.length;i++){
530
+         for(let j=0;j<hisNewArr[i].child.length;j++){
531
+            total += parseInt(hisNewArr[i].child[j].prescribing_number)
532
+         }
533
+        }
534
+      }
535
+      if (total > 0) {
536
+        return total
537
+      }else{
538
+        return 0
539
+      }
540
+
541
+     }
542
+     }
543
+    }
544
+  </script>
545
+  
546
+  <style rel="stylesheet/scss" lang="scss" scoped>
547
+    .print_main_content {
548
+      background-color: white;
549
+      width: 960px;
550
+      margin: 0 auto;
551
+      padding: 0 0 20px 0;
552
+  
553
+    .order_title_panl {
554
+      text-align: center;
555
+  
556
+    .main_title {
557
+      font-size: 18px;
558
+      line-height: 40px;
559
+      font-weight: 500;
560
+    }
561
+  
562
+    }
563
+    .table_panel {
564
+  
565
+    .table {
566
+      width: 100%;
567
+      border: 1px solid;
568
+      border-collapse: collapse;
569
+      padding: 2px;
570
+  
571
+    thead {
572
+  
573
+    tr {
574
+  
575
+    td {
576
+      border: 1px solid;
577
+      text-align: center;
578
+      font-size: 20px;
579
+      padding: 15px 5px;
580
+    }
581
+  
582
+    }
583
+    }
584
+    tbody {
585
+  
586
+    tr {
587
+  
588
+    td {
589
+      border: 1px solid;
590
+      text-align: center;
591
+      font-size: 18px;
592
+      padding: 10px 5px;
593
+  
594
+    .proj {
595
+      padding: 5px 0;
596
+      text-align: left;
597
+  
598
+    .proj_title {
599
+      font-size: 16px;
600
+      font-weight: 500;
601
+      line-height: 25px;
602
+    }
603
+  
604
+    .proj_item {
605
+      font-size: 15px;
606
+      line-height: 20px;
607
+  
608
+    .zone_name {
609
+      font-weight: 500;
610
+    }
611
+  
612
+    }
613
+    }
614
+    }
615
+    }
616
+    }
617
+    }
618
+    }
619
+    }
620
+  </style>
621
+  
622
+  

File diff suppressed because it is too large
+ 627 - 64
src/xt_pages/dialysis/newDoctorAdvice.vue


+ 3 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

@@ -1628,7 +1628,9 @@
1628 1628
                                           monitor.operate_time ==
1629 1629
                                             dialysisOrder.start_time
1630 1630
                                         "
1631
-                                        >【开始透析】</template
1631
+                                        >【开始透析】
1632
+                                       
1633
+                                        </template
1632 1634
                                       >
1633 1635
                                       {{ monitor.end }}
1634 1636
                                       {{ monitor.symptom }} &nbsp;{{

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

@@ -944,8 +944,8 @@
944 944
                             : "/"
945 945
                         }}
946 946
                       </div>
947
-                      <span v-if="org_id == 10395 || org_id == 9829">ml</span> 
948
-                      <span v-if="org_id!=10395&&org_id!=9829">L</span>
947
+                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440">ml</span> 
948
+                      <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440">L</span>
949 949
                     </div>
950 950
                     <div class="inline_block" style="flex: 1">
951 951
                       干体重:
@@ -1052,14 +1052,14 @@
1052 1052
                         }}
1053 1053
                       </div>
1054 1054
                      
1055
-                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829">
1055
+                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1056 1056
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1057 1057
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1058 1058
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1059 1059
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1060 1060
                     </span>
1061 1061
 
1062
-                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829">
1062
+                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id!=10440">
1063 1063
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1064 1064
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1065 1065
                       <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -1098,7 +1098,7 @@
1098 1098
                             : "0"
1099 1099
                         }}
1100 1100
                       </div>
1101
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829">
1101
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1102 1102
 
1103 1103
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1104 1104
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
@@ -1106,7 +1106,7 @@
1106 1106
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1107 1107
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1108 1108
                       </span>
1109
-                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829">
1109
+                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440">
1110 1110
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1111 1111
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1112 1112
                           <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -1171,13 +1171,13 @@
1171 1171
                             : "/"
1172 1172
                         }}
1173 1173
                       </div>
1174
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829">
1174
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1175 1175
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1176 1176
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1177 1177
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1178 1178
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1179 1179
                      </span>
1180
-                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829">
1180
+                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440">
1181 1181
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1182 1182
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1183 1183
                        <span v-if="prescription.anticoagulant == 4">ml</span>

+ 13 - 12
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue View File

@@ -390,7 +390,7 @@
390 390
             </td>
391 391
           </tr>
392 392
           <tr>
393
-            <td style="text-align: left" colspan="1">
393
+            <!-- <td style="text-align: left" colspan="1">
394 394
               <span style="display: inline-block; margin-left: 15px">
395 395
                 责任护士:
396 396
                 <span
@@ -401,7 +401,7 @@
401 401
                   <img style="height:30px;" :src="setAdminUserES(dialysisOrder.quality_nurse_id)" alt srcset />
402 402
                 </span>
403 403
               </span>
404
-            </td>
404
+            </td> -->
405 405
             <td style="text-align: left" colspan="1">
406 406
               <span style="display: inline-block; margin-left: 15px">
407 407
                 <span
@@ -1069,29 +1069,30 @@
1069 1069
                 透析器及管路凝血情况:
1070 1070
                 <label-box
1071 1071
                   showValue="0级"
1072
-                  :isChecked="afterdialysis.cruor.indexOf('透析器-0级') > -1"
1072
+                  :isChecked="afterdialysis.cruor.indexOf('0级') > -1"
1073 1073
                 ></label-box>
1074 1074
                 <label-box
1075 1075
                   showValue="1级"
1076
-                  :isChecked="afterdialysis.cruor.indexOf('透析器-1级') > -1"
1076
+                  :isChecked="afterdialysis.cruor.indexOf('1级') > -1"
1077 1077
                 ></label-box>
1078 1078
                 <label-box
1079 1079
                   showValue="2级"
1080
-                  :isChecked="afterdialysis.cruor.indexOf('透析器-2级') > -1"
1080
+                  :isChecked="afterdialysis.cruor.indexOf('2级') > -1"
1081 1081
                 ></label-box>
1082 1082
                 <label-box
1083 1083
                   showValue="3级"
1084
-                  :isChecked="afterdialysis.cruor.indexOf('透析器-3级') > -1"
1084
+                  :isChecked="afterdialysis.cruor.indexOf('3级') > -1"
1085 1085
                 ></label-box
1086
-                ><label-box
1086
+                >
1087
+                <!-- <label-box
1087 1088
                   showValue="无"
1088
-                  :isChecked="afterdialysis.cruor.indexOf('透析器-3级') <= -1&&
1089
-                  afterdialysis.cruor.indexOf('透析器-2级') <= -1&&
1090
-                  afterdialysis.cruor.indexOf('透析器-1级') <= -1&&
1091
-                  afterdialysis.cruor.indexOf('透析器-0级') <= -1"
1089
+                  :isChecked="afterdialysis.cruor.indexOf('3级') <= -1&&
1090
+                  afterdialysis.cruor.indexOf('2级') <= -1&&
1091
+                  afterdialysis.cruor.indexOf('1级') <= -1&&
1092
+                  afterdialysis.cruor.indexOf('0级') <= -1"
1092 1093
                 ></label-box
1093 1094
                 >&nbsp;&nbsp;
1094
-                {{ getCruor(afterdialysis.cruor) }}
1095
+                {{ getCruor(afterdialysis.cruor) }} -->
1095 1096
               </span>
1096 1097
             </td>
1097 1098
           </tr>

+ 1 - 1
src/xt_pages/hospitalStation/shouJuTemplate/shouJuPrintOne.vue View File

@@ -217,7 +217,7 @@ export default {
217 217
     }
218 218
   },
219 219
   created(){
220
-    console.log('paramsObj',this.paramsObj)
220
+    //console.log('paramsObj',this.paramsObj)
221 221
     let params = {
222 222
       order_id: this.paramsObj.order_id,
223 223
       patient_id: this.paramsObj.patient_id,

+ 2 - 2
src/xt_pages/stock/stockInOrderAdd.vue View File

@@ -112,8 +112,8 @@
112 112
             <template slot-scope="scope">
113 113
               <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
114 114
                             :rules='tableRules.warehousing_count' style="padding-top: 20px">
115
-                <el-input placeholder="请输入入库数量" type="number" v-model="scope.row.warehousing_count"  oninput="value=value.replace(/\D|^0/g,'')"></el-input>
116
-                <!-- <el-input placeholder="请输入入库数量" v-model="scope.row.warehousing_count"></el-input> -->
115
+                <!-- <el-input placeholder="请输入入库数量" type="number" v-model="scope.row.warehousing_count"  oninput="value=value.replace(/\D|^0/g,'')"></el-input> -->
116
+                <el-input placeholder="请输入入库数量" v-model="scope.row.warehousing_count"></el-input>
117 117
                   {{scope.row.min_unit}}
118 118
               </el-form-item>
119 119
 

+ 4 - 4
src/xt_pages/stock/stockInOrderEdit.vue View File

@@ -198,18 +198,18 @@
198 198
                 :rules="tableRules.warehousing_count"
199 199
                 style="padding-top: 20px"
200 200
               >
201
-                <el-input
201
+                <!-- <el-input
202 202
                   oninput="value=value.replace(/\D|^0/g,'')"
203 203
                   placeholder="请输入入库数量"
204 204
                   type="number"
205 205
                   v-model="scope.row.warehousing_count"
206 206
                    :disabled ="disabled"
207
-                ></el-input>
208
-                 <!-- <el-input
207
+                ></el-input> -->
208
+                 <el-input
209 209
                   placeholder="请输入入库数量"
210 210
                   v-model="scope.row.warehousing_count"
211 211
                    :disabled ="disabled"
212
-                ></el-input> -->
212
+                ></el-input>
213 213
                 {{scope.row.min_unit}}
214 214
               </el-form-item>
215 215
             </template>

+ 28 - 23
src/xt_pages/workforce/components/editTableData.vue View File

@@ -3945,7 +3945,7 @@ export default {
3945 3945
         this.$refs.table.doLayout();
3946 3946
       });
3947 3947
       
3948
-      if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877){
3948
+      if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10340){
3949 3949
 
3950 3950
         //灌流 HD+HP
3951 3951
         var Mon_M = 0
@@ -4201,37 +4201,37 @@ export default {
4201 4201
         }
4202 4202
       }
4203 4203
 
4204
-            sums[2] = "总人数:"+ sums[2]  +"人"+ " " + "灌流:"+Mon_M +"人" +" "+ "血滤:" + Mon_M_One +"人"
4205
-            sums[3] = "总人数:"+ sums[3]  +"人"+ " " + "灌流:"+Mon_A +"人" +" "+ "血滤:" + Mon_A_One  +"人" 
4206
-            sums[4] = "总人数:"+ sums[4]  +"人"+ " " + "灌流:"+Mon_N +"人" +" "+ "血滤:" + Mon_N_One +"人"  
4204
+            sums[2] = "总人数:"+ sums[2]  +"人"+ " " +"\n"+ "HD+HP:"+Mon_M +"人" +" "+ "HDF:" + Mon_M_One +"人"
4205
+            sums[3] = "总人数:"+ sums[3]  +"人"+ " " + "\n"+"HD+HP:"+Mon_A +"人" +" "+ "HDF:" + Mon_A_One  +"人" 
4206
+            sums[4] = "总人数:"+ sums[4]  +"人"+ " " + "\n"+ "HD+HP:"+Mon_N +"人" +" "+ "HDF:" + Mon_N_One +"人"  
4207 4207
 
4208
-            sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "灌流:"+Tue_M +"人" +" "+ "血滤:" + Tue_M_One +"人"  
4209
-            sums[6] = "总人数:"+ sums[6]  +"人"+ " " + "灌流:"+Tue_A +"人" +" "+ "血滤:" + Tue_A_One +"人"  
4210
-            sums[7] = "总人数:"+ sums[7]  +"人"+ " " + "灌流:"+Tue_N +"人" +" "+ "血滤:" + Tue_N_One +"人"  
4208
+            sums[5] = "总人数:"+ sums[5]  +"人"+ " " +"\n"+ "HD+HP:"+Tue_M +"人" +" "+ "HDF:" + Tue_M_One +"人"  
4209
+            sums[6] = "总人数:"+ sums[6]  +"人"+ " " +"\n"+ "HD+HP:"+Tue_A +"人" +" "+ "HDF:" + Tue_A_One +"人"  
4210
+            sums[7] = "总人数:"+ sums[7]  +"人"+ " " +"\n"+ "HD+HP:"+Tue_N +"人" +" "+ "HDF:" + Tue_N_One +"人"  
4211 4211
 
4212
-            sums[8] = "总人数:"+ sums[8]  +"人"+ " " + "灌流:"+Wed_M +"人" +" "+ "血滤:" + Wed_M_One +"人"  
4213
-            sums[9] = "总人数:"+ sums[9]  +"人"+ " " + "灌流:"+Wed_A +"人" +" "+ "血滤:" + Wed_A_One  +"人"  
4214
-            sums[10] = "总人数:"+ sums[10]  +"人"+ " " + "灌流:"+Wed_N +"人" +" "+ "血滤:" +Wed_N_One +"人"  
4212
+            sums[8] = "总人数:"+ sums[8]  +"人"+ " " + "\n"+"HD+HP:"+Wed_M +"人" +" "+ "HDF:" + Wed_M_One +"人"  
4213
+            sums[9] = "总人数:"+ sums[9]  +"人"+ " " +"\n"+ "HD+HP:"+Wed_A +"人" +" "+ "HDF:" + Wed_A_One  +"人"  
4214
+            sums[10] = "总人数:"+ sums[10]  +"人"+ " " +"\n"+ "HD+HP:"+Wed_N +"人" +" "+ "HDF:" +Wed_N_One +"人"  
4215 4215
 
4216
-            sums[11] = "总人数:"+ sums[11]  +"人"+ " " + "灌流:"+Thurs_M +"人" +" "+ "血滤:" + Thurs_M_One +"人"  
4217
-            sums[12] = "总人数:"+ sums[12]  +"人"+ " " + "灌流:"+Thurs_A +"人" +" "+ "血滤:" + Thurs_A_One  +"人"  
4218
-            sums[13] = "总人数:"+ sums[13]  +"人"+ " " + "灌流:"+Thurs_N +"人" +" "+ "血滤:" + Thurs_N_One +"人"  
4216
+            sums[11] = "总人数:"+ sums[11]  +"人"+ " " +"\n"+ "HD+HP:"+Thurs_M +"人" +" "+ "HDF:" + Thurs_M_One +"人"  
4217
+            sums[12] = "总人数:"+ sums[12]  +"人"+ " " +"\n"+ "HD+HP:"+Thurs_A +"人" +" "+ "HDF:" + Thurs_A_One  +"人"  
4218
+            sums[13] = "总人数:"+ sums[13]  +"人"+ " " +"\n"+ "HD+HP:"+Thurs_N +"人" +" "+ "HDF:" + Thurs_N_One +"人"  
4219 4219
 
4220
-            sums[14] = "总人数:"+ sums[14]  +"人"+ " " + "灌流:"+Fri_M +"人" +" "+ "血滤:" + Fri_M_One +"人"  
4221
-            sums[15] = "总人数:"+ sums[15]  +"人"+ " " + "灌流:"+Fri_A +"人" +" "+ "血滤:" + Fri_A_One +"人"  
4222
-            sums[16] = "总人数:"+ sums[16]  +"人"+ " " + "灌流:"+Fri_N +"人" +" "+ "血滤:" + Fri_N_One +"人"  
4220
+            sums[14] = "总人数:"+ sums[14]  +"人"+ " " +"\n"+ "HD+HP:"+Fri_M +"人" +" "+ "HDF:" + Fri_M_One +"人"  
4221
+            sums[15] = "总人数:"+ sums[15]  +"人"+ " " +"\n"+ "HD+HP:"+Fri_A +"人" +" "+ "HDF:" + Fri_A_One +"人"  
4222
+            sums[16] = "总人数:"+ sums[16]  +"人"+ " " +"\n"+ "HD+HP:"+Fri_N +"人" +" "+ "HDF:" + Fri_N_One +"人"  
4223 4223
 
4224
-            sums[17] = "总人数:"+ sums[17]  +"人"+ " " + "灌流:"+Sat_M +"人" +" "+ "血滤:" + Sat_M_One +"人"  
4225
-            sums[18] = "总人数:"+ sums[18]  +"人"+ " " + "灌流:"+Sat_A +"人" +" "+ "血滤:" + Sat_A_One +"人"  
4226
-            sums[19] = "总人数:"+ sums[19]  +"人"+ " " + "灌流:"+Sat_N +"人" +" "+ "血滤:" + Sat_N_One +"人"  
4224
+            sums[17] = "总人数:"+ sums[17]  +"人"+ " " + "\n"+"HD+HP:"+Sat_M +"人" +" "+ "HDF:" + Sat_M_One +"人"  
4225
+            sums[18] = "总人数:"+ sums[18]  +"人"+ " " +"\n"+ "HD+HP:"+Sat_A +"人" +" "+ "HDF:" + Sat_A_One +"人"  
4226
+            sums[19] = "总人数:"+ sums[19]  +"人"+ " " +"\n"+ "HD+HP:"+Sat_N +"人" +" "+ "HDF:" + Sat_N_One +"人"  
4227 4227
 
4228
-            sums[20] = "总人数:"+ sums[20]  +"人"+ " " + "灌流:"+Sun_M +"人" +" "+ "血滤:" + Sun_M_One +"人"  
4229
-            sums[21] = "总人数:"+ sums[21]  +"人"+ " " + "灌流:"+Sun_A +"人" +" "+ "血滤:" + Sun_A_One +"人"  
4230
-            sums[22] = "总人数:"+ sums[22]  +"人"+ " " + "灌流:"+Sun_N +"人" +" "+ "血滤:" + Sun_N_One +"人"  
4228
+            sums[20] = "总人数:"+ sums[20]  +"人"+ " " + "\n"+"HD+HP:"+Sun_M +"人" +" "+ "HDF:" + Sun_M_One +"人"  
4229
+            sums[21] = "总人数:"+ sums[21]  +"人"+ " " +"\n"+ "HD+HP:"+Sun_A +"人" +" "+ "HDF:" + Sun_A_One +"人"  
4230
+            sums[22] = "总人数:"+ sums[22]  +"人"+ " " +"\n"+ "HD+HP:"+Sun_N +"人" +" "+ "HDF:" + Sun_N_One +"人"  
4231 4231
             return sums;
4232 4232
         }
4233 4233
 
4234
-      if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877){
4234
+      if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877 && this.$store.getters.xt_user.template_info.org_id != 10340){
4235 4235
         return sums;
4236 4236
       }
4237 4237
     },
@@ -5645,6 +5645,10 @@ export default {
5645 5645
 }
5646 5646
 }
5647 5647
 }
5648
+
5649
+.el-table .cell{
5650
+  white-space: pre-wrap;
5651
+}
5648 5652
 </style>
5649 5653
 
5650 5654
 <style scoped>
@@ -5707,5 +5711,6 @@ export default {
5707 5711
   top: 15px;
5708 5712
   right: 120px;
5709 5713
 }
5714
+
5710 5715
 </style>
5711 5716
 

+ 26 - 23
src/xt_pages/workforce/components/tableData.vue View File

@@ -1435,7 +1435,7 @@ export default {
1435 1435
       this.$nextTick(() => {
1436 1436
         this.$refs.table.doLayout();
1437 1437
       });
1438
-    if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877){
1438
+    if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10340){
1439 1439
 
1440 1440
       //灌流 HD+HP
1441 1441
       var Mon_M = 0
@@ -1691,38 +1691,38 @@ export default {
1691 1691
         }
1692 1692
       }
1693 1693
 
1694
-      sums[2] = "总人数:"+ sums[2]  +"人"+ " " + "灌流:"+Mon_M +"人" +" "+ "血滤:" + Mon_M_One +"人"
1695
-      sums[3] = "总人数:"+ sums[3]  +"人"+ " " + "灌流:"+Mon_A +"人" +" "+ "血滤:" + Mon_A_One +"人"
1696
-      sums[4] = "总人数:"+ sums[4]  +"人"+ " " + "灌流:"+Mon_N +"人" +" "+ "血滤:" + Mon_N_One +"人"
1694
+      sums[2] = ("总人数:"+ sums[2]+"人").replace(/\\r\\n/g, '<br/>')+""+ "\n" + "HD+HP:"+Mon_M +"人" +"\n"+ "HDF:" + Mon_M_One +"人"
1695
+      sums[3] = ("总人数:"+ sums[3]+"人").replace(/\\r\\n/g, '<br/>')+" "+"\n"+ "HD+HP:"+Mon_A +"人" +"\n"+ "HDF:" + Mon_A_One +"人"
1696
+      sums[4] = ("总人数:"+ sums[4]+"人").replace(/\\r\\n/g, '<br/>')+" "+"\n"+ "HD+HP:"+Mon_N +"人" +"\n"+ "HDF:" + Mon_N_One +"人"
1697 1697
 
1698
-      sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "灌流:"+Tue_M +"人" +" "+ "血滤:" + Tue_M_One +"人"
1699
-      sums[6] = "总人数:"+ sums[6]  +"人"+ " " + "灌流:"+Tue_A +"人" +" "+ "血滤:" + Tue_A_One +"人"
1700
-      sums[7] = "总人数:"+ sums[7]  +"人"+ " " + "灌流:"+Tue_N +"人" +" "+ "血滤:" + Tue_N_One +"人"
1698
+      sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "\n"+ "HD+HP:"+Tue_M +"人" +" "+ "HDF:" + Tue_M_One +"人"
1699
+      sums[6] = "总人数:"+ sums[6]  +"人"+ " " +'\n' + "HD+HP:"+Tue_A +"人" +" "+ "HDF:" + Tue_A_One +"人"
1700
+      sums[7] = "总人数:"+ sums[7]  +"人"+ " " +'\n' + "HD+HP:"+Tue_N +"人" +" "+ "HDF:" + Tue_N_One +"人"
1701 1701
 
1702
-      sums[8] = "总人数:"+ sums[8]  +"人"+ " " + "灌流:"+Wed_M +"人" +" "+ "血滤:" + Wed_M_One +"人"
1703
-      sums[9] = "总人数:"+ sums[9]  +"人"+ " " + "灌流:"+ Wed_A +"人" +" "+ "血滤:" + Wed_A_One +"人"
1704
-      sums[10] = "总人数:"+ sums[10]  +"人"+ " " + "灌流:"+Wed_N +"人" +" "+ "血滤:" +Wed_N_One +"人"
1702
+      sums[8] = "总人数:"+ sums[8]  +"人"+ " " + '\n'+ "HD+HP:"+Wed_M +"人" +" "+ "HDF:" + Wed_M_One +"人"
1703
+      sums[9] = "总人数:"+ sums[9]  +"人"+ " " +'\n' + "HD+HP:"+ Wed_A +"人" +" "+ "HDF:" + Wed_A_One +"人"
1704
+      sums[10] = "总人数:"+ sums[10]  +"人"+ " " +'\n'+"HD+HP:"+Wed_N +"人" +" "+ "HDF:" +Wed_N_One +"人"
1705 1705
 
1706
-      sums[11] = "总人数:"+ sums[11]  +"人"+ " " + "灌流:"+Thurs_M +"人" +" "+ "血滤:" + Thurs_M_One +"人"
1707
-      sums[12] = "总人数:"+ sums[12]  +"人"+ " " + "灌流:"+Thurs_A +"人" +" "+ "血滤:" + Thurs_A_One +"人"
1708
-      sums[13] = "总人数:"+ sums[13]  +"人"+ " " + "灌流:"+Thurs_N +"人" +" "+ "血滤:" + Thurs_N_One +"人"
1706
+      sums[11] = "总人数:"+ sums[11]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_M +"人" +" "+ "HDF:" + Thurs_M_One +"人"
1707
+      sums[12] = "总人数:"+ sums[12]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_A +"人" +" "+ "HDF:" + Thurs_A_One +"人"
1708
+      sums[13] = "总人数:"+ sums[13]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_N +"人" +" "+ "HDF:" + Thurs_N_One +"人"
1709 1709
 
1710
-      sums[14] = "总人数:"+ sums[14]  +"人"+ " " + "灌流:"+Fri_M +"人" +" "+ "血滤:" + Fri_M_One +"人"
1711
-      sums[15] = "总人数:"+ sums[15]  +"人"+ " " + "灌流:"+Fri_A +"人" +" "+ "血滤:" + Fri_A_One +"人"
1712
-      sums[16] = "总人数:"+ sums[16]  +"人"+ " " + "灌流:"+Fri_N +"人" +" "+ "血滤:" + Fri_N_One +"人"
1710
+      sums[14] = "总人数:"+ sums[14]  +"人"+ " " +'\n' + "HD+HP:"+Fri_M +"人" +" "+ "HDF:" + Fri_M_One +"人"
1711
+      sums[15] = "总人数:"+ sums[15]  +"人"+ " " + '\n' +"HD+HP:"+Fri_A +"人" +" "+ "HDF:" + Fri_A_One +"人"
1712
+      sums[16] = "总人数:"+ sums[16]  +"人"+ " " +'\n' + "HD+HP:"+Fri_N +"人" +" "+ "HDF:" + Fri_N_One +"人"
1713 1713
 
1714
-      sums[17] = "总人数:"+ sums[17]  +"人"+ " " + "灌流:"+Sat_M +"人" +" "+ "血滤:" + Sat_M_One +"人"
1715
-      sums[18] = "总人数:"+ sums[18]  +"人"+ " " + "灌流:"+Sat_A +"人" +" "+ "血滤:" + Sat_A_One +"人"
1716
-      sums[19] = "总人数:"+ sums[19]  +"人"+ " " + "灌流:"+Sat_N +"人" +" "+ "血滤:" + Sat_N_One +"人"
1714
+      sums[17] = "总人数:"+ sums[17]  +"人"+ " " +'\n' + "HD+HP:"+Sat_M +"人" +" "+ "HDF:" + Sat_M_One +"人"
1715
+      sums[18] = "总人数:"+ sums[18]  +"人"+ " " + '\n' +"HD+HP:"+Sat_A +"人" +" "+ "HDF:" + Sat_A_One +"人"
1716
+      sums[19] = "总人数:"+ sums[19]  +"人"+ " " +'\n' + "HD+HP:"+Sat_N +"人" +" "+ "HDF:" + Sat_N_One +"人"
1717 1717
 
1718
-      sums[20] = "总人数:"+ sums[20]  +"人"+ " " + "灌流:"+Sun_M +"人" +" "+ "血滤:" + Sun_M_One +"人"
1719
-      sums[21] = "总人数:"+ sums[21]  +"人"+ " " + "灌流:"+Sun_A +"人" +" "+ "血滤:" + Sun_A_One +"人"
1720
-      sums[22] = "总人数:"+ sums[22]  +"人"+ " " + "灌流:"+Sun_N +"人" +" "+ "血滤:" + Sun_N_One +"人"
1718
+      sums[20] = "总人数:"+ sums[20]  +"人"+ " " +'\n' + "HD+HP:"+Sun_M +"人" +" "+ "HDF:" + Sun_M_One +"人"
1719
+      sums[21] = "总人数:"+ sums[21]  +"人"+ " " + '\n'+"HD+HP:"+Sun_A +"人" +" "+ "HDF:" + Sun_A_One +"人"
1720
+      sums[22] = "总人数:"+ sums[22]  +"人"+ " " + '\n'+"HD+HP:"+Sun_N +"人" +" "+ "HDF:" + Sun_N_One +"人"
1721 1721
       return sums;
1722 1722
 
1723 1723
       }
1724 1724
 
1725
-      if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877){
1725
+      if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877&& this.$store.getters.xt_user.template_info.org_id != 10340){
1726 1726
         return sums;
1727 1727
       }
1728 1728
     },
@@ -3210,4 +3210,7 @@ export default {
3210 3210
 .backPurple{
3211 3211
   color: #08c3df !important;
3212 3212
 }
3213
+.el-table .cell{
3214
+  white-space: pre-wrap;
3215
+}
3213 3216
 </style>

+ 21 - 19
src/xt_pages/workforce/printOne.vue View File

@@ -47,13 +47,13 @@
47 47
 
48 48
                   <td :width="td_3_width">病人姓名</td>
49 49
 
50
-                  <td :width="td_3_width">统计</td>
50
+                  <td :width="td_3_width" v-if="hiddenFlag == false">统计</td>
51 51
                 </tr>
52 52
               </thead>
53 53
               <tbody>
54 54
                 <tr v-for="(it, i) in item.zones" :key="i">
55 55
                   <td :width="td_1_width">
56
-                    总人数: {{getZonePatient(it.partition_id)}}<span v-if="getZonePatient(it.partition_id)>0">人</span><br>
56
+                    <span v-if="hiddenFlag == false">总人数: {{getZonePatient(it.partition_id,item.schedule_type)}}<span v-if="getZonePatient(it.partition_id,item.schedule_type)>0">人</span><br></br></span> 
57 57
                     {{ getZoneName(it.partition_id) }}
58 58
                   </td>
59 59
                   <td :width="td_3_width" valign="top">
@@ -67,25 +67,27 @@
67 67
                       </div>
68 68
                     </div>
69 69
                   </td>
70
-                  <td :width="td_3_width">
71
-                     
72
-                    <span v-if="getMonPatient(it.partition_id)>0 || getMonAfterPatient(it.partition_id)>0 || getNightPatient(it.partition_id) >0"></span> 血滤(HDF):<br>
73
-                     <span v-if="getMonPatient(it.partition_id)>0">上午:{{getMonPatient(it.partition_id)}}人</span><br>
74
-                      {{getMonPatientName(it.partition_id)}} <br>
75
-                     <span v-if="getMonAfterPatient(it.partition_id)>0">下午:{{getMonAfterPatient(it.partition_id)}}人</span>  <br>
76
-                       {{getMonAfterPatientName(it.partition_id) }} <br>
77
-                     <span v-if="getNightPatient(it.partition_id) >0">晚上:{{getNightPatient(it.partition_id)}}人 </span> <br>
78
-                        {{getNightPatientName(it.partition_id) }}
70
+                  <td :width="td_3_width" v-if="hiddenFlag == false">                    
71
+                    <span v-if="getMonPatient(it.partition_id)>0 || getMonAfterPatient(it.partition_id)>0 || getNightPatient(it.partition_id) >0"></span>血滤(HDF):<br>
72
+                     <span v-if="getMonPatient(it.partition_id)>0 && item.schedule_type == 1">上午:{{getMonPatient(it.partition_id)}}人</span><br>
73
+                      <span v-if="item.schedule_type ==1"> {{getMonPatientName(it.partition_id)}} </span><br>
79 74
 
75
+                     <span v-if="getMonAfterPatient(it.partition_id)>0 && item.schedule_type == 2">下午:{{getMonAfterPatient(it.partition_id)}}人</span>  <br>
76
+                      <span v-if="item.schedule_type == 2"> {{getMonAfterPatientName(it.partition_id) }}</span>  <br>
80 77
 
78
+                     <span v-if="getNightPatient(it.partition_id) >0 && item.schedule_type == 3">晚上:{{getNightPatient(it.partition_id)}}人 </span> <br>
79
+                       <span v-if="item.schedule_type == 3"> {{getNightPatientName(it.partition_id) }}</span> 
81 80
                      <br>
81
+
82 82
                      <span v-if="getMonPatientOne(it.partition_id)>0 || getMonAfterPatientOne(it.partition_id)>0 || getNightPatientOne(it.partition_id) >0">灌流(HD+HP):</span><br>
83
-                     <span v-if="getMonPatientOne(it.partition_id)>0">上午:{{getMonPatientOne(it.partition_id)}}人</span><br>
84
-                      {{getMonPatientNameOne(it.partition_id)}} <br>
85
-                     <span v-if="getMonAfterPatientOne(it.partition_id)>0">下午:{{getMonAfterPatientOne(it.partition_id)}}人</span>  <br>
86
-                       {{getMonAfterPatientNameOne(it.partition_id) }} <br>
87
-                     <span v-if="getNightPatientOne(it.partition_id) >0">晚上:{{getNightPatientOne(it.partition_id)}}人 </span> <br>
88
-                      {{getNightPatientNameOne(it.partition_id) }}
83
+                     <span v-if="getMonPatientOne(it.partition_id)>0 && item.schedule_type == 1">上午:{{getMonPatientOne(it.partition_id)}}人</span><br>
84
+                       <span v-if="item.schedule_type == 1"> {{getMonPatientNameOne(it.partition_id)}}</span> <br>
85
+
86
+                     <span v-if="getMonAfterPatientOne(it.partition_id)>0 && item.schedule_type == 2">下午:{{getMonAfterPatientOne(it.partition_id)}}人</span>  <br>
87
+                      <span v-if="item.schedule_type == 2">{{getMonAfterPatientNameOne(it.partition_id) }} </span>  <br>
88
+
89
+                     <span v-if="getNightPatientOne(it.partition_id) >0 && item.schedule_type == 3">晚上:{{getNightPatientOne(it.partition_id)}}人 </span> <br>
90
+                      <span v-if="item.schedule_type == 3">{{getNightPatientNameOne(it.partition_id) }}</span>  
89 91
                   </td>
90 92
                 </tr>
91 93
               </tbody>
@@ -708,12 +710,12 @@ export default {
708 710
       }
709 711
       return name
710 712
     },
711
-    getZonePatient(partition_id){
713
+    getZonePatient(partition_id,schedule_type){
712 714
        
713 715
       var arr = []
714 716
       if(this.list!=null && this.list.length >0){
715 717
         for(let i=0;i<this.list.length;i++){
716
-           if(partition_id == this.list[i].partition_id){
718
+           if(partition_id == this.list[i].partition_id && schedule_type == this.list[i].schedule_type){
717 719
                arr.push(this.list[i])
718 720
            }
719 721
         }