init
Showing
1 changed file
with
5 additions
and
4 deletions
| ... | @@ -53,7 +53,7 @@ | ... | @@ -53,7 +53,7 @@ |
| 53 | <div class="panel-body"> | 53 | <div class="panel-body"> |
| 54 | <div class="row cl"> | 54 | <div class="row cl"> |
| 55 | <div class="form-group col-sm-4 col-md-2"> | 55 | <div class="form-group col-sm-4 col-md-2"> |
| 56 | <input type="text" class="form-control input-text Wdate" value="" onfocus="WdatePicker()"> | 56 | <input type="text" name="loanDate" class="form-control input-text Wdate" value="" onfocus="WdatePicker()"> |
| 57 | </div> | 57 | </div> |
| 58 | </div> | 58 | </div> |
| 59 | </div> | 59 | </div> |
| ... | @@ -66,7 +66,9 @@ | ... | @@ -66,7 +66,9 @@ |
| 66 | <div class="form-group col-sm-4 col-md-2"> | 66 | <div class="form-group col-sm-4 col-md-2"> |
| 67 | <span class="form-control select-box"> | 67 | <span class="form-control select-box"> |
| 68 | <select class="select" size="1"> | 68 | <select class="select" size="1"> |
| 69 | <option><?=$item->payBackType?></option> | 69 | <?php foreach ($this->session->repayments as $k=>$v):?> |
| 70 | <option <?=$item == payBackType ? 'selected' : '' ?> value="<?=$k?>"><?=$v?></option> | ||
| 71 | <?php endforeach;?> | ||
| 70 | </select> | 72 | </select> |
| 71 | </span> | 73 | </span> |
| 72 | </div> | 74 | </div> |
| ... | @@ -91,10 +93,9 @@ | ... | @@ -91,10 +93,9 @@ |
| 91 | var orderId = "<?=$id?>"; | 93 | var orderId = "<?=$id?>"; |
| 92 | $.ajax({ | 94 | $.ajax({ |
| 93 | type: 'put', | 95 | type: 'put', |
| 94 | url: apiBaseUrl + 'flow/confirm/loan/' + orderId, | 96 | url: apiBaseUrl + 'flow/confirm/loan/' + orderId + '?loanDate' + $('[name=loanDate]').val(), |
| 95 | cache: false, | 97 | cache: false, |
| 96 | dataType: 'json', | 98 | dataType: 'json', |
| 97 | data: JSON.stringify(data), | ||
| 98 | contentType: "application/json; charset=UTF-8", | 99 | contentType: "application/json; charset=UTF-8", |
| 99 | success: function (data) { | 100 | success: function (data) { |
| 100 | if (data.msg) { | 101 | if (data.msg) { | ... | ... |
-
Please register or sign in to post a comment