yq1 1 yıl önce
ebeveyn
işleme
5c330bf044

+ 6 - 6
src/xt_pages/workforce/appointment.vue Dosyayı Görüntüle

@@ -976,15 +976,15 @@ export default {
976 976
         this.$router.push({path: '/workforce/schedule/print', query: {date: date}})
977 977
       }
978 978
       if (this.templateObj.template_id == 2) {
979
-        this.$router.push({path: '/scheduleTablePrint?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date})
979
+        this.$router.push({path: '/scheduleTablePrint?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date+"&schedule_type="+this.schedule_type})
980 980
       }
981 981
       if (this.templateObj.template_id == 3) {
982
-        this.$router.push({path: '/scheduleTablePrintOne?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date})
982
+        this.$router.push({path: '/scheduleTablePrintOne?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date+"&schedule_type="+this.schedule_type})
983 983
       }
984 984
       if(this.templateObj.template_id == 4){
985
-        this.$router.push({path: '/scheduleTablePrintTwo?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date})
985
+        this.$router.push({path: '/scheduleTablePrintTwo?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date+"&schedule_type="+this.schedule_type})
986 986
       }
987
-
987
+// +"&schedule_type"+
988 988
     },
989 989
     printScheduleActionOne:function(){
990 990
 
@@ -2965,7 +2965,8 @@ export default {
2965 2965
    },
2966 2966
 
2967 2967
     changeSchedule(val) {
2968
-      this.schedule_type = vald
2968
+      console.log('3333',val);
2969
+      this.schedule_type = val
2969 2970
       this.getThreeWeekList()
2970 2971
       this.getWeekPanels()
2971 2972
     },
@@ -3227,7 +3228,6 @@ export default {
3227 3228
 </script>
3228 3229
 
3229 3230
 <style rel="stylesheet/css" lang="scss">
3230
-
3231 3231
 .schedule-table-cell-disable {
3232 3232
   background-color: #F5F5F5 !important;
3233 3233
 }

+ 619 - 247
src/xt_pages/workforce/scheduleTablePrint.vue Dosyayı Görüntüle

@@ -16,7 +16,7 @@
16 16
                 <td colspan="3">周日({{ weekTitle[6] }})</td>
17 17
                 <td>总数</td>
18 18
             </tr>
19
-            <tr>
19
+            <tr v-if="schedule_type==0">
20 20
                 <td>上午</td>
21 21
                 <td>下午</td>
22 22
                 <td>晚上</td>
@@ -39,144 +39,310 @@
39 39
                 <td>下午</td>
40 40
                 <td>晚上</td>
41 41
             </tr>
42
+            
43
+            <tr v-else> 
44
+                <td colspan="3" v-if=" schedule_type==1">上午</td>
45
+                <td colspan="3" v-if=" schedule_type==2">下午</td>
46
+                <td colspan="3" v-if=" schedule_type==3">晚上</td>
47
+                <td colspan="3" v-if=" schedule_type==1">上午</td>
48
+                <td colspan="3" v-if=" schedule_type==2">下午</td>
49
+                <td colspan="3" v-if=" schedule_type==3">晚上</td>
50
+                <td colspan="3" v-if=" schedule_type==1">上午</td>
51
+                <td colspan="3" v-if=" schedule_type==2">下午</td>
52
+                <td colspan="3" v-if=" schedule_type==3">晚上</td>
53
+                <td colspan="3" v-if=" schedule_type==1">上午</td>
54
+                <td colspan="3" v-if=" schedule_type==2">下午</td>
55
+                <td colspan="3" v-if=" schedule_type==3">晚上</td>
56
+                <td colspan="3" v-if=" schedule_type==1">上午</td>
57
+                <td colspan="3" v-if=" schedule_type==2">下午</td>
58
+                <td colspan="3" v-if=" schedule_type==3">晚上</td>
59
+                <td colspan="3" v-if=" schedule_type==1">上午</td>
60
+                <td colspan="3" v-if=" schedule_type==2">下午</td>
61
+                <td colspan="3" v-if=" schedule_type==3">晚上</td>
62
+                <td colspan="3" v-if=" schedule_type==1">上午</td>
63
+                <td colspan="3" v-if=" schedule_type==2">下午</td>
64
+                <td colspan="3" v-if=" schedule_type==3">晚上</td>
65
+            </tr>
42 66
             <tr v-for="(item,index) in scheduleZone" :key="index">
43 67
                 <td style="min-width:50px;">{{ item.area }}</td>
44 68
                 <td style="min-width:50px;">{{ item.cut }}</td>
45
-                <td style="min-width:50px;">
46
-                    <span v-if="item.Mon_M.patient_id">
47
-                        <div>{{ item.Mon_M.patient }} </div>
48
-                        <div v-if="item.Mon_M.mode_name != 'HD'">
49
-                            {{ item.Mon_M.mode_name }}
50
-                     </div>
51
-                    </span>
52
-                </td>
53
-                <td style="min-width:50px;">
54
-                    <span v-if="item.Mon_A.patient_id">
55
-                        <div>{{ item.Mon_A.patient }} </div>
56
-                        <div v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</div>
57
-                    </span>
58
-                </td>
59
-                <td style="min-width:50px;">
60
-                    <span v-if="item.Mon_N.patient_id">
61
-                        <div>{{ item.Mon_N.patient }}</div>
62
-                        <div v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</div>
63
-                    </span>
64
-                </td>
65
-                <td style="min-width:50px;">
66
-                    <span v-if="item.Tue_M.patient_id">
67
-                        <div>{{ item.Tue_M.patient }}</div>
68
-                        <div v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</div>
69
-                    </span>
70
-                </td>
71
-                <td style="min-width:50px;">
72
-                    <span v-if="item.Tue_A.patient_id">
73
-                        <div>{{ item.Tue_A.patient }}</div>
74
-                        <div v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</div>
75
-                    </span>
76
-                </td>
77
-                <td style="min-width:50px;">
78
-                    <span v-if="item.Tue_N.patient_id">
79
-                        <div>{{ item.Tue_N.patient }}</div>
80
-                        <div v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</div>
81
-                    </span>
82
-                </td>
83
-                <td style="min-width:50px;">
84
-                    <span v-if="item.Wed_M.patient_id">
85
-                        <div>{{ item.Wed_M.patient }}</div>
86
-                        <div v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</div>
87
-                    </span>
88
-                </td>
89
-                <td style="min-width:50px;">
90
-                    <span v-if="item.Wed_A.patient_id">
91
-                        <div>{{ item.Wed_A.patient }}</div>
92
-                        <div v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</div>
93
-                    </span>
94
-                </td>
95
-                <td style="min-width:50px;">
96
-                    <span v-if="item.Wed_N.patient_id">
97
-                        <div>{{ item.Wed_N.patient }}</div>
98
-                        <div v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</div>
99
-                    </span>
100
-                </td>
101
-                <td style="min-width:50px;">
102
-                    <span v-if="item.Thurs_M.patient_id">
103
-                        <div>{{ item.Thurs_M.patient }}</div>
104
-                        <div v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</div>
105
-                    </span>
106
-                </td>
107
-                <td style="min-width:50px;">
108
-                    <span v-if="item.Thurs_A.patient_id">
109
-                        <div>{{ item.Thurs_A.patient }}</div>
110
-                        <div v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</div>
111
-                    </span>
112
-                </td>
113
-                <td style="min-width:50px;">
114
-                    <span v-if="item.Thurs_N.patient_id">
115
-                        <div>{{ item.Thurs_N.patient }}</div>
116
-                        <div v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</div>
117
-                    </span>
118
-                </td>
119
-                <td style="min-width:50px;">
120
-                    <span v-if="item.Fri_M.patient_id">
121
-                        <div>{{ item.Fri_M.patient }}</div>
122
-                        <div v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</div>
123
-                    </span>
124
-                </td>
125
-                <td style="min-width:50px;">
126
-                    <span v-if="item.Fri_A.patient_id">
127
-                        <div>{{ item.Fri_A.patient }}</div>
128
-                        <div v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</div>
129
-                    </span>
130
-                </td>
131
-                <td style="min-width:50px;">
132
-                    <span v-if="item.Fri_N.patient_id">
133
-                        <div>{{ item.Fri_N.patient }}</div>
134
-                        <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
135
-                    </span>
136
-                </td>
137
-                <td style="min-width:50px;">
138
-                    <span v-if="item.Sat_M.patient_id">
139
-                        <div>{{ item.Sat_M.patient }}</div>
140
-                        <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
141
-                    </span>
142
-                </td>
143
-                <td style="min-width:50px;">
144
-                    <span v-if="item.Sat_A.patient_id">
145
-                        <div>{{ item.Sat_A.patient }}</div>
146
-                        <div v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</div>
147
-                    </span>
148
-                </td>
149
-                <td style="min-width:50px;">
150
-                    <span v-if="item.Sat_N.patient_id">
151
-                        <div>{{ item.Sat_N.patient }}</div>
152
-                        <div v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</div>
153
-                    </span>
154
-                </td>
155
-                <td style="min-width:50px;">
156
-                    <span v-if="item.Sun_M.patient_id">
157
-                        <div>{{ item.Sun_M.patient }}</div>
158
-                        <div v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }}</div>
159
-                    </span>
160
-                </td>
161
-                <td style="min-width:50px;">
162
-                    <span v-if="item.Sun_A.patient_id">
163
-                        <div>{{ item.Sun_A.patient }}</div>
164
-                        <div v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }}</div>
69
+
70
+                <!-- 上午 -->
71
+                <template v-if="schedule_type == 1"> 
72
+                  <td colspan="3" style="min-width:50px;" >
73
+                    <span v-if="item.Mon_M.patient_id ">
74
+                        <span>{{ item.Mon_M.patient }}</span>
75
+                        <span v-if="item.Mon_M.mode_name != 'HD'">{{ item.Mon_M.mode_name }}</span>
165 76
                     </span>
166
-                </td>
167
-                <td style="min-width:50px;">
168
-                    <span v-if="item.Sun_N.patient_id">
169
-                        <div>{{ item.Sun_N.patient }}</div>
170
-                        <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</div>
77
+                  </td>
78
+                  <td colspan="3" style="min-width:50px;padding: auto;" >
79
+                    <p v-if="item.Tue_M.patient_id" style="padding: auto;margin: auto;">
80
+                        <span>{{ item.Tue_M.patient }}</span>
81
+                        <span v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</span>
82
+                    </p>
83
+                  </td>
84
+                  <td colspan="3" style="min-width:50px;" >
85
+                    <span v-if="item.Wed_M.patient_id ">
86
+                        <span>{{ item.Wed_M.patient }}</span>
87
+                        <span v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</span>
171 88
                     </span>
172
-                </td>
173
-                <td>{{item.total}}</td>
89
+                  </td>
90
+                  <td colspan="3" style="min-width:50px;" >
91
+                      <span v-if="item.Thurs_M.patient_id ">
92
+                          <span>{{ item.Thurs_M.patient }}</span>
93
+                          <span v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</span>
94
+                      </span>
95
+                  </td>
96
+                  <td colspan="3" style="min-width:50px;" >
97
+                      <span v-if="item.Fri_M.patient_id">
98
+                          <span>{{ item.Fri_M.patient }}</span>
99
+                          <span v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</span>
100
+                      </span>
101
+                  </td>
102
+                  <td colspan="3" style="min-width:50px;" >
103
+                      <span v-if="item.Sat_M.patient_id ">
104
+                          <span>{{ item.Sat_M.patient }}</span>
105
+                          <span v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
106
+                      </span>
107
+                  </td>
108
+                  <td colspan="3" style="min-width:50px;" >
109
+                      <span v-if="item.Sun_M.patient_id ">
110
+                          <span>{{ item.Sun_M.patient }}</span>
111
+                          <span v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }}</span>
112
+                      </span>
113
+                  </td>
114
+                  <td>{{item.total}}</td>
115
+                </template>
116
+                <!-- 下午 -->
117
+                <template v-if="schedule_type == 2">
118
+                  <td colspan="3" style="min-width:50px;" >
119
+                      <span v-if="item.Mon_A.patient_id ">
120
+                          <span>{{ item.Mon_A.patient }}</span>
121
+                          <span v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</span>
122
+                      </span>
123
+                  </td>
124
+                  <td colspan="3" style="min-width:50px;" >
125
+                      <span v-if="item.Tue_A.patient_id ">
126
+                          <span>{{ item.Tue_A.patient }}</span>
127
+                          <span v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</span>
128
+                      </span>
129
+                  </td>
130
+                  <td colspan="3" style="min-width:50px;" >
131
+                      <span v-if="item.Wed_A.patient_id ">
132
+                          <span>{{ item.Wed_A.patient }}</span>
133
+                          <span v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</span>
134
+                      </span>
135
+                  </td>
136
+                  <td colspan="3" style="min-width:50px;" >
137
+                      <span v-if="item.Thurs_A.patient_id ">
138
+                          <span>{{ item.Thurs_A.patient }}</span>
139
+                          <span v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</span>
140
+                      </span>
141
+                  </td>
142
+                  <td colspan="3" style="min-width:50px;" >
143
+                      <span v-if="item.Fri_A.patient_id ">
144
+                          <span>{{ item.Fri_A.patient }}</span>
145
+                          <span v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</span>
146
+                      </span>
147
+                  </td>
148
+                  <td colspan="3" style="min-width:50px;" >
149
+                      <span v-if="item.Sat_A.patient_id ">
150
+                          <span>{{ item.Sat_A.patient }}</span>
151
+                          <span v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</span>
152
+                      </span>
153
+                  </td>
154
+                  <td colspan="3" style="min-width:50px;" >
155
+                      <span v-if="item.Sun_A.patient_id ">
156
+                          <span>{{ item.Sun_A.patient }}</span>
157
+                          <span v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }}</span>
158
+                      </span>
159
+                  </td>
160
+                  <td>{{item.total}}</td>
161
+                </template>
162
+                 <!-- 晚上 -->
163
+                <template v-if="schedule_type == 3">
164
+                  <td colspan="3" style="min-width:50px;" >
165
+                      <span v-if="item.Mon_N.patient_id ">
166
+                          <span>{{ item.Mon_N.patient }}</span>
167
+                          <span v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</span>
168
+                      </span>
169
+                  </td>
170
+                  <td colspan="3" style="min-width:50px;" >
171
+                      <span v-if="item.Tue_N.patient_id ">
172
+                          <span>{{ item.Tue_N.patient }}</span>
173
+                          <span v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</span>
174
+                      </span>
175
+                  </td>
176
+                  <td colspan="3" style="min-width:50px;" >
177
+                      <span v-if="item.Wed_N.patient_id ">
178
+                          <span>{{ item.Wed_N.patient }}</span>
179
+                          <span v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</span>
180
+                      </span>
181
+                  </td>
182
+                  <td colspan="3" style="min-width:50px;" >
183
+                      <span v-if="item.Thurs_N.patient_id ">
184
+                          <span>{{ item.Thurs_N.patient }}</span>
185
+                          <span v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</span>
186
+                      </span>
187
+                  </td>
188
+                  <td colspan="3" style="min-width:50px;" >
189
+                      <span v-if="item.Fri_N.patient_id ">
190
+                          <span>{{ item.Fri_N.patient }}</span>
191
+                          <span v-if="item.Fri_N.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
192
+                      </span>
193
+                  </td>
194
+                  <td colspan="3" style="min-width:50px;" >
195
+                      <span v-if="item.Sat_N.patient_id ">
196
+                          <span>{{ item.Sat_N.patient }}</span>
197
+                          <span v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</span>
198
+                      </span>
199
+                  </td>
200
+                  <td colspan="3" style="min-width:50px;" >
201
+                      <span v-if="item.Sun_N.patient_id ">
202
+                          <span>{{ item.Sun_N.patient }}</span>
203
+                          <span v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</span>
204
+                      </span>
205
+                  </td>
206
+                  <td>{{item.total}}</td>
207
+                </template>
208
+
209
+                <template v-if="schedule_type == 0">
210
+                  <td style="min-width:50px;">
211
+                      <span v-if="item.Mon_M.patient_id">
212
+                          <div>{{ item.Mon_M.patient }} </div>
213
+                          <div v-if="item.Mon_M.mode_name != 'HD'">
214
+                              {{ item.Mon_M.mode_name }}
215
+                      </div>
216
+                      </span>
217
+                  </td>
218
+                  <td style="min-width:50px;">
219
+                      <span v-if="item.Mon_A.patient_id">
220
+                          <div>{{ item.Mon_A.patient }} </div>
221
+                          <div v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</div>
222
+                      </span>
223
+                  </td>
224
+                  <td style="min-width:50px;">
225
+                      <span v-if="item.Mon_N.patient_id">
226
+                          <div>{{ item.Mon_N.patient }}</div>
227
+                          <div v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</div>
228
+                      </span>
229
+                  </td>
230
+                  <td style="min-width:50px;">
231
+                      <span v-if="item.Tue_M.patient_id">
232
+                          <div>{{ item.Tue_M.patient }}</div>
233
+                          <div v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</div>
234
+                      </span>
235
+                  </td>
236
+                  <td style="min-width:50px;">
237
+                      <span v-if="item.Tue_A.patient_id">
238
+                          <div>{{ item.Tue_A.patient }}</div>
239
+                          <div v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</div>
240
+                      </span>
241
+                  </td>
242
+                  <td style="min-width:50px;">
243
+                      <span v-if="item.Tue_N.patient_id">
244
+                          <div>{{ item.Tue_N.patient }}</div>
245
+                          <div v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</div>
246
+                      </span>
247
+                  </td>
248
+                  <td style="min-width:50px;">
249
+                      <span v-if="item.Wed_M.patient_id">
250
+                          <div>{{ item.Wed_M.patient }}</div>
251
+                          <div v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</div>
252
+                      </span>
253
+                  </td>
254
+                  <td style="min-width:50px;">
255
+                      <span v-if="item.Wed_A.patient_id">
256
+                          <div>{{ item.Wed_A.patient }}</div>
257
+                          <div v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</div>
258
+                      </span>
259
+                  </td>
260
+                  <td style="min-width:50px;">
261
+                      <span v-if="item.Wed_N.patient_id">
262
+                          <div>{{ item.Wed_N.patient }}</div>
263
+                          <div v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</div>
264
+                      </span>
265
+                  </td>
266
+                  <td style="min-width:50px;">
267
+                      <span v-if="item.Thurs_M.patient_id">
268
+                          <div>{{ item.Thurs_M.patient }}</div>
269
+                          <div v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</div>
270
+                      </span>
271
+                  </td>
272
+                  <td style="min-width:50px;">
273
+                      <span v-if="item.Thurs_A.patient_id">
274
+                          <div>{{ item.Thurs_A.patient }}</div>
275
+                          <div v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</div>
276
+                      </span>
277
+                  </td>
278
+                  <td style="min-width:50px;">
279
+                      <span v-if="item.Thurs_N.patient_id">
280
+                          <div>{{ item.Thurs_N.patient }}</div>
281
+                          <div v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</div>
282
+                      </span>
283
+                  </td>
284
+                  <td style="min-width:50px;">
285
+                      <span v-if="item.Fri_M.patient_id">
286
+                          <div>{{ item.Fri_M.patient }}</div>
287
+                          <div v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</div>
288
+                      </span>
289
+                  </td>
290
+                  <td style="min-width:50px;">
291
+                      <span v-if="item.Fri_A.patient_id">
292
+                          <div>{{ item.Fri_A.patient }}</div>
293
+                          <div v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</div>
294
+                      </span>
295
+                  </td>
296
+                  <td style="min-width:50px;">
297
+                      <span v-if="item.Fri_N.patient_id">
298
+                          <div>{{ item.Fri_N.patient }}</div>
299
+                          <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
300
+                      </span>
301
+                  </td>
302
+                  <td style="min-width:50px;">
303
+                      <span v-if="item.Sat_M.patient_id">
304
+                          <div>{{ item.Sat_M.patient }}</div>
305
+                          <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
306
+                      </span>
307
+                  </td>
308
+                  <td style="min-width:50px;">
309
+                      <span v-if="item.Sat_A.patient_id">
310
+                          <div>{{ item.Sat_A.patient }}</div>
311
+                          <div v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</div>
312
+                      </span>
313
+                  </td>
314
+                  <td style="min-width:50px;">
315
+                      <span v-if="item.Sat_N.patient_id">
316
+                          <div>{{ item.Sat_N.patient }}</div>
317
+                          <div v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</div>
318
+                      </span>
319
+                  </td>
320
+                  <td style="min-width:50px;">
321
+                      <span v-if="item.Sun_M.patient_id">
322
+                          <div>{{ item.Sun_M.patient }}</div>
323
+                          <div v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }}</div>
324
+                      </span>
325
+                  </td>
326
+                  <td style="min-width:50px;">
327
+                      <span v-if="item.Sun_A.patient_id">
328
+                          <div>{{ item.Sun_A.patient }}</div>
329
+                          <div v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }}</div>
330
+                      </span>
331
+                  </td>
332
+                  <td style="min-width:50px;">
333
+                      <span v-if="item.Sun_N.patient_id">
334
+                          <div>{{ item.Sun_N.patient }}</div>
335
+                          <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</div>
336
+                      </span>
337
+                  </td>
338
+                  <td>{{item.total}}</td>
339
+                </template>
174 340
             </tr>
175 341
         </table>
176 342
 
177 343
          <!-- 选择天数打印 -->
178 344
         <table
179
-            v-if="$route.query.week_date !=''"
345
+            v-if="$route.query.week_date !='' "
180 346
             id="scheduleTable" class="scheduleTable"
181 347
             border="1" cellspacing="0"
182 348
             style="margin: auto; font-size: 18px;"
@@ -194,140 +360,338 @@
194 360
                 <td rowspan="2">总数</td>
195 361
             </tr>
196 362
             <tr v-for="index in week_date.length" :key="index">
197
-                <td>上午</td>
198
-                <td>下午</td>
199
-                <td>晚上</td>
363
+              <template v-if="schedule_type==0">
364
+                <td >上午</td>
365
+                <td >下午</td>
366
+                <td >晚上</td>
367
+              </template>
368
+              <template v-else>
369
+                <td colspan="3" v-if="schedule_type == 1">上午</td>
370
+                <td colspan="3" v-if="schedule_type == 2">下午</td>
371
+                <td colspan="3" v-if="schedule_type == 3">晚上</td>
372
+              </template>
373
+            </tr>
374
+
375
+            <!-- <tr v-if="schedule_type == 0 ">
376
+                <td v-if="$route.query.week_date =='周一'">上午</td>
377
+                <td v-if="$route.query.week_date =='周一'">下午</td>
378
+                <td v-if="$route.query.week_date =='周一'">晚上</td>
379
+                <td v-if="$route.query.week_date =='周二'">上午</td>
380
+                <td v-if="$route.query.week_date =='周二'">下午</td>
381
+                <td v-if="$route.query.week_date =='周二'">晚上</td>
382
+                <td v-if="$route.query.week_date =='周三'">上午</td>
383
+                <td v-if="$route.query.week_date =='周三'">下午</td>
384
+                <td v-if="$route.query.week_date =='周三'">晚上</td>
385
+                <td  v-if="$route.query.week_date =='周四'">上午</td>
386
+                <td  v-if="$route.query.week_date =='周四'">下午</td>
387
+                <td  v-if="$route.query.week_date =='周四'">晚上</td>
388
+                <td v-if="$route.query.week_date =='周五'">上午</td>
389
+                <td v-if="$route.query.week_date =='周五'">下午</td>
390
+                <td v-if="$route.query.week_date =='周五'">晚上</td>
391
+                <td  v-if="$route.query.week_date =='周六'">上午</td>
392
+                <td  v-if="$route.query.week_date =='周六'">下午</td>
393
+                <td  v-if="$route.query.week_date =='周六'">晚上</td>
394
+                <td v-if="$route.query.week_date =='周日'">上午</td>
395
+                <td v-if="$route.query.week_date =='周日'">下午</td>
396
+                <td v-if="$route.query.week_date =='周日'">晚上</td>
200 397
             </tr>
398
+            <tr v-else> 
399
+                <td colspan="3" v-if="$route.query.week_date =='周一' && schedule_type==1">上午</td>
400
+                <td colspan="3" v-if="$route.query.week_date =='周一' && schedule_type==2">下午</td>
401
+                <td colspan="3" v-if="$route.query.week_date =='周一' && schedule_type==3">晚上</td>
402
+                <td colspan="3" v-if="$route.query.week_date =='周二' && schedule_type==1">上午</td>
403
+                <td colspan="3" v-if="$route.query.week_date =='周二' && schedule_type==2">下午</td>
404
+                <td colspan="3" v-if="$route.query.week_date =='周二' && schedule_type==3">晚上</td>
405
+                <td colspan="3" v-if="$route.query.week_date =='周三' && schedule_type==1">上午</td>
406
+                <td colspan="3" v-if="$route.query.week_date =='周三' && schedule_type==2">下午</td>
407
+                <td colspan="3" v-if="$route.query.week_date =='周三' && schedule_type==3">晚上</td>
408
+                <td colspan="3" v-if="$route.query.week_date =='周四' && schedule_type==1">上午</td>
409
+                <td colspan="3" v-if="$route.query.week_date =='周四' && schedule_type==2">下午</td>
410
+                <td colspan="3" v-if="$route.query.week_date =='周四' && schedule_type==3">晚上</td>
411
+                <td colspan="3" v-if="$route.query.week_date =='周五' && schedule_type==1">上午</td>
412
+                <td colspan="3" v-if="$route.query.week_date =='周五' && schedule_type==2">下午</td>
413
+                <td colspan="3" v-if="$route.query.week_date =='周五' && schedule_type==3">晚上</td>
414
+                <td colspan="3" v-if="$route.query.week_date =='周六' && schedule_type==1">上午</td>
415
+                <td colspan="3" v-if="$route.query.week_date =='周六' && schedule_type==2">下午</td>
416
+                <td colspan="3" v-if="$route.query.week_date =='周六' && schedule_type==3">晚上</td>
417
+                <td colspan="3" v-if="$route.query.week_date =='周日' && schedule_type==1">上午</td>
418
+                <td colspan="3" v-if="$route.query.week_date =='周日' && schedule_type==2">下午</td>
419
+                <td colspan="3" v-if="$route.query.week_date =='周日' && schedule_type==3">晚上</td>
420
+            </tr> -->
421
+
201 422
             <tr v-for="(item,index) in scheduleZone" :key="index">
202 423
                 <td style="min-width:180px;">{{ item.area }}</td>
203 424
                 <td style="min-width:180px;">{{ item.cut }}</td>
204
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周一'">
425
+                <!-- 上午 -->
426
+                <template v-if="schedule_type == 1"> 
427
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周一'">
205 428
                     <span v-if="item.Mon_M.patient_id ">
206 429
                         <span>{{ item.Mon_M.patient }}</span>
207 430
                         <span v-if="item.Mon_M.mode_name != 'HD'">{{ item.Mon_M.mode_name }}</span>
208 431
                     </span>
209
-                </td>
210
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周一'">
211
-                    <span v-if="item.Mon_A.patient_id ">
212
-                        <span>{{ item.Mon_A.patient }}</span>
213
-                        <span v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</span>
214
-                    </span>
215
-                </td>
216
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周一'">
217
-                    <span v-if="item.Mon_N.patient_id ">
218
-                        <span>{{ item.Mon_N.patient }}</span>
219
-                        <span v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</span>
220
-                    </span>
221
-                </td>
222
-                <td style="min-width:180px;padding: auto;" v-if="$route.query.week_date =='周二'">
432
+                  </td>
433
+                  <td colspan="3" style="min-width:180px;padding: auto;" v-if="$route.query.week_date =='周二'">
223 434
                     <p v-if="item.Tue_M.patient_id" style="padding: auto;margin: auto;">
224 435
                         <span>{{ item.Tue_M.patient }}</span>
225 436
                         <span v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</span>
226 437
                     </p>
227
-                </td>
228
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
229
-                    <span v-if="item.Tue_A.patient_id ">
230
-                        <span>{{ item.Tue_A.patient }}</span>
231
-                        <span v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</span>
232
-                    </span>
233
-                </td>
234
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
235
-                    <span v-if="item.Tue_N.patient_id ">
236
-                        <span>{{ item.Tue_N.patient }}</span>
237
-                        <span v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</span>
238
-                    </span>
239
-                </td>
240
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周三'">
438
+                  </td>
439
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周三'">
241 440
                     <span v-if="item.Wed_M.patient_id ">
242 441
                         <span>{{ item.Wed_M.patient }}</span>
243 442
                         <span v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</span>
244 443
                     </span>
245
-                </td>
246
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周三'">
247
-                    <span v-if="item.Wed_A.patient_id ">
248
-                        <span>{{ item.Wed_A.patient }}</span>
249
-                        <span v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</span>
250
-                    </span>
251
-                </td>
252
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周三'">
253
-                    <span v-if="item.Wed_N.patient_id ">
254
-                        <span>{{ item.Wed_N.patient }}</span>
255
-                        <span v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</span>
256
-                    </span>
257
-                </td>
258
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
259
-                    <span v-if="item.Thurs_M.patient_id ">
260
-                        <span>{{ item.Thurs_M.patient }}</span>
261
-                        <span v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</span>
262
-                    </span>
263
-                </td>
264
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
265
-                    <span v-if="item.Thurs_A.patient_id ">
266
-                        <span>{{ item.Thurs_A.patient }}</span>
267
-                        <span v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</span>
268
-                    </span>
269
-                </td>
270
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
271
-                    <span v-if="item.Thurs_N.patient_id ">
272
-                        <span>{{ item.Thurs_N.patient }}</span>
273
-                        <span v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</span>
274
-                    </span>
275
-                </td>
276
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
277
-                    <span v-if="item.Fri_M.patient_id">
278
-                        <span>{{ item.Fri_M.patient }}</span>
279
-                        <span v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</span>
280
-                    </span>
281
-                </td>
282
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
283
-                    <span v-if="item.Fri_A.patient_id ">
284
-                        <span>{{ item.Fri_A.patient }}</span>
285
-                        <span v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</span>
286
-                    </span>
287
-                </td>
288
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
289
-                    <span v-if="item.Fri_N.patient_id ">
290
-                        <span>{{ item.Fri_N.patient }}</span>
291
-                        <span v-if="item.Fri_N.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
292
-                    </span>
293
-                </td>
294
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
295
-                    <span v-if="item.Sat_M.patient_id ">
296
-                        <span>{{ item.Sat_M.patient }}</span>
297
-                        <span v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
298
-                    </span>
299
-                </td>
300
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
301
-                    <span v-if="item.Sat_A.patient_id ">
302
-                        <span>{{ item.Sat_A.patient }}</span>
303
-                        <span v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</span>
304
-                    </span>
305
-                </td>
306
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
307
-                    <span v-if="item.Sat_N.patient_id ">
308
-                        <span>{{ item.Sat_N.patient }}</span>
309
-                        <span v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</span>
310
-                    </span>
311
-                </td>
312
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周日'">
313
-                    <span v-if="item.Sun_M.patient_id ">
314
-                        <span>{{ item.Sun_M.patient }}</span>
315
-                        <span v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }}</span>
316
-                    </span>
317
-                </td>
318
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周日'">
319
-                    <span v-if="item.Sun_A.patient_id ">
320
-                        <span>{{ item.Sun_A.patient }}</span>
321
-                        <span v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }}</span>
322
-                    </span>
323
-                </td>
324
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周日'">
325
-                    <span v-if="item.Sun_N.patient_id ">
326
-                        <span>{{ item.Sun_N.patient }}</span>
327
-                        <span v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</span>
444
+                  </td>
445
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周四'">
446
+                      <span v-if="item.Thurs_M.patient_id ">
447
+                          <span>{{ item.Thurs_M.patient }}</span>
448
+                          <span v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</span>
449
+                      </span>
450
+                  </td>
451
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周五'">
452
+                      <span v-if="item.Fri_M.patient_id">
453
+                          <span>{{ item.Fri_M.patient }}</span>
454
+                          <span v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</span>
455
+                      </span>
456
+                  </td>
457
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周六'">
458
+                      <span v-if="item.Sat_M.patient_id ">
459
+                          <span>{{ item.Sat_M.patient }}</span>
460
+                          <span v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
461
+                      </span>
462
+                  </td>
463
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周日'">
464
+                      <span v-if="item.Sun_M.patient_id ">
465
+                          <span>{{ item.Sun_M.patient }}</span>
466
+                          <span v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }}</span>
467
+                      </span>
468
+                  </td>
469
+                  <td style="min-width:60px;">{{item.total}}</td>
470
+                </template>
471
+                <!-- 下午 -->
472
+                <template v-if="schedule_type == 2">
473
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周一'">
474
+                      <span v-if="item.Mon_A.patient_id ">
475
+                          <span>{{ item.Mon_A.patient }}</span>
476
+                          <span v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</span>
477
+                      </span>
478
+                  </td>
479
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周二'">
480
+                      <span v-if="item.Tue_A.patient_id ">
481
+                          <span>{{ item.Tue_A.patient }}</span>
482
+                          <span v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</span>
483
+                      </span>
484
+                  </td>
485
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周三'">
486
+                      <span v-if="item.Wed_A.patient_id ">
487
+                          <span>{{ item.Wed_A.patient }}</span>
488
+                          <span v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</span>
489
+                      </span>
490
+                  </td>
491
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周四'">
492
+                      <span v-if="item.Thurs_A.patient_id ">
493
+                          <span>{{ item.Thurs_A.patient }}</span>
494
+                          <span v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</span>
495
+                      </span>
496
+                  </td>
497
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周五'">
498
+                      <span v-if="item.Fri_A.patient_id ">
499
+                          <span>{{ item.Fri_A.patient }}</span>
500
+                          <span v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</span>
501
+                      </span>
502
+                  </td>
503
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周六'">
504
+                      <span v-if="item.Sat_A.patient_id ">
505
+                          <span>{{ item.Sat_A.patient }}</span>
506
+                          <span v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</span>
507
+                      </span>
508
+                  </td>
509
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周日'">
510
+                      <span v-if="item.Sun_A.patient_id ">
511
+                          <span>{{ item.Sun_A.patient }}</span>
512
+                          <span v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }}</span>
513
+                      </span>
514
+                  </td>
515
+                  <td style="min-width:60px;">{{item.total}}</td>
516
+                </template>
517
+                 <!-- 晚上 -->
518
+                <template v-if="schedule_type == 3">
519
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周一'">
520
+                      <span v-if="item.Mon_N.patient_id ">
521
+                          <span>{{ item.Mon_N.patient }}</span>
522
+                          <span v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</span>
523
+                      </span>
524
+                  </td>
525
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周二'">
526
+                      <span v-if="item.Tue_N.patient_id ">
527
+                          <span>{{ item.Tue_N.patient }}</span>
528
+                          <span v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</span>
529
+                      </span>
530
+                  </td>
531
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周三'">
532
+                      <span v-if="item.Wed_N.patient_id ">
533
+                          <span>{{ item.Wed_N.patient }}</span>
534
+                          <span v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</span>
535
+                      </span>
536
+                  </td>
537
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周四'">
538
+                      <span v-if="item.Thurs_N.patient_id ">
539
+                          <span>{{ item.Thurs_N.patient }}</span>
540
+                          <span v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</span>
541
+                      </span>
542
+                  </td>
543
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周五'">
544
+                      <span v-if="item.Fri_N.patient_id ">
545
+                          <span>{{ item.Fri_N.patient }}</span>
546
+                          <span v-if="item.Fri_N.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
547
+                      </span>
548
+                  </td>
549
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周六'">
550
+                      <span v-if="item.Sat_N.patient_id ">
551
+                          <span>{{ item.Sat_N.patient }}</span>
552
+                          <span v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</span>
553
+                      </span>
554
+                  </td>
555
+                  <td colspan="3" style="min-width:180px;" v-if="$route.query.week_date =='周日'">
556
+                      <span v-if="item.Sun_N.patient_id ">
557
+                          <span>{{ item.Sun_N.patient }}</span>
558
+                          <span v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</span>
559
+                      </span>
560
+                  </td>
561
+                  <td style="min-width:60px;">{{item.total}}</td>
562
+                </template>
563
+
564
+                <template v-if="schedule_type == 0">
565
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周一'">
566
+                    <span v-if="item.Mon_M.patient_id ">
567
+                        <span>{{ item.Mon_M.patient }}</span>
568
+                        <span v-if="item.Mon_M.mode_name != 'HD'">{{ item.Mon_M.mode_name }}</span>
328 569
                     </span>
