Browse Source

长沙南雅打印单问题修改

28169 2 years ago
parent
commit
9298818112

+ 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>

+ 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>

+ 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
+  

+ 568 - 5
src/xt_pages/dialysis/newDoctorAdvice.vue View File

@@ -159,7 +159,9 @@
159 159
       </div> -->
160 160
 
161 161
       <div style="margin-top: 10px;margin-bottom:10px">
162
-        <el-button type="primary" size="small" @click="toStatic">统计</el-button>
162
+        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671 && org_id!=0 && org_id!=10340 ">统计</el-button>
163
+
164
+        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id == 0 || org_id==10340">统计</el-button>
163 165
       </div>
164 166
 
165 167
 
@@ -574,6 +576,127 @@
574 576
         <el-button type="primary" @click="startdialogVisible = false">确 定</el-button>
575 577
       </span>
576 578
     </el-dialog>
579
+
580
+
581
+  <!-- 长沙南雅 -->
582
+    <el-dialog
583
+      title="药品统计表"
584
+      :visible.sync="startdialogVisibleOne"
585
+      width="70%">
586
+      <span>
587
+        <div class="cell clearfix" style="margin-bottom:10px">
588
+          <label class="title"> <span class="name">排班班次</span> : </label>
589
+           <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleTypeOne" >
590
+            <el-option
591
+              v-for="item in schedulArr"
592
+              :key="item.value"
593
+              :label="item.label"
594
+              :value="item.value">
595
+            </el-option>
596
+           </el-select>
597
+           <label class="title"> <span class="name">病区选择</span> : </label>
598
+           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionTypeOne">
599
+            <el-option
600
+              v-for="item in partitionArr"
601
+              :key="item.id"
602
+              :label="item.name"
603
+              :value="item.id">
604
+            </el-option>
605
+           </el-select>
606
+           <el-button size="small" icon="el-icon-printer"  @click="toPrintTwo" type="primary">打印</el-button>
607
+           <!-- <el-button size="small"  @click="toExportListOne" type="primary">导出</el-button> -->
608
+
609
+           <!-- <el-button @click="toJiao()">脚本</el-button> -->
610
+        </div> 
611
+
612
+      <el-table
613
+        :data="tableDataList"
614
+       
615
+        border
616
+        :row-style="{ color: '#303133' }"
617
+        :header-cell-style="{
618
+          backgroundColor: 'rgb(245, 247, 250)',
619
+          color: '#606266'
620
+        }"
621
+      >
622
+      <el-table-column
623
+          align="center"
624
+          prop="name"
625
+          label="序号"
626
+          width="100"
627
+        >
628
+          <template slot-scope="scope" >
629
+            <span v-if="scope.row.is_total == 1">{{scope.$index+1}}</span> 
630
+            <span v-if="scope.row.is_total == 0">总计</span>
631
+          </template>
632
+
633
+        </el-table-column>
634
+       <el-table-column
635
+          align="center"
636
+          prop="name"
637
+          label="区域"
638
+          width="100"
639
+        >
640
+          <template slot-scope="scope" >
641
+            <span v-if="scope.row.is_total ==1">{{getZoneName(scope.row.child)}}</span> 
642
+          </template>
643
+
644
+        </el-table-column>
645
+       <el-table-column
646
+          align="center"
647
+          prop="name"
648
+          label="责护"
649
+          width="100"
650
+        >
651
+          <template slot-scope="scope">
652
+            <span v-if="scope.row.is_total ==1">
653
+              {{getAdminUserName(scope.row.execution_staff)}}
654
+            </span> 
655
+          </template>
656
+
657
+        </el-table-column>
658
+
659
+        <el-table-column
660
+          align="center"
661
+          prop="name"
662
+          label="透析模式"
663
+          width="150"
664
+        >
665
+          <template slot-scope="scope">
666
+            <span v-if="scope.row.is_total == 1">
667
+              {{getModeId(scope.row.child)}}
668
+            </span>
669
+          </template>
670
+
671
+        </el-table-column>
672
+        
673
+        <el-table-column
674
+          align="center"
675
+          prop="name"
676
+          v-for="(item,index) in tabHead"
677
+          :key="index"
678
+          :label="item.advice_name"
679
+        >
680
+          <template slot-scope="scope">
681
+            <span v-if="scope.row.is_total ==1">
682
+              <span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
683
+            </span> 
684
+            <span v-if="scope.row.is_total == 0">
685
+                 {{getAllSumCount(item.advice_name)}}
686
+            </span>
687
+          </template>
688
+
689
+        </el-table-column>
690
+        
691
+     
692
+
693
+      </el-table>
694
+      </span>
695
+      <span slot="footer" class="dialog-footer">
696
+        <el-button @click="startdialogVisibleOne = false">取 消</el-button>
697
+        <el-button type="primary" @click="startdialogVisibleOne = false">确 定</el-button>
698
+      </span>
699
+    </el-dialog>
577 700
     </div>
