2025-04-10 23:19:13 +08:00

105 lines
5.4 KiB
PHP
Executable File

<?php
/**
* @Author: fm453
* @Date: 2018-11-23 12:17:02
* @Last Modified by: fm453
* @Last Modified time: 2020-10-07 22:38:57
* @Email: fm453@lukegzs.com
*/
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
use yii\widgets\LinkPager;
$this->title = '出车单在途';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="wrapper wrapper-content">
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-content">
<h1><?= Html::encode($this->title) ?></h1>
<div class="row">
<div class="col-sm-2">
<a class="btn btn-info btn-sm" href="<?= Url::toRoute('truckol/list')?>">查看板车出车任务计划</a>
</div>
<div class="col-sm-3 pull-right">
<form action="<?=Url::current(['pid' => Yii::$app->session->get('pid')], false);?>" method="post">
<input type="hidden" name="_csrf-backend" value="<?= Yii::$app->getRequest()->getCsrfToken();?>" />
<div class="input-group">
<input class="input-sm form-control" type="text" placeholder="请输入板车车牌尾数" name="title" value="<?=$search['title']?>">
<span class="input-group-btn">
<button type="submit" class="btn btn-sm btn-primary"> 搜索</button>
</span>
</div>
</form>
</div>
</div>
<hr>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>序号</th>
<th>板车</th>
<th>司机</th>
<th>始发</th>
<th></th>
<th>运达</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php foreach($list as $vo):?>
<tr>
<td><?=$vo['id']?></td>
<td>车牌:<label href="<?=Url::toRoute(['truck/detail','id'=>(isset($vo['truck_id'])?$vo['truck_id']:0)])?>" w="80%" h="80%" mini="load"> <?=isset($vo['truck_num'])?$vo['truck_num']:''?>【<code><?=isset($vo['truck_id'])?$vo['truck_id']:''?></code>】</label></td>
<td>姓名:<?=isset($vo['driver_name'])?$vo['driver_name']:''?><br>
手机:<?=isset($vo['driver_mobiles'])?$vo['driver_mobiles']:''?><br>
</td>
<td>网点:<?=isset($stores[$vo['from_store']])?$stores[$vo['from_store']]['title']:''?><br>
日期:<?=(isset($vo['from_date'])&&$vo['from_date']!=0)?date('Y-m-d',$vo['from_date']):''?>
</td>
<th>
<i class="fa fa-arrow-right"></i>
</th>
<td>网点:<?=isset($stores[$vo['end_store']])?$stores[$vo['end_store']]['title']:''?><br>
日期:<?=(isset($vo['end_date'])&&$vo['end_date']!=0)?date('Y-m-d',$vo['end_date']):''?>
</td>
<td>
<?php if($vo['status_code']==1){?>
<label class="btn btn-info btn-xs"><?=isset($status[$vo['status_code']]) ? $status[$vo['status_code']] : '未知'?></label>
<?php }else{?>
<label class="btn btn-default btn-xs"><?=isset($status[$vo['status_code']]) ? $status[$vo['status_code']] : '未知'?></label>
<?php }?>
</td>
<td>
<a class="btn btn-primary btn-xs" onclick="parent.selectTruckol('<?=isset($vo['truck_num'])?$vo['truck_num']:''?>','<?=$vo['id']?>','<?=$callback?>');">选择</a>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<!--分页-->
<div class="f-r">
<?= LinkPager::widget([
'pagination'=>$pager,
'firstPageLabel' => '首页',
'nextPageLabel' => '下一页',
'prevPageLabel' => '上一页',
'lastPageLabel' => '末页',
]) ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>