全部搜索替换
Showing
11 changed files
with
252 additions
and
408 deletions
| ... | @@ -3,65 +3,7 @@ | ... | @@ -3,65 +3,7 @@ |
| 3 | <body> | 3 | <body> |
| 4 | <div class="page-container"> | 4 | <div class="page-container"> |
| 5 | <form class="" onreset="resetHandler()"> | 5 | <form class="" onreset="resetHandler()"> |
| 6 | <<<<<<< HEAD | ||
| 7 | <?php $this->load->view('work/search2'); ?> | 6 | <?php $this->load->view('work/search2'); ?> |
| 8 | ======= | ||
| 9 | <div class="date mb-20"> | ||
| 10 | <input type="text" | ||
| 11 | onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 12 | id="min" class="input-text Wdate"> - | ||
| 13 | <input type="text" | ||
| 14 | onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 15 | id="max" class="input-text Wdate"> | ||
| 16 | </div> | ||
| 17 | <div class="row cl mb-20"> | ||
| 18 | <div class="col-xs-2"> | ||
| 19 | <span class="select-box"> | ||
| 20 | <select class="select table_search" size="1"> | ||
| 21 | <option value="" selected>还款状态</option> | ||
| 22 | <?php foreach ($this->session->repaymentPlans as $k => $v): ?> | ||
| 23 | <option value="<?= $k ?>"><?= $v ?></option> | ||
| 24 | <?php endforeach; ?> | ||
| 25 | </select> | ||
| 26 | </span> | ||
| 27 | </div> | ||
| 28 | <div class="col-xs-2"> | ||
| 29 | <span class="select-box"> | ||
| 30 | <select class="select table_search" name="departmentId" size="1" column="6"> | ||
| 31 | <option value="" selected>网点</option> | ||
| 32 | <?php foreach ($this->session->departments as $k => $v): ?> | ||
| 33 | <option value="<?= $v->id ?>"><?= $v->name ?></option> | ||
| 34 | <?php endforeach; ?> | ||
| 35 | </select> | ||
| 36 | </span> | ||
| 37 | </div> | ||
| 38 | <div class="col-xs-2"> | ||
| 39 | <span class="select-box"> | ||
| 40 | <select class="select table_search" size="1"> | ||
| 41 | <option value="" selected>是否逾期</option> | ||
| 42 | <option value="0">否</option> | ||
| 43 | <option value="1">是</option> | ||
| 44 | </select> | ||
| 45 | </span> | ||
| 46 | </div> | ||
| 47 | <div class="col-xs-2"> | ||
| 48 | <span class="select-box"> | ||
| 49 | <select class="select table_search" size="1"> | ||
| 50 | <option value="" selected>来源</option> | ||
| 51 | <?php foreach ($this->session->repaymentPlanSource as $k => $v): ?> | ||
| 52 | <option value="<?= $k ?>"><?= $v ?></option> | ||
| 53 | <?php endforeach; ?> | ||
| 54 | </select> | ||
| 55 | </span> | ||
| 56 | </div> | ||
| 57 | <div class="col-xs-2"> | ||
| 58 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="2"> | ||
| 59 | </div> | ||
| 60 | <div class="col-xs-2"> | ||
| 61 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="4"> | ||
| 62 | </div> | ||
| 63 | </div> | ||
| 64 | >>>>>>> b528e7d7be87ddca09c05b5be0d74417e77abf3a | ||
| 65 | <div> | 7 | <div> |
| 66 | <input class="btn btn-warning radius" type="reset" value="重置"> | 8 | <input class="btn btn-warning radius" type="reset" value="重置"> |
| 67 | </div> | 9 | </div> | ... | ... |
| ... | @@ -3,60 +3,7 @@ | ... | @@ -3,60 +3,7 @@ |
| 3 | <body> | 3 | <body> |
| 4 | <div class="page-container"> | 4 | <div class="page-container"> |
| 5 | <form class="" onreset="resetHandler()" id="repayment"> | 5 | <form class="" onreset="resetHandler()" id="repayment"> |
| 6 | <div class="date mb-20"> | 6 | <?php $this->load->view('work/search2'); ?> |
| 7 | <input type="text" | ||
| 8 | onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 9 | id="min" class="input-text Wdate"> - | ||
| 10 | <input type="text" | ||
| 11 | onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 12 | id="max" class="input-text Wdate"> | ||
| 13 | </div> | ||
| 14 | <div class="row cl mb-20"> | ||
| 15 | <div class="col-xs-2"> | ||
| 16 | <span class="select-box"> | ||
| 17 | <select class="select table_search" column="17"> | ||
| 18 | <option value="" selected>还款状态</option> | ||
| 19 | <option value="1"></option> | ||
| 20 | </select> | ||
| 21 | </span> | ||
| 22 | </div> | ||
| 23 | <div class="col-xs-2"> | ||
| 24 | <span class="select-box"> | ||
| 25 | <select class="select table_search" size="1" column="7"> | ||
| 26 | <option value="" selected>网点</option> | ||
| 27 | <option value="1">菜单一</option> | ||
| 28 | <option value="2">菜单二</option> | ||
| 29 | <option value="3">菜单三</option> | ||
| 30 | </select> | ||
| 31 | </span> | ||
| 32 | </div> | ||
| 33 | <div class="col-xs-2"> | ||
| 34 | <span class="select-box"> | ||
| 35 | <select class="select table_search" column="16"> | ||
| 36 | <option value="" selected>是否逾期</option> | ||
| 37 | <option value="1">菜单一</option> | ||
| 38 | <option value="2">菜单二</option> | ||
| 39 | <option value="3">菜单三</option> | ||
| 40 | </select> | ||
| 41 | </span> | ||
| 42 | </div> | ||
| 43 | <div class="col-xs-2"> | ||
| 44 | <span class="select-box"> | ||
| 45 | <select class="select table_search" column="2"> | ||
| 46 | <option value="" selected>来源</option> | ||
| 47 | <option>李四</option> | ||
| 48 | <option>菜单二</option> | ||
| 49 | <option>菜单三</option> | ||
| 50 | </select> | ||
| 51 | </span> | ||
| 52 | </div> | ||
| 53 | <div class="col-xs-2"> | ||
| 54 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3"> | ||
| 55 | </div> | ||
| 56 | <div class="col-xs-2"> | ||
| 57 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5"> | ||
| 58 | </div> | ||
| 59 | </div> | ||
| 60 | <div> | 7 | <div> |
| 61 | <input class="btn btn-warning radius" type="reset" value="重置"> | 8 | <input class="btn btn-warning radius" type="reset" value="重置"> |
| 62 | 9 | ||
| ... | @@ -207,7 +154,7 @@ | ... | @@ -207,7 +154,7 @@ |
| 207 | layer.msg('删除'); | 154 | layer.msg('删除'); |
| 208 | }); | 155 | }); |
| 209 | } | 156 | } |
| 210 | 157 | ||
| 211 | function move(id) { | 158 | function move(id) { |
| 212 | layer_show('资料移交', '<?=site_url('/loan/move')?>'); | 159 | layer_show('资料移交', '<?=site_url('/loan/move')?>'); |
| 213 | } | 160 | } | ... | ... |
| ... | @@ -3,53 +3,7 @@ | ... | @@ -3,53 +3,7 @@ |
| 3 | <body> | 3 | <body> |
| 4 | <div class="page-container"> | 4 | <div class="page-container"> |
| 5 | <form class="" onreset="resetHandler()" id="prosecute"> | 5 | <form class="" onreset="resetHandler()" id="prosecute"> |
| 6 | <div class="date mb-20"> | 6 | <?php $this->load->view('loan/search'); ?> |
| 7 | <input type="text" | ||
| 8 | onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 9 | id="min" class="input-text Wdate"> - | ||
| 10 | <input type="text" | ||
| 11 | onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 12 | id="max" class="input-text Wdate"> | ||
| 13 | </div> | ||
| 14 | <div class="row cl mb-20"> | ||
| 15 | <div class="col-xs-2"> | ||
| 16 | <span class="select-box"> | ||
| 17 | <select class="select table_search" column="17"> | ||
| 18 | <option value="" selected>还款状态</option> | ||
| 19 | <option value="1"></option> | ||
| 20 | </select> | ||
| 21 | </span> | ||
| 22 | </div> | ||
| 23 | <div class="col-xs-2"> | ||
| 24 | <span class="select-box"> | ||
| 25 | <select class="select table_search" size="1" column="7"> | ||
| 26 | <option value="" selected>网点</option> | ||
| 27 | <option value="1">菜单一</option> | ||
| 28 | <option value="2">菜单二</option> | ||
| 29 | <option value="3">菜单三</option> | ||
| 30 | </select> | ||
| 31 | </span> | ||
| 32 | </div> | ||
| 33 | <div class="col-xs-2"> | ||
| 34 | <span class="select-box"> | ||
| 35 | <select class="select table_search" column="16"> | ||
| 36 | <option value="" selected>还款天数</option> | ||
| 37 | <option><=7</option> | ||
| 38 | <option><=15</option> | ||
| 39 | <option><=30</option> | ||
| 40 | <option><=60</option> | ||
| 41 | <option><=90</option> | ||
| 42 | <option>其他</option> | ||
| 43 | </select> | ||
| 44 | </span> | ||
| 45 | </div> | ||
| 46 | <div class="col-xs-2"> | ||
| 47 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3"> | ||
| 48 | </div> | ||
| 49 | <div class="col-xs-2"> | ||
| 50 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5"> | ||
| 51 | </div> | ||
| 52 | </div> | ||
| 53 | <div> | 7 | <div> |
| 54 | <input class="btn btn-warning radius" type="reset" value="重置"> | 8 | <input class="btn btn-warning radius" type="reset" value="重置"> |
| 55 | 9 | ||
| ... | @@ -177,6 +131,13 @@ | ... | @@ -177,6 +131,13 @@ |
| 177 | $('#table').DataTable().column(column).search(search).draw(); | 131 | $('#table').DataTable().column(column).search(search).draw(); |
| 178 | }); | 132 | }); |
| 179 | 133 | ||
| 134 | $('.table_search').on('keyup', function () { | ||
| 135 | search = $(this).val(); | ||
| 136 | column = $(this).attr('column'); | ||
| 137 | |||
| 138 | $('#table').DataTable().column(column).search(search).draw(); | ||
| 139 | }); | ||
| 140 | |||
| 180 | $('#min, #max').on('keyup', function () { | 141 | $('#min, #max').on('keyup', function () { |
| 181 | $('#table').DataTable().draw(); | 142 | $('#table').DataTable().draw(); |
| 182 | }); | 143 | }); | ... | ... |
| ... | @@ -3,53 +3,7 @@ | ... | @@ -3,53 +3,7 @@ |
| 3 | <body> | 3 | <body> |
| 4 | <div class="page-container"> | 4 | <div class="page-container"> |
| 5 | <form class="" onreset="resetHandler()" id="prosecute"> | 5 | <form class="" onreset="resetHandler()" id="prosecute"> |
| 6 | <div class="date mb-20"> | 6 | <?php $this->load->view('loan/search'); ?> |
| 7 | <input type="text" | ||
| 8 | onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 9 | id="min" class="input-text Wdate"> - | ||
| 10 | <input type="text" | ||
| 11 | onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 12 | id="max" class="input-text Wdate"> | ||
| 13 | </div> | ||
| 14 | <div class="row cl mb-20"> | ||
| 15 | <div class="col-xs-2"> | ||
| 16 | <span class="select-box"> | ||
| 17 | <select class="select table_search" column="17"> | ||
| 18 | <option value="" selected>还款状态</option> | ||
| 19 | <option value="1"></option> | ||
| 20 | </select> | ||
| 21 | </span> | ||
| 22 | </div> | ||
| 23 | <div class="col-xs-2"> | ||
| 24 | <span class="select-box"> | ||
| 25 | <select class="select table_search" size="1" column="7"> | ||
| 26 | <option value="" selected>网点</option> | ||
| 27 | <option value="1">菜单一</option> | ||
| 28 | <option value="2">菜单二</option> | ||
| 29 | <option value="3">菜单三</option> | ||
| 30 | </select> | ||
| 31 | </span> | ||
| 32 | </div> | ||
| 33 | <div class="col-xs-2"> | ||
| 34 | <span class="select-box"> | ||
| 35 | <select class="select table_search" column="16"> | ||
| 36 | <option value="" selected>还款天数</option> | ||
| 37 | <option><=7</option> | ||
| 38 | <option><=15</option> | ||
| 39 | <option><=30</option> | ||
| 40 | <option><=60</option> | ||
| 41 | <option><=90</option> | ||
| 42 | <option>其他</option> | ||
| 43 | </select> | ||
| 44 | </span> | ||
| 45 | </div> | ||
| 46 | <div class="col-xs-2"> | ||
| 47 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3"> | ||
| 48 | </div> | ||
| 49 | <div class="col-xs-2"> | ||
| 50 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5"> | ||
| 51 | </div> | ||
| 52 | </div> | ||
| 53 | <div> | 7 | <div> |
| 54 | <input class="btn btn-warning radius" type="reset" value="重置"> | 8 | <input class="btn btn-warning radius" type="reset" value="重置"> |
| 55 | 9 | ||
| ... | @@ -175,6 +129,13 @@ | ... | @@ -175,6 +129,13 @@ |
| 175 | $('#table').DataTable().column(column).search(search).draw(); | 129 | $('#table').DataTable().column(column).search(search).draw(); |
| 176 | }); | 130 | }); |
| 177 | 131 | ||
| 132 | $('.table_search').on('keyup', function () { | ||
| 133 | search = $(this).val(); | ||
| 134 | column = $(this).attr('column'); | ||
| 135 | |||
| 136 | $('#table').DataTable().column(column).search(search).draw(); | ||
| 137 | }); | ||
| 138 | |||
| 178 | $('#min, #max').on('keyup', function () { | 139 | $('#min, #max').on('keyup', function () { |
| 179 | $('#table').DataTable().draw(); | 140 | $('#table').DataTable().draw(); |
| 180 | }); | 141 | }); | ... | ... |
| ... | @@ -3,53 +3,7 @@ | ... | @@ -3,53 +3,7 @@ |
| 3 | <body> | 3 | <body> |
| 4 | <div class="page-container"> | 4 | <div class="page-container"> |
| 5 | <form class="" onreset="resetHandler()" id="reminder"> | 5 | <form class="" onreset="resetHandler()" id="reminder"> |
| 6 | <div class="date mb-20"> | 6 | <?php $this->load->view('loan/search'); ?> |
| 7 | <input type="text" | ||
| 8 | onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 9 | id="min" class="input-text Wdate"> - | ||
| 10 | <input type="text" | ||
| 11 | onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 12 | id="max" class="input-text Wdate"> | ||
| 13 | </div> | ||
| 14 | <div class="row cl mb-20"> | ||
| 15 | <div class="col-xs-2"> | ||
| 16 | <span class="select-box"> | ||
| 17 | <select class="select table_search" column="17"> | ||
| 18 | <option value="" selected>还款状态</option> | ||
| 19 | <option value="1"></option> | ||
| 20 | </select> | ||
| 21 | </span> | ||
| 22 | </div> | ||
| 23 | <div class="col-xs-2"> | ||
| 24 | <span class="select-box"> | ||
| 25 | <select class="select table_search" size="1" column="7"> | ||
| 26 | <option value="" selected>网点</option> | ||
| 27 | <option value="1">菜单一</option> | ||
| 28 | <option value="2">菜单二</option> | ||
| 29 | <option value="3">菜单三</option> | ||
| 30 | </select> | ||
| 31 | </span> | ||
| 32 | </div> | ||
| 33 | <div class="col-xs-2"> | ||
| 34 | <span class="select-box"> | ||
| 35 | <select class="select table_search" column="16"> | ||
| 36 | <option value="" selected>还款天数</option> | ||
| 37 | <option><=7</option> | ||
| 38 | <option><=15</option> | ||
| 39 | <option><=30</option> | ||
| 40 | <option><=60</option> | ||
| 41 | <option><=90</option> | ||
| 42 | <option>其他</option> | ||
| 43 | </select> | ||
| 44 | </span> | ||
| 45 | </div> | ||
| 46 | <div class="col-xs-2"> | ||
| 47 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3"> | ||
| 48 | </div> | ||
| 49 | <div class="col-xs-2"> | ||
| 50 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5"> | ||
| 51 | </div> | ||
| 52 | </div> | ||
| 53 | <div> | 7 | <div> |
| 54 | <input class="btn btn-warning radius" type="reset" value="重置"> | 8 | <input class="btn btn-warning radius" type="reset" value="重置"> |
| 55 | 9 | ... | ... |
| ... | @@ -3,60 +3,7 @@ | ... | @@ -3,60 +3,7 @@ |
| 3 | <body> | 3 | <body> |
| 4 | <div class="page-container"> | 4 | <div class="page-container"> |
| 5 | <form class="" onreset="resetHandler()" id="repayment"> | 5 | <form class="" onreset="resetHandler()" id="repayment"> |
| 6 | <div class="date mb-20"> | 6 | <?php $this->load->view('loan/search2'); ?> |
| 7 | <input type="text" | ||
| 8 | onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 9 | id="min" class="input-text Wdate"> - | ||
| 10 | <input type="text" | ||
| 11 | onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 12 | id="max" class="input-text Wdate"> | ||
| 13 | </div> | ||
| 14 | <div class="row cl mb-20"> | ||
| 15 | <div class="col-xs-2"> | ||
| 16 | <span class="select-box"> | ||
| 17 | <select class="select table_search" column="17"> | ||
| 18 | <option value="" selected>还款状态</option> | ||
| 19 | <option value="1"></option> | ||
| 20 | </select> | ||
| 21 | </span> | ||
| 22 | </div> | ||
| 23 | <div class="col-xs-2"> | ||
| 24 | <span class="select-box"> | ||
| 25 | <select class="select table_search" size="1" column="7"> | ||
| 26 | <option value="" selected>网点</option> | ||
| 27 | <option value="1">菜单一</option> | ||
| 28 | <option value="2">菜单二</option> | ||
| 29 | <option value="3">菜单三</option> | ||
| 30 | </select> | ||
| 31 | </span> | ||
| 32 | </div> | ||
| 33 | <div class="col-xs-2"> | ||
| 34 | <span class="select-box"> | ||
| 35 | <select class="select table_search" column="16"> | ||
| 36 | <option value="" selected>是否逾期</option> | ||
| 37 | <option value="1">菜单一</option> | ||
| 38 | <option value="2">菜单二</option> | ||
| 39 | <option value="3">菜单三</option> | ||
| 40 | </select> | ||
| 41 | </span> | ||
| 42 | </div> | ||
| 43 | <div class="col-xs-2"> | ||
| 44 | <span class="select-box"> | ||
| 45 | <select class="select table_search" column="2"> | ||
| 46 | <option value="" selected>来源</option> | ||
| 47 | <option>李四</option> | ||
| 48 | <option>菜单二</option> | ||
| 49 | <option>菜单三</option> | ||
| 50 | </select> | ||
| 51 | </span> | ||
| 52 | </div> | ||
| 53 | <div class="col-xs-2"> | ||
| 54 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3"> | ||
| 55 | </div> | ||
| 56 | <div class="col-xs-2"> | ||
| 57 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5"> | ||
| 58 | </div> | ||
| 59 | </div> | ||
| 60 | <div> | 7 | <div> |
| 61 | <input class="btn btn-warning radius" type="reset" value="重置"> | 8 | <input class="btn btn-warning radius" type="reset" value="重置"> |
| 62 | 9 | ... | ... |
application/views/loan/search.php
0 → 100644
| 1 | <div class="date mb-20"> | ||
| 2 | <input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })" id="min" class="input-text Wdate"> - | ||
| 3 | <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })" id="max" class="input-text Wdate"> | ||
| 4 | </div> | ||
| 5 | <div class="row cl mb-20"> | ||
| 6 | <div class="col-xs-2"> | ||
| 7 | <span class="select-box"> | ||
| 8 | <select class="select table_search" column="17"> | ||
| 9 | <option value="" selected>还款状态</option> | ||
| 10 | <?php foreach ($this->session->repayStatus as $k=>$v):?> | ||
| 11 | <option value="<?=$v->id?>"><?=$v->name?></option> | ||
| 12 | <?php endforeach;?> | ||
| 13 | </select> | ||
| 14 | </span> | ||
| 15 | </div> | ||
| 16 | <div class="col-xs-2"> | ||
| 17 | <span class="select-box"> | ||
| 18 | <select class="select table_search" size="1" column="7"> | ||
| 19 | <option value="" selected>网点</option> | ||
| 20 | <?php foreach ($this->session->departments as $k=>$v):?> | ||
| 21 | <option value="<?=$v->id?>"><?=$v->name?></option> | ||
| 22 | <?php endforeach;?> | ||
| 23 | </select> | ||
| 24 | </span> | ||
| 25 | </div> | ||
| 26 | <div class="col-xs-2"> | ||
| 27 | <span class="select-box"> | ||
| 28 | <select class="select table_search" column="16"> | ||
| 29 | <option value="" selected>还款天数</option> | ||
| 30 | <option><=7</option> | ||
| 31 | <option><=15</option> | ||
| 32 | <option><=30</option> | ||
| 33 | <option><=60</option> | ||
| 34 | <option><=90</option> | ||
| 35 | <option>其他</option> | ||
| 36 | </select> | ||
| 37 | </span> | ||
| 38 | </div> | ||
| 39 | <div class="col-xs-2"> | ||
| 40 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3"> | ||
| 41 | </div> | ||
| 42 | <div class="col-xs-2"> | ||
| 43 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5"> | ||
| 44 | </div> | ||
| 45 | </div> |
application/views/loan/search2.php
0 → 100644
| 1 | <div class="date mb-20"> | ||
| 2 | <input type="text" | ||
| 3 | onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 4 | id="min" class="input-text Wdate"> - | ||
| 5 | <input type="text" | ||
| 6 | onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })" | ||
| 7 | id="max" class="input-text Wdate"> | ||
| 8 | </div> | ||
| 9 | <div class="row cl mb-20"> | ||
| 10 | <div class="col-xs-2"> | ||
| 11 | <span class="select-box"> | ||
| 12 | <select class="select table_search" column="17"> | ||
| 13 | <option value="" selected>还款状态</option> | ||
| 14 | <?php foreach ($this->session->repayStatus as $k=>$v):?> | ||
| 15 | <option value="<?=$v->id?>"><?=$v->name?></option> | ||
| 16 | <?php endforeach;?> | ||
| 17 | </select> | ||
| 18 | </span> | ||
| 19 | </div> | ||
| 20 | <div class="col-xs-2"> | ||
| 21 | <span class="select-box"> | ||
| 22 | <select class="select table_search" size="1" column="7"> | ||
| 23 | <option value="" selected>网点</option> | ||
| 24 | <?php foreach ($this->session->departments as $k=>$v):?> | ||
| 25 | <option value="<?=$v->id?>"><?=$v->name?></option> | ||
| 26 | <?php endforeach;?> | ||
| 27 | </select> | ||
| 28 | </span> | ||
| 29 | </div> | ||
| 30 | <div class="col-xs-2"> | ||
| 31 | <span class="select-box"> | ||
| 32 | <select class="select table_search" column="16"> | ||
| 33 | <option value="" selected>是否逾期</option> | ||
| 34 | <option>是</option> | ||
| 35 | <option>否</option> | ||
| 36 | </select> | ||
| 37 | </span> | ||
| 38 | </div> | ||
| 39 | <div class="col-xs-2"> | ||
| 40 | <span class="select-box"> | ||
| 41 | <select class="select table_search" column="2"> | ||
| 42 | <option value="" selected>来源</option> | ||
| 43 | <?php foreach ($this->session->source as $k=>$v):?> | ||
| 44 | <option value="<?=$v->id?>"><?=$v->name?></option> | ||
| 45 | <?php endforeach;?> | ||
| 46 | </select> | ||
| 47 | </span> | ||
| 48 | </div> | ||
| 49 | <div class="col-xs-2"> | ||
| 50 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3"> | ||
| 51 | </div> | ||
| 52 | <div class="col-xs-2"> | ||
| 53 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5"> | ||
| 54 | </div> | ||
| 55 | </div> |
| ... | @@ -9,9 +9,9 @@ | ... | @@ -9,9 +9,9 @@ |
| 9 | <span class="select-box"> | 9 | <span class="select-box"> |
| 10 | <select class="select table_search" size="1" column="1"> | 10 | <select class="select table_search" size="1" column="1"> |
| 11 | <option value="" selected>网点</option> | 11 | <option value="" selected>网点</option> |
| 12 | <option>菜单一</option> | 12 | <?php foreach ($this->session->departments as $k=>$v):?> |
| 13 | <option>菜单二</option> | 13 | <option value="<?=$v->id?>"><?=$v->name?></option> |
| 14 | <option>菜单三</option> | 14 | <?php endforeach;?> |
| 15 | </select> | 15 | </select> |
| 16 | </span> | 16 | </span> |
| 17 | </div> | 17 | </div> |
| ... | @@ -19,10 +19,9 @@ | ... | @@ -19,10 +19,9 @@ |
| 19 | <span class="select-box"> | 19 | <span class="select-box"> |
| 20 | <select class="select table_search" size="1" column="2"> | 20 | <select class="select table_search" size="1" column="2"> |
| 21 | <option value="" selected>角色</option> | 21 | <option value="" selected>角色</option> |
| 22 | <option>催收人员</option> | 22 | <?php foreach ($this->session->role as $k=>$v):?> |
| 23 | <option>信审人员</option> | 23 | <option value="<?=$v->id?>"><?=$v->name?></option> |
| 24 | <option>管理员</option> | 24 | <?php endforeach;?> |
| 25 | <option>超级管理员</option> | ||
| 26 | </select> | 25 | </select> |
| 27 | </span> | 26 | </span> |
| 28 | </div> | 27 | </div> | ... | ... |
| ... | @@ -9,9 +9,9 @@ | ... | @@ -9,9 +9,9 @@ |
| 9 | <span class="select-box"> | 9 | <span class="select-box"> |
| 10 | <select class="select table_search" size="1" column="1"> | 10 | <select class="select table_search" size="1" column="1"> |
| 11 | <option value="" selected>网点</option> | 11 | <option value="" selected>网点</option> |
| 12 | <option>菜单一</option> | 12 | <?php foreach ($this->session->departments as $k=>$v):?> |
| 13 | <option>菜单二</option> | 13 | <option value="<?=$v->id?>"><?=$v->name?></option> |
| 14 | <option>菜单三</option> | 14 | <?php endforeach;?> |
| 15 | </select> | 15 | </select> |
| 16 | </span> | 16 | </span> |
| 17 | </div> | 17 | </div> |
| ... | @@ -19,10 +19,9 @@ | ... | @@ -19,10 +19,9 @@ |
| 19 | <span class="select-box"> | 19 | <span class="select-box"> |
| 20 | <select class="select table_search" size="1" column="2"> | 20 | <select class="select table_search" size="1" column="2"> |
| 21 | <option value="" selected>角色</option> | 21 | <option value="" selected>角色</option> |
| 22 | <option>催收人员</option> | 22 | <?php foreach ($this->session->role as $k=>$v):?> |
| 23 | <option>信审人员</option> | 23 | <option value="<?=$v->id?>"><?=$v->name?></option> |
| 24 | <option>管理员</option> | 24 | <?php endforeach;?> |
| 25 | <option>超级管理员</option> | ||
| 26 | </select> | 25 | </select> |
| 27 | </span> | 26 | </span> |
| 28 | </div> | 27 | </div> | ... | ... |
| ... | @@ -16,51 +16,51 @@ | ... | @@ -16,51 +16,51 @@ |
| 16 | <div class="row cl mb-20"> | 16 | <div class="row cl mb-20"> |
| 17 | <div class="col-xs-2"> | 17 | <div class="col-xs-2"> |
| 18 | <span class="select-box"> | 18 | <span class="select-box"> |
| 19 | <select class="select" size="1"> | 19 | <select class="select" size="1" column="7"> |
| 20 | <option value="" selected>网点</option> | 20 | <option value="" selected>网点</option> |
| 21 | <option value="1">菜单一</option> | 21 | <?php foreach ($this->session->departments as $k=>$v):?> |
| 22 | <option value="2">菜单二</option> | 22 | <option value="<?=$v->id?>"><?=$v->name?></option> |
| 23 | <option value="3">菜单三</option> | 23 | <?php endforeach;?> |
| 24 | </select> | 24 | </select> |
| 25 | </span> | 25 | </span> |
| 26 | </div> | 26 | </div> |
| 27 | <div class="col-xs-2"> | 27 | <div class="col-xs-2"> |
| 28 | <span class="select-box"> | 28 | <span class="select-box"> |
| 29 | <select class="select" size="1"> | 29 | <select class="select" size="1" column="8"> |
| 30 | <option value="" selected>产品名称</option> | 30 | <option value="" selected>产品名称</option> |
| 31 | <option value="1">菜单一</option> | 31 | <?php foreach ($this->session->products as $k=>$v):?> |
| 32 | <option value="2">菜单二</option> | 32 | <option value="<?=$v->id?>"><?=$v->productName?></option> |
| 33 | <option value="3">菜单三</option> | 33 | <?php endforeach;?> |
| 34 | </select> | 34 | </select> |
| 35 | </span> | 35 | </span> |
| 36 | </div> | 36 | </div> |
| 37 | <div class="col-xs-2"> | 37 | <div class="col-xs-2"> |
| 38 | <span class="select-box"> | 38 | <span class="select-box"> |
| 39 | <select class="select" size="1"> | 39 | <select class="select" size="1" column="11"> |
| 40 | <option value="" selected>客户经理</option> | 40 | <option value="" selected>客户经理</option> |
| 41 | <option value="1">菜单一</option> | 41 | <?php foreach ($this->session->customerManagers as $k=>$v):?> |
| 42 | <option value="2">菜单二</option> | 42 | <option value="<?=$v->id?>"><?=$v->name?></option> |
| 43 | <option value="3">菜单三</option> | 43 | <?php endforeach;?> |
| 44 | </select> | 44 | </select> |
| 45 | </span> | 45 | </span> |
| 46 | </div> | 46 | </div> |
| 47 | <div class="col-xs-2"> | 47 | <div class="col-xs-2"> |
| 48 | <span class="select-box"> | 48 | <span class="select-box"> |
| 49 | <select class="select" size="1"> | 49 | <select class="select" size="1" column="12"> |
| 50 | <option value="" selected>流程节点</option> | 50 | <option value="" selected>流程节点</option> |
| 51 | <option value="1">菜单一</option> | 51 | <?php foreach ($this->session->orderStatus as $k=>$v):?> |
| 52 | <option value="2">菜单二</option> | 52 | <option value="<?=$k?>"><?=$v?></option> |
| 53 | <option value="3">菜单三</option> | 53 | <?php endforeach;?> |
| 54 | </select> | 54 | </select> |
| 55 | </span> | 55 | </span> |
| 56 | </div> | 56 | </div> |
| 57 | <div class="col-xs-2"> | 57 | <div class="col-xs-2"> |
| 58 | <span class="select-box"> | 58 | <span class="select-box"> |
| 59 | <select class="select" size="1"> | 59 | <select class="select" size="1" column="14"> |
| 60 | <option value="" selected>处理人</option> | 60 | <option value="" selected>处理人</option> |
| 61 | <option value="1">菜单一</option> | 61 | <?php foreach ($this->session->operatorManagers as $k=>$v):?> |
| 62 | <option value="2">菜单二</option> | 62 | <option value="<?=$k?>"><?=$v->name?></option> |
| 63 | <option value="3">菜单三</option> | 63 | <?php endforeach;?> |
| 64 | </select> | 64 | </select> |
| 65 | </span> | 65 | </span> |
| 66 | </div> | 66 | </div> |
| ... | @@ -96,79 +96,113 @@ | ... | @@ -96,79 +96,113 @@ |
| 96 | </tr> | 96 | </tr> |
| 97 | </thead> | 97 | </thead> |
| 98 | <tbody class="text-c"> | 98 | <tbody class="text-c"> |
| 99 | <tr> | ||
| 100 | <td><input type="checkbox"></td> | ||
| 101 | <td> | ||
| 102 | <span class="dropDown dropDown_hover"> | ||
| 103 | <button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button> | ||
| 104 | <ul class="dropDown-menu menu radius box-shadow"> | ||
| 105 | <li><a href="javascript:;" onclick="layer_show('订单详情', '/work/detail/1?tab=0')">查看详细</a></li> | ||
| 106 | <li><a href="javascript:get(1);">获取</a></li> | ||
| 107 | <li><a href="javascript:appoint(1);">派单</a></li> | ||
| 108 | <li><a href="#">客户取消</a></li> | ||
| 109 | <li><a href="javascript:;" onclick="layer_show('订单详情', '/work/detail/1?tab=2')">处理记录</a></li> | ||
| 110 | </ul> | ||
| 111 | </span> | ||
| 112 | </td> | ||
| 113 | <td>1001</td> | ||
| 114 | <td>张三</td> | ||
| 115 | <td>333333333333333333</td> | ||
| 116 | <td>13333333333</td> | ||
| 117 | <td>2018-01-01 00:00:00</td> | ||
| 118 | <td>下沙网点</td> | ||
| 119 | <td>融易购</td> | ||
| 120 | <td>100.00</td> | ||
| 121 | <td>100.00</td> | ||
| 122 | <td>李四</td> | ||
| 123 | <td class="c-primary">预审</td> | ||
| 124 | <td>2018-01-02 00:00:00</td> | ||
| 125 | <td>小明</td> | ||
| 126 | </tr> | ||
| 127 | <tr> | ||
| 128 | <td><input type="checkbox"></td> | ||
| 129 | <td> | ||
| 130 | <span class="dropDown dropDown_hover"> | ||
| 131 | <button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button> | ||
| 132 | <ul class="dropDown-menu menu radius box-shadow"> | ||
| 133 | <li><a href="javascript:;" onclick="layer_show('订单详情', '/work/detail/1?tab=0')">查看详细</a></li> | ||
| 134 | <li><a href="javascript:get(1);">获取</a></li> | ||
| 135 | <li><a href="javascript:appoint(1);">派单</a></li> | ||
| 136 | <li><a href="#">客户取消</a></li> | ||
| 137 | <li><a href="javascript:;" onclick="layer_show('订单详情', '/work/detail/1?tab=2')">处理记录</a></li> | ||
| 138 | </ul> | ||
| 139 | </span> | ||
| 140 | </td> | ||
| 141 | <td>1001</td> | ||
| 142 | <td>张三</td> | ||
| 143 | <td>333333333333333333</td> | ||
| 144 | <td>13333333333</td> | ||
| 145 | <td>2018-01-01 00:00:00</td> | ||
| 146 | <td>下沙网点</td> | ||
| 147 | <td>融易购</td> | ||
| 148 | <td>100.00</td> | ||
| 149 | <td>100.00</td> | ||
| 150 | <td>李四</td> | ||
| 151 | <td class="c-999">完成</td> | ||
| 152 | <td>2018-01-02 00:00:00</td> | ||
| 153 | <td>小明</td> | ||
| 154 | </tr> | ||
| 155 | </tbody> | 99 | </tbody> |
| 156 | </table> | 100 | </table> |
| 157 | <div class="paginate"> | ||
| 158 | <div class="paginate_info">显示 1 到 1 ,共 1 条</div> | ||
| 159 | <div class="paginate_pagination"> | ||
| 160 | <a class="paginate_button">上一页</a> | ||
| 161 | <span> | ||
| 162 | <a class="paginate_button current">1</a> | ||
| 163 | </span> | ||
| 164 | <a class="paginate_button">下一页</a> | ||
| 165 | </div> | ||
| 166 | </div> | ||
| 167 | </div> | 101 | </div> |
| 168 | </div> | 102 | </div> |
| 169 | <?php $this->load->view('common/footer'); ?> | 103 | <?php $this->load->view('common/footer'); ?> |
| 170 | 104 | ||
| 171 | <script> | 105 | <script> |
| 106 | var table = $('#table').dataTable({ | ||
| 107 | aaSorting: [[1, "desc"]], | ||
| 108 | serverSide: true, | ||
| 109 | processing: true, | ||
| 110 | bSort: false, | ||
| 111 | searching: false,//是否显示搜索 | ||
| 112 | iDisplayLength: 6, | ||
| 113 | bLengthChange: false, | ||
| 114 | ajax: { | ||
| 115 | url: apiBaseUrl + '/order/into/getAllApplyOrder', | ||
| 116 | dataFilter: function (json) { | ||
| 117 | var ret = {}, json = jQuery.parseJSON(json); | ||
| 118 | ret.data = json.data || []; | ||
| 119 | var draw = getUrlParam('draw'); | ||
| 120 | if(draw) { | ||
| 121 | ret.draw = draw; | ||
| 122 | } | ||
| 123 | ret.recordsTotal = 0; | ||
| 124 | ret.recordsFiltered = 0; | ||
| 125 | if (json.page) { | ||
| 126 | ret.recordsTotal = parseInt(json.page.totalNumber); | ||
| 127 | ret.recordsFiltered = parseInt(json.page.totalNumber); | ||
| 128 | } | ||
| 129 | return JSON.stringify(ret); | ||
| 130 | }, | ||
| 131 | data: function (data) { | ||
| 132 | data.pageSize = data.length; | ||
| 133 | data.currentPage = parseFloat(data.start / data.length) + 1; | ||
| 134 | return data; | ||
| 135 | } | ||
| 136 | }, | ||
| 137 | columns: [ | ||
| 138 | { | ||
| 139 | data: "id", render: function (data, type, full) { | ||
| 140 | return '<input type="checkbox" value="'+data+'">'; | ||
| 141 | } | ||
| 142 | }, | ||
| 143 | { | ||
| 144 | data: "id", render: function (data, type, full) { | ||
| 145 | return '<span class="dropDown dropDown_hover">\ | ||
| 146 | <button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\ | ||
| 147 | <ul class="dropDown-menu menu radius box-shadow">\ | ||
| 148 | <li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/1?tab=0\')">查看详细</a></li>\ | ||
| 149 | <li><a href="javascript:get('+data+');">获取</a></li>\ | ||
| 150 | <li><a href="javascript:appoint('+data+');">派单</a></li>\ | ||
| 151 | <li><a href="#">客户取消</a></li>\ | ||
| 152 | <li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/1?tab=2\')">处理记录</a></li>\ | ||
| 153 | </ul>\ | ||
| 154 | </span>'; | ||
| 155 | } | ||
| 156 | }, | ||
| 157 | {data: "orderNo"},//订单编号 | ||
| 158 | {data: "userName"},//申请人 | ||
| 159 | {data: "idCard"},//身份证 | ||
| 160 | {data: "phoneNumber"},//手机号 | ||
| 161 | {data: "createTime"},//进件时间 | ||
| 162 | {data: "departmentName"},//网点 | ||
| 163 | {data: "productName"},//产品名称 | ||
| 164 | {data: "applyMoney"},//申请金额 | ||
| 165 | {data: "agreeMoney"},//审批金额 | ||
| 166 | {data: "createUser"},//客户经理 | ||
| 167 | {data: "statusDesc"},//流程节点 | ||
| 168 | {data: "modifyTime"},//流转时间 | ||
| 169 | {data: "modifyUser"}//处理人 | ||
| 170 | ] | ||
| 171 | }); | ||
| 172 | |||
| 173 | $.fn.dataTableExt.afnFiltering.push( | ||
| 174 | function (oSettings, aData, iDataIndex) { | ||
| 175 | var min = document.getElementById('min').value; | ||
| 176 | var max = document.getElementById('max').value; | ||
| 177 | var iDateCol = 12; | ||
| 178 | |||
| 179 | var dateMin = new Date(aData[iDateCol]); | ||
| 180 | var dateMax = new Date(aData[iDateCol]); | ||
| 181 | |||
| 182 | if (min === '' && max === '') | ||
| 183 | return true; | ||
| 184 | else if (new Date(min).getTime() <= dateMin.getTime() && max === '') | ||
| 185 | return true; | ||
| 186 | else if (new Date(min).getTime() <= dateMin.getTime() && new Date(max).getTime() >= dateMax.getTime()) | ||
| 187 | return true; | ||
| 188 | return false; | ||
| 189 | } | ||
| 190 | ); | ||
| 191 | |||
| 192 | $('.table_search').on('change', function () { | ||
| 193 | search = $(this).val(); | ||
| 194 | column = $(this).attr('column'); | ||
| 195 | |||
| 196 | $('#table').DataTable().column(column).search(search).draw(); | ||
| 197 | }); | ||
| 198 | |||
| 199 | $('#min, #max').on('keyup', function () { | ||
| 200 | $('#table').DataTable().draw(); | ||
| 201 | }); | ||
| 202 | |||
| 203 | function resetHandler() { | ||
| 204 | $('#table').DataTable().columns().search("").draw(); | ||
| 205 | } | ||
| 172 | function gets() { | 206 | function gets() { |
| 173 | get(1); | 207 | get(1); |
| 174 | } | 208 | } | ... | ... |
-
Please register or sign in to post a comment