-
Notifications
You must be signed in to change notification settings - Fork 0
/
03vehicle_scheduling.html
451 lines (408 loc) · 14.8 KB
/
03vehicle_scheduling.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<!DOCTYPE html>
<html style="width:100%;height:100%;">
<head>
<meta charset="UTF-8">
<title>车辆调度</title>
<!-- 引入EasyUI的样式文件-->
<link href="images/logo.png" rel="shortcut icon" />
<link rel="import" href="public.html">
<script type="text/javascript" src="js/index_loading.js"></script>
<style>
.datagrid-header td{
background: #89BCF1;
color: #ffffff;
cursor: default;
}
</style>
</head>
<body style="width:100%;height:100%;margin:0;padding:0;" class="easyui-layout" id="cheliangdiaodu">
<!--上边-->
<!--center-->
<div region="center" style="overflow: hidden;">
<div class="easyui-layout" data-options="fit:true">
<!--左边-->
<div data-options="region:'west',split:true,title:' ' " style="width:240px;">
<div class="easyui-accordion" data-options="fit:true,border:false">
<div title="任务计划" data-options="iconCls:'icon_rwjh',selected:true">
<ul class="left_menu cldd">
<li>
<a href="#" onclick="addPanel('03vehicle_scheduling/1task_plan/car_application.html','公务用车申请')"><span class="span-icon1"></span>公务用车申请</a>
</li>
<li>
<a href="#" onclick="addPanel('03vehicle_scheduling/1task_plan/pro_appli.html','生产用车申请')"><span class="span-icon2"></span>生产用车申请</a>
</li>
<li>
<a href="#"><span class="span-icon3"></span>班车计划制定</a>
</li>
<li>
<a href="#" onclick="addPanel('03vehicle_scheduling/1task_plan/task_plan.html','任务计划导入')"><span class="span-icon4"></span>任务计划导入</a>
</li>
<li>
<a href="#" onclick="addPanel('03vehicle_scheduling/1task_plan/taskTracking.html','任务管理')"><span class="span-icon5"></span>任务管理</a>
</li>
</ul>
</div>
<div title="运能运力分析" data-options="iconCls:'icon_ynyl'">
<ul class="left_menu cldd">
<li>
<a href="#"><span class="span-icon6"></span>运能运力查询</a>
</li>
<li>
<a href="#"><span class="span-icon7"></span>效率分析</a>
</li>
</ul>
</div>
<div title="路线管理" data-options="iconCls:'icon_lxgl'">
<ul class="left_menu cldd">
<li>
<a href="#" onclick="addPanel('03vehicle_scheduling/3router_manage/router_manage.html','路线管理')"><span class="span-icon9"></span>路线管理</a>
</li>
</ul>
</div>
<div title="车辆调派" data-options="iconCls:'icon_cldp'">
<ul class="left_menu cldd">
<li>
<a href="#" onclick="addPanel('03vehicle_scheduling/4car_send/not_dispat.html','未调派')"><span class="span-icon9"></span>未调派</a>
</li>
<li>
<a href="#"><span class="span-icon10"></span>调派审批列表</a>
</li>
</ul>
</div>
<div title="油耗管理" data-options="iconCls:'icon_yhgl'">
<ul class="left_menu cldd">
<li>
<a href="#"><span class="span-icon11"></span>车辆油耗监测</a>
</li>
<li>
<a href="#"><span class="span-icon12"></span>任务油耗监测</a>
</li>
</ul>
</div>
<div title="任务统计" data-options="iconCls:'icon_rwtj'">
<ul class="left_menu cldd">
<li>
<a href="#"><span class="span-icon13"></span>单位任务统计</a>
</li>
<li>
<a href="#"><span class="span-icon14"></span>单车任务统计</a>
</li>
</ul>
</div>
</div>
</div>
<!--右边-->
<div id="mainPanle" region="center" title="" style="padding:5px;height:100%;" >
<!--tab选项卡-->
<div id="mainContainer" class="easyui-tabs tabs" fit="true" border="false" style="width:100%;height:100%;">
<div title="主页" style="padding:10px">
<table height="60px" width="90%" align="center" style="margin-top:10px;margin-bottom: 10px;">
<tbody>
<tr>
<td>
<a href="#" onclick="addPanel('task_plan/car_application.html','公务用车申请')" style="width:152px;text-align:center;border-radius:5px;height:42px;line-height: 42px;display:table-cell;align:center;vertical-align:middle;background: SteelBlue;width:150px;height:40px;">
<span style="display:inline-block;vertical-align:middle;width:18px;height:18px;margin-right:5px;background:url('images/model03_level02.png') no-repeat 0px -32px;"></span>
<font color="white" size="3">公务用车申请</font>
</a>
</td>
<td>
<a href="#" onclick="addPanel('task_plan/car_application.html','生产用车')" style="width:152px;text-align:center;border-radius:5px;height:42px;line-height: 42px;display:table-cell;align:center;vertical-align:middle;background: SteelBlue;width:150px;height:40px;">
<span style="display:inline-block;vertical-align:middle;width:18px;height:18px;margin-right:5px;background:url('images/model03_level02.png') no-repeat 0px -32px;"></span>
<font color="white" size="3">生产用车申请</font>
</a>
</td>
<td>
<a href="#" onclick="addPanel('task_plan/car_application.html','班车计划')" style="width:152px;text-align:center;border-radius:5px;height:42px;line-height: 42px;display:table-cell;align:center;vertical-align:middle;background: SteelBlue;width:150px;height:40px;">
<span style="display:inline-block;vertical-align:middle;width:18px;height:18px;margin-right:5px;background:url('images/model03_level02.png') no-repeat 0px -32px;"></span>
<font color="white" size="3">班车计划制定</font>
</a>
</td>
<td>
<a href="#" onclick="addPanel('vehicleScheduling/taskTracking.html','任务跟踪')" style="width:152px;text-align:center;border-radius:5px;height:42px;line-height: 42px;display:table-cell;align:center;vertical-align:middle;background: SteelBlue;width:150px;height:40px;">
<span style="display:inline-block;vertical-align:middle;width:18px;height:18px;margin-right:5px;background:url('images/model03_level02.png') no-repeat 0px -32px;"></span>
<font color="white" size="3">任务跟踪</font>
</a>
</td>
</tr>
</tbody>
</table>
<div class="diaoduTop" style="width:90%;height:220px;border:1px solid #dcdcdc;margin:auto;">
<div id="div_ydp_search" style="padding: 5px 0px; height: auto;width:100%;margin:auto;background: #F0F0FF;" class="datagrid-toolbar">
<table width="90%" align="center" >
<tbody>
<tr>
<td>
<font size="3">已调派列表</font>
</td>
<td></td>
<td style="text-align:right;">
<a href="#" onclick="addPanel('vehicleScheduling/taskTracking.html','任务管理')" style="color: #;">查看更多</a>
</td>
</tr>
</tbody>
</table>
</div>
<!--表格-->
<div class="datagrid-view" style="width: 100%; height: 150px;margin:auto;">
<table id="cheliangtt" class="easyui-datagrid" style="width:100%;height:100%;overflow: hidden;" data-options="singleSelect:true,collapsible:true,rownumbers:true,url:'json/cheliangdiaoduT.json',method:'get'">
</table>
</div>
</div>
<div class="diaoduBottom" style="width:90%;height:220px;border:1px solid #dcdcdc;border-bottom:none;margin:auto;">
<div id="div_rwgz_search" style="padding: 5px 0px; height: auto;width:100%;margin:auto;background: #F0F0FF;" class="datagrid-toolbar">
<table width="97%" align="center">
<tbody>
<tr>
<td>
<font size="3">任务跟踪列表</font>
</td>
<td></td>
<td style="text-align:right;">
<a href="#" onclick="addPanel('vehicleScheduling/taskTracking.html','任务管理')">查看更多</a>
</td>
</tr>
</tbody>
</table>
</div>
<!--表格-->
<div class="datagrid-view" style="width: 100%; height: 150px;margin: auto;">
<table id="cheliangttBottom" class="easyui-datagrid" style="width:100%;height:100%;overflow: hidden;" data-options="singleSelect:true,collapsible:true,rownumbers:true,url:'json/cheliangdiaoduB.json',method:'get'">
</table>
</div>
</div>
</div>
</div>
</div>
<!--右边-->
</div>
</div>
<div id="tabsMenu" class="easyui-menu" style="width: 120px; height: 72px; display: none; left: 0px; top: 0px;">
<div name="close" class="menu-item">关闭</div>
<div name="Other" class="menu-item">关闭其他</div>
<div name="All" class="menu-item">关闭全部</div>
</div>
<!--底部-->
<iframe name="mainFrame" scrolling="auto" frameborder="0" src="index.html" style="width:100%;height:100%;overflow-y:hidden;"></iframe>
</body>
<script>
$(function() {
$('#cheliangtt').datagrid({
idField: 'itemid',
fitColumns : "true",
columns: [
[{
field: 'taskId',
title: '任务编号1',
width: 100,
align: 'center',
formatter: function(value, row, index) {
if(row.editing) {} else {
var e = '<a href="#" onclick="editrowTop(this)" style="color: blue;">'+value+'</a> ';
return e;
}
}
},
{
field: 'taskName',
title: '任务名称',
width: 200,
align: 'right',
editor: {
type: 'numberbox',
options: {
precision: 1
}
}
},
{
field: 'isLongDistance',
title: '任务类型',
width: 100,
align: 'right',
editor: 'numberbox'
},
{
field: 'taskStatusString',
title: '任务状态',
width: 80,
editor: 'text'
},
{
field: 'applyDate',
title: '申请日期',
width: 150,
editor: 'text'
},
{
field: 'useDate',
title: '用车时间',
width: 150,
editor: 'text'
},
{
field: 'leaveAddress',
title: '出发地',
width: 250,
editor: 'text'
},
{
field: 'arriveAddress',
title: '目的地',
width: 250,
editor: 'text'
},
{
field: 'id',
title: '操作',
width: 100,
align: 'center',
formatter: function(value, row, index) {
if(row.editing) {} else {
var e = '<a href="#" onclick="editrowTop(this)" style="color: blue;">查看调派</a> ';
return e;
}
}
}
]
]
});
});
function getRowIndex(target) {
var tr = $(target).closest('tr.datagrid-row');
return parseInt(tr.attr('datagrid-row-index'));
}
function editrowTop(target) {
$('#cheliangtt').datagrid('beginEdit', getRowIndex(target));
// console.log(target.innerHTML)
if(target.innerHTML != "查看调派") {
addPanel('vehicleScheduling/taskDetails.html', '任务详情')
}
if(target.innerHTML == "查看调派") {
addPanel('car_send/view_assign.html', '查看调派')
}
//点击添加选项卡
function addPanel(url, tabTitle) {
$('.easyui-accordion li div').removeClass("selected");
addTab(tabTitle, url);
$(this).parent().addClass("selected");
}
//
// function createFrame(url) {
// var s = '<iframe name="mainFrame" scrolling="auto" frameborder="0" src="' + url + '" style="width:100%;height:100%;overflow-y:hidden;"></iframe>';
// return s;
// }
//
// function tabClose() {
// /*双击关闭TAB选项卡*/
// $(".tabs-inner").dblclick(function() {
// var subtitle = $(this).children("span").text();
// $('.tabs').tabs('close', subtitle);
// })
// $(".tabs-inner").bind('contextmenu', function(e) {
// $('#mm').menu('show', {
// left: e.pageX,
// top: e.pageY,
// });
// var subtitle = $(this).children("span").text();
// $('#mm').data("currtab", subtitle);
// return false;
// });
// }
}
//以下很长一段表格数据2
var username = $("#form_username").val();
$('#cheliangttBottom').datagrid({
fitColumns : "true",
iconCls: 'icon-edit',
singleSelect: true,
columns: [
[{
field: 'taskId',
title: '任务编号2',
width: 100,
//添加超级链
formatter: function(value, rowData, rowIndex) {
return '<a href="#" onclick="editrowBottom(this)" style="color: blue;">'+value+'</a>';
}
},
{
field: 'taskName',
title: '任务名称',
width: 200,
align: 'right',
editor: {
type: 'numberbox',
options: {
precision: 1
}
}
},
{
field: 'isLongDistance',
title: '任务类型',
width: 100,
align: 'right',
editor: 'numberbox'
},
{
field: 'taskStatusString',
title: '任务状态',
width: 80,
editor: 'text'
},
{
field: 'applyDate',
title: '申请日期',
width: 150,
editor: 'text'
},
{
field: 'useDate',
title: '用车时间',
width: 150,
editor: 'text'
},
{
field: 'leaveAddress',
title: '出发地',
width: 200,
editor: 'text'
},
{
field: 'arriveAddress',
title: '目的地',
width: 200,
editor: 'text'
},
{
field: 'id',
title: '操作',
align: 'left',
width: 80,
//添加超级链
formatter: function(value, rowData, rowIndex) {
//function里面的三个参数代表当前字段值,当前行数据对象,行号(行号从0开始)
//alert(rowData.username);
return '<a href="#" onclick="editrowBottom(this)" style="color: blue;">任务跟踪详情</a>';
}
}
]
]
});
//以下很长一段表格数据结束
function editrowBottom(target) {
$('#cheliangttBottom').datagrid('beginEdit', getRowIndex(target));
// console.log(target.innerHTML)
if(target.innerHTML != "任务跟踪详情") {
addPanel('vehicleScheduling/taskDetails.html', '任务详情')
}
if(target.innerHTML == "任务跟踪详情") {
addPanel('vehicleScheduling/renwugenzongDetail.html', '任务跟踪详情')
}
}
//点击柱状图跳回主页面
function tabs1() {
$('#mainContainer').tabs('select', '主页'); //跳转到名为'消息'tab页
}
</script>
</html>