|
@@ -6,7 +6,7 @@
|
6
|
6
|
<el-button type="primary" @click="printAction">打印</el-button>
|
7
|
7
|
</div>
|
8
|
8
|
<div class="tab" style="margin-top: 10px;">
|
9
|
|
- <table id="scheduleTable" class="scheduleTable" border="1" cellspacing="0" style='width: 100%;table-layout:fixed;text-align: center;'>
|
|
9
|
+ <table id="scheduleTable" class="scheduleTable" border="1" cellspacing="0" style='width: 100%;table-layout:fixed;text-align: center;word-break: break-all;word-wrap: break-word;'>
|
10
|
10
|
<tr>
|
11
|
11
|
<td rowspan="2">分区</td>
|
12
|
12
|
<td rowspan="2">机号</td>
|
|
@@ -46,34 +46,34 @@
|
46
|
46
|
<td style="min-width:50px;">{{ item.area }}</td>
|
47
|
47
|
<td style="min-width:50px;">{{ item.cut }}</td>
|
48
|
48
|
<td style="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-show="showflag">{{item.Mon_M.dialysis_machine_name}}</span>
|
53
|
|
- </span>
|
|
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-show="showflag">{{item.Mon_M.dialysis_machine_name}}</span>
|
|
53
|
+ </span>
|
54
|
54
|
</td>
|
55
|
|
- <td style="width:50px;" v-if="first_day == 1">
|
56
|
|
- <span v-if="item.Mon_A.patient_id">
|
57
|
|
- <span>{{ item.Mon_A.patient }} </span><br/>
|
58
|
|
- <span >{{ item.Mon_A.mode_name }}</span><br/>
|
59
|
|
- <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}</span>
|
60
|
|
- </span>
|
|
55
|
+ <td style="min-width:50px;" v-if="first_day == 1">
|
|
56
|
+ <span v-if="item.Mon_A.patient_id">
|
|
57
|
+ <span>{{ item.Mon_A.patient }} </span><br/>
|
|
58
|
+ <span >{{ item.Mon_A.mode_name }}</span><br/>
|
|
59
|
+ <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}</span>
|
|
60
|
+ </span>
|
61
|
61
|
</td>
|
62
|
|
- <td style="width:50px;" v-if="first_day == 1">
|
|
62
|
+ <td style="min-width:50px;" v-if="first_day == 1">
|
63
|
63
|
<span v-if="item.Mon_N.patient_id">
|
64
|
64
|
<span>{{ item.Mon_N.patient }} </span><br/>
|
65
|
65
|
<span >{{ item.Mon_N.mode_name }}</span><br/>
|
66
|
66
|
<span v-show="showflag">{{item.Mon_N.dialysis_machine_name}}</span>
|
67
|
67
|
</span>
|
68
|
68
|
</td>
|
69
|
|
- <td style="width:50px;" v-if="second_day == 2">
|
|
69
|
+ <td style="min-width:50px;" v-if="second_day == 2">
|
70
|
70
|
<span v-if="item.Tue_M.patient_id">
|
71
|
71
|
<span>{{ item.Tue_M.patient }} </span><br/>
|
72
|
72
|
<span >{{ item.Tue_M.mode_name }}</span><br/>
|
73
|
73
|
<span v-show="showflag">{{item.Tue_M.dialysis_machine_name}}</span>
|
74
|
74
|
</span>
|
75
|
75
|
</td>
|
76
|
|
- <td style="width:50px;" v-if="second_day == 2">
|
|
76
|
+ <td style="min-width:50px;" v-if="second_day == 2">
|
77
|
77
|
<span v-if="item.Tue_A.patient_id">
|
78
|
78
|
<span>{{ item.Tue_A.patient }} </span><br/>
|
79
|
79
|
<span >{{ item.Tue_A.mode_name }}</span><br/>
|
|
@@ -81,105 +81,105 @@
|
81
|
81
|
|
82
|
82
|
</span>
|
83
|
83
|
</td>
|
84
|
|
- <td style="width:50px;" v-if="second_day == 2">
|
|
84
|
+ <td style="min-width:50px;" v-if="second_day == 2">
|
85
|
85
|
<span v-if="item.Tue_N.patient_id">
|
86
|
86
|
<span>{{ item.Tue_N.patient }} </span><br/>
|
87
|
87
|
<span >{{ item.Tue_N.mode_name }}</span><br/>
|
88
|
88
|
<span v-show="showflag">{{item.Tue_N.dialysis_machine_name}}</span>
|
89
|
89
|
</span>
|
90
|
90
|
</td>
|
91
|
|
- <td style="width:50px;" v-if="three_day == 3">
|
|
91
|
+ <td style="min-width:50px;" v-if="three_day == 3">
|
92
|
92
|
<span v-if="item.Wed_M.patient_id">
|
93
|
93
|
<span>{{ item.Wed_M.patient }} </span><br/>
|
94
|
94
|
<span >{{ item.Wed_M.mode_name }}</span><br/>
|
95
|
95
|
<span v-show="showflag">{{item.Wed_M.dialysis_machine_name}}</span>
|
96
|
96
|
</span>
|
97
|
97
|
</td>
|
98
|
|
- <td style="width:50px;" v-if="three_day == 3">
|
|
98
|
+ <td style="min-width:50px;" v-if="three_day == 3">
|
99
|
99
|
<span v-if="item.Wed_A.patient_id">
|
100
|
100
|
<span>{{ item.Wed_A.patient }} </span><br/>
|
101
|
101
|
<span >{{ item.Wed_A.mode_name }}</span><br/>
|
102
|
102
|
<span v-show="showflag">{{item.Wed_A.dialysis_machine_name}}</span>
|
103
|
103
|
</span>
|
104
|
104
|
</td>
|
105
|
|
- <td style="width:50px;" v-if="three_day == 3">
|
|
105
|
+ <td style="min-width:50px;" v-if="three_day == 3">
|
106
|
106
|
<span v-if="item.Wed_N.patient_id">
|
107
|
107
|
<span>{{ item.Wed_N.patient }} </span><br/>
|
108
|
108
|
<span >{{ item.Wed_N.mode_name }}</span><br/>
|
109
|
109
|
<span v-show="showflag">{{item.Wed_N.dialysis_machine_name}}</span>
|
110
|
110
|
</span>
|
111
|
111
|
</td>
|
112
|
|
- <td style="width:50px;" v-if="four_day == 4">
|
|
112
|
+ <td style="min-width:50px;" v-if="four_day == 4">
|
113
|
113
|
<span v-if="item.Thurs_M.patient_id">
|
114
|
114
|
<span>{{ item.Thurs_M.patient }} </span><br/>
|
115
|
115
|
<span >{{ item.Thurs_M.mode_name }}</span><br/>
|
116
|
116
|
<span v-show="showflag">{{item.Thurs_M.dialysis_machine_name}}</span>
|
117
|
117
|
</span>
|
118
|
118
|
</td>
|
119
|
|
- <td style="width:50px;" v-if="four_day == 4">
|
|
119
|
+ <td style="min-width:50px;" v-if="four_day == 4">
|
120
|
120
|
<span v-if="item.Thurs_A.patient_id">
|
121
|
121
|
<span>{{ item.Thurs_A.patient }} </span><br/>
|
122
|
122
|
<span >{{ item.Thurs_A.mode_name }}</span><br/>
|
123
|
123
|
<span v-show="showflag">{{item.Thurs_A.dialysis_machine_name}}</span>
|
124
|
124
|
</span>
|
125
|
125
|
</td>
|
126
|
|
- <td style="width:50px;" v-if="four_day == 4">
|
|
126
|
+ <td style="min-width:50px;" v-if="four_day == 4">
|
127
|
127
|
<span v-if="item.Thurs_N.patient_id">
|
128
|
128
|
<span>{{ item.Thurs_N.patient }} </span><br/>
|
129
|
129
|
<span >{{ item.Thurs_N.mode_name }}</span><br/>
|
130
|
130
|
<span v-show="showflag">{{item.Thurs_N.dialysis_machine_name}}</span>
|
131
|
131
|
</span>
|
132
|
132
|
</td>
|
133
|
|
- <td style="width:50px;" v-if="five_day == 5">
|
|
133
|
+ <td style="min-width:50px;" v-if="five_day == 5">
|
134
|
134
|
<span v-if="item.Fri_M.patient_id">
|
135
|
135
|
<span>{{ item.Fri_M.patient }} </span><br/>
|
136
|
136
|
<span >{{ item.Fri_M.mode_name }}</span><br/>
|
137
|
137
|
<span v-show="showflag">{{item.Fri_M.dialysis_machine_name}}</span>
|
138
|
138
|
</span>
|
139
|
139
|
</td>
|
140
|
|
- <td style="width:50px;" v-if="five_day == 5">
|
|
140
|
+ <td style="min-width:50px;" v-if="five_day == 5">
|
141
|
141
|
<span v-if="item.Fri_A.patient_id">
|
142
|
142
|
<span>{{ item.Fri_A.patient }} </span><br/>
|
143
|
143
|
<span >{{ item.Fri_A.mode_name }}</span><br/>
|
144
|
144
|
<span v-show="showflag">{{item.Fri_A.dialysis_machine_name}}</span>
|
145
|
145
|
</span>
|
146
|
146
|
</td>
|
147
|
|
- <td style="width:50px;" v-if="five_day == 5">
|
|
147
|
+ <td style="min-width:50px;" v-if="five_day == 5">
|
148
|
148
|
<span v-if="item.Fri_N.patient_id">
|
149
|
149
|
<span>{{ item.Fri_N.patient }} </span><br/>
|
150
|
150
|
<span >{{ item.Fri_N.mode_name }}</span><br/>
|
151
|
151
|
<span v-show="showflag">{{item.Fri_N.dialysis_machine_name}}</span>
|
152
|
152
|
</span>
|
153
|
153
|
</td>
|
154
|
|
- <td style="width:50px;" v-if="six_day == 6">
|
|
154
|
+ <td style="min-width:50px;" v-if="six_day == 6">
|
155
|
155
|
<span v-if="item.Sat_M.patient_id">
|
156
|
156
|
<span>{{ item.Sat_M.patient }} </span><br/>
|
157
|
157
|
<span >{{ item.Sat_M.mode_name }}</span><br/>
|
158
|
158
|
<span v-show="showflag">{{item.Sat_M.dialysis_machine_name}}</span>
|
159
|
159
|
</span>
|
160
|
160
|
</td>
|
161
|
|
- <td style="width:50px;" v-if="six_day == 6">
|
|
161
|
+ <td style="min-width:50px;" v-if="six_day == 6">
|
162
|
162
|
<span v-if="item.Sat_A.patient_id">
|
163
|
163
|
<span>{{ item.Sat_A.patient }} </span><br/>
|
164
|
164
|
<span >{{ item.Sat_A.mode_name }}</span><br/>
|
165
|
165
|
<span v-show="showflag">{{item.Sat_A.dialysis_machine_name}}</span>
|
166
|
166
|
</span>
|
167
|
167
|
</td>
|
168
|
|
- <td style="width:50px;" v-if="six_day == 6">
|
|
168
|
+ <td style="min-width:50px;" v-if="six_day == 6">
|
169
|
169
|
<span v-if="item.Sat_N.patient_id">
|
170
|
170
|
<span>{{ item.Sat_N.patient }} </span><br/>
|
171
|
171
|
<span >{{ item.Sat_N.mode_name }}</span><br/>
|
172
|
172
|
<span v-show="showflag">{{item.Sat_N.dialysis_machine_name}}</span>
|
173
|
173
|
</span>
|
174
|
174
|
</td>
|
175
|
|
- <td style="width:50px;" v-if="seven_day == 7">
|
|
175
|
+ <td style="min-width:50px;" v-if="seven_day == 7">
|
176
|
176
|
<span v-if="item.Sun_M.patient_id">
|
177
|
177
|
<span>{{ item.Sun_M.patient }} </span><br/>
|
178
|
178
|
<span >{{ item.Sun_M.mode_name }}</span><br/>
|
179
|
179
|
<span v-show="showflag">{{item.Sun_M.dialysis_machine_name}}</span>
|
180
|
180
|
</span>
|
181
|
181
|
</td>
|
182
|
|
- <td style="width:50px;" v-if="seven_day == 7">
|
|
182
|
+ <td style="min-width:50px;" v-if="seven_day == 7">
|
183
|
183
|
<span v-if="item.Sun_A.patient_id">
|
184
|
184
|
<span>{{ item.Sun_A.patient }} </span><br/>
|
185
|
185
|
<span >{{ item.Sun_A.mode_name }}</span><br/>
|
|
@@ -187,7 +187,7 @@
|
187
|
187
|
|
188
|
188
|
</span>
|
189
|
189
|
</td>
|
190
|
|
- <td style="width:50px;" v-if="seven_day == 7">
|
|
190
|
+ <td style="min-width:50px;" v-if="seven_day == 7">
|
191
|
191
|
<span v-if="item.Sun_N.patient_id">
|
192
|
192
|
<span>{{ item.Sun_N.patient }} </span><br/>
|
193
|
193
|
<span >{{ item.Sun_N.mode_name }}</span><br/>
|
|
@@ -855,7 +855,6 @@ export default {
|
855
|
855
|
});
|
856
|
856
|
var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1",type:0},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"jihao_id":"","total":"","zone_id":"","zone_type":"",sort:""}]
|
857
|
857
|
|
858
|
|
-
|
859
|
858
|
for(let i=0;i<newArr.length;i++){
|
860
|
859
|
for(let j=0;j<this.scheduleCountList.length;j++){
|
861
|
860
|
newArr[i].cut = this.total
|
|
@@ -987,8 +986,6 @@ export default {
|
987
|
986
|
|
988
|
987
|
newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
|
989
|
988
|
}
|
990
|
|
-
|
991
|
|
-
|
992
|
989
|
}
|
993
|
990
|
}
|
994
|
991
|
console.log("newArr222222222",newArr)
|
|
@@ -1026,8 +1023,8 @@ export default {
|
1026
|
1023
|
return [weekArr[week], typeArr[schedule_type]];
|
1027
|
1024
|
},
|
1028
|
1025
|
printAction: function() {
|
1029
|
|
- const style = '@media print {#scheduleTable{font-size:16px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
|
1030
|
|
-
|
|
1026
|
+ // const style = '@media print {#scheduleTable{font-size:16px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
|
|
1027
|
+ const style = '@media print {#scheduleTable{font-size:14px;} }'
|
1031
|
1028
|
printJS({
|
1032
|
1029
|
printable: 'scheduleTable',
|
1033
|
1030
|
type: 'html',
|