Commit 566093f0 authored by caimeng's avatar caimeng

7月4日修改bug

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