Commit e0158e3c authored by caimeng's avatar caimeng

登录有点问题,已经修改

parent ef70a454
......@@ -5,7 +5,7 @@ const theme = {
//布局种类 horizontal vertical gallery comprehensive common
layout: 'vertical',
//主题名称 default ocean green glory white
themeName: 'green',
themeName: 'ocean',
//是否固定头部
fixedHeader: true,
//是否显示顶部进度条
......
......@@ -68,6 +68,8 @@ const actions = {
commit('setAccessToken', accessToken)
}
return result
},
/**
* @description 获取验证码
......
......@@ -182,7 +182,7 @@ export default {
created() {
// 查询当前的基础数据
this.$$get('/back/countSettle?loanNo=' + this.loanNo).then(res => {
this.$$get('/loan/countSettle?loanNo=' + this.loanNo).then(res => {
if (res.data.code != 200) {
this.$message.error(res.data.message);
this.handleClose();
......
......@@ -13,7 +13,7 @@
<td>退款总金额</td>
<td>
<span v-if="loanVo.refundAmt !== 0"
>{{ loanVo.refundAmt }} ({{ loanVo.refundStatusDesc }})</span
>{{ loanVo.refundAmt }} ({{ loanVo.refundStatusDesc }})</span
>
<span v-else>{{ loanVo.refundAmt }}</span>
</td>
......@@ -27,18 +27,21 @@
type="primary"
size="mini"
@click="handleAdvanceLoanAmt"
v-if="isNeedAudit"
>线下结清</el-button
v-if="isNeedAudit && false"
>线下结清
</el-button
>
<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
>
</td>
<td>减免金额</td>
......@@ -145,7 +148,7 @@
scope.row.status != 'SETTLED' && scope.row.backedSign == 'YES'
"
@click="protocolOne(scope.row)"
>代扣
>代扣
</el-button>
<el-button
type="text"
......@@ -153,26 +156,25 @@
v-else
disabled
@click="protocolOne(scope.row)"
>代扣</el-button
>代扣
</el-button
>
<el-button
type="text"
size="small"
v-if="
scope.row.status != 'SETTLED' && scope.row.backedSign == 'YES'
"
@click="offlineTransfer(scope.row)"
<template v-if="false">
<el-button
type="text"
size="small"
v-if="scope.row.status != 'SETTLED' && scope.row.backedSign == 'YES'"
@click="offlineTransfer(scope.row)"
>线下转账
</el-button>
<el-button
type="text"
size="small"
v-else
disabled
@click="offlineTransfer(scope.row)"
>线下转账</el-button
>
</el-button>
<el-button
type="text"
size="small"
v-else
disabled
@click="offlineTransfer(scope.row)">线下转账
</el-button>
</template>
</template>
</el-table-column>
</el-table>
......@@ -289,8 +291,8 @@ export default {
data() {
return {
tableStatus: [
{ text: "成功", value: "SUCCESS" },
{ text: "失败", value: "FAIL" },
{text: "成功", value: "SUCCESS"},
{text: "失败", value: "FAIL"},
],
form: {
total: 1,
......@@ -349,7 +351,7 @@ export default {
periodNo: "",
remainAmt: "",
planAmt: "",
isCustomAmount:""
isCustomAmount: ""
},
},
};
......@@ -357,7 +359,7 @@ export default {
async created() {
if (this.params) {
// console.log(this.params,'hhhhhh');
const { loanNo } = this.params;
const {loanNo} = this.params;
this.advanceLoanAmt.loanNo = loanNo;
await this.init();
}
......@@ -366,15 +368,15 @@ export default {
headerStyle() {
return "tableHeaderStyle";
},
async init() {
const res = await this.$$get(
"/detail/customer/" + this.advanceLoanAmt.loanNo
"/loan/customer/" + this.advanceLoanAmt.loanNo
);
const { success, result } = res.data;
const {success, result} = res.data;
// console.log(res.data.result,'888');
if (success && result != null) {
const { loanVo, applyVo, planVo } = result;
const {loanVo, applyVo, planVo} = result;
this.advanceLoanAmt.loanNo = applyVo.loanNo;
this.advanceLoanAmt.bizType = applyVo.bizType;
this.advanceLoanAmt.clientNo = applyVo.clientNo;
......@@ -427,7 +429,7 @@ export default {
},
offlineTransfer(record) {
const { applyVo, orderNo, loanNo } = this.params;
const {applyVo, orderNo, loanNo} = this.params;
// console.log(this.params, "代扣");
// 取当前用户的信息
......@@ -447,21 +449,33 @@ export default {
},
//代扣提前结清
protocolSettleAll() {
this.ui.protocolSettled = {
visible: true,
loanNo: this.advanceLoanAmt.loanNo,
bizType: this.advanceLoanAmt.bizType,
clientNo: this.advanceLoanAmt.clientNo,
};
// 查询当前的基础数据
this.$$get('/loan/countSettle?loanNo=' + this.advanceLoanAmt.loanNo).then(res => {
console.log(res)
if (!res.data.success) {
this.$message.error(res.data.message);
this.handleClose();
} else {
this.ui.protocolSettled = {
visible: true,
loanNo: this.advanceLoanAmt.loanNo,
bizType: this.advanceLoanAmt.bizType,
clientNo: this.advanceLoanAmt.clientNo,
};
}
}).catch(error => {
this.$message.error(error || '网络异常,请稍后。。。');
});
},
//代扣当期
protocolOne(record) {
console.log(record,'record');
const { applyVo, loanNo,loanSign } = this.params;
console.log(record, 'record');
const {applyVo, loanNo, loanSign} = this.params;
this.ui.protocolSettledOne = {
visible: true,
loanNo: loanNo,
loanSign:loanSign,
loanSign: loanSign,
bizType: this.advanceLoanAmt.bizType,
clientNo: this.advanceLoanAmt.clientNo,
periodNo: record.planIndex,
......@@ -469,11 +483,11 @@ export default {
planAmt: record.planAmt,
isCustomAmount: record.isCustomAmount,
};
console.log(this.ui.protocolSettledOne,'数据');
console.log(this.ui.protocolSettledOne, '数据');
},
//分笔代扣
handleDevicePayment() {
const { applyVo, loanNo, orderNo, clientNo } = this.params;
const {applyVo, loanNo, orderNo, clientNo} = this.params;
// console.log(this.params,'params');
this.ui.devicePayment = {
visible: true,
......
......@@ -234,7 +234,7 @@ export default {
methods: {
getData() {
// 查询当前的基础数据
this.$$get("/back/countSettle?loanNo=" + this.loanNo)
this.$$get("/loan/countSettle?loanNo=" + this.loanNo)
.then((res) => {
if (res.data.code != 200) {
this.$message.error(res.data.message);
......@@ -262,7 +262,7 @@ export default {
},
getBankList() {
//获取银行卡列表
this.$$post(`/back/bankCardList`, {
this.$$post(`/loan/bankCardList`, {
clientNo: this.clientNo,
bizType: this.bizType,
loanNo: this.loanNo,
......@@ -294,7 +294,7 @@ export default {
type: "primary",
})
.then(() => {
this.$$post(`/back/createBackedSettle`, this.buildParam())
this.$$post(`/loan/createBackedSettle`, this.buildParam())
.then((res) => {
// console.log(res, "确定按钮");
if (res.data.code != 200) {
......
<template>
<el-dialog
title="结清证明"
width="700px"
center
:wrapperClosable="false"
:visible.sync="visible"
:before-close="handleClose"
>
<div class="page-dialog">
<div class="settleType">
<el-form :inline="true">
<el-form-item label="结清证明类型模板">
<el-select v-model="reportType" placeholder="请选择结清模板">
<el-option
label="借款主体结清证明模板"
value="loanReport"
></el-option>
<el-option
label="服务费主体结清证明模版"
value="serviceReport"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="generateReport"
>生成结清证明</el-button
>
</el-form-item>
</el-form>
</div>
<div>
<el-table :data="tableData" border style="width: 100%">
<el-table-column prop="settleTypeStr" align="center" label="结清类型">
</el-table-column>
<el-table-column prop="operator" align="center" label="操作人">
</el-table-column>
<el-table-column prop="operationDate" align="center" label="操作时间">
</el-table-column>
</el-table>
</div>
</div>
</el-dialog>
</template>
<script>
export default {
props: {
title: {
type: String,
required: true,
},
visible: {
type: Boolean,
required: true,
},
params: {
type: Object,
required: true,
},
},
data() {
return {
reportType: "",
tableData: [],
certName: "",
loanNo: "",
};
},
created() {
const params = this.params;
console.log(params, "啦啦啦啦啦啦啦");
if (params.loanNo) {
console.log(params.loanNo, "hhhhhhhhhh");
const { clientName, loanNo,externalNo } = params;
this.certName = clientName;
this.loanNo = externalNo;
this.queryReport(externalNo);
}
},
methods: {
//查询生成报告
queryReport(externalNo) {
this.$$get(`/loan/selectGenerate?loanNo=${externalNo}`).then((res) => {
console.log(res, "报告");
if (res.data.code == 200) {
this.tableData = res.data.result;
}
});
},
//生成结清报告
generateReport() {
this.$confirm("是否确认生成", "", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
// 确定
console.log(this.reportType, "模板类型");
if (!this.reportType) {
this.$message("请选择报告类型!");
return;
}
const params = {};
params.settleType = this.reportType;
params.loanNo = this.loanNo;
params.operator = localStorage.getItem("loginName");
this.$$post(`/loan/generateSettleReport`, params).then((res) => {
if (res.data.code == 200) {
this.queryReport();
this.$message({
type: "success",
message: "已生成!",
});
}else{
this.$message(res.data.message)
}
});
})
.catch(() => {
// 取消
this.$message({
type: "info",
message: "已取消",
});
});
},
handleClose() {
this.$emit("handleClose");
// window.location.reload()
},
},
};
</script>
<style scoped>
</style>
\ No newline at end of file
......@@ -12,9 +12,7 @@
<div class="loan-detail">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="申请信息" name="1">
<!-- <ApplyInfo :params="applyInfo"></ApplyInfo> -->
<div class="page-com">
<!-- <block-header :title="title"></block-header> -->
<table class="table">
<tr>
<td>申请日期</td>
......@@ -67,7 +65,7 @@
</el-collapse-item>
<!-- 组件 -->
<el-collapse-item title="借款合同" name="2">
<ContractList :params="applyInfo" v-if="$permissionUtils.rolePermission('lookAgreement')"></ContractList>
<ContractList :params="applyInfo"></ContractList>
</el-collapse-item>
<el-collapse-item title="账单详情" name="3">
<BillList :params="applyInfo"></BillList>
......@@ -78,9 +76,6 @@
<el-collapse-item title="减免记录" name="5">
<ReliefList :params="applyInfo"></ReliefList>
</el-collapse-item>
<el-collapse-item title="服务费退款记录" name="6">
<ServiceRefund :params="applyInfo"></ServiceRefund>
</el-collapse-item>
</el-collapse>
</div>
</div>
......@@ -92,7 +87,6 @@ import ContractList from "./ContractList";
import RePayList from "./RePayList";
import BillList from "./BillList";
import ReliefList from "./ReliefList";
import ServiceRefund from "./ServiceRefund";
import * as moment from "moment";
export default {
......@@ -101,8 +95,7 @@ export default {
ContractList,
RePayList,
BillList,
ReliefList,
ServiceRefund
ReliefList
},
props: {
dialogVisible: {
......@@ -140,7 +133,6 @@ export default {
},
async created() {
if (this.params) {
// console.log(this.params,'自营');
const { loanNo } = this.params;
this.applyInfo = this.params;
await this.initLoanInfo(loanNo);
......@@ -153,9 +145,8 @@ export default {
},
//根据借款信息查借款所有信息
async initLoanInfo(loanNo) {
const res = await this.$$get("/detail/customer/" + loanNo);
const res = await this.$$get("/loan/customer/" + loanNo);
const { success, result } = res.data;
console.log(res.data, "222");
if (success && result != null) {
this.loan = result;
this.loanModel = result.applyVo;
......
......@@ -14,7 +14,7 @@
<el-table-column align="center" prop="raiseAmt" label="放款本金"></el-table-column>
<el-table-column align="center" prop="productNameStr" label="产品名称"></el-table-column>
<el-table-column align="center" prop="capitalCodeStr" label="放款资方"></el-table-column>
<!-- <el-table-column align="center" prop="capitalCodeStr" label="放款资方"></el-table-column>-->
<el-table-column align="center" prop="status" label="借款单状态">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.status==='AUDITED'" size="small">{{ loanStatusFormat(scope.row) }}
......@@ -32,17 +32,10 @@
<el-tag type="info" v-else size="small">{{ loanStatusFormat(scope.row) }}</el-tag>
</template>
</el-table-column>
<el-table-column align="center" prop="cancelMemo" label="备注"></el-table-column>
<!-- <el-table-column align="center" prop="cancelMemo" label="备注"></el-table-column>-->
<el-table-column align="center" label="查看详情">
<template slot-scope="scope">
<el-button type="text" size="small" @click="handleClick(scope.row)">详情</el-button>
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode !== 'OWNBUSINESS'">
<el-button type="text" size="small" @click="handleShow(scope.row,'SettleReport','结清报告')">结清报告</el-button>
</template>
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode == 'OWNBUSINESS'&&zyItem">
<el-button type="text" size="small" @click="handleShow(scope.row,'GenerateSettleReport','结清报告')">结清报告
</el-button>
</template>
</template>
</el-table-column>
</el-table>
......@@ -72,16 +65,12 @@
<script>
import LoanDetail from "./LoanDetail";
import SettleReport from "./SettleReport";
import GenerateSettleReport from './GenerateSettleReport.vue';
import * as moment from "moment";
export default {
name: 'AddUserServiceDialog',
components: {
LoanDetail,
SettleReport,
GenerateSettleReport
LoanDetail
},
props: {
params: {
......@@ -104,7 +93,6 @@ export default {
}
},
async created() {
// console.log(localStorage.getItem('btnUrl'), 999888888);
const btnUrl=localStorage.getItem('btnUrl');
if(btnUrl){
this.zyItem=btnUrl
......@@ -116,6 +104,12 @@ export default {
const res = await this.$$post('/loan/getLoanListByClientNo', {productName: clientProductName, clientNo: clientNo});
const {success, result} = res.data;
if (success && result !== null) {
result.forEach(item=>{
if(!item.productNameStr) item.productNameStr = '飞逸美选'
})
this.data = result;
}
}catch (err){
......
......@@ -50,14 +50,14 @@
</div>
<div class="pages">
<el-pagination
background
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
:current-page.sync="form.current"
:page-sizes="[10, 20, 50, 100]"
:page-size="form.size"
layout="total, sizes, prev, pager, next, jumper"
:total="form.total">
background
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
:current-page.sync="form.current"
:page-sizes="[10, 20, 50, 100]"
:page-size="form.size"
layout="total, sizes, prev, pager, next, jumper"
:total="form.total">
</el-pagination>
</div>
</div>
......@@ -65,6 +65,7 @@
<script>
import * as moment from "moment";
export default {
props: {
dialogVisible: {
......@@ -85,16 +86,15 @@ export default {
form: {
current: 1,
size: 10,
total:1,
cell:"",
productName:""
total: 1,
cell: "",
productName: ""
},
data: [],
};
},
async created() {
const params = this.params;
// console.log(params,'手机号');
this.form.cell = params.phoneNo;
this.form.productName = params.clientProductName;
await this.init();
......@@ -104,14 +104,18 @@ export default {
return "tableHeaderStyle";
},
async init() {
const res = await this.$$post("/user/getSmsInfo", this.form);
const { success, result } = res.data;
if (success && result !== null) {
this.data = result.data;
this.form.total = result.total;
try {
const res = await this.$$post("/user/getSmsInfo", this.form);
const {success, result} = res.data;
if (success && result !== null) {
this.data = result.data;
this.form.total = result.total;
}
} catch (err) {
console.log(err.message)
}
},
/*日期*/
/*日期*/
dateFormat: function (row, column) {
let date = row[column.property]
if (date === undefined) {
......@@ -122,7 +126,7 @@ export default {
handleClose() {
this.$emit("handleClose");
},
handleCurrentChange(e) {
handleCurrentChange(e) {
this.form.current = e;
this.init();
},
......@@ -139,6 +143,7 @@ export default {
.tables {
margin-bottom: 20px;
}
.pages {
display: flex;
align-items: center;
......
......@@ -6,60 +6,49 @@
width="40%"
:visible.sync="visible"
:before-close="handleClose">
<div style="margin-left:50px">
<el-row :gutter="20">
<el-col :span="8">
<div class="grid-content bg-purple">本金:{{ this.ruleForm.raiseAmt }}</div>
</el-col>
<el-col :span="8">
<div class="grid-content bg-purple">起息日:{{ this.ruleForm.startDate | dateFilter }}</div>
</el-col>
</el-row>
<br/>
<el-row :gutter="20" :center="true">
<el-col :span="8">
<div class="grid-content bg-purple">占用天数:{{ this.ruleForm.userDay }}</div>
</el-col>
<el-col :span="8">
<div class="grid-content bg-purple">占用期数:{{ this.ruleForm.userMonth }}</div>
</el-col>
</el-row>
<br/>
<el-row :gutter="20">
<el-col :span="8">
<div class="grid-content bg-purple">还款本金:{{ this.ruleForm.principleAmt }}</div>
</el-col>
<el-col :span="8">
<div class="grid-content bg-purple">利息:{{ this.ruleForm.interestAmt }}</div>
</el-col>
<el-col :span="8">
<div class="grid-content bg-purple">服务费:{{ this.ruleForm.serviceAmt }}</div>
</el-col>
<el-col :span="8">
<div class="grid-content bg-purple">违约金:{{ this.ruleForm.breakAmt }}</div>
</el-col>
<el-col :span="8">
<div class="grid-content bg-purple">退款金额:{{ this.ruleForm.refundAmt }}</div>
</el-col>
<el-col :span="8">
<div class="grid-content bg-purple">罚息:{{ this.ruleForm.overdueAmt }}</div>
</el-col>
<el-col :span="8">
<div class="grid-content bg-purple">融担金额:{{ this.ruleForm.burdenAmt }}</div>
</el-col>
</el-row>
<br/>
<el-row :gutter="20">
<el-col :span="16">
<div class="grid-content bg-purple">总应还金额:{{ this.ruleForm.settleAmt }}</div>
</el-col>
</el-row>
<div>
<table class="table" style="margin-bottom: 50px">
<tr>
<td>本金:</td>
<td>{{ this.ruleForm.raiseAmt }}</td>
<td>起息日:</td>
<td>{{ this.ruleForm.startDate | dateFilter }}</td>
<td>占用天数:</td>
<td>{{ this.ruleForm.userDay }}</td>
</tr>
<tr>
<td>占用期数:</td>
<td>{{ this.ruleForm.userDay }}</td>
<td>还款本金:</td>
<td>{{ this.ruleForm.principleAmt }}</td>
<td>利息:</td>
<td>{{ this.ruleForm.interestAmt }}</td>
</tr>
<tr>
<td>服务费:</td>
<td>{{ this.ruleForm.serviceAmt }}</td>
<td>违约金:</td>
<td>{{ this.ruleForm.breakAmt }}</td>
<td>退款金额:</td>
<td>{{ this.ruleForm.refundAmt }}</td>
</tr>
<tr>
<td>罚息:</td>
<td>{{ this.ruleForm.overdueAmt }}</td>
<td>融担金额:</td>
<td>{{ this.ruleForm.burdenAmt }}</td>
<td>总应还金额:</td>
<td>{{ this.ruleForm.settleAmt }}</td>
</tr>
</table>
</div>
<br/>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="140px" class="demo-ruleForm">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item label="扣款金额" prop="backedAmt">
<el-col :span="20">
<el-input v-model="ruleForm.settleAmt" placeholder="扣款金额" disabled></el-input>
......@@ -145,7 +134,6 @@ export default {
},
filters: {
dateFilter: function (row) {
var date = row
if (typeof (date) == undefined || typeof (date) == null) {
......@@ -167,21 +155,19 @@ export default {
this.bizTypeStr = this.bizType;
// 查询当前的基础数据
this.$$get('/back/countSettle?loanNo=' + this.loanNo).then(res => {
if (res.data.code != 200) {
this.$$get('/loan/countSettle?loanNo=' + this.loanNo).then(res => {
if (!res.data.success) {
this.$message.error(res.data.message);
this.handleClose();
} else {
this.ruleForm = res.data.result;
console.log(this.ruleForm, '哈哈哈');
}
}).catch(error => {
this.$message.error(error || '网络异常,请稍后。。。');
});
//获取银行卡列表
this.$$post(`/back/bankCardList`, {
this.$$post(`/loan/bankCardList`, {
clientNo: this.clientNo,
bizType: this.bizType,
loanNo: this.loanNo
......@@ -203,7 +189,7 @@ export default {
if (!valid) {
return false
}
this.$$post(`/back/createBackedSettle`, this.buildParam()).then(res => {
this.$$post(`/loan/createBackedSettle`, this.buildParam()).then(res => {
if (res.data.code != 200) {
this.$message.error(res.data.message);
return
......
<template>
<el-dialog
:append-to-body="true"
class="client-data-dialog"
title="创建当期代扣"
width="40%"
:visible.sync="visible"
:before-close="handleClose">
:append-to-body="true"
class="client-data-dialog"
title="创建当期代扣"
width="40%"
:visible.sync="visible"
:before-close="handleClose">
<el-form
:model="ruleForm"
label-suffix=":" size="small"
:rules="rules" ref="ruleForm"
label-width="140px"
class="demo-ruleForm">
:model="ruleForm"
label-suffix=":" size="small"
:rules="rules" ref="ruleForm"
label-width="140px"
class="demo-ruleForm">
<el-form-item label="期数">
<span>{{ ruleForm.periodNo }}</span>
</el-form-item>
......@@ -22,28 +22,28 @@
</el-form-item>
<el-form-item label="扣款金额" prop="backedAmt">
<el-input v-if="ruleForm.isCustomAmount" v-model="ruleForm.remainAmt" placeholder="请输入转账金额" ></el-input>
<el-input v-if="ruleForm.isCustomAmount" v-model="ruleForm.remainAmt" placeholder="请输入转账金额"></el-input>
<el-input v-else v-model="ruleForm.remainAmt" placeholder="请输入转账金额" disabled></el-input>
</el-form-item>
<el-form-item label="选择银行卡" prop="bankAccount">
<el-select clearable v-model="ruleForm.bankAccount"
class="select-bank-card">
class="select-bank-card">
<el-option
v-for="item in this.cardList"
:key="item.value"
@click.native="changeCard(item)"
:label="item.label"
:value="item.value"
></el-option>
v-for="item in this.cardList"
:key="item.value"
@click.native="changeCard(item)"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="选择支付渠道" prop="paymentChannel">
<el-form-item label="选择支付渠道" prop="paymentChannel">
<el-select clearable v-model="ruleForm.paymentChannel" class="select-bank-card">
<el-option
v-for="item in this.channelList"
:key="item.payChannelApi"
:label="item.message"
:value="item.payChannelApi"></el-option>
v-for="item in this.channelList"
:key="item.payChannelApi"
:label="item.message"
:value="item.payChannelApi"></el-option>
</el-select>
</el-form-item>
</el-form>
......@@ -80,11 +80,11 @@ export default {
planAmt: {
type: Number
},
loanSign:{
type:String
loanSign: {
type: String
},
isCustomAmount:{
type: Boolean,
isCustomAmount: {
type: Boolean,
}
},
......@@ -107,12 +107,12 @@ export default {
attach: '',
planNo: '',
bankAccount: '',
paymentChannel:'',
paymentChannel: '',
bankOwner: '',
backedAmt: '',
memo: '',
loanSign:"",
isCustomAmount:null
loanSign: "",
isCustomAmount: null
},
rules: {
bankAccount: [{required: true, message: '支付银行卡不能为空', trigger: 'blur'}],
......@@ -121,12 +121,12 @@ export default {
},
loginName: '',
cardList: [],
channelList:[]
channelList: []
}
},
created() {
console.log(this.$props,'9090909090');
console.log(this.$props, '9090909090');
this.ruleForm = {
loanNo: this.loanNo,
bizType: this.bizType,
......@@ -134,15 +134,14 @@ export default {
periodNo: this.periodNo,
remainAmt: this.remainAmt,
planAmt: this.planAmt,
loanSign:this.loanSign,
isCustomAmount:this.isCustomAmount,
loanSign: this.loanSign,
isCustomAmount: this.isCustomAmount,
};
// console.log(this.$props,'hhhhhhhhhhh');
//获取银行卡列表
this.$$post(`/back/bankCardList`, {
this.$$post(`/loan/bankCardList`, {
...this.ruleForm
}).then(res => {
console.log(res,'银行卡');
console.log(res, '银行卡');
this.cardList = res.data.result;
}).catch(error => {
this.$message.error(error || '网络异常,请稍后。。。');
......@@ -159,8 +158,8 @@ export default {
protocolOne() {
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.$$post(`/back/createBackedSettle`, this.buildParam()).then(res => {
if (res.data.code != 200) {
this.$$post(`/loan/createBackedSettle`, this.buildParam()).then(res => {
if (res.data.code !== '200') {
this.$message.error(res.data.message);
return
}
......@@ -174,26 +173,26 @@ export default {
})
},
//银行卡对应的支付渠道
changeCard(val){
console.log(val.payChannelApiVOS,'12131232132');
this.channelList=val.payChannelApiVOS;
if(val.payChannelApiVOS.length==0){
this.ruleForm.paymentChannel="";
changeCard(val) {
this.channelList = val.payChannelApiVOS;
if (val.payChannelApiVOS.length == 0) {
this.ruleForm.paymentChannel = "";
}
},
//参数
buildParam() {
const c = localStorage.getItem("userName");
return {
loanNo: this.ruleForm.loanNo,
bizType: this.ruleForm.bizType,
creator: localStorage.getItem("userName"),
creator: c ? c : '才',
bankAccount: this.ruleForm.bankAccount,
backAmt: this.ruleForm.remainAmt,
periodNo:this.ruleForm.periodNo,
periodNo: this.ruleForm.periodNo,
rePayType: 'BYONE',
restingOrderEnum:'NO',
payChannelApi:this.ruleForm.paymentChannel
restingOrderEnum: 'NO',
payChannelApi: this.ruleForm.paymentChannel
};
},
......@@ -208,7 +207,7 @@ export default {
}
</script>
<style lang="scss" >
<style lang="scss">
.select-bank-card {
width: 50%
}
......
......@@ -87,7 +87,6 @@ export default {
async created() {
if(this.params){
const params = this.params;
// console.log(params,'哈哈3')
this.form.bizNo = params.loanNo;
await this.init()
}
......@@ -105,12 +104,11 @@ export default {
total: this.form.total,
result:this.backValue
}
const res = await this.$$post('/back/detailPageList', parB );
const res = await this.$$post('/loan/detailPageList', parB );
const {success, result} = res.data;
if (success && result !== null) {
const {data, total} = result;
this.data = data;
// console.log(this.data[0].backedNo,'data');
this.form.total = total;
}
},
......
......@@ -104,7 +104,7 @@ export default {
total: this.form.total,
result:this.backValue
}
const res = await this.$$post('/back/deratePageList', parB );
const res = await this.$$post('/loan/deratePageList', parB );
const {success, result} = res.data;
if (success && result !== null) {
const {data, total} = result
......
<template>
<div class="page-com">
<div class="tables">
<!-- <block-header :title="title"></block-header> -->
<el-table
border
size="mini"
:highlight-current-row="true"
:header-row-class-name="headerStyle"
:data="data"
stripe
style="width: 100%;">
<el-table-column align="center" prop="loanNo" label="借款编号"></el-table-column>
<el-table-column align="center" prop="refundAmt" label="退款金额"></el-table-column>
<el-table-column align="center" prop="refundStatusDesc" label="退款单状态"></el-table-column>
<el-table-column align="center" prop="creator" label="创建人"></el-table-column>
<el-table-column align="center" prop="gmtCreated" label="创建时间" :formatter="dateFormat"></el-table-column>
<el-table-column align="center" prop="gmtModified" label="更新时间" :formatter="dateFormat"></el-table-column>
<el-table-column :show-overflow-tooltip="true" align="center" prop="memo" label="备注"></el-table-column>
</el-table>
</div>
<div class="pages">
<el-pagination
background
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
:current-page.sync="form.current"
:page-sizes="[10, 20, 50, 100]"
:page-size="form.size"
layout="total, sizes, prev, pager, next, jumper"
:total="form.total">
</el-pagination>
</div>
</div>
</template>
<script>
import * as moment from "moment";
export default {
name: 'RiskInfo',
props: {
title: {
type: String,
required: false,
},
params: {
type: Object,
required: true
},
},
data() {
return {
tableStatus: [
{text: '成功', value: "SUCCESS"},
{text: '审核中', value: "SUBMITED"},
{text: '失败', value: "FAIL"}
],
form: {
total: 1,
current: 1,
size: 10,
// result:''
},
updateQueDialog: {
visible: false,
feedNo: '',
feedType: '',
feedStatus: '',
feedContent: '',
clientNo: '',
creater: '',
finishContent: '',
},
data: [],
backValue:null
}
},
async created() {
if(this.params){
const params = this.params;
// console.log(params,'params');
this.form.loanNo = params.loanNo;
this.form.clientNo = params.clientNo;
await this.init()
}
},
methods: {
headerStyle() {
return "tableHeaderStyle";
},
async init() {
const parB={
loanNo: this.form.loanNo,
current: this.form.current,
size: this.form.size,
total: this.form.total,
clientNo:this.form.clientNo
}
const res = await this.$$post('/refund/selectRefund',parB);
const {success, result} = res.data;
// console.log(res.data,'返回的结果');
if (success && result !== null) {
this.data = result.records;
this.form.total = result.total;
}
},
// 合并日期
dateCompare: function (row, column) {
let date = row[column.property]
if (date === undefined) {
return ''
}
return moment(date).format("YYYY-MM-DD ") + row.backedTime
},
/*日期*/
dateFormat: function (row, column) {
let date = row[column.property]
if (date === undefined) {
return ''
}
return moment(date).format("YYYY-MM-DD HH:mm:ss")
},
/*日期*/
dateFormats: function (row, column) {
let date = row[column.property]
if (date === undefined) {
return ''
}
return moment(date).format("YYYY-MM-DD")
},
handleClose() {
this.$emit("handleClose");
},
//客服状态
serviceFormat: function (row, column) {
let status = row['feedStatus'];
return this.$enumUtils.toMsg('FeedStatus', status);
},
handleCurrentChange(e) {
this.form.current = e;
this.init();
},
handleSizeChange(e) {
this.form.size = e
this.form.current = 1;
this.init();
},
}
}
</script>
<style>
.tables{
margin-bottom: 20px;
}
.pages {
display: flex;
align-items: center;
justify-content: center;
}
</style>
<template>
<el-dialog
:title="title"
width="500px"
center
:wrapperClosable="false"
:visible.sync="visible"
:before-close="handleClose">
<div class="page-dialog">
<div class="btn-box" style="height: 200px">
<el-button size="small" plain type="info" v-if="result.status==='FAIL'">生成失败</el-button>
<el-button size="small" plain type="success" @click="handleClick" v-else-if="result.status==='SUCCESS'">点击下载
</el-button>
<el-button size="small" plain type="primary" v-else-if="result.status==='PROCESS'">生成中...</el-button>
</div>
</div>
</el-dialog>
</template>
<script>
import * as moment from "moment";
export default {
name: 'SettleReport',
props: {
title: {
type: String,
required: true,
},
visible: {
type: Boolean,
required: true
},
params: {
type: Object,
required: true
},
},
data() {
return {
//FAIL:失败
//SUCCESS :成功
//PROCRSS:处理中
result: {},
form: {
batchNumber: '',
capitalCode: '',
certNo: "",
certName: "",
loanNo: ""
}
}
},
async created() {
const params = this.params;
// console.log(params, '很多信息');
if (params.loanNo) {
const {capitalCode, clientName, certNo,idCard, loanNo,externalNo} = params;
this.form.capitalCode = capitalCode;
this.form.certNo = idCard;
this.form.certName = clientName;
//this.form.loanNo = loanNo;
this.form.loanNo = externalNo;
await this.init()
}
},
methods: {
headerStyle() {
return "tableHeaderStyle";
},
async init() {
const res = await this.$$post('/back/settleReport', this.form);
const {success, result} = res.data;
if (success && result !== null) {
this.result = result;
}
},
/*日期*/
dateFormats: function (row, column) {
let date = row[column.property]
if (date === undefined) {
return ''
}
return moment(date).format("YYYY-MM-DD")
},
handleClose() {
this.$emit("handleClose");
},
handleClick() {
const url = this.result.fileUrl;
window.open(url, "_blank");
}
}
}
</script>
<style>
.btn-box {
display: flex;
align-items: center;
justify-content: center;
}
</style>
......@@ -283,7 +283,7 @@ export default {
//根据借款信息查借款所有信息
async initLoanInfo(record) {
this.isNeedAudit = true;
const res = await this.$$get('/client//detail/customer/' + record);
const res = await this.$$get('/client/detail/customer/' + record);
const {success, result} = res.data;
if (success && result !== null) {
this.loan = result;
......
......@@ -252,8 +252,15 @@ export default {
if (valid) {
try {
this.loading = true;
await this.login(this.form);
console.log(this.handleRoute(),'是啥');
const res = await this.login(this.form);
console.log(res,'zai')
if(res.success){
console.log(res,'沃日')
localStorage.setItem("userName", res.result.userName);
localStorage.setItem("loginName", res.result.loginName);
localStorage.setItem("userCell", res.result.userCell);
}
// console.log(this.handleRoute(),'是啥');
await this.$router.push('/');
} finally {
this.loading = false;
......
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