You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.7 KiB
104 lines
3.7 KiB
5 years ago
|
<?php
|
||
|
use common\libs\MyLinkPager;
|
||
|
|
||
|
$this->title = '我的客户';
|
||
|
?>
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<title><?=$this->title?></title>
|
||
|
<link href="/js/lib/datepicker/css/bootstrap.css" rel="stylesheet">
|
||
|
<link href="/css/base.css" rel="stylesheet">
|
||
|
<link href="/css/pages/list.css" rel="stylesheet">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container">
|
||
|
<div id="inner-hd">
|
||
|
<div class="crumbs">
|
||
|
<i class="crumbs-arrow"></i>
|
||
|
<a href="javascript:;" class="crumbs-label"><?=$this->title?></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div id="inner-bd">
|
||
|
<div class="button-group">
|
||
|
<div data-id="0" class="button current edit-btn">
|
||
|
<i class="iconfont"></i>
|
||
|
<span class="button-label">新增</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="table-zone">
|
||
|
<form id="theFrm">
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td class="w70">ID</td>
|
||
|
<td class="w70">车牌号码</td>
|
||
|
<td class="wauto">车主</td>
|
||
|
<td class="w70">联系电话</td>
|
||
|
<td class="w70">初登时间</td>
|
||
|
<td class="w70">业务员</td>
|
||
|
<td class="w70">操作</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?php
|
||
|
foreach($items as $item) {
|
||
|
?>
|
||
|
<tr>
|
||
|
<td class="text-center"><?=$item->id?></td>
|
||
|
<td class="text-left"><?=$item->car_no?></td>
|
||
|
<td class="text-left"><?=$item->car_man?></td>
|
||
|
<td class="text-left"><?=$item->phone?></td>
|
||
|
<td class="text-center"><?=$item->register_date?></td>
|
||
|
<td class="text-center"><?=$item->user?$item->user->getShowName():''?></td>
|
||
|
<td class="text-center">
|
||
|
<a data-id="<?=$item->id?>" href="javascript:;" class="edit-btn">详情</a>
|
||
|
<a data-id="<?=$item->id?>" href="javascript:;" class="appointment-btn">预约</a>
|
||
|
<a data-id="<?=$item->id?>" href="javascript:;" class="order-btn">保单</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</form>
|
||
|
</div>
|
||
|
<?php
|
||
|
echo MyLinkPager::widget([
|
||
|
'pagination' => $pagination,
|
||
|
]);
|
||
|
?>
|
||
|
</div>
|
||
|
<div id="inner-ft">
|
||
|
<br>
|
||
|
<br>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<script type="text/javascript" src="/js/jquery.js"></script>
|
||
|
<script type="text/javascript" src="/js/global.js"></script>
|
||
|
<script type="text/javascript" src="/js/core.js"></script>
|
||
|
<script type="text/javascript" src="/js/jquery.grid.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(function(){
|
||
|
$('.edit-btn').click(function(){
|
||
|
var id = $(this).data('id');
|
||
|
window.location.href = '/sales-mng/my-cars-edit?id='+id;
|
||
|
});
|
||
|
$('.appointment-btn').click(function(){
|
||
|
var id = $(this).data('id');
|
||
|
window.location.href = '/sales-mng/sales-appointment?car_id='+id;
|
||
|
});
|
||
|
$('.order-btn').click(function(){
|
||
|
var id = $(this).data('id');
|
||
|
window.location.href = '/sales-mng/sales-orders?car_id='+id;
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|