bug
Showing
4 changed files
with
29 additions
and
15 deletions
| ... | @@ -104,6 +104,9 @@ | ... | @@ -104,6 +104,9 @@ |
| 104 | 104 | ||
| 105 | var index = getQueryString('tab'); | 105 | var index = getQueryString('tab'); |
| 106 | 106 | ||
| 107 | var loc = beva.locationutil.attach('province', 'city', 'county', 'address'); | ||
| 108 | loc.setSelectedCodes(['<?=$clientInfoOutputVO->registerProvince?>', '<?=$clientInfoOutputVO->registerCity?>', '<?=$clientInfoOutputVO->registerCounty?>']); | ||
| 109 | |||
| 107 | $("#tab").Huitab({index: index}); | 110 | $("#tab").Huitab({index: index}); |
| 108 | </script> | 111 | </script> |
| 109 | </body> | 112 | </body> | ... | ... |
| ... | @@ -30,7 +30,7 @@ | ... | @@ -30,7 +30,7 @@ |
| 30 | <label>房产地址</label> | 30 | <label>房产地址</label> |
| 31 | <input type="text" class="form-control input-text" v-model="dueDiligenceVO.dueDiligenceBasicInformationVO.houseAddress"> | 31 | <input type="text" class="form-control input-text" v-model="dueDiligenceVO.dueDiligenceBasicInformationVO.houseAddress"> |
| 32 | </div> | 32 | </div> |
| 33 | <div class="form-group col-sm-3 col-md-1"> | 33 | <div class="form-group col-sm-2 col-md-1"> |
| 34 | <label> </label> | 34 | <label> </label> |
| 35 | <span class="form-control select-box"> | 35 | <span class="form-control select-box"> |
| 36 | <select class="select" name="houseAddressHasReal" size="1" v-model="dueDiligenceVO.dueDiligenceBasicInformationVO.houseAddressHasReal"> | 36 | <select class="select" name="houseAddressHasReal" size="1" v-model="dueDiligenceVO.dueDiligenceBasicInformationVO.houseAddressHasReal"> | ... | ... |
| ... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
| 24 | </div> | 24 | </div> |
| 25 | <div class="form-group col-sm-3 col-md-2"> | 25 | <div class="form-group col-sm-3 col-md-2"> |
| 26 | <label>出生日期</label> | 26 | <label>出生日期</label> |
| 27 | <input type="text" class="form-control input-text Wdate" value="<?=$clientInfoOutputVO->birthDate?date('Y-m-d',strtotime($clientInfoOutputVO->birthDate / 1000)):''?>" onfocus="WdatePicker()"> | 27 | <input type="text" class="form-control input-text Wdate" value="<?=$clientInfoOutputVO->birthDate?date('Y-m-d', $clientInfoOutputVO->birthDate / 1000):''?>" onfocus="WdatePicker()"> |
| 28 | </div> | 28 | </div> |
| 29 | </div> | 29 | </div> |
| 30 | 30 | ... | ... |
| ... | @@ -488,19 +488,20 @@ | ... | @@ -488,19 +488,20 @@ |
| 488 | </div> | 488 | </div> |
| 489 | <div class="form-group col-sm-3 col-md-2"> | 489 | <div class="form-group col-sm-3 col-md-2"> |
| 490 | <label>还款方式</label> | 490 | <label>还款方式</label> |
| 491 | <span class="form-control select-box"> | 491 | <input type="text" class="form-control input-text" disabled name="applyOrderVO.payBackType" v-model="product.repaymentMode"> |
| 492 | <select class="select" size=c"" name="applyOrderVO.payBackType"> | 492 | <!-- <span class="form-control select-box disabled"> |
| 493 | <?php foreach ($this->session->repayments as $k => $v): ?> | 493 | <select class="select" size=c"" name="applyOrderVO.payBackType" disabled> |
| 494 | <option <?= $applyOrderVO && $applyOrderVO->payBackType ? 'selected' : '' ?> | 494 | <?php foreach ($this->session->repayments as $k => $v): ?> |
| 495 | value="<?= $k ?>"><?= $v ?></option> | 495 | <option <?= $applyOrderVO && $applyOrderVO->payBackType ? 'selected' : '' ?> |
| 496 | <?php endforeach; ?> | 496 | value="<?= $k ?>"><?= $v ?></option> |
| 497 | </select> | 497 | <?php endforeach; ?> |
| 498 | </span> | 498 | </select> |
| 499 | </span> --> | ||
| 499 | </div> | 500 | </div> |
| 500 | <div class="form-group col-sm-3 col-md-2"> | 501 | <div class="form-group col-sm-3 col-md-2"> |
| 501 | <label>贷款用途</label> | 502 | <label>贷款用途</label> |
| 502 | <span class="form-control select-box"> | 503 | <span class="form-control select-box"> |
| 503 | <select class="select" size=c"" name="applyOrderVO.use" v-model="applyOrderVO.use"> | 504 | <select class="select" size=c"" name="applyOrderVO.use"> |
| 504 | <option v-for="(v, k) in loanPurpose" :value="k">{{v}}</option> | 505 | <option v-for="(v, k) in loanPurpose" :value="k">{{v}}</option> |
| 505 | </select> | 506 | </select> |
| 506 | </span> | 507 | </span> |
| ... | @@ -546,12 +547,12 @@ | ... | @@ -546,12 +547,12 @@ |
| 546 | loanPurpose: [], | 547 | loanPurpose: [], |
| 547 | nature: [], | 548 | nature: [], |
| 548 | education: [], | 549 | education: [], |
| 550 | repayment: [], | ||
| 549 | 551 | ||
| 550 | applyOrderVO: {}, | 552 | applyOrderVO: {}, |
| 551 | clientInfoInputVO: {} | 553 | clientInfoInputVO: {}, |
| 552 | }, | 554 | }, |
| 553 | mounted () { | 555 | mounted () { |
| 554 | let _this = this; | ||
| 555 | instance.get('/config/products').then( ( {data} ) => { | 556 | instance.get('/config/products').then( ( {data} ) => { |
| 556 | this.products = data.data | 557 | this.products = data.data |
| 557 | }); | 558 | }); |
| ... | @@ -573,6 +574,10 @@ | ... | @@ -573,6 +574,10 @@ |
| 573 | instance.get('/client/enum/education').then( ({data}) => { | 574 | instance.get('/client/enum/education').then( ({data}) => { |
| 574 | this.education = data.data; | 575 | this.education = data.data; |
| 575 | }); | 576 | }); |
| 577 | |||
| 578 | instance.get('/config/enum/repayment').then( ({data}) => { | ||
| 579 | this.repayment = data.data; | ||
| 580 | }); | ||
| 576 | }, | 581 | }, |
| 577 | methods: { | 582 | methods: { |
| 578 | applyMoney () { | 583 | applyMoney () { |
| ... | @@ -586,6 +591,13 @@ | ... | @@ -586,6 +591,13 @@ |
| 586 | layer.alert('<贷款期限>不能超过最大值: ' + this.product.loanDeadline); | 591 | layer.alert('<贷款期限>不能超过最大值: ' + this.product.loanDeadline); |
| 587 | this.applyOrderVO.deadline = this.product.loanDeadline; | 592 | this.applyOrderVO.deadline = this.product.loanDeadline; |
| 588 | } | 593 | } |
| 594 | }, | ||
| 595 | getRepaymentId (repayment) { | ||
| 596 | for (v in this.repayment) { | ||
| 597 | if (this.repayment[v] == repayment) { | ||
| 598 | return v; | ||
| 599 | } | ||
| 600 | } | ||
| 589 | } | 601 | } |
| 590 | }, | 602 | }, |
| 591 | watch: { | 603 | watch: { |
| ... | @@ -648,8 +660,7 @@ | ... | @@ -648,8 +660,7 @@ |
| 648 | data.clientContactInputVOS = Object.values(data.clientContactInputVOS); | 660 | data.clientContactInputVOS = Object.values(data.clientContactInputVOS); |
| 649 | var dwellDetail = $('[name=clientInfoInputVO\\.dwellState]:checked').parent().find('input[type=text]').val(); | 661 | var dwellDetail = $('[name=clientInfoInputVO\\.dwellState]:checked').parent().find('input[type=text]').val(); |
| 650 | data.clientInfoInputVO.dwellDetail = dwellDetail; | 662 | data.clientInfoInputVO.dwellDetail = dwellDetail; |
| 651 | 663 | data.applyOrderVO.payBackType = vm.getRepaymentId('等额本息') | |
| 652 | console.log(data); | ||
| 653 | 664 | ||
| 654 | ajax('client/collection', 'post', data, '操作成功', function () { | 665 | ajax('client/collection', 'post', data, '操作成功', function () { |
| 655 | window.parent.reload(); | 666 | window.parent.reload(); | ... | ... |
-
Please register or sign in to post a comment