Merge remote-tracking branch 'origin/develop' into develop
Showing
9 changed files
with
128 additions
and
51 deletions
| ... | @@ -19,7 +19,8 @@ class User extends CI_Controller { | ... | @@ -19,7 +19,8 @@ class User extends CI_Controller { |
| 19 | 'clientInfoOutputVO'=>$data->clientInfoOutputVO, | 19 | 'clientInfoOutputVO'=>$data->clientInfoOutputVO, |
| 20 | 'clientUnitOutputVO'=>$data->clientUnitOutputVO, | 20 | 'clientUnitOutputVO'=>$data->clientUnitOutputVO, |
| 21 | 'clientContactOutputVOS'=>$data->clientContactOutputVOS, | 21 | 'clientContactOutputVOS'=>$data->clientContactOutputVOS, |
| 22 | 'applyOrderVO'=>$data->applyOrderVO | 22 | 'applyOrderVO'=>$data->applyOrderVO, |
| 23 | 'id'=>$data->applyOrderVo->id | ||
| 23 | ); | 24 | ); |
| 24 | switch ($state) { | 25 | switch ($state) { |
| 25 | case '1': | 26 | case '1': | ... | ... |
| ... | @@ -146,7 +146,7 @@ class Work extends CI_Controller | ... | @@ -146,7 +146,7 @@ class Work extends CI_Controller |
| 146 | $recordUrl = $this->config->item('apiBaseUrl') . 'order/orderOperatorRecord/' . $id; | 146 | $recordUrl = $this->config->item('apiBaseUrl') . 'order/orderOperatorRecord/' . $id; |
| 147 | $result2 = file_get_contents($recordUrl); | 147 | $result2 = file_get_contents($recordUrl); |
| 148 | $json2 = json_decode($result2); | 148 | $json2 = json_decode($result2); |
| 149 | $ret2 = $json2->data; | 149 | $ret2 = isset($json2->data) ? $json2 : array(); |
| 150 | 150 | ||
| 151 | $data = array( | 151 | $data = array( |
| 152 | 'clientInfoOutputVO' => $ret->clientInfoOutputVO, | 152 | 'clientInfoOutputVO' => $ret->clientInfoOutputVO, | ... | ... |
| ... | @@ -42,8 +42,10 @@ | ... | @@ -42,8 +42,10 @@ |
| 42 | return null; //返回参数值 | 42 | return null; //返回参数值 |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | function getNowFormatDate() { | 45 | function getNowFormatDate(date) { |
| 46 | var date = new Date(); | 46 | if(!date){ |
| 47 | date = new Date(); | ||
| 48 | } | ||
| 47 | var seperator1 = "-"; | 49 | var seperator1 = "-"; |
| 48 | var year = date.getFullYear(); | 50 | var year = date.getFullYear(); |
| 49 | var month = date.getMonth() + 1; | 51 | var month = date.getMonth() + 1; |
| ... | @@ -141,6 +143,7 @@ | ... | @@ -141,6 +143,7 @@ |
| 141 | url: apiBaseUrl + url, | 143 | url: apiBaseUrl + url, |
| 142 | cache: false, | 144 | cache: false, |
| 143 | data:JSON.stringify(data), | 145 | data:JSON.stringify(data), |
| 146 | // data:data, | ||
| 144 | dataType:'json', | 147 | dataType:'json', |
| 145 | contentType: "application/json; charset=UTF-8", | 148 | contentType: "application/json; charset=UTF-8", |
| 146 | success:function(data){ | 149 | success:function(data){ | ... | ... |
| ... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
| 13 | <table class="table table-border table-bordered table-bg" id="table"> | 13 | <table class="table table-border table-bordered table-bg" id="table"> |
| 14 | <thead class="text-c"> | 14 | <thead class="text-c"> |
| 15 | <tr> | 15 | <tr> |
| 16 | <!-- <th width="68px">操作</th>--> | 16 | <th width="68px">操作</th> |
| 17 | <th>客户编号</th> | 17 | <th>客户编号</th> |
| 18 | <th>姓名</th> | 18 | <th>姓名</th> |
| 19 | <th>身份证</th> | 19 | <th>身份证</th> |
| ... | @@ -60,10 +60,9 @@ | ... | @@ -60,10 +60,9 @@ |
| 60 | } | 60 | } |
| 61 | }, | 61 | }, |
| 62 | columns: [ | 62 | columns: [ |
| 63 | /*{ | 63 | { |
| 64 | data: "id", render: function (data, type, full) { | 64 | data: "id", render: function (data, type, full) { |
| 65 | 65 | var url = "<?=site_url('/user/info')?>"; | |
| 66 | var url = "< ?=site_url('/user/info')?>"; | ||
| 67 | url += '/' + data; | 66 | url += '/' + data; |
| 68 | return '<span class="dropDown dropDown_hover">\ | 67 | return '<span class="dropDown dropDown_hover">\ |
| 69 | <button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\ | 68 | <button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\ |
| ... | @@ -71,7 +70,7 @@ | ... | @@ -71,7 +70,7 @@ |
| 71 | <li><a href="javascript:;" onclick="creatIframe(\''+url+'\', \'查看详细\')">查看详细</a></li>\ | 70 | <li><a href="javascript:;" onclick="creatIframe(\''+url+'\', \'查看详细\')">查看详细</a></li>\ |
| 72 | </ul></span>'; | 71 | </ul></span>'; |
| 73 | } | 72 | } |
| 74 | },*/ | 73 | }, |
| 75 | {data: "id"},//客户编号 | 74 | {data: "id"},//客户编号 |
| 76 | {data: "userName"},//姓名 | 75 | {data: "userName"},//姓名 |
| 77 | {data: "idCard"},//身份证 | 76 | {data: "idCard"},//身份证 | ... | ... |
| ... | @@ -59,14 +59,22 @@ | ... | @@ -59,14 +59,22 @@ |
| 59 | {data: "userName"},//申请人 | 59 | {data: "userName"},//申请人 |
| 60 | {data: "idCard"},//身份证 | 60 | {data: "idCard"},//身份证 |
| 61 | {data: "phoneNumber"},//手机号 | 61 | {data: "phoneNumber"},//手机号 |
| 62 | {data: "createTime"},//进件时间 | 62 | {data: function (data) { |
| 63 | if(!data.createTime) | ||
| 64 | return ''; | ||
| 65 | return getNowFormatDate(new Date(parseInt(data.createTime))); | ||
| 66 | }},//进件时间 | ||
| 63 | {name: "departmentId", data: "departmentName"},//网点 | 67 | {name: "departmentId", data: "departmentName"},//网点 |
| 64 | {name: "productId", data: "productName"},//产品名称 | 68 | {name: "productId", data: "productName"},//产品名称 |
| 65 | {data: "applyMoney"},//申请金额 | 69 | {data: "applyMoney"},//申请金额 |
| 66 | {data: "agreeMoney"},//审批金额 | 70 | {data: "agreeMoney"},//审批金额 |
| 67 | {name: "createUser", data: "createUserName"},//客户经理 | 71 | {name: "createUser", data: "createUserName"},//客户经理 |
| 68 | {name: "status", data: "statusDesc"},//流程节点 | 72 | {name: "status", data: "statusDesc"},//流程节点 |
| 69 | {data: "modifyTime"},//流转时间 | 73 | {data: function (data) { |
| 74 | if(!data.modifyTime) | ||
| 75 | return ''; | ||
| 76 | return getNowFormatDate(new Date(parseInt(data.modifyTime))); | ||
| 77 | }},//流转时间 | ||
| 70 | {name: "modifyUser", data: "modifyUserName"}, //处理人 | 78 | {name: "modifyUser", data: "modifyUserName"}, //处理人 |
| 71 | ] | 79 | ] |
| 72 | }); | 80 | }); | ... | ... |
| ... | @@ -12,9 +12,9 @@ | ... | @@ -12,9 +12,9 @@ |
| 12 | <label>银行黑名单</label> | 12 | <label>银行黑名单</label> |
| 13 | <span class="form-control select-box"> | 13 | <span class="form-control select-box"> |
| 14 | <select class="select" size="1" name="hasBankBlacklist"> | 14 | <select class="select" size="1" name="hasBankBlacklist"> |
| 15 | <!-- <option value="1">是</option>--> | 15 | <option value=""</option> |
| 16 | <!-- <option value="0">否</option>--> | 16 | <option <?=$credit && $credit->hasBankBlacklist ==1 ? 'selected' : ''?> value="1">是</option> |
| 17 | <option value=""><?=$credit && $credit->hasBankBlacklist ? '是' : '否'?></option> | 17 | <option <?=$credit && $credit->hasBankBlacklist ==0 ? 'selected' : ''?> value="0">否</option> |
| 18 | </select> | 18 | </select> |
| 19 | </span> | 19 | </span> |
| 20 | </div> | 20 | </div> |
| ... | @@ -22,9 +22,9 @@ | ... | @@ -22,9 +22,9 @@ |
| 22 | <label>同业进件</label> | 22 | <label>同业进件</label> |
| 23 | <span class="form-control select-box"> | 23 | <span class="form-control select-box"> |
| 24 | <select class="select" size="1" name="hasTradeInto"> | 24 | <select class="select" size="1" name="hasTradeInto"> |
| 25 | <!-- <option value="1">是</option>--> | 25 | <option value=""</option> |
| 26 | <!-- <option value="0">否</option>--> | 26 | <option <?=$credit && $credit->hasTradeInto ==1 ? 'selected' : ''?> value="1">是</option> |
| 27 | <option value=""><?=$credit && $credit->hasTradeInto ? '是' : '否'?></option> | 27 | <option <?=$credit && $credit->hasTradeInto ==0 ? 'selected' : ''?> value="0">否</option> |
| 28 | </select> | 28 | </select> |
| 29 | </span> | 29 | </span> |
| 30 | </div> | 30 | </div> |
| ... | @@ -32,9 +32,9 @@ | ... | @@ -32,9 +32,9 @@ |
| 32 | <label>征信五级分类异常</label> | 32 | <label>征信五级分类异常</label> |
| 33 | <span class="form-control select-box"> | 33 | <span class="form-control select-box"> |
| 34 | <select class="select" size="1" name="hasCreditTypeException"> | 34 | <select class="select" size="1" name="hasCreditTypeException"> |
| 35 | <option value=""><?=$credit && $credit->hasCreditTypeException ? '是' : '否'?></option> | 35 | <option value=""</option> |
| 36 | <!--<option value="1">是</option> | 36 | <option <?=$credit && $credit->hasCreditTypeException ==1 ? 'selected' : ''?> value="1">是</option> |
| 37 | <option value="0">否</option>--> | 37 | <option <?=$credit && $credit->hasCreditTypeException ==0 ? 'selected' : ''?> value="0">否</option> |
| 38 | </select> | 38 | </select> |
| 39 | </span> | 39 | </span> |
| 40 | </div> | 40 | </div> |
| ... | @@ -76,31 +76,33 @@ | ... | @@ -76,31 +76,33 @@ |
| 76 | <div class="row cl"> | 76 | <div class="row cl"> |
| 77 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 77 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 78 | <label>M1</label> | 78 | <label>M1</label> |
| 79 | <input type="text" class="form-control input-text" name="creditCardMOne" value="<?=$credit ? $credit->creditCardMOne : ''?>"> | 79 | <input type="text" class="form-control input-text" name="loanMOne" value="<?=$credit ? $credit->loanMOne : ''?>"> |
| 80 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> | 80 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> |
| 81 | </div> | 81 | </div> |
| 82 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 82 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 83 | <label>M2</label> | 83 | <label>M2</label> |
| 84 | <input type="text" class="form-control input-text" name="creditCardMTwo" value="<?=$credit ? $credit->creditCardMTwo : ''?>"> | 84 | <input type="text" class="form-control input-text" name="loanMTwo" value="<?=$credit ? $credit->loanMTwo : ''?>"> |
| 85 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> | 85 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> |
| 86 | </div> | 86 | </div> |
| 87 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 87 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 88 | <label>M3</label> | 88 | <label>M3</label> |
| 89 | <input type="text" class="form-control input-text" name="creditCardMThree" value="<?=$credit ? $credit->creditCardMThree : ''?>"> | 89 | <input type="text" class="form-control input-text" name="loanMThree" value="<?=$credit ? $credit->loanMThree : ''?>"> |
| 90 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> | 90 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> |
| 91 | </div> | 91 | </div> |
| 92 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 92 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 93 | <label>M7</label> | 93 | <label>M7</label> |
| 94 | <input type="text" class="form-control input-text" name="creditCardMSeven" value="<?=$credit ? $credit->creditCardMSeven : ''?>"> | 94 | <input type="text" class="form-control input-text" name="loanMSeven" value="<?=$credit ? $credit->loanMSeven : ''?>"> |
| 95 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> | 95 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> |
| 96 | </div> | 96 | </div> |
| 97 | </div> | 97 | </div> |
| 98 | 98 | ||
| 99 | 99 | ||
| 100 | |||
| 101 | |||
| 100 | <div class="row cl"> | 102 | <div class="row cl"> |
| 101 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 103 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 102 | <label>信用卡使用记录</label> | 104 | <label>信用卡使用记录</label> |
| 103 | <input type="text" class="form-control input-text" name="loanRecord" value="<?=$credit ? $credit->creditCardUseRecord : ''?>" > | 105 | <input type="text" class="form-control input-text" name="creditCardUseRecord" value="<?=$credit ? $credit->creditCardUseRecord : ''?>" > |
| 104 | <span class="glyphicon form-control-feedback" aria-hidden="true">年</span> | 106 | <span class="glyphicon form-control-feedback" aria-hidden="true">年</span> |
| 105 | </div> | 107 | </div> |
| 106 | </div> | 108 | </div> |
| ... | @@ -112,13 +114,13 @@ | ... | @@ -112,13 +114,13 @@ |
| 112 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> | 114 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> |
| 113 | </div> | 115 | </div> |
| 114 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 116 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 115 | <label>余额</label> | 117 | <label>已使用额度</label> |
| 116 | <input type="text" class="form-control input-text" name="loanBalance" value="<?=$credit ? $credit->creditCardUseRecord : ''?>"> | 118 | <input type="text" class="form-control input-text" name="creditCardHaveUsedAmount" value="<?=$credit ? $credit->creditCardHaveUsedAmount : ''?>"> |
| 117 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> | 119 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> |
| 118 | </div> | 120 | </div> |
| 119 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 121 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 120 | <label>逾期</label> | 122 | <label>6个月平均使用</label> |
| 121 | <input type="text" class="form-control input-text" name="loanDue" value="<?=$credit ? $credit->creditCardUseRecord : ''?>"> | 123 | <input type="text" class="form-control input-text" name="creditCardSixMonthAverageAmount" value="<?=$credit ? $credit->creditCardSixMonthAverageAmount : ''?>"> |
| 122 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> | 124 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> |
| 123 | </div> | 125 | </div> |
| 124 | </div> | 126 | </div> |
| ... | @@ -126,25 +128,60 @@ | ... | @@ -126,25 +128,60 @@ |
| 126 | <div class="row cl"> | 128 | <div class="row cl"> |
| 127 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 129 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 128 | <label>M1</label> | 130 | <label>M1</label> |
| 129 | <input type="text" class="form-control input-text" name="creditCardMOne" value="<?=$credit ? $credit->loanMOne : ''?>"> | 131 | <input type="text" class="form-control input-text" name="creditCardMOne" value="<?=$credit ? $credit->creditCardMOne : ''?>"> |
| 130 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> | 132 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> |
| 131 | </div> | 133 | </div> |
| 132 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 134 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 133 | <label>M2</label> | 135 | <label>M2</label> |
| 134 | <input type="text" class="form-control input-text" name="creditCardMTwo" value="<?=$credit ? $credit->loanMTwo : ''?>"> | 136 | <input type="text" class="form-control input-text" name="creditCardMTwo" value="<?=$credit ? $credit->creditCardMTwo : ''?>"> |
| 135 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> | 137 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> |
| 136 | </div> | 138 | </div> |
| 137 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 139 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 138 | <label>M3</label> | 140 | <label>M3</label> |
| 139 | <input type="text" class="form-control input-text" name="creditCardMThree" value="<?=$credit ? $credit->loanMThree : ''?>"> | 141 | <input type="text" class="form-control input-text" name="creditCardMThree" value="<?=$credit ? $credit->creditCardMThree : ''?>"> |
| 140 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> | 142 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> |
| 141 | </div> | 143 | </div> |
| 142 | <div class="form-group has-feedback col-sm-3 col-md-2"> | 144 | <div class="form-group has-feedback col-sm-3 col-md-2"> |
| 143 | <label>M7</label> | 145 | <label>M7</label> |
| 144 | <input type="text" class="form-control input-text" name="creditCardMSeven" value="<?=$credit ? $credit->loanMSeven : ''?>"> | 146 | <input type="text" class="form-control input-text" name="creditCardMSeven" value="<?=$credit ? $credit->creditCardMSeven : ''?>"> |
| 145 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> | 147 | <span class="glyphicon form-control-feedback" aria-hidden="true">个</span> |
| 146 | </div> | 148 | </div> |
| 147 | </div> | 149 | </div> |
| 150 | |||
| 151 | <div class="row cl"> | ||
| 152 | <div class="form-group has-feedback col-sm-3 col-md-2"> | ||
| 153 | <label>三个月查询记录</label> | ||
| 154 | </div> | ||
| 155 | </div> | ||
| 156 | |||
| 157 | <div class="row cl"> | ||
| 158 | <div class="form-group has-feedback col-sm-3 col-md-2"> | ||
| 159 | <label>贷款</label> | ||
| 160 | <input type="text" class="form-control input-text" name="threeMonthLoan" value="<?=$credit ? $credit->threeMonthLoan : ''?>"> | ||
| 161 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> | ||
| 162 | </div> | ||
| 163 | <div class="form-group has-feedback col-sm-3 col-md-2"> | ||
| 164 | <label>信用卡</label> | ||
| 165 | <input type="text" class="form-control input-text" name="threeMonthCreditCard" value="<?=$credit ? $credit->threeMonthCreditCard : ''?>"> | ||
| 166 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> | ||
| 167 | </div> | ||
| 168 | <div class="form-group has-feedback col-sm-3 col-md-2"> | ||
| 169 | <label>担保</label> | ||
| 170 | <input type="text" class="form-control input-text" name="threeMonthGuarantee" value="<?=$credit ? $credit->threeMonthGuarantee : ''?>"> | ||
| 171 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> | ||
| 172 | </div> | ||
| 173 | <div class="form-group has-feedback col-sm-3 col-md-2"> | ||
| 174 | <label>保前</label> | ||
| 175 | <input type="text" class="form-control input-text" name="threeMonthGuaranteeBefore" value="<?=$credit ? $credit->threeMonthGuaranteeBefore : ''?>"> | ||
| 176 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> | ||
| 177 | </div> | ||
| 178 | <div class="form-group has-feedback col-sm-3 col-md-2"> | ||
| 179 | <label>个人查询</label> | ||
| 180 | <input type="text" class="form-control input-text" name="threeMonthPersonage" value="<?=$credit ? $credit->threeMonthPersonage : ''?>"> | ||
| 181 | <span class="glyphicon form-control-feedback" aria-hidden="true">元</span> | ||
| 182 | </div> | ||
| 183 | </div> | ||
| 184 | |||
| 148 | </div> | 185 | </div> |
| 149 | </div> | 186 | </div> |
| 150 | 187 | ... | ... |
| ... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
| 23 | <div class="panel-header">初审意见</div> | 23 | <div class="panel-header">初审意见</div> |
| 24 | <div class="panel-body cl"> | 24 | <div class="panel-body cl"> |
| 25 | <div class="row cl"> | 25 | <div class="row cl"> |
| 26 | <div class="form-group col-sm-3 col-md-1"> | 26 | <div class="form-group col-sm-3 col-md-2"> |
| 27 | <label>拟批</label> | 27 | <label>拟批</label> |
| 28 | <input type="text" class="form-control input-text" | 28 | <input type="text" class="form-control input-text" |
| 29 | value="<?= $getFirstCheck ? $getFirstCheck->mockMoney : '' ?>" disabled> | 29 | value="<?= $getFirstCheck ? $getFirstCheck->mockMoney : '' ?>" disabled> |
| ... | @@ -44,7 +44,7 @@ | ... | @@ -44,7 +44,7 @@ |
| 44 | <div class="panel-header">复审意见</div> | 44 | <div class="panel-header">复审意见</div> |
| 45 | <div class="panel-body cl"> | 45 | <div class="panel-body cl"> |
| 46 | <div class="row cl"> | 46 | <div class="row cl"> |
| 47 | <div class="form-group col-sm-3 col-md-1"> | 47 | <div class="form-group col-sm-3 col-md-2"> |
| 48 | <label>拟批</label> | 48 | <label>拟批</label> |
| 49 | <input type="text" class="form-control input-text" | 49 | <input type="text" class="form-control input-text" |
| 50 | value="<?= $getSecondCheck ? $getSecondCheck->mockMoney : '' ?>" disabled> | 50 | value="<?= $getSecondCheck ? $getSecondCheck->mockMoney : '' ?>" disabled> |
| ... | @@ -55,7 +55,7 @@ | ... | @@ -55,7 +55,7 @@ |
| 55 | <div class="form-group col-sm-12 col-md-12"> | 55 | <div class="form-group col-sm-12 col-md-12"> |
| 56 | <label>拟批备注</label> | 56 | <label>拟批备注</label> |
| 57 | <textarea class="textarea" | 57 | <textarea class="textarea" |
| 58 | disabled><?= $getSecondCheck ? $getSecondCheck->mockMoney : '' ?></textarea> | 58 | disabled><?= $getSecondCheck ? $getSecondCheck->description : '' ?></textarea> |
| 59 | </div> | 59 | </div> |
| 60 | </div> | 60 | </div> |
| 61 | </div> | 61 | </div> |
| ... | @@ -89,6 +89,7 @@ | ... | @@ -89,6 +89,7 @@ |
| 89 | <div class="form-group col-sm-3 col-md-1"> | 89 | <div class="form-group col-sm-3 col-md-1"> |
| 90 | <label>借款利率</label> | 90 | <label>借款利率</label> |
| 91 | <input type="text" class="form-control input-text" name="annualInterestRate" value=""> | 91 | <input type="text" class="form-control input-text" name="annualInterestRate" value=""> |
| 92 | <span class="glyphicon form-control-feedback">%</span> | ||
| 92 | </div> | 93 | </div> |
| 93 | <div class="form-group col-sm-4 col-md-2"> | 94 | <div class="form-group col-sm-4 col-md-2"> |
| 94 | <label>每月还款金额</label> | 95 | <label>每月还款金额</label> |
| ... | @@ -103,7 +104,7 @@ | ... | @@ -103,7 +104,7 @@ |
| 103 | <select class="select" size="1" name="productId"> | 104 | <select class="select" size="1" name="productId"> |
| 104 | <option value="">贷款产品</option> | 105 | <option value="">贷款产品</option> |
| 105 | <?php foreach ($this->session->products as $k => $v): ?> | 106 | <?php foreach ($this->session->products as $k => $v): ?> |
| 106 | <option value="<?= $v->id ?>"><?= $v->productName ?></option> | 107 | <option <?=$applyOrderVO->productId == $v->id ? 'selected' : ''?> value="<?= $v->id ?>"><?= $v->productName ?></option> |
| 107 | <?php endforeach; ?> | 108 | <?php endforeach; ?> |
| 108 | </select> | 109 | </select> |
| 109 | </span> | 110 | </span> |
| ... | @@ -149,6 +150,7 @@ | ... | @@ -149,6 +150,7 @@ |
| 149 | } else if (orderStatus == 6) { | 150 | } else if (orderStatus == 6) { |
| 150 | url = 'flow/saveLastCheck'; | 151 | url = 'flow/saveLastCheck'; |
| 151 | } | 152 | } |
| 153 | data.annualInterestRate = parseFloat(data.annualInterestRate) /100; | ||
| 152 | $.ajax({ | 154 | $.ajax({ |
| 153 | type: 'post', | 155 | type: 'post', |
| 154 | url: apiBaseUrl + url, | 156 | url: apiBaseUrl + url, | ... | ... |
| ... | @@ -273,17 +273,17 @@ | ... | @@ -273,17 +273,17 @@ |
| 273 | value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->unitPhone : '' ?>"> | 273 | value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->unitPhone : '' ?>"> |
| 274 | </div> | 274 | </div> |
| 275 | 275 | ||
| 276 | <div class="form-group col-sm-3 col-md-2"> | 276 | <!--<div class="form-group col-sm-3 col-md-2"> |
| 277 | <label>职称类型</label> | 277 | <label>职称类型</label> |
| 278 | <span class="form-control select-box"> | 278 | <span class="form-control select-box"> |
| 279 | <select class="select" size="1" name="clientUnitInputVO.jobType"> | 279 | <select class="select" size="1" name="clientUnitInputVO.jobType"> |
| 280 | <?php foreach ($this->session->jobTypeEnum as $k => $v): ?> | 280 | <?php /*foreach ($this->session->jobTypeEnum as $k => $v): */?> |
| 281 | <option <?= $clientUnitOutputVO && $clientUnitOutputVO->jobType == $k ? 'selected' : '' ?> | 281 | <option <?/*= $clientUnitOutputVO && $clientUnitOutputVO->jobType == $k ? 'selected' : '' */?> |
| 282 | value="<?= $k ?>"><?= $v ?></option> | 282 | value="<?/*= $k */?>"><?/*= $v */?></option> |
| 283 | <?php endforeach; ?> | 283 | <?php /*endforeach; */?> |
| 284 | </select> | 284 | </select> |
| 285 | </span> | 285 | </span> |
| 286 | </div> | 286 | </div>--> |
| 287 | 287 | ||
| 288 | </div> | 288 | </div> |
| 289 | 289 | ||
| ... | @@ -532,7 +532,7 @@ | ... | @@ -532,7 +532,7 @@ |
| 532 | } | 532 | } |
| 533 | reader.readAsDataURL(file[0]); | 533 | reader.readAsDataURL(file[0]); |
| 534 | } else { | 534 | } else { |
| 535 | alert(file[0].name + " is not a valid image file."); | 535 | alert(file[0].name + " is not a valid image file.");; |
| 536 | dvPreview.html(""); | 536 | dvPreview.html(""); |
| 537 | return false; | 537 | return false; |
| 538 | } | 538 | } |
| ... | @@ -546,7 +546,8 @@ | ... | @@ -546,7 +546,8 @@ |
| 546 | var data = $("form").serializeJson(); | 546 | var data = $("form").serializeJson(); |
| 547 | data = json(data); | 547 | data = json(data); |
| 548 | data.clientContactInputVOS = Object.values(data.clientContactInputVOS); | 548 | data.clientContactInputVOS = Object.values(data.clientContactInputVOS); |
| 549 | 549 | var dwellDetail = $('[name=clientInfoInputVO\\.dwellState]:checked').parent().find('input[type=text]').val(); | |
| 550 | data.clientInfoInputVO.dwellDetail = dwellDetail; | ||
| 550 | ajax('client/collection', 'post', data, '操作成功', function () { | 551 | ajax('client/collection', 'post', data, '操作成功', function () { |
| 551 | window.parent.reload(); | 552 | window.parent.reload(); |
| 552 | layer_close(); | 553 | layer_close(); | ... | ... |
| ... | @@ -72,13 +72,39 @@ | ... | @@ -72,13 +72,39 @@ |
| 72 | </script> | 72 | </script> |
| 73 | 73 | ||
| 74 | <script> | 74 | <script> |
| 75 | |||
| 75 | function cancel(id) { | 76 | function cancel(id) { |
| 76 | layer.confirm('取消之后, 将立即进入【已取消】列表', { | 77 | layer.confirm('确定取消?', { |
| 77 | btn: ['确认', '取消'], | 78 | btn: ['是','否'], |
| 78 | title: '客户取消', | 79 | title: '确认', |
| 79 | icon: 2 | 80 | icon: 3 |
| 80 | }, function () { | 81 | }, function(){ |
| 81 | layer.msg('取消'); | 82 | var targetUrl = 'flow/cancelOrder/' + id; |
| 83 | $.ajax({ | ||
| 84 | type: 'put', | ||
| 85 | url: apiBaseUrl + targetUrl, | ||
| 86 | cache: false, | ||
| 87 | dataType: 'json', | ||
| 88 | contentType: "application/json; charset=UTF-8", | ||
| 89 | success: function (data) { | ||
| 90 | if (data.msg) { | ||
| 91 | layer.alert(data.msg); | ||
| 92 | } else if (data.code != 0) { | ||
| 93 | layer.alert('操作失败'); | ||
| 94 | } else { | ||
| 95 | layer.alert('操作成功'); | ||
| 96 | } | ||
| 97 | setTimeout(function () { | ||
| 98 | if(!data.code) { | ||
| 99 | table.fnDraw(); | ||
| 100 | layer_close(); | ||
| 101 | } | ||
| 102 | },500); | ||
| 103 | }, | ||
| 104 | error: function () { | ||
| 105 | layer.alert("操作失败") | ||
| 106 | } | ||
| 107 | }) | ||
| 82 | }); | 108 | }); |
| 83 | } | 109 | } |
| 84 | </script> | 110 | </script> | ... | ... |
-
Please register or sign in to post a comment