|
|
@ -150,7 +150,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="担保额度/贷款金额(元):" prop="guaranteeAmount"> |
|
|
|
<el-form-item label="担保额度/贷款金额(元):" prop="guaranteeAmount"> |
|
|
|
<div class="cashChinese"> |
|
|
|
<div class="cashChinese"> |
|
|
|
<el-input oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" :disabled="!wanderEdit||status=='newRecord'" v-model="guaranteeForm.guaranteeAmount" placeholder="请输入担保额度"></el-input> |
|
|
|
<el-input oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" :disabled="!wanderEdit||status=='newRecord'" v-model="guaranteeForm.guaranteeAmount" placeholder="请输入担保额度"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(guaranteeForm.guaranteeAmount)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
@ -184,13 +186,13 @@ |
|
|
|
<el-form label-width="160px" ref="comp" :disabled="disabledAll" :model="comp" :rules="compRule"> |
|
|
|
<el-form label-width="160px" ref="comp" :disabled="disabledAll" :model="comp" :rules="compRule"> |
|
|
|
<el-col :span="12" > |
|
|
|
<el-col :span="12" > |
|
|
|
<el-form-item label="代偿金额(元):"> |
|
|
|
<el-form-item label="代偿金额(元):"> |
|
|
|
<el-input oninput="value=value.replace(/[^\d.]/g,'')" v-model="comp.compensationAmount" placeholder="请输入"></el-input> |
|
|
|
<el-input oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" v-model="comp.compensationAmount" placeholder="请输入"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(comp.compensationAmount)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="代偿时间 :"> |
|
|
|
<el-form-item label="代偿时间 :"> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
|
|
|
|
|
|
|
|
|
v-model="comp.compensatoryTime" |
|
|
|
v-model="comp.compensatoryTime" |
|
|
|
@change="compensatoryTimeChange" |
|
|
|
|
|
|
|
type="date" |
|
|
|
type="date" |
|
|
|
class="wd100" |
|
|
|
class="wd100" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
@ -199,10 +201,11 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="12"> |
|
|
|
<!-- 代偿金额 - 代偿日后 还款的金额 - 每一次的利息总额,每一笔还款,都在这里减去 --> |
|
|
|
<!-- 转为后端计算 --> |
|
|
|
<!-- TODO 此处的代偿未计算完善,后端缺字段 --> |
|
|
|
|
|
|
|
<el-form-item label="代偿余额(元):"> |
|
|
|
<el-form-item label="代偿余额(元):"> |
|
|
|
<el-input disabled v-model="computedCompensatoryBalance" placeholder="请输入"></el-input> |
|
|
|
<el-input disabled v-model="comp.compensatoryBalance" placeholder="录入后自动计算"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(comp.compensatoryBalance)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
@ -224,7 +227,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属清收组:" style="width:35%" prop="collectionGroupId"> |
|
|
|
<el-form-item label="所属清收组:" style="width:35%" prop="collectionGroupId"> |
|
|
|
<div class="df"> |
|
|
|
<div class="df"> |
|
|
|
<el-select :disabled="!entering&&status!=='newLoans'||status=='newRecord'" v-model="liquidate.collectionGroupId" placeholder="请选择"> |
|
|
|
<el-select :disabled="!entering&&status!=='newLoans'||status=='newRecord'" v-model="liquidate.collectionGroupId" @change="modifyReimbursement" placeholder="请选择"> |
|
|
|
<el-option v-for="(item, index) in organizationArrs" :key="index" :label="item.groupName" :value="item.id"></el-option> |
|
|
|
<el-option v-for="(item, index) in organizationArrs" :key="index" :label="item.groupName" :value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<el-button @click="organization=true" type="text" class="mgl10">自定义</el-button> |
|
|
|
<el-button @click="organization=true" type="text" class="mgl10">自定义</el-button> |
|
|
@ -237,14 +240,16 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-form-item label="经营情况:"> |
|
|
|
<el-form-item label="经营情况:"> |
|
|
|
<!-- 未完成 --> |
|
|
|
<!-- 未完成 :disabled="!wanderEdit" |
|
|
|
<el-select :disabled="!wanderEdit" v-model="liquidate.operation" placeholder="请选择" prop="operation"> |
|
|
|
:disabled="!wanderEdit" |
|
|
|
|
|
|
|
:disabled="!wanderEdit" --> |
|
|
|
|
|
|
|
<el-select v-model="liquidate.operation" placeholder="请选择" prop="operation"> |
|
|
|
<el-option v-for="(item, index) in circumstance" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
<el-option v-for="(item, index) in circumstance" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="诉讼情况:" > |
|
|
|
<el-form-item label="诉讼情况:" > |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
|
:disabled="!wanderEdit" |
|
|
|
|
|
|
|
type="textarea" |
|
|
|
type="textarea" |
|
|
|
:rows="2" |
|
|
|
:rows="2" |
|
|
|
placeholder="请输入1000字符以内" |
|
|
|
placeholder="请输入1000字符以内" |
|
|
@ -253,7 +258,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="抵押情况:"> |
|
|
|
<el-form-item label="抵押情况:"> |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
|
:disabled="!wanderEdit" |
|
|
|
|
|
|
|
type="textarea" |
|
|
|
type="textarea" |
|
|
|
:rows="2" |
|
|
|
:rows="2" |
|
|
|
placeholder="请输入1000字符以内" |
|
|
|
placeholder="请输入1000字符以内" |
|
|
@ -460,7 +465,8 @@ |
|
|
|
<el-table-column prop="actualRepaymentDate" label="实际还款日" align="center"></el-table-column> |
|
|
|
<el-table-column prop="actualRepaymentDate" label="实际还款日" align="center"></el-table-column> |
|
|
|
<el-table-column prop="guaranteeAmount" label="担保额度(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="guaranteeAmount" label="担保额度(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="currentRepayment" label="本次还款(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="currentRepayment" label="本次还款(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="interest" label="本次利息(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="interest" label="本次利息 |
|
|
|
|
|
|
|
(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="otherExpenses" label="其他费用(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="otherExpenses" label="其他费用(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="totalRepayment" label="还款总额(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="totalRepayment" label="还款总额(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="deductionAmount" label="减免金额(元)" align="center"></el-table-column> |
|
|
|
<el-table-column prop="deductionAmount" label="减免金额(元)" align="center"></el-table-column> |
|
|
@ -468,7 +474,15 @@ |
|
|
|
<el-table-column prop="repaymentStatus" label="状态" align="center"></el-table-column> |
|
|
|
<el-table-column prop="repaymentStatus" label="状态" align="center"></el-table-column> |
|
|
|
<el-table-column prop="submitterName" label="提交人" align="center"></el-table-column> |
|
|
|
<el-table-column prop="submitterName" label="提交人" align="center"></el-table-column> |
|
|
|
<el-table-column prop="createTime" label="提交时间" align="center"></el-table-column> |
|
|
|
<el-table-column prop="createTime" label="提交时间" align="center"></el-table-column> |
|
|
|
<el-table-column prop="repaymentNotes" label="还款备注" align="center"></el-table-column> |
|
|
|
<el-table-column label="还款备注" align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-tooltip style="max-width:300px" class="item" effect="dark" :content="scope.row.repaymentNotes" placement="top"> |
|
|
|
|
|
|
|
<div style="max-height:45px;over-flow:auto;"> |
|
|
|
|
|
|
|
{{scope.row.repaymentNotes}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="200" align="center"> |
|
|
|
<el-table-column label="操作" width="200" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="$router.currentRoute.meta.btn.includes('保后查看')" type="text" @click="goRepaymentDetail(scope.row,'查看')">查看</el-button> |
|
|
|
<el-button v-if="$router.currentRoute.meta.btn.includes('保后查看')" type="text" @click="goRepaymentDetail(scope.row,'查看')">查看</el-button> |
|
|
@ -488,7 +502,7 @@ |
|
|
|
<el-dialog title="导入" :visible.sync="upLoadPop" width="24%" center :close-on-click-modal="false"> |
|
|
|
<el-dialog title="导入" :visible.sync="upLoadPop" width="24%" center :close-on-click-modal="false"> |
|
|
|
<div class="flex-start-around"> |
|
|
|
<div class="flex-start-around"> |
|
|
|
<el-button type="primary" round |
|
|
|
<el-button type="primary" round |
|
|
|
><a href="https://www.feifanhitech.com/enclosureFile/insuranceTemplate.xlsx" style="color:#fff">模板下载<i class="el-icon-download el-icon--right"></i></a |
|
|
|
><a href="https://www.feifanhitech.com/template/insuranceTemplate.xlsx" style="color:#fff">模板下载<i class="el-icon-download el-icon--right"></i></a |
|
|
|
></el-button> |
|
|
|
></el-button> |
|
|
|
<el-upload |
|
|
|
<el-upload |
|
|
|
accept=".xls,.xlsx" |
|
|
|
accept=".xls,.xlsx" |
|
|
@ -551,10 +565,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { mapState } from 'vuex'; |
|
|
|
import { mapState } from 'vuex'; |
|
|
|
import { allBankName, insuranceList, insuranceDetail, repaymentEntry, repaymentList, repaymentStatistics, excelHis, delRepayment, repaymentDetail, excelInsurance, updateInsurance, updateRepayment, designateEmpTrees, getAllClient ,saveInsurance,companyInfoBySth,liquidateList,liquidateEdit,liquidateDel,deleteInsurance, editInsurance, compensationSituation,importInsurance , exportFailure} from '../../../utils/api'; |
|
|
|
import { allBankName, insuranceList, insuranceDetail, repaymentEntry, repaymentList, repaymentStatistics, excelHis, delRepayment, repaymentDetail, excelInsurance, updateInsurance, updateRepayment, designateEmpTrees, getAllClient ,saveInsurance,companyInfoBySth,liquidateList,liquidateEdit,liquidateDel,deleteInsurance, editInsurance, compensationSituation,importInsurance , exportFailure, modifyReimbursement} from '../../../utils/api'; |
|
|
|
import core from '../../../utils/core';// fMoney3 |
|
|
|
import core from '../../../utils/core' |
|
|
|
// 使用轻量级的、仅限数字的函数实现 |
|
|
|
// 使用轻量级的、仅限数字的函数实现 import { create, all } from 'mathjs/number' |
|
|
|
// import { create, all } from 'mathjs/number' |
|
|
|
|
|
|
|
// const math = create(all) |
|
|
|
// const math = create(all) |
|
|
|
let math = require('mathjs'); |
|
|
|
let math = require('mathjs'); |
|
|
|
export default { |
|
|
|
export default { |
|
|
@ -656,12 +669,12 @@ export default { |
|
|
|
value1:'', |
|
|
|
value1:'', |
|
|
|
|
|
|
|
|
|
|
|
area:[// 区域 |
|
|
|
area:[// 区域 |
|
|
|
{name:'萨尔图区',id:0}, |
|
|
|
{name:'萨尔图区',id:'0'}, |
|
|
|
{name:'高新区',id:1}, |
|
|
|
{name:'高新区',id:'1'}, |
|
|
|
{name:'龙凤区',id:2}, |
|
|
|
{name:'龙凤区',id:'2'}, |
|
|
|
{name:'让胡同路区',id:3}, |
|
|
|
{name:'让胡同路区',id:'3'}, |
|
|
|
{name:'大同区',id:4}, |
|
|
|
{name:'大同区',id:'4'}, |
|
|
|
{name:'肇县区',id:5}, |
|
|
|
{name:'肇县区',id:'5'}, |
|
|
|
], |
|
|
|
], |
|
|
|
circumstance:[// 经营情况 |
|
|
|
circumstance:[// 经营情况 |
|
|
|
{name:'停产',value:'停产'}, |
|
|
|
{name:'停产',value:'停产'}, |
|
|
@ -740,11 +753,15 @@ export default { |
|
|
|
btns:{}, |
|
|
|
btns:{}, |
|
|
|
ids:[], |
|
|
|
ids:[], |
|
|
|
interest:'',// 代偿后的利息 |
|
|
|
interest:'',// 代偿后的利息 |
|
|
|
|
|
|
|
selectObj:{ |
|
|
|
|
|
|
|
personLiable:'', |
|
|
|
|
|
|
|
personLiableId:'' |
|
|
|
|
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
computed:{ |
|
|
|
computedCompensatoryBalance(){// 代偿余额计算 |
|
|
|
computedCompensatoryBalance(){// 代偿余额计算 |
|
|
|
/* TODO 未完成状态判断 */ |
|
|
|
/* 转为后端计算 */ |
|
|
|
// if(this.status){} // 如果是处于录入状态才减去count |
|
|
|
// if(this.status){} // 如果是处于录入状态才减去count |
|
|
|
// console.log(this.repaymentForm,'this.repaymentForm') |
|
|
|
// console.log(this.repaymentForm,'this.repaymentForm') |
|
|
|
// if(!this.repaymentForm.currentRepayment)this.repaymentForm.currentRepayment = 0 |
|
|
|
// if(!this.repaymentForm.currentRepayment)this.repaymentForm.currentRepayment = 0 |
|
|
@ -825,13 +842,16 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
fromOne(){// 判断来自保后 |
|
|
|
|
|
|
|
return this.$store.state.loan.fromOne |
|
|
|
|
|
|
|
}, |
|
|
|
// 计算本次还款的清偿方式总额 |
|
|
|
// 计算本次还款的清偿方式总额 |
|
|
|
reimbursement(){ |
|
|
|
reimbursement(){ |
|
|
|
return this.repaymentForm.repaymentCash||0+this.repaymentForm.repaymentAssetsAmount||0+this.repaymentForm.repaymentOtherAmount||0 |
|
|
|
return this.repaymentForm.repaymentCash||0+this.repaymentForm.repaymentAssetsAmount||0+this.repaymentForm.repaymentOtherAmount||0 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
"$store.state.loan.loanStatus":function(val){ |
|
|
|
"$store.state.loan.loanStatus":async function(val){ |
|
|
|
if(val!=2){ |
|
|
|
if(val!=2){ |
|
|
|
this.comp.compensatoryBalance = 0 |
|
|
|
this.comp.compensatoryBalance = 0 |
|
|
|
this.cash = 0 |
|
|
|
this.cash = 0 |
|
|
@ -846,14 +866,22 @@ export default { |
|
|
|
this.$forceUpdate(); |
|
|
|
this.$forceUpdate(); |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
this.loanbackStatus = '' |
|
|
|
this.loanbackStatus = '' |
|
|
|
|
|
|
|
this.repaymentForm = { |
|
|
|
|
|
|
|
currentRepayment:0, |
|
|
|
|
|
|
|
interest: 0, |
|
|
|
|
|
|
|
otherExpenses:0, |
|
|
|
|
|
|
|
overdueDays: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
if(val == 2){ |
|
|
|
} |
|
|
|
console.log(this.souce,'判断是否系统流转--0') |
|
|
|
if(val == 2){// 进入录入页面 |
|
|
|
/* TODO 未完成 */ |
|
|
|
|
|
|
|
// if(this.source === 0&&this.status==="oldLoans"){// 判断系统流转是否进行过编辑 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
console.log(this.RepaymentId,this.id,'RepaymentId,进入2页面') |
|
|
|
console.log(this.RepaymentId,this.id,'RepaymentId,进入2页面') |
|
|
|
|
|
|
|
// 进入详情,默认调一次取得代偿时间后的金额接口 |
|
|
|
|
|
|
|
if(this.comp.compensationAmount&&this.comp.compensatoryTime){ |
|
|
|
|
|
|
|
this.compensatoryTimeChange(this.comp.compensatoryTime) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 此处存疑,未知为何如此赋值 |
|
|
|
|
|
|
|
console.log(this.hisId,'hisid,loanid,repayid',this.$store.state.loan.id,this.$store.state.loan.RepaymentId) |
|
|
|
this.id = this.$store.state.loan.id || this.$store.state.loan.RepaymentId |
|
|
|
this.id = this.$store.state.loan.id || this.$store.state.loan.RepaymentId |
|
|
|
this.RepaymentId = this.$store.state.loan.RepaymentId |
|
|
|
this.RepaymentId = this.$store.state.loan.RepaymentId |
|
|
|
this.loanbackStatus = this.$store.state.loan.loanbackStatus |
|
|
|
this.loanbackStatus = this.$store.state.loan.loanbackStatus |
|
|
@ -864,12 +892,29 @@ export default { |
|
|
|
otherExpenses: '', |
|
|
|
otherExpenses: '', |
|
|
|
overdueDays: 0 |
|
|
|
overdueDays: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(this.loanbackStatus,'什么状态') |
|
|
|
// 处于编辑状态,额外添加一个编辑中的状态判断 |
|
|
|
// 处于编辑状态,额外添加一个编辑中的状态判断 |
|
|
|
if(this.status!=='newLoans'||this.discernEdit) this.getDetail() |
|
|
|
if(this.status!=='newLoans'||this.discernEdit) this.getDetail() |
|
|
|
if(this.loanbackStatus == '查看' || this.loanbackStatus == '编辑'){ |
|
|
|
if(this.loanbackStatus == '查看' || this.loanbackStatus == '编辑'){ |
|
|
|
console.log(this.loanbackStatus,'什么状态') |
|
|
|
await this.getRepaymentDetail() |
|
|
|
this.getRepaymentDetail() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(this.souce,'判断是否系统流转--0') |
|
|
|
|
|
|
|
/* TODO 未测试该判断 */ |
|
|
|
|
|
|
|
if(this.source === 0&&this.status==="oldLoans"&&!this.guaranteeForm.loanStartTime){// 判断系统流转,且是否进行过编辑,判断贷款时间以及当前的编辑状态 |
|
|
|
|
|
|
|
return this.$confirm('业务数据需补充完善,请先在编辑处完善必填项后再进行还款录入。','提示', { |
|
|
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
|
|
showCancelButton:false, |
|
|
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
|
|
}).then(()=>{ |
|
|
|
|
|
|
|
// 手动切换状态进入到编辑业务状态(问题:进入的判断需要从新走一遍) |
|
|
|
|
|
|
|
// this.edit('',this.row) |
|
|
|
|
|
|
|
this.loanStatus = 1 // 切页面到保后页面 |
|
|
|
|
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
|
|
this.loanStatus = 1 // 切页面到保后页面 |
|
|
|
|
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})} |
|
|
|
} |
|
|
|
} |
|
|
|
if(val == 3){ |
|
|
|
if(val == 3){ |
|
|
|
this.hisidId = this.$store.state.loan.hisidId |
|
|
|
this.hisidId = this.$store.state.loan.hisidId |
|
|
@ -881,6 +926,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
principal:function(val){// 处理组织架构选人是否清空 |
|
|
|
principal:function(val){// 处理组织架构选人是否清空 |
|
|
|
|
|
|
|
this.$forceUpdate(); |
|
|
|
this.designateEmpTrees() |
|
|
|
this.designateEmpTrees() |
|
|
|
this.clearNodeArr = true |
|
|
|
this.clearNodeArr = true |
|
|
|
this.$nextTick(()=>{ |
|
|
|
this.$nextTick(()=>{ |
|
|
@ -895,11 +941,25 @@ export default { |
|
|
|
this.starEndDate = [] |
|
|
|
this.starEndDate = [] |
|
|
|
this.guaranteeForm = {} |
|
|
|
this.guaranteeForm = {} |
|
|
|
this.mainbank = '' |
|
|
|
this.mainbank = '' |
|
|
|
|
|
|
|
this.elsebank = '' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
organization(val){ |
|
|
|
|
|
|
|
if(val){// 掉接口 |
|
|
|
|
|
|
|
this.liquidateList() |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.organizationArrs = [] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created(){ |
|
|
|
async created(){ |
|
|
|
console.log(math.format(math.chain(math.bignumber(0.1)).add(math.bignumber(0.2)).done()),'计算数据') |
|
|
|
let a = [1,2,3,4],b = [1,2,3,4,5,6] |
|
|
|
|
|
|
|
let c = a.concat(b).filter((cur, i, arr) => { |
|
|
|
|
|
|
|
return arr.indexOf(cur) === arr.lastIndexOf(cur); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
console.log(c,'比不同',a,b) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(this.loanbackStatus,'this.loanbackStatus') |
|
|
|
console.log(this.loanbackStatus,'this.loanbackStatus') |
|
|
|
this.liquidateList() |
|
|
|
this.liquidateList() |
|
|
|
if(this.bankSelect.length===0){// 请求银行数据 |
|
|
|
if(this.bankSelect.length===0){// 请求银行数据 |
|
|
@ -931,8 +991,21 @@ export default { |
|
|
|
console.log(this.status,'处于什么状态') |
|
|
|
console.log(this.status,'处于什么状态') |
|
|
|
if(this.status!=='newLoans'||this.discernEdit) this.getDetail() |
|
|
|
if(this.status!=='newLoans'||this.discernEdit) this.getDetail() |
|
|
|
if(this.loanbackStatus == '查看' || this.loanbackStatus == '编辑'){ |
|
|
|
if(this.loanbackStatus == '查看' || this.loanbackStatus == '编辑'){ |
|
|
|
this.getRepaymentDetail() |
|
|
|
await this.getRepaymentDetail() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(this.source === 0&&this.status==="oldLoans"&&!this.guaranteeForm.loanStartTime){// 判断系统流转,且是否进行过编辑,判断贷款时间以及当前的编辑状态 |
|
|
|
|
|
|
|
return this.$confirm('业务数据需补充完善,请先在编辑处完善必填项后再进行还款录入。','提示', { |
|
|
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
|
|
}).then(()=>{ |
|
|
|
|
|
|
|
// 手动切换状态进入到编辑业务状态(问题:进入的判断需要从新走一遍) |
|
|
|
|
|
|
|
// this.edit('',this.row) |
|
|
|
|
|
|
|
this.loanStatus = 1 // 切页面到保后页面 |
|
|
|
|
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
|
|
this.loanStatus = 1 // 切页面到保后页面 |
|
|
|
|
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(this.loanStatus == 3){ |
|
|
|
if(this.loanStatus == 3){ |
|
|
@ -991,6 +1064,7 @@ export default { |
|
|
|
// if(this.insMultipleSelection.length != ''){ |
|
|
|
// if(this.insMultipleSelection.length != ''){ |
|
|
|
let exportIds = this.insMultipleSelection.map(e => e.id).join() |
|
|
|
let exportIds = this.insMultipleSelection.map(e => e.id).join() |
|
|
|
let url = `${excelInsurance}?ids=${exportIds}` |
|
|
|
let url = `${excelInsurance}?ids=${exportIds}` |
|
|
|
|
|
|
|
console.log(url,'导出的URL') |
|
|
|
window.location.href = url |
|
|
|
window.location.href = url |
|
|
|
// }else{ |
|
|
|
// }else{ |
|
|
|
// this.$message.error('请先选择担保列表数据 !'); |
|
|
|
// this.$message.error('请先选择担保列表数据 !'); |
|
|
@ -1001,13 +1075,14 @@ export default { |
|
|
|
edit(row,val){ |
|
|
|
edit(row,val){ |
|
|
|
this.$store.commit('disabledAll',false)// 取消禁用全部, |
|
|
|
this.$store.commit('disabledAll',false)// 取消禁用全部, |
|
|
|
if(!row){// 没有row传值,进入新建业务界面--录入无关 |
|
|
|
if(!row){// 没有row传值,进入新建业务界面--录入无关 |
|
|
|
console.log('进入新建业务') |
|
|
|
console.log('进入新建业务',val) |
|
|
|
this.loanStatus = 2 |
|
|
|
this.loanStatus = 2 |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '' });// 判断按钮状态 |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '' });// 判断按钮状态 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 }); |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 }); |
|
|
|
this.$store.commit('setNewOrOld','newLoans') |
|
|
|
this.$store.commit('setNewOrOld','newLoans') |
|
|
|
this.$store.commit('entering',false) |
|
|
|
this.$store.commit('entering',false) |
|
|
|
this.$store.commit('wanderEdit',true) |
|
|
|
this.$store.commit('wanderEdit',true) |
|
|
|
|
|
|
|
if(val) this.$store.commit("source",val.source);// 存来源,用于判断是否编辑过系统流转的业务 |
|
|
|
if(val){// --编辑业务阶段 |
|
|
|
if(val){// --编辑业务阶段 |
|
|
|
this.$store.commit('setNewOrOld','oldLoansEdit')// 进入业务编辑 |
|
|
|
this.$store.commit('setNewOrOld','oldLoansEdit')// 进入业务编辑 |
|
|
|
// 编辑手动添加的业务 |
|
|
|
// 编辑手动添加的业务 |
|
|
@ -1024,32 +1099,37 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
this.loanbackStatus = '录入' // 新增判断,用于后退 |
|
|
|
this.loanbackStatus = '录入' // 新增判断,用于后退 |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '录入' }); |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '录入' }); |
|
|
|
|
|
|
|
this.$store.commit('fromOne',false)// 从保后进入还款录入,用于后退判断 |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
console.log('进入录入界面') |
|
|
|
console.log('进入录入界面') |
|
|
|
// 进入还款录入,添加个额外判断进入编辑界面 |
|
|
|
// 进入还款录入,添加个额外判断进入编辑界面 |
|
|
|
this.$store.commit('wanderEdit',true) |
|
|
|
this.$store.commit('wanderEdit',true) |
|
|
|
this.$store.commit('entering',false) // 不可编辑-业务编辑区域 |
|
|
|
this.$store.commit('entering',false) // 不可编辑-业务编辑区域 |
|
|
|
this.$store.commit('discernEdit',true)// 区分是否可编辑业务 |
|
|
|
this.$store.commit('discernEdit',true)// 区分是否可编辑业务 |
|
|
|
this.$store.commit('setNewOrOld','oldLoans')// 区分进入还款或者新建 |
|
|
|
this.$store.commit('setNewOrOld','oldLoans')// 进入还款录入标识 |
|
|
|
this.loanStatus = 2 |
|
|
|
this.loanStatus = 2 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 });// 切换页面状态 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 });// 切换页面状态 |
|
|
|
this.id = row.id |
|
|
|
this.id = row.id |
|
|
|
this.$store.commit("idData", { id: row.id });// 存业务id用于刷新复现 |
|
|
|
this.$store.commit("idData", { id: row.id });// 存业务id用于刷新复现 |
|
|
|
this.$store.commit("source",this.row.source);// 存来源,用于判断是否编辑过系统流转的业务 |
|
|
|
this.$store.commit("source",row.source);// 存来源,用于判断是否编辑过系统流转的业务 |
|
|
|
this.RepaymentId = '' |
|
|
|
this.RepaymentId = '' |
|
|
|
this.$store.commit("RepaymentIdData", { RepaymentId: '' });// 查还款记录详情用 |
|
|
|
this.$store.commit("RepaymentIdData", { RepaymentId: '' });// 查还款记录详情用 |
|
|
|
this.loanbackStatus = '录入' |
|
|
|
this.loanbackStatus = '录入' |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '录入' });// 判断按钮状态 |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '录入' });// 判断按钮状态 |
|
|
|
|
|
|
|
this.$store.commit('fromOne',true)// 从保后进入还款录入,用于后退判断 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
//记录 |
|
|
|
//新增保后记录 |
|
|
|
history(row){ |
|
|
|
history(row){ |
|
|
|
this.loanStatus = 3 |
|
|
|
this.loanStatus = 3 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 3 }); |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 3 }); |
|
|
|
this.hisId = row.id |
|
|
|
this.hisId = row.id |
|
|
|
this.$store.commit("hisidIdData", { hisidId: row.id, guaranteeAmount: row.guaranteeAmount }); |
|
|
|
this.$store.commit("hisidIdData", { hisidId: row.id, guaranteeAmount: row.guaranteeAmount }); |
|
|
|
|
|
|
|
this.id = row.id |
|
|
|
|
|
|
|
this.$store.commit("idData", { id: row.id });// 这是loan.id用于记录业务id的 */ |
|
|
|
this.hispaymentStatus = row.paymentStatus |
|
|
|
this.hispaymentStatus = row.paymentStatus |
|
|
|
this.$store.commit("hispaymentStatusData", { hispaymentStatus: row.paymentStatus }); |
|
|
|
this.$store.commit("hispaymentStatusData", { hispaymentStatus: row.paymentStatus }); |
|
|
|
|
|
|
|
this.$store.commit('fromOne',false)// 从保后进入还款录入,用于后退判断 |
|
|
|
}, |
|
|
|
}, |
|
|
|
//办理结项 |
|
|
|
//办理结项 |
|
|
|
conclusion(row){ |
|
|
|
conclusion(row){ |
|
|
@ -1071,7 +1151,7 @@ export default { |
|
|
|
async getDetail(){ |
|
|
|
async getDetail(){ |
|
|
|
this.guaranteeLoading = true |
|
|
|
this.guaranteeLoading = true |
|
|
|
try { |
|
|
|
try { |
|
|
|
let res = await insuranceDetail({ |
|
|
|
let res = await insuranceDetail({// 调业务详情 |
|
|
|
id: this.id |
|
|
|
id: this.id |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.guaranteeLoading = false |
|
|
|
this.guaranteeLoading = false |
|
|
@ -1102,13 +1182,14 @@ export default { |
|
|
|
// 清收 |
|
|
|
// 清收 |
|
|
|
this.liquidate = { |
|
|
|
this.liquidate = { |
|
|
|
personLiable:reimbursement.personLiable, |
|
|
|
personLiable:reimbursement.personLiable, |
|
|
|
|
|
|
|
personLiableId:reimbursement.personLiableId, |
|
|
|
collectionGroupId:reimbursement.collectionGroupId, |
|
|
|
collectionGroupId:reimbursement.collectionGroupId, |
|
|
|
area:+reimbursement.area, |
|
|
|
area:reimbursement.area, |
|
|
|
operation:reimbursement.operation, |
|
|
|
operation:reimbursement.operation, |
|
|
|
litigation:reimbursement.litigation, |
|
|
|
litigation:reimbursement.litigation, |
|
|
|
mortgage:reimbursement.mortgage, |
|
|
|
mortgage:reimbursement.mortgage, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.qszId = reimbursement.id |
|
|
|
} catch (error) { |
|
|
|
} catch (error) { |
|
|
|
this.guaranteeLoading = false |
|
|
|
this.guaranteeLoading = false |
|
|
|
} |
|
|
|
} |
|
|
@ -1196,6 +1277,7 @@ export default { |
|
|
|
if(that.RepaymentId == ''){// 新增录入 |
|
|
|
if(that.RepaymentId == ''){// 新增录入 |
|
|
|
console.log('新增录入') |
|
|
|
console.log('新增录入') |
|
|
|
that.repaymentForm.insuranceId = that.id |
|
|
|
that.repaymentForm.insuranceId = that.id |
|
|
|
|
|
|
|
that.$store.commit('hisId',that.id) |
|
|
|
console.log(that.id,'id') |
|
|
|
console.log(that.id,'id') |
|
|
|
that.repaymentForm.totalRepayment = that.totalRepayment |
|
|
|
that.repaymentForm.totalRepayment = that.totalRepayment |
|
|
|
that.repaymentForm.overdueDays = that.overdueDays |
|
|
|
that.repaymentForm.overdueDays = that.overdueDays |
|
|
@ -1237,7 +1319,16 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('正在执行录入') |
|
|
|
console.log('正在执行录入') |
|
|
|
|
|
|
|
if(this.repaymentForm.repaymentCash!==0&&!this.repaymentForm.repaymentCash&&this.repaymentForm.repaymentAssetsAmount!==0&&!this.repaymentForm.repaymentAssetsAmount&&this.repaymentForm.repaymentOtherAmount!==0&&!this.repaymentForm.repaymentOtherAmount){ |
|
|
|
|
|
|
|
return this.$message.error('至少输入一种清偿方式!') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(this.comp.compensationAmount||this.comp.compensatoryTime){// 判断代偿金额和时间 |
|
|
|
|
|
|
|
if(!(this.comp.compensationAmount&&this.comp.compensatoryTime)){ |
|
|
|
|
|
|
|
return this.$message.warning('若有代偿金额,请同时输入代偿金额和选择代偿时间!') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
Promise.all([form1,form3,form2]).then(()=>{ |
|
|
|
Promise.all([form1,form3,form2]).then(()=>{ |
|
|
|
|
|
|
|
|
|
|
|
if(!this.totalSame()){ |
|
|
|
if(!this.totalSame()){ |
|
|
|
return this.$confirm('清偿方式的金额之和与本次还款总额不符,可能会导致数据统计错误,是否继续?', '提示', { |
|
|
|
return this.$confirm('清偿方式的金额之和与本次还款总额不符,可能会导致数据统计错误,是否继续?', '提示', { |
|
|
|
type: 'warning' |
|
|
|
type: 'warning' |
|
|
@ -1258,9 +1349,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
//取消录入 |
|
|
|
//取消录入 |
|
|
|
cancel(){ |
|
|
|
cancel(){ |
|
|
|
|
|
|
|
// 判断处于哪个状态中,后退到对应页面 |
|
|
|
|
|
|
|
if(this.status=="newLoans"||this.status=="oldLoansEdit"||this.fromOne){ |
|
|
|
if(this.status=="newLoans"||this.status=="oldLoansEdit"){ |
|
|
|
|
|
|
|
this.loanStatus = 1 |
|
|
|
this.loanStatus = 1 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
@ -1293,6 +1383,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 还款记录列表 |
|
|
|
// 还款记录列表 |
|
|
|
async repaymentList(){ |
|
|
|
async repaymentList(){ |
|
|
|
|
|
|
|
console.log(this.hisidId,'当前传的id值') |
|
|
|
let res = await repaymentList({ |
|
|
|
let res = await repaymentList({ |
|
|
|
page: this.hisPage, |
|
|
|
page: this.hisPage, |
|
|
|
size: this.pageNumber, |
|
|
|
size: this.pageNumber, |
|
|
@ -1370,12 +1461,14 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 还款记录:查看/编辑 |
|
|
|
// 还款记录:查看/编辑 |
|
|
|
goRepaymentDetail(row,type){ |
|
|
|
goRepaymentDetail(row,type){ |
|
|
|
|
|
|
|
console.log(row,type,'点击查看业务,') |
|
|
|
this.loanStatus = 2 |
|
|
|
this.loanStatus = 2 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 }); |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 });// 跳查看 |
|
|
|
this.RepaymentId = row.id |
|
|
|
this.RepaymentId = row.id |
|
|
|
this.$store.commit("RepaymentIdData", { RepaymentId: row.id }); |
|
|
|
this.$store.commit("RepaymentIdData", { RepaymentId: row.id });// 业务ID |
|
|
|
this.id = row.insuranceId |
|
|
|
this.id = row.insuranceId |
|
|
|
this.$store.commit("idData", { id: row.insuranceId }); |
|
|
|
this.$store.commit("idData", { id: row.insuranceId });// 这是loan.id用于记录业务id的 */ |
|
|
|
|
|
|
|
console.log(this.id,'rowid',row,'新增还款记录错误') |
|
|
|
this.loanbackStatus = type |
|
|
|
this.loanbackStatus = type |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1393,7 +1486,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 取得录入页面数据详情 |
|
|
|
// 取得录入页面数据详情 |
|
|
|
async getRepaymentDetail(){ |
|
|
|
async getRepaymentDetail(){ |
|
|
|
console.log(this.RepaymentId,'调用详情接口') |
|
|
|
console.log(this.RepaymentId,'调用详情接口使用的id') |
|
|
|
let res = await repaymentDetail({ |
|
|
|
let res = await repaymentDetail({ |
|
|
|
id: this.RepaymentId |
|
|
|
id: this.RepaymentId |
|
|
|
}); |
|
|
|
}); |
|
|
@ -1448,12 +1541,16 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
principalNode(val){// 组织架构选择人员 |
|
|
|
principalNode(val){// 组织架构选择人员 |
|
|
|
this.$set(this.liquidate,'personLiable',val[0].name) |
|
|
|
this.selectObj = { |
|
|
|
this.liquidate.personLiableId = val[0].id |
|
|
|
personLiable:val[0].name, |
|
|
|
|
|
|
|
personLiableId:val[0].id |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
principalSeleted(){// 选择清收负责人 |
|
|
|
principalSeleted(){// 选择清收负责人 |
|
|
|
this.principal = false |
|
|
|
this.principal = false |
|
|
|
|
|
|
|
this.$set(this.liquidate,'personLiable',this.selectObj.personLiable) |
|
|
|
|
|
|
|
this.liquidate.personLiableId = this.selectObj.personLiableId |
|
|
|
|
|
|
|
this.modifyReimbursement() |
|
|
|
}, |
|
|
|
}, |
|
|
|
searchClientChange(val,state){// 实时搜索客户详细信息 |
|
|
|
searchClientChange(val,state){// 实时搜索客户详细信息 |
|
|
|
companyInfoBySth({name:val}).then(res=>{ |
|
|
|
companyInfoBySth({name:val}).then(res=>{ |
|
|
@ -1542,7 +1639,6 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
saveInsurance(){// 新增保后业务 或编辑业务 |
|
|
|
saveInsurance(){// 新增保后业务 或编辑业务 |
|
|
|
/* TODO 需要处理没有还款信息的编辑 */ |
|
|
|
|
|
|
|
let has = false |
|
|
|
let has = false |
|
|
|
// 担保信息 |
|
|
|
// 担保信息 |
|
|
|
const form1 = new Promise((resolve,reject)=>{ |
|
|
|
const form1 = new Promise((resolve,reject)=>{ |
|
|
@ -1575,6 +1671,7 @@ export default { |
|
|
|
// 如果处于编辑业务状态 或者是还款录入状态 |
|
|
|
// 如果处于编辑业务状态 或者是还款录入状态 |
|
|
|
if(this.discernEdit) obj.insuranceId = this.id |
|
|
|
if(this.discernEdit) obj.insuranceId = this.id |
|
|
|
Object.assign(obj,this.comp,this.liquidate) |
|
|
|
Object.assign(obj,this.comp,this.liquidate) |
|
|
|
|
|
|
|
this.guaranteeForm.paymentStatus = 1 |
|
|
|
let param = { |
|
|
|
let param = { |
|
|
|
alInsuranceList:this.guaranteeForm,// 担保信息 |
|
|
|
alInsuranceList:this.guaranteeForm,// 担保信息 |
|
|
|
alReimbursement:obj// 代偿清收相关 |
|
|
|
alReimbursement:obj// 代偿清收相关 |
|
|
@ -1588,6 +1685,7 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else{// 处于新增状态下 |
|
|
|
}else{// 处于新增状态下 |
|
|
|
// param.source = 1 |
|
|
|
// param.source = 1 |
|
|
|
|
|
|
|
|
|
|
|
saveInsurance(param).then(res=>{ |
|
|
|
saveInsurance(param).then(res=>{ |
|
|
|
// 新增业务,返回上一页 |
|
|
|
// 新增业务,返回上一页 |
|
|
|
if(this.status==='newLoans'){ |
|
|
|
if(this.status==='newLoans'){ |
|
|
@ -1635,7 +1733,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
deleteInsurance(row){// 删除保后业务--仅新建可删 |
|
|
|
deleteInsurance(row){// 删除保后业务--仅新建可删 |
|
|
|
|
|
|
|
|
|
|
|
this.$confirm('此操作无法还原,确定要删除该业务?', '提示', { |
|
|
|
this.$confirm('确认删除?删除后与该业务相关的保后信息将会一并删除且不可恢复', '提示', { |
|
|
|
type: 'error' |
|
|
|
type: 'error' |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
deleteInsurance(row.id).then(res=>{ |
|
|
|
deleteInsurance(row.id).then(res=>{ |
|
|
@ -1647,9 +1745,6 @@ export default { |
|
|
|
compensationSituation({data:val,insuranceId:this.id}).then(res=>{ |
|
|
|
compensationSituation({data:val,insuranceId:this.id}).then(res=>{ |
|
|
|
this.cash = res.data.amount |
|
|
|
this.cash = res.data.amount |
|
|
|
console.log('取得当前的cash',this.cash) |
|
|
|
console.log('取得当前的cash',this.cash) |
|
|
|
/* TODO 利息,其他,本次还款*/ |
|
|
|
|
|
|
|
// 利息 |
|
|
|
|
|
|
|
// this.interest = res.data.xx |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1680,8 +1775,99 @@ export default { |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
return true |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
modifyReimbursement(){// 查清收组 |
|
|
|
|
|
|
|
console.log('触发查询原本') |
|
|
|
|
|
|
|
console.log(this.liquidate.personLiableId,this.liquidate.collectionGroupId,this.qszId,'三个值') |
|
|
|
|
|
|
|
if(this.liquidate.personLiableId&&this.liquidate.collectionGroupId&&this.qszId){ |
|
|
|
|
|
|
|
console.log('进入接口') |
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
|
|
id:this.qszId,// reimbursement的id |
|
|
|
|
|
|
|
collectionGroupId:this.liquidate.collectionGroupId,// 组id |
|
|
|
|
|
|
|
personLiableId:this.liquidate.personLiableId,// 人id |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
modifyReimbursement(params).then(res=>{ |
|
|
|
|
|
|
|
console.log(res,'chashou123') |
|
|
|
|
|
|
|
if(res.message!="成功"){ |
|
|
|
|
|
|
|
return this.$message.warning(res.message) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
ChinaCost(numberValue){ |
|
|
|
|
|
|
|
var numberValue=new String(Math.round(numberValue*100)); // 数字金额 |
|
|
|
|
|
|
|
var chineseValue=""; // 转换后的汉字金额 |
|
|
|
|
|
|
|
var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 |
|
|
|
|
|
|
|
var String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; // 对应单位 |
|
|
|
|
|
|
|
var len = numberValue.length; // numberValue 的字符串长度 |
|
|
|
|
|
|
|
var Ch1; // 数字的汉语读法 |
|
|
|
|
|
|
|
var Ch2; // 数字位的汉字读法 |
|
|
|
|
|
|
|
var nZero=0; // 用来计算连续的零值的个数 |
|
|
|
|
|
|
|
var String3; // 指定位置的数值 |
|
|
|
|
|
|
|
if(len>15){ |
|
|
|
|
|
|
|
alert("超出计算范围"); |
|
|
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (numberValue==0){ |
|
|
|
|
|
|
|
chineseValue = "零元整"; |
|
|
|
|
|
|
|
return chineseValue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String2 = String2.substr(String2.length-len, len); // 取出对应位数的STRING2的值 |
|
|
|
|
|
|
|
for(var i=0; i<len; i++){ |
|
|
|
|
|
|
|
String3 = parseInt(numberValue.substr(i, 1),10); // 取出需转换的某一位的值 |
|
|
|
|
|
|
|
if ( i != (len - 3) && i != (len - 7) && i != (len - 11) && i !=(len - 15) ){ |
|
|
|
|
|
|
|
if ( String3 == 0 ){ |
|
|
|
|
|
|
|
Ch1 = ""; |
|
|
|
|
|
|
|
Ch2 = ""; |
|
|
|
|
|
|
|
nZero = nZero + 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if ( String3 != 0 && nZero != 0 ){ |
|
|
|
|
|
|
|
Ch1 = "零" + String1.substr(String3, 1); |
|
|
|
|
|
|
|
Ch2 = String2.substr(i, 1); |
|
|
|
|
|
|
|
nZero = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else{ |
|
|
|
|
|
|
|
Ch1 = String1.substr(String3, 1); |
|
|
|
|
|
|
|
Ch2 = String2.substr(i, 1); |
|
|
|
|
|
|
|
nZero = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else{ // 该位是万亿,亿,万,元位等关键位 |
|
|
|
|
|
|
|
if( String3 != 0 && nZero != 0 ){ |
|
|
|
|
|
|
|
Ch1 = "零" + String1.substr(String3, 1); |
|
|
|
|
|
|
|
Ch2 = String2.substr(i, 1); |
|
|
|
|
|
|
|
nZero = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if ( String3 != 0 && nZero == 0 ){ |
|
|
|
|
|
|
|
Ch1 = String1.substr(String3, 1); |
|
|
|
|
|
|
|
Ch2 = String2.substr(i, 1); |
|
|
|
|
|
|
|
nZero = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if( String3 == 0 && nZero >= 3 ){ |
|
|
|
|
|
|
|
Ch1 = ""; |
|
|
|
|
|
|
|
Ch2 = ""; |
|
|
|
|
|
|
|
nZero = nZero + 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else{ |
|
|
|
|
|
|
|
Ch1 = ""; |
|
|
|
|
|
|
|
Ch2 = String2.substr(i, 1); |
|
|
|
|
|
|
|
nZero = nZero + 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if( i == (len - 11) || i == (len - 3)){ // 如果该位是亿位或元位,则必须写上 |
|
|
|
|
|
|
|
Ch2 = String2.substr(i, 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
chineseValue = chineseValue + Ch1 + Ch2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( String3 == 0 ){ // 最后一位(分)为0时,加上“整” |
|
|
|
|
|
|
|
chineseValue = chineseValue + "整"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return chineseValue; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -1745,4 +1931,13 @@ export default { |
|
|
|
/deep/ .el-upload-list{ |
|
|
|
/deep/ .el-upload-list{ |
|
|
|
display: none; |
|
|
|
display: none; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.item{ |
|
|
|
|
|
|
|
max-width:300px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.btn-custom-cancel{ |
|
|
|
|
|
|
|
display: none; |
|
|
|
|
|
|
|
background: transparent; |
|
|
|
|
|
|
|
color: turquoise; |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |