|
@@ -90,169 +90,184 @@
|
90
|
90
|
<!-- <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button> -->
|
91
|
91
|
</div>
|
92
|
92
|
</div>
|
93
|
|
- <div class="app-container">
|
94
|
|
- <div style="right:30px;position:absolute;z-index:99">
|
95
|
|
- <span>导出周次:</span>
|
96
|
|
- <el-date-picker
|
97
|
|
- v-model="weekTime"
|
98
|
|
- type="week"
|
99
|
|
- format="yyyy 第 WW 周"
|
100
|
|
- placeholder="选择周"
|
101
|
|
- :picker-options="{'firstDayOfWeek': 1}"
|
102
|
|
- @change="changeWeek"
|
103
|
|
- >
|
104
|
|
- </el-date-picker>
|
105
|
|
- </div>
|
106
|
|
- <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="handleClick">
|
107
|
|
- <el-tab-pane name="historyWeek">
|
108
|
|
- <span slot="label"><i class="el-icon-date"></i> 历史周期 ({{ theWeek.historyWeek }}) </span>
|
109
|
|
- </el-tab-pane>
|
110
|
|
- <el-tab-pane name="lastWeek">
|
111
|
|
- <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
|
112
|
|
- </el-tab-pane>
|
113
|
|
- <el-tab-pane name="thisWeek">
|
114
|
|
- <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
|
115
|
|
- </el-tab-pane>
|
116
|
|
- <el-tab-pane name="nextWeek">
|
117
|
|
- <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
|
118
|
|
- </el-tab-pane>
|
119
|
|
- <el-tab-pane name="nextTwoWeek">
|
120
|
|
- <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
|
121
|
|
- </el-tab-pane>
|
122
|
|
- </el-tabs>
|
123
|
|
- <div v-if="!is_edit">
|
124
|
|
- <table-data ref="tableData" :week-time="activeName" :partitions-prop="partitions"
|
125
|
|
- :schedule-zone-row-prop="scheduleZoneRow"
|
126
|
|
- :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
|
127
|
|
- @event2="changeSchedule" @event3="changeWeekDay" @guanliu_show="guanliu" @mode_name="touximoshi" v-show="showtableOne" @event6="changeScheduleType">
|
128
|
|
- </table-data>
|
129
|
|
- <!-- @event6="changeScheduleType" -->
|
130
|
|
- </div>
|
131
|
|
- <!-- 编辑 -->
|
132
|
|
- <edit-table-data ref="edittableData" :week-time="activeName" :partitions-prop="partitions"
|
133
|
|
- :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone"
|
134
|
|
- title="" @event1="changePartition"@event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay">
|
135
|
|
- <div style="position: relative;height: 50px">
|
136
|
|
- <div style="position: fixed;height: 50px;width: 97%;background: #fff;z-index: 100;padding: 5px;">
|
137
|
|
- <div style="position: relative;">
|
138
|
|
- <!-- style="position: fixed;" class="position"-->
|
139
|
|
- <div style="display: inline-block;">
|
140
|
|
- <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
|
141
|
|
- <el-tab-pane name="beforeWeek">
|
142
|
|
- <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
|
143
|
|
- </el-tab-pane>
|
144
|
|
- <el-tab-pane name="lastWeek">
|
145
|
|
- <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
|
146
|
|
- </el-tab-pane>
|
147
|
|
- <el-tab-pane name="thisWeek">
|
148
|
|
- <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
|
149
|
|
- </el-tab-pane>
|
150
|
|
- <el-tab-pane name="nextWeek">
|
151
|
|
- <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
|
152
|
|
- </el-tab-pane>
|
153
|
|
- <el-tab-pane name="nextTwoWeek">
|
154
|
|
- <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
|
155
|
|
- </el-tab-pane>
|
156
|
|
- </el-tabs>
|
157
|
|
- </div>
|
158
|
|
- <div style="display: inline-block;float: right;">
|
159
|
|
- <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
|
160
|
|
- <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
|
161
|
|
- <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
|
162
|
|
- 导出排班
|
163
|
|
- </el-button>
|
164
|
|
- <el-button
|
165
|
|
- @click="generateLog()"
|
166
|
|
- class="filter-item"
|
167
|
|
- type="primary"
|
168
|
|
- v-if="is_edit"
|
169
|
|
- size="small"
|
170
|
|
- >下载日志
|
171
|
|
- </el-button>
|
172
|
|
- <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
|
173
|
|
- </el-button>
|
174
|
|
- <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
|
175
|
|
- <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
|
176
|
|
- <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
|
177
|
|
- <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
|
178
|
|
- </div>
|
|
93
|
+ <div>
|
|
94
|
+
|
|
95
|
+ <div class="app-container" style="padding: 0 20px 20px 20px;">
|
|
96
|
+ <div>
|
|
97
|
+ <div style="position: relative;height: 57px">
|
|
98
|
+ <div style="position: fixed;width: 80%;z-index: 100;background: #fff;">
|
|
99
|
+ <div>
|
|
100
|
+ <div style="display: inline-block;">
|
|
101
|
+ <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="handleClick">
|
|
102
|
+ <el-tab-pane name="historyWeek">
|
|
103
|
+ <span slot="label"><i class="el-icon-date"></i> 历史周期 ({{ theWeek.historyWeek }}) </span>
|
|
104
|
+ </el-tab-pane>
|
|
105
|
+ <el-tab-pane name="lastWeek">
|
|
106
|
+ <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
|
|
107
|
+ </el-tab-pane>
|
|
108
|
+ <el-tab-pane name="thisWeek">
|
|
109
|
+ <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
|
|
110
|
+ </el-tab-pane>
|
|
111
|
+ <el-tab-pane name="nextWeek">
|
|
112
|
+ <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
|
|
113
|
+ </el-tab-pane>
|
|
114
|
+ <el-tab-pane name="nextTwoWeek">
|
|
115
|
+ <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
|
|
116
|
+ </el-tab-pane>
|
|
117
|
+ </el-tabs>
|
|
118
|
+ </div>
|
|
119
|
+ <div style="display: inline-block;float:right;z-index:99">
|
|
120
|
+ <span>导出周次:</span>
|
|
121
|
+ <el-date-picker
|
|
122
|
+ v-model="weekTime"
|
|
123
|
+ type="week"
|
|
124
|
+ format="yyyy 第 WW 周"
|
|
125
|
+ placeholder="选择周"
|
|
126
|
+ :picker-options="{'firstDayOfWeek': 1}"
|
|
127
|
+ @change="changeWeek"
|
|
128
|
+ >
|
|
129
|
+ </el-date-picker>
|
|
130
|
+ </div>
|
179
|
131
|
</div>
|
180
|
132
|
</div>
|
181
|
133
|
</div>
|
182
|
|
- </edit-table-data>
|
183
|
|
- <!-- 编辑上上周 -->
|
184
|
|
- <beforeweekTable ref="beforeweeks" v-show="beforeshow" :week-time="activeName" :partitions-prop="partitions"
|
185
|
|
- :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone" @event3="changeWeekDay">
|
186
|
|
- <div class="position">
|
187
|
|
- <div>
|
188
|
|
- <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
|
189
|
|
- <el-tab-pane name="beforeWeek">
|
190
|
|
- <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
|
191
|
|
- </el-tab-pane>
|
192
|
|
- <el-tab-pane name="lastWeek">
|
193
|
|
- <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
|
194
|
|
- </el-tab-pane>
|
195
|
|
- <el-tab-pane name="thisWeek">
|
196
|
|
- <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
|
197
|
|
- </el-tab-pane>
|
198
|
|
- <el-tab-pane name="nextWeek">
|
199
|
|
- <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
|
200
|
|
- </el-tab-pane>
|
201
|
|
- <el-tab-pane name="nextTwoWeek">
|
202
|
|
- <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
|
203
|
|
- </el-tab-pane>
|
204
|
|
- </el-tabs>
|
205
|
|
- </div>
|
206
|
|
- <div style="display:flex;align-items:center">
|
207
|
|
- <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
|
208
|
|
- <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
|
209
|
|
- 导出排班
|
210
|
|
- </el-button>
|
211
|
|
- <el-button
|
212
|
|
- @click="generateLog()"
|
213
|
|
- class="filter-item"
|
214
|
|
- type="primary"
|
215
|
|
- v-if="is_edit"
|
216
|
|
- size="small"
|
217
|
|
- >下载日志
|
218
|
|
- </el-button>
|
219
|
|
- <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
|
220
|
|
- </el-button>
|
221
|
|
- <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
|
222
|
|
- <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
|
223
|
|
- <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
|
224
|
|
- <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
|
|
134
|
+ <div >
|
|
135
|
+ <div v-if="!is_edit" >
|
|
136
|
+ <table-data ref="tableData" :week-time="activeName" :partitions-prop="partitions"
|
|
137
|
+ :schedule-zone-row-prop="scheduleZoneRow"
|
|
138
|
+ :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
|
|
139
|
+ @event2="changeSchedule" @event3="changeWeekDay" @guanliu_show="guanliu" @mode_name="touximoshi" v-show="showtableOne" @event6="changeScheduleType">
|
|
140
|
+ </table-data>
|
|
141
|
+ <!-- @event6="changeScheduleType" -->
|
225
|
142
|
</div>
|
226
|
143
|
</div>
|
227
|
|
- </beforeweekTable>
|
228
|
|
- <!-- 历史 -->
|
229
|
|
- <HistoryWeekTable v-show="showtable" ref="tableDataZero" :week-time="activeName" :partitions-prop="partitions"
|
230
|
|
- :schedule-zone-row-prop="scheduleZoneRow"
|
231
|
|
- :schedule-zone-prop="scheduleZone" title="" >
|
232
|
|
- </HistoryWeekTable>
|
233
|
|
- <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
|
234
|
|
- <el-form :model="form" ref="form" label-width="90px" :rules="rules">
|
235
|
|
- <el-form-item label="周次:">
|
236
|
|
- <el-radio v-model="form.lastweek" label="1">上周排班信息</el-radio>
|
237
|
|
- <el-radio v-model="form.lastweek" label="2">本周排班信息</el-radio>
|
238
|
|
- </el-form-item>
|
239
|
|
- <el-form-item label="复制到 : " required prop="copyWeek">
|
240
|
|
- <el-select v-model="form.copyWeek" placeholder="请选择">
|
241
|
|
- <el-option
|
242
|
|
- v-for="item in typeOptions"
|
243
|
|
- :key="item.value"
|
244
|
|
- :label="item.label"
|
245
|
|
- :value="item.value">
|
246
|
|
- </el-option>
|
247
|
|
- </el-select>
|
248
|
|
- </el-form-item>
|
249
|
|
-
|
250
|
|
- </el-form>
|
251
|
|
- <div slot="footer" class="dialog-footer">
|
252
|
|
- <el-button @click="newVisible=false">取 消</el-button>
|
253
|
|
- <el-button v-loading="copySchLoading" type="primary" @click="submitAction('form')">保 存</el-button>
|
|
144
|
+ <!-- 编辑 -->
|
|
145
|
+ <edit-table-data ref="edittableData" :week-time="activeName" :partitions-prop="partitions"
|
|
146
|
+ :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone"
|
|
147
|
+ title="" @event1="changePartition"@event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay">
|
|
148
|
+ <div style="position: relative;height: 50px">
|
|
149
|
+ <div style="position: fixed;height: 50px;width: 97%;background: #fff;z-index: 100;padding: 5px;">
|
|
150
|
+ <div style="position: relative;">
|
|
151
|
+ <!-- style="position: fixed;" class="position"-->
|
|
152
|
+ <div style="display: inline-block;">
|
|
153
|
+ <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
|
|
154
|
+ <el-tab-pane name="beforeWeek">
|
|
155
|
+ <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
|
|
156
|
+ </el-tab-pane>
|
|
157
|
+ <el-tab-pane name="lastWeek">
|
|
158
|
+ <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
|
|
159
|
+ </el-tab-pane>
|
|
160
|
+ <el-tab-pane name="thisWeek">
|
|
161
|
+ <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
|
|
162
|
+ </el-tab-pane>
|
|
163
|
+ <el-tab-pane name="nextWeek">
|
|
164
|
+ <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
|
|
165
|
+ </el-tab-pane>
|
|
166
|
+ <el-tab-pane name="nextTwoWeek">
|
|
167
|
+ <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
|
|
168
|
+ </el-tab-pane>
|
|
169
|
+ </el-tabs>
|
|
170
|
+ </div>
|
|
171
|
+ <div style="display: inline-block;float: right;">
|
|
172
|
+ <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
|
|
173
|
+ <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
|
|
174
|
+ <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
|
|
175
|
+ 导出排班
|
|
176
|
+ </el-button>
|
|
177
|
+ <el-button
|
|
178
|
+ @click="generateLog()"
|
|
179
|
+ class="filter-item"
|
|
180
|
+ type="primary"
|
|
181
|
+ v-if="is_edit"
|
|
182
|
+ size="small"
|
|
183
|
+ >下载日志
|
|
184
|
+ </el-button>
|
|
185
|
+ <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
|
|
186
|
+ </el-button>
|
|
187
|
+ <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
|
|
188
|
+ <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
|
|
189
|
+ <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
|
|
190
|
+ <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
|
|
191
|
+ </div>
|
|
192
|
+ </div>
|
|
193
|
+ </div>
|
|
194
|
+ </div>
|
|
195
|
+ </edit-table-data>
|
|
196
|
+ <!-- 编辑上上周 -->
|
|
197
|
+ <beforeweekTable ref="beforeweeks" v-show="beforeshow" :week-time="activeName" :partitions-prop="partitions"
|
|
198
|
+ :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone" @event3="changeWeekDay">
|
|
199
|
+ <div class="position">
|
|
200
|
+ <div>
|
|
201
|
+ <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
|
|
202
|
+ <el-tab-pane name="beforeWeek">
|
|
203
|
+ <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
|
|
204
|
+ </el-tab-pane>
|
|
205
|
+ <el-tab-pane name="lastWeek">
|
|
206
|
+ <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
|
|
207
|
+ </el-tab-pane>
|
|
208
|
+ <el-tab-pane name="thisWeek">
|
|
209
|
+ <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
|
|
210
|
+ </el-tab-pane>
|
|
211
|
+ <el-tab-pane name="nextWeek">
|
|
212
|
+ <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
|
|
213
|
+ </el-tab-pane>
|
|
214
|
+ <el-tab-pane name="nextTwoWeek">
|
|
215
|
+ <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
|
|
216
|
+ </el-tab-pane>
|
|
217
|
+ </el-tabs>
|
|
218
|
+ </div>
|
|
219
|
+ <div style="display:flex;align-items:center">
|
|
220
|
+ <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
|
|
221
|
+ <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
|
|
222
|
+ 导出排班
|
|
223
|
+ </el-button>
|
|
224
|
+ <el-button
|
|
225
|
+ @click="generateLog()"
|
|
226
|
+ class="filter-item"
|
|
227
|
+ type="primary"
|
|
228
|
+ v-if="is_edit"
|
|
229
|
+ size="small"
|
|
230
|
+ >下载日志
|
|
231
|
+ </el-button>
|
|
232
|
+ <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
|
|
233
|
+ </el-button>
|
|
234
|
+ <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
|
|
235
|
+ <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
|
|
236
|
+ <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
|
|
237
|
+ <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
|
|
238
|
+ </div>
|
|
239
|
+ </div>
|
|
240
|
+ </beforeweekTable>
|
|
241
|
+ <!-- 历史 -->
|
|
242
|
+ <HistoryWeekTable v-show="showtable" ref="tableDataZero" :week-time="activeName" :partitions-prop="partitions"
|
|
243
|
+ :schedule-zone-row-prop="scheduleZoneRow"
|
|
244
|
+ :schedule-zone-prop="scheduleZone" title="" >
|
|
245
|
+ </HistoryWeekTable>
|
|
246
|
+ <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
|
|
247
|
+ <el-form :model="form" ref="form" label-width="90px" :rules="rules">
|
|
248
|
+ <el-form-item label="周次:">
|
|
249
|
+ <el-radio v-model="form.lastweek" label="1">上周排班信息</el-radio>
|
|
250
|
+ <el-radio v-model="form.lastweek" label="2">本周排班信息</el-radio>
|
|
251
|
+ </el-form-item>
|
|
252
|
+ <el-form-item label="复制到 : " required prop="copyWeek">
|
|
253
|
+ <el-select v-model="form.copyWeek" placeholder="请选择">
|
|
254
|
+ <el-option
|
|
255
|
+ v-for="item in typeOptions"
|
|
256
|
+ :key="item.value"
|
|
257
|
+ :label="item.label"
|
|
258
|
+ :value="item.value">
|
|
259
|
+ </el-option>
|
|
260
|
+ </el-select>
|
|
261
|
+ </el-form-item>
|
|
262
|
+
|
|
263
|
+ </el-form>
|
|
264
|
+ <div slot="footer" class="dialog-footer">
|
|
265
|
+ <el-button @click="newVisible=false">取 消</el-button>
|
|
266
|
+ <el-button v-loading="copySchLoading" type="primary" @click="submitAction('form')">保 存</el-button>
|
|
267
|
+ </div>
|
|
268
|
+ </el-dialog>
|
254
|
269
|
</div>
|
255
|
|
- </el-dialog>
|
|
270
|
+ </div>
|
256
|
271
|
</div>
|
257
|
272
|
</div>
|
258
|
273
|
</template>
|