Commit c2296e77 authored by caimeng's avatar caimeng
parent f26a783f
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<td>退款总金额</td> <td>退款总金额</td>
<td> <td>
<span v-if="loanVo.refundAmt !== 0" <span v-if="loanVo.refundAmt !== 0"
>{{ loanVo.refundAmt }} ({{ loanVo.refundStatusDesc }})</span >{{ loanVo.refundAmt }} ({{ loanVo.refundStatusDesc }})</span
> >
<span v-else>{{ loanVo.refundAmt }}</span> <span v-else>{{ loanVo.refundAmt }}</span>
</td> </td>
...@@ -24,22 +24,24 @@ ...@@ -24,22 +24,24 @@
<td>操作</td> <td>操作</td>
<td> <td>
<el-button <el-button
type="primary" type="primary"
size="mini" size="mini"
@click="handleAdvanceLoanAmt" @click="handleAdvanceLoanAmt"
v-if="isNeedAudit" v-if="isNeedAudit"
>线下结清</el-button >线下结清
</el-button
> >
<el-button type="primary" size="mini" @click="protocolSettleAll" <el-button type="primary" size="mini" @click="protocolSettleAll"
>代扣结清</el-button >代扣结清
> </el-button
<el-button
type="primary"
size="mini"
v-if="params.capitalCodeStr === '自营'"
@click="handleDevicePayment"
>分笔代扣</el-button
> >
<el-button type="primary" size="mini" v-if="params.capitalCodeStr === '自营'" @click="handleDevicePayment">
分笔代扣
</el-button>
<template v-if="$permissionUtils.rolePermission('protocolSign')">
<el-button v-if="params.level==='CF'" type="primary" size="mini" @click="handleChangeCFBill">CF账单变更
</el-button>
</template>
</td> </td>
<td>减免金额</td> <td>减免金额</td>
<td>¥{{ loanVo.derateAmt }}</td> <td>¥{{ loanVo.derateAmt }}</td>
...@@ -50,128 +52,130 @@ ...@@ -50,128 +52,130 @@
<div class="tables"> <div class="tables">
<!-- <block-header :title="title"></block-header> --> <!-- <block-header :title="title"></block-header> -->
<el-table <el-table
@filter-change="handleFilterChange" @filter-change="handleFilterChange"
border border
size="mini" size="mini"
:highlight-current-row="true" :highlight-current-row="true"
:header-row-class-name="headerStyle" :header-row-class-name="headerStyle"
:data="data" :data="data"
stripe stripe
style="width: 100%" style="width: 100%"
> >
<el-table-column <el-table-column
align="center" align="center"
prop="planNo" prop="planNo"
label="计划编号" label="计划编号"
width="135px" width="135px"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="planIndex" prop="planIndex"
label="期数" label="期数"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="planAmt" prop="planAmt"
width="85" width="85"
label="应还总金额" label="应还总金额"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="planBen" prop="planBen"
label="本金" label="本金"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="planFu" prop="planFu"
label="服务费" label="服务费"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="planXi" prop="planXi"
label="利息" label="利息"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="planFa" prop="planFa"
label="计划罚息" label="计划罚息"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="accountAmt" prop="accountAmt"
label="担保费" label="担保费"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="planDate" prop="planDate"
width="120" width="120"
label="计划还款时间" label="计划还款时间"
:formatter="dateFormats" :formatter="dateFormats"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="backedAmt" prop="backedAmt"
label="已还金额" label="已还金额"
:formatter="planMoneyFormat" :formatter="planMoneyFormat"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="derateAmt" prop="derateAmt"
label="减免金额" label="减免金额"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="remainAmt" prop="remainAmt"
label="待还金额" label="待还金额"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="statusStr" prop="statusStr"
label="还款状态" label="还款状态"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="gmtModified" prop="gmtModified"
width="120" width="120"
label="结清时间" label="结清时间"
:formatter="dateFormats" :formatter="dateFormats"
></el-table-column> ></el-table-column>
<el-table-column fixed="right" align="center" width="120" label="操作"> <el-table-column fixed="right" align="center" width="120" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-if=" v-if="
scope.row.status != 'SETTLED' && scope.row.backedSign == 'YES' scope.row.status != 'SETTLED' && scope.row.backedSign == 'YES'
" "
@click="protocolOne(scope.row)" @click="protocolOne(scope.row)"
>代扣 >代扣
</el-button> </el-button>
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-else v-else
disabled disabled
@click="protocolOne(scope.row)" @click="protocolOne(scope.row)"
>代扣</el-button >代扣
</el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-if=" v-if="
scope.row.status != 'SETTLED' && scope.row.backedSign == 'YES' scope.row.status != 'SETTLED' && scope.row.backedSign == 'YES'
" "
@click="offlineTransfer(scope.row)" @click="offlineTransfer(scope.row)"
>线下转账 >线下转账
</el-button> </el-button>
<el-button <el-button
type="text" type="text"
size="small" size="small"
v-else v-else
disabled disabled
@click="offlineTransfer(scope.row)" @click="offlineTransfer(scope.row)"
>线下转账</el-button >线下转账
</el-button
> >
</template> </template>
</el-table-column> </el-table-column>
...@@ -179,83 +183,129 @@ ...@@ -179,83 +183,129 @@
</div> </div>
<div class="pages"> <div class="pages">
<el-pagination <el-pagination
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
@size-change="handleSizeChange" @size-change="handleSizeChange"
:current-page.sync="form.current" :current-page.sync="form.current"
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 50, 100]"
:page-size="form.size" :page-size="form.size"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="form.total" :total="form.total"
> >
</el-pagination> </el-pagination>
</div> </div>
<!--线下提前结清--> <!--线下提前结清-->
<advance-loan-amt <advance-loan-amt
v-if="ui.advanceLoanAmt.visible" v-if="ui.advanceLoanAmt.visible"
:loanNo="ui.advanceLoanAmt.loanNo" :loanNo="ui.advanceLoanAmt.loanNo"
:orderNo="ui.advanceLoanAmt.orderNo" :orderNo="ui.advanceLoanAmt.orderNo"
@callback="init" @callback="init"
:dialogVisible.sync="ui.advanceLoanAmt.visible" :dialogVisible.sync="ui.advanceLoanAmt.visible"
> >
</advance-loan-amt> </advance-loan-amt>
<!--代扣提前结清--> <!--代扣提前结清-->
<protocol-settled <protocol-settled
v-if="ui.protocolSettled.visible" v-if="ui.protocolSettled.visible"
:loanNo="ui.protocolSettled.loanNo" :loanNo="ui.protocolSettled.loanNo"
:clientNo="ui.protocolSettled.clientNo" :clientNo="ui.protocolSettled.clientNo"
:bizType="ui.protocolSettled.bizType" :bizType="ui.protocolSettled.bizType"
@callback="init" @callback="init"
:dialogVisible.sync="ui.protocolSettled.visible" :dialogVisible.sync="ui.protocolSettled.visible"
> >
</protocol-settled> </protocol-settled>
<!--分笔代扣--> <!--分笔代扣-->
<device-payment <device-payment
v-if="ui.devicePayment.visible" v-if="ui.devicePayment.visible"
:loanNo="ui.devicePayment.loanNo" :loanNo="ui.devicePayment.loanNo"
:orderNo="ui.devicePayment.orderNo" :orderNo="ui.devicePayment.orderNo"
:clientNo="ui.devicePayment.clientNo" :clientNo="ui.devicePayment.clientNo"
:bizType="ui.devicePayment.bizType" :bizType="ui.devicePayment.bizType"
@callback="init" @callback="init"
:dialogVisible.sync="ui.devicePayment.visible" :dialogVisible.sync="ui.devicePayment.visible"
> >
</device-payment> </device-payment>
<protocol-settled-one <protocol-settled-one
v-if="ui.protocolSettledOne.visible" v-if="ui.protocolSettledOne.visible"
:loanNo="ui.protocolSettledOne.loanNo" :loanNo="ui.protocolSettledOne.loanNo"
:periodNo="ui.protocolSettledOne.periodNo" :periodNo="ui.protocolSettledOne.periodNo"
:remainAmt="ui.protocolSettledOne.remainAmt" :remainAmt="ui.protocolSettledOne.remainAmt"
:planAmt="ui.protocolSettledOne.planAmt" :planAmt="ui.protocolSettledOne.planAmt"
:bizType="ui.protocolSettledOne.bizType" :bizType="ui.protocolSettledOne.bizType"
:clientNo="ui.protocolSettledOne.clientNo" :clientNo="ui.protocolSettledOne.clientNo"
:loanSign="ui.protocolSettledOne.loanSign" :loanSign="ui.protocolSettledOne.loanSign"
:isCustomAmount="ui.protocolSettledOne.isCustomAmount" :isCustomAmount="ui.protocolSettledOne.isCustomAmount"
@callback="init" @callback="init"
:dialogVisible.sync="ui.protocolSettledOne.visible" :dialogVisible.sync="ui.protocolSettledOne.visible"
> >
</protocol-settled-one> </protocol-settled-one>
<!-- 线下转账 --> <!-- 线下转账 -->
<offline-transfer <offline-transfer
v-if="ui.offineTransfer.visible" v-if="ui.offineTransfer.visible"
:orderNo="ui.offineTransfer.orderNo" :orderNo="ui.offineTransfer.orderNo"
:loanNo="ui.offineTransfer.loanNo" :loanNo="ui.offineTransfer.loanNo"
:periodNo="ui.offineTransfer.periodNo" :periodNo="ui.offineTransfer.periodNo"
:planNo="ui.offineTransfer.planNo" :planNo="ui.offineTransfer.planNo"
:planAmt="ui.offineTransfer.planAmt" :planAmt="ui.offineTransfer.planAmt"
:planFu="ui.offineTransfer.planFu" :planFu="ui.offineTransfer.planFu"
:planBen="ui.offineTransfer.planBen" :planBen="ui.offineTransfer.planBen"
:planXi="ui.offineTransfer.planXi" :planXi="ui.offineTransfer.planXi"
:remainAmt="ui.offineTransfer.remainAmt" :remainAmt="ui.offineTransfer.remainAmt"
:accountAmt="ui.offineTransfer.accountAmt" :accountAmt="ui.offineTransfer.accountAmt"
@callback="init" @callback="init"
:dialogVisible.sync="ui.offineTransfer.visible" :dialogVisible.sync="ui.offineTransfer.visible"
> >
</offline-transfer> </offline-transfer>
<!--CF账单变更-->
<el-dialog
:close-on-click-modal="false"
:close-on-press-escape="false"
:append-to-body="true"
title="CF账单变更"
center
width="50%"
:visible.sync="cf.visible"
:before-close="handleChangeCFClose"
>
<div class="box-agreement">
<block-header title="当前可变更信息"/>
<el-form label-suffix=":" label-width="110px" :model="form" ref="form">
<el-form-item prop="isUploadProve" label="可变更期数">
<div>{{ cf.form.splitPlanIndex }}期</div>
</el-form-item>
<el-form-item prop="isUploadProve" label="总变更期数">
<div>{{ cf.form.splitSumIndex }}期</div>
</el-form-item>
<el-form-item prop="isUploadProve" label="总变更金额">
<div>{{ cf.form.totalAmt }}元</div>
</el-form-item>
</el-form>
<!--还款计划-->
<block-header title="变更后还款计划"/>
<div class="p-table">
<el-table border :highlight-current-row="true" :header-row-class-name="headerStyle" size="small"
:data="cf.list" stripe style="width: 100%;">
<el-table-column align="center" prop="planIndex" label="期数"></el-table-column>
<el-table-column align="center" prop="planAmt" label="应还款金额"></el-table-column>
<el-table-column align="center" prop="planBen" label="本金"></el-table-column>
<el-table-column align="center" prop="planXi" label="利息"></el-table-column>
<el-table-column align="center" prop="planBurden" label="担保费"></el-table-column>
</el-table>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="handleChangeCFClose">取 消</el-button>
<el-button type="primary" @click="handleChangeCFSubmit">确 定</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -289,8 +339,8 @@ export default { ...@@ -289,8 +339,8 @@ export default {
data() { data() {
return { return {
tableStatus: [ tableStatus: [
{ text: "成功", value: "SUCCESS" }, {text: "成功", value: "SUCCESS"},
{ text: "失败", value: "FAIL" }, {text: "失败", value: "FAIL"},
], ],
form: { form: {
total: 1, total: 1,
...@@ -349,15 +399,19 @@ export default { ...@@ -349,15 +399,19 @@ export default {
periodNo: "", periodNo: "",
remainAmt: "", remainAmt: "",
planAmt: "", planAmt: "",
isCustomAmount:"" isCustomAmount: ""
}, },
}, },
cf: {
visible: false,
form: {}
},
}; };
}, },
async created() { async created() {
if (this.params) { if (this.params) {
// console.log(this.params,'hhhhhh'); console.log(this.params, '参数')
const { loanNo } = this.params; const {loanNo} = this.params;
this.advanceLoanAmt.loanNo = loanNo; this.advanceLoanAmt.loanNo = loanNo;
await this.init(); await this.init();
} }
...@@ -369,12 +423,12 @@ export default { ...@@ -369,12 +423,12 @@ export default {
async init() { async init() {
const res = await this.$$get( const res = await this.$$get(
"/detail/customer/" + this.advanceLoanAmt.loanNo "/detail/customer/" + this.advanceLoanAmt.loanNo
); );
const { success, result } = res.data; const {success, result} = res.data;
// console.log(res.data.result,'888'); // console.log(res.data.result,'888');
if (success && result != null) { if (success && result != null) {
const { loanVo, applyVo, planVo } = result; const {loanVo, applyVo, planVo} = result;
this.advanceLoanAmt.loanNo = applyVo.loanNo; this.advanceLoanAmt.loanNo = applyVo.loanNo;
this.advanceLoanAmt.bizType = applyVo.bizType; this.advanceLoanAmt.bizType = applyVo.bizType;
this.advanceLoanAmt.clientNo = applyVo.clientNo; this.advanceLoanAmt.clientNo = applyVo.clientNo;
...@@ -415,19 +469,19 @@ export default { ...@@ -415,19 +469,19 @@ export default {
// 计算已还金额 // 计算已还金额
planMoneyFormat: function (row, column) { planMoneyFormat: function (row, column) {
return this.accAdd( return this.accAdd(
this.accAdd(
this.accAdd( this.accAdd(
this.accAdd(this.accAdd(row.backedBen, row.backedFu), row.backedXi), this.accAdd(
row.backedFa this.accAdd(this.accAdd(row.backedBen, row.backedFu), row.backedXi),
row.backedFa
),
row.backedBurden
), ),
row.backedBurden row.backedSpeaccount
),
row.backedSpeaccount
).toFixed(2); ).toFixed(2);
}, },
offlineTransfer(record) { offlineTransfer(record) {
const { applyVo, orderNo, loanNo } = this.params; const {applyVo, orderNo, loanNo} = this.params;
// console.log(this.params, "代扣"); // console.log(this.params, "代扣");
// 取当前用户的信息 // 取当前用户的信息
...@@ -456,12 +510,12 @@ export default { ...@@ -456,12 +510,12 @@ export default {
}, },
//代扣当期 //代扣当期
protocolOne(record) { protocolOne(record) {
console.log(record,'record'); console.log(record, 'record');
const { applyVo, loanNo,loanSign } = this.params; const {applyVo, loanNo, loanSign} = this.params;
this.ui.protocolSettledOne = { this.ui.protocolSettledOne = {
visible: true, visible: true,
loanNo: loanNo, loanNo: loanNo,
loanSign:loanSign, loanSign: loanSign,
bizType: this.advanceLoanAmt.bizType, bizType: this.advanceLoanAmt.bizType,
clientNo: this.advanceLoanAmt.clientNo, clientNo: this.advanceLoanAmt.clientNo,
periodNo: record.planIndex, periodNo: record.planIndex,
...@@ -469,11 +523,11 @@ export default { ...@@ -469,11 +523,11 @@ export default {
planAmt: record.planAmt, planAmt: record.planAmt,
isCustomAmount: record.isCustomAmount, isCustomAmount: record.isCustomAmount,
}; };
console.log(this.ui.protocolSettledOne,'数据'); console.log(this.ui.protocolSettledOne, '数据');
}, },
//分笔代扣 //分笔代扣
handleDevicePayment() { handleDevicePayment() {
const { applyVo, loanNo, orderNo, clientNo } = this.params; const {applyVo, loanNo, orderNo, clientNo} = this.params;
// console.log(this.params,'params'); // console.log(this.params,'params');
this.ui.devicePayment = { this.ui.devicePayment = {
visible: true, visible: true,
...@@ -483,6 +537,46 @@ export default { ...@@ -483,6 +537,46 @@ export default {
orderNo: orderNo, orderNo: orderNo,
}; };
}, },
// CF 账单变更 弹框打开
async handleChangeCFBill() {
try {
const loanNo = this.params.loanNo
const res = await this.$$get('/protocol/getCanChangePlan', {loanNo})
if (res.status === 200 && res.data.success) {
const result = res.data.result;
const {debtPlanModels} = result
this.cf.visible = true;
this.cf.form = result;
this.cf.list = debtPlanModels
} else {
this.$message.error(res.data.message);
}
} catch (err) {
this.$message.error(res || '初始化CF账单信息报错');
}
},
// CF 账单变更 弹框关闭
handleChangeCFClose() {
this.cf.visible = false
},
// CF 账单变更提交
async handleChangeCFSubmit() {
try {
this.cf.form.applyUser = localStorage.getItem("loginName")
const res = await this.$$post('/protocol/changePlan', {...this.cf.form})
if (res.status === 200 && res.data.success) {
this.$message.success('操作成功');
this.cf.visible = false;
} else {
this.$message.error(res.data.message);
}
} catch (err) {
this.$message.error(res || '初始化CF账单信息报错');
}
},
// 合并日期 // 合并日期
dateCompare: function (row, column) { dateCompare: function (row, column) {
let date = row[column.property]; let date = row[column.property];
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
}, },
// 切换选项卡 // 切换选项卡
handleClick(row) { handleClick(row) {
// console.log(row, '一行信息'); console.log(row, '一行信息');
this.visible = true; this.visible = true;
this.title = '借款详情'; this.title = '借款详情';
this.items = { this.items = {
......
...@@ -99,9 +99,7 @@ ...@@ -99,9 +99,7 @@
<el-table-column align="center" label="操作"> <el-table-column align="center" label="操作">
<template v-if="scope.row.invalid==='true'" slot-scope="scope"> <template v-if="scope.row.invalid==='true'" slot-scope="scope">
<el-button type="text" size="small" @click="handleCancel(scope.row)">协议作废</el-button> <el-button type="text" size="small" @click="handleCancel(scope.row)">协议作废</el-button>
<el-button v-if="scope.row.urlEffectiveStr!=='true'" type="text" size="small" <el-button type="text" size="small" @click="handleDelay(scope.row)">延时</el-button>
@click="handleDelay(scope.row)">延时
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -273,6 +271,7 @@ export default { ...@@ -273,6 +271,7 @@ export default {
if (res.status === 200 && res.data.success) { if (res.status === 200 && res.data.success) {
this.$message.success('操作成功!'); this.$message.success('操作成功!');
await this.init() await this.init()
this.delayVisible = false;
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
......
...@@ -63,13 +63,13 @@ ...@@ -63,13 +63,13 @@
</el-form-item> </el-form-item>
<template v-if="LoanInfo"> <template v-if="LoanInfo">
<el-form-item style="margin-bottom: 0" label="服务费金额"> <el-form-item style="margin-bottom: 0" label="剩余可平摊服务费金额">
<div>{{ LoanInfo.splitServiceAmt }}</div> <div>{{ LoanInfo.splitServiceAmt }}</div>
</el-form-item> </el-form-item>
<el-form-item style="margin-bottom: 0" label="服务费期数"> <el-form-item style="margin-bottom: 0" label="服务费期数">
<div>{{ LoanInfo.splitPlanIndex }}</div> <div>{{ LoanInfo.splitPlanIndex }}</div>
</el-form-item> </el-form-item>
<el-form-item style="margin-bottom: 0" label="融单费金额"> <el-form-item style="margin-bottom: 0" label="剩余可平摊融单费金额">
<div>{{ LoanInfo.splitBurdenAmt }}</div> <div>{{ LoanInfo.splitBurdenAmt }}</div>
</el-form-item> </el-form-item>
<el-form-item style="margin-bottom: 0" label="融单费期数"> <el-form-item style="margin-bottom: 0" label="融单费期数">
......
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