329
-                </td>
330
-                <td style="min-width:60px;">{{item.total}}</td>
570
+                  </td>
571
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周一'">
572
+                      <span v-if="item.Mon_A.patient_id ">
573
+                          <span>{{ item.Mon_A.patient }}</span>
574
+                          <span v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</span>
575
+                      </span>
576
+                  </td>
577
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周一'">
578
+                      <span v-if="item.Mon_N.patient_id ">
579
+                          <span>{{ item.Mon_N.patient }}</span>
580
+                          <span v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</span>
581
+                      </span>
582
+                  </td>
583
+                  <td style="min-width:180px;padding: auto;" v-if="$route.query.week_date =='周二'">
584
+                      <p v-if="item.Tue_M.patient_id" style="padding: auto;margin: auto;">
585
+                          <span>{{ item.Tue_M.patient }}</span>
586
+                          <span v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</span>
587
+                      </p>
588
+                  </td>
589
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
590
+                      <span v-if="item.Tue_A.patient_id ">
591
+                          <span>{{ item.Tue_A.patient }}</span>
592
+                          <span v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</span>
593
+                      </span>
594
+                  </td>
595
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
596
+                      <span v-if="item.Tue_N.patient_id ">
597
+                          <span>{{ item.Tue_N.patient }}</span>
598
+                          <span v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</span>
599
+                      </span>
600
+                  </td>
601
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周三'">
602
+                      <span v-if="item.Wed_M.patient_id ">
603
+                          <span>{{ item.Wed_M.patient }}</span>
604
+                          <span v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</span>
605
+                      </span>
606
+                  </td>
607
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周三'">
608
+                      <span v-if="item.Wed_A.patient_id ">
609
+                          <span>{{ item.Wed_A.patient }}</span>
610
+                          <span v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</span>
611
+                      </span>
612
+                  </td>
613
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周三'">
614
+                      <span v-if="item.Wed_N.patient_id ">
615
+                          <span>{{ item.Wed_N.patient }}</span>
616
+                          <span v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</span>
617
+                      </span>
618
+                  </td>
619
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
620
+                      <span v-if="item.Thurs_M.patient_id ">
621
+                          <span>{{ item.Thurs_M.patient }}</span>
622
+                          <span v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</span>
623
+                      </span>
624
+                  </td>
625
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
626
+                      <span v-if="item.Thurs_A.patient_id ">
627
+                          <span>{{ item.Thurs_A.patient }}</span>
628
+                          <span v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</span>
629
+                      </span>
630
+                  </td>
631
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
632
+                      <span v-if="item.Thurs_N.patient_id ">
633
+                          <span>{{ item.Thurs_N.patient }}</span>
634
+                          <span v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</span>
635
+                      </span>
636
+                  </td>
637
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
638
+                      <span v-if="item.Fri_M.patient_id">
639
+                          <span>{{ item.Fri_M.patient }}</span>
640
+                          <span v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</span>
641
+                      </span>
642
+                  </td>
643
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
644
+                      <span v-if="item.Fri_A.patient_id ">
645
+                          <span>{{ item.Fri_A.patient }}</span>
646
+                          <span v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</span>
647
+                      </span>
648
+                  </td>
649
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
650
+                      <span v-if="item.Fri_N.patient_id ">
651
+                          <span>{{ item.Fri_N.patient }}</span>
652
+                          <span v-if="item.Fri_N.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
653
+                      </span>
654
+                  </td>
655
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
656
+                      <span v-if="item.Sat_M.patient_id ">
657
+                          <span>{{ item.Sat_M.patient }}</span>
658
+                          <span v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
659
+                      </span>
660
+                  </td>
661
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
662
+                      <span v-if="item.Sat_A.patient_id ">
663
+                          <span>{{ item.Sat_A.patient }}</span>
664
+                          <span v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</span>
665
+                      </span>
666
+                  </td>
667
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
668
+                      <span v-if="item.Sat_N.patient_id ">
669
+                          <span>{{ item.Sat_N.patient }}</span>
670
+                          <span v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</span>
671
+                      </span>
672
+                  </td>
673
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周日'">
674
+                      <span v-if="item.Sun_M.patient_id ">
675
+                          <span>{{ item.Sun_M.patient }}</span>
676
+                          <span v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }}</span>
677
+                      </span>
678
+                  </td>
679
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周日'">
680
+                      <span v-if="item.Sun_A.patient_id ">
681
+                          <span>{{ item.Sun_A.patient }}</span>
682
+                          <span v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }}</span>
683
+                      </span>
684
+                  </td>
685
+                  <td style="min-width:180px;" v-if="$route.query.week_date =='周日'">
686
+                      <span v-if="item.Sun_N.patient_id ">
687
+                          <span>{{ item.Sun_N.patient }}</span>
688
+                          <span v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</span>
689
+                      </span>
690
+                  </td>
691
+                  <td style="min-width:60px;">{{item.total}}</td>
692
+                </template>
693
+               
694
+                
331 695
             </tr>
