Commit 6b22ae9a authored by caimeng's avatar caimeng

修改提额那啥

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