Commit 88b80ade authored by caimeng's avatar caimeng

一步一走

parent 20f70885
...@@ -210,6 +210,7 @@ ...@@ -210,6 +210,7 @@
}, },
// 风审查询结果 // 风审查询结果
async initRiskResult() { async initRiskResult() {
const { creditNo } = this.item const { creditNo } = this.item
...@@ -221,6 +222,7 @@ ...@@ -221,6 +222,7 @@
this.hasRisk = !!result.result this.hasRisk = !!result.result
} }
}, },
onSubmit(formName) { onSubmit(formName) {
console.log(this.item, this.form, '数据呢') console.log(this.item, this.form, '数据呢')
this.$refs[formName].validate(async (valid) => { this.$refs[formName].validate(async (valid) => {
......
<!-- 预授信申述 --> <!-- 预授信申述 -->
<template> <template>
<div> <el-dialog
<!--图钉--> :visible.sync='dialogVisible'
<el-button class='btn-fixed'>审核</el-button> :before-close='handleClose'
:destroy-on-close='true'
<!--搜索--> width='38%'
<block-header title='申述' /> title='申述'>
<el-row> <div class='page'>
<el-col :span='8'> <!--搜索-->
<el-form ref='form' :model='form' :rules='rules' label-suffix=':' label-width='120px'> <el-form ref='dForm' label-suffix=':' label-width='90px' :rules='rules' :model='form' class='form-inline'>
<el-form-item prop='appealMemo' label='申述原因'>
<el-form-item prop='quota' label='人审额度'> <el-input v-model='form.appealMemo' type='textarea' clearable placeholder='请输入申述备注' />
<el-input v-model='form.quota' clearable placeholder='请输入额度' /> </el-form-item>
</el-form-item> <el-form-item prop='approveOpinion' label='审批意见'>
<template v-if='searchData!==null'>
<el-form-item prop='fund' label='资金方选择'> <el-radio-group v-model='form.approveOpinion'>
<!--<el-select v-model='form.fund' placeholder='请选择资金方'>--> <el-radio v-for='(item,index) in searchData.allotOpinionEnumResponseList'
<!-- <el-option label='自己' value='1'></el-option>--> :key='index'
<!-- <el-option label='其它人' value='2'></el-option>--> :label='item.code'>{{ item.desc }}
<!--</el-select>--> </el-radio>
<el-select v-model="form.fund" style='width: 100%;' placeholder="请选择活动区域">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-form-item prop='remarks' label='申述备注'>
<el-input v-model='form.remarks' clearable placeholder='请输入申述备注' />
</el-form-item>
<el-form-item prop='idea' label='审批意见'>
<el-radio-group v-model='form.idea'>
<el-radio :label='3'>备选项</el-radio>
<el-radio :label='6'>备选项</el-radio>
<el-radio :label='9'>备选项</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </template>
</el-form-item>
</el-form>
<el-form-item>
<el-button type='primary' @click='onSubmit'>提 交</el-button>
</el-form-item>
</el-form>
</el-col>
</el-row>
</div> </div>
<span slot='footer' class='dialog-footer'>
<el-button type='primary' @click='onSubmit("dForm")'>确 定</el-button>
<el-button @click='handleClose'>取 消</el-button>
</span>
</el-dialog>
</template> </template>
<script> <script>
import API from '@/server/api' import API from '@/server/api'
import _ from 'lodash'
import { mapGetters } from 'vuex'
export default { export default {
name: 'PrePlead', name: 'PrePlead',
props: {
dialogVisible: {
type: Boolean,
require: true
},
//eslint-disable-next-line vue/require-default-prop
item: {
type: Object,
require: true
}
},
data() { data() {
return { return {
rules: { rules: {
quota: [ appealMemo: [
{ {
required: true, required: true,
message: '请输入额度', trigger: 'blur',
trigger: 'blur' message: '请输入申述原因'
} }
], ],
fund: [ approveOpinion: [
{ {
required: true, required: true,
message: '请选择资金方', trigger: 'blur',
trigger: 'blur' message: '请选择审批意见'
} }
] ]
}, },
form: { form: {
quota: '', appealMemo: '',
fund: '', approveOpinion: '',
remarks: '', creditNo: '',
idea: '' operationId: ''
} }
} }
}, },
computed: {
...mapGetters(['searchData', 'user'])
},
created() {
console.log(this.item,'nash ')
if (this.item !== null) {
this.form.creditNo = this.item.creditNo
}
},
methods: { methods: {
onSubmit() { onSubmit(formName) {
console.log(this.item,this.form,'数据呢');
this.$refs[formName].validate(async (valid) => {
if (valid) {
this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async (res) => {
console.log(res, '是啥')
const form = this.form;
form.operationId = this.user.userId;
console.log(form, '表单数据')
const result = await API.creditPlead({
...form
})
if (result.success) {
this.$message({
type: 'success',
message: '申述成功!'
})
this.$emit('handleClose')
this.$emit('callback')
}
}).catch((e) => {
console.log(e, '取消申述了')
})
}
})
},
handleClose() {
this.$emit('handleClose')
} }
} }
} }
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
export default { export default {
name: 'PreOperationLog', name: 'PreOperationLog',
props:{ props:{
logData:{ log:{
type:Array, type:Array,
require:true require:true
} }
...@@ -87,9 +87,10 @@ ...@@ -87,9 +87,10 @@
} }
}, },
created() { created() {
if(this.logData){ if(this.log){
this.list = this.logData; this.list = this.log;
} }
} }
} }
</script> </script>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
:before-close='handleClose' :before-close='handleClose'
:destroy-on-close='true' :destroy-on-close='true'
width='38%' width='38%'
title='预授信申述'> title='申述'>
<div class='page'> <div class='page'>
<!--搜索--> <!--搜索-->
<el-form ref='dForm' label-suffix=':' label-width='90px' :rules='rules' :model='form' class='form-inline'> <el-form ref='dForm' label-suffix=':' label-width='90px' :rules='rules' :model='form' class='form-inline'>
......
<!-- 操作日志 -->
<template>
<div>
<block-header title='预审报告' />
<!--表格-->
<el-table
ref="tableSort"
border
:data="list"
style="width: 100%; margin-bottom: 20px"
>
<el-table-column
v-for="(item, index) in finallyColumns"
:key="index"
align="center"
:label="item.label"
:sortable="item.sortable"
:width="item.width"
:fixed="!!item.fixed"
:show-overflow-tooltip="!!item.overflow"
>
<template #default="{ row }">
<span >{{ row[item.prop] }}</span>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
import _ from 'lodash'
import API from '@/server/api'
export default {
name: 'PreOperationLog',
props:{
report:{
type:Array,
require:true
}
},
data() {
return {
checkList: ["规则名", "规则名称", "审批建议"],
columns: [
{
order: 1,
label: "规则名",
prop: "ruleCode"
},
{
order: 2,
label: "规则名称",
prop: "ruleName"
},
{
order: 3,
label: "审批建议",
prop: "ruleResultStr"
}
],
list: []
}
},
computed: {
finallyColumns() {
let finallyArray = [];
this.checkList.forEach((checkItem) => {
finallyArray.push(
this.columns.filter((item) => item.label === checkItem)[0]
);
});
return _.sortBy(finallyArray, (item) => item.order);
}
},
created() {
if(this.report){
this.list = this.report;
}
}
}
</script>
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
<el-descriptions-item label-class-name='labelCls' label='申请金额'>{{loanIntentionAmount}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='申请金额'>{{loanIntentionAmount}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='借款期限'>{{projectInfo.loanIntentionNum}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='借款期限'>{{projectInfo.loanIntentionNum}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='申请项目'>{{projectInfo.projectName}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='申请项目'>{{projectInfo.projectName}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='商家等级'>{{projectInfo.applyDate}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='商家等级'>{{projectInfo.partnerGrade}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='商户GPS'>{{projectInfo.projectId}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='商户GPS'>{{projectInfo.lngAndLat}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='资质类型'>{{projectInfo.loanApplyDate}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='资质类型'>{{projectInfo.qualificationTypeStr}}</el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
</template> </template>
......
import BlockHeader from '@/components/blockHeader' import BlockHeader from '@/components/blockHeader'
import OperationLog from '@/components/pre-operation-log' import OperationLog from '@/components/pre-operation-log'
import PreReport from '@/components/pre-report'
import PrePlead from '@/components/pre-plead' import PrePlead from '@/components/pre-plead'
import Plead from '@/components/plead' import Plead from '@/components/plead'
import Approval from '@/components/approval' import Approval from '@/components/approval'
...@@ -15,6 +16,7 @@ export default { ...@@ -15,6 +16,7 @@ export default {
components: { components: {
BlockHeader, BlockHeader,
OperationLog, OperationLog,
PreReport,
PrePlead, PrePlead,
Plead, Plead,
UserOtherInfo, UserOtherInfo,
......
...@@ -92,8 +92,8 @@ ...@@ -92,8 +92,8 @@
<span v-if='item.label==="申请金额(元)" || item.label==="审核结果(元)"'> <span v-if='item.label==="申请金额(元)" || item.label==="审核结果(元)"'>
{{ money(row.availableAmount) }} {{ money(row.availableAmount) }}
</span> </span>
<span v-if='item.label==="客户信息"'> <span v-else-if='item.label==="客户信息"'>
{{ row.realName }}({{ row.mobile }}) {{ row.realName }} <br /> {{ row.mobile }}
</span> </span>
<span v-else-if='item.label==="审批状态"'> <span v-else-if='item.label==="审批状态"'>
<el-tag v-if='row.creditStatus==="CREATED"' size='mini'>{{ row.creditStatusStr }}</el-tag> <el-tag v-if='row.creditStatus==="CREATED"' size='mini'>{{ row.creditStatusStr }}</el-tag>
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<template #default='{ row }'> <template #default='{ row }'>
<el-button type='text' @click='handleDetail(row)'>详情</el-button> <el-button type='text' @click='handleDetail(row)'>详情</el-button>
<template v-if='row.creditResult==="MANUAL_REJECT" || row.creditResult==="REJECT"'> <template v-if='row.creditResult==="MANUAL_REJECT" || row.creditResult==="REJECT"'>
<el-button type='text' @click='handleDetail(row)'>申述</el-button> <el-button type='text' @click='handlePlead(row)'>申述</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
...@@ -139,6 +139,16 @@ ...@@ -139,6 +139,16 @@
background background
@current-change='handleCurrentChange' @current-change='handleCurrentChange'
/> />
<!--申述-->
<template v-if='visible'>
<plead
:dialog-visible='visible'
:item='item'
@handleClose='visible = false'
@callback='fetchData'
/>
</template>
</div> </div>
</template> </template>
...@@ -151,6 +161,11 @@ ...@@ -151,6 +161,11 @@
name: 'CreditList', name: 'CreditList',
data() { data() {
return { return {
// 申述
visible: false,
item: null,
checkList: ['授信编号', '授信类型', '客户信息', '对应BD', '商户区域', '申请金额(元)', '审核结果(元)', '审批状态', '审批结果', '创建时间'], checkList: ['授信编号', '授信类型', '客户信息', '对应BD', '商户区域', '申请金额(元)', '审核结果(元)', '审批状态', '审批结果', '创建时间'],
columns: [ columns: [
{ {
...@@ -166,6 +181,7 @@ ...@@ -166,6 +181,7 @@
}, },
{ {
order: 3, order: 3,
width: 115,
label: '客户信息', label: '客户信息',
prop: 'realName' prop: 'realName'
}, },
...@@ -294,9 +310,10 @@ ...@@ -294,9 +310,10 @@
}, },
// 授信申述 // 授信申述
handlePlead() { handlePlead(row) {
this.visible = true
this.item = row
} }
} }
} }
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
<el-tag v-if='row.creditResult==="MANUAL_REJECT"' type='danger' size='mini'>{{ row.creditResultStr <el-tag v-if='row.creditResult==="MANUAL_REJECT"' type='danger' size='mini'>{{ row.creditResultStr
}}</el-tag> }}</el-tag>
<el-tag v-if='row.creditResult==="RETRIAL"' type='warning' size='mini'>{{ row.creditResultStr }}</el-tag> <el-tag v-if='row.creditResult==="RETRIAL"' type='warning' size='mini'>{{ row.creditResultStr }}</el-tag>
<el-tag v-if='!row.creditResult' type='info' size='mini'>未出结果</el-tag>
</span> </span>
<span v-else>{{ row[item.prop] }}</span> <span v-else>{{ row[item.prop] }}</span>
</template> </template>
......
...@@ -19,19 +19,19 @@ ...@@ -19,19 +19,19 @@
<el-descriptions-item label-class-name='labelCls' label='授信状态'> <el-descriptions-item label-class-name='labelCls' label='授信状态'>
<el-tag v-if='detail.preBasisInfoResponse.preStateStr==="授信中"' type='warning'> <el-tag v-if='detail.preBasisInfoResponse.preStateStr==="授信中"' size='medium' type='warning'>
{{ detail.preBasisInfoResponse.preStateStr }} {{ detail.preBasisInfoResponse.preStateStr }}
</el-tag> </el-tag>
<el-tag v-else-if='detail.preBasisInfoResponse.preStateStr==="授信通过"' type='success'> <el-tag v-else-if='detail.preBasisInfoResponse.preStateStr==="授信通过"' size='medium' type='success'>
{{ detail.preBasisInfoResponse.preStateStr }} {{ detail.preBasisInfoResponse.preStateStr }}
</el-tag> </el-tag>
<el-tag v-else-if='detail.preBasisInfoResponse.preStateStr==="授信拒绝"' type='danger'> <el-tag v-else-if='detail.preBasisInfoResponse.preStateStr==="授信拒绝"' size='medium' type='danger'>
{{ detail.preBasisInfoResponse.preStateStr }} {{ detail.preBasisInfoResponse.preStateStr }}
</el-tag> </el-tag>
<template v-if='detail.preBasisInfoResponse.preState === "PRE_CREDIT_REFUSE"'> <template v-if='detail.preBasisInfoResponse.preState === "PRE_CREDIT_REFUSE"'>
<el-button @click='handlePlead' size='mini' type='primary'>申述</el-button> <el-button @click='handlePlead' size='mini' style='margin-left: 10px' type='primary'>申述</el-button>
</template> </template>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='商户区域'>{{ detail.preBasisInfoResponse.regionName }} <el-descriptions-item label-class-name='labelCls' label='商户区域'>{{ detail.preBasisInfoResponse.regionName }}
...@@ -41,18 +41,13 @@ ...@@ -41,18 +41,13 @@
</el-descriptions> </el-descriptions>
<div v-if='detail.reportResponse!==null'> <div v-if='reportResponse!==null && reportResponse.length'>
<block-header title='预审报告' /> <pre-report :report='reportResponse' />
<el-descriptions style='margin-bottom: 20px;' border size='small' :column='3'>
<el-descriptions-item label-class-name='labelCls' label='规则名称'>1</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='规则名称'>1</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='审批建议'>1</el-descriptions-item>
</el-descriptions>
</div> </div>
<!--操作日志--> <!--操作日志-->
<div v-if='detail.operationLogResponse && detail.operationLogResponse.length'> <div v-if='operationLogResponse && operationLogResponse.length'>
<operation-log :logData='detail.operationLogResponse' /> <operation-log :log='operationLogResponse' />
</div> </div>
<!--申述弹框--> <!--申述弹框-->
...@@ -69,16 +64,20 @@ ...@@ -69,16 +64,20 @@
<script> <script>
import API from '@/server/api' import API from '@/server/api'
import PreOperationLog from '@/components/pre-operation-log'
export default { export default {
name: 'PreDetail', name: 'PreDetail',
components: { PreOperationLog },
data() { data() {
return { return {
visible: false, visible: false,
item: null, item: null,
preCreditNo: '', preCreditNo: '',
detail: null detail: null,
reportResponse:[],
operationLogResponse:[]
} }
}, },
async created() { async created() {
...@@ -94,7 +93,16 @@ ...@@ -94,7 +93,16 @@
const result = await API.preCreditDetail({ const result = await API.preCreditDetail({
preCreditNo preCreditNo
}) })
this.detail = result.result const data = result.result
const {reportResponse,operationLogResponse} = data;
console.log(data,'返回数据')
this.reportResponse = reportResponse;
this.operationLogResponse = operationLogResponse;
this.detail = data;
}, },
// 申述 // 申述
handlePlead() { handlePlead() {
......
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