完成界面风格变更

dev
曾超新 5 years ago
parent 7499a5bfe3
commit 266f7aef98
  1. 71
      frontend/controllers/AppointmentController.php
  2. 2
      frontend/controllers/FixCarController.php
  3. 48
      frontend/controllers/InsurerController.php
  4. 2
      frontend/controllers/RenewalController.php
  5. 3
      frontend/controllers/StatisticsController.php
  6. 244
      frontend/views/appointment/first.php
  7. 168
      frontend/views/insurer/my-list.php

@ -21,6 +21,9 @@ use yii\web\Response;
class AppointmentController extends BaseController class AppointmentController extends BaseController
{ {
public $enableCsrfValidation = false;
public $layout = 'blue-main';
public function actionIndex() public function actionIndex()
{ {
$request = Yii::$app->request; $request = Yii::$app->request;
@ -237,8 +240,18 @@ class AppointmentController extends BaseController
} }
//首拨 //首拨
public function actionFirst() public function actionFirst() {
$invalid_items = InvalidT::getTree();
$user_items = $this->my->getChildren();
return $this->render('first',[
'invalid_items' => $invalid_items,
'user_items' => $user_items
]);
}
public function actionFirstJson()
{ {
Yii::$app->response->format = Response::FORMAT_JSON;
$session = Yii::$app->session; $session = Yii::$app->session;
$request = Yii::$app->request; $request = Yii::$app->request;
$car_man = $request->get('car_man'); $car_man = $request->get('car_man');
@ -249,6 +262,8 @@ class AppointmentController extends BaseController
$sort_key = $request->get('sort_key','appointment_t.pdate'); $sort_key = $request->get('sort_key','appointment_t.pdate');
$sort_value = $request->get('sort_value','ASC'); $sort_value = $request->get('sort_value','ASC');
$user_id = $request->get('user_id'); $user_id = $request->get('user_id');
$offset = $request->get('offset',0);
$limit = $request->get('limit', 10);
$query = AppointmentT::find() $query = AppointmentT::find()
->leftJoin('car_t','`car_t`.`id`=`appointment_t`.`car_id`') ->leftJoin('car_t','`car_t`.`id`=`appointment_t`.`car_id`')
@ -256,17 +271,17 @@ class AppointmentController extends BaseController
if($username == '') { if($username == '') {
$user_ids = $this->getChildrenUserIDs(); $user_ids = $this->getChildrenUserIDs();
$query = $query->andWhere(['in','appointment_t.user_id',$user_ids]); $query->andWhere(['in','appointment_t.user_id',$user_ids]);
} }
if($car_man != '') { if($car_man != '') {
$query = $query->andWhere('car_t.car_man like "'.$car_man.'"'); $query->andWhere('car_t.car_man like "'.$car_man.'"');
} }
if($phone != '') { if($phone != '') {
$query = $query->andWhere('car_t.phone like "'.$phone.'"'); $query->andWhere('car_t.phone like "'.$phone.'"');
} }
if($car_no != '') { if($car_no != '') {
$query = $query->andWhere('car_t.car_no like "'.$car_no.'"'); $query->andWhere('car_t.car_no like "'.$car_no.'"');
} }
if($username != '') { if($username != '') {
$user_query = UserT::find() $user_query = UserT::find()
@ -276,10 +291,10 @@ class AppointmentController extends BaseController
$user_ids[] = $user_info->id; $user_ids[] = $user_info->id;
} }
if(count($user_ids) > 0) if(count($user_ids) > 0)
$query = $query->andWhere(['in','appointment_t.user_id',$user_ids]); $query->andWhere(['in','appointment_t.user_id',$user_ids]);
} }
if($sort_key != '') { if($sort_key != '') {
$query = $query->orderBy($sort_key.' '.$sort_value.',appointment_t.id '.$sort_value); $query->orderBy($sort_key.' '.$sort_value.',appointment_t.id '.$sort_value);
} }
$sql = $query->createCommand()->rawSql; $sql = $query->createCommand()->rawSql;
// echo $query->createCommand()->rawSql; // echo $query->createCommand()->rawSql;
@ -287,33 +302,25 @@ class AppointmentController extends BaseController
$session->remove('appointment_first'); $session->remove('appointment_first');
$session->set('appointment_first',$sql); $session->set('appointment_first',$sql);
$pagination = new Pagination(['totalCount' => $total,'pageSize'=>20]); $query = $query->offset($offset)->limit($limit);
$pagination->setPage($page-1);
$current_index = $pagination->offset;
$query = $query->offset($pagination->offset)->limit($pagination->limit);
$items = $query->all(); $items = $query->all();
$page_info = MyLib::getPageInfo($pagination); $data = [];
$data['total'] = $total;
$invalid_items = InvalidT::getTree(); $data['rows'] = [];
$user_items = $this->my->getChildren(); foreach($items as $item) {
$car_info = $item->car;
return $this->render('first',[ $row = $item->toArray();
'items' => $items, $row['car_id'] = $car_info->id;
'page_info' => $page_info, $row['car_no'] = $car_info->car_no;
'car_man' => $car_man, $row['car_man'] = $car_info->car_man;
'phone' => $phone, $row['register_date'] = $car_info->register_date;
'car_no' => $car_no, $row['insurer1_date'] = $car_info->insurer1_date;
'page' => $page, $row['insurer2_date'] = $car_info->insurer2_date;
'sort_key' => $sort_key, $row['user_name'] = $item->user ? $item->user->getShowName():'';
'sort_value' => $sort_value, $data['rows'][] = $row;
'type' => 1, }
'invalid_items' => $invalid_items, return $data;
'username' => $username,
'user_items' => $user_items,
'user_id' => $user_id
]);
} }
//今日预约 //今日预约