332 696
         </table>
333 697
     </div>
@@ -372,6 +736,7 @@ export default {
372 736
         this.getAllZones()
373 737
         this.modeOptions = this.$store.getters.treatment_mode;
374 738
         this.partition_id = this.$route.query.partition_id
739
+        this.schedule_type = this.$route.query.schedule_type
375 740
         var newList = []
376 741
         var arr =  this.$route.query.week_date
377 742
 
@@ -379,27 +744,34 @@ export default {
379 744
           var newArr = arr.split(",")
380 745
 
381 746
           if(newArr!=null&&newArr.length > 0){
382
-             for(let i=0;i<newArr.length;i++){
747
+            for(let i=0;i<newArr.length;i++){
383 748
                if(newArr[i] == "周一"){
384 749
                   newList.push(1)
750
+                  this.first_day = 1
385 751
                }
386 752
               if(newArr[i] == "周二"){
387 753
                   newList.push(2)
754
+                  this.second_day = 2
388 755
                }
389 756
               if(newArr[i] == "周三"){
390 757
                   newList.push(3)
758
+                  this.three_day = 3
391 759
                }
392 760
                if(newArr[i] == "周四"){
393 761
                   newList.push(4)
762
+                  this.four_day = 4
394 763
                }
395 764
                if(newArr[i] == "周五"){
396 765
                   newList.push(5)
766
+                  this.five_day = 5
397 767
                }
398 768
               if(newArr[i] == "周六"){
399 769
                   newList.push(6)
770
+                  this.six_day = 6
400 771
                }
401 772
                if(newArr[i] == "周日"){
402 773
                   newList.push(7)
774
+                  this.seven_day = 7
403 775
                }
404 776
              }
405 777
 

+ 1 - 0
src/xt_pages/workforce/scheduleTablePrintOne.vue Dosyayı Görüntüle

@@ -239,6 +239,7 @@ export default {
239 239
         this.getAllZones()
240 240
         this.modeOptions = this.$store.getters.treatment_mode;
241 241
         this.partition_id = this.$route.query.partition_id
242
+        this.schedule_type = this.$route.query.schedule_type
242 243
         var newList = []
243 244
         var arr =  this.$route.query.week_date
244 245
 

+ 440 - 191
src/xt_pages/workforce/scheduleTablePrintTwo.vue Dosyayı Görüntüle

@@ -19,7 +19,7 @@
19 19
                 <td colspan="3" v-if="seven_day == 7">周日({{ weekTitle[6] }})</td>
20 20
                  <!-- <td>总数</td>  -->
21 21
             </tr>
22
-            <tr>
22
+            <tr v-if="schedule_type == 0 ">
23 23
                 <td v-if="first_day == 1">上午</td>
24 24
                 <td v-if="first_day == 1">下午</td>
25 25
                 <td v-if="first_day == 1">晚上</td>
@@ -42,40 +42,44 @@
42 42
                 <td v-if="seven_day == 7">下午</td>
43 43
                 <td v-if="seven_day == 7">晚上</td>
44 44
             </tr>
45
+            <tr v-else> 
46
+                <td colspan="3" v-if="first_day == 1 && schedule_type==1">上午</td>
47
+                <td colspan="3" v-if="first_day == 1 && schedule_type==2">下午</td>
48
+                <td colspan="3" v-if="first_day == 1 && schedule_type==3">晚上</td>
49
+                <td colspan="3" v-if="second_day == 2 && schedule_type==1">上午</td>
50
+                <td colspan="3" v-if="second_day == 2 && schedule_type==2">下午</td>
51
+                <td colspan="3" v-if="second_day == 2 && schedule_type==3">晚上</td>
52
+                <td colspan="3" v-if="three_day == 3 && schedule_type==1">上午</td>
53
+                <td colspan="3" v-if="three_day == 3 && schedule_type==2">下午</td>
54
+                <td colspan="3" v-if="three_day == 3 && schedule_type==3">晚上</td>
55
+                <td colspan="3" v-if="four_day == 4 && schedule_type==1">上午</td>
56
+                <td colspan="3" v-if="four_day == 4 && schedule_type==2">下午</td>
57
+                <td colspan="3" v-if="four_day == 4 && schedule_type==3">晚上</td>
58
+                <td colspan="3" v-if="five_day == 5 && schedule_type==1">上午</td>
59
+                <td colspan="3" v-if="five_day == 5 && schedule_type==2">下午</td>
60
+                <td colspan="3" v-if="five_day == 5 && schedule_type==3">晚上</td>
61
+                <td colspan="3" v-if="six_day == 6 && schedule_type==1">上午</td>
62
+                <td colspan="3" v-if="six_day == 6 && schedule_type==2">下午</td>
63
+                <td colspan="3" v-if="six_day == 6 && schedule_type==3">晚上</td>
64
+                <td colspan="3" v-if="seven_day == 7 && schedule_type==1">上午</td>
65
+                <td colspan="3" v-if="seven_day == 7 && schedule_type==2">下午</td>
66
+                <td colspan="3" v-if="seven_day == 7 && schedule_type==3">晚上</td>
67
+            </tr>
45 68
             <tr v-for="(item,index) in scheduleZone" :key="index">
46 69
                 <td style="min-width:50px;">{{ item.area }}</td>
47 70
                 <td style="min-width:50px;">{{ item.cut }}</td>
48
-                <td style="min-width:50px;" v-if="first_day == 1">
49
-                  <span v-if="item.Mon_M.patient_id">
50
-                    <span>{{ item.Mon_M.patient }} </span><br/>
51
-                    <span >{{ item.Mon_M.mode_name }}</span><br/>
52
-                    <!-- <span v-if="org_id ==0">{{getAnticoagulant(item.Mon_M.anticoagulant)}}</span> -->
53
-                    <span v-show="showflag">{{item.Mon_M.dialysis_machine_name}}
54
-                   
55
-                    </span>
56
-                  </span>
57
-                </td>
58
-                <td style="min-width:50px;" v-if="first_day == 1">
59
-                  <span v-if="item.Mon_A.patient_id">
60
-                    <span>{{ item.Mon_A.patient }} </span><br/>
61
-                    <span >{{ item.Mon_A.mode_name }}</span><br/>
62
-                     <!-- <span v-if="org_id == 0">{{getAnticoagulant(item.Mon_A.anticoagulant)  }}</span> -->
63
-                    <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}
71
+                <!-- 上午 -->
72
+                <template v-if="schedule_type ==1">
73
+                  <td colspan="3" style="min-width:50px;" v-if="first_day == 1">
74
+                    <span v-if="item.Mon_M.patient_id">
75
+                      <span>{{ item.Mon_M.patient }} </span><br/>
76
+                      <span >{{ item.Mon_M.mode_name }}</span><br/>
64 77
                      
78
+                      <span v-show="showflag">{{item.Mon_M.dialysis_machine_name}}
79
+                      </span>
65 80
                     </span>
66
-                  </span>
67
-                </td>
68
-                <td style="min-width:50px;" v-if="first_day == 1" >
69
-                    <span v-if="item.Mon_N.patient_id">
70
-                        <span>{{ item.Mon_N.patient }} </span><br/>
71
-                        <span >{{ item.Mon_N.mode_name }}</span><br/>
72
-                        <span v-if="org_id == 0">{{getAnticoagulant(item.Mon_N.anticoagulant)  }}</span>
73
-                        <span v-show="showflag">{{item.Mon_N.dialysis_machine_name}}
74
-                         
75
-                        </span>
76
-                    </span>
77
-                </td>
78
-                <td style="min-width:50px;"  v-if="second_day == 2">
81
+                  </td>
82
+                  <td colspan="3" style="min-width:50px;"  v-if="second_day == 2">
79 83
                     <span v-if="item.Tue_M.patient_id">
80 84
                         <span>{{ item.Tue_M.patient }} </span><br/>
81 85
                         <span >{{ item.Tue_M.mode_name }}</span><br/>
@@ -84,180 +88,423 @@
84 88
                          
85 89
                         </span>
86 90
                     </span>
87
-                </td>
88
-                <td style="min-width:50px;"  v-if="second_day == 2">
89
-                    <span v-if="item.Tue_A.patient_id">
90
-                      <span>{{ item.Tue_A.patient }} </span><br/>
91
-                        <span >{{ item.Tue_A.mode_name }}</span><br/>
92
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Tue_A.anticoagulant)}}</span>
93
-                        <span v-show="showflag">{{item.Tue_A.dialysis_machine_name}}
94
-                         
95
-                        </span>
96
-
97
-                    </span>
98
-                </td>
99
-                <td style="min-width:50px;"  v-if="second_day == 2">
100
-                    <span v-if="item.Tue_N.patient_id">
101
-                      <span>{{ item.Tue_N.patient }} </span><br/>
102
-                        <span >{{ item.Tue_N.mode_name }}</span><br/>
103
-                        <span v-if="org_id==0">{{getAnticoagulant(item.Tue_N.anticoagulant)  }}</span>
104
-                        <span v-show="showflag">{{item.Tue_N.dialysis_machine_name}}
91
+                  </td>
92
+                  <td colspan="3" style="min-width:50px;" v-if="three_day == 3">
93
+                      <span v-if="item.Wed_M.patient_id">
94
+                        <span>{{ item.Wed_M.patient }} </span><br/>
95
+                          <span >{{ item.Wed_M.mode_name }}</span><br/>
96
+                          <span v-if="org_id == 0">{{getAnticoagulant(item.Wed_M.anticoagulant)  }}</span>
97
+                          <span v-show="showflag">{{item.Wed_M.dialysis_machine_name}}
98
+                            
99
+                          </span>
100
+                      </span>
101
+                  </td>
102
+                  <td colspan="3" style="min-width:50px;" v-if="four_day == 4">
103
+                      <span v-if="item.Thurs_M.patient_id">
104
+                        <span>{{ item.Thurs_M.patient }} </span><br/>
105
+                          <span >{{ item.Thurs_M.mode_name }}</span><br/>
106
+                          <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_M.anticoagulant) }}</span>
107
+                          <span v-show="showflag">{{item.Thurs_M.dialysis_machine_name}}
105 108
                           
