Browse Source

Merge remote-tracking branch 'origin/master'

master
fanzongzhe 2 years ago
parent
commit
1e945dcb94
  1. 10
      anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue
  2. 14
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue
  3. 10
      anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue
  4. 14
      anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue
  5. 73
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java

10
anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue

@ -538,9 +538,17 @@ export default {
//
this.finance.factoryDiscountUse = '抵利息'
this.finance.factoryDiscountUseKey = '02'
// 0
// 0
if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') {
//
this.financingProject()
//
this.finance.otherPolicyState = false
this.finance.otherPolicyName = ''
this.finance.otherPolicySid = ''
this.finance.otherPolicyAmount = ''
this.finance.otherPolicyPeriod = ''
this.finance.otherPolicyYearRatio = ''
}
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => {
if (res.success) {

14
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue

@ -421,14 +421,14 @@ export default {
this.finance = JSON.parse(JSON.stringify(value))
this.orgPath = orgSidPath
if (this.finance.isPack !== '' && this.finance.isPack !== null) {
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
}
if (this.finance.policySid !== '' && this.finance.isPack !== null) {
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => {
selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => {
if (res.success) {
this.other_list = res.data
}
@ -535,9 +535,17 @@ export default {
this.finance.nominalPrice = choose[0].nominalPrice
// --
this.finance.proxyAccidentPremium = choose[0].vehAccidentAmount
// 0
// 0
if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') {
//
this.financingProject()
//
this.finance.otherPolicyState = false
this.finance.otherPolicyName = ''
this.finance.otherPolicySid = ''
this.finance.otherPolicyAmount = ''
this.finance.otherPolicyPeriod = ''
this.finance.otherPolicyYearRatio = ''
}
selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => {
if (res.success) {

10
anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue

@ -498,9 +498,17 @@ export default {
//
this.finance.factoryDiscountUse = '抵利息'
this.finance.factoryDiscountUseKey = '02'
// 0
// 0
if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') {
//
this.financingProject()
//
this.finance.otherPolicyState = false
this.finance.otherPolicyName = ''
this.finance.otherPolicySid = ''
this.finance.otherPolicyAmount = ''
this.finance.otherPolicyPeriod = ''
this.finance.otherPolicyYearRatio = ''
}
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => {
if (res.success) {

14
anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue

@ -384,14 +384,14 @@ export default {
this.finance = JSON.parse(JSON.stringify(value))
this.orgPath = orgPath
if (this.finance.isPack !== '' && this.finance.isPack !== null) {
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
}
if (this.finance.policySid !== '' && this.finance.isPack !== null) {
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => {
selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => {
if (res.success) {
this.other_list = res.data
}
@ -500,9 +500,17 @@ export default {
//
this.finance.factoryDiscountUse = '抵利息'
this.finance.factoryDiscountUseKey = '02'
// 0
// 0
if (this.finance.loanTotal !== '' && this.finance.loanTotal !== '0') {
//
this.financingProject()
//
this.finance.otherPolicyState = false
this.finance.otherPolicyName = ''
this.finance.otherPolicySid = ''
this.finance.otherPolicyAmount = ''
this.finance.otherPolicyPeriod = ''
this.finance.otherPolicyYearRatio = ''
}
selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => {
if (res.success) {

73
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansolutions/LoanSolutionsService.java

@ -1053,11 +1053,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
} else {
solutionsDetailsVo.setShowMore(true);
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionsDetailsVo.getPolicySid());
if(loanFinPolicy != null){
if (loanFinPolicy != null) {
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey();
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount();
solutionsDetailsVo.setServiceChargeTypeKey(serviceChargeTypeKey);
if(serviceChargeTypeValue != null){
if (serviceChargeTypeValue != null) {
solutionsDetailsVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString());
}
}
@ -1068,11 +1068,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
} else if ("2".equals(busSalesOrder.getPayTypeKey())) {//贷款
solutionsDetailsVo.setShowMore(true);
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionsDetailsVo.getPolicySid());
if(loanFinPolicy != null){
if (loanFinPolicy != null) {
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey();
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount();
solutionsDetailsVo.setServiceChargeTypeKey(serviceChargeTypeKey);
if(serviceChargeTypeValue != null){
if (serviceChargeTypeValue != null) {
solutionsDetailsVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString());
}
}
@ -1174,11 +1174,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
BeanUtil.copyProperties(loanSolutionsDetail, solutionsDetailsVo);
}
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(loanSolutions.getPolicySid());
if(loanFinPolicy != null){
if (loanFinPolicy != null) {
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey();
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount();
solutionsDetailsVo.setServiceChargeTypeKey(serviceChargeTypeKey);
if(serviceChargeTypeValue != null){
if (serviceChargeTypeValue != null) {
solutionsDetailsVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString());
}
}
@ -1263,7 +1263,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
if (StringUtils.isNotBlank(premium)) {
loanTotal = loanTotal.add(new BigDecimal(premium));
}
}else{
} else {
if (StringUtils.isNotBlank(premium)) {
vehTotalPrice = vehTotalPrice.add(new BigDecimal(premium));
}
@ -1272,7 +1272,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
if (StringUtils.isNotBlank(purchaseTax)) {
loanTotal = loanTotal.add(new BigDecimal(purchaseTax));
}
}else{
} else {
if (StringUtils.isNotBlank(purchaseTax)) {
vehTotalPrice = vehTotalPrice.add(new BigDecimal(purchaseTax));
}
@ -1385,7 +1385,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
calculateVo.setDownPayAmountsRatio(downPayAmountsRatio.toString());
//
BigDecimal downPayRatioLeast = loanFinPolicy.getDownPayRatioLeast();
if(downPayAmountsRatio.compareTo(downPayRatioLeast)<0){
if (downPayAmountsRatio.compareTo(downPayRatioLeast) < 0) {
return rb.setMsg("实际首付比例不能低于产品政策中的最低首付比例");
}
//总贷款金额
@ -1405,7 +1405,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
} else {
monthlyRepay = loanPayMoneyAll.toString() + "/" + calculateVo.getLoanPayMoney();
}
}else{
} else {
monthlyRepay = loanPayMoneyAll.toString();
}
@ -1627,11 +1627,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
solutionssVo.setShowMore(true);
solutionssVo.setFactoryDiscountUse("抵利息");
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionssVo.getPolicySid());
if(loanFinPolicy != null){
if (loanFinPolicy != null) {
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey();
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount();
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey);
if(serviceChargeTypeValue != null){
if (serviceChargeTypeValue != null) {
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString());
}
}
@ -1660,11 +1660,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
solutionssVo.setShowMore(true);
solutionssVo.setFactoryDiscountUse("抵利息");
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionssVo.getPolicySid());
if(loanFinPolicy != null){
if (loanFinPolicy != null) {
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey();
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount();
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey);
if(serviceChargeTypeValue != null){
if (serviceChargeTypeValue != null) {
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString());
}
}
@ -1742,8 +1742,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
//融资票据
StringBuilder accessoriesAmountValue = new StringBuilder();
if (StringUtils.isNotBlank(solutionssVo.getAccessoriesAmount())) {
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("配件:").append(solutionssVo.getAccessoriesAmount());
if(!solutionssVo.isAccessoriesAmountCb()){
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("配件:").append("0");
}else{
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("配件:").append(solutionssVo.getAccessoriesAmount());
}
} else {
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("配件:").append("-");
}
@ -1751,8 +1754,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
//挂车
StringBuilder trailerAmountValue = new StringBuilder();
if (StringUtils.isNotBlank(solutionssVo.getTrailerAmount())) {
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append(solutionssVo.getTrailerAmount());
if(!solutionssVo.isTrailerAmountCb()){
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append("0");
}else{
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append(solutionssVo.getTrailerAmount());
}
} else {
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append("-");
}
@ -1760,8 +1766,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
//保险
StringBuilder premiumValue = new StringBuilder();
if (StringUtils.isNotBlank(solutionssVo.getPremium())) {
premiumValue = premiumValue.append("\t").append("保险:").append(solutionssVo.getPremium());
if (!solutionssVo.isPremiumCb()) {
premiumValue = premiumValue.append("\t").append("保险:").append("0");
}else{
premiumValue = premiumValue.append("\t").append("保险:").append(solutionssVo.getPremium());
}
} else {
premiumValue = premiumValue.append("\t").append("保险:").append("-");
}
@ -1769,7 +1778,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
//购置税
StringBuilder purchaseTaxValue = new StringBuilder();
if (StringUtils.isNotBlank(solutionssVo.getPurchaseTax())) {
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append(solutionssVo.getPurchaseTax());
if(!solutionssVo.isPurchaseTaxCb()){
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append("0");
}else{
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append(solutionssVo.getPurchaseTax());
}
} else {
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append("-");
}
@ -1778,7 +1791,6 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
StringBuilder downPayRatioValue = new StringBuilder();
if (StringUtils.isNotBlank(solutionssVo.getDownPayRatio())) {
downPayRatioValue = downPayRatioValue.append("首付比例(%):").append(solutionssVo.getDownPayRatio());
} else {
downPayRatioValue = downPayRatioValue.append("首付比例(%):").append("-");
}
@ -1787,7 +1799,6 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
StringBuilder downPayAmountValue = new StringBuilder();
if (StringUtils.isNotBlank(solutionssVo.getDownPayAmount())) {
downPayAmountValue = downPayAmountValue.append("首付金额:").append(solutionssVo.getDownPayAmount());
} else {
downPayAmountValue = downPayAmountValue.append("首付金额:").append("-");
}
@ -2238,8 +2249,6 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
SolutionssVo solutionssVo = new SolutionssVo();
BeanUtil.copyProperties(query, solutionssVo);
if (query.isShowMore()) {
if (query.isPremiumCb()) {
//保险
String premium = query.getPremium();
@ -2289,16 +2298,16 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
CalculateVo calculateVo = resultBean.getData();
BeanUtil.copyProperties(calculateVo, solutionssVo);
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(query.getPolicySid());
if(loanFinPolicy != null){
if (loanFinPolicy != null) {
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey();
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount();
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey);
if(serviceChargeTypeValue != null){
if (serviceChargeTypeValue != null) {
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString());
}
}
if(query.isOtherPolicyState()){
if (query.isOtherPolicyState()) {
//验证贷款金额是否不大于最高贷款金额
LoanFinOtherPolicy loanFinOtherPolicy = loanFinOtherPolicyService.fetchBySid(query.getOtherPolicySid());
if (loanFinOtherPolicy != null) {
@ -2394,11 +2403,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
}
}
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionssVo.getPolicySid());
if(loanFinPolicy != null){
if (loanFinPolicy != null) {
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey();
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount();
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey);
if(serviceChargeTypeValue != null){
if (serviceChargeTypeValue != null) {
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString());
}
}
@ -2431,11 +2440,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper
}
}
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionssVo.getPolicySid());
if(loanFinPolicy != null){
if (loanFinPolicy != null) {
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey();
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount();
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey);
if(serviceChargeTypeValue != null){
if (serviceChargeTypeValue != null) {
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString());
}
}

Loading…
Cancel
Save