init
Showing
2 changed files
with
22 additions
and
16 deletions
| ... | @@ -299,12 +299,19 @@ class Work extends CI_Controller | ... | @@ -299,12 +299,19 @@ class Work extends CI_Controller |
| 299 | if (!$ret->clientContactOutputVOS) { | 299 | if (!$ret->clientContactOutputVOS) { |
| 300 | $ret->clientContactOutputVOS = array(); | 300 | $ret->clientContactOutputVOS = array(); |
| 301 | } | 301 | } |
| 302 | //查询还款计划表 | ||
| 303 | $str = 'borrowAmount=' . $ret->applyOrderVO->applyMoney . '&productId=' . $ret->applyOrderVO->productId . '&loanDeadline=' . $ret->applyOrderVO->deadline; | ||
| 304 | $url2 = $this->config->item('apiBaseUrl') . 'application/tool/interest?' . $str; | ||
| 305 | $result2 = file_get_contents($url2); | ||
| 306 | $json2 = json_decode($result2); | ||
| 307 | $ret2 = $json2->data; | ||
| 302 | 308 | ||
| 303 | $data = array( | 309 | $data = array( |
| 304 | 'clientInfoOutputVO' => $ret->clientInfoOutputVO, | 310 | 'clientInfoOutputVO' => $ret->clientInfoOutputVO, |
| 305 | 'clientUnitOutputVO' => $ret->clientUnitOutputVO, | 311 | 'clientUnitOutputVO' => $ret->clientUnitOutputVO, |
| 306 | 'clientContactOutputVOS' => $ret->clientContactOutputVOS, | 312 | 'clientContactOutputVOS' => $ret->clientContactOutputVOS, |
| 307 | 'applyOrderVO' => $ret->applyOrderVO | 313 | 'applyOrderVO' => $ret->applyOrderVO, |
| 314 | 'plan'=>$ret2 | ||
| 308 | ); | 315 | ); |
| 309 | $this->load->view('work/客户确认/客户确认', $data); | 316 | $this->load->view('work/客户确认/客户确认', $data); |
| 310 | } | 317 | } | ... | ... |
| ... | @@ -8,12 +8,12 @@ | ... | @@ -8,12 +8,12 @@ |
| 8 | <div class="row cl"> | 8 | <div class="row cl"> |
| 9 | <div class="form-group col-sm-4 col-md-2"> | 9 | <div class="form-group col-sm-4 col-md-2"> |
| 10 | <label>申请金额</label> | 10 | <label>申请金额</label> |
| 11 | <input type="text" class="form-control input-text" value="" disabled> | 11 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->applyMoney : ''?>" disabled> |
| 12 | <span class="glyphicon form-control-feedback">元</span> | 12 | <span class="glyphicon form-control-feedback">元</span> |
| 13 | </div> | 13 | </div> |
| 14 | <div class="form-group col-sm-4 col-md-2"> | 14 | <div class="form-group col-sm-4 col-md-2"> |
| 15 | <label>申请期限</label> | 15 | <label>申请期限</label> |
| 16 | <input type="text" class="form-control input-text" value="" disabled> | 16 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 17 | <span class="glyphicon form-control-feedback">天</span> | 17 | <span class="glyphicon form-control-feedback">天</span> |
| 18 | </div> | 18 | </div> |
| 19 | </div> | 19 | </div> |
| ... | @@ -27,22 +27,22 @@ | ... | @@ -27,22 +27,22 @@ |
| 27 | <div class="row cl"> | 27 | <div class="row cl"> |
| 28 | <div class="form-group col-sm-4 col-md-2"> | 28 | <div class="form-group col-sm-4 col-md-2"> |
| 29 | <label>核批金额</label> | 29 | <label>核批金额</label> |
| 30 | <input type="text" class="form-control input-text" value="" disabled> | 30 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 31 | <span class="glyphicon form-control-feedback">元</span> | 31 | <span class="glyphicon form-control-feedback">元</span> |
| 32 | </div> | 32 | </div> |
| 33 | <div class="form-group col-sm-4 col-md-2"> | 33 | <div class="form-group col-sm-4 col-md-2"> |
| 34 | <label>借款期限</label> | 34 | <label>借款期限</label> |
| 35 | <input type="text" class="form-control input-text" value="" disabled> | 35 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 36 | <span class="glyphicon form-control-feedback">天</span> | 36 | <span class="glyphicon form-control-feedback">天</span> |
| 37 | </div> | 37 | </div> |
| 38 | <div class="form-group col-sm-4 col-md-2"> | 38 | <div class="form-group col-sm-4 col-md-2"> |
| 39 | <label>借款利率</label> | 39 | <label>借款利率</label> |
| 40 | <input type="text" class="form-control input-text" value="" disabled> | 40 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 41 | <span class="glyphicon form-control-feedback">%</span> | 41 | <span class="glyphicon form-control-feedback">%</span> |
| 42 | </div> | 42 | </div> |
| 43 | <div class="form-group col-sm-4 col-md-2"> | 43 | <div class="form-group col-sm-4 col-md-2"> |
| 44 | <label>每月还款金额</label> | 44 | <label>每月还款金额</label> |
| 45 | <input type="text" class="form-control input-text" value="" disabled> | 45 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 46 | <span class="glyphicon form-control-feedback">元</span> | 46 | <span class="glyphicon form-control-feedback">元</span> |
| 47 | </div> | 47 | </div> |
| 48 | </div> | 48 | </div> |
| ... | @@ -50,7 +50,8 @@ | ... | @@ -50,7 +50,8 @@ |
| 50 | </div> | 50 | </div> |
| 51 | 51 | ||
| 52 | <div class="panel panel-default"> | 52 | <div class="panel panel-default"> |
| 53 | <div class="panel-header">还款计划表 <button class="btn btn-success">导出</button></div> | 53 | <div class="panel-header">还款计划表 |
| 54 | <!-- <button class="btn btn-success">导出</button></div>--> | ||
| 54 | <div class="panel-body text-c"> | 55 | <div class="panel-body text-c"> |
| 55 | <table class="table table-border table-bordered table-bg"> | 56 | <table class="table table-border table-bordered table-bg"> |
| 56 | <thead class="text-c"> | 57 | <thead class="text-c"> |
| ... | @@ -60,14 +61,12 @@ | ... | @@ -60,14 +61,12 @@ |
| 60 | </tr> | 61 | </tr> |
| 61 | </thead> | 62 | </thead> |
| 62 | <tbody class="text-c"> | 63 | <tbody class="text-c"> |
| 63 | <tr> | 64 | <?php foreach ($plan as $k=>$v):?> |
| 64 | <td>1期</td> | 65 | <tr> |
| 65 | <td>500元</td> | 66 | <td>1期 <?=$v?></td> |
| 66 | </tr> | 67 | <td>500元</td> |
| 67 | <tr> | 68 | </tr> |
| 68 | <td>1期</td> | 69 | <?php endforeach;?> |
| 69 | <td>500元</td> | ||
| 70 | </tr> | ||
| 71 | </tbody> | 70 | </tbody> |
| 72 | </table> | 71 | </table> |
| 73 | </div> | 72 | </div> | ... | ... |
-
Please register or sign in to post a comment