Browse Source

长沙南雅打印单问题修改

28169 2 years ago
parent
commit
f183564de7

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

@@ -40,7 +40,7 @@
40 40
         <li v-if="isShow('实际置换量')">
41 41
           <label>实际置换量 : </label>
42 42
           <span class="content">{{ actual_displacement }}</span>
43
-          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id != 40">ml</span>
43
+          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21">ml</span>
44 44
           <span class="unit" v-else>L</span>
45 45
         </li>
46 46
         <li v-if="isShow('压迫后内瘘震颤')">

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

@@ -982,7 +982,7 @@
982 982
               </el-row>
983 983
 
984 984
               <el-row :gutter="20">
985
-                    <el-col :span="8">
985
+                    <el-col :span="8" v-if="isShows('处方钠')">
986 986
                         <el-form-item label="处方钠: ">
987 987
                             <el-input
988 988
                                   
@@ -991,7 +991,7 @@
991 991
                             ></el-input>
992 992
                         </el-form-item>
993 993
                     </el-col>
994
-                    <el-col :span="8">
994
+                    <el-col :span="8"  v-if="isShows('开始钠')">
995 995
                         <el-form-item label="开始钠: ">
996 996
                             <el-input
997 997
                                  
@@ -1000,7 +1000,7 @@
1000 1000
                             ></el-input>
1001 1001
                         </el-form-item>
1002 1002
                     </el-col>
1003
-                    <el-col :span="8">
1003
+                    <el-col :span="8" v-if="isShows('钠曲线')">
1004 1004
                         <el-form-item label="钠曲线: ">
1005 1005
                             <el-input
1006 1006
                                   
@@ -1012,8 +1012,8 @@
1012 1012
                 </el-row>
1013 1013
 
1014 1014
               <el-row :gutter="20">
1015
-                    <el-col :span="24">
1016
-                        <el-form-item label="病情处理: ">
1015
+                    <el-col :span="24"  v-if="isShows('病情处理')">
1016
+                        <el-form-item  label="病情处理: ">
1017 1017
                             <el-input
1018 1018
                                     type="textarea"
1019 1019
                                     v-model="dialysisPrescription.treatment_remark"

+ 12 - 8
src/xt_pages/dialysis/doctorAdvicePrintOne.vue View File

@@ -16,15 +16,14 @@
16 16
                 <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
17 17
                 <table class="table dialysisTable" border="1" cellspacing="0" cellpadding="0">
18 18
                     <tr>
19
-                    <th width="40px">姓名</th>
20
-                   
19
+                    <th width="20px">姓名</th>
21 20
                     <th width="100px">医嘱内容</th>
22
-                    
21
+                     <th width="50px">执行护士</th>
23 22
                     </tr>
24 23
                     <template v-for="(schedules, zone_name, index) in scheduleMap">
25 24
                     <tr :key="index">
26 25
                         <td>{{ zone_name }}</td>
27
-                       
26
+                        <td></td>
28 27
                         <td></td>
29 28
                        
30 29
                     </tr>
@@ -75,9 +74,11 @@
75 74
                                 {{ advice.prescribing_number
76 75
                                 }}{{ advice.prescribing_number_unit }}
77 76
                             </span>
78
-                          
77
+                            <span>{{ advice.delivery_way }}</span>
78
+                            <span>{{ advice.execution_frequency }}</span>
79 79
                            
80 80
                             </td>
81
+                            <td>{{ getName(advice.execution_staff) }}</td>
81 82
                            
82 83
                         </tr>
83 84
                         </template>
@@ -95,14 +96,15 @@
95 96
                 <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
96 97
                 <table class="table dialysisTable" border="1" cellspacing="0" cellpadding="0">
97 98
                     <tr>
98
-                    <th width="40px">姓名</th>
99
+                    <th width="20px">姓名</th>
99 100
                     <th width="100px">医嘱内容</th>
100
-                   
101
+                    <th width="20px">执行护士</th>
101 102
                     </tr>
102 103
                     <template v-for="(schedules, zone_name, index) in scheduleMap">
103 104
                     <tr :key="index">
104 105
                         <td>{{ zone_name }}</td>
105 106
                         <td></td>
107
+                        <td></td>
106 108
                     </tr>
107 109
                     <template v-for="schedule in schedules">
108 110
                         <template v-for="(group, group_index) in schedule.new_advice">
@@ -158,9 +160,11 @@
158 160
                                 {{ advice.prescribing_number
159 161
                                 }}{{ advice.prescribing_number_unit }}
160 162
                             </span>
163
+                            <span>{{ advice.delivery_way }}</span>
164
+                            <span>{{ advice.execution_frequency }}</span>
161 165
                            
162 166
                             </td>
163
-                          
167
+                            <td>{{ getName(advice.execution_staff) }}</td>
164 168
                         </tr>
165 169
                         </template>
166 170
                     </template>

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

@@ -1478,7 +1478,7 @@ export default {
1478 1478
        this.requestSchedualDoctors(this.time);
1479 1479
      },
1480 1480
     handleRowClick (row) {
1481
-     console.log("row232323232",row)
1481
+    
1482 1482
     },
1483 1483
     tableRowClassName({row, rowIndex}) {
1484 1484
         row.index = rowIndex
@@ -1488,7 +1488,7 @@ export default {
1488 1488
        
1489 1489
       },
1490 1490
     handleCurrentChangeList(row){
1491
-      console.log("row233232232332",row)
1491
+     
1492 1492
       this.selecting_schs.push(row)
1493 1493
       this.current_row= row
1494 1494
       this.is_status = 2

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

@@ -1097,7 +1097,7 @@
1097 1097
                               </div>
1098 1098
                               mmol/L
1099 1099
                             </div>
1100
-                            <div class="inline_block" style="margin-left: 10px">
1100
+                            <!-- <div class="inline_block" style="margin-left: 10px">
1101 1101
                              透析液流量:
1102 1102
                               <div
1103 1103
                                 class="under_line"
@@ -1110,7 +1110,7 @@
1110 1110
                                 }}
1111 1111
                               </div>
1112 1112
                               ml/min
1113
-                            </div>
1113
+                            </div> -->
1114 1114
                           </div>
1115 1115
                           <div
1116 1116
                             class="row"

+ 292 - 2
src/xt_pages/workforce/components/editTableData.vue View File

@@ -2257,6 +2257,7 @@ export default {
2257 2257
         name: null,
2258 2258
       },
2259 2259
       cellflag: 0,
2260
+      schedulesGroup:[],
2260 2261
     };
2261 2262
   },
2262 2263
 
