init
Showing
2 changed files
with
41 additions
and
16 deletions
| ... | @@ -317,9 +317,33 @@ class Work extends CI_Controller | ... | @@ -317,9 +317,33 @@ class Work extends CI_Controller |
| 317 | $this->load->view('work/客户确认/客户确认', $data); | 317 | $this->load->view('work/客户确认/客户确认', $data); |
| 318 | } | 318 | } |
| 319 | 319 | ||
| 320 | public function move() | 320 | public function move($id) |
| 321 | { | 321 | { |
| 322 | $this->load->view('work/资料/资料移交'); | 322 | $url = $this->config->item('apiBaseUrl') . 'order/detail/' . $id; |
| 323 | $result = file_get_contents($url); | ||
| 324 | $json = json_decode($result); | ||
| 325 | $ret = $json->data; | ||
| 326 | if (!$ret->clientUnitOutputVO) { | ||
| 327 | $ret->clientUnitOutputVO = array(); | ||
| 328 | } | ||
| 329 | if (!$ret->clientContactOutputVOS) { | ||
| 330 | $ret->clientContactOutputVOS = array(); | ||
| 331 | } | ||
| 332 | //查询还款计划表 | ||
| 333 | $str = 'borrowAmount=' . $ret->orderVO->agreeMoney . '&productId=' . $ret->orderVO->productId . '&loanDeadline=' . $ret->orderVO->deadline; | ||
| 334 | $url2 = $this->config->item('apiBaseUrl') . 'application/tool/interest?' . $str; | ||
| 335 | $result2 = file_get_contents($url2); | ||
| 336 | $json2 = json_decode($result2); | ||
| 337 | $ret2 = $json2->data; | ||
| 338 | |||
| 339 | $data = array( | ||
| 340 | 'clientInfoOutputVO' => $ret->clientInfoOutputVO, | ||
| 341 | 'clientUnitOutputVO' => $ret->clientUnitOutputVO, | ||
| 342 | 'clientContactOutputVOS' => $ret->clientContactOutputVOS, | ||
| 343 | 'applyOrderVO' => $ret->orderVO, | ||
| 344 | 'plan'=>$ret2 | ||
| 345 | ); | ||
| 346 | $this->load->view('work/资料/资料移交', $data); | ||
| 323 | } | 347 | } |
| 324 | 348 | ||
| 325 | public function side($state = null) | 349 | public function side($state = null) | ... | ... |
| ... | @@ -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> |
| ... | @@ -22,26 +22,27 @@ | ... | @@ -22,26 +22,27 @@ |
| 22 | 22 | ||
| 23 | <div class="panel panel-default"> | 23 | <div class="panel panel-default"> |
| 24 | <div class="panel-header">授信信息</div> | 24 | <div class="panel-header">授信信息</div> |
| 25 | <!-- GET /flow/getLastCheck--> | ||
| 25 | <div class="panel-body"> | 26 | <div class="panel-body"> |
| 26 | <div class="row cl"> | 27 | <div class="row cl"> |
| 27 | <div class="form-group col-sm-4 col-md-2"> | 28 | <div class="form-group col-sm-4 col-md-2"> |
| 28 | <label>核批金额</label> | 29 | <label>核批金额</label> |
| 29 | <input type="text" class="form-control input-text" value="" disabled> | 30 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 30 | <span class="glyphicon form-control-feedback">元</span> | 31 | <span class="glyphicon form-control-feedback">元</span> |
| 31 | </div> | 32 | </div> |
| 32 | <div class="form-group col-sm-4 col-md-2"> | 33 | <div class="form-group col-sm-4 col-md-2"> |
| 33 | <label>借款期限</label> | 34 | <label>借款期限</label> |
| 34 | <input type="text" class="form-control input-text" value="" disabled> | 35 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 35 | <span class="glyphicon form-control-feedback">天</span> | 36 | <span class="glyphicon form-control-feedback">天</span> |
| 36 | </div> | 37 | </div> |
| 37 | <div class="form-group col-sm-4 col-md-2"> | 38 | <div class="form-group col-sm-4 col-md-2"> |
| 38 | <label>借款利率</label> | 39 | <label>借款利率</label> |
| 39 | <input type="text" class="form-control input-text" value="" disabled> | 40 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 40 | <span class="glyphicon form-control-feedback">%</span> | 41 | <span class="glyphicon form-control-feedback">%</span> |
| 41 | </div> | 42 | </div> |
| 42 | <div class="form-group col-sm-4 col-md-2"> | 43 | <div class="form-group col-sm-4 col-md-2"> |
| 43 | <label>每月还款金额</label> | 44 | <label>每月还款金额</label> |
| 44 | <input type="text" class="form-control input-text" value="" disabled> | 45 | <input type="text" class="form-control input-text" value="<?=$applyOrderVO ? $applyOrderVO->deadline : ''?>" disabled> |
| 45 | <span class="glyphicon form-control-feedback">元</span> | 46 | <span class="glyphicon form-control-feedback">元</span> |
| 46 | </div> | 47 | </div> |
| 47 | </div> | 48 | </div> |
| ... | @@ -59,14 +60,14 @@ | ... | @@ -59,14 +60,14 @@ |
| 59 | </tr> | 60 | </tr> |
| 60 | </thead> | 61 | </thead> |
| 61 | <tbody class="text-c"> | 62 | <tbody class="text-c"> |
| 62 | <tr> | 63 | <?php if($plan && $plan->repayPlans):?> |
| 63 | <td>1期</td> | 64 | <?php foreach ($plan->repayPlans as $k=>$v):?> |
| 64 | <td>500元</td> | 65 | <tr> |
| 65 | </tr> | 66 | <td><?=$v->period?> 期</td> |
| 66 | <tr> | 67 | <td><?=$v->totalAmount?>元</td> |
| 67 | <td>1期</td> | 68 | </tr> |
| 68 | <td>500元</td> | 69 | <?php endforeach;?> |
| 69 | </tr> | 70 | <?php endif;?> |
| 70 | </tbody> | 71 | </tbody> |
| 71 | </table> | 72 | </table> |
| 72 | </div> | 73 | </div> | ... | ... |
-
Please register or sign in to post a comment