Commit 6b22ae9a authored by caimeng's avatar caimeng

修改提额那啥

parent 2910c259
......@@ -8,7 +8,7 @@
<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'
<el-radio v-for='(a,index) in opinionEnum'
:key='index'
:label='a.code'>{{ a.desc }}
</el-radio>
......@@ -21,7 +21,7 @@
<el-row>
<el-col :span='10'>
<el-form-item prop='loanIntentionNum' label='申请期数(期)'>
<el-input v-model='form.loanIntentionNum' style='width: 100%;' clearable />
<el-input v-model='form.loanIntentionNum' disabled style='width: 100%;' clearable />
</el-form-item>
</el-col>
</el-row>
......@@ -53,7 +53,7 @@
style='width: 100%;'
clearable>
<el-option
v-for='(f,index) in a'
v-for='(f,index) in searchData.financierResponseList'
:key='index'
:value='f.capitalCodeLoanSign'
:label='f.message'
......@@ -185,21 +185,9 @@
hasRisk: false,
riskResult: null,
manualAmount: '',
a: [
{
capitalCodeLoanSign: 'OWNBUSINESS_DR',
capitalCode: 'OWNBUSINESS',
loanSign: 'DR',
message: '自营-鼎荣'
},
{
capitalCodeLoanSign: 'FENGSHENGBUSINESS_ZY',
capitalCode: 'FENGSHENGBUSINESS',
loanSign: 'ZY',
message: '自营-鼎荣1'
}
],
creditNo: '',
opinionEnum: [],
form: {
creditType: '',
creditAmount: '',
......@@ -223,7 +211,7 @@
console.log(this.item, 'nash ')
if (this.item !== null) {
const { clientDetail, projectInfoResponse } = this.item
const { creditNo } = clientDetail
const { creditNo, creditType } = clientDetail
const { manualAmount, loanIntentionNum } = projectInfoResponse
this.creditNo = creditNo
this.form.loanIntentionNum = loanIntentionNum
......@@ -231,8 +219,24 @@
this.form.perAllotAmount = manualAmount
this.form.creditNo = creditNo
// 那啥
if (this.searchData !== null) {
const opinionEnum = this.searchData.opinionEnumResponses
const opinionArr = []
opinionEnum.forEach(item => {
if (creditType === 'ADD_CREDIT' && item.code !== 'BACK') {
opinionArr.push(item)
}
})
this.opinionEnum = opinionArr
}
// 初始化丰盛查询结果
await this.initRiskResult()
}
},
methods: {
......@@ -241,7 +245,6 @@
if (item) {
const { capitalCode, loanSign } = item
if (capitalCode === 'FENGSHENGBUSINESS') {
this.form.perAllotAmount = this.manualAmount
this.$refs['dForm'].clearValidate('perAllotAmount')
}
this.form.capitalCode = capitalCode
......@@ -251,7 +254,9 @@
// 风审查询
async handleRisk() {
if (!this.hasRisk) {
const { creditNo, loanIntentionNum } = this.item
const { clientDetail, projectInfoResponse } = this.item
const { creditNo } = clientDetail
const { loanIntentionNum } = projectInfoResponse
const creditAmount = this.form.perAllotAmount
if (!creditAmount || !/^[0-9]*$/.test(creditAmount)) {
this.$message({
......
......@@ -147,11 +147,11 @@
</el-table-column>
<template v-if='isOnLine'>
<el-table-column width='200' fixed='right' align='center' label='操作'>
<el-table-column fixed='right' align='center' label='操作'>
<template #default='{ row }'>
<el-button size='mini' type='danger' @click.native='handleApproval(row)'>审批</el-button>
<el-button size='mini' type='success' @click='handleView(row)'>详情</el-button>
<el-button size='mini' type='primary' @click='handleReassignment(row)'>转派</el-button>
<el-button size='mini' type='text' @click.native='handleApproval(row)'>审批</el-button>
<el-button size='mini' type='text' @click='handleView(row)'>详情</el-button>
<el-button size='mini' type='text' @click='handleReassignment(row)'>转派</el-button>
</template>
</el-table-column>
</template>
......
......@@ -37,6 +37,7 @@
name: 'PreDetail',
data() {
return {
isIncrease:false,
creditNo: '',
detail: null
}
......@@ -46,6 +47,7 @@
if (query && query.creditNo) {
this.creditNo = query.creditNo
await this.init()
}
},
......@@ -55,7 +57,11 @@
const result = await API.creditDetail({
creditNo
})
this.detail = result.result
this.detail = result.result;
if(this.$route.query && this.$route.query.increase){
this.isIncrease = true;
}
}
}
}
......
......@@ -252,7 +252,10 @@
const { creditNo } = row
this.$router.push({
path: '/credit/detail',
query: { creditNo }
query: {
creditNo,
increase:true
}
})
},
handleCurrentChange(val) {
......
......@@ -21,7 +21,8 @@
<el-input v-model='form.memo' type='textarea' clearable placeholder='请输入' />
</el-form-item>
<template v-if='searchData!==null && payChannelApiResponses.length && type==="confirm"'>
<!--<template v-if='searchData!==null && payChannelApiResponses.length && type==="confirm"'>-->
<template v-if='false'>
<el-form-item prop='payChannelApi' label='放款渠道'>
<el-radio-group v-model='form.payChannelApi'>
......@@ -84,7 +85,7 @@
]
},
type: '',
payChannelApiResponses: [],
//payChannelApiResponses: [],
form: {
loanAmount: '',
clientName: '',
......@@ -93,7 +94,7 @@
memo: '',
stepsNo: '',
userId: '',
payChannelApi: ''
//payChannelApi: ''
}
}
},
......@@ -102,7 +103,7 @@
},
created() {
if (this.item !== null) {
const { realName, loanSign, loanAmount, type, currentAction, orderNo, stepsNo } = this.item
const { realName, loanAmount, type, currentAction, orderNo, stepsNo } = this.item
this.type = type
this.form.clientName = realName
this.form.loanAmount = loanAmount
......@@ -110,14 +111,6 @@
this.form.orderNo = orderNo
this.form.stepsNo = stepsNo
const payChannel = []
this.searchData.payChannelApiResponses.forEach(item => {
if (item.loanSign === loanSign) {
payChannel.push(item)
}
})
this.payChannelApiResponses = payChannel
}
},
methods: {
......
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