@@ -3943,8 +3944,296 @@ export default {
3943 3944
       this.$nextTick(() => {
3944 3945
         this.$refs.table.doLayout();
3945 3946
       });
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){
3949
+
3950
+        //灌流 HD+HP
3951
+        var Mon_M = 0
3952
+        var Mon_A = 0
3953
+        var Mon_N = 0
3954
+
3955
+        var Tue_M =0
3956
+        var Tue_A = 0
3957
+        var Tue_N = 0
3958
+
3959
+        var Wed_M = 0
3960
+        var Wed_A = 0
3961
+        var Wed_N = 0
3962
+
3963
+        var Thurs_M = 0
3964
+        var Thurs_A = 0
3965
+        var Thurs_N = 0
3966
+
3967
+        var Fri_M = 0
3968
+        var Fri_A = 0
3969
+        var Fri_N = 0
3970
+
3971
+        var Sat_M = 0
3972
+        var Sat_A = 0
3973
+        var Sat_N = 0
3974
+
3975
+        var Sun_M = 0
3976
+        var Sun_A = 0
3977
+        var Sun_N = 0
3978
+
3979
+        //血滤 HDF
3980
+        var Mon_M_One = 0
3981
+        var Mon_A_One = 0
3982
+        var Mon_N_One = 0
3983
+
3984
+        var Tue_M_One =0
3985
+        var Tue_A_One = 0
3986
+        var Tue_N_One = 0
3987
+
3988
+        var Wed_M_One = 0
3989
+        var Wed_A_One = 0
3990
+        var Wed_N_One = 0
3991
+
3992
+        var Thurs_M_One = 0
3993
+        var Thurs_A_One = 0
3994
+        var Thurs_N_One = 0
3995
+
3996
+        var Fri_M_One = 0
3997
+        var Fri_A_One = 0
3998
+        var Fri_N_One = 0
3999
+
4000
+        var Sat_M_One = 0
4001
+        var Sat_A_One = 0
4002
+        var Sat_N_One = 0
4003
+
4004
+        var Sun_M_One = 0
4005
+        var Sun_A_One = 0
4006
+        var Sun_N_One= 0
4007
+
4008
+        if(this.schedulesGroup!=null && this.schedulesGroup.length >0){
4009
+          
4010
+          for(let i=0;i<this.schedulesGroup.length;i++){
4011
+            //灌流
4012
+            //礼拜一上午
4013
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4014
+              Mon_M = this.schedulesGroup[i].Count
4015
+            }
4016
+            //礼拜一下午
4017
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
4018
+              Mon_A = this.schedulesGroup[i].Count
4019
+            }
4020
+            //礼拜一晚上
4021
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4022
+              Mon_N = this.schedulesGroup[i].Count
4023
+            }
4024
+
4025
+            //礼拜二上午
4026
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4027
+              Tue_M = this.schedulesGroup[i].Count
4028
+            }
4029
+            //礼拜二下午
4030
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 2&& this.schedulesGroup[i].mode_id == 3){
4031
+              Tue_A = this.schedulesGroup[i].Count
4032
+            }
4033
+            //礼拜二晚上
4034
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4035
+              Tue_N = this.schedulesGroup[i].Count
4036
+            }
4037
+
3946 4038
 
3947
-      return sums;
4039
+            //礼拜三上午
4040
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4041
+              Wed_M = this.schedulesGroup[i].Count
4042
+            }
4043
+            //礼拜三下午
4044
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
4045
+              Wed_A = this.schedulesGroup[i].Count
4046
+            }
4047
+            //礼拜三晚上
4048
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4049
+              Wed_N = this.schedulesGroup[i].Count
4050
+            }
4051
+
4052
+            //礼拜四上午
4053
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4054
+              Thurs_M = this.schedulesGroup[i].Count
4055
+            }
4056
+            //礼拜四下午
4057
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
4058
+              Thurs_A = this.schedulesGroup[i].Count
4059
+            }
4060
+            //礼拜四晚上
4061
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4062
+              Thurs_N = this.schedulesGroup[i].Count
4063
+            }
4064
+
4065
+            //礼拜五上午
4066
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4067
+              Fri_M = this.schedulesGroup[i].Count
4068
+            }
4069
+            //礼拜五下午
4070
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
4071
+              Fri_A = this.schedulesGroup[i].Count
4072
+            }
4073
+            //礼拜五晚上
4074
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4075
+              Fri_N = this.schedulesGroup[i].Count
4076
+            }
4077
+
4078
+
4079
+            //礼拜六上午
4080
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 1  && this.schedulesGroup[i].mode_id == 3){
4081
+              Sat_M = this.schedulesGroup[i].Count
4082
+            }
4083
+            //礼拜六下午
4084
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 2  && this.schedulesGroup[i].mode_id == 3){
4085
+              Sat_A = this.schedulesGroup[i].Count
4086
+            }
4087
+            //礼拜六晚上
4088
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 3  && this.schedulesGroup[i].mode_id == 3){
4089
+              Sat_N  = this.schedulesGroup[i].Count
4090
+            }
4091
+
4092
+            //礼拜日上午
4093
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 1  && this.schedulesGroup[i].mode_id == 3){
4094
+              Sun_M = this.schedulesGroup[i].Count
4095
+            }
4096
+            //礼拜日下午
4097
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 2  && this.schedulesGroup[i].mode_id == 3){
4098
+              Sun_A = this.schedulesGroup[i].Count
4099
+            }
4100
+            //礼拜日晚上
4101
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3  && this.schedulesGroup[i].mode_id == 3){
4102
+              Sun_N = this.schedulesGroup[i].Count
4103
+            }
4104
+
4105
+
4106
+            //血滤
4107
+              //礼拜一上午
4108
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4109
+              Mon_M_One = this.schedulesGroup[i].Count
4110
+            }
4111
+            //礼拜一下午
4112
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4113
+              Mon_A_One = this.schedulesGroup[i].Count
4114
+            }
4115
+            //礼拜一晚上
4116
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4117
+              Mon_N_One = this.schedulesGroup[i].Count
4118
+            }
4119
+
4120
+            //礼拜二上午
4121
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4122
+              Tue_M_One = this.schedulesGroup[i].Count
4123
+            }
4124
+            //礼拜二下午
4125
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 2&& this.schedulesGroup[i].mode_id == 2){
4126
+              Tue_A_One = this.schedulesGroup[i].Count
4127
+            }
4128
+            //礼拜二晚上
4129
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4130
+              Tue_N_One = this.schedulesGroup[i].Count
4131
+            }
4132
+
4133
+
4134
+            //礼拜三上午
4135
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4136
+              Wed_M_One = this.schedulesGroup[i].Count
4137
+            }
4138
+            //礼拜三下午
4139
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4140
+              Wed_A_One = this.schedulesGroup[i].Count
4141
+            }
4142
+            //礼拜三晚上
4143
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4144
+              Wed_N_One = this.schedulesGroup[i].Count
4145
+            }
4146
+
4147
+            //礼拜四上午
4148
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4149
+              Thurs_M_One = this.schedulesGroup[i].Count
4150
+              
4151
+            }
4152
+            //礼拜四下午
4153
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4154
+              Thurs_A_One = this.schedulesGroup[i].Count
4155
+            }
4156
+            //礼拜四晚上
4157
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4158
+              Thurs_N_One = this.schedulesGroup[i].Count
4159
+            }
4160
+
4161
+            //礼拜五上午
4162
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4163
+              Fri_M_One = this.schedulesGroup[i].Count
4164
+            }
4165
+            //礼拜五下午
4166
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4167
+              Fri_A_One = this.schedulesGroup[i].Count
4168
+            }
4169
+            //礼拜五晚上
4170
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4171
+              Fri_N_One = this.schedulesGroup[i].Count
4172
+            }
4173
+
4174
+
4175
+            //礼拜六上午
4176
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4177
+              Sat_M_One = this.schedulesGroup[i].Count
4178
+            }
4179
+            //礼拜六下午
4180
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4181
+              Sat_A_One = this.schedulesGroup[i].Count
4182
+            }
4183
+            //礼拜六晚上
4184
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4185
+             Sat_N_One  = this.schedulesGroup[i].Count
4186
+            }
4187
+
4188
+            //礼拜日上午
4189
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4190
+              Sun_M_One = this.schedulesGroup[i].Count
4191
+            }
4192
+            //礼拜日下午
4193
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4194
+              Sun_A_One = this.schedulesGroup[i].Count
4195
+            }
4196
+            //礼拜日晚上
4197
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4198
+              Sun_N_One = this.schedulesGroup[i].Count
4199
+            }
4200
+
4201
+        }
4202
+      }
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 +"人"  
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 +"人"  
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 +"人"  
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 +"人"  
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 +"人"  
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 +"人"  
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 +"人"  
4231
+            return sums;
4232
+        }
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){
4235
+        return sums;
4236
+      }
3948 4237
     },