106
-                        </span>
107
-                    </span>
108
-                </td>
109
-                <td style="min-width:50px;" v-if="three_day == 3">
110
-                    <span v-if="item.Wed_M.patient_id">
111
-                      <span>{{ item.Wed_M.patient }} </span><br/>
112
-                        <span >{{ item.Wed_M.mode_name }}</span><br/>
113
-                        <span v-if="org_id == 0">{{getAnticoagulant(item.Wed_M.anticoagulant)  }}</span>
114
-                        <span v-show="showflag">{{item.Wed_M.dialysis_machine_name}}
109
+                          </span>
110
+                      </span>
111
+                  </td>
112
+                  <td colspan="3" style="min-width:50px;" v-if="five_day == 5">
113
+                      <span v-if="item.Fri_M.patient_id">
114
+                        <span>{{ item.Fri_M.patient }} </span><br/>
115
+                          <span >{{ item.Fri_M.mode_name }}</span><br/>
116
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Fri_M.anticoagulant) }} </span>
117
+                          <span v-show="showflag">{{item.Fri_M.dialysis_machine_name}}
118
+                            
119
+                          </span>
120
+                      </span>
121
+                  </td>
122
+                  <td colspan="3" style="min-width:50px;" v-if="six_day == 6">
123
+                      <span v-if="item.Sat_M.patient_id">
124
+                        <span>{{ item.Sat_M.patient }} </span><br/>
125
+                          <span >{{ item.Sat_M.mode_name }}</span><br/>
126
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_M.anticoagulant) }}</span> 
127
+                          <span v-show="showflag">{{item.Sat_M.dialysis_machine_name}}
115 128
                           
