diff --git a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue index 81ac3c868d..5634ac2d90 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue @@ -329,12 +329,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: '', isShowMore: false, @@ -371,14 +373,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', - saleOrderSid: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', @@ -443,12 +448,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: val, isShowMore: false, @@ -485,14 +492,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', - saleOrderSid: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', @@ -517,6 +527,14 @@ export default { this.finance.loanPeriod = choose[0].period // 从金融产品政策中-- 获取贷款保证金比例 this.finance.bondRatio = choose[0].bondRatio + // 从金融产品政策中-- 获取保险保证金 + this.finance.depositPremium = choose[0].depositPremium + // 从金融产品政策中-- 获取落户保证金 + this.finance.depositSettle = choose[0].depositSettle + // 从金融产品政策中-- 获取名义(留购)价 + this.finance.nominalPrice = choose[0].nominalPrice + // 从金融产品政策中-- 获取代收意外险 + this.finance.proxyAccidentPremium = choose[0].vehAccidentAmount // 贴息用途赋值 this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUseKey = '02' @@ -588,6 +606,17 @@ export default { this.finance.loanAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) - parseInt(this.arguments(this.finance.downPayAmount))) // 主方案 -- 计算贷款保证金 this.finance.bondAmount = Math.round(parseFloat(this.arguments(this.finance.bondRatio)) * parseInt(this.arguments(this.finance.loanAmount)) / 100) + // 应收明细 -- 根据金融产品政策获取的服务费类型计算服务费 + if (this.finance.serviceChargeTypeKey === '01') { + // 融资项目总额 * 融资项目总额比例(金融产品政策中服务费) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + } else if (this.finance.serviceChargeTypeKey === '02') { + // 等于金融产品政策中服务费 + this.finance.serviceAmount = this.finance.serviceChargeTypeValue + } else if (this.finance.serviceChargeTypeKey === '03') { + // 贷款金额 * 贷款金额比例(金融产品政策中服务费) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + } } if (this.finance.premiumCb && this.finance.dealWayKey === '02') { this.finance.offsetPremium = this.finance.premium @@ -607,6 +636,10 @@ export default { this.finance.downPayRatio = (parseInt(this.arguments(this.finance.downPayAmount)) / parseInt(this.arguments(this.finance.loanTotal)) * 100).toPrecision(2) // 重新计算产品贷款金额 this.finance.loanAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) - parseInt(this.arguments(this.finance.downPayAmount))) + if (this.finance.serviceChargeTypeKey === '03') { + // 贷款金额 * 贷款金额比例(金融产品政策中服务费) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + } // 主方案 -- 贷款保证金 this.finance.bondAmount = Math.round(parseFloat(this.arguments(this.finance.bondRatio)) * parseInt(this.arguments(this.finance.loanAmount)) / 100) } @@ -735,78 +768,74 @@ export default { }, handleColse() { this.finance = { - saleOrderSid: '', - type: '', - isPack: '', - policyName: '', - policySid: '', - mainVehicleAmount: '', accessoriesAmount: '', - trailerAmount: '', - purchaseTax: '', - premium: '', - loanTotal: '', - accessoriesAmountCb: false, - trailerAmountCb: false, - purchaseTaxCb: false, - premiumCb: false, - - downPayRatio: '', - downPayAmount: '', - loanAmount: '', - loanPeriod: '', - bondRatio: '', bondAmount: '', + bondAmounts: '', + bondRatio: '', + dealWay: '', + dealWayKey: '', + depositPremium: '', + depositSettle: '', + discountCar: '', + downPayAmount: '', + downPayAmounts: '', + downPayAmountsRatio: '', + downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', factoryDiscountUseKey: '', - policyYearRatio: '', - loanPayMoney: '', + interest: '', + isPack: '', + isShowMore: false, + loanAmount: '', + loanAmountTotal: '', + loanDownPay: '', loanInterest: '', - discountCar: '', - otherPolicyState: false, - - otherPolicyName: '', - otherPolicySid: '', + loanPayMoney: '', + loanPeriod: '', + loanTotal: '', + mainVehicleAmount: '', + monthlyRepay: '', + nominalPrice: '', + offsetPremium: '', + offsetPurchasetax: '', + offsetTotal: '', + operationAmount: '', + otherAmount: '', + otherAmountRemark: '', otherPolicyAmount: '', - otherPolicyPeriod: '', - - otherPolicyMonthlyRepay: '', otherPolicyInterest: '', + otherPolicyMonthlyRepay: '', + otherPolicyName: '', + otherPolicyPeriod: '', + otherPolicySid: '', + otherPolicyState: false, otherPolicyYearRatio: '', - - loanDownPay: '', - downPayAmountsRatio: '', - loanAmountTotal: '', period: '', - monthlyRepay: '', - interest: '', - returnTime: '', - - downPayAmounts: '', - bondAmounts: '', - depositPremium: '', - depositSettle: '', - serviceAmount: '', + policyName: '', + policySid: '', + policyYearRatio: '', + premium: '', + premiumCb: false, proxyAccidentPremium: '', - registerAmount: '', - operationAmount: '', - vehOtherPrice: '', - otherAmount: '', - otherAmountRemark: '', - dealWay: '', - dealWayKey: '', proxyPremium: '', proxyPurchasetax: '', proxyTotal: '', - offsetPremium: '', - offsetPurchasetax: '', - offsetTotal: '', - receivableTotal: '', + purchaseTax: '', + purchaseTaxCb: false, realTotal: '', - vehTotalPrice: '', - nominalPrice: '' + receivableTotal: '', + registerAmount: '', + returnTime: '', + salesOrderSid: '', + serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', + trailerAmount: '', + trailerAmountCb: false, + vehOtherPrice: '', + vehTotalPrice: '' } this.isShowMore = false this.$emit('doback') diff --git a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue index 760407447c..7b8ef6ad0e 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue @@ -335,12 +335,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: '', isShowMore: false, @@ -377,14 +379,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', - saleOrderSid: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', @@ -421,155 +426,149 @@ export default { backData(value) { this.viewState = 1 value = JSON.parse(JSON.stringify(value)) - this.formobj.type = value.type - this.formobj.isPack = value.isPack - this.formobj.policyName = value.policyName - this.formobj.policySid = value.policySid - this.formobj.mainVehicleAmount = value.mainVehicleAmount - this.formobj.accessoriesAmount = value.accessoriesAmount - this.formobj.trailerAmount = value.trailerAmount - this.formobj.purchaseTax = value.purchaseTax - this.formobj.premium = value.premium - this.formobj.loanTotal = value.loanTotal - - this.formobj.accessoriesAmountCb = value.accessoriesAmountCb - this.formobj.trailerAmountCb = value.trailerAmountCb - this.formobj.purchaseTaxCb = value.purchaseTaxCb - this.formobj.premiumCb = value.premiumCb - - this.formobj.downPayRatio = value.downPayRatio - this.formobj.downPayAmount = value.downPayAmount - this.formobj.loanAmount = value.loanAmount - this.formobj.loanPeriod = value.loanPeriod - this.formobj.bondRatio = value.bondRatio - this.formobj.bondAmount = value.bondAmount - this.formobj.factoryDiscount = value.factoryDiscount - this.formobj.factoryDiscountUse = value.factoryDiscountUse - this.formobj.factoryDiscountUseKey = value.factoryDiscountUseKey - this.formobj.policyYearRatio = value.policyYearRatio - this.formobj.loanPayMoney = value.loanPayMoney - this.formobj.loanInterest = value.loanInterest - this.formobj.discountCar = value.discountCar - this.formobj.otherPolicyState = value.otherPolicyState - - this.formobj.otherPolicyName = value.otherPolicyName - this.formobj.otherPolicySid = value.otherPolicySid - this.formobj.otherPolicyAmount = value.otherPolicyAmount - this.formobj.otherPolicyPeriod = value.otherPolicyPeriod - - this.formobj.otherPolicyMonthlyRepay = value.otherPolicyMonthlyRepay - this.formobj.otherPolicyInterest = value.otherPolicyInterest - this.formobj.otherPolicyYearRatio = value.otherPolicyYearRatio - - this.formobj.loanDownPay = value.loanDownPay - this.formobj.downPayAmountsRatio = value.downPayAmountsRatio - this.formobj.loanAmountTotal = value.loanAmountTotal - this.formobj.period = value.period - this.formobj.monthlyRepay = value.monthlyRepay - this.formobj.interest = value.interest - this.formobj.returnTime = value.returnTime - - this.formobj.downPayAmounts = value.downPayAmounts - this.formobj.bondAmounts = value.bondAmounts - this.formobj.depositPremium = value.depositPremium - this.formobj.depositSettle = value.depositSettle - this.formobj.serviceAmount = value.serviceAmount - this.formobj.proxyAccidentPremium = value.proxyAccidentPremium - this.formobj.registerAmount = value.registerAmount - this.formobj.operationAmount = value.operationAmount - this.formobj.vehOtherPrice = value.vehOtherPrice - this.formobj.otherAmount = value.otherAmount - this.formobj.otherAmountRemark = value.otherAmountRemark - this.formobj.dealWay = value.dealWay - this.formobj.dealWayKey = value.dealWayKey - this.formobj.proxyPremium = value.proxyPremium - this.formobj.proxyPurchasetax = value.proxyPurchasetax - this.formobj.proxyTotal = value.proxyTotal - this.formobj.offsetPremium = value.offsetPremium - this.formobj.offsetPurchasetax = value.offsetPurchasetax - this.formobj.offsetTotal = value.offsetTotal - this.formobj.receivableTotal = value.receivableTotal - this.formobj.realTotal = value.realTotal - this.formobj.vehTotalPrice = value.vehTotalPrice - this.formobj.nominalPrice = value.nominalPrice + this.formobj = value + // this.formobj.isPack = value.isPack + // this.formobj.policyName = value.policyName + // this.formobj.policySid = value.policySid + // this.formobj.mainVehicleAmount = value.mainVehicleAmount + // this.formobj.accessoriesAmount = value.accessoriesAmount + // this.formobj.trailerAmount = value.trailerAmount + // this.formobj.purchaseTax = value.purchaseTax + // this.formobj.premium = value.premium + // this.formobj.loanTotal = value.loanTotal + // + // this.formobj.accessoriesAmountCb = value.accessoriesAmountCb + // this.formobj.trailerAmountCb = value.trailerAmountCb + // this.formobj.purchaseTaxCb = value.purchaseTaxCb + // this.formobj.premiumCb = value.premiumCb + // + // this.formobj.downPayRatio = value.downPayRatio + // this.formobj.downPayAmount = value.downPayAmount + // this.formobj.loanAmount = value.loanAmount + // this.formobj.loanPeriod = value.loanPeriod + // this.formobj.bondRatio = value.bondRatio + // this.formobj.bondAmount = value.bondAmount + // this.formobj.factoryDiscount = value.factoryDiscount + // this.formobj.factoryDiscountUse = value.factoryDiscountUse + // this.formobj.factoryDiscountUseKey = value.factoryDiscountUseKey + // this.formobj.policyYearRatio = value.policyYearRatio + // this.formobj.loanPayMoney = value.loanPayMoney + // this.formobj.loanInterest = value.loanInterest + // this.formobj.discountCar = value.discountCar + // this.formobj.otherPolicyState = value.otherPolicyState + // + // this.formobj.otherPolicyName = value.otherPolicyName + // this.formobj.otherPolicySid = value.otherPolicySid + // this.formobj.otherPolicyAmount = value.otherPolicyAmount + // this.formobj.otherPolicyPeriod = value.otherPolicyPeriod + // + // this.formobj.otherPolicyMonthlyRepay = value.otherPolicyMonthlyRepay + // this.formobj.otherPolicyInterest = value.otherPolicyInterest + // this.formobj.otherPolicyYearRatio = value.otherPolicyYearRatio + // + // this.formobj.loanDownPay = value.loanDownPay + // this.formobj.downPayAmountsRatio = value.downPayAmountsRatio + // this.formobj.loanAmountTotal = value.loanAmountTotal + // this.formobj.period = value.period + // this.formobj.monthlyRepay = value.monthlyRepay + // this.formobj.interest = value.interest + // this.formobj.returnTime = value.returnTime + // + // this.formobj.downPayAmounts = value.downPayAmounts + // this.formobj.bondAmounts = value.bondAmounts + // this.formobj.depositPremium = value.depositPremium + // this.formobj.depositSettle = value.depositSettle + // this.formobj.serviceAmount = value.serviceAmount + // this.formobj.proxyAccidentPremium = value.proxyAccidentPremium + // this.formobj.registerAmount = value.registerAmount + // this.formobj.operationAmount = value.operationAmount + // this.formobj.vehOtherPrice = value.vehOtherPrice + // this.formobj.otherAmount = value.otherAmount + // this.formobj.otherAmountRemark = value.otherAmountRemark + // this.formobj.dealWay = value.dealWay + // this.formobj.dealWayKey = value.dealWayKey + // this.formobj.proxyPremium = value.proxyPremium + // this.formobj.proxyPurchasetax = value.proxyPurchasetax + // this.formobj.proxyTotal = value.proxyTotal + // this.formobj.offsetPremium = value.offsetPremium + // this.formobj.offsetPurchasetax = value.offsetPurchasetax + // this.formobj.offsetTotal = value.offsetTotal + // this.formobj.receivableTotal = value.receivableTotal + // this.formobj.realTotal = value.realTotal + // this.formobj.vehTotalPrice = value.vehTotalPrice + // this.formobj.nominalPrice = value.nominalPrice }, backParameters() { this.$emit('backParameters', this.formobj) this.formobj = { - saleOrderSid: '', - type: '', - isPack: '', - policyName: '', - policySid: '', - mainVehicleAmount: '', accessoriesAmount: '', - trailerAmount: '', - purchaseTax: '', - premium: '', - loanTotal: '', - accessoriesAmountCb: false, - trailerAmountCb: false, - purchaseTaxCb: false, - premiumCb: false, - - downPayRatio: '', - downPayAmount: '', - loanAmount: '', - loanPeriod: '', - bondRatio: '', bondAmount: '', + bondAmounts: '', + bondRatio: '', + dealWay: '', + dealWayKey: '', + depositPremium: '', + depositSettle: '', + discountCar: '', + downPayAmount: '', + downPayAmounts: '', + downPayAmountsRatio: '', + downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', factoryDiscountUseKey: '', - policyYearRatio: '', - loanPayMoney: '', + interest: '', + isPack: '', + isShowMore: false, + loanAmount: '', + loanAmountTotal: '', + loanDownPay: '', loanInterest: '', - discountCar: '', - otherPolicyState: false, - - otherPolicyName: '', - otherPolicySid: '', + loanPayMoney: '', + loanPeriod: '', + loanTotal: '', + mainVehicleAmount: '', + monthlyRepay: '', + nominalPrice: '', + offsetPremium: '', + offsetPurchasetax: '', + offsetTotal: '', + operationAmount: '', + otherAmount: '', + otherAmountRemark: '', otherPolicyAmount: '', - otherPolicyPeriod: '', - - otherPolicyMonthlyRepay: '', otherPolicyInterest: '', + otherPolicyMonthlyRepay: '', + otherPolicyName: '', + otherPolicyPeriod: '', + otherPolicySid: '', + otherPolicyState: false, otherPolicyYearRatio: '', - - loanDownPay: '', - downPayAmountsRatio: '', - loanAmountTotal: '', period: '', - monthlyRepay: '', - interest: '', - returnTime: '', - - downPayAmounts: '', - bondAmounts: '', - depositPremium: '', - depositSettle: '', - serviceAmount: '', + policyName: '', + policySid: '', + policyYearRatio: '', + premium: '', + premiumCb: false, proxyAccidentPremium: '', - registerAmount: '', - operationAmount: '', - vehOtherPrice: '', - otherAmount: '', - otherAmountRemark: '', - dealWay: '', - dealWayKey: '', proxyPremium: '', proxyPurchasetax: '', proxyTotal: '', - offsetPremium: '', - offsetPurchasetax: '', - offsetTotal: '', - receivableTotal: '', + purchaseTax: '', + purchaseTaxCb: false, realTotal: '', - vehTotalPrice: '', - nominalPrice: '', - - isShowMore: false + receivableTotal: '', + registerAmount: '', + returnTime: '', + salesOrderSid: '', + serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', + trailerAmount: '', + trailerAmountCb: false, + vehOtherPrice: '', + vehTotalPrice: '' } }, handleSave() { diff --git a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeInfo.vue index 2d949c220a..b806779774 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeInfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeInfo.vue @@ -329,12 +329,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: '', isShowMore: false, @@ -371,14 +373,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', - saleOrderSid: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', @@ -394,80 +399,74 @@ export default { }, handleReturn() { this.formobj = { - saleOrderSid: '', - type: '', - isPack: '', - policyName: '', - policySid: '', - mainVehicleAmount: '', accessoriesAmount: '', - trailerAmount: '', - purchaseTax: '', - premium: '', - loanTotal: '', - accessoriesAmountCb: false, - trailerAmountCb: false, - purchaseTaxCb: false, - premiumCb: false, - - downPayRatio: '', - downPayAmount: '', - loanAmount: '', - loanPeriod: '', - bondRatio: '', bondAmount: '', + bondAmounts: '', + bondRatio: '', + dealWay: '', + dealWayKey: '', + depositPremium: '', + depositSettle: '', + discountCar: '', + downPayAmount: '', + downPayAmounts: '', + downPayAmountsRatio: '', + downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', factoryDiscountUseKey: '', - policyYearRatio: '', - loanPayMoney: '', + interest: '', + isPack: '', + isShowMore: false, + loanAmount: '', + loanAmountTotal: '', + loanDownPay: '', loanInterest: '', - discountCar: '', - otherPolicyState: false, - - otherPolicyName: '', - otherPolicySid: '', + loanPayMoney: '', + loanPeriod: '', + loanTotal: '', + mainVehicleAmount: '', + monthlyRepay: '', + nominalPrice: '', + offsetPremium: '', + offsetPurchasetax: '', + offsetTotal: '', + operationAmount: '', + otherAmount: '', + otherAmountRemark: '', otherPolicyAmount: '', - otherPolicyPeriod: '', - - otherPolicyMonthlyRepay: '', otherPolicyInterest: '', + otherPolicyMonthlyRepay: '', + otherPolicyName: '', + otherPolicyPeriod: '', + otherPolicySid: '', + otherPolicyState: false, otherPolicyYearRatio: '', - - loanDownPay: '', - downPayAmountsRatio: '', - loanAmountTotal: '', period: '', - monthlyRepay: '', - interest: '', - returnTime: '', - - downPayAmounts: '', - bondAmounts: '', - depositPremium: '', - depositSettle: '', - serviceAmount: '', + policyName: '', + policySid: '', + policyYearRatio: '', + premium: '', + premiumCb: false, proxyAccidentPremium: '', - registerAmount: '', - operationAmount: '', - vehOtherPrice: '', - otherAmount: '', - otherAmountRemark: '', - dealWay: '', - dealWayKey: '', proxyPremium: '', proxyPurchasetax: '', proxyTotal: '', - offsetPremium: '', - offsetPurchasetax: '', - offsetTotal: '', - receivableTotal: '', + purchaseTax: '', + purchaseTaxCb: false, realTotal: '', - vehTotalPrice: '', - nominalPrice: '', - - isShowMore: false + receivableTotal: '', + registerAmount: '', + returnTime: '', + salesOrderSid: '', + serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', + trailerAmount: '', + trailerAmountCb: false, + vehOtherPrice: '', + vehTotalPrice: '' } this.$emit('doback') } diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue index 91ee092019..21b21d9fb5 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue @@ -149,12 +149,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: '', isShowMore: false, @@ -191,14 +193,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', - saleOrderSid: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', @@ -286,12 +291,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: '', isShowMore: false, @@ -328,14 +335,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', - saleOrderSid: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', @@ -441,12 +451,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: '', isShowMore: false, @@ -483,14 +495,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', - saleOrderSid: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue index 9cc06a7ca3..16f7259657 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue @@ -115,12 +115,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: '', isShowMore: false, @@ -157,13 +159,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue index 9aea6d52b5..eca4ea2437 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue @@ -318,7 +318,76 @@ export default { dealWay_list: [], policy_list: [], other_list: [], - finance: {}, + finance: { + accessoriesAmount: '', + accessoriesAmountCb: false, + bondAmount: '', + bondAmounts: '', + bondRatio: '', + dealWay: '', + dealWayKey: '', + depositPremium: '', + depositSettle: '', + discountCar: '', + downPayAmount: '', + downPayAmounts: '', + downPayAmountsRatio: '', + downPayRatio: '', + factoryDiscount: '', + factoryDiscountUse: '', + factoryDiscountUseKey: '', + interest: '', + isPack: '', + isShowMore: false, + loanAmount: '', + loanAmountTotal: '', + loanDownPay: '', + loanInterest: '', + loanPayMoney: '', + loanPeriod: '', + loanTotal: '', + mainVehicleAmount: '', + monthlyRepay: '', + nominalPrice: '', + offsetPremium: '', + offsetPurchasetax: '', + offsetTotal: '', + operationAmount: '', + otherAmount: '', + otherAmountRemark: '', + otherPolicyAmount: '', + otherPolicyInterest: '', + otherPolicyMonthlyRepay: '', + otherPolicyName: '', + otherPolicyPeriod: '', + otherPolicySid: '', + otherPolicyState: false, + otherPolicyYearRatio: '', + period: '', + policyName: '', + policySid: '', + policyYearRatio: '', + premium: '', + premiumCb: false, + proxyAccidentPremium: '', + proxyPremium: '', + proxyPurchasetax: '', + proxyTotal: '', + purchaseTax: '', + purchaseTaxCb: false, + realTotal: '', + receivableTotal: '', + registerAmount: '', + returnTime: '', + salesOrderSid: '', + serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', + trailerAmount: '', + trailerAmountCb: false, + vehOtherPrice: '', + vehTotalPrice: '' + }, orgPath: '', rules: {} } @@ -366,75 +435,76 @@ export default { }, // 是否打包 isPackChange(val) { - this.finance.type = '' - this.finance.isPack = val - this.finance.policyName = '' - this.finance.policySid = '' - this.finance.mainVehicleAmount = '' - this.finance.accessoriesAmount = '' - this.finance.trailerAmount = '' - this.finance.purchaseTax = '' - this.finance.premium = '' - this.finance.loanTotal = '' - - this.finance.accessoriesAmountCb = false - this.finance.trailerAmountCb = false - this.finance.purchaseTaxCb = false - this.finance.premiumCb = false - - this.finance.downPayRatio = '' - this.finance.downPayAmount = '' - this.finance.loanAmount = '' - this.finance.loanPeriod = '' - this.finance.bondRatio = '' - this.finance.bondAmount = '' - this.finance.factoryDiscount = '' - this.finance.policyYearRatio = '' - this.finance.loanPayMoney = '' - this.finance.loanInterest = '' - this.finance.discountCar = '' - this.finance.otherPolicyState = false - - this.finance.otherPolicyName = '' - this.finance.otherPolicySid = '' - this.finance.otherPolicyAmount = '' - this.finance.otherPolicyPeriod = '' - - this.finance.otherPolicyMonthlyRepay = '' - this.finance.otherPolicyInterest = '' - this.finance.otherPolicyYearRatio = '' - - this.finance.loanDownPay = '' - this.finance.downPayAmountsRatio = '' - this.finance.loanAmountTotal = '' - this.finance.period = '' - this.finance.monthlyRepay = '' - this.finance.interest = '' - this.finance.returnTime = '' - - this.finance.downPayAmounts = '' - this.finance.bondAmounts = '' - this.finance.depositPremium = '' - this.finance.depositSettle = '' - this.finance.serviceAmount = '' - this.finance.proxyAccidentPremium = '' - this.finance.registerAmount = '' - this.finance.operationAmount = '' - this.finance.vehOtherPrice = '' - this.finance.otherAmount = '' - this.finance.otherAmountRemark = '' - this.finance.dealWay = '' - this.finance.dealWayKey = '' - this.finance.proxyPremium = '' - this.finance.proxyPurchasetax = '' - this.finance.proxyTotal = '' - this.finance.offsetPremium = '' - this.finance.offsetPurchasetax = '' - this.finance.offsetTotal = '' - this.finance.receivableTotal = '' - this.finance.realTotal = '' - this.finance.vehTotalPrice = '' - this.finance.nominalPrice = '' + this.finance = { + accessoriesAmount: '', + accessoriesAmountCb: false, + bondAmount: '', + bondAmounts: '', + bondRatio: '', + dealWay: '', + dealWayKey: '', + depositPremium: '', + depositSettle: '', + discountCar: '', + downPayAmount: '', + downPayAmounts: '', + downPayAmountsRatio: '', + downPayRatio: '', + factoryDiscount: '', + factoryDiscountUse: '', + factoryDiscountUseKey: '', + interest: '', + isPack: val, + isShowMore: false, + loanAmount: '', + loanAmountTotal: '', + loanDownPay: '', + loanInterest: '', + loanPayMoney: '', + loanPeriod: '', + loanTotal: '', + mainVehicleAmount: '', + monthlyRepay: '', + nominalPrice: '', + offsetPremium: '', + offsetPurchasetax: '', + offsetTotal: '', + operationAmount: '', + otherAmount: '', + otherAmountRemark: '', + otherPolicyAmount: '', + otherPolicyInterest: '', + otherPolicyMonthlyRepay: '', + otherPolicyName: '', + otherPolicyPeriod: '', + otherPolicySid: '', + otherPolicyState: false, + otherPolicyYearRatio: '', + period: '', + policyName: '', + policySid: '', + policyYearRatio: '', + premium: '', + premiumCb: false, + proxyAccidentPremium: '', + proxyPremium: '', + proxyPurchasetax: '', + proxyTotal: '', + purchaseTax: '', + purchaseTaxCb: false, + realTotal: '', + receivableTotal: '', + registerAmount: '', + returnTime: '', + salesOrderSid: '', + serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', + trailerAmount: '', + trailerAmountCb: false, + vehOtherPrice: '', + vehTotalPrice: '' + } console.log(this.orgPath, window.sessionStorage.getItem('userSid'), this.finance.isPack, 88888) selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { if (resp.success) { @@ -455,6 +525,14 @@ export default { this.finance.loanPeriod = choose[0].period // 从金融产品政策中-- 获取贷款保证金比例 this.finance.bondRatio = choose[0].bondRatio + // 从金融产品政策中-- 获取保险保证金 + this.finance.depositPremium = choose[0].depositPremium + // 从金融产品政策中-- 获取落户保证金 + this.finance.depositSettle = choose[0].depositSettle + // 从金融产品政策中-- 获取名义(留购)价 + this.finance.nominalPrice = choose[0].nominalPrice + // 从金融产品政策中-- 获取代收意外险 + this.finance.proxyAccidentPremium = choose[0].vehAccidentAmount selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => { if (res.success) { this.other_list = res.data @@ -523,6 +601,17 @@ export default { this.finance.loanAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) - parseInt(this.arguments(this.finance.downPayAmount))) // 主方案 -- 计算贷款保证金 this.finance.bondAmount = Math.round(parseFloat(this.arguments(this.finance.bondRatio)) * parseInt(this.arguments(this.finance.loanAmount)) / 100) + // 应收明细 -- 根据金融产品政策获取的服务费类型计算服务费 + if (this.finance.serviceChargeTypeKey === '01') { + // 融资项目总额 * 融资项目总额比例(金融产品政策中服务费) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + } else if (this.finance.serviceChargeTypeKey === '02') { + // 等于金融产品政策中服务费 + this.finance.serviceAmount = this.finance.serviceChargeTypeValue + } else if (this.finance.serviceChargeTypeKey === '03') { + // 贷款金额 * 贷款金额比例(金融产品政策中服务费) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + } } if (this.finance.premiumCb && this.finance.dealWayKey === '02') { this.finance.offsetPremium = this.finance.premium @@ -542,6 +631,10 @@ export default { this.finance.downPayRatio = (parseInt(this.arguments(this.finance.downPayAmount)) / parseInt(this.arguments(this.finance.loanTotal)) * 100).toPrecision(2) // 重新计算产品贷款金额 this.finance.loanAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) - parseInt(this.arguments(this.finance.downPayAmount))) + if (this.finance.serviceChargeTypeKey === '03') { + // 贷款金额 * 贷款金额比例(金融产品政策中服务费) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + } // 主方案 -- 贷款保证金 this.finance.bondAmount = Math.round(parseFloat(this.arguments(this.finance.bondRatio)) * parseInt(this.arguments(this.finance.loanAmount)) / 100) } @@ -664,80 +757,74 @@ export default { }, handleColse() { this.finance = { - saleOrderSid: '', - type: '', - isPack: '', - policyName: '', - policySid: '', - mainVehicleAmount: '', accessoriesAmount: '', - trailerAmount: '', - purchaseTax: '', - premium: '', - loanTotal: '', - accessoriesAmountCb: false, - trailerAmountCb: false, - purchaseTaxCb: false, - premiumCb: false, - - downPayRatio: '', - downPayAmount: '', - loanAmount: '', - loanPeriod: '', - bondRatio: '', bondAmount: '', + bondAmounts: '', + bondRatio: '', + dealWay: '', + dealWayKey: '', + depositPremium: '', + depositSettle: '', + discountCar: '', + downPayAmount: '', + downPayAmounts: '', + downPayAmountsRatio: '', + downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', factoryDiscountUseKey: '', - policyYearRatio: '', - loanPayMoney: '', + interest: '', + isPack: '', + isShowMore: false, + loanAmount: '', + loanAmountTotal: '', + loanDownPay: '', loanInterest: '', - discountCar: '', - otherPolicyState: false, - - otherPolicyName: '', - otherPolicySid: '', + loanPayMoney: '', + loanPeriod: '', + loanTotal: '', + mainVehicleAmount: '', + monthlyRepay: '', + nominalPrice: '', + offsetPremium: '', + offsetPurchasetax: '', + offsetTotal: '', + operationAmount: '', + otherAmount: '', + otherAmountRemark: '', otherPolicyAmount: '', - otherPolicyPeriod: '', - - otherPolicyMonthlyRepay: '', otherPolicyInterest: '', + otherPolicyMonthlyRepay: '', + otherPolicyName: '', + otherPolicyPeriod: '', + otherPolicySid: '', + otherPolicyState: false, otherPolicyYearRatio: '', - - loanDownPay: '', - downPayAmountsRatio: '', - loanAmountTotal: '', period: '', - monthlyRepay: '', - interest: '', - returnTime: '', - - downPayAmounts: '', - bondAmounts: '', - depositPremium: '', - depositSettle: '', - serviceAmount: '', + policyName: '', + policySid: '', + policyYearRatio: '', + premium: '', + premiumCb: false, proxyAccidentPremium: '', - registerAmount: '', - operationAmount: '', - vehOtherPrice: '', - otherAmount: '', - otherAmountRemark: '', - dealWay: '', - dealWayKey: '', proxyPremium: '', proxyPurchasetax: '', proxyTotal: '', - offsetPremium: '', - offsetPurchasetax: '', - offsetTotal: '', - receivableTotal: '', + purchaseTax: '', + purchaseTaxCb: false, realTotal: '', - vehTotalPrice: '', - nominalPrice: '', - - isShowMore: false + receivableTotal: '', + registerAmount: '', + returnTime: '', + salesOrderSid: '', + serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', + trailerAmount: '', + trailerAmountCb: false, + vehOtherPrice: '', + vehTotalPrice: '' } this.orgPath = '' this.$emit('doback') diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue index 24b00f9d66..8b6a5398d3 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue @@ -334,12 +334,14 @@ export default { dealWayKey: '', depositPremium: '', depositSettle: '', + discountCar: '', downPayAmount: '', downPayAmounts: '', downPayAmountsRatio: '', downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', + factoryDiscountUseKey: '', interest: '', isPack: '', isShowMore: false, @@ -376,14 +378,17 @@ export default { proxyAccidentPremium: '', proxyPremium: '', proxyPurchasetax: '', + proxyTotal: '', purchaseTax: '', purchaseTaxCb: false, realTotal: '', receivableTotal: '', registerAmount: '', returnTime: '', + salesOrderSid: '', serviceAmount: '', - saleOrderSid: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', trailerAmount: '', trailerAmountCb: false, vehOtherPrice: '', @@ -410,77 +415,78 @@ export default { backData(value) { this.viewState = 1 value = JSON.parse(JSON.stringify(value)) - this.formobj.type = value.type - this.formobj.isPack = value.isPack - this.formobj.policyName = value.policyName - this.formobj.policySid = value.policySid - this.formobj.mainVehicleAmount = value.mainVehicleAmount - this.formobj.accessoriesAmount = value.accessoriesAmount - this.formobj.trailerAmount = value.trailerAmount - this.formobj.purchaseTax = value.purchaseTax - this.formobj.premium = value.premium - this.formobj.loanTotal = value.loanTotal - - this.formobj.accessoriesAmountCb = value.accessoriesAmountCb - this.formobj.trailerAmountCb = value.trailerAmountCb - this.formobj.purchaseTaxCb = value.purchaseTaxCb - this.formobj.premiumCb = value.premiumCb - - this.formobj.downPayRatio = value.downPayRatio - this.formobj.downPayAmount = value.downPayAmount - this.formobj.loanAmount = value.loanAmount - this.formobj.loanPeriod = value.loanPeriod - this.formobj.bondRatio = value.bondRatio - this.formobj.bondAmount = value.bondAmount - this.formobj.factoryDiscount = value.factoryDiscount - this.formobj.factoryDiscountUse = value.factoryDiscountUse - this.formobj.factoryDiscountUseKey = value.factoryDiscountUseKey - this.formobj.policyYearRatio = value.policyYearRatio - this.formobj.loanPayMoney = value.loanPayMoney - this.formobj.loanInterest = value.loanInterest - this.formobj.discountCar = value.discountCar - this.formobj.otherPolicyState = value.otherPolicyState - - this.formobj.otherPolicyName = value.otherPolicyName - this.formobj.otherPolicySid = value.otherPolicySid - this.formobj.otherPolicyAmount = value.otherPolicyAmount - this.formobj.otherPolicyPeriod = value.otherPolicyPeriod - - this.formobj.otherPolicyMonthlyRepay = value.otherPolicyMonthlyRepay - this.formobj.otherPolicyInterest = value.otherPolicyInterest - this.formobj.otherPolicyYearRatio = value.otherPolicyYearRatio - - this.formobj.loanDownPay = value.loanDownPay - this.formobj.downPayAmountsRatio = value.downPayAmountsRatio - this.formobj.loanAmountTotal = value.loanAmountTotal - this.formobj.period = value.period - this.formobj.monthlyRepay = value.monthlyRepay - this.formobj.interest = value.interest - this.formobj.returnTime = value.returnTime - - this.formobj.downPayAmounts = value.downPayAmounts - this.formobj.bondAmounts = value.bondAmounts - this.formobj.depositPremium = value.depositPremium - this.formobj.depositSettle = value.depositSettle - this.formobj.serviceAmount = value.serviceAmount - this.formobj.proxyAccidentPremium = value.proxyAccidentPremium - this.formobj.registerAmount = value.registerAmount - this.formobj.operationAmount = value.operationAmount - this.formobj.vehOtherPrice = value.vehOtherPrice - this.formobj.otherAmount = value.otherAmount - this.formobj.otherAmountRemark = value.otherAmountRemark - this.formobj.dealWay = value.dealWay - this.formobj.dealWayKey = value.dealWayKey - this.formobj.proxyPremium = value.proxyPremium - this.formobj.proxyPurchasetax = value.proxyPurchasetax - this.formobj.proxyTotal = value.proxyTotal - this.formobj.offsetPremium = value.offsetPremium - this.formobj.offsetPurchasetax = value.offsetPurchasetax - this.formobj.offsetTotal = value.offsetTotal - this.formobj.receivableTotal = value.receivableTotal - this.formobj.realTotal = value.realTotal - this.formobj.vehTotalPrice = value.vehTotalPrice - this.formobj.nominalPrice = value.nominalPrice + this.formobj = value + // this.formobj.type = value.type + // this.formobj.isPack = value.isPack + // this.formobj.policyName = value.policyName + // this.formobj.policySid = value.policySid + // this.formobj.mainVehicleAmount = value.mainVehicleAmount + // this.formobj.accessoriesAmount = value.accessoriesAmount + // this.formobj.trailerAmount = value.trailerAmount + // this.formobj.purchaseTax = value.purchaseTax + // this.formobj.premium = value.premium + // this.formobj.loanTotal = value.loanTotal + // + // this.formobj.accessoriesAmountCb = value.accessoriesAmountCb + // this.formobj.trailerAmountCb = value.trailerAmountCb + // this.formobj.purchaseTaxCb = value.purchaseTaxCb + // this.formobj.premiumCb = value.premiumCb + // + // this.formobj.downPayRatio = value.downPayRatio + // this.formobj.downPayAmount = value.downPayAmount + // this.formobj.loanAmount = value.loanAmount + // this.formobj.loanPeriod = value.loanPeriod + // this.formobj.bondRatio = value.bondRatio + // this.formobj.bondAmount = value.bondAmount + // this.formobj.factoryDiscount = value.factoryDiscount + // this.formobj.factoryDiscountUse = value.factoryDiscountUse + // this.formobj.factoryDiscountUseKey = value.factoryDiscountUseKey + // this.formobj.policyYearRatio = value.policyYearRatio + // this.formobj.loanPayMoney = value.loanPayMoney + // this.formobj.loanInterest = value.loanInterest + // this.formobj.discountCar = value.discountCar + // this.formobj.otherPolicyState = value.otherPolicyState + // + // this.formobj.otherPolicyName = value.otherPolicyName + // this.formobj.otherPolicySid = value.otherPolicySid + // this.formobj.otherPolicyAmount = value.otherPolicyAmount + // this.formobj.otherPolicyPeriod = value.otherPolicyPeriod + // + // this.formobj.otherPolicyMonthlyRepay = value.otherPolicyMonthlyRepay + // this.formobj.otherPolicyInterest = value.otherPolicyInterest + // this.formobj.otherPolicyYearRatio = value.otherPolicyYearRatio + // + // this.formobj.loanDownPay = value.loanDownPay + // this.formobj.downPayAmountsRatio = value.downPayAmountsRatio + // this.formobj.loanAmountTotal = value.loanAmountTotal + // this.formobj.period = value.period + // this.formobj.monthlyRepay = value.monthlyRepay + // this.formobj.interest = value.interest + // this.formobj.returnTime = value.returnTime + // + // this.formobj.downPayAmounts = value.downPayAmounts + // this.formobj.bondAmounts = value.bondAmounts + // this.formobj.depositPremium = value.depositPremium + // this.formobj.depositSettle = value.depositSettle + // this.formobj.serviceAmount = value.serviceAmount + // this.formobj.proxyAccidentPremium = value.proxyAccidentPremium + // this.formobj.registerAmount = value.registerAmount + // this.formobj.operationAmount = value.operationAmount + // this.formobj.vehOtherPrice = value.vehOtherPrice + // this.formobj.otherAmount = value.otherAmount + // this.formobj.otherAmountRemark = value.otherAmountRemark + // this.formobj.dealWay = value.dealWay + // this.formobj.dealWayKey = value.dealWayKey + // this.formobj.proxyPremium = value.proxyPremium + // this.formobj.proxyPurchasetax = value.proxyPurchasetax + // this.formobj.proxyTotal = value.proxyTotal + // this.formobj.offsetPremium = value.offsetPremium + // this.formobj.offsetPurchasetax = value.offsetPurchasetax + // this.formobj.offsetTotal = value.offsetTotal + // this.formobj.receivableTotal = value.receivableTotal + // this.formobj.realTotal = value.realTotal + // this.formobj.vehTotalPrice = value.vehTotalPrice + // this.formobj.nominalPrice = value.nominalPrice }, handleSave() { saveJinRong(this.formobj).then((resp) => { diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeInfo.vue index 96ff20bb02..1779ca2fda 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeInfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeInfo.vue @@ -319,80 +319,74 @@ export default { tableKey: 0, index: 0, formobj: { - saleOrderSid: '', - type: '', - isPack: '', - policyName: '', - policySid: '', - mainVehicleAmount: '', accessoriesAmount: '', - trailerAmount: '', - purchaseTax: '', - premium: '', - loanTotal: '', - accessoriesAmountCb: false, - trailerAmountCb: false, - purchaseTaxCb: false, - premiumCb: false, - - downPayRatio: '', - downPayAmount: '', - loanAmount: '', - loanPeriod: '', - bondRatio: '', bondAmount: '', + bondAmounts: '', + bondRatio: '', + dealWay: '', + dealWayKey: '', + depositPremium: '', + depositSettle: '', + discountCar: '', + downPayAmount: '', + downPayAmounts: '', + downPayAmountsRatio: '', + downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', factoryDiscountUseKey: '', - policyYearRatio: '', - loanPayMoney: '', + interest: '', + isPack: '', + isShowMore: false, + loanAmount: '', + loanAmountTotal: '', + loanDownPay: '', loanInterest: '', - discountCar: '', - otherPolicyState: false, - - otherPolicyName: '', - otherPolicySid: '', + loanPayMoney: '', + loanPeriod: '', + loanTotal: '', + mainVehicleAmount: '', + monthlyRepay: '', + nominalPrice: '', + offsetPremium: '', + offsetPurchasetax: '', + offsetTotal: '', + operationAmount: '', + otherAmount: '', + otherAmountRemark: '', otherPolicyAmount: '', - otherPolicyPeriod: '', - - otherPolicyMonthlyRepay: '', otherPolicyInterest: '', + otherPolicyMonthlyRepay: '', + otherPolicyName: '', + otherPolicyPeriod: '', + otherPolicySid: '', + otherPolicyState: false, otherPolicyYearRatio: '', - - loanDownPay: '', - downPayAmountsRatio: '', - loanAmountTotal: '', period: '', - monthlyRepay: '', - interest: '', - returnTime: '', - - downPayAmounts: '', - bondAmounts: '', - depositPremium: '', - depositSettle: '', - serviceAmount: '', + policyName: '', + policySid: '', + policyYearRatio: '', + premium: '', + premiumCb: false, proxyAccidentPremium: '', - registerAmount: '', - operationAmount: '', - vehOtherPrice: '', - otherAmount: '', - otherAmountRemark: '', - dealWay: '', - dealWayKey: '', proxyPremium: '', proxyPurchasetax: '', proxyTotal: '', - offsetPremium: '', - offsetPurchasetax: '', - offsetTotal: '', - receivableTotal: '', + purchaseTax: '', + purchaseTaxCb: false, realTotal: '', - vehTotalPrice: '', - nominalPrice: '', - - isShowMore: false + receivableTotal: '', + registerAmount: '', + returnTime: '', + salesOrderSid: '', + serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', + trailerAmount: '', + trailerAmountCb: false, + vehOtherPrice: '', + vehTotalPrice: '' } } }, @@ -403,80 +397,74 @@ export default { }, handleReturn() { this.formobj = { - saleOrderSid: '', - type: '', - isPack: '', - policyName: '', - policySid: '', - mainVehicleAmount: '', accessoriesAmount: '', - trailerAmount: '', - purchaseTax: '', - premium: '', - loanTotal: '', - accessoriesAmountCb: false, - trailerAmountCb: false, - purchaseTaxCb: false, - premiumCb: false, - - downPayRatio: '', - downPayAmount: '', - loanAmount: '', - loanPeriod: '', - bondRatio: '', bondAmount: '', + bondAmounts: '', + bondRatio: '', + dealWay: '', + dealWayKey: '', + depositPremium: '', + depositSettle: '', + discountCar: '', + downPayAmount: '', + downPayAmounts: '', + downPayAmountsRatio: '', + downPayRatio: '', factoryDiscount: '', factoryDiscountUse: '', factoryDiscountUseKey: '', - policyYearRatio: '', - loanPayMoney: '', + interest: '', + isPack: '', + isShowMore: false, + loanAmount: '', + loanAmountTotal: '', + loanDownPay: '', loanInterest: '', - discountCar: '', - otherPolicyState: false, - - otherPolicyName: '', - otherPolicySid: '', + loanPayMoney: '', + loanPeriod: '', + loanTotal: '', + mainVehicleAmount: '', + monthlyRepay: '', + nominalPrice: '', + offsetPremium: '', + offsetPurchasetax: '', + offsetTotal: '', + operationAmount: '', + otherAmount: '', + otherAmountRemark: '', otherPolicyAmount: '', - otherPolicyPeriod: '', - - otherPolicyMonthlyRepay: '', otherPolicyInterest: '', + otherPolicyMonthlyRepay: '', + otherPolicyName: '', + otherPolicyPeriod: '', + otherPolicySid: '', + otherPolicyState: false, otherPolicyYearRatio: '', - - loanDownPay: '', - downPayAmountsRatio: '', - loanAmountTotal: '', period: '', - monthlyRepay: '', - interest: '', - returnTime: '', - - downPayAmounts: '', - bondAmounts: '', - depositPremium: '', - depositSettle: '', - serviceAmount: '', + policyName: '', + policySid: '', + policyYearRatio: '', + premium: '', + premiumCb: false, proxyAccidentPremium: '', - registerAmount: '', - operationAmount: '', - vehOtherPrice: '', - otherAmount: '', - otherAmountRemark: '', - dealWay: '', - dealWayKey: '', proxyPremium: '', proxyPurchasetax: '', proxyTotal: '', - offsetPremium: '', - offsetPurchasetax: '', - offsetTotal: '', - receivableTotal: '', + purchaseTax: '', + purchaseTaxCb: false, realTotal: '', - vehTotalPrice: '', - nominalPrice: '', - - isShowMore: false + receivableTotal: '', + registerAmount: '', + returnTime: '', + salesOrderSid: '', + serviceAmount: '', + serviceChargeTypeKey: '', + serviceChargeTypeValue: '', + trailerAmount: '', + trailerAmountCb: false, + vehOtherPrice: '', + vehTotalPrice: '' } this.$emit('doback') }