3949 4238
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
3950 4239
       var that = this;
@@ -4013,7 +4302,8 @@ export default {
4013 4302
           this.weekDays = response.data.data.days;
4014 4303
           this.toDay = response.data.data.today;
4015 4304
           var theSchedules = response.data.data.schdules;
4016
-
4305
+          var schedulesGroup = response.data.data.schedulesGroup
4306
+          this.schedulesGroup = schedulesGroup
4017 4307
           var that = this;
4018 4308
 
4019 4309
           this.scheduleZone.forEach(function (zone, index) {

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

@@ -683,7 +683,7 @@ export default {
683 683
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
684 684
           })
685 685
           }
686
-        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340){
686
+        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340 && this.org_id!=0){
687 687
           var zone = this.zone
688 688
         var newArr = []
689 689
         for(let i=0;i<this.zoneList.length;i++){

+ 400 - 30
src/xt_pages/workforce/components/tableData.vue View File

@@ -387,7 +387,7 @@
387 387
           ></schedule-item>
388 388
         </el-table-column>
389 389
       </el-table-column>
390
-
390
+    
391 391
 <!--      <el-table-column-->
392 392
 <!--        prop="total"-->
393 393
 <!--        label="总数"-->
@@ -870,7 +870,7 @@ export default {
870 870
       isShowShangWu:true,
871 871
       isShowXiaWu:true,
872 872
       isShowWanShang:true,
873
-
873
+      schedulesGroup:[]
874 874
 
875 875
     };
876 876
   },
@@ -895,7 +895,7 @@ export default {
895 895
         this.isShowXiaWu = true
896 896
         this.isShowWanShang = true
897 897
       }
898
-      console.log(this.source_scheduleZone)
898
+      // console.log(this.source_scheduleZone)
899 899
       //删除对应数据
900 900
       var list = this.source_scheduleZone
901 901
       var list1 = this.source_scheduleZone
@@ -968,9 +968,9 @@ export default {
968 968
 
969 969
 
970 970
     }, week_type:function () {
971
-      console.log(this.week_type)
972
-      console.log(this.schedule_type)
973
-      console.log(this.scheduleZone)
971
+      // console.log(this.week_type)
972
+      // console.log(this.schedule_type)
973
+      // console.log(this.scheduleZone)
974 974
 
975 975
       this.isShowOne = false
976 976
       this.isShowTwo = false
@@ -1064,7 +1064,7 @@ export default {
1064 1064
           var partitions = response.data.data.partitions
1065 1065
           console.log("partitions",partitions)
1066 1066
           this.theWeek.thisWeek = response.data.data.theWeek
1067
-          console.log("这个周",response.data.data.theWeek)
1067
+          
1068 1068
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
1069 1069
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
1070 1070
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
@@ -1086,6 +1086,7 @@ export default {
1086 1086
                   cut: jihao.number,
1087 1087
                   jihao_id: jihao.id,
1088 1088
                   sort:jihao.sort,
1089
+
1089 1090
                   Mon_M: {
1090 1091
                     schedule_id: 0,
1091 1092
                     mode_id: 0,
@@ -1093,6 +1094,8 @@ export default {
1093 1094
                     patient_id: 0,
1094 1095
                     patient: '',
1095 1096
                     dialysis_machine_name:'',
1097
+                    schedule_date:"",
1098
+                    Count:0,
1096 1099
                   },
1097 1100
                   Mon_A: {
1098 1101
                     schedule_id: 0,
@@ -1101,6 +1104,8 @@ export default {
1101 1104
                     patient_id: 0,
1102 1105
                     patient: '',
1103 1106
                     dialysis_machine_name:'',
1107
+                    schedule_date:"",
1108
+                    Count:0,
1104 1109
                   },
1105 1110
                   Mon_N: {
1106 1111
                     schedule_id: 0,
@@ -1109,6 +1114,8 @@ export default {
1109 1114
                     patient_id: 0,
1110 1115
                     patient: '',
1111 1116
                     dialysis_machine_name:'',
1117
+                    schedule_date:"",
1118
+                    Count:0,
1112 1119
                   },
1113 1120
                   Tue_M: {
1114 1121
                     schedule_id: 0,
@@ -1117,6 +1124,8 @@ export default {
1117 1124
                     patient_id: 0,
1118 1125
                     patient: '',
1119 1126
                     dialysis_machine_name:'',
1127
+                    schedule_date:"",
1128
+                    Count:0,
1120 1129
                   },
1121 1130
                   Tue_A: {
1122 1131
                     schedule_id: 0,
@@ -1125,6 +1134,8 @@ export default {
1125 1134
                     patient_id: 0,
1126 1135
                     patient: '',
1127 1136
                     dialysis_machine_name:'',
1137
+                    schedule_date:"",
1138
+                    Count:0,
1128 1139
                   },
1129 1140
                   Tue_N: {
1130 1141
                     schedule_id: 0,
@@ -1133,6 +1144,8 @@ export default {
1133 1144
                     patient_id: 0,
1134 1145
                     patient: '',
1135 1146
                     dialysis_machine_name:'',
1147
+                    schedule_date:"",
1148
+                    Count:0,
1136 1149
                   },
1137 1150
                   Wed_M: {
1138 1151
                     schedule_id: 0,
@@ -1141,6 +1154,8 @@ export default {
1141 1154
                     patient_id: 0,
1142 1155
                     patient: '',
1143 1156
                     dialysis_machine_name:'',
1157
+                    schedule_date:"",
1158
+                    Count:0,
1144 1159
                   },
1145 1160
                   Wed_A: {
1146 1161
                     schedule_id: 0,
@@ -1149,6 +1164,8 @@ export default {
1149 1164
                     patient_id: 0,
1150 1165
                     patient: '',
1151 1166
                     dialysis_machine_name:'',
1167
+                    schedule_date:"",
1168
+                    Count:0,
1152 1169
                   },
1153 1170
                   Wed_N: {
1154 1171
                     schedule_id: 0,
@@ -1157,6 +1174,8 @@ export default {
1157 1174
                     patient_id: 0,
1158 1175
                     patient: '',
1159 1176
                     dialysis_machine_name:'',
1177
+                    schedule_date:"",
1178
+                    Count:0,
1160 1179
                   },
1161 1180
                   Thurs_M: {
1162 1181
                     schedule_id: 0,
@@ -1165,6 +1184,8 @@ export default {
1165 1184
                     patient_id: 0,
1166 1185
                     patient: '',
1167 1186
                     dialysis_machine_name:'',
1187
+                    schedule_date:"",
1188
+                    Count:0,
1168 1189
                   },
1169 1190
                   Thurs_A: {
1170 1191
                     schedule_id: 0,
@@ -1173,6 +1194,8 @@ export default {
1173 1194
                     patient_id: 0,
1174 1195
                     patient: '',
1175 1196
                     dialysis_machine_name:'',
1197
+                    schedule_date:"",
1198
+                    Count:0,
1176 1199
                   },
1177 1200
                   Thurs_N: {
1178 1201
                     schedule_id: 0,
@@ -1181,6 +1204,8 @@ export default {
1181 1204
                     patient_id: 0,
1182 1205
                     patient: '',
1183 1206
                     dialysis_machine_name:'',
1207
+                    schedule_date:"",
1208
+                    Count:0,
1184 1209
                   },
1185 1210
                   Fri_M: {
1186 1211
                     schedule_id: 0,
@@ -1189,6 +1214,8 @@ export default {
1189 1214
                     patient_id: 0,
1190 1215
                     patient: '',
1191 1216
                     dialysis_machine_name:'',
1217
+                    schedule_date:"",
1218
+                    Count:0,
1192 1219
                   },
1193 1220
                   Fri_A: {
1194 1221
                     schedule_id: 0,
@@ -1197,6 +1224,8 @@ export default {
1197 1224
                     patient_id: 0,
1198 1225
                     patient: '',
1199 1226
                     dialysis_machine_name:'',
1227
+                    schedule_date:"",
1228
+                    Count:0,
1200 1229
                   },
1201 1230
                   Fri_N: {
1202 1231
                     schedule_id: 0,
@@ -1205,6 +1234,8 @@ export default {
1205 1234
                     patient_id: 0,
1206 1235
                     patient: '',
1207 1236
                     dialysis_machine_name:'',
1237
+                    schedule_date:"",
1238
+                    Count:0,
1208 1239
                   },
1209 1240
                   Sat_M: {
1210 1241
                     schedule_id: 0,
@@ -1213,6 +1244,8 @@ export default {
1213 1244
                     patient_id: 0,
1214 1245
                     patient: '',
1215 1246
                     dialysis_machine_name:'',
1247
+                    schedule_date:"",
1248
+                    Count:0,
1216 1249
                   },
1217 1250
                   Sat_A: {
1218 1251
                     schedule_id: 0,
@@ -1221,6 +1254,8 @@ export default {
1221 1254
                     patient_id: 0,
1222 1255
                     patient: '',
1223 1256
                     dialysis_machine_name:'',
1257
+                    schedule_date:"",
1258
+                    Count:0,
1224 1259
                   },
1225 1260
                   Sat_N: {
1226 1261
                     schedule_id: 0,
@@ -1229,6 +1264,8 @@ export default {
1229 1264
                     patient_id: 0,
1230 1265
                     patient: '',
1231 1266
                     dialysis_machine_name:'',
1267
+                    schedule_date:"",
1268
+                    Count:0,
1232 1269
                   },
1233 1270
                   Sun_A: {
1234 1271
                     schedule_id: 0,
@@ -1237,6 +1274,8 @@ export default {
1237 1274
                     patient_id: 0,
1238 1275
                     patient: '',
1239 1276
                     dialysis_machine_name:'',
1277
+                    schedule_date:"",
1278
+                    Count:0,
1240 1279
                   },
1241 1280
                   Sun_N: {
1242 1281
                     schedule_id: 0,
@@ -1245,6 +1284,8 @@ export default {
1245 1284
                     patient_id: 0,
1246 1285
                     patient: '',
1247 1286
                     dialysis_machine_name:'',
1287
+                    schedule_date:"",
1288
+                    Count:0,
1248 1289
                   },
1249 1290
                   Sun_M: {
1250 1291
                     schedule_id: 0,
@@ -1253,6 +1294,8 @@ export default {
1253 1294
                     patient_id: 0,
1254 1295
                     patient: '',
1255 1296
                     dialysis_machine_name:'',
1297
+                    schedule_date:"",
1298
+                    Count:0,
1256 1299
                   },
1257 1300
                   total: 0
1258 1301
                 }
@@ -1262,9 +1305,10 @@ export default {
1262 1305
               })
1263 1306
             })
1264 1307
           }
1265
-          console.log("34455555566666",this.scheduleZone)
1308
+          
1266 1309
           this.scheduleZone.sort(this.compare('sort'))
1267 1310
           this.source_scheduleZone = this.scheduleZone
1311
+          console.log("34455555566666",this.source_scheduleZone)
1268 1312
         })
1269 1313
      },
1270 1314
 
@@ -1312,9 +1356,13 @@ export default {
1312 1356
       this.getSchedulePatients();
1313 1357
     },
1314 1358
     getSummaries(param) {
1359
+    
1360
+     
1315 1361
       const { columns, data } = param;
1316 1362
       const sums = [];
1363
+    
1317 1364
       columns.forEach((column, index) => {
1365
+       
1318 1366
         if (index === 0 ) {
1319 1367
           sums[index] = "总数";
1320 1368
           return;
@@ -1325,20 +1373,7 @@ export default {
1325 1373
         }
1326 1374
 
1327 1375
         const values = data.map(item => item[column.property]);
1328
-        console.log(values)
1329
-        // if (index === 23) {
1330
-        //   sums[index] = values.reduce((prev, curr) => {
1331
-        //     const value = Number(curr);
1332
-        //     if (!isNaN(value)) {
1333
-        //       return prev + curr;
1334
-        //     } else {
1335
-        //       return prev;
1336
-        //     }
1337
-        //   }, 0);
1338
-        //   sums[index];
1339
-        //   return;
1340
-        // }
1341
-
1376
+        
1342 1377
         sums[index] = values.reduce((prev, curr) => {
1343 1378
           if (typeof curr["mode_id"] === "undefined") {
1344 1379
             return prev;
@@ -1355,8 +1390,296 @@ export default {
1355 1390
       this.$nextTick(() => {
1356 1391
         this.$refs.table.doLayout();
1357 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){
1394
+
1395
+      //灌流 HD+HP
1396
+      var Mon_M = 0
1397
+      var Mon_A = 0
1398
+      var Mon_N = 0
1399
+
1400
+      var Tue_M =0
1401
+      var Tue_A = 0
1402
+      var Tue_N = 0
1403
+
1404
+      var Wed_M = 0
1405
+      var Wed_A = 0
1406
+      var Wed_N = 0
1407
+
1408
+      var Thurs_M = 0
1409
+      var Thurs_A = 0
1410
+      var Thurs_N = 0
1411
+
1412
+      var Fri_M = 0
1413
+      var Fri_A = 0
1414
+      var Fri_N = 0
1415
+
1416
+      var Sat_M = 0
1417
+      var Sat_A = 0
1418
+      var Sat_N = 0
1419
+
1420
+      var Sun_M = 0
1421
+      var Sun_A = 0
1422
+      var Sun_N = 0
1423
+
1424
+      //血滤 HDF
1425
+      var Mon_M_One = 0
1426
+      var Mon_A_One = 0
1427
+      var Mon_N_One = 0
1428
+
1429
+      var Tue_M_One =0
1430
+      var Tue_A_One = 0
1431
+      var Tue_N_One = 0
1432
+
1433
+      var Wed_M_One = 0
1434
+      var Wed_A_One = 0
1435
+      var Wed_N_One = 0
1436
+
1437
+      var Thurs_M_One = 0
1438
+      var Thurs_A_One = 0
1439
+      var Thurs_N_One = 0
1440
+
1441
+      var Fri_M_One = 0
1442
+      var Fri_A_One = 0
1443
+      var Fri_N_One = 0
1444
+
1445
+      var Sat_M_One = 0
1446
+      var Sat_A_One = 0
1447
+      var Sat_N_One = 0
1448
+
1449
+      var Sun_M_One = 0
1450
+      var Sun_A_One = 0
1451
+      var Sun_N_One= 0
1452
+
1453
+      if(this.schedulesGroup!=null && this.schedulesGroup.length >0){
1454
+        
1455
+        for(let i=0;i<this.schedulesGroup.length;i++){
1456
+          //灌流
1457
+          //礼拜一上午
1458
+          if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1459
+            Mon_M = this.schedulesGroup[i].Count
1460
+          }
1461
+           //礼拜一下午
1462
+           if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
1463
+            Mon_A = this.schedulesGroup[i].Count
1464
+          }
1465
+           //礼拜一晚上
1466
+           if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1467
+            Mon_N = this.schedulesGroup[i].Count
1468
+          }
1469
+
1470
+           //礼拜二上午
1471
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1472
+            Tue_M = this.schedulesGroup[i].Count
1473
+          }
1474
+           //礼拜二下午
1475
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 2&& this.schedulesGroup[i].mode_id == 3){
1476
+            Tue_A = this.schedulesGroup[i].Count
1477
+          }
1478
+           //礼拜二晚上
1479
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1480
+            Tue_N = this.schedulesGroup[i].Count
1481
+          }
1482
+
1483
+
1484
+          //礼拜三上午
1485
+          if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1486
+            Wed_M = this.schedulesGroup[i].Count
1487
+          }
1488
+           //礼拜三下午
1489
+           if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
1490
+            Wed_A = this.schedulesGroup[i].Count
1491
+          }
1492
+           //礼拜三晚上
1493
+           if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1494
+            Wed_N = this.schedulesGroup[i].Count
1495
+          }
1496
+
1497
+           //礼拜四上午
1498
+          if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1499
+            Thurs_M = this.schedulesGroup[i].Count
1500
+          }
1501
+           //礼拜四下午
1502
+           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
1503
+            Thurs_A = this.schedulesGroup[i].Count
1504
+          }
1505
+           //礼拜四晚上
1506
+           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1507
+            Thurs_N = this.schedulesGroup[i].Count
1508
+          }
1509
+
1510
+           //礼拜五上午
1511
+          if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1512
+            Fri_M = this.schedulesGroup[i].Count
1513
+          }
1514
+           //礼拜五下午
1515
+           if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
1516
+            Fri_A = this.schedulesGroup[i].Count
1517
+          }
1518
+           //礼拜五晚上
1519
+           if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1520
+            Fri_N = this.schedulesGroup[i].Count
1521
+          }
1522
+
1523
+
1524
+          //礼拜六上午
1525
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 1  && this.schedulesGroup[i].mode_id == 3){
1526
+            Sat_M = this.schedulesGroup[i].Count
1527
+          }
1528
+           //礼拜六下午
1529
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 2  && this.schedulesGroup[i].mode_id == 3){
1530
+            Sat_A = this.schedulesGroup[i].Count
1531
+          }
1532
+           //礼拜六晚上
1533
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 3  && this.schedulesGroup[i].mode_id == 3){
1534
+            Sat_N = this.schedulesGroup[i].Count
1535
+          }
1536
+
1537
+           //礼拜日上午
1538
+          if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 1  && this.schedulesGroup[i].mode_id == 3){
1539
+            Sun_M = this.schedulesGroup[i].Count
1540
+          }
1541
+           //礼拜日下午
1542
+           if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 2  && this.schedulesGroup[i].mode_id == 3){
1543
+            Sun_A = this.schedulesGroup[i].Count
1544
+          }
1545
+           //礼拜日晚上
1546
+           if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3  && this.schedulesGroup[i].mode_id == 3){
1547
+            Sun_N = this.schedulesGroup[i].Count
1548
+          }
1549
+
1550
+
1551
+           //血滤
1552
+            //礼拜一上午
1553
+          if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1554
+            Mon_M_One = this.schedulesGroup[i].Count
1555
+          }
1556
+           //礼拜一下午
1557
+           if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1558
+            Mon_A_One = this.schedulesGroup[i].Count
1559
+          }
1560
+           //礼拜一晚上
1561
+           if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1562
+            Mon_N_One = this.schedulesGroup[i].Count
1563
+          }
1564
+
1565
+           //礼拜二上午
1566
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1567
+            Tue_M_One = this.schedulesGroup[i].Count
1568
+          }
1569
+           //礼拜二下午
1570
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 2&& this.schedulesGroup[i].mode_id == 2){
1571
+            Tue_A_One = this.schedulesGroup[i].Count
1572
+          }
1573
+           //礼拜二晚上
1574
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1575
+            Tue_N_One = this.schedulesGroup[i].Count
1576
+          }
1577
+
1578
+
1579
+          //礼拜三上午
1580
+          if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1581
+            Wed_M_One = this.schedulesGroup[i].Count
1582
+          }
1583
+           //礼拜三下午
1584
+           if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1585
+            Wed_A_One = this.schedulesGroup[i].Count
1586
+          }
1587
+           //礼拜三晚上
1588
+           if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1589
+            Wed_N_One = this.schedulesGroup[i].Count
1590
+          }
1358 1591
 