116
-                        </span>
117
-                    </span>
118
-                </td>
119
-                <td style="min-width:50px;" v-if="three_day == 3">
120
-                    <span v-if="item.Wed_A.patient_id">
121
-                      <span>{{ item.Wed_A.patient }} </span><br/>
122
-                        <span >{{ item.Wed_A.mode_name }}</span><br/>
123
-                        <span v-if="org_id ==0">{{getAnticoagulant(item.Wed_A.anticoagulant)}}</span>
124
-                        <span v-show="showflag">{{item.Wed_A.dialysis_machine_name}}
125
-                         
126
-                        </span>
127
-                    </span>
128
-                </td>
129
-                <td style="min-width:50px;" v-if="three_day == 3">
130
-                    <span v-if="item.Wed_N.patient_id">
131
-                      <span>{{ item.Wed_N.patient }} </span><br/>
132
-                        <span >{{ item.Wed_N.mode_name }}</span><br/>
133
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Wed_N.anticoagulant) }}</span>
134
-                        <span v-show="showflag">{{item.Wed_N.dialysis_machine_name}}
135
-                         
136
-                        </span>
137
-                    </span>
138
-                </td>
139
-                <td style="min-width:50px;" v-if="four_day == 4">
140
-                    <span v-if="item.Thurs_M.patient_id">
141
-                      <span>{{ item.Thurs_M.patient }} </span><br/>
142
-                        <span >{{ item.Thurs_M.mode_name }}</span><br/>
143
-                        <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_M.anticoagulant) }}</span>
144
-                        <span v-show="showflag">{{item.Thurs_M.dialysis_machine_name}}
145
-                         
146
-                        </span>
147
-                    </span>
148
-                </td>
149
-                <td style="min-width:50px;" v-if="four_day == 4">
150
-                    <span v-if="item.Thurs_A.patient_id">
151
-                      <span>{{ item.Thurs_A.patient }} </span><br/>
152
-                        <span >{{ item.Thurs_A.mode_name }}</span><br/>
153
-                        <span v-if="org_id ==0">{{getAnticoagulant(item.Thurs_A.anticoagulant) }}</span> 
154
-
155
-                        <span v-show="showflag">{{item.Thurs_A.dialysis_machine_name}}
156
-                        
157
-                        </span>
158
-                    </span>
159
-                </td>
160
-                <td style="min-width:50px;" v-if="four_day == 4">
161
-                    <span v-if="item.Thurs_N.patient_id">
162
-                      <span>{{ item.Thurs_N.patient }} </span><br/>
163
-                        <span >{{ item.Thurs_N.mode_name }}</span><br/>
164
-                        <span v-if="org_id ==0" >{{ getAnticoagulant(item.Thurs_N.anticoagulant) }}</span> 
165
-                        <span v-show="showflag">{{item.Thurs_N.dialysis_machine_name}}
166
-                         
167
-                        </span>
168
-                    </span>
169
-                </td>
170
-                <td style="min-width:50px;" v-if="five_day == 5">
171
-                    <span v-if="item.Fri_M.patient_id">
172
-                      <span>{{ item.Fri_M.patient }} </span><br/>
173
-                        <span >{{ item.Fri_M.mode_name }}</span><br/>
174
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Fri_M.anticoagulant) }} </span>
175
-                        <span v-show="showflag">{{item.Fri_M.dialysis_machine_name}}
129
+                          </span>
130
+                      </span>
131
+                  </td>
132
+                  <td colspan="3" style="min-width:50px;" v-if="seven_day == 7">
133
+                      <span v-if="item.Sun_M.patient_id">
134
+                        <span>{{ item.Sun_M.patient }} </span><br/>
135
+                          <span >{{ item.Sun_M.mode_name }}</span><br/>
136
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sun_M.anticoagulant) }}</span>
137
+                          <span v-show="showflag">{{item.Sun_M.dialysis_machine_name}}
176 138
                           
