Commit e19c9d08 authored by caimeng's avatar caimeng

修改审批

parent 8412a4b6
<!-- 预授信申述 --> <!-- 预授信申述 -->
<template> <template>
<el-dialog <el-scrollbar class='com-approval'>
:visible.sync='dialogVisible' <block-header title='审批'></block-header>
:before-close='handleClose' <!--搜索-->
:destroy-on-close='true' <el-form ref='dForm' label-suffix=':' label-width='120px' :rules='rules' :model='form' class='form-inline'>
width='45%'
title='审批'>
<div class='page'>
<!--搜索-->
<el-form ref='dForm' label-suffix=':' label-width='120px' :rules='rules' :model='form' class='form-inline'>
<el-form-item label='申请额度(元)'>
<el-row>
<el-col :span='14'>
<el-input v-model='form.applyAmount' disabled style='width: 100%;' clearable />
</el-col>
</el-row>
</el-form-item>
<el-form-item label='授信额度(元)'> <el-form-item prop='approveStatus' label='审批意见'>
<el-row> <template v-if='searchData!==null'>
<el-col :span='14'> <el-radio-group v-model='form.approveStatus'>
<el-input v-model='form.creditAmount' disabled style='width: 100%;' clearable /> <el-radio v-for='(a,index) in searchData.opinionEnumResponses'
</el-col> :key='index'
</el-row> :label='a.code'>{{ a.desc }}
</el-form-item> </el-radio>
</el-radio-group>
<el-form-item label='申请期数(期)'>
<el-row>
<el-col :span='14'>
<el-input v-model='form.loanIntentionNum' disabled style='width: 100%;' clearable />
</el-col>
</el-row>
</el-form-item>
<template v-if='manualAmount && form.capitalCode==="FENGSHENGBUSINESS"'>
<el-form-item prop='perAllotAmount' label='人审额度(元)'>
<el-row>
<el-col :span='14'>
<span>{{ money(manualAmount) }}</span>
</el-col>
</el-row>
</el-form-item>
</template> </template>
</el-form-item>
<el-form-item v-else prop='perAllotAmount' label='人审额度(元)'> <template v-if='form.approveStatus==="PASS"'>
<el-row>
<el-col :span='14'>
<el-input v-model='form.perAllotAmount' style='width: 100%;' clearable placeholder='请输入人审额度' />
</el-col>
</el-row>
</el-form-item>
<template v-if='searchData!==null'> <el-row>
<el-form-item prop='capitalCodeLoanSign' label='选择资方'> <el-col :span='10'>
<el-row> <template v-if='manualAmount && form.capitalCode==="FENGSHENGBUSINESS"'>
<el-col :span='14'> <el-form-item prop='perAllotAmount' label='人审额度'>
<el-select v-model='form.capitalCodeLoanSign' style='width: 100%;' clearable> <el-row>
<el-col :span='14'>
<span>{{ money(manualAmount) }}</span>
</el-col>
</el-row>
</el-form-item>
</template>
<el-form-item v-else prop='perAllotAmount' label='人审额度'>
<el-input v-model='form.perAllotAmount' style='width: 100%;' clearable placeholder='请输入人审额度' />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span='10'>
<template v-if='searchData!==null'>
<el-form-item prop='capitalCodeLoanSign' label='选择资方'>
<el-select
v-model='form.capitalCodeLoanSign'
:popper-append-to-body='false'
style='width: 100%;'
clearable>
<el-option <el-option
v-for='(f,index) in searchData.financierResponseList' v-for='(f,index) in a'
:key='index' :key='index'
@click.native='handleCapitalChange(f)'
:value='f.capitalCodeLoanSign' :value='f.capitalCodeLoanSign'
:label='f.message'> :label='f.message'
@click.native='handleCapitalChange(f)'>
</el-option> </el-option>
</el-select> </el-select>
</el-col> </el-form-item>
</template>
</el-col>
<template v-if='form.capitalCode==="FENGSHENGBUSINESS"'> <el-col :span='4'>
<el-col :span='8'> <template v-if='form.capitalCode==="FENGSHENGBUSINESS"'>
<el-button style='margin-left: 10px' :disabled='hasRisk' type='primary' @click='handleRisk'>风审查询 <el-button style='margin-left: 10px' :disabled='hasRisk' type='primary' @click='handleRisk'>风审查询
</el-button> </el-button>
</el-col> </template>
</template> </el-col>
</el-row>
</el-row>
</el-form-item>
</template>
<template v-if='form.capitalCode==="FENGSHENGBUSINESS"'> <template v-if='form.capitalCode==="FENGSHENGBUSINESS"'>
<el-form-item label='风审查询结果'> <el-form-item label='风审结果'>
<template v-if='riskResult!==null'> <template v-if='riskResult!==null'>
<el-tag v-if='riskResult.status==="CREDIT_ING"' type='warning'>{{ riskResult.statusDesc }}</el-tag> <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-if='riskResult.status==="YES"' type='success'>{{ riskResult.statusDesc }}</el-tag>
...@@ -87,46 +74,40 @@ ...@@ -87,46 +74,40 @@
<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>
<el-form-item prop='memo' label='审批备注'>
<el-input v-model='form.memo' type='textarea' clearable placeholder='请输入审批备注' />
</el-form-item>
<el-form-item prop='approveStatus' label='审批意见'>
<template v-if='searchData!==null'>
<el-radio-group v-model='form.approveStatus'>
<el-radio v-for='(a,index) in searchData.opinionEnumResponses'
:key='index'
:label='a.code'>{{ a.desc }}
</el-radio>
</el-radio-group>
</template>
</el-form-item>
</el-form>
</div>
<span slot='footer' class='dialog-footer'>
<template v-if='form.capitalCode!=="FENGSHENGBUSINESS"'>
<el-button type='primary' @click='onSubmit("dForm")'>确 定</el-button>
</template> </template>
<template v-else-if='riskResult!==null && riskResult.status==="YES"'>
<el-button type='primary' @click='onSubmit("dForm")'>确 定</el-button>
</template> <el-row>
<el-button @click='handleClose'>取 消</el-button> <el-col :span='10'>
</span> <el-form-item prop='memo' label='审批备注'>
</el-dialog> <el-input v-model='form.memo' type='textarea' clearable placeholder='请输入审批备注' />
</el-form-item>
</el-col>
</el-row>
<el-form-item>
<template v-if='form.capitalCode!=="FENGSHENGBUSINESS"'>
<el-button type='primary' @click='onSubmit("dForm")'>确 定</el-button>
</template>
<template v-else-if='riskResult!==null && riskResult.status==="YES"'>
<el-button type='primary' @click='onSubmit("dForm")'>确 定</el-button>
</template>
<el-button type='default' @click='onBack'>取 消</el-button>
</el-form-item>
</el-form>
</el-scrollbar>
</template> </template>
<script> <script>
import API from '@/server/api' import API from '@/server/api'
import _ from 'lodash'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
name: 'Approval', name: 'Approval',
props: { props: {
dialogVisible: {
type: Boolean,
require: true
},
item: { item: {
type: Object, type: Object,
require: true require: true
...@@ -178,7 +159,23 @@ ...@@ -178,7 +159,23 @@
hasRisk: false, hasRisk: false,
riskResult: null, riskResult: null,
manualAmount: '', manualAmount: '',
a: [
{
capitalCodeLoanSign: 'OWNBUSINESS_DR',
capitalCode: 'OWNBUSINESS',
loanSign: 'DR',
message: '自营-鼎荣'
},
{
capitalCodeLoanSign: 'FENGSHENGBUSINESS_ZY',
capitalCode: 'FENGSHENGBUSINESS',
loanSign: 'ZY',
message: '自营-鼎荣1'
}
],
creditNo: '',
form: { form: {
creditType: '',
creditAmount: '', creditAmount: '',
applyAmount: '', applyAmount: '',
approveStatus: '', approveStatus: '',
...@@ -188,6 +185,7 @@ ...@@ -188,6 +185,7 @@
memo: '', memo: '',
perAllotAmount: '', perAllotAmount: '',
loanIntentionNum: '', loanIntentionNum: '',
capitalCodeLoanSign: '',
userId: '' userId: ''
} }
} }
...@@ -198,9 +196,13 @@ ...@@ -198,9 +196,13 @@
async mounted() { async mounted() {
console.log(this.item, 'nash ') console.log(this.item, 'nash ')
if (this.item !== null) { if (this.item !== null) {
const { applyAmount, manualAmount, loanIntentionNum, creditAmount, creditNo } = this.item const { clientDetail, projectInfoResponse } = this.item
this.form.applyAmount = this.money(applyAmount) const { creditNo } = clientDetail
this.form.creditAmount = this.money(creditAmount) const { manualAmount,loanIntentionNum } = projectInfoResponse
this.creditNo = creditNo
//const { applyAmount, manualAmount, loanIntentionNum, creditAmount, creditNo } = this.item
//this.form.applyAmount = this.money(applyAmount)
//this.form.creditAmount = this.money(creditAmount)
this.form.loanIntentionNum = loanIntentionNum this.form.loanIntentionNum = loanIntentionNum
this.manualAmount = manualAmount this.manualAmount = manualAmount
this.form.perAllotAmount = manualAmount this.form.perAllotAmount = manualAmount
...@@ -215,8 +217,8 @@ ...@@ -215,8 +217,8 @@
handleCapitalChange(item) { handleCapitalChange(item) {
if (item) { if (item) {
const { capitalCode, loanSign } = item const { capitalCode, loanSign } = item
if(capitalCode==='FENGSHENGBUSINESS'){ if (capitalCode === 'FENGSHENGBUSINESS') {
this.form.perAllotAmount = this.manualAmount; this.form.perAllotAmount = this.manualAmount
this.$refs['dForm'].clearValidate('perAllotAmount') this.$refs['dForm'].clearValidate('perAllotAmount')
} }
this.form.capitalCode = capitalCode this.form.capitalCode = capitalCode
...@@ -243,7 +245,6 @@ ...@@ -243,7 +245,6 @@
}) })
if (result.success) { if (result.success) {
this.hasRisk = true this.hasRisk = true
//await this.initRiskResult()
} }
} else { } else {
await this.initRiskResult() await this.initRiskResult()
...@@ -254,7 +255,7 @@ ...@@ -254,7 +255,7 @@
// 风审查询结果 // 风审查询结果
async initRiskResult() { async initRiskResult() {
const { creditNo } = this.item const creditNo = this.creditNo
const result = await API.initCapitalResult({ const result = await API.initCapitalResult({
creditNo creditNo
}) })
...@@ -292,8 +293,7 @@ ...@@ -292,8 +293,7 @@
message: '审批成功' message: '审批成功'
}) })
this.$emit('handleClose') this.onBack();
this.$emit('callback')
} }
}).catch((e) => { }).catch((e) => {
console.log(e, '取消申述了') console.log(e, '取消申述了')
...@@ -301,34 +301,21 @@ ...@@ -301,34 +301,21 @@
} }
}) })
}, },
handleClose() { onBack() {
this.$emit('handleClose') this.$router.back()
} }
} }
} }
</script> </script>
<style lang='scss' scoped> <style scoped lang='scss'>
.page-fence { html body {
::v-deep { position: inherit;
i {
cursor: pointer;
}
}
box-sizing: border-box;
padding: 20px;
}
</style>
<style lang='scss'>
.custom-table-checkbox {
.el-checkbox {
display: block !important;
margin: 0 0 $base-padding/4 0;
}
} }
.action-bar { .com-approval {
margin-bottom: 15px; //position: relative;
margin-top: 15px;
} }
</style> </style>
<template> <template>
<div v-if='detail!==null' class='page'> <div v-if='detail!==null' class='page'>
<!--用户基础信息--> <!--用户基础信息-->
<template v-if='detail.clientDetail!==null'> <template v-if='detail.clientDetail!==null'>
<user-base-info :base-info='detail.clientDetail' /> <user-base-info :base-info='detail.clientDetail' />
...@@ -27,6 +26,8 @@ ...@@ -27,6 +26,8 @@
<pre-plead /> <pre-plead />
</template> </template>
<!-- 审批操作 -->
<Approval :item='item' />
</div> </div>
</template> </template>
...@@ -38,6 +39,11 @@ ...@@ -38,6 +39,11 @@
name: 'ApprovalDetail', name: 'ApprovalDetail',
data() { data() {
return { return {
// 审批相关
visible: false,
item: null,
creditNo: '', creditNo: '',
detail: null detail: null
} }
...@@ -46,7 +52,6 @@ ...@@ -46,7 +52,6 @@
const { query } = this.$route const { query } = this.$route
if (query && query.creditNo) { if (query && query.creditNo) {
this.creditNo = query.creditNo this.creditNo = query.creditNo
await this.init() await this.init()
} }
}, },
...@@ -56,9 +61,15 @@ ...@@ -56,9 +61,15 @@
const result = await API.initApproveDetail({ const result = await API.initApproveDetail({
creditNo creditNo
}) })
this.detail = result.result; this.detail = result.result
// 判断是否有审批
if (this.$route.query && this.$route.query.approval) {
this.visible = true
this.item = result.result
}
console.log('审批详情',this.detail) console.log('审批详情', this.detail)
} }
} }
} }
......
...@@ -159,17 +159,6 @@ ...@@ -159,17 +159,6 @@
/> />
</template> </template>
<!--审批-->
<template v-if='ApprovalVisible'>
<Approval
:dialog-visible='ApprovalVisible'
:item='ApprovalItem'
@handleClose='()=>{
this.ApprovalVisible = false;
this.fetchData()
}'
@callback='fetchData' />
</template>
</div> </div>
</template> </template>
...@@ -195,11 +184,7 @@ ...@@ -195,11 +184,7 @@
item: null, item: null,
// 审批相关 checkList: ['授信编号', '客户信息', '对应BD', '商户区域', '申请金额(元)', '授信金额(元)', '审批状态', '申请时间'],
ApprovalVisible: false,
ApprovalItem: null,
checkList: ['授信编号', '客户信息', '对应BD', '商户区域', '申请金额(元)', '授信金额(元)', '审批状态', '申请时间'],
columns: [ columns: [
{ {
order: 1, order: 1,
...@@ -289,7 +274,7 @@ ...@@ -289,7 +274,7 @@
if (result.success) { if (result.success) {
console.log(result, '当前的用户状态') console.log(result, '当前的用户状态')
const { userDutyState } = result.result const { userDutyState } = result.result
this.isOnLine = userDutyState === 'ONLINE'; this.isOnLine = userDutyState === 'ONLINE'
} }
}, },
onSearch() { onSearch() {
...@@ -345,8 +330,14 @@ ...@@ -345,8 +330,14 @@
}, },
// 审批 // 审批
handleApproval(row) { handleApproval(row) {
this.ApprovalItem = row const { creditNo } = row
this.ApprovalVisible = true this.$router.push({
path: '/approval/detail',
query: {
creditNo,
approval: 'approval'
}
})
}, },
// 转派 // 转派
handleReassignment(row) { handleReassignment(row) {
......
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