1592
+           //礼拜四上午
1593
+          if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1594
+            Thurs_M_One = this.schedulesGroup[i].Count
1595
+            
1596
+          }
1597
+           //礼拜四下午
1598
+           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1599
+            Thurs_A_One = this.schedulesGroup[i].Count
1600
+          }
1601
+           //礼拜四晚上
1602
+           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1603
+            Thurs_N_One = this.schedulesGroup[i].Count
1604
+          }
1605
+
1606
+           //礼拜五上午
1607
+          if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1608
+            Fri_M_One = this.schedulesGroup[i].Count
1609
+          }
1610
+           //礼拜五下午
1611
+           if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1612
+            Fri_A_One = this.schedulesGroup[i].Count
1613
+          }
1614
+           //礼拜五晚上
1615
+           if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1616
+            Fri_N_One = this.schedulesGroup[i].Count
1617
+          }
1618
+
1619
+
1620
+          //礼拜六上午
1621
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1622
+            Sat_M_One = this.schedulesGroup[i].Count
1623
+          }
1624
+           //礼拜六下午
1625
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1626
+            Sat_A_One = this.schedulesGroup[i].Count
1627
+          }
1628
+           //礼拜六晚上
1629
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1630
+            Sat_N_One = this.schedulesGroup[i].Count
1631
+          }
1632
+
1633
+           //礼拜日上午
1634
+          if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1635
+            Sun_M_One = this.schedulesGroup[i].Count
1636
+          }
1637
+           //礼拜日下午
1638
+           if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1639
+            Sun_A_One = this.schedulesGroup[i].Count
1640
+          }
1641
+           //礼拜日晚上
1642
+           if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1643
+            Sun_N_One = this.schedulesGroup[i].Count
1644
+          }
1645
+  
1646
+        }
1647
+      }
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 +"人"  
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 +"人"  
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 +"人"  
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 +"人"  
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 +"人"  
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 +"人"  
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 +"人"  
1359 1676
       return sums;
