ec8d3f8b by 杨建斌

init

1 parent 3bd938b3
......@@ -182,11 +182,21 @@ class Work extends CI_Controller
if (!$ret->applyOrderVO) {
$ret->applyOrderVO = array();
}
$url2 = $this->config->item('apiBaseUrl') . 'audit/creditReport/' . $id;
$result2 = file_get_contents($url2);
$json2 = json_decode($result2);
$ret2 = $json2->data;
$credit = (object) array();
if ($ret2) {
$credit = $ret2;
}
$data = array(
'clientInfoOutputVO' => $ret->clientInfoOutputVO,
'clientUnitOutputVO' => $ret->clientUnitOutputVO,
'clientContactOutputVOS' => $ret->clientContactOutputVOS,
'applyOrderVO' => $ret->applyOrderVO,
'credit'=> $credit,
'id' => $id
);
}
......
......@@ -119,22 +119,22 @@
<div class="row cl">
<div class="form-group has-feedback col-sm-3 col-md-2">
<label>M1</label>
<input type="text" class="form-control input-text" name="creditCardMOne" value="">
<input type="text" class="form-control input-text" name="creditCardMOne" value="<?=$credit ? $credit->threeMOne : ''?>">
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
</div>
<div class="form-group has-feedback col-sm-3 col-md-2">
<label>M2</label>
<input type="text" class="form-control input-text" name="creditCardMTwo" value="">
<input type="text" class="form-control input-text" name="creditCardMTwo" value="<?=$credit ? $credit->threeMTwo : ''?>">
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
</div>
<div class="form-group has-feedback col-sm-3 col-md-2">
<label>M3</label>
<input type="text" class="form-control input-text" name="creditCardMThree" value="">
<input type="text" class="form-control input-text" name="creditCardMThree" value="<?=$credit ? $credit->threeMThree : ''?>">
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
</div>
<div class="form-group has-feedback col-sm-3 col-md-2">
<label>M7</label>
<input type="text" class="form-control input-text" name="creditCardMSeven" value="">
<input type="text" class="form-control input-text" name="creditCardMSeven" value="<?=$credit ? $credit->threeMSeven : ''?>">
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
</div>
</div>
......@@ -147,31 +147,31 @@
<div class="row cl">
<div class="form-group col-sm-6 col-md-6">
<label>贷款</label>
<input type="text" name="threeMonthLoan" class="form-control input-text" value="">
<input type="text" name="threeMonthLoan" class="form-control input-text" value="<?=$credit ? $credit->threeMonthLoan : ''?>">
</div>
</div>
<div class="row cl">
<div class="form-group col-sm-6 col-md-6">
<label>信用卡</label>
<input type="text" name="threeMonthCreditCard" class="form-control input-text" value="">
<input type="text" name="threeMonthCreditCard" class="form-control input-text" value="<?=$credit ? $credit->threeMonthCreditCard : ''?>">
</div>
</div>
<div class="row cl">
<div class="form-group col-sm-6 col-md-6">
<label>担保</label>
<input type="text" name="threeMonthGuarantee" class="form-control input-text" value="">
<input type="text" name="threeMonthGuarantee" class="form-control input-text" value="<?=$credit ? $credit->threeMonthGuarantee : ''?>">
</div>
</div>
<div class="row cl">
<div class="form-group col-sm-6 col-md-6">
<label>保前</label>
<input type="text" name="threeMonthGuaranteeBefore" class="form-control input-text" value="">
<input type="text" name="threeMonthGuaranteeBefore" class="form-control input-text" value="<?=$credit ? $credit->threeMonthGuaranteeBefore : ''?>">
</div>
</div>
<div class="row cl">
<div class="form-group col-sm-6 col-md-6">
<label>个人查询</label>
<input type="text" name="threeMonthPersonage" class="form-control input-text" value="">
<input type="text" name="threeMonthPersonage" class="form-control input-text" value="<?=$credit ? $credit->threeMonthPersonage : ''?>">
</div>
</div>
</div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!