Commit 73c6b8c8 authored by caimeng's avatar caimeng

修改提交

parent 9b8d688c
...@@ -60,7 +60,12 @@ ...@@ -60,7 +60,12 @@
</template> </template>
<template v-if='form.capitalCode==="FENGSHENGBUSINESS"'> <template v-if='form.capitalCode==="FENGSHENGBUSINESS"'>
<el-form-item prop='riskResult' label='风审查询结果'> <el-form-item prop='riskResult' label='风审查询结果'>
<el-tag v-if='riskResult'>结果</el-tag> <template v-if='riskResult!==null'>
<el-tag v-if='riskResult.status==="CREDIT_ING"' type='warning'>{{ riskResult.statusDesc }}</el-tag>
<el-tag v-else-if='riskResult.status==="YES"' type='success'>{{ riskResult.statusDesc }}</el-tag>
<el-tag v-else type='danger'>{{ riskResult.statusDesc }}</el-tag>
</template>
<el-tag v-else type='info' size='mini'>结果未出</el-tag> <el-tag v-else type='info' size='mini'>结果未出</el-tag>
</el-form-item> </el-form-item>
</template> </template>
...@@ -81,8 +86,13 @@ ...@@ -81,8 +86,13 @@
</div> </div>
<span slot='footer' class='dialog-footer'> <span slot='footer' class='dialog-footer'>
<el-button type='primary' @click='onSubmit("dForm")'>确 定</el-button> <template v-if='form.capitalCode!=="FENGSHENGBUSINESS"'>
<el-button @click='handleClose'>取 消</el-button> <el-button type='primary' @click='onSubmit("dForm")'>确 定</el-button>
</template>
<template v-else-if='riskResult.status==="YES"'>
<el-button type='primary' @click='onSubmit("dForm")'>确 定</el-button>
</template>
<el-button @click='handleClose'>取 消</el-button>
</span> </span>
</el-dialog> </el-dialog>
</template> </template>
...@@ -156,9 +166,9 @@ ...@@ -156,9 +166,9 @@
] ]
}, },
hasRisk: false, hasRisk: false,
riskResult: '', riskResult: null,
form: { form: {
creditAmount:'', creditAmount: '',
applyAmount: '', applyAmount: '',
approveStatus: '', approveStatus: '',
capitalCode: '', capitalCode: '',
...@@ -176,7 +186,7 @@ ...@@ -176,7 +186,7 @@
async mounted() { async mounted() {
console.log(this.item, 'nash ') console.log(this.item, 'nash ')
if (this.item !== null) { if (this.item !== null) {
const { applyAmount,creditAmount, creditNo } = this.item const { applyAmount, creditAmount, creditNo } = this.item
this.form.applyAmount = this.money(applyAmount) this.form.applyAmount = this.money(applyAmount)
this.form.creditAmount = this.money(creditAmount) this.form.creditAmount = this.money(creditAmount)
this.form.creditNo = creditNo this.form.creditNo = creditNo
......
...@@ -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'>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<el-descriptions-item label-class-name='labelCls' label='身份证号'>{{baseInfo.idCard}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='身份证号'>{{baseInfo.idCard}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='学历'>{{baseInfo.workIndustryStr}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='学历'>{{baseInfo.educationCodeStr}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='婚姻状况'>{{baseInfo.marriageStr}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='婚姻状况'>{{baseInfo.marriageStr}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='年龄(周岁)'>{{baseInfo.applyDate}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='年龄(周岁)'>{{baseInfo.applyDate}}</el-descriptions-item>
<el-descriptions-item label-class-name='labelCls' label='工作行业'>{{baseInfo.workIndustryStr}}</el-descriptions-item> <el-descriptions-item label-class-name='labelCls' label='工作行业'>{{baseInfo.workIndustryStr}}</el-descriptions-item>
......
...@@ -86,9 +86,6 @@ ...@@ -86,9 +86,6 @@
<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>
<el-tag v-if='row.creditStatus==="CREDIT_ING"' type='warning' size='mini'>{{ row.creditStatusStr }}</el-tag> <el-tag v-if='row.creditStatus==="CREDIT_ING"' type='warning' size='mini'>{{ row.creditStatusStr }}</el-tag>
<el-tag v-if='row.creditStatus==="MANUAL_CREDIT_ING"' type='warning' size='mini'>{{ row.creditStatusStr
}}</el-tag>
<el-tag v-if='row.creditStatus==="MANUAL_BACK"' type='danger' size='mini'>{{ row.creditStatusStr }}</el-tag>
<el-tag v-if='row.creditStatus==="FINISHED"' type='success' size='mini'>{{ row.creditStatusStr }}</el-tag> <el-tag v-if='row.creditStatus==="FINISHED"' type='success' size='mini'>{{ row.creditStatusStr }}</el-tag>
</span> </span>
<span v-else>{{ row[item.prop] }}</span> <span v-else>{{ row[item.prop] }}</span>
...@@ -306,7 +303,7 @@ ...@@ -306,7 +303,7 @@
} }
}, },
// 申述 // 审批
handleApproval(row) { handleApproval(row) {
this.ApprovalItem = row this.ApprovalItem = row
this.ApprovalVisible = true this.ApprovalVisible = true
......
...@@ -64,9 +64,11 @@ ...@@ -64,9 +64,11 @@
> >
<template #default='{ row }'> <template #default='{ row }'>
<div v-if="item.prop==='preStatusStr'"> <div v-if="item.prop==='preStatusStr'">
<el-tag v-if='row[item.prop]==="授信中"' type='warning'>{{ row[item.prop] }}</el-tag> <el-tag v-if='row[item.prop]==="审核中"' type='warning'>{{ row[item.prop] }}</el-tag>
<el-tag v-else-if='row[item.prop]==="授信通过"' type='success'>{{ row[item.prop] }}</el-tag> <el-tag v-else-if='row[item.prop]==="审核通过"' type='success'>{{ row[item.prop] }}</el-tag>
<el-tag v-else-if='row[item.prop]==="授信拒绝"' type='danger'>{{ row[item.prop] }}</el-tag> <el-tag v-else-if='row[item.prop]==="审核拒绝"' type='danger'>{{ row[item.prop] }}</el-tag>
<el-tag v-else size='mini'>{{ row[item.prop] }}</el-tag>
</div> </div>
<span v-else>{{ row[item.prop] }}</span> <span v-else>{{ row[item.prop] }}</span>
</template> </template>
...@@ -155,8 +157,7 @@ ...@@ -155,8 +157,7 @@
{ {
order: 7, order: 7,
label: '申请时间', label: '申请时间',
prop: 'applyDate', prop: 'applyDate'
width: 110
}, },
{ {
order: 8, order: 8,
......
...@@ -81,10 +81,11 @@ ...@@ -81,10 +81,11 @@
fixed='right' fixed='right'
align='center' align='center'
label='操作' label='操作'
width='200'
> >
<template #default='{ row }'> <template #default='{ row }'>
<template v-if='row.loanStatus==="SUBMITED" && row.stepsNo==="002"'> <template v-if='row.loanStatus==="SUBMITED" && row.stepsNo==="002"'>
<el-button size='mini' type='primary' @click='handleAudit(row)'>稽核</el-button> <el-button size='mini' type='primary' @click='handleAudit(row)'>稽核审批</el-button>
</template> </template>
<el-button size='mini' type='default' @click='handleDetail(row)'>详情</el-button> <el-button size='mini' type='default' @click='handleDetail(row)'>详情</el-button>
</template> </template>
......
...@@ -116,27 +116,33 @@ ...@@ -116,27 +116,33 @@
<!--放款确认,放款取消--> <!--放款确认,放款取消-->
<el-dialog <template v-if='DialogVisible'>
:title='DialogTitle' <el-dialog
:visible.sync='DialogVisible' :title='DialogTitle'
width='30%' :visible.sync='DialogVisible'
center> :destroy-on-close='true'
<el-form ref='dialogForm' :model='dialogForm' label-suffix=':'> width='30%'>
<el-form-item label='客户名称'> <div class='page'>
<div>{{ dialogForm.clientName }}</div> <el-form ref='dialogForm' :model='dialogForm' :rules='rules' label-width='100px' class='form-inline'
</el-form-item> label-suffix=':'>
<el-form-item label='借款金额'> <el-form-item label='客户名称'>
<div>{{ dialogForm.loanAmount }}</div> <span>{{ dialogForm.clientName }}</span>
</el-form-item> </el-form-item>
<el-form-item label='确认备注'> <el-form-item label='借款金额'>
<el-input type='textarea' :rows='2' v-model='dialogForm.memo' placeholder='请输入' /> <span>{{ dialogForm.loanAmount }}</span>
</el-form-item> </el-form-item>
</el-form> <el-form-item prop='memo' label='确认备注'>
<div slot='footer' class='dialog-footer'> <el-input v-model='dialogForm.memo' type='textarea' clearable placeholder='请输入' />
<el-button type='primary' @click='DialogVisible = false'>确 定</el-button> </el-form-item>
<el-button @click='DialogVisible = false'>取 消</el-button> </el-form>
</div> </div>
</el-dialog> <div slot='footer' class='dialog-footer'>
<el-button type='primary' @click='handleLoan("dialogForm")'>确 定</el-button>
<el-button @click='DialogVisible = false'>取 消</el-button>
</div>
</el-dialog>
</template>
</div> </div>
</template> </template>
...@@ -156,7 +162,7 @@ ...@@ -156,7 +162,7 @@
loanAmount: '', loanAmount: '',
clientName: '', clientName: '',
currentAction: '', currentAction: '',
loanNo: '', orderNo: '',
memo: '', memo: '',
stepsNo: '', stepsNo: '',
userId: '' userId: ''
...@@ -221,6 +227,15 @@ ...@@ -221,6 +227,15 @@
listLoading: true, listLoading: true,
pickerConfig: this.datePickerOptions, pickerConfig: this.datePickerOptions,
total: 1, total: 1,
rules: {
memo: [
{
required: true,
trigger: 'blur',
message: '请输入备注'
}
]
},
queryForm: { queryForm: {
current: 1, current: 1,
size: 10, size: 10,
...@@ -267,10 +282,17 @@ ...@@ -267,10 +282,17 @@
} }
this.fetchData() this.fetchData()
}, },
handleDialog(row) { handleDialog(row, type) {
const { realName, loanAmount } = row const { realName, loanAmount, currentAction, orderNo, stepsNo } = row
console.log(row, '当前行信息') console.log(row, '当前行信息')
this.DialogVisible = true this.DialogVisible = true
this.DialogTitle = type === 'confirm' ? '确认放款' : '取消放款'
this.type = type
this.dialogForm.clientName = realName
this.dialogForm.loanAmount = loanAmount
this.dialogForm.currentAction = currentAction
this.dialogForm.orderNo = orderNo
this.dialogForm.stepsNo = stepsNo
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
...@@ -287,6 +309,34 @@ ...@@ -287,6 +309,34 @@
this.list = records this.list = records
this.total = total this.total = total
this.listLoading = false this.listLoading = false
},
handleLoan(formName) {
this.$refs[formName].validate(async (valid) => {
if (valid) {
const form = this.dialogForm
form.userId = this.user.userId
console.log(form, '表单书')
let result
if (this.type === 'confirm') {
result = await API.loanConfirm({
...form
})
} else {
result = await API.loanCancel({
...form
})
}
if (result.success) {
this.$message({
type: 'success',
message: '操作成功!'
})
}
}
})
} }
} }
} }
......
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