@ -22,6 +22,8 @@ use yii\web\Response;
class FixCarController extends BaseController class FixCarController extends BaseController
{ {
public $my = null; public $my = null;
public $enableCsrfValidation = false;
public $layout = 'blue-main';
public function init() public function init()
{ {

@ -59,6 +59,8 @@ use common\models\NonAutoInsurance;
class InsurerController extends BaseController class InsurerController extends BaseController
{ {
public $my = null; public $my = null;
public $enableCsrfValidation = false;
public $layout = 'blue-main';
public function init() public function init()
{ {
@ -406,15 +408,20 @@ class InsurerController extends BaseController
return $result; return $result;
} }
public function actionMyList() public function actionMyList() {
return $this->render('my-list');
}
public function actionMyListJson()
{ {
Yii::$app->response->format = Response::FORMAT_JSON;
$request = Yii::$app->request; $request = Yii::$app->request;
$car_man = $request->get('car_man'); $car_man = $request->get('car_man');
$phone = $request->get('phone'); $phone = $request->get('phone');
$car_no = $request->get('car_no'); $car_no = $request->get('car_no');
$id_man = $request->get('id_man'); $id_man = $request->get('id_man');
$page = $request->get('page',1); $offset = $request->get('offset',0);
if($page < 1) $page = 1; $limit = $request->get('limit', 10);
$query = OrderT::find() $query = OrderT::find()
->where('status_id>1') ->where('status_id>1')
@ -427,39 +434,34 @@ class InsurerController extends BaseController
$user_ids[] = $user_item->id; $user_ids[] = $user_item->id;
} }
} }
$query = $query->andWhere(['in','user_id',$user_ids]); $query->andWhere(['in','user_id',$user_ids]);
if($car_man != '') { if($car_man != '') {
$query = $query->andWhere('car_man="'.$car_man.'"'); $query->andWhere('car_man="'.$car_man.'"');
} }
if($id_man != '') { if($id_man != '') {
$query = $query->andWhere('id_man="'.$id_man.'"'); $query->andWhere('id_man="'.$id_man.'"');
} }
if($phone != '') { if($phone != '') {
$query = $query->andWhere('link_phone="'.$phone.'"'); $query->andWhere('link_phone="'.$phone.'"');
} }
if($car_no != '') { if($car_no != '') {
$query = $query->andWhere('car_no="'.$car_no.'"'); $query->andWhere('car_no="'.$car_no.'"');
} }
// echo $query->createCommand()->rawSql; // echo $query->createCommand()->rawSql;
// exit;
$total = $query->count(); $total = $query->count();
$pagination = new Pagination(['totalCount' => $total,'pageSize'=>20]); $query->offset($offset)->limit($limit);
$pagination->setPage($page-1);
$query = $query->offset($pagination->offset)->limit($pagination->limit);
$items = $query->all(); $items = $query->all();
$page_info = MyLib::getPageInfo($pagination); $data = [];
$data['total'] = $total;
return $this->render('my-list',[ $data['rows'] = [];
'items' => $items, foreach($items as $item) {
'car_man' => $car_man, $row = $item->toArray();
'id_man' => $id_man, $data['rows'][] = $row;
'phone' => $phone, }
'car_no' => $car_no, return $data;
'page' => $page,
'page_info' => $page_info
]);
} }
// public function actionMyListInfo() // public function actionMyListInfo()

@ -27,6 +27,8 @@ use yii\web\Response;
class RenewalController extends BaseController class RenewalController extends BaseController
{ {
public $my = null; public $my = null;
public $enableCsrfValidation = false;
public $layout = 'blue-main';
public function init() public function init()
{ {

@ -18,6 +18,9 @@ use yii\web\Response;
class StatisticsController extends BaseController class StatisticsController extends BaseController
{ {
public $enableCsrfValidation = false;
public $layout = 'blue-main';
public function actionWork() public function actionWork()
{ {
$request = Yii::$app->request; $request = Yii::$app->request;

@ -1,161 +1,107 @@
<?php <?php
use \common\libs\MyLib; use \common\libs\MyLib;
?> ?>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> <?php $this->beginBlock('header_css'); ?>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> <link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<script type="text/javascript" language="javascript" src="/js/func.js"></script> <?php $this->endBlock(); ?>
<script type="text/javascript" language="javascript">
//详情
function info(id,index) {
var params = $('#searchForm').serialize();
window.location.href = '/car/info?id=' + id + '&type=<?=$type?>' + '&next_index=' + index + '&back_params=' + encodeURIComponent(params);
}
$(function(){ <div class="wrapper wrapper-content animated fadeInRight">
$("#search-btn").click(function(){ <div class="ibox float-e-margins">
$('#page').val(1); <div class="ibox-title">
var params = $('#searchForm').serialize(); <h5>首拨</h5>
window.location.href = "/appointment/first?" + params; <div class="ibox-tools">
}); <a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');">
$('.invalid-btn').click(function(){ <i class="fa fa-refresh"></i> 刷新
if(confirm('是否确认收回?')) { </a>
var params = $('#listForm').serialize(); </div>
$.post('/appointment/invalid-a',params,function(obj){ </div>
alert(obj.msg); <div class="ibox-content">
if(obj.success) { <form role="form" class="form-inline" onsubmit="return search();">
window.location.reload(); <div class="form-group">
<label>车主</label>
<input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label>
<input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div>
</form>
<div class="row">
<div class="col-md-12">
<table id="listTable">
<thead>
<tr>
<th data-field="state" data-checkbox="true"></th>
<th width="50" data-field="car_id">ID</th>
<th data-field="pdate">预约日期</th>
<th data-field="ptime">预约时间</th>
<th data-field="car_no">车牌号</th>
<th data-field="car_man">车主</th>
<th data-field="register_date">初登日期</th>
<th data-field="insurer1_date">商业起保日期</th>
<th data-field="insurer2_date">交强起保日期</th>
<th data-field="remark">预约备注</th>
<th data-field="user_name">业务员</th>
<th data-formatter="opFormatter">操作</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script>
var o = {};
function opFormatter(value, row, index) {
var opStr = [];
opStr.push('<a href="javascript:void(0);" onclick="view(' + row.car_id + ')">');
opStr.push('<i class="fa fa-file-o" title="详情"></i>');
opStr.push('</a>');
return opStr.join(' ');
} }
},'json');
function view(car_id) {
location.href = '/car/info?id=' + car_id;
} }
});
$('#assign-other-btn').click(function () { function refreshList() {
if(confirm('是否确认平移?')) { $('#listTable').bootstrapTable('refresh');
var params = $('#listForm').serialize();
var user_id = $('#user_id').val();
params = params + '&user_id=' + user_id;
$.post('/appointment/assign-other',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
} }
},'json');
function search() {
$('#listTable').bootstrapTable('destroy');
$('#listTable').bootstrapTable({
url: "/appointment/first-json",
pagination: true,
sidePagination: 'server',
multipleSelectRow: true,
queryParams: function(params) {
o['car_man'] = $('#car_man').val();
o['phone'] = $('#phone').val();
o['car_no'] = $('#car_no').val();
o['id_man'] = $('#id_man').val();
o['limit'] = params['limit'];
o['offset'] = params['offset'];
return o;
} }
}); });
$('#all').click(function(){ return false;
if($(this).prop('checked')==true) {
$('input:checkbox').each(function() {
$(this).prop('checked', true);
});
} else {
$('input:checkbox').each(function () {
$(this).prop('checked',false);
});
} }
});
$(function() {
search();
}); });
</script> </script>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> <?php $this->endBlock(); ?>
<form id="searchForm">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<tr>
<td class="td_bg">
车主:<input name="car_man" type="text" value="<?=$car_man?>" style="width: 100px;">
电话:<input name="phone" type="text" value="<?=$phone?>" style="width: 100px;">
车牌:<input name="car_no" type="text" value="<?=$car_no?>" style="width: 100px;">
<?php
if($this->context->my->role_id != 5) {
?>
工号:<input name="username" type="text" value="<?=$username?>" style="width: 100px;">
<?php
}
?>
排序:<select name="sort_key">
<option value="appointment_t.pdate" <?=$sort_key=='appointment_t.pdate'?'selected':''?>>预约时间</option>
<option value="car_t.register_date" <?=$sort_key=='car_t.register_date'?'selected':''?>>初登时间</option>
<option value="car_t.insurer1_date" <?=$sort_key=='car_t.insurer1_date'?'selected':''?>>保险时间</option>
</select>
<select name="sort_value">
<option value="ASC" <?=$sort_value=='ASC'?'selected':''?>>顺序</option>
<option value="DESC" <?=$sort_value=='DESC'?'selected':''?>>倒序</option>
</select>
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
</td>
</tr>
<tr>
<td class="td_bg">
<?php
if($this->context->my->role_id != 5) {
?>
<input type=button class="ACT_btn invalid-btn" name="invalid-btn" value=" 回收数据 "/>
<input type="button" class="act_btn" id="assign-other-btn" name="assign-other-btn" value="批量平移到">
业务员:<select name="user_id" id="user_id">
<option value="0">请选择</option>
<?php
foreach($user_items as $item) {
echo '<option value="'.$item->id.'"';
if($item->id == $user_id)
echo ' selected ';
echo '>'.$item->getShowName().'</option>';
}
?>
</select>
<?php
}
?>
</td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="24" align="center" class="bg_tr"><?php
if($this->context->my->role_id==5)
echo '序号';
else
echo '<input type="checkbox" id="all">';
?></td>
<td width="50" align="center" class="bg_tr">预约日期</td>
<td width="50" align="center" class="bg_tr">预约时间</td>
<td width="70" align="center" class="bg_tr">车牌号</td>
<td width="120" align="center" class="bg_tr">车主</td>
<td width="70" align="center" class="bg_tr">初登日期</td>
<td width="100" align="center" class="bg_tr" nowrap>商业起保日期</td>
<td width="100" align="center" class="bg_tr" nowrap>交强起保日期</td>
<td width="200" align="center" class="bg_tr">预约备注</td>
<td width="30" align="center" class="bg_tr">业务员</td>
<td width="30" align="center" class="bg_tr">操作</td>
</tr>
<form id="listForm">
<?php
foreach($items as $index => $item) {
$start_index = ($page-1) * 20 + $index;
$car_info = $item->car;
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg"nowrap ><?php
if($this->context->my->role_id == 5)
echo $start_index + 1;
else
echo '<input type="checkbox" name="ids[]" value="'.$item->car_id.'">';
?></td>
<td align="center" class="td_bg" nowrap><?=$item->pdate?></td>
<td align="center" class="td_bg" nowrap><?=$item->ptime?></td>
<td class="td_bg" nowrap><?=$car_info->car_no?></td>
<td class="td_bg" nowrap><?=$car_info->car_man?></td>
<td class="td_bg" nowrap><?=$car_info->register_date?></td>
<td class="td_bg" nowrap><?=$car_info->insurer1_date?></td>
<td class="td_bg" nowrap><?=$car_info->insurer2_date?></td>
<td class="td_bg" ><?=MyLib::substr_cut($item->remark,40)?></td>
<td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="info(<?=$item->car_id?>,<?=$start_index?>)">详情</a>]
</td>
</tr>
<?php
}
?>
</form>
<tr>
<td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>

@ -1,83 +1,105 @@
<?php <?php
use \common\libs\MyLib; use \common\libs\MyLib;
?> ?>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> <?php $this->beginBlock('header_css'); ?>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> <link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<script type="text/javascript" language="javascript" src="/js/func.js"></script> <?php $this->endBlock(); ?>
<script type="text/javascript" language="javascript">
//详情 <div class="wrapper wrapper-content animated fadeInRight">
function info(id) { <div class="ibox float-e-margins">
<div class="ibox-title">
<h5>我的提单</h5>
<div class="ibox-tools">
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#listTable').bootstrapTable('refresh');">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();">
<div class="form-group">
<label>车主</label>
<input type="text" name="car_man" id="car_man" class="form-control">
<label>电话</label>
<input type="text" name="phone" id="phone" class="form-control">
<label>车牌</label>
<input type="text" name="car_no" id="car_no" class="form-control">
<label>被保险人</label>
<input type="text" name="id_man" id="id_man" class="form-control">
<button type="submit" class="btn btn-primary">搜索</button>
</div>
</form>
<div class="row">
<div class="col-md-12">
<table id="listTable">
<thead>
<tr>
<th width="50" data-field="id">ID</th>
<th data-field="car_man">车主</th>
<th data-field="submit_date">提单日期</th>
<th data-field="send_date">送单日期</th>
<th data-field="car_no">车牌</th>
<th data-field="factory_model">车型</th>
<th data-field="total_all">共计签单</th>
<th data-field="total_real">应收</th>
<th data-field="status_name">状态</th>
<th>礼品状态</th>
<th data-field="user">业务员</th>
<th data-field="lock">当前操作</th>
<th data-formatter="opFormatter">操作</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script>
var o = {};
function opFormatter(value, row, index) {
var opStr = [];
opStr.push('<a href="javascript:void(0);" onclick="view(' + row.id + ')">');
opStr.push('<i class="fa fa-file-o" title="详情"></i>');
opStr.push('</a>');
return opStr.join(' ');
}
function view(id) {
window.location.href = '/insurer/my-list-info?id=' + id; window.location.href = '/insurer/my-list-info?id=' + id;
} }
function refreshList() {
$('#listTable').bootstrapTable('refresh');
}
function infos(id,oid) { function search() {
window.open('/non-auto-insurance/bd-info-search?id=' + id +'&oid=' + oid); $('#listTable').bootstrapTable('destroy');
// window.location.href = ; $('#listTable').bootstrapTable({
url: "/insurer/my-list-json",
pagination: true,
sidePagination: 'server',
multipleSelectRow: true,
queryParams: function(params) {
o['car_man'] = $('#car_man').val();
o['phone'] = $('#phone').val();
o['car_no'] = $('#car_no').val();
o['id_man'] = $('#id_man').val();
o['limit'] = params['limit'];
o['offset'] = params['offset'];
return o;
} }
$(function(){
$("#search-btn").click(function(){
$('#page').val(0);
var params = $('#searchForm').serialize();
window.location.href = "/insurer/my-list?" + params;
}); });
return false;
}
$(function() {
search();
}); });
</script> </script>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> <?php $this->endBlock(); ?>
<form id="searchForm">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<tr>
<td class="td_bg">
车主:<input name="car_man" type="text" value="<?=$car_man?>">
电话:<input name="phone" type="text" value="<?=$phone?>">
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
被保险人:<input name="id_man" type="text" value="<?=$id_man?>">
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索"> </td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="30" align="center" class="bg_tr" nowrap>序号</td>
<td width="50" align="center" class="bg_tr" nowrap>车主</td>
<td width="60" align="center" class="bg_tr" nowrap>提单日期</td>
<td width="60" align="center" class="bg_tr" nowrap>送单日期</td>
<td width="60" align="center" class="bg_tr" nowrap>车牌号</td>
<td width="60" align="center" class="bg_tr" nowrap>品牌</td>
<td width="60" align="center" class="bg_tr" nowrap>共计签单</td>
<td width="60" align="center" class="bg_tr" nowrap>应收</td>
<td width="60" align="center" class="bg_tr" nowrap>状态</td>
<td width="60" align="center" class="bg_tr" nowrap>业务员</td>
<td width="60" align="center" class="bg_tr" nowrap>当前操作</td>
<td width="30" align="center" class="bg_tr" nowrap>操作</td>
</tr>
<?php
foreach($items as $index => $item) {
$start_index = ($page - 1) * 20 + $index;
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg" nowrap ><?=$start_index + 1?></td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->car_man,15)?></td>
<td class="td_bg" nowrap><?=$item->submit_date?></td>
<td class="td_bg" nowrap><?=$item->send_date?></td>
<td class="td_bg" nowrap><?=$item->car_no?></td>
<td class="td_bg" nowrap><?=$item->car?MyLib::substr_cut($item->car->factory_model,15):''?></td>
<td class="td_bg" nowrap><?=$item->total_all?></td>
<td class="td_bg" ><?=$item->total_real?>&nbsp;</td>
<td class="td_bg" ><?=$item->status->name?></td>
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?></td>
<td class="td_bg" ><?=$item->lock?$item->lock->getShowName():''?></td>
<td align="center" class="td_bg" nowrap>
<?php if($item->insurance_status==1 || $item->insurance_status==3):?>
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
<?php elseif($item->insurance_status==2):?>
[<a href="javascript:void(0);" onclick="infos(<?=$item->non_id?>,<?= $item->id ?>)">非车险详情</a>]
<?php endif;?>
</td>
</tr>
<?php
}
?>
<tr >
<td height="25" colspan="14" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>

Loading…
Cancel
Save