<template>
|
<el-container v-loading="loading">
|
<el-main v-show="!loading">
|
<el-form
|
:label-position="labelPosition"
|
:model="form"
|
id="detailContent"
|
>
|
<!-- <el-row>
|
<p class="title">申请信息</p>
|
<el-col :span="8">
|
<el-form-item label="申请编号:">
|
<p class="content">{{form.serNo === '' ? '--' : form.serNo}}</p>
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<el-form-item label="申请人姓名:">
|
<p class="content">{{form.applyName === '' ? '--' : form.applyName}}</p>
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<el-form-item label="申请人工号:">
|
<p class="content">{{form.applyUserId === '' ? '--' : form.applyUserId}}</p>
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<el-form-item label="申请人直属机构:">
|
<p class="content">{{form.applyOrgName === '' ? '--' : form.applyOrgName}}</p>
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<el-form-item label="申请人所属一级内部机构:">
|
<p class="content">{{form.applyFirstLevelOrgName === '' ? '--' : form.applyFirstLevelOrgName}}</p>
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<el-form-item label="申请时间:">
|
<p class="content">{{form.applyDate === '' ? '--' : form.applyDate}}</p>
|
</el-form-item>
|
</el-col>
|
</el-row> -->
|
<el-row>
|
<p class="title">开通产品信息</p>
|
<project-product-infos-table></project-product-infos-table>
|
</el-row>
|
<!-- <el-row v-if="ApplyCreditAmountInfo.visible">
|
<p class="title" >授信信息</p>
|
<el-col :span="8">
|
<el-form-item label="授信额度(元):" v-if="ApplyCreditAmountInfo.visible">
|
<p class="content">{{ApplyCreditAmountInfo.value === '' ? '--' : ApplyCreditAmountInfo.value}}</p>
|
</el-form-item>
|
</el-col>
|
</el-row> -->
|
</el-form>
|
<!-- <ProjectDeclarationInfo/> -->
|
</el-main>
|
</el-container>
|
</template>
|
|
<script>
|
import { queryApprovalBaseInfo, queryApplyCreditAmountInfo } from '@/api/area'
|
import ProjectProductInfosTable from './components/ProjectProductInfosTable'
|
import ProjectDeclarationInfo from './ProjectDeclarationInfo'
|
import { mapState } from 'vuex'
|
export default {
|
components: { ProjectProductInfosTable, ProjectDeclarationInfo },
|
data: function () {
|
return {
|
labelPosition: 'right',
|
loading: true,
|
form: {
|
applyDate: '',
|
applyFirstLevelOrgId: '',
|
applyFirstLevelOrgName: '',
|
applyName: '',
|
applyOrgId: '',
|
applyOrgName: '',
|
applyUserId: ''
|
},
|
ApplyCreditAmountInfo: {
|
visible: false,
|
}
|
}
|
},
|
computed: {
|
...mapState({
|
detailsParams: state => state.risk.detailsParams
|
})
|
},
|
created () {
|
this.getForm()
|
},
|
methods: {
|
getForm () {
|
let params = {
|
objectType: this.detailsParams.objectType,
|
dataType: this.detailsParams.dataType,
|
projectFlag: this.detailsParams.projectFlag,
|
projectType: this.detailsParams.projectType,
|
serialno: this.detailsParams.objectNo
|
}
|
queryApprovalBaseInfo(params).then(res => {
|
this.form = res.result
|
this.loading = false
|
})
|
queryApplyCreditAmountInfo(params).then(res => {
|
// 对象不为空才进行赋值
|
if (!Object.keys(res.result).length === 0) {
|
this.ApplyCreditAmountInfo = res.result.position
|
}
|
})
|
}
|
}
|
}
|
</script>
|
|
<style lang="stylus" scoped>
|
#detailContent
|
>>> .el-form-item
|
height 48px
|
margin-bottom 0px
|
.content
|
// min-width 220px
|
word-wrap break-word
|
line-height 16px
|
</style>
|