init
Showing
3 changed files
with
79 additions
and
2 deletions
| ... | @@ -13,7 +13,12 @@ class Finance extends CI_Controller { | ... | @@ -13,7 +13,12 @@ class Finance extends CI_Controller { |
| 13 | 13 | ||
| 14 | public function checkTheAccount() | 14 | public function checkTheAccount() |
| 15 | { | 15 | { |
| 16 | $this->load->view('finance/checkTheAccount'); | 16 | $url = $this->config->item('apiBaseUrl') . '/manage/financial/repayments/nonePay/params'; |
| 17 | $result = file_get_contents($url); | ||
| 18 | $ret = json_decode($result); | ||
| 19 | // $ret = $json->data; | ||
| 20 | |||
| 21 | $this->load->view('finance/checkTheAccount',$ret); | ||
| 17 | } | 22 | } |
| 18 | 23 | ||
| 19 | public function makeLoan() | 24 | public function makeLoan() | ... | ... |
| ... | @@ -45,6 +45,7 @@ class Loan extends CI_Controller { | ... | @@ -45,6 +45,7 @@ class Loan extends CI_Controller { |
| 45 | $this->load->driver('enum'); | 45 | $this->load->driver('enum'); |
| 46 | $this->load->driver('configure'); | 46 | $this->load->driver('configure'); |
| 47 | 47 | ||
| 48 | |||
| 48 | $url = $this->config->item('apiBaseUrl') . 'loanAfter/repaymentPlan/'.$id; | 49 | $url = $this->config->item('apiBaseUrl') . 'loanAfter/repaymentPlan/'.$id; |
| 49 | $result = file_get_contents($url); | 50 | $result = file_get_contents($url); |
| 50 | $json = json_decode($result); | 51 | $json = json_decode($result); | ... | ... |
| ... | @@ -3,7 +3,78 @@ | ... | @@ -3,7 +3,78 @@ |
| 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 | <?php $this->load->view('work/search2'); ?> | 6 | <?php //$this->load->view('work/search2'); ?> |
| 7 | |||
| 8 | <div class="col-xs-2"> | ||
| 9 | <span class="select-box"> | ||
| 10 | <select class="select table_search" size="1"> | ||
| 11 | <option value="" selected>时间类型</option> | ||
| 12 | <?php foreach ($ret->data as $k=>$v):?> | ||
| 13 | <option value="<?=$k?>"><?=$v?></option> | ||
| 14 | <?php endforeach;?> | ||
| 15 | </select> | ||
| 16 | </span> | ||
| 17 | </div> | ||
| 18 | |||
| 19 | <div class="date mb-20"> | ||
| 20 | <input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}'})" id="min" class="input-text Wdate"> - | ||
| 21 | <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d'})" id="max" class="input-text Wdate"> | ||
| 22 | </div> | ||
| 23 | <div class="row cl mb-20"> | ||
| 24 | <div class="col-xs-2"> | ||
| 25 | <span class="select-box"> | ||
| 26 | <select class="select table_search" size="1"> | ||
| 27 | <option value="" selected>还款状态</option> | ||
| 28 | <?php foreach ($this->session->repaymentPlans as $k=>$v):?> | ||
| 29 | <option value="<?=$k?>"><?=$v?></option> | ||
| 30 | <?php endforeach;?> | ||
| 31 | </select> | ||
| 32 | </span> | ||
| 33 | </div> | ||
| 34 | <div class="col-xs-2"> | ||
| 35 | <span class="select-box"> | ||
| 36 | <select class="select table_search" size="1" column="6"> | ||
| 37 | <option value="" selected>网点</option> | ||
| 38 | <?php foreach ($this->session->departments as $k=>$v):?> | ||
| 39 | <option value="<?=$v->id?>"><?=$v->name?></option> | ||
| 40 | <?php if($v->children && !empty($v->children)):?> | ||
| 41 | <?php foreach ($v->children as $kk=>$vv):?> | ||
| 42 | <option value="<?=$vv->id?>"><?=$vv->name?></option> | ||
| 43 | <?php endforeach;?> | ||
| 44 | <?php endif;?> | ||
| 45 | <?php endforeach;?> | ||
| 46 | </select> | ||
| 47 | </span> | ||
| 48 | </div> | ||
| 49 | <div class="col-xs-2"> | ||
| 50 | <span class="select-box"> | ||
| 51 | <select class="select table_search" size="1"> | ||
| 52 | <option value="" selected>是否逾期</option> | ||
| 53 | <option value="1">是</option> | ||
| 54 | <option value="0">否</option> | ||
| 55 | </select> | ||
| 56 | </span> | ||
| 57 | </div> | ||
| 58 | <div class="col-xs-2"> | ||
| 59 | <span class="select-box"> | ||
| 60 | <select class="select table_search" size="1"> | ||
| 61 | <option value="" selected>来源</option> | ||
| 62 | <?php foreach ($this->session->repaymentPlanSource as $k=>$v):?> | ||
| 63 | <option value="<?=$k?>"><?=$v?></option> | ||
| 64 | <?php endforeach;?> | ||
| 65 | </select> | ||
| 66 | </span> | ||
| 67 | </div> | ||
| 68 | <div class="col-xs-2"> | ||
| 69 | <input type="text" class="form-control input-text table_search" value="" placeholder="姓名" column="3" name="proposerName"> | ||
| 70 | </div> | ||
| 71 | <div class="col-xs-2"> | ||
| 72 | <input type="text" class="form-control input-text table_search" value="" placeholder="手机号" column="5" name="phoneNumber"> | ||
| 73 | </div> | ||
| 74 | </div> | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 7 | <div> | 78 | <div> |
| 8 | <button class="btn btn-primary radius" type="button" onclick="$('#table').DataTable().draw()">搜索</button> | 79 | <button class="btn btn-primary radius" type="button" onclick="$('#table').DataTable().draw()">搜索</button> |
| 9 | <input class="btn btn-warning radius" type="reset" value="重置"> | 80 | <input class="btn btn-warning radius" type="reset" value="重置"> | ... | ... |
-
Please register or sign in to post a comment