|
|
@ -83,7 +83,26 @@ |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.notDuePrice }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div class="title">资方结清费用</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty">备注</div> |
|
|
|
<el-form-item> |
|
|
|
<el-input class="addinputInfo addinputw" v-model="formobj.remarks" clearable placeholder=""/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div class="title" style="display: flex;flex-direction: row;justify-content: space-between;align-items: center"> |
|
|
|
<div>资方结清费用</div> |
|
|
|
<div style="display: flex;flex-direction: row;justify-content: space-between;align-items: center"> |
|
|
|
<div>贷款保证金:<el-input style="width: 60%" @keyup.native="UpNumber" v-model="formobj.bankCostVo.loanDeposit" clearable placeholder="" /></div> |
|
|
|
<div>是否抵顶: |
|
|
|
<el-radio-group v-model="formobj.bankCostVo.topping"> |
|
|
|
<el-radio label="1">是</el-radio> |
|
|
|
<el-radio label="0">否</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">资方逾期月还</div> |
|
|
@ -123,10 +142,22 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">资方结清金额</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ calculateBankSettlePrice }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">资方收款账号</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.bankCostVo.bankAccount" placeholder="请选择" clearable filterable @change="bankAccountChange"> |
|
|
|
<el-option v-for="item in bank_list" :key="item.bankAccount" :label="item.accountName" :value="item.bankAccount"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">资方收款账户</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.bankCostVo.accountName }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
@ -252,6 +283,7 @@ import req from '@/api/buyback/buyback' |
|
|
|
import uploadImg from '@/components/uploadFile/uploadImg' |
|
|
|
import vehiclecollectionrecords from '../overduevehicle/vehiclecollectionrecords' |
|
|
|
import financialschemeInfo from '@/components/publicPage/financialschemeInfo' |
|
|
|
import { fetchListByBankSid } from '@/api/Common/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'BuyBackAdd', |
|
|
@ -263,7 +295,15 @@ export default { |
|
|
|
computed: { |
|
|
|
// 资方结清费用模块--资方结清金额计算 |
|
|
|
calculateBankSettlePrice() { |
|
|
|
return parseFloat(this.formobj.bankCostVo.price === '' ? 0 : this.formobj.bankCostVo.price) + parseFloat(this.formobj.bankCostVo.currentNotDuePrice === '' ? 0 : this.formobj.bankCostVo.currentNotDuePrice) + parseFloat(this.formobj.bankCostVo.notDuePrice === '' ? 0 : this.formobj.bankCostVo.notDuePrice) + parseFloat(this.formobj.bankCostVo.bankInterest === '' ? 0 : this.formobj.bankCostVo.bankInterest) + parseFloat(this.formobj.bankCostVo.bankNominalPrice === '' ? 0 : this.formobj.bankCostVo.bankNominalPrice) + parseFloat(this.formobj.bankCostVo.bankContractLiquidated === '' ? 0 : this.formobj.bankCostVo.bankContractLiquidated) + parseFloat(this.formobj.bankCostVo.bankOtherReceivable === '' ? 0 : this.formobj.bankCostVo.bankOtherReceivable) || 0 |
|
|
|
let bankSettlePrice = '0' |
|
|
|
// 是否抵顶为是,资方结清金额 = 资方逾期月还 + 资方当期未到期月还 + 资方未到期金额 + 资方逾期利息 + 资方名义价 + 资方合同违约金 + 资方其他应收 - 贷款保证金 |
|
|
|
if (this.formobj.bankCostVo.topping !== '' && this.formobj.bankCostVo.topping === '1') { |
|
|
|
bankSettlePrice = Math.round((parseFloat(this.formobj.bankCostVo.price === '' ? 0 : this.formobj.bankCostVo.price) + parseFloat(this.formobj.bankCostVo.currentNotDuePrice === '' ? 0 : this.formobj.bankCostVo.currentNotDuePrice) + parseFloat(this.formobj.bankCostVo.notDuePrice === '' ? 0 : this.formobj.bankCostVo.notDuePrice) + parseFloat(this.formobj.bankCostVo.bankInterest === '' ? 0 : this.formobj.bankCostVo.bankInterest) + parseFloat(this.formobj.bankCostVo.bankNominalPrice === '' ? 0 : this.formobj.bankCostVo.bankNominalPrice) + parseFloat(this.formobj.bankCostVo.bankContractLiquidated === '' ? 0 : this.formobj.bankCostVo.bankContractLiquidated) + parseFloat(this.formobj.bankCostVo.bankOtherReceivable === '' ? 0 : this.formobj.bankCostVo.bankOtherReceivable) - parseFloat(this.formobj.bankCostVo.loanDeposit !== '' ? this.formobj.bankCostVo.loanDeposit : '0')) * 100) / 100 |
|
|
|
} else { |
|
|
|
// 是否抵顶为否,资方结清金额 = 资方逾期月还 + 资方当期未到期月还 + 资方未到期金额 + 资方逾期利息 + 资方名义价 + 资方合同违约金 + 资方其他应收 |
|
|
|
bankSettlePrice = Math.round((parseFloat(this.formobj.bankCostVo.price === '' ? 0 : this.formobj.bankCostVo.price) + parseFloat(this.formobj.bankCostVo.currentNotDuePrice === '' ? 0 : this.formobj.bankCostVo.currentNotDuePrice) + parseFloat(this.formobj.bankCostVo.notDuePrice === '' ? 0 : this.formobj.bankCostVo.notDuePrice) + parseFloat(this.formobj.bankCostVo.bankInterest === '' ? 0 : this.formobj.bankCostVo.bankInterest) + parseFloat(this.formobj.bankCostVo.bankNominalPrice === '' ? 0 : this.formobj.bankCostVo.bankNominalPrice) + parseFloat(this.formobj.bankCostVo.bankContractLiquidated === '' ? 0 : this.formobj.bankCostVo.bankContractLiquidated) + parseFloat(this.formobj.bankCostVo.bankOtherReceivable === '' ? 0 : this.formobj.bankCostVo.bankOtherReceivable)) * 100) / 100 |
|
|
|
} |
|
|
|
return bankSettlePrice |
|
|
|
}, |
|
|
|
// 公司结清费用模块--公司正常结清合计计算 |
|
|
|
calculateSettleAll() { |
|
|
@ -279,6 +319,7 @@ export default { |
|
|
|
viewTitle: '', |
|
|
|
viewState: 1, |
|
|
|
submitdisabled: false, |
|
|
|
bank_list: [], |
|
|
|
formobj: { |
|
|
|
amount: '', |
|
|
|
applyDate: '', |
|
|
@ -294,9 +335,14 @@ export default { |
|
|
|
currentNotDuePrice: '', |
|
|
|
notDuePrice: '', |
|
|
|
otherReceivableRemarks: '', |
|
|
|
price: '' |
|
|
|
price: '', |
|
|
|
topping: '', |
|
|
|
loanDeposit: '', |
|
|
|
bankAccount: '', |
|
|
|
accountName: '' |
|
|
|
}, |
|
|
|
bankName: '', |
|
|
|
bankSid: '', |
|
|
|
bankReceivingAccount: '', |
|
|
|
busVinSid: '', |
|
|
|
buybacksReason: '', |
|
|
@ -337,7 +383,8 @@ export default { |
|
|
|
taskId: '', |
|
|
|
userSid: '', |
|
|
|
vehMark: '', |
|
|
|
vinNo: '' |
|
|
|
vinNo: '', |
|
|
|
remarks: '' |
|
|
|
}, |
|
|
|
rules: {} |
|
|
|
} |
|
|
@ -362,6 +409,11 @@ export default { |
|
|
|
req.repurchaseInit({ busVinSid: row.busVinSid, orgPath: window.sessionStorage.getItem('defaultOrgPath'), prepareDate: '', userSid: window.sessionStorage.getItem('userSid') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
|
fetchListByBankSid({ bankSid: this.formobj.bankSid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.bank_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -373,6 +425,11 @@ export default { |
|
|
|
req.fetchBySid(row.sid).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
|
fetchListByBankSid({ bankSid: this.formobj.bankSid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.bank_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -400,6 +457,14 @@ export default { |
|
|
|
resetState() { |
|
|
|
this.viewState = 1 |
|
|
|
}, |
|
|
|
bankAccountChange(value) { |
|
|
|
const choose = this.bank_list.filter((item) => item.bankAccount === value) |
|
|
|
if (choose !== null && choose.length > 0) { |
|
|
|
this.formobj.bankCostVo.accountName = choose[0].accountName |
|
|
|
} else { |
|
|
|
this.formobj.bankCostVo.accountName = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 修改预计结清日期时需重新获取计算部分参数值 |
|
|
|
changeDate(val) { |
|
|
|
req.repurchaseInit({ busVinSid: this.formobj.busVinSid, orgPath: this.formobj.orgPath, prepareDate: val, userSid: this.formobj.userSid }).then((res) => { |
|
|
@ -487,9 +552,14 @@ export default { |
|
|
|
currentNotDuePrice: '', |
|
|
|
notDuePrice: '', |
|
|
|
otherReceivableRemarks: '', |
|
|
|
price: '' |
|
|
|
price: '', |
|
|
|
topping: '', |
|
|
|
loanDeposit: '', |
|
|
|
bankAccount: '', |
|
|
|
accountName: '' |
|
|
|
}, |
|
|
|
bankName: '', |
|
|
|
bankSid: '', |
|
|
|
bankReceivingAccount: '', |
|
|
|
busVinSid: '', |
|
|
|
buybacksReason: '', |
|
|
@ -530,7 +600,8 @@ export default { |
|
|
|
taskId: '', |
|
|
|
userSid: '', |
|
|
|
vehMark: '', |
|
|
|
vinNo: '' |
|
|
|
vinNo: '', |
|
|
|
remarks: '' |
|
|
|
} |
|
|
|
this.submitdisabled = false |
|
|
|
this.$emit('doback') |
|
|
@ -550,4 +621,16 @@ export default { |
|
|
|
margin-left: 150px !important; |
|
|
|
width: calc(100% - 145px); |
|
|
|
} |
|
|
|
/* 覆盖element-ui的单选按钮样式 */ |
|
|
|
/deep/ .el-radio__input.is-checked .el-radio__inner { |
|
|
|
border-color: #409EFF; /* 未选中状态下的边框颜色 */ |
|
|
|
background-color: #409EFF; /* 选中后的背景色 */ |
|
|
|
} |
|
|
|
/* 如果需要改变选中后对勾的颜色 */ |
|
|
|
/deep/ .el-radio__input.is-checked .el-radio__inner:after { |
|
|
|
background-color: #000000; /* 对勾的颜色 */ |
|
|
|
} |
|
|
|
/deep/ .el-radio__input.is-checked+.el-radio__label { |
|
|
|
color: #000000; /* 选中后的字体颜色 */ |
|
|
|
} |
|
|
|
</style> |
|
|
|