1677
+
1678
+      }
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){
1681
+        return sums;
1682
+      }
1360 1683
     },
1361 1684
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1362 1685
 
@@ -1426,7 +1749,13 @@ export default {
1426 1749
           this.weekDays = response.data.data.days;
1427 1750
           this.toDay = response.data.data.today;
1428 1751
           var theSchedules = response.data.data.schdules;
1752
+        
1753
+          var schedulesGroup = response.data.data.schedulesGroup
1754
+          this.schedulesGroup = schedulesGroup
1755
+
1756
+
1429 1757
 
1758
+     
1430 1759
           var that = this;
1431 1760
 
1432 1761
           this.scheduleZone.forEach(function(zone, index) {
@@ -1437,6 +1766,8 @@ export default {
1437 1766
               patient_id: 0,
1438 1767
               patient: "",
1439 1768
               dialysis_machine_name:"",
1769
+              schedule_date:"",
1770
+              Count:0,
1440 1771
             };
1441 1772
             that.scheduleZone[index].Mon_A = {
1442 1773
               mode_id: 0,
@@ -1444,6 +1775,8 @@ export default {
1444 1775
               patient_id: 0,
1445 1776
               patient: "",
1446 1777
               dialysis_machine_name:"",
1778
+              schedule_date:"",
1779
+              Count:0,
1447 1780
             };
1448 1781
             that.scheduleZone[index].Mon_N = {
1449 1782
               mode_id: 0,
@@ -1451,6 +1784,8 @@ export default {
1451 1784
               patient_id: 0,
1452 1785
               patient: "",
1453 1786
               dialysis_machine_name:"",
1787
+              schedule_date:"",
1788
+              Count:0,
1454 1789
             };
1455 1790
             that.scheduleZone[index].Tue_M = {
1456 1791
               mode_id: 0,
@@ -1458,6 +1793,8 @@ export default {
1458 1793
               patient_id: 0,
1459 1794
               patient: "",
1460 1795
               dialysis_machine_name:"",
1796
+              schedule_date:"",
1797
+              Count:0,
1461 1798
             };
1462 1799
             that.scheduleZone[index].Tue_A = {
1463 1800
               mode_id: 0,
@@ -1465,6 +1802,8 @@ export default {
1465 1802
               patient_id: 0,
1466 1803
               patient: "",
1467 1804
               dialysis_machine_name:"",
1805
+              schedule_date:"",
1806
+              Count:0,
1468 1807
             };
1469 1808
             that.scheduleZone[index].Tue_N = {
1470 1809
               mode_id: 0,
@@ -1472,6 +1811,8 @@ export default {
1472 1811
               patient_id: 0,
1473 1812
               patient: "",
1474 1813
               dialysis_machine_name:"",
1814
+              schedule_date:"",
1815
+              Count:0,
1475 1816
             };
1476 1817
             that.scheduleZone[index].Wed_M = {
1477 1818
               mode_id: 0,
@@ -1479,6 +1820,8 @@ export default {
1479 1820
               patient_id: 0,
1480 1821
               patient: "",
1481 1822
               dialysis_machine_name:"",
1823
+              schedule_date:"",
1824
+              Count:0,
1482 1825
             };
1483 1826
             that.scheduleZone[index].Wed_A = {
1484 1827
               mode_id: 0,
@@ -1486,6 +1829,8 @@ export default {
1486 1829
               patient_id: 0,
1487 1830
               patient: "",
1488 1831
               dialysis_machine_name:"",
1832
+              schedule_date:"",
1833
+              Count:0,
1489 1834
             };
1490 1835
             that.scheduleZone[index].Wed_N = {
1491 1836
               mode_id: 0,
@@ -1493,6 +1838,9 @@ export default {
1493 1838
               patient_id: 0,
1494 1839
               patient: "",
1495 1840
               dialysis_machine_name:"",
1841
+              schedule_date:"",
1842
+              Count:0,
1843
+              
1496 1844
             };
1497 1845
             that.scheduleZone[index].Thurs_M = {
1498 1846
               mode_id: 0,
@@ -1500,6 +1848,8 @@ export default {
1500 1848
               patient_id: 0,
1501 1849
               patient: "",
1502 1850
               dialysis_machine_name:"",
1851
+              schedule_date:"",
1852
+              Count:0,
1503 1853
             };
1504 1854
             that.scheduleZone[index].Thurs_A = {
1505 1855
               mode_id: 0,
@@ -1507,6 +1857,8 @@ export default {
1507 1857
               patient_id: 0,
1508 1858
               patient: "",
1509 1859
               dialysis_machine_name:"",
1860
+              schedule_date:"",
1861
+              Count:0,
1510 1862
             };
1511 1863
             that.scheduleZone[index].Thurs_N = {
1512 1864
               mode_id: 0,
@@ -1514,6 +1866,8 @@ export default {
1514 1866
               patient_id: 0,
1515 1867
               patient: "",
1516 1868
               dialysis_machine_name:"",
1869
+              schedule_date:"",
1870
+              Count:0,
1517 1871
             };
1518 1872
             that.scheduleZone[index].Fri_M = {
1519 1873
               mode_id: 0,
@@ -1521,6 +1875,8 @@ export default {
1521 1875
               patient_id: 0,
1522 1876
               patient: "",
1523 1877
               dialysis_machine_name:"",
1878
+              schedule_date:"",
1879
+              Count:0,
1524 1880
             };
1525 1881
             that.scheduleZone[index].Fri_A = {
1526 1882
               mode_id: 0,
@@ -1528,6 +1884,8 @@ export default {
1528 1884
               patient_id: 0,
1529 1885
               patient: "",
1530 1886
               dialysis_machine_name:"",
1887
+              schedule_date:"",
1888
+              Count:0,
1531 1889
             };
1532 1890
             that.scheduleZone[index].Fri_N = {
1533 1891
               mode_id: 0,
@@ -1535,6 +1893,8 @@ export default {
1535 1893
               patient_id: 0,
1536 1894
               patient: "",
1537 1895
               dialysis_machine_name:"",
1896
+              schedule_date:"",
1897
+              Count:0,
1538 1898
             };
1539 1899
             that.scheduleZone[index].Sat_M = {
1540 1900
               mode_id: 0,
@@ -1542,6 +1902,8 @@ export default {
1542 1902
               patient_id: 0,
1543 1903
               patient: "",
1544 1904
               dialysis_machine_name:"",
1905
+              schedule_date:"",
1906
+              Count:0,
1545 1907
             };
1546 1908
             that.scheduleZone[index].Sat_A = {
1547 1909
               mode_id: 0,
@@ -1549,6 +1911,8 @@ export default {
1549 1911
               patient_id: 0,
1550 1912
               patient: "",
1551 1913
               dialysis_machine_name:"",
1914
+              schedule_date:"",
1915
+              Count:0,
1552 1916
             };
1553 1917
             that.scheduleZone[index].Sat_N = {
1554 1918
               mode_id: 0,
@@ -1556,6 +1920,8 @@ export default {
1556 1920
               patient_id: 0,
1557 1921
               patient: "",
1558 1922
               dialysis_machine_name:"",
1923
+              schedule_date:"",
1924
+              Count:0,
1559 1925
             };
1560 1926
             that.scheduleZone[index].Sun_A = {
1561 1927
               mode_id: 0,
@@ -1563,6 +1929,8 @@ export default {
1563 1929
               patient_id: 0,
1564 1930
               patient: "",
1565 1931
               dialysis_machine_name:"",
1932
+              schedule_date:"",
1933
+              Count:0,
1566 1934
             };
1567 1935
             that.scheduleZone[index].Sun_N = {
1568 1936
               mode_id: 0,
@@ -1570,6 +1938,8 @@ export default {
1570 1938
               patient_id: 0,
1571 1939
               patient: "",
1572 1940
               dialysis_machine_name:"",
1941
+              schedule_date:"",
1942
+              Count:0,
1573 1943
             };
1574 1944
             that.scheduleZone[index].Sun_M = {
1575 1945
               mode_id: 0,
@@ -1577,11 +1947,14 @@ export default {
1577 1947
               patient_id: 0,
1578 1948
               patient: "",
1579 1949
               dialysis_machine_name:"",
1950
+              schedule_date:"",
1951
+              Count:0,
1580 1952
             };
1581 1953
 
1582 1954
 
1583 1955
 
1584 1956
 
1957
+
1585 1958
             that.scheduleZone[index].total = 0;
1586 1959
 
1587 1960
             if (response.data.data.schdules.length > 0) {
@@ -1605,11 +1978,8 @@ export default {
1605 1978
                       patient: schedule.patient,
1606 1979
                       dialysis_machine_name:schedule.dialysis_machine_name,
1607 1980
                       patient_contagions: schedule.patient_contagions,
1608
-                      mode_name:
1609
-                        typeof that.modeOptions[schedule.mode_id] ===
1610
-                        "undefined"
1611
-                          ? ""
1612
-                          : that.modeOptions[schedule.mode_id].name
1981
+                      schedule_date:schedule.schedule_date,
1982
+                      mode_name: typeof that.modeOptions[schedule.mode_id] ==="undefined"? "": that.modeOptions[schedule.mode_id].name
1613 1983
                     };
1614 1984
                     that.scheduleZone[index].total += 1;
1615 1985
 
@@ -1621,7 +1991,7 @@ export default {
1621 1991
           });
1622 1992
 
1623 1993
           this.source_scheduleZone = this.scheduleZone
1624
-
1994
+          console.log("------------aaaa",this.source_scheduleZone)
1625 1995
         } else {
1626 1996
           this.$message.error("网络错误");
1627 1997
           return false;
@@ -2457,7 +2827,7 @@ export default {
2457 2827
         start_sch:first_monday,
2458 2828
         end_sch:end_monday,
2459 2829
       };
2460
-      console.log("params",params)
2830
+      // console.log("params",params)
2461 2831
       getSearchResult(params).then(response => {
2462 2832
         if (response.data.state == 1) {
2463 2833
           this.schedulePatients = response.data.data.schdules;
@@ -2676,7 +3046,7 @@ export default {
2676 3046
     }
2677 3047
     var nowDate = year + "-" + month + "-" + day
2678 3048
     var date = new Date(nowDate + " 00:00:00")
2679
-    console.log("date23232323232323",date.getTime()/1000)
3049
+   
2680 3050
     this.now_time = date.getTime()/1000
2681 3051
     this.getAllZones()
2682 3052
 

+ 1 - 1
src/xt_pages/workforce/components/tableDataModeTwo.vue View File

@@ -1039,7 +1039,7 @@ export default {
1039 1039
             })
1040 1040
           })
1041 1041
         }
1042
-        console.log("34455555566666",this.scheduleZone)
1042
+        // console.log("34455555566666",this.scheduleZone)
1043 1043
         this.scheduleZone.sort(this.compare('sort'))
1044 1044
       })
1045 1045
     },

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

@@ -888,7 +888,7 @@
888 888
       ,
889 889
       signPrint() {
890 890
 
891
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
891
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 0){
892 892
          var zone = this.zone
893 893
           console.log("zone23232",zone)
894 894
           var newArr = []

+ 230 - 1
src/xt_pages/workforce/printOne.vue View File

@@ -46,11 +46,14 @@
46 46
                   <td :width="td_1_width">分区</td>
47 47
 
48 48
                   <td :width="td_3_width">病人姓名</td>
49
+
50
+                  <td :width="td_3_width">统计</td>
49 51
                 </tr>
50 52
               </thead>
51 53
               <tbody>
52 54
                 <tr v-for="(it, i) in item.zones" :key="i">
53 55
                   <td :width="td_1_width">
56
+                    总人数: {{getZonePatient(it.partition_id)}}<span v-if="getZonePatient(it.partition_id)>0">人</span><br>
54 57
                     {{ getZoneName(it.partition_id) }}
55 58
                   </td>
56 59
                   <td :width="td_3_width" valign="top">
@@ -64,6 +67,26 @@
64 67
                       </div>
65 68
                     </div>
66 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) }}
79
+
80
+
81
+                     <br>
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) }}
89
+                  </td>
67 90
                 </tr>
68 91
               </tbody>
69 92
             </table>
@@ -491,7 +514,7 @@ export default {
491 514
                 }
492 515
               }
493 516
             }
494
-            console.log('arr23322332', arr)
517
+            console.log('排班数据------------------', arr)
495 518
 
496 519
             this.tableData = arr
497 520
           }
@@ -684,6 +707,212 @@ export default {
684 707
         }
685 708
       }
686 709
       return name
710
+    },
711
+    getZonePatient(partition_id){
712
+       
713
+      var arr = []
714
+      if(this.list!=null && this.list.length >0){
715
+        for(let i=0;i<this.list.length;i++){
716
+           if(partition_id == this.list[i].partition_id){
717
+               arr.push(this.list[i])
718
+           }
719
+        }
720
+      }
721
+
722
+      if(arr.length >0){
723
+         return arr.length
724
+      }else{
725
+        return ""
726
+      }
727
+
728
+    },
729
+    getMonPatient(partition_id){
730
+      var arr = []
731
+      if(this.list!=null && this.list.length >0){
732
+        for(let i=0;i<this.list.length;i++){
733
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==1){
734
+               arr.push(this.list[i])
735
+           }
736
+        }
737
+      }
738
+      if(arr.length >0){
739
+         return arr.length
740
+      }else{
741
+        return ""
742
+      }
743
+    },
744
+    getMonPatientOne(partition_id){
745
+      var arr = []
746
+      if(this.list!=null && this.list.length >0){
747
+        for(let i=0;i<this.list.length;i++){
748
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==1){
749
+               arr.push(this.list[i])
750
+           }
751
+        }
752
+      }
753
+      if(arr.length >0){
754
+         return arr.length
755
+      }else{
756
+        return ""
757
+      }
758
+    },
759
+    getMonPatientName(partition_id){
760
+      var arr = []
761
+      if(this.list!=null && this.list.length >0){
762
+        for(let i=0;i<this.list.length;i++){
763
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==1){
764
+               arr.push(this.list[i].name)
765
+           }
766
+        }
767
+      }
768
+      if(arr.length >0){
769
+        var str = arr.join(",")
770
+        return str
771
+      }else{
772
+        return ""
773
+      }
774
+    },
775
+    getMonPatientNameOne(partition_id){
776
+      var arr = []
777
+      if(this.list!=null && this.list.length >0){
778
+        for(let i=0;i<this.list.length;i++){
779
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==1){
780
+               arr.push(this.list[i].name)
781
+           }
782
+        }
783
+      }
784
+      if(arr.length >0){
785
+        var str = arr.join(",")
786
+        return str
787
+      }else{
788
+        return ""
789
+      }
790
+    },
791
+    getMonAfterPatient(partition_id){
792
+      var arr = []
793
+      if(this.list!=null && this.list.length >0){
794
+        for(let i=0;i<this.list.length;i++){
795
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==2){
796
+               arr.push(this.list[i])
797
+           }
798
+        }
799
+      }
800
+      if(arr.length >0){
801
+         return arr.length
802
+      }else{
803
+        return ""
804
+      }
805
+    },
806
+    getMonAfterPatientOne(partition_id){
807
+      var arr = []
808
+      if(this.list!=null && this.list.length >0){
809
+        for(let i=0;i<this.list.length;i++){
810
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==2){
811
+               arr.push(this.list[i])
812
+           }
813
+        }
814
+      }
815
+      if(arr.length >0){
816
+         return arr.length
817
+      }else{
818
+        return ""
819
+      }
820
+    },
821
+    getMonAfterPatientName(partition_id){
822
+      var arr = []
823
+      if(this.list!=null && this.list.length >0){
824
+        for(let i=0;i<this.list.length;i++){
825
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==2){
826
+               arr.push(this.list[i].name)
827
+           }
828
+        }
829
+      }
830
+      if(arr.length >0){
831
+        var str = arr.join(",")
832
+        return str
833
+      }else{
834
+        return ""
835
+      }
836
+    },
837
+
838
+    getMonAfterPatientNameOne(partition_id){
839
+      var arr = []
840
+      if(this.list!=null && this.list.length >0){
841
+        for(let i=0;i<this.list.length;i++){
842
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==2){
843
+               arr.push(this.list[i].name)
844
+           }
845
+        }
846
+      }
847
+      if(arr.length >0){
848
+        var str = arr.join(",")
849
+        return str
850
+      }else{
851
+        return ""
852
+      }
853
+    },
854
+
855
+    getNightPatient(partition_id){
856
+      var arr = []
857
+      if(this.list!=null && this.list.length >0){
858
+        for(let i=0;i<this.list.length;i++){
859
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==3){
860
+               arr.push(this.list[i])
861
+           }
862
+        }
863
+      }
864
+      if(arr.length >0){
865
+         return arr.length
866
+      }else{
867
+        return ""
868
+      }
869
+    },
870
+    getNightPatientOne(partition_id){
871
+      var arr = []
872
+      if(this.list!=null && this.list.length >0){
873
+        for(let i=0;i<this.list.length;i++){
874
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==3){
875
+               arr.push(this.list[i])
876
+           }
877
+        }
878
+      }
879
+      if(arr.length >0){
880
+         return arr.length
881
+      }else{
882
+        return ""
883
+      }
884
+    },
885
+    getNightPatientName(partition_id){
886
+      var arr = []
887
+      if(this.list!=null && this.list.length >0){
888
+        for(let i=0;i<this.list.length;i++){
889
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==3){
890
+               arr.push(this.list[i].name)
891
+           }
892
+        }
893
+      }
894
+      if(arr.length >0){
895
+        var str = arr.join(",")
896
+        return str
897
+      }else{
898
+        return ""
899
+      }
900
+    },
901
+    getNightPatientNameOne(partition_id){
902
+      var arr = []
903
+      if(this.list!=null && this.list.length >0){
904
+        for(let i=0;i<this.list.length;i++){
905
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==3){
906
+               arr.push(this.list[i].name)
907
+           }
908
+        }
909
+      }
910
+      if(arr.length >0){
911
+        var str = arr.join(",")
912
+        return str
913
+      }else{
914
+        return ""
915
+      }
687 916
     }