578 701
 
579 702
 
@@ -584,9 +707,10 @@
584 707
 const moment = require('moment')
585 708
 import { getSchedualPatient, GetAllZone,getDialysisAdviceToday } from "@/api/dialysis";
586 709
 import { parseTime } from "@/utils";
710
+import { uParseTime } from '@/utils/tools'
587 711
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
588 712
 import { getPrintTemplate } from "@/api/data";
589
-import { getNewSchedualDoctors,excutionDoctorAdvice,checkNewDoctorAdvice,settleNewDoctorAdvice,excutionDoctorAdviceById } from '@/api/advice'
713
+import { getNewSchedualDoctors,excutionDoctorAdvice,checkNewDoctorAdvice,settleNewDoctorAdvice,excutionDoctorAdviceById,GetMobileScheduleList } from '@/api/advice'
590 714
 import { PostSearch } from '@/api/patient'
591 715
 export default {
592 716
   name: "Patient",
@@ -662,10 +786,14 @@ export default {
662 786
       current_row:{},
663 787
       tableList:[],
664 788
       startdialogVisible:false,
789
+      startdialogVisibleOne:false,
665 790
       schedule_type:0,
666 791
       partion_type:0,
667 792
       druglist:[],
668 793
       config:{},
794
+      tabHead:[],
795
+      tableDataList:[],
796
+      adminUserList:[],
669 797
     };
670 798
   },
