|
|
@ -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') |
|
|
|
} |
|
|
|