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 1f42097647..94d3d0ee19 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue @@ -22,7 +22,7 @@
产品政策
- + @@ -311,6 +311,12 @@ import { calculate } from '@/api/salesManagement/orderManagement' export default { name: 'JinRongFangAn', + props: { + modelSid: { + type: String, + default: '' + } + }, data() { return { viewTitle: '', @@ -422,7 +428,7 @@ export default { this.finance = JSON.parse(JSON.stringify(value)) this.isShowMore = this.finance.isShowMore 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: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { if (resp.success) { this.policy_list = resp.data } @@ -508,7 +514,7 @@ export default { vehOtherPrice: '', vehTotalPrice: '' } - selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => { + selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { if (resp.success) { this.policy_list = resp.data } @@ -625,10 +631,10 @@ export default { // 应收明细 -- 根据金融产品政策获取的服务费类型计算服务费 if (this.finance.serviceChargeTypeKey === '01') { // 融资项目总额 * 融资项目总额比例(金融产品政策中服务费) - this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * (parseFloat(this.arguments(this.finance.serviceChargeTypeValue)) / 100)) } else if (this.finance.serviceChargeTypeKey === '02') { // 贷款金额 * 贷款金额比例(金融产品政策中服务费) - this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue))) + this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * (parseFloat(this.arguments(this.finance.serviceChargeTypeValue)) / 100)) } else if (this.finance.serviceChargeTypeKey === '03') { // 等于金融产品政策中服务费 this.finance.serviceAmount = this.finance.serviceChargeTypeValue 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 7b8ef6ad0e..ddb46bebd7 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue @@ -308,7 +308,7 @@ - +