688 917
   }
689 918
 }

+ 17 - 4
src/xt_pages/workforce/remind_print_setting_one.vue View File

@@ -183,7 +183,7 @@
183 183
                 
184 184
                 <div class="printCell">
185 185
                   <span>
186
-                    分区/床号
186
+                    分区/床号
187 187
                     <span  style="width:auto;">{{main_collection.zone.name}}/</span>
188 188
                     {{ main_collection.number.number }}
189 189
                     <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
@@ -192,6 +192,16 @@
192 192
                   </span>
193 193
                  
194 194
                 </div>
195
+
196
+                <div class="printCell">
197
+                  <span>
198
+                    排班备注:
199
+                    <span  style="width:auto;">
200
+                      {{ main_collection.dialysis_order.schedule_remark }}
201
+                    </span>
202
+                  </span>
203
+                 
204
+                </div>
195 205
               
196 206
               </div>
197 207
            </div>
@@ -504,14 +514,14 @@
504 514
           spinner: "el-icon-loading",
505 515
           background: "rgba(0, 0, 0, 0.7)"
506 516
         });
507
-        var now_time = parseInt(this.week_type) * 86400 + this.start_time
517
+        // var now_time = parseInt(this.week_type) * 86400 + this.start_time
508 518
 
509 519
         const weekOfDay = parseInt(moment().format('E'))
510 520
         const next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD')
511 521
         console.log('卡 is h2323233232', this.toStamp(next_monday))
512 522
         const next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
513 523
         console.log('下周日', this.toStamp(next_sunday))
514
-
524
+        var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
515 525
         const params = {
516 526
           start_time: this.toStamp(next_monday),
517 527
           end_time: this.toStamp(next_sunday),
@@ -723,7 +733,10 @@
723 733
         const myDate = new Date(date).getTime() / 1000 - 28800
724 734
         // const stmapEg = Date.parse(myDate) / 1000
725 735
         return myDate
726
-      }
736
+      },
737
+      getTimestamp(time) { //把时间日期转成时间戳
738
+      return (new Date(time)).getTime()
739
+    },
727 740
 
728 741
     }
729 742
   }

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))