提交 ac5d40c1 authored 作者: chengye's avatar chengye

添加表格排序功能

上级 7eb0bad9
...@@ -68,9 +68,9 @@ ...@@ -68,9 +68,9 @@
<th lay-data="{field:'region_name'} ">区域</th> <th lay-data="{field:'region_name'} ">区域</th>
<th lay-data="{field:'operator_name'}">运营商</th> <th lay-data="{field:'operator_name'}">运营商</th>
<th lay-data="{field:'proj_number'}">项目编号</th> <th lay-data="{field:'proj_number'}">项目编号</th>
<th lay-data="{templet: '#account_id'}">账户ID</th> <th lay-data="{templet: '#account_id',sort: true}">账户ID</th>
<th lay-data="{templet: '#amount'}">账户余额</th> <th lay-data="{templet: '#amount'}">账户余额</th>
<th lay-data="{field:'create_time'}">创建时间</th> <th lay-data="{field:'create_time',sort: true}">创建时间</th>
<th lay-data="{fixed: 'right', width:'180', align:'center', toolbar: '#barDemo'}">操作</th> <th lay-data="{fixed: 'right', width:'180', align:'center', toolbar: '#barDemo'}">操作</th>
</tr> </tr>
</thead> </thead>
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<div class="layui-col-md5"> <div class="layui-col-md5">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label"> <label class="layui-form-label">
缴费状态:es 缴费状态:
</label> </label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="text" autocomplete="off" class="layui-input no-border layui-width-auto" value="{$inv.status|getInvoicesStatusName}" disabled="disabled"> <input type="text" autocomplete="off" class="layui-input no-border layui-width-auto" value="{$inv.status|getInvoicesStatusName}" disabled="disabled">
......
...@@ -40,11 +40,11 @@ ...@@ -40,11 +40,11 @@
</div> </div>
<table class="layui-table" lay-filter="demo" lay-data="{ url:'/invoice', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value} }"> <thead> <table class="layui-table" lay-filter="demo" lay-data="{ url:'/invoice', page:true, initSort: {field:'wealth', type:'desc'}, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value} }"> <thead>
<tr> <tr>
<th lay-data="{type: 'checkbox', fixed: 'left'} "></th> <th lay-data="{type: 'checkbox', fixed: 'left'} "></th>
<th lay-data="{templet: '#invoice_id'} ">账单号</th> <th lay-data="{templet: '#invoice_id',sort: true} ">账单号</th>
<th lay-data="{field:'station_name'}">所属基站名</th> <th lay-data="{field:'station_name'}">所属基站名</th>
<th lay-data="{field:'em_numb'} ">所属电表号</th> <th lay-data="{field:'em_numb'} ">所属电表号</th>
<th lay-data="{field:'payment_amount'}">应缴金额</th> <th lay-data="{field:'payment_amount'}">应缴金额</th>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<div class="layui-col-md5"> <div class="layui-col-md5">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label layui-text-left"> <label class="layui-form-label layui-text-left">
缴费员: 业务员:
</label> </label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="staff_id" {if $payment.status >= 3} disabled="disabled" {/if}> <select name="staff_id" {if $payment.status >= 3} disabled="disabled" {/if}>
......
...@@ -58,12 +58,12 @@ ...@@ -58,12 +58,12 @@
<table class="layui-table" lay-data="{ url:'/payment', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,area_id:document.getElementById('area_id').value,date_start:document.getElementById('date_start').value,date_end:document.getElementById('date_end').value,cp_date:document.getElementById('cp_date').value} }"> <thead> <table class="layui-table" lay-data="{ url:'/payment', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,area_id:document.getElementById('area_id').value,date_start:document.getElementById('date_start').value,date_end:document.getElementById('date_end').value,cp_date:document.getElementById('cp_date').value} }"> <thead>
<tr> <tr>
<th lay-data="{templet: '#payment_id'} ">缴费单号</th> <th lay-data="{templet: '#payment_id',sort: true} ">缴费单号</th>
<th lay-data="{field:'invoice_id'}">账单号</th> <th lay-data="{field:'invoice_id',sort: true}">账单号</th>
<th lay-data="{field:'em_numb'} ">电表识别号</th> <th lay-data="{field:'em_numb'} ">电表识别号</th>
<th lay-data="{field:'region_name'}">区域</th> <th lay-data="{field:'region_name'}">区域</th>
<th lay-data="{field: 'status'}">缴费状态</th> <th lay-data="{field: 'status',sort: true}">缴费状态</th>
<th lay-data="{field: 'create_time'}">创建日期</th> <th lay-data="{field: 'create_time',sort: true}">创建日期</th>
<th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th> <th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th>
</tr> </tr>
</thead> </thead>
......
...@@ -53,10 +53,10 @@ ...@@ -53,10 +53,10 @@
<div class="layui-col-md5"> <div class="layui-col-md5">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label layui-text-left"> <label class="layui-form-label layui-text-left">
缴费员: 业务员:
</label> </label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="staff_id" {if $settle.status >= 3} disabled="disabled" {/if}> <select name="staff_id" {if $settle.status >= 1} disabled="disabled" {/if}>
{foreach $staffs as $u} {foreach $staffs as $u}
<option {if $settle.staff_id == $u['id']} selected="selected" {/if} value="{$u['id']}">{$u['name']}</option> <option {if $settle.staff_id == $u['id']} selected="selected" {/if} value="{$u['id']}">{$u['name']}</option>
{/foreach} {/foreach}
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<div class="layui-col-md5"> <div class="layui-col-md5">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label layui-text-left"> <label class="layui-form-label layui-text-left">
缴费凭证: 结算凭证:
</label> </label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<a class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="showCert" οnclick="return false;">查看</a> <a class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="showCert" οnclick="return false;">查看</a>
......
...@@ -44,12 +44,12 @@ ...@@ -44,12 +44,12 @@
<div> <div>
<table class="layui-table" lay-data="{ url:'/settle', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,area_id:document.getElementById('area_id').value} }"> <thead> <table class="layui-table" lay-data="{ url:'/settle', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,area_id:document.getElementById('area_id').value} }"> <thead>
<tr> <tr>
<th lay-data="{templet: '#settle_id'} ">结算单号</th> <th lay-data="{templet: '#settle_id',sort: true} ">结算单号</th>
<th lay-data="{field:'invoice_id'}">账单号</th> <th lay-data="{field:'invoice_id',sort: true}">账单号</th>
<th lay-data="{field:'em_numb'} ">电表识别号</th> <th lay-data="{field:'em_numb'} ">电表识别号</th>
<th lay-data="{field:'region_name'}">区域</th> <th lay-data="{field:'region_name'}">区域</th>
<th lay-data="{field: 'status'}">结算状态</th> <th lay-data="{field: 'status',sort: true}">结算状态</th>
<th lay-data="{field: 'create_time'}">创建日期</th> <th lay-data="{field: 'create_time',sort: true}">创建日期</th>
<th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th> <th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th>
</tr> </tr>
</thead> </thead>
......
...@@ -49,11 +49,11 @@ ...@@ -49,11 +49,11 @@
<table class="layui-table" lay-data="{ url:'/useage', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,date_start:document.getElementById('date_start').value,date_end:document.getElementById('date_end').value,cp_date:document.getElementById('cp_date').value} }"> <table class="layui-table" lay-data="{ url:'/useage', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,date_start:document.getElementById('date_start').value,date_end:document.getElementById('date_end').value,cp_date:document.getElementById('cp_date').value} }">
<thead> <thead>
<tr> <tr>
<th lay-data="{templet: '#useage_id'} ">抄表单号</th> <th lay-data="{templet: '#useage_id',sort: true} ">抄表单号</th>
<th lay-data="{field:'station_name'}">所属基站名</th> <th lay-data="{field:'station_name'}">所属基站名</th>
<th lay-data="{field:'em_numb'} ">所属电表号</th> <th lay-data="{field:'em_numb'} ">所属电表号</th>
<th lay-data="{field:'current_date'}">抄表日期</th> <th lay-data="{field:'current_date',sort: true}">抄表日期</th>
<th lay-data="{templet: '#photo_id'}">抄表凭证</th> <th lay-data="{templet: '#photo_id',sort: true}">抄表凭证</th>
<th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th> <th lay-data="{fixed: 'right', align:'center', toolbar: '#barDemo'}">操作</th>
</tr> </tr>
</thead> </thead>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论