177
-                        </span>
139
+                          </span>
140
+                      </span>
141
+                  </td>
142
+                </template>
143
+                <!-- 下午 -->
144
+                <template v-if="schedule_type ==2">
145
+                  <td colspan="3" style="min-width:50px;" v-if="first_day == 1">
146
+                    <span v-if="item.Mon_A.patient_id">
147
+                      <span>{{ item.Mon_A.patient }} </span><br/>
148
+                      <span >{{ item.Mon_A.mode_name }}</span><br/>
149
+                      <span v-if="org_id ==0">{{getAnticoagulant(item.Mon_M.anticoagulant)}}</span>
150
+                      <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}
151
+                      </span>
178 152
                     </span>
179
-                </td>
180
-                <td style="min-width:50px;" v-if="five_day == 5">
181
-                    <span v-if="item.Fri_A.patient_id">
182
-                      <span>{{ item.Fri_A.patient }} </span><br/>
183
-                        <span >{{ item.Fri_A.mode_name }}</span><br/>
184
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Fri_A.anticoagulant) }}</span> 
185
-                        <span v-show="showflag">{{item.Fri_A.dialysis_machine_name}}
153
+                  </td>
154
+                  <td colspan="3" style="min-width:50px;"  v-if="second_day == 2">
155
+                      <span v-if="item.Tue_A.patient_id">
156
+                        <span>{{ item.Tue_A.patient }} </span><br/>
157
+                          <span >{{ item.Tue_A.mode_name }}</span><br/>
158
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Tue_A.anticoagulant)}}</span>
159
+                          <span v-show="showflag">{{item.Tue_A.dialysis_machine_name}}
186 160
                           
187
-                        </span>
188
-                    </span>
189
-                </td>
190
-                <td style="min-width:50px;" v-if="five_day == 5">
191
-                    <span v-if="item.Fri_N.patient_id">
192
-                      <span>{{ item.Fri_N.patient }} </span><br/>
193
-                        <span >{{ item.Fri_N.mode_name }}</span><br/>
194
-                        <span v-if="org_id == 0">{{getAnticoagulant(item.Fri_N.anticoagulant)  }}</span>
195
-                        <span v-show="showflag">{{item.Fri_N.dialysis_machine_name}}
161
+                          </span>
162
+
163
+                      </span>
164
+                  </td>
165
+                  <td colspan="3" style="min-width:50px;" v-if="three_day == 3">
166
+                      <span v-if="item.Wed_A.patient_id">
167
+                        <span>{{ item.Wed_A.patient }} </span><br/>
168
+                          <span >{{ item.Wed_A.mode_name }}</span><br/>
169
+                          <span v-if="org_id ==0">{{getAnticoagulant(item.Wed_A.anticoagulant)}}</span>
170
+                          <span v-show="showflag">{{item.Wed_A.dialysis_machine_name}}
196 171
                           
197
-                        </span>
198
-                    </span>
199
-                </td>
200
-                <td style="min-width:50px;" v-if="six_day == 6">
201
-                    <span v-if="item.Sat_M.patient_id">
202
-                      <span>{{ item.Sat_M.patient }} </span><br/>
203
-                        <span >{{ item.Sat_M.mode_name }}</span><br/>
204
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_M.anticoagulant) }}</span> 
205
-                        <span v-show="showflag">{{item.Sat_M.dialysis_machine_name}}
206
-                         
207
-                        </span>
208
-                    </span>
209
-                </td>
210
-                <td style="min-width:50px;" v-if="six_day == 6">
211
-                    <span v-if="item.Sat_A.patient_id">
212
-                      <span>{{ item.Sat_A.patient }} </span><br/>
213
-                        <span >{{ item.Sat_A.mode_name }}</span><br/>
214
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_A.anticoagulant) }}</span> 
215
-                        <span v-show="showflag">{{item.Sat_A.dialysis_machine_name}}
172
+                          </span>
173
+                      </span>
174
+                  </td>
175
+                  <td colspan="3" style="min-width:50px;" v-if="four_day == 4">
176
+                      <span v-if="item.Thurs_A.patient_id">
177
+                        <span>{{ item.Thurs_A.patient }} </span><br/>
178
+                          <span >{{ item.Thurs_A.mode_name }}</span><br/>
179
+                          <span v-if="org_id ==0">{{getAnticoagulant(item.Thurs_A.anticoagulant) }}</span> 
180
+
181
+                          <span v-show="showflag">{{item.Thurs_A.dialysis_machine_name}}
216 182
                           
