applyPre.html 2.2 KB
<!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>