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 ad0d682fb1..4b1493f1c6 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue @@ -332,6 +332,8 @@ export default { viewTitle: '', submitdisabled: false, isShowMore: false, + orgSidPath: '', + source: '', // 进入该页面的组件来源(01代表客户洽谈--意向车型 02代表出库申请--金融报价单 03代表销售订单申请 04代表金融方案变更申请) dealWay_list: [], policy_list: [], other_list: [], @@ -434,19 +436,30 @@ export default { } return val }, - showAdd(value) { + showAdd(value, orgSidPath, source) { this.init() + this.source = source + this.orgSidPath = orgSidPath 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, modelSid: this.modelSid }).then((resp) => { - if (resp.success) { - this.policy_list = resp.data - } - }) + // source等于04时需要传参产品政策sid(金融方案变更时资方、担保类型不能更改) + if (this.source == '04') { + selectList({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid, policySid: this.finance.policySid }).then((resp) => { + if (resp.success) { + this.policy_list = resp.data + } + }) + } else { + selectList({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).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, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => { + selectListByOther({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => { if (res.success) { this.other_list = res.data } @@ -455,82 +468,159 @@ export default { }, // 是否打包 isPackChange(val) { - 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: '', - otherDiscount: '', - 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: '' + // source等于04时需要传参产品政策sid(金融方案变更时资方、担保类型不能更改) + if (this.source == '04') { + selectList({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), isPack: val, modelSid: this.modelSid, policySid: this.finance.policySid }).then((resp) => { + if (resp.success) { + this.policy_list = resp.data + } + }) + } else { + selectList({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), isPack: val, modelSid: this.modelSid }).then((resp) => { + if (resp.success) { + this.policy_list = resp.data + } + }) } - 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 - } - }) + this.finance.accessoriesAmount = '' + this.finance.accessoriesAmountCb = false + this.finance.bondAmount = '' + this.finance.bondAmounts = '' + this.finance.bondRatio = '' + this.finance.dealWay = '' + this.finance.dealWayKey = '' + this.finance.depositPremium = '' + this.finance.depositSettle = '' + this.finance.discountCar = '' + this.finance.downPayAmount = '' + this.finance.downPayAmounts = '' + this.finance.downPayAmountsRatio = '' + this.finance.downPayRatio = '' + this.finance.factoryDiscount = '' + this.finance.factoryDiscountUse = '' + this.finance.factoryDiscountUseKey = '' + this.finance.interest = '' + this.finance.isPack = val + this.finance.isShowMore = false + this.finance.loanAmount = '' + this.finance.loanAmountTotal = '' + this.finance.loanDownPay = '' + this.finance.loanInterest = '' + this.finance.loanPayMoney = '' + this.finance.loanPeriod = '' + this.finance.loanTotal = '' + this.finance.mainVehicleAmount = '' + this.finance.monthlyRepay = '' + this.finance.nominalPrice = '' + this.finance.offsetPremium = '' + this.finance.offsetPurchasetax = '' + this.finance.offsetTotal = '' + this.finance.operationAmount = '' + this.finance.otherAmount = '' + this.finance.otherAmountRemark = '' + this.finance.otherDiscount = '' + this.finance.otherPolicyAmount = '' + this.finance.otherPolicyInterest = '' + this.finance.otherPolicyMonthlyRepay = '' + this.finance.otherPolicyName = '' + this.finance.otherPolicyPeriod = '' + this.finance.otherPolicySid = '' + this.finance.otherPolicyState = false + this.finance.otherPolicyYearRatio = '' + this.finance.period = '' + this.finance.policyName = '' + this.finance.policyYearRatio = '' + this.finance.premium = '' + this.finance.premiumCb = false + this.finance.proxyAccidentPremium = '' + this.finance.proxyPremium = '' + this.finance.proxyPurchasetax = '' + this.finance.proxyTotal = '' + this.finance.purchaseTax = '' + this.finance.purchaseTaxCb = false + this.finance.realTotal = '' + this.finance.receivableTotal = '' + this.finance.registerAmount = '' + this.finance.returnTime = '' + this.finance.salesOrderSid = '' + this.finance.serviceAmount = '' + this.finance.serviceChargeTypeKey = '' + this.finance.serviceChargeTypeValue = '' + this.finance.trailerAmount = '' + this.finance.trailerAmountCb = false + this.finance.vehOtherPrice = '' + this.finance.vehTotalPrice = '' + // 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: '', + // otherDiscount: '', + // 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: '' + // } }, // 资方产品政策 changePolicy(value) { @@ -572,7 +662,7 @@ export default { this.finance.otherPolicyPeriod = '' this.finance.otherPolicyYearRatio = '' } - selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => { + selectListByOther({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => { if (res.success) { this.other_list = res.data } @@ -889,6 +979,7 @@ export default { vehOtherPrice: '', vehTotalPrice: '' } + this.source = '' 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 69cf6d3d43..a1215a6459 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue @@ -425,7 +425,7 @@ export default { }, financialComputing() { this.viewState = 2 - this.$refs['divCount'].showAdd(this.formobj, this.orgSidPath) + this.$refs['divCount'].showAdd(this.formobj, this.orgSidPath, this.source) }, backData(value) { this.viewState = 1 diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/dingdanInfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/dingdanInfo.vue index 766b97978c..f7819ededd 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/dingdanInfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/dingdanInfo.vue @@ -390,7 +390,7 @@ export default { }, handleLook() { this.viewState = 2 - this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo) + this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo, '03') }, // 合计 getSummaries(param) { 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 7c1ba3a371..bc96630779 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 @@ -321,6 +321,12 @@ import { calculate } from '@/api/salesManagement/orderManagement' export default { name: 'JinRongFangAn', + props: { + modelSid: { + type: String, + default: '' + } + }, data() { return { viewTitle: '', @@ -329,6 +335,7 @@ export default { policy_list: [], other_list: [], isShowMore: false, + source: '', // 进入该页面的组件来源(01代表客户洽谈--意向车型 02代表出库申请--金融报价单 03代表销售订单申请 04代表金融方案变更申请) finance: { accessoriesAmount: '', accessoriesAmountCb: false, @@ -401,7 +408,6 @@ export default { vehTotalPrice: '' }, orgPath: '', - modelSid: '', rules: {} } }, @@ -429,18 +435,27 @@ export default { } return val }, - showAdd(value, orgSidPath, modelSid) { + showAdd(value, orgSidPath, source) { this.init() - this.modelSid = modelSid + this.source = source this.finance = JSON.parse(JSON.stringify(value)) this.isShowMore = this.finance.isShowMore this.orgPath = orgSidPath if (this.finance.isPack !== '' && this.finance.isPack !== null) { - selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { - if (resp.success) { - this.policy_list = resp.data - } - }) + // source等于04时需要传参产品政策sid(金融方案变更时资方、担保类型不能更改) + if (this.source == '04') { + selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid, policySid: this.finance.policySid }).then((resp) => { + if (resp.success) { + this.policy_list = resp.data + } + }) + } else { + selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { + if (resp.success) { + this.policy_list = resp.data + } + }) + } } if (this.finance.policySid !== '' && this.finance.isPack !== null) { selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => { @@ -523,12 +538,19 @@ export default { 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, modelSid: this.modelSid }).then((resp) => { - if (resp.success) { - this.policy_list = resp.data - } - }) + if (this.source == '04') { + selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid, policySid: this.finance.policySid }).then((resp) => { + if (resp.success) { + this.policy_list = resp.data + } + }) + } else { + selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => { + if (resp.success) { + this.policy_list = resp.data + } + }) + } }, // 资方产品政策 changePolicy(value) { @@ -885,7 +907,6 @@ export default { vehTotalPrice: '' } this.orgPath = '' - this.modelSid = '' this.isShowMore = false 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 e0da35a15f..be9b0643a0 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 @@ -5,7 +5,7 @@