217
-                        </span>
183
+                          </span>
184
+                      </span>
185
+                  </td>
186
+                  <td colspan="3" style="min-width:50px;" v-if="five_day == 5">
187
+                      <span v-if="item.Fri_A.patient_id">
188
+                        <span>{{ item.Fri_A.patient }} </span><br/>
189
+                          <span >{{ item.Fri_A.mode_name }}</span><br/>
190
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Fri_A.anticoagulant) }}</span> 
191
+                          <span v-show="showflag">{{item.Fri_A.dialysis_machine_name}}
192
+                            
193
+                          </span>
194
+                      </span>
195
+                  </td>
196
+                  <td colspan="3" style="min-width:50px;" v-if="six_day == 6">
197
+                      <span v-if="item.Sat_A.patient_id">
198
+                        <span>{{ item.Sat_A.patient }} </span><br/>
199
+                          <span >{{ item.Sat_A.mode_name }}</span><br/>
200
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_A.anticoagulant) }}</span> 
201
+                          <span v-show="showflag">{{item.Sat_A.dialysis_machine_name}}
202
+                            
203
+                          </span>
204
+                      </span>
205
+                  </td>
206
+                  <td colspan="3" style="min-width:50px;" v-if="seven_day == 7">
207
+                      <span v-if="item.Sun_A.patient_id">
208
+                        <span>{{ item.Sun_A.patient }} </span><br/>
209
+                          <span >{{ item.Sun_A.mode_name }}</span><br/>
210
+                          <span v-if="org_id ==0">{{getAnticoagulant(item.Sun_A.anticoagulant)}}</span>
211
+                          <span v-show="showflag">{{item.Sun_A.dialysis_machine_name}}
212
+                          
213
+                          </span>
214
+
215
+                      </span>
216
+                  </td>
217
+                </template>
218
+                <!-- 晚上 -->
219
+                <template v-if="schedule_type ==3">
220
+                  <td colspan="3" style="min-width:50px;" v-if="first_day == 1">
221
+                    <span v-if="item.Mon_N.patient_id">
222
+                      <span>{{ item.Mon_N.patient }} </span><br/>
223
+                      <span >{{ item.Mon_N.mode_name }}</span><br/>
224
+                      <span v-if="org_id ==0">{{getAnticoagulant(item.Mon_M.anticoagulant)}}</span>
225
+                      <span v-show="showflag">{{item.Mon_N.dialysis_machine_name}}
226
+                      </span>
218 227
                     </span>
219
-                </td>
220
-                <td style="min-width:50px;" v-if="six_day == 6">
221
-                    <span v-if="item.Sat_N.patient_id">
222
-                      <span>{{ item.Sat_N.patient }} </span><br/>
223
-                        <span >{{ item.Sat_N.mode_name }}</span><br/>
224
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_N.anticoagulant) }}</span> 
225
-                        <span v-show="showflag">{{item.Sat_N.dialysis_machine_name}}
226
-                         
227
-                        </span>
228
+                  </td>
229
+                  <td colspan="3" style="min-width:50px;"  v-if="second_day == 2">
230
+                      <span v-if="item.Tue_N.patient_id">
231
+                        <span>{{ item.Tue_N.patient }} </span><br/>
232
+                          <span >{{ item.Tue_N.mode_name }}</span><br/>
233
+                          <span v-if="org_id==0">{{getAnticoagulant(item.Tue_N.anticoagulant)  }}</span>
234
+                          <span v-show="showflag">{{item.Tue_N.dialysis_machine_name}}
235
+                            
236
+                          </span>
237
+                      </span>
238
+                  </td>
239
+                  <td colspan="3" style="min-width:50px;" v-if="three_day == 3">
240
+                      <span v-if="item.Wed_N.patient_id">
241
+                        <span>{{ item.Wed_N.patient }} </span><br/>
242
+                          <span >{{ item.Wed_N.mode_name }}</span><br/>
243
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Wed_N.anticoagulant) }}</span>
244
+                          <span v-show="showflag">{{item.Wed_N.dialysis_machine_name}}
245
+                          
246
+                          </span>
247
+                      </span>
248
+                  </td>
249
+                  <td colspan="3" style="min-width:50px;" v-if="four_day == 4">
250
+                      <span v-if="item.Thurs_N.patient_id">
251
+                        <span>{{ item.Thurs_N.patient }} </span><br/>
252
+                          <span >{{ item.Thurs_N.mode_name }}</span><br/>
253
+                          <span v-if="org_id ==0" >{{ getAnticoagulant(item.Thurs_N.anticoagulant) }}</span> 
254
+                          <span v-show="showflag">{{item.Thurs_N.dialysis_machine_name}}
255
+                          
256
+                          </span>
257
+                      </span>
258
+                  </td>
259
+                  <td colspan="3" style="min-width:50px;" v-if="five_day == 5">
260
+                      <span v-if="item.Fri_N.patient_id">
261
+                        <span>{{ item.Fri_N.patient }} </span><br/>
262
+                          <span >{{ item.Fri_N.mode_name }}</span><br/>
263
+                          <span v-if="org_id == 0">{{getAnticoagulant(item.Fri_N.anticoagulant)  }}</span>
264
+                          <span v-show="showflag">{{item.Fri_N.dialysis_machine_name}}
265
+                            
266
+                          </span>
267
+                      </span>
268
+                  </td>
269
+                  <td colspan="3" style="min-width:50px;" v-if="six_day == 6">
270
+                      <span v-if="item.Sat_N.patient_id">
271
+                        <span>{{ item.Sat_N.patient }} </span><br/>
272
+                          <span >{{ item.Sat_N.mode_name }}</span><br/>
273
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_N.anticoagulant) }}</span> 
274
+                          <span v-show="showflag">{{item.Sat_N.dialysis_machine_name}}
275
+                          
276
+                          </span>
277
+                      </span>
278
+                  </td>
279
+                  <td colspan="3" style="min-width:50px;" v-if="seven_day == 7">
280
+                      <span v-if="item.Sun_N.patient_id">
281
+                        <span>{{ item.Sun_N.patient }} </span><br/>
282
+                          <span >{{ item.Sun_N.mode_name }}</span><br/>
283
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sun_N.anticoagulant ) }}</span>
284
+                          <span v-show="showflag">{{item.Sun_N.dialysis_machine_name}}
285
+                            
286
+                          </span>
287
+                      </span>
288
+                  </td>
289
+                </template>
290
+                <!-- 未选择 -->
291
+                <template v-if="schedule_type == 0">
292
+                  <td style="min-width:50px;" v-if="first_day == 1">
293
+                    <span v-if="item.Mon_M.patient_id">
294
+                      <span>{{ item.Mon_M.patient }} </span><br/>
295
+                      <span >{{ item.Mon_M.mode_name }}</span><br/>
296
+                      <span v-if="org_id ==0">{{getAnticoagulant(item.Mon_M.anticoagulant)}}</span>
297
+                      <span v-show="showflag">{{item.Mon_M.dialysis_machine_name}}
298
+                      </span>
228 299
                     </span>
229
-                </td>
230
-                <td style="min-width:50px;" v-if="seven_day == 7">
231
-                    <span v-if="item.Sun_M.patient_id">
232
-                      <span>{{ item.Sun_M.patient }} </span><br/>
233
-                        <span >{{ item.Sun_M.mode_name }}</span><br/>
234
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Sun_M.anticoagulant) }}</span>
235
-                        <span v-show="showflag">{{item.Sun_M.dialysis_machine_name}}
236
-                         
237
-                        </span>
300
+                  </td>
301
+                  <td style="min-width:50px;" v-if="first_day == 1 ">
302
+                  <span v-if="item.Mon_A.patient_id">
303
+                    <span>{{ item.Mon_A.patient }} </span><br/>
304
+                    <span >{{ item.Mon_A.mode_name }}</span><br/>
305
+                     <span v-if="org_id == 0">{{getAnticoagulant(item.Mon_A.anticoagulant)  }}</span>
306
+                    <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}
307
+                     
238 308
                     </span>
239
-                </td>
240
-                <td style="min-width:50px;" v-if="seven_day == 7">
241
-                    <span v-if="item.Sun_A.patient_id">
242
-                      <span>{{ item.Sun_A.patient }} </span><br/>
243
-                        <span >{{ item.Sun_A.mode_name }}</span><br/>
244
-                        <span v-if="org_id ==0">{{getAnticoagulant(item.Sun_A.anticoagulant)}}</span>
245
-                        <span v-show="showflag">{{item.Sun_A.dialysis_machine_name}}
309
+                  </span>
310
+                  </td>
311
+                  <td style="min-width:50px;" v-if="first_day == 1 " >
312
+                      <span v-if="item.Mon_N.patient_id">
313
+                          <span>{{ item.Mon_N.patient }} </span><br/>
314
+                          <span >{{ item.Mon_N.mode_name }}</span><br/>
315
+                          <span v-if="org_id == 0">{{getAnticoagulant(item.Mon_N.anticoagulant)  }}</span>
316
+                          <span v-show="showflag">{{item.Mon_N.dialysis_machine_name}}
317
+                          
318
+                          </span>
319
+                      </span>
320
+                  </td>
321
+                  <td style="min-width:50px;"  v-if="second_day == 2">
322
+                    <span v-if="item.Tue_M.patient_id">
323
+                        <span>{{ item.Tue_M.patient }} </span><br/>
324
+                        <span >{{ item.Tue_M.mode_name }}</span><br/>
325
+                        <span v-if="org_id==0">{{getAnticoagulant(item.Tue_M.anticoagulant )  }}</span>
326
+                        <span v-show="showflag">{{item.Tue_M.dialysis_machine_name}}
246 327
                          
247 328
                         </span>
248
-
249 329
                     </span>
250
-                </td>
251
-                <td style="min-width:50px;" v-if="seven_day == 7">
252
-                    <span v-if="item.Sun_N.patient_id">
253
-                      <span>{{ item.Sun_N.patient }} </span><br/>
254
-                        <span >{{ item.Sun_N.mode_name }}</span><br/>
255
-                        <span v-if="org_id ==0">{{ getAnticoagulant(item.Sun_N.anticoagulant ) }}</span>
256
-                        <span v-show="showflag">{{item.Sun_N.dialysis_machine_name}}
330
+                  </td>
331
+                  <td style="min-width:50px;"  v-if="second_day == 2">
332
+                      <span v-if="item.Tue_A.patient_id">
333
+                        <span>{{ item.Tue_A.patient }} </span><br/>
334
+                          <span >{{ item.Tue_A.mode_name }}</span><br/>
335
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Tue_A.anticoagulant)}}</span>
336
+                          <span v-show="showflag">{{item.Tue_A.dialysis_machine_name}}
257 337
                           
