Commit 67511430 authored by 郑娟's avatar 郑娟

business_type_new字段去掉展示;首付款是否计入保证金计算 字段增加和逻辑

parent e19f5757
......@@ -639,6 +639,13 @@ export default {
'saveInfo.down_payment_ratio_n' (newVal, oldVal) {
this.saveInfo.down_payment = (this.saveInfo.equip_price * newVal.replace('%', '') / 100).toFixed(2)
},
'saveInfo.down_payment_deposit' (newVal, oldVal) {
if (newVal === 'Y') {
this.saveInfo.deposit = ((this.saveInfo.equip_price - this.saveInfo.down_payment) * this.saveInfo.deposit_ratio_n.replace('%', '') / 100).toFixed(2)
} else if (newVal === 'N') {
this.saveInfo.deposit = (this.saveInfo.equip_price * this.saveInfo.deposit_ratio_n.replace('%', '') / 100).toFixed(2)
}
},
// 'saveInfo.down_payment' (newVal, oldVal) {
// this.saveInfo.down_payment_ratio_n = `${(newVal / this.saveInfo.equip_price * 100).toFixed(2)}%`
// },
......
......@@ -245,7 +245,7 @@ export default {
'REPURCHASE_FLAG': 'PRJ501A.REPURCHASE_FLAG',
'RENT_INVOICE_TYPE': 'PRJ501A.RENT_INVOICE_TYPE',
'FACTORY_GUARANTEES_TYPE': 'FACTORY_GUARANTEES_TYPE',
'BUSINESS_TYPE_NEW': 'BUSINESS_TYPE_NEW',
// 'BUSINESS_TYPE_NEW': 'BUSINESS_TYPE_NEW',
'LEASE_THINGS_TYPE': 'LEASE_THINGS_TYPE',
'YES_NO': 'YES_NO',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment