<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>积分日志</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
  <link rel="stylesheet" type="text/css" href="../../layuiadmin/style/formSelects-v4.css"/>
    <style type="text/css">
    .LAY-btns .layui-nav {padding-left:0;padding-right:10px;top:-4px;margin: 0 10px;border: 0;background-color: #009688;}
    .LAY-btns .layui-nav .layui-nav-item{line-height: 30px;}
    .LAY-btns .layui-nav .layui-nav-child{top:34px;}
    .LAY-btns .layui-nav .layui-nav-bar{display: none;}
    .LAY-btns .layui-nav .layui-nav-child dd.layui-this a{color:#333;background-color:#fff;}
    .LAY-btns .layui-nav .layui-nav-child dd.layui-this a:hover {background-color: #f2f2f2;color: #000;}
    .seach_items {float:left;margin-left: 10px;}
  </style>
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" pad15>
        <div class="layui-row layui-col-space15">
          <div class="layui-col-md12">
            <table class="layui-hide" id="datagrid_customer_vehicle" lay-filter="datagrid-operate"></table>
          </div>
        </div>
        </div>
    </div>
  </div>

  <script src="../../layuiadmin/layui/layui.js?t=1"></script>
  <script>
  var _params = '';
  layui.config({
    base: '../../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
     ,formSelects: 'formSelects-v4'
  }).use(['index', 'table', 'form', 'formSelects', 'upload', 'laydate'], function(){
    var $ = layui.$
    ,table = layui.table;
    var id = layui.view.getParameterByName('id');

    table.render({
      elem: '#datagrid_customer_vehicle'
      ,url: '/customer/vehicle/?customer=' + id
      ,id: 'datagrid_customer_vehicle'
      ,cols: [[
        {field:'name', title:'姓名',width: 100}
       ,{field:'tel', title:'电话',width: 120}
       ,{field:'number', title:'车牌号',width: 120}
       ,{field:'vin', title:'车架号',width: 200}
       ,{field:'model', title:'车型',width: 150}
       ,{field:'inspect_end_date', title:'年检到期',width: 120}
       ,{field:'insure_end_date', title:'保险到期',width: 120}
      ]]
      ,page:true
      ,height: 'full-108'
    });

  });
  </script>
</body>
</html>

