Commit 566093f0 authored by caimeng's avatar caimeng

7月4日修改bug

parent 6b22ae9a
......@@ -28,7 +28,7 @@
<el-row>
<el-col :span='10'>
<template v-if='manualAmount && form.capitalCode==="FENGSHENGBUSINESS"'>
<template v-if='riskResult!==null && form.capitalCode==="FENGSHENGBUSINESS" '>
<el-form-item prop='perAllotAmount' label='人审额度'>
<el-row>
<el-col :span='14'>
......@@ -218,13 +218,18 @@
this.manualAmount = manualAmount
this.form.perAllotAmount = manualAmount
this.form.creditNo = creditNo
this.form.creditType = creditType
// 那啥
if (this.searchData !== null) {
const opinionEnum = this.searchData.opinionEnumResponses
const opinionArr = []
opinionEnum.forEach(item => {
if (creditType === 'ADD_CREDIT' && item.code !== 'BACK') {
if (creditType === 'ADD_CREDIT') {
if (item.code !== 'BACK') {
opinionArr.push(item)
}
} else {
opinionArr.push(item)
}
})
......
......@@ -39,19 +39,6 @@
</el-form-item>
</template>
<template v-if='searchData!==null'>
<el-form-item prop='creditType' label='授信类型'>
<el-select v-model='queryForm.creditType' :popper-append-to-body='false' clearable placeholder='请选择授信类型'>
<el-option
v-for='(item,index) in searchData.creditTypeResponseList'
:key='index'
:label='item.creditTypeStr'
:value='item.creditType'></el-option>
</el-select>
</el-form-item>
</template>
<!--<template v-if='searchData!==null'>-->
<!-- <el-form-item prop='creditStatus' label='审批状态'>-->
<!-- <el-select v-model='queryForm.creditStatus' clearable placeholder='请选择审批状态'>-->
......
......@@ -36,6 +36,7 @@
data() {
return {
creditNo: '',
creditType: '',
detail: null
}
},
......@@ -43,6 +44,7 @@
const { query } = this.$route
if (query && query.creditNo) {
this.creditNo = query.creditNo
this.creditType = query.creditType
await this.init()
}
......@@ -50,8 +52,10 @@
methods: {
async init() {
const creditNo = this.creditNo
const creditType = this.creditType
const result = await API.creditDetail({
creditNo
creditNo,
creditType
})
this.detail = result.result
}
......
......@@ -293,10 +293,13 @@
},
// 预授信详情
handleDetail(row) {
const { creditNo } = row
const { creditNo,creditType } = row
this.$router.push({
path: '/credit/approvalDetail',
query: { creditNo }
query: {
creditNo,
creditType
}
})
},
handleCurrentChange(val) {
......
......@@ -39,6 +39,7 @@
return {
isIncrease:false,
creditNo: '',
creditType: '',
detail: null
}
},
......@@ -46,6 +47,7 @@
const { query } = this.$route
if (query && query.creditNo) {
this.creditNo = query.creditNo
this.creditType = query.creditType
await this.init()
......@@ -54,8 +56,10 @@
methods: {
async init() {
const creditNo = this.creditNo
const creditType = this.creditType
const result = await API.creditDetail({
creditNo
creditNo,
creditType
})
this.detail = result.result;
......
......@@ -249,11 +249,12 @@
},
// 预授信详情
handleDetail(row) {
const { creditNo } = row
const { creditNo, creditType} = row
this.$router.push({
path: '/credit/detail',
query: {
creditNo,
creditType,
increase:true
}
})
......
......@@ -260,10 +260,13 @@
},
// 预授信详情
handleDetail(row) {
const { creditNo } = row
const { creditNo,creditType } = row
this.$router.push({
path: '/credit/detail',
query: { creditNo }
query: {
creditNo,
creditType
}
})
},
handleCurrentChange(val) {
......
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