258
-                        </span>
259
-                    </span>
260
-                </td>
338
+                          </span>
339
+
340
+                      </span>
341
+                  </td>
342
+                  <td style="min-width:50px;"  v-if="second_day == 2">
343
+                      <span v-if="item.Tue_N.patient_id">
344
+                        <span>{{ item.Tue_N.patient }} </span><br/>
345
+                          <span >{{ item.Tue_N.mode_name }}</span><br/>
346
+                          <span v-if="org_id==0">{{getAnticoagulant(item.Tue_N.anticoagulant)  }}</span>
347
+                          <span v-show="showflag">{{item.Tue_N.dialysis_machine_name}}
348
+                            
349
+                          </span>
350
+                      </span>
351
+                  </td>
352
+                  <td style="min-width:50px;" v-if="three_day == 3">
353
+                      <span v-if="item.Wed_M.patient_id">
354
+                        <span>{{ item.Wed_M.patient }} </span><br/>
355
+                          <span >{{ item.Wed_M.mode_name }}</span><br/>
356
+                          <span v-if="org_id == 0">{{getAnticoagulant(item.Wed_M.anticoagulant)  }}</span>
357
+                          <span v-show="showflag">{{item.Wed_M.dialysis_machine_name}}
358
+                            
359
+                          </span>
360
+                      </span>
361
+                  </td>
362
+                  <td style="min-width:50px;" v-if="three_day == 3">
363
+                      <span v-if="item.Wed_A.patient_id">
364
+                        <span>{{ item.Wed_A.patient }} </span><br/>
365
+                          <span >{{ item.Wed_A.mode_name }}</span><br/>
366
+                          <span v-if="org_id ==0">{{getAnticoagulant(item.Wed_A.anticoagulant)}}</span>
367
+                          <span v-show="showflag">{{item.Wed_A.dialysis_machine_name}}
368
+                          
369
+                          </span>
370
+                      </span>
371
+                  </td>
372
+                  <td style="min-width:50px;" v-if="three_day == 3">
373
+                      <span v-if="item.Wed_N.patient_id">
374
+                        <span>{{ item.Wed_N.patient }} </span><br/>
375
+                          <span >{{ item.Wed_N.mode_name }}</span><br/>
376
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Wed_N.anticoagulant) }}</span>
377
+                          <span v-show="showflag">{{item.Wed_N.dialysis_machine_name}}
378
+                          
379
+                          </span>
380
+                      </span>
381
+                  </td>
382
+                  <td style="min-width:50px;" v-if="four_day == 4">
383
+                      <span v-if="item.Thurs_M.patient_id">
384
+                        <span>{{ item.Thurs_M.patient }} </span><br/>
385
+                          <span >{{ item.Thurs_M.mode_name }}</span><br/>
386
+                          <span v-if="org_id == 0">{{ getAnticoagulant(item.Thurs_M.anticoagulant) }}</span>
387
+                          <span v-show="showflag">{{item.Thurs_M.dialysis_machine_name}}
388
+                          
389
+                          </span>
390
+                      </span>
391
+                  </td>
392
+                  <td style="min-width:50px;" v-if="four_day == 4">
393
+                      <span v-if="item.Thurs_A.patient_id">
394
+                        <span>{{ item.Thurs_A.patient }} </span><br/>
395
+                          <span >{{ item.Thurs_A.mode_name }}</span><br/>
396
+                          <span v-if="org_id ==0">{{getAnticoagulant(item.Thurs_A.anticoagulant) }}</span> 
397
+
398
+                          <span v-show="showflag">{{item.Thurs_A.dialysis_machine_name}}
399
+                          
400
+                          </span>
401
+                      </span>
402
+                  </td>
403
+                  <td style="min-width:50px;" v-if="four_day == 4">
404
+                      <span v-if="item.Thurs_N.patient_id">
405
+                        <span>{{ item.Thurs_N.patient }} </span><br/>
406
+                          <span >{{ item.Thurs_N.mode_name }}</span><br/>
407
+                          <span v-if="org_id ==0" >{{ getAnticoagulant(item.Thurs_N.anticoagulant) }}</span> 
408
+                          <span v-show="showflag">{{item.Thurs_N.dialysis_machine_name}}
409
+                          
410
+                          </span>
411
+                      </span>
412
+                  </td>
413
+                  <td style="min-width:50px;" v-if="five_day == 5">
414
+                      <span v-if="item.Fri_M.patient_id">
415
+                        <span>{{ item.Fri_M.patient }} </span><br/>
416
+                          <span >{{ item.Fri_M.mode_name }}</span><br/>
417
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Fri_M.anticoagulant) }} </span>
418
+                          <span v-show="showflag">{{item.Fri_M.dialysis_machine_name}}
419
+                            
420
+                          </span>
421
+                      </span>
422
+                  </td>
423
+                  <td style="min-width:50px;" v-if="five_day == 5">
424
+                      <span v-if="item.Fri_A.patient_id">
425
+                        <span>{{ item.Fri_A.patient }} </span><br/>
426
+                          <span >{{ item.Fri_A.mode_name }}</span><br/>
427
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Fri_A.anticoagulant) }}</span> 
428
+                          <span v-show="showflag">{{item.Fri_A.dialysis_machine_name}}
429
+                            
430
+                          </span>
431
+                      </span>
432
+                  </td>
433
+                  <td style="min-width:50px;" v-if="five_day == 5">
434
+                      <span v-if="item.Fri_N.patient_id">
435
+                        <span>{{ item.Fri_N.patient }} </span><br/>
436
+                          <span >{{ item.Fri_N.mode_name }}</span><br/>
437
+                          <span v-if="org_id == 0">{{getAnticoagulant(item.Fri_N.anticoagulant)  }}</span>
438
+                          <span v-show="showflag">{{item.Fri_N.dialysis_machine_name}}
439
+                            
440
+                          </span>
441
+                      </span>
442
+                  </td>
443
+                  <td style="min-width:50px;" v-if="six_day == 6">
444
+                      <span v-if="item.Sat_M.patient_id">
445
+                        <span>{{ item.Sat_M.patient }} </span><br/>
446
+                          <span >{{ item.Sat_M.mode_name }}</span><br/>
447
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_M.anticoagulant) }}</span> 
448
+                          <span v-show="showflag">{{item.Sat_M.dialysis_machine_name}}
449
+                          
450
+                          </span>
451
+                      </span>
452
+                  </td>
453
+                  <td style="min-width:50px;" v-if="six_day == 6">
454
+                      <span v-if="item.Sat_A.patient_id">
455
+                        <span>{{ item.Sat_A.patient }} </span><br/>
456
+                          <span >{{ item.Sat_A.mode_name }}</span><br/>
457
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_A.anticoagulant) }}</span> 
458
+                          <span v-show="showflag">{{item.Sat_A.dialysis_machine_name}}
459
+                            
460
+                          </span>
461
+                      </span>
462
+                  </td>
463
+                  <td style="min-width:50px;" v-if="six_day == 6">
464
+                      <span v-if="item.Sat_N.patient_id">
465
+                        <span>{{ item.Sat_N.patient }} </span><br/>
466
+                          <span >{{ item.Sat_N.mode_name }}</span><br/>
467
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sat_N.anticoagulant) }}</span> 
468
+                          <span v-show="showflag">{{item.Sat_N.dialysis_machine_name}}
469
+                          
470
+                          </span>
471
+                      </span>
472
+                  </td>
473
+                  <td style="min-width:50px;" v-if="seven_day == 7">
474
+                      <span v-if="item.Sun_M.patient_id">
475
+                        <span>{{ item.Sun_M.patient }} </span><br/>
476
+                          <span >{{ item.Sun_M.mode_name }}</span><br/>
477
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sun_M.anticoagulant) }}</span>
478
+                          <span v-show="showflag">{{item.Sun_M.dialysis_machine_name}}
479
+                          
480
+                          </span>
481
+                      </span>
482
+                  </td>
483
+                  <td style="min-width:50px;" v-if="seven_day == 7">
484
+                      <span v-if="item.Sun_A.patient_id">
485
+                        <span>{{ item.Sun_A.patient }} </span><br/>
486
+                          <span >{{ item.Sun_A.mode_name }}</span><br/>
487
+                          <span v-if="org_id ==0">{{getAnticoagulant(item.Sun_A.anticoagulant)}}</span>
488
+                          <span v-show="showflag">{{item.Sun_A.dialysis_machine_name}}
489
+                          
490
+                          </span>
491
+
492
+                      </span>
493
+                  </td>
494
+                  <td style="min-width:50px;" v-if="seven_day == 7">
495
+                      <span v-if="item.Sun_N.patient_id">
496
+                        <span>{{ item.Sun_N.patient }} </span><br/>
497
+                          <span >{{ item.Sun_N.mode_name }}</span><br/>
498
+                          <span v-if="org_id ==0">{{ getAnticoagulant(item.Sun_N.anticoagulant ) }}</span>
499
+                          <span v-show="showflag">{{item.Sun_N.dialysis_machine_name}}
500
+                            
501
+                          </span>
502
+                      </span>
503
+                  </td>
504
+                </template>
505
+                
506
+                
507
+                
261 508
                 <!-- <td>{{item.total}}</td> -->
262 509
             </tr>
263 510
         </table>
@@ -279,7 +526,7 @@ export default {
279 526
     data(){
280 527
         return{
281 528
             showflag:sessionStorage.getItem('value1'),
282
-            schedule_type:'',
529
+            schedule_type:0,
283 530
             partition_id:'',
284 531
             theType:2,
285 532
             scheduleZone:[],
@@ -311,10 +558,12 @@ export default {
311 558
         }
312 559
     },
313 560
     created(){
561
+      
314 562
         this.org_id = this.$store.getters.xt_user.org.id
315 563
         this.getAllZones()
316 564
         this.modeOptions = this.$store.getters.treatment_mode;
317 565
         this.partition_id = this.$route.query.partition_id
566
+        this.schedule_type = this.$route.query.schedule_type
318 567
         var newList = []
319 568
         var arr =  this.$route.query.week_date
320 569