123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <title>月度违章未检车辆</title>
- <div class="layui-card layadmin-header">
- <div class="layui-breadcrumb" lay-filter="breadcrumb">
- <a lay-href="">主页</a>
- <a><cite>违章车辆管理</cite></a>
- <a><cite>月度违章未检车辆</cite></a>
- </div>
- </div>
- <div class="layui-fluid">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md12">
- <div class="layui-card">
- <!--<div class="layui-card-header">开启头部工具栏</div>-->
- <div class="layui-card-body">
- <div class="test-table-reload-btn" style="margin-bottom: 10px;">
- 选择月份:
- <div class="layui-input-inline">
- <input type="text" class="layui-input" id="test-laydate-range-date">
- </div>
- <button class="layui-btn" data-type="reload">搜索</button>
- </div>
- <table class="layui-hide" id="test-table-radio" lay-filter="test-table-radio"></table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script>
- layui.use(['admin', 'table','layer','form','view','laydate'], function(){
- var admin = layui.admin
- ,$ = layui.$
- ,layer = layui.layer
- ,view = layui.view
- ,form = layui.form
- ,laydate = layui.laydate
- ,table = layui.table;
- laydate.render({
- elem: '#test-laydate-range-date',
- type:'month',
- value: new Date(),
- format:'yyyy-MM'
- });
- table.render({
- elem: '#test-table-radio'
- ,url:'/charge/violationList'
- ,method:'post'
- ,toolbar: '#test-table-radio-toolbarDemo'
- ,title: '违章车辆记录数据表'
- ,even: true//隔行背景
- ,cols: [[
- // {type: 'radio', fixed: 'left'}
- {field:'license', title:'车牌'}
- ,{field:'VIN', title:'车架号'}
- ,{field:'owner', title:'所有人'}
- // ,{field:'EP_type', title:'环保类型'}
- // ,{field:'car_type', title:'安检类型'}
- ,{field:'customer', title:'挂账客户'}
- // ,{field:'EP_receivable', title:'环检应收'}
- // ,{field:'Safe_receivable', title:'安检应收'}
- ,{field:'receivable', title:'应收总和'}
- ,{field:'cost', title:'实收总和'}
- ,{field:'telephone', title:'联系电话'}
- ,{field:'date', title:'检测日期'}
- ,{field:'remarks', title:'备注'}
- // ,{fixed: 'right', title:'操作', toolbar: '#test-table-toolbar-barDemo', width:150}
- ]]
- ,page: true
- });
- var active = {
- reload: function(){
- var date = $('#test-laydate-range-date');
- //执行重载
- table.reload('test-table-radio', {
- where: {
- 'date': date.val(),
- }
- ,page: {
- curr: 1 //重新从第 1 页开始
- }
- });
- }
- };
- $('.test-table-reload-btn .layui-btn').on('click', function(){
- var type = $(this).data('type');
- active[type] ? active[type].call(this) : '';
- });
- });
- </script>
- </html>
|