671 799
   created() {
@@ -1555,8 +1683,8 @@ export default {
1555 1683
              var list = response.data.data.list
1556 1684
           
1557 1685
              var config = response.data.data.config
1558
-            
1559
-             
1686
+     
1687
+             console.log("dcotor---------------",this.doctorList)
1560 1688
              if(list!=null && list.length > 0){
1561 1689
                for(let i=0;i<list.length;i++){
1562 1690
                 for(let j=0;j<list[i].xt_doctor_advice.length;j++){
@@ -1675,6 +1803,115 @@ export default {
1675 1803
         })
1676 1804
         
1677 1805
       },
1806
+      toStaticOne() {
1807
+         this.tableList = []
1808
+          var params = {
1809
+            schedule_type:this.schedule_type,
1810
+            partion_type:this.partion_type,
1811
+            selected_date: moment(this.time).format('YYYY-MM-DD'),
1812
+          }
1813
+       
1814
+        getDialysisAdviceToday(params).then(response=>{
1815
+          if(response.data.state == 1){
1816
+             var doctorList = []
1817
+             var druglist = response.data.data.drug
1818
+             this.druglist = druglist
1819
+             this.startdialogVisibleOne = true
1820
+             var list = response.data.data.list
1821
+          
1822
+             var config = response.data.data.config
1823
+             this.adminUserList = response.data.data.doctorList
1824
+             
1825
+             if(list!=null && list.length > 0){
1826
+               for(let i=0;i<list.length;i++){
1827
+                for(let j=0;j<list[i].xt_doctor_advice.length;j++){
1828
+                  list[i].xt_doctor_advice[j].mode_id = list[i].mode_id
1829
+                  list[i].xt_doctor_advice[j].zone_name = list[i].device_number.zone.name
1830
+                  list[i].xt_doctor_advice[j].sort = list[i].device_number.zone.sort
1831
+                  doctorList.push(list[i].xt_doctor_advice[j])
1832
+                }
1833
+               }
1834
+             }
1835
+          
1836
+             if(config.is_open!=1){
1837
+              
1838
+
1839
+              if(doctorList!=null && doctorList.length > 0){
1840
+
1841
+                let dataInfo = {}
1842
+                  doctorList.forEach((item, index) => {
1843
+                  item.advice_name = item.advice_name.replace(/\s/g,"")
1844
+                  let { advice_name } = item
1845
+                  if (!dataInfo[advice_name]) {
1846
+                    dataInfo[advice_name] = {
1847
+                      advice_name:item.advice_name,
1848
+                      child: [],
1849
+                      count:0,
1850
+                      execution_staff:item.execution_staff,
1851
+                      specification_name:item.advice_desc +item.drug_spec_unit,
1852
+                      patient_id:item.patient_id,
1853
+                    }
1854
+                  }
1855
+                })
1856
+                let arr = Object.values(dataInfo)
1857
+                for(let i=0;i<arr.length;i++){
1858
+                  for(let j=0;j<doctorList.length;j++){
1859
+                    if(arr[i].advice_name == doctorList[j].advice_name){
1860
+                        arr[i].child.push(doctorList[j])
1861
+                    }
1862
+                  }
1863
+                }
1864
+                this.tabHead = arr
1865
+                console.log("tabHead",this.tabHead)
1866
+              }
1867
+
1868
+              if(doctorList!=null && doctorList.length > 0){
1869
+                
1870
+                let dataInfoOne = {}
1871
+                  doctorList.forEach((item, index) => {
1872
+                  let { execution_staff } = item
1873
+                  if (!dataInfoOne[execution_staff])  {
1874
+                    dataInfoOne[execution_staff] = {
1875
+                      execution_staff:item.execution_staff,
1876
+                      child: [],
1877
+                      count:0,
1878
+                      sort:item.sort,
1879
+                    }
1880
+                  }
1881
+                })
1882
+                let newArr = Object.values(dataInfoOne)
1883
+                if(newArr!=null && newArr.length >0){
1884
+                  for(let i=0;i<newArr.length;i++){
1885
+                    for(let j=0;j<doctorList.length;j++){
1886
+                      if(newArr[i].execution_staff == doctorList[j].execution_staff){
1887
+                         newArr[i].child.push(doctorList[j])
1888
+                      }
1889
+                    }
1890
+                  }
1891
+
1892
+                }
1893
+                var newList = newArr.sort(this.compareList('sort'))
1894
+                if(newList!=null && newList.length >0){
1895
+                  for(let i=0;i<newList.length;i++){
1896
+                    newList[i].is_total = 1
1897
+                  }
1898
+                }
1899
+
1900
+                var obj = {is_total:0,count:0,execution_staff:0,child:[]}
1901
+                newList.push(obj)
1902
+                this.tableDataList = newList
1903
+                console.log("999999999999999999-------",this.tableDataList)
1904
+              }
1905
+
1906
+              
1907
+             
1908
+             }
1909
+                       
1910
+    
1911
+          }
1912
+        })
1913
+        
1914
+      },
1678 1915
     
1679 1916
      getSpecification(id){
1680 1917
         var specification_name = ""
@@ -1727,6 +1964,10 @@ export default {
1727 1964
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
1728 1965
         this.$router.push({path:"/dialysis/doctorAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
1729 1966
       },
1967
+      toPrintTwo(){
1968
+        var schedule_date = moment(this.time).format('YYYY-MM-DD')
1969
+        this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
1970
+      },
1730 1971
       toExportListOne(){
1731 1972
         import('@/vendor/Export2Excel').then(excel => { 
1732 1973
          
@@ -1764,7 +2005,324 @@ export default {
1764 2005
       changePartionType(){
1765 2006
         this.tableList = []
1766 2007
         this.toStatic()
1767
-      }
2008
+      },
2009
+      changeScheduleTypeOne(){
2010
+        this.tableDataList = []
2011
+        this.toStaticOne()
2012
+      },
2013
+      changePartionTypeOne(){
2014
+        this.tableDataList = []
2015
+        this.toStaticOne()
2016
+      },
2017
+      getModeId(val){
2018
+        if(val!=null && val.length > 0){
2019
+          let dataInfo = {}
2020
+            val.forEach((item, index) => {
2021
+            let { patient_id } = item
2022
+            if (!dataInfo[patient_id])  {
2023
+              dataInfo[patient_id] = {
2024
+                patient_id:item.patient_id,
2025
+                child: [],
2026
+                count:0,
2027
+                mode_id:item.mode_id,
2028
+              }
2029
+            }
2030
+        })
2031
+          let newArr = Object.values(dataInfo)
2032
+        
2033
+          if(newArr!=null && newArr.length >0){
2034
+            let dataInfo = {}
2035
+            newArr.forEach((item, index) => {
2036
+              let { mode_id } = item
2037
+              if (!dataInfo[mode_id])  {
2038
+                dataInfo[mode_id] = {
2039
+                  mode_id:item.mode_id,
2040
+                  child: [],
2041
+                  count:0,
2042
+                }
2043
+              }
2044
+           })
2045
+           let hisNewArr = Object.values(dataInfo)
2046
+          
2047
+           if(hisNewArr!=null && hisNewArr.length >0){
2048
+             for(let i=0;i<hisNewArr.length;i++){
2049
+               for(let j=0;j<newArr.length;j++){
2050
+                 if(hisNewArr[i].mode_id == newArr[j].mode_id){
2051
+                    hisNewArr[i].child.push(newArr[j])
2052
+                 }
2053
+               }
2054
+             }
2055
+           }
2056
+         
2057
+           
2058
+           var str = ""
2059
+           for(let i=0;i<hisNewArr.length;i++){
2060
+             if(hisNewArr[i].mode_id == 1){
2061
+                hisNewArr[i].mode_id = "HD"
2062
+             }
2063
+             if(hisNewArr[i].mode_id == 2){
2064
+                hisNewArr[i].mode_id = "HDF"
2065
+             }
2066
+             if(hisNewArr[i].mode_id == 3){
2067
+                hisNewArr[i].mode_id = "HD+HP"
2068
+             }
2069
+             if(hisNewArr[i].mode_id == 4){
2070
+                hisNewArr[i].mode_id = "HP"
2071
+             }
2072
+             if(hisNewArr[i].mode_id == 5){
2073
+                hisNewArr[i].mode_id = "HF"
2074
+             }
2075
+             if(hisNewArr[i].mode_id == 6){
2076
+                hisNewArr[i].mode_id = "SCUF"
2077
+             }
2078
+             if(hisNewArr[i].mode_id == 7){
2079
+                hisNewArr[i].mode_id = "IUF"
2080
+             }
2081
+             if(hisNewArr[i].mode_id == 8){
2082
+                hisNewArr[i].mode_id = "HFHD"
2083
+             }
2084
+             if(hisNewArr[i].mode_id == 9){
2085
+                hisNewArr[i].mode_id = "HFHD+HP"
2086
+             }
2087
+             if(hisNewArr[i].mode_id == 10){
2088
+                hisNewArr[i].mode_id = "PHF"
2089
+             }
2090
+             if(hisNewArr[i].mode_id == 11){
2091
+                hisNewArr[i].mode_id = "HFR"
2092
+             }
2093
+             if(hisNewArr[i].mode_id == 12){
2094
+                hisNewArr[i].mode_id = "HDF+HP"
2095
+             }
2096
+             if(hisNewArr[i].mode_id == 13){
2097
+                hisNewArr[i].mode_id = "CRRT"
2098
+             }
2099
+             if(hisNewArr[i].mode_id == 14){
2100
+                hisNewArr[i].mode_id = "腹水回输"
2101
+             }
2102
+             if(hisNewArr[i].mode_id == 15){
2103
+                hisNewArr[i].mode_id = "IUF+HD"
2104
+             }
2105
+             if(hisNewArr[i].mode_id == 20){
2106
+                hisNewArr[i].mode_id = "UF"
2107
+             }
2108
+             if(hisNewArr[i].mode_id == 21){
2109
+                hisNewArr[i].mode_id = "HD+"
2110
+             }
2111
+             if(hisNewArr[i].mode_id == 22){
2112
+                hisNewArr[i].mode_id = "血浆胆红素吸附+HDF"
2113
+             }
2114
+             if(hisNewArr[i].mode_id == 23){
2115
+                hisNewArr[i].mode_id = "血浆胆红素吸附"
2116
+             }
2117
+             if(hisNewArr[i].mode_id == 24){
2118
+                hisNewArr[i].mode_id = "I-HDF"
2119
+             }
2120
+             if(hisNewArr[i].mode_id == 25){
2121
+                hisNewArr[i].mode_id = "HD高通"
2122
+             }
2123
+             if(hisNewArr[i].mode_id == 26){
2124
+                hisNewArr[i].mode_id = "CVVH"
2125
+             }
2126
+             if(hisNewArr[i].mode_id == 27){
2127
+                hisNewArr[i].mode_id = "CVVHD"
2128
+             }
2129
+             if(hisNewArr[i].mode_id == 28){
2130
+                hisNewArr[i].mode_id = "CVVHDF"
2131
+             }
2132
+             if(hisNewArr[i].mode_id == 29){
2133
+                hisNewArr[i].mode_id = "PE"
2134
+             }
2135
+             if(hisNewArr[i].mode_id == 30){
2136
+                hisNewArr[i].mode_id = "血浆胆红素吸附+HP"
2137
+             }
2138
+             if(hisNewArr[i].mode_id == 31){
2139
+                hisNewArr[i].mode_id = "HPD"
2140
+             }
2141
+             if(hisNewArr[i].mode_id == 32){
2142
+                hisNewArr[i].mode_id = "HDP"
2143
+             }
2144
+             str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n" 
2145
+           }
2146
+          
2147
+           return str
2148
+         }
2149
+
2150
+          // return newArr.length
2151
+        }
2152
+      },
2153
+      getDrugCount(val,advice_name){
2154
+        
2155
+        if(val!=null){
2156
+          for(let i=0;i<val.length;i++){
2157
+           val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
2158
+          }
2159
+        }
2160
+       
2161
+        if(val!=null && val.length >0){
2162
+            let dataInfo = {}
2163
+            val.forEach((item, index) => {
2164
+            
2165
+            let { advice_name } = item
2166
+            if (!dataInfo[advice_name])  {
2167
+              dataInfo[advice_name] = {
2168
+                advice_name:item.advice_name,
2169
+                child: [],
2170
+                count:0,
2171
+              }
2172
+            }
2173
+          })
2174
+       
2175
+          let newArr = Object.values(dataInfo) 
2176
+         
2177
+         
2178
+          if(newArr!=null && newArr.length >0){
2179
+            for(let i=0;i<newArr.length;i++){
2180
+              for(let j=0;j<val.length;j++){
2181
+                if(newArr[i].advice_name == val[j].advice_name){
2182
+                   newArr[i].child.push(val[j])
2183
+                }
2184
+              }
2185
+            }
2186
+          }
2187
+          
2188
+          var total = 0
2189
+          var newHisArr =[]
2190
+          if(newArr!=null && newArr.length >0){
2191
+            for(let i=0;i<newArr.length;i++){
2192
+               if(newArr[i].advice_name == advice_name){
2193
+                  newHisArr.push(newArr[i])
2194
+               }
2195
+            }
2196
+          }
2197
+
2198
+          if(newHisArr!=null && newHisArr.length>0){
2199
+            
2200
+            for(let i=0;i<newHisArr.length;i++){
2201
+              for(let j=0;j<newHisArr[i].child.length;j++){
2202
+                total += parseInt(newHisArr[i].child[j].prescribing_number)
2203
+              }
2204
+            }
2205
+          }
2206
+           
2207
+          return total
2208
+        }
2209
+
2210
+      },
2211
+      getAdminUserName(id){
2212
+        var name = ""
2213
+        for(let i=0;i<this.adminUserList.length;i++){
2214
+          if(id == this.adminUserList[i].id){
2215
+             name = this.adminUserList[i].name
2216
+          }
2217
+        }
2218
+        return name
2219
+      },
2220
+      getZoneName(val){
2221
+        var zone_name = ""
2222
+        if(val!=null && val.length >0){
2223
+          zone_name = val[0].zone_name
2224
+        }
2225
+        return zone_name
2226
+      },
2227
+      compareList: function (k) {
2228
+        return function (a, b) {
2229
+          var M = a[k]
2230
+          var N = b[k]
2231
+          return M - N // 从低向高排
2232
+          // return N - M;   // 从高向低排
2233
+        }
2234
+      },
2235
+      getSummaries(param) {
2236
+        const { columns, data } = param;
2237
+        const sums = [];
2238
+        columns.forEach((column, index) => {
2239
+          console.log("index---------",index)
2240
+          if (index === 0) {
2241
+            sums[index] = '总数';
2242
+            return;
2243
+          }
2244
+          if(index > 2){
2245
+            const values = data.map(item => item[column.property]);
2246
+            console.log("data0----------------",data)
2247
+           
2248
+          }
2249
+          
2250
+        });
2251
+
2252
+        return sums;
2253
+      },
2254
+
2255
+      getAllSumCount(advice_name){
2256
+       
2257
+        var hisNewArr =[]
2258
+        if(this.tabHead.length!=null && this.tabHead.length >0){
2259
+          for(let i=0;i<this.tabHead.length;i++){
2260
+            if(this.tabHead[i].advice_name == advice_name){
2261
+              hisNewArr.push(this.tabHead[i])
2262
+            }
2263
+          }
2264
+        }
2265
+        
2266
+        var total = 0
2267
+        if(hisNewArr!=null && hisNewArr.length > 0){
2268
+          for(let i=0;i<hisNewArr.length;i++){
2269
+          for(let j=0;j<hisNewArr[i].child.length;j++){
2270
+              total += parseInt(hisNewArr[i].child[j].prescribing_number)
2271
+          }
2272
+          }
2273
+        }
2274
+        if (total > 0) {
2275
+          return total
2276
+        }else{
2277
+          return 0
2278
+        }
2279
+
2280
+    },
2281
+    getTimeSix(val) {
2282
+        if(val == ""){
2283
+        return ""
2284
+        }else {
2285
+        return uParseTime(val, '{y}-{m}-{d}')
2286
+        }
2287
+    },
2288
+    toJiao(){
2289
+      GetMobileScheduleList().then(response=>{
2290
+        if(response.data.state == 1){
2291
+          var schedule = response.data.data.schedule
2292
+          console.log("schedule---------------",schedule)
2293
+          var arr = []
2294
+          for(let i=0;i<schedule.length;i++){
2295
+            if(schedule[i].monitor_record.ultrafiltration_volume!=schedule[i].xt_assesment_after_dislysis.actual_ultrafiltration){
2296
+              arr.push(schedule[i])
2297
+            }
2298
+          }
2299
+        
2300
+
2301
+          import('@/vendor/Export2Excel').then(excel => { 
2302
+         
2303
+         if(arr!=null && arr.length > 0){
2304
+           for(let i=0;i<arr.length;i++){
2305
+             arr[i].patient_name = arr[i].patient.name
2306
+             arr[i].target_ultrafiltration = arr[i].dialysis_prescription.target_ultrafiltration
2307
+             arr[i].ultrafiltration_volume = arr[i].monitor_record.ultrafiltration_volume
2308
+             arr[i].actual_ultrafiltration = arr[i].xt_assesment_after_dislysis.actual_ultrafiltration
2309
+             arr[i].start_time =  this.getTimeSix(arr[i].schedule_date)
2310
+           }
2311
+         }
2312
+         const tHeader = ['序号','日期','患者姓名','目标超滤量','监测超滤量','实际超滤量']
2313
+         const filterVal = ['index','start_time','patient_name','target_ultrafiltration','ultrafiltration_volume','actual_ultrafiltration']
2314
+
2315
+         const data = this.formatJson(filterVal, arr)
2316
+         excel.export_json_to_excel({
2317
+           header: tHeader,
2318
+           data,
2319
+           filename: '监测数据统计'
2320
+          })
2321
+         })  
2322
+        } 
2323
+      })
2324
+    }
2325
+    
1768 2326
   },
1769 2327
   components: {
1770 2328
     BreadCrumb
@@ -1842,6 +2400,10 @@ export default {
1842 2400
     }
1843 2401
   }
1844 2402
 
2403
+  
2404
+  .el-table td .cell{
2405
+    white-space: pre-wrap;
2406
+  }
1845 2407
 }
1846 2408
 .el-table td,
1847 2409
 .el-table th.is-leaf,
@@ -1862,4 +2424,5 @@ export default {
1862 2424
   width: 20px;
1863 2425
   height: 20px;
1864 2426
 }
2427
+
1865 2428
 </style>

+ 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;{{

+ 11 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue View File

@@ -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>

+ 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

@@ -1390,7 +1390,7 @@ export default {
1390 1390
       this.$nextTick(() => {
1391 1391
         this.$refs.table.doLayout();
1392 1392
       });
1393
-    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){
1393
+    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){
1394 1394
 
1395 1395
       //灌流 HD+HP
1396 1396
       var Mon_M = 0
@@ -1646,38 +1646,38 @@ export default {
1646 1646
         }
1647 1647
       }
1648 1648
 
1649
-      sums[2] = "总人数:"+ sums[2]  +"人"+ " " + "灌流:"+Mon_M +"人" +" "+ "血滤:" + Mon_M_One +"人"
1650
-      sums[3] = "总人数:"+ sums[3]  +"人"+ " " + "灌流:"+Mon_A +"人" +" "+ "血滤:" + Mon_A_One +"人" 
1651
-      sums[4] = "总人数:"+ sums[4]  +"人"+ " " + "灌流:"+Mon_N +"人" +" "+ "血滤:" + Mon_N_One +"人"  
1649
+      sums[2] = ("总人数:"+ sums[2]+"人").replace(/\\r\\n/g, '<br/>')+""+ "\n" + "HD+HP:"+Mon_M +"人" +"\n"+ "HDF:" + Mon_M_One +"人"
1650
+      sums[3] = ("总人数:"+ sums[3]+"人").replace(/\\r\\n/g, '<br/>')+" "+"\n"+ "HD+HP:"+Mon_A +"人" +"\n"+ "HDF:" + Mon_A_One +"人" 
1651
+      sums[4] = ("总人数:"+ sums[4]+"人").replace(/\\r\\n/g, '<br/>')+" "+"\n"+ "HD+HP:"+Mon_N +"人" +"\n"+ "HDF:" + Mon_N_One +"人"  
1652 1652
 
1653
-      sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "灌流:"+Tue_M +"人" +" "+ "血滤:" + Tue_M_One +"人"  
1654
-      sums[6] = "总人数:"+ sums[6]  +"人"+ " " + "灌流:"+Tue_A +"人" +" "+ "血滤:" + Tue_A_One +"人"  
1655
-      sums[7] = "总人数:"+ sums[7]  +"人"+ " " + "灌流:"+Tue_N +"人" +" "+ "血滤:" + Tue_N_One +"人"  
1653
+      sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "\n"+ "HD+HP:"+Tue_M +"人" +" "+ "HDF:" + Tue_M_One +"人"  
1654
+      sums[6] = "总人数:"+ sums[6]  +"人"+ " " +'\n' + "HD+HP:"+Tue_A +"人" +" "+ "HDF:" + Tue_A_One +"人"  
1655
+      sums[7] = "总人数:"+ sums[7]  +"人"+ " " +'\n' + "HD+HP:"+Tue_N +"人" +" "+ "HDF:" + Tue_N_One +"人"  
1656 1656
 
1657
-      sums[8] = "总人数:"+ sums[8]  +"人"+ " " + "灌流:"+Wed_M +"人" +" "+ "血滤:" + Wed_M_One +"人"  
1658
-      sums[9] = "总人数:"+ sums[9]  +"人"+ " " + "灌流:"+ Wed_A +"人" +" "+ "血滤:" + Wed_A_One +"人"  
1659
-      sums[10] = "总人数:"+ sums[10]  +"人"+ " " + "灌流:"+Wed_N +"人" +" "+ "血滤:" +Wed_N_One +"人"  
1657
+      sums[8] = "总人数:"+ sums[8]  +"人"+ " " + '\n'+ "HD+HP:"+Wed_M +"人" +" "+ "HDF:" + Wed_M_One +"人"  
1658
+      sums[9] = "总人数:"+ sums[9]  +"人"+ " " +'\n' + "HD+HP:"+ Wed_A +"人" +" "+ "HDF:" + Wed_A_One +"人"  
1659
+      sums[10] = "总人数:"+ sums[10]  +"人"+ " " +'\n'+"HD+HP:"+Wed_N +"人" +" "+ "HDF:" +Wed_N_One +"人"  
1660 1660
 
1661
-      sums[11] = "总人数:"+ sums[11]  +"人"+ " " + "灌流:"+Thurs_M +"人" +" "+ "血滤:" + Thurs_M_One +"人"  
1662
-      sums[12] = "总人数:"+ sums[12]  +"人"+ " " + "灌流:"+Thurs_A +"人" +" "+ "血滤:" + Thurs_A_One +"人"  
1663
-      sums[13] = "总人数:"+ sums[13]  +"人"+ " " + "灌流:"+Thurs_N +"人" +" "+ "血滤:" + Thurs_N_One +"人"  
1661
+      sums[11] = "总人数:"+ sums[11]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_M +"人" +" "+ "HDF:" + Thurs_M_One +"人"  
1662
+      sums[12] = "总人数:"+ sums[12]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_A +"人" +" "+ "HDF:" + Thurs_A_One +"人"  
1663
+      sums[13] = "总人数:"+ sums[13]  +"人"+ " " +'\n' + "HD+HP:"+Thurs_N +"人" +" "+ "HDF:" + Thurs_N_One +"人"  
1664 1664
 
1665
-      sums[14] = "总人数:"+ sums[14]  +"人"+ " " + "灌流:"+Fri_M +"人" +" "+ "血滤:" + Fri_M_One +"人"  
1666
-      sums[15] = "总人数:"+ sums[15]  +"人"+ " " + "灌流:"+Fri_A +"人" +" "+ "血滤:" + Fri_A_One +"人"  
1667
-      sums[16] = "总人数:"+ sums[16]  +"人"+ " " + "灌流:"+Fri_N +"人" +" "+ "血滤:" + Fri_N_One +"人"  
1665
+      sums[14] = "总人数:"+ sums[14]  +"人"+ " " +'\n' + "HD+HP:"+Fri_M +"人" +" "+ "HDF:" + Fri_M_One +"人"  
1666
+      sums[15] = "总人数:"+ sums[15]  +"人"+ " " + '\n' +"HD+HP:"+Fri_A +"人" +" "+ "HDF:" + Fri_A_One +"人"  
1667
+      sums[16] = "总人数:"+ sums[16]  +"人"+ " " +'\n' + "HD+HP:"+Fri_N +"人" +" "+ "HDF:" + Fri_N_One +"人"  
1668 1668
 
1669
-      sums[17] = "总人数:"+ sums[17]  +"人"+ " " + "灌流:"+Sat_M +"人" +" "+ "血滤:" + Sat_M_One +"人"  
1670
-      sums[18] = "总人数:"+ sums[18]  +"人"+ " " + "灌流:"+Sat_A +"人" +" "+ "血滤:" + Sat_A_One +"人"  
1671
-      sums[19] = "总人数:"+ sums[19]  +"人"+ " " + "灌流:"+Sat_N +"人" +" "+ "血滤:" + Sat_N_One +"人"  
1669
+      sums[17] = "总人数:"+ sums[17]  +"人"+ " " +'\n' + "HD+HP:"+Sat_M +"人" +" "+ "HDF:" + Sat_M_One +"人"  
1670
+      sums[18] = "总人数:"+ sums[18]  +"人"+ " " + '\n' +"HD+HP:"+Sat_A +"人" +" "+ "HDF:" + Sat_A_One +"人"  
1671
+      sums[19] = "总人数:"+ sums[19]  +"人"+ " " +'\n' + "HD+HP:"+Sat_N +"人" +" "+ "HDF:" + Sat_N_One +"人"  
1672 1672
 
1673
-      sums[20] = "总人数:"+ sums[20]  +"人"+ " " + "灌流:"+Sun_M +"人" +" "+ "血滤:" + Sun_M_One +"人"  
1674
-      sums[21] = "总人数:"+ sums[21]  +"人"+ " " + "灌流:"+Sun_A +"人" +" "+ "血滤:" + Sun_A_One +"人"  
1675
-      sums[22] = "总人数:"+ sums[22]  +"人"+ " " + "灌流:"+Sun_N +"人" +" "+ "血滤:" + Sun_N_One +"人"  
1673
+      sums[20] = "总人数:"+ sums[20]  +"人"+ " " +'\n' + "HD+HP:"+Sun_M +"人" +" "+ "HDF:" + Sun_M_One +"人"  
1674
+      sums[21] = "总人数:"+ sums[21]  +"人"+ " " + '\n'+"HD+HP:"+Sun_A +"人" +" "+ "HDF:" + Sun_A_One +"人"  
1675
+      sums[22] = "总人数:"+ sums[22]  +"人"+ " " + '\n'+"HD+HP:"+Sun_N +"人" +" "+ "HDF:" + Sun_N_One +"人"  
1676 1676
       return sums;
1677 1677
 
1678 1678
       }
1679 1679
       
1680
-      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){
1680
+      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){
1681 1681
         return sums;
1682 1682
       }
1683 1683
     },
@@ -3165,4 +3165,7 @@ export default {
3165 3165
 .backPurple{
3166 3166
   color: #08c3df !important;
3167 3167
 }
3168
+.el-table .cell{
3169
+  white-space: pre-wrap;
3170
+}
3168 3171
 </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
         }