applyPre.html
2.2 KB
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
<!DOCTYPE html>
<html lang="zh">
#@header()
<body>
	<div>
		<ol class="breadcrumb">
			<li>
				<a>进场预申请</a>
			</li>
		</ol>
		<div style="margin-left: 10px;">
			<table>
				<tr>
					<td><input id="searchInput" class="form-control" type="text" placeholder="车牌号/司机/手机号"
							value="#(searchKey)" style="margin-left: 1px; width: 300px;" /></td>
					<td><button class="btn btn-success" onclick="onSearchAction()" style="margin-left: 5px;">搜索</button></td>
					<td><button class="btn btn-primary" onclick="onAddAction()" style="margin-left: 30px;">新建预申请</button></td>
				</tr>
			</table>
		</div>
		<div style="margin: 10px;">
			<table class="table table-bordered table-advance table-hover">
				<thead>
					<tr>
						<th>车牌号</th>
						<th>泊位号</th>
						<th>司机姓名</th>
						<th>司机手机号</th>
						<th>货站</th>
						<th>业务类型</th>
						<th>申请时间</th>
						<th>进场时间</th>
						<th>离场时间</th>
						<th>状态</th>
					</tr>
				</thead>
				<tbody>
					#for(data : dataList)
					<tr>
						<td>#(data.carNo??)</td>
						<td>#(data.portNo??"未分配")</td>
						<td>#(data.driverName??)</td>
						<td>#(data.phone??)</td>
						<td>#(data.station.name??)</td>
						<td>#(data.isPickup?'提货':'卸货')</td>
						<td>#date(data.applyTime??,'yyyy-MM-dd HH:mm:ss')</td>
						<td>#date(data.enterTime??,'yyyy-MM-dd HH:mm:ss')</td>
						<td>#date(data.leaveTime??,'yyyy-MM-dd HH:mm:ss')</td>
						<td>#if(data.enterTime&&data.leaveTime) <span
							style="color: #1cb93b; font: bold; font-size: 1.1em;">已离场</span>
							#elseif(data.enterTime&&!data.leaveTime) <span
							style="color: red; font: bold; font-size: 1.1em;">作业中</span> #else <span
							style="color: blue; font: bold; font-size: 1.1em;">待进场</span> #end
						</td>
					</tr>
					#end
				</tbody>
			</table>
			#@page(contextPath+'/car/applyPre',curPage,totalPage,totalSize,searchKey,0,'')
		</div>
	</div>
	<script type="text/javascript" src="#(contextPath)/js/applyPre.js?ver=#(version)"></script>
	<script type="text/javascript">
		#if(flag)
			showTip('#(flag)');
		#end
	</script>
</body>
</html>