信用报告完成
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import EnterpriseDialog from "../../components/enterpriseDialog";
|
||||
import EnterpriseDialog from "../../../components/enterpriseDialog";
|
||||
|
||||
export default {
|
||||
name: "companyDetail",
|
||||
@@ -14,7 +14,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PersonCreditReport from "../../components/personCreditReport";
|
||||
import PersonCreditReport from "../../../components/personCreditReport";
|
||||
|
||||
export default {
|
||||
name: "personDetail",
|
||||
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<section class="AppCreditReportApply">
|
||||
<component :is="currentPage" v-bind="$props"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import List from "./list";
|
||||
import Add from "./add";
|
||||
|
||||
export default {
|
||||
name: "AppCreditReportApply",
|
||||
components: {Add, List},
|
||||
label: "信用报告申请",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
computed: {
|
||||
currentPage() {
|
||||
let {hash} = this.$route
|
||||
return hash == "#add" ? Add : List
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.dict.load('creditReportType')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppCreditReportApply {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,92 @@
|
||||
<template>
|
||||
<section class="add">
|
||||
<ai-detail>
|
||||
<ai-title slot="title" :title="pageTitle" isShowBottomBorder/>
|
||||
<template #content>
|
||||
<el-tabs tabPosition="left">
|
||||
<el-tab-pane label="申请信息">
|
||||
<el-form ref="AddForm" :model="form" size="small" label-width="120px">
|
||||
<ai-card title="申请信息">
|
||||
<template #content>
|
||||
<el-row type="flex">
|
||||
<div class="fill">
|
||||
<el-form-item label="信用主体" prop="objName">{{ form.objName }}</el-form-item>
|
||||
<el-form-item label="证件号码" prop="idNumber">{{ form.idNumber }}</el-form-item>
|
||||
</div>
|
||||
<div class="fill">
|
||||
<el-form-item label="申请类型" prop="type">{{ dict.getLabel('creditReportType', form.type) }}</el-form-item>
|
||||
<el-form-item label="联系方式" prop="createUserPhone">{{ form.createUserPhone }}</el-form-item>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-form-item label="申请时间" prop="createTime">{{ form.createTime }}</el-form-item>
|
||||
<el-form-item label="证明材料" prop="files">
|
||||
<el-image class="cpImage" v-for="(item,i) in form.files" :key="i" :src="item.url" :preview-src-list="[item.url]"/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</ai-card>
|
||||
</el-form>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="信用报告" lazy>
|
||||
<component :is="creditReport" v-bind="cpParams"/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</template>
|
||||
</ai-detail>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PersonCreditReport from "../../../components/personCreditReport";
|
||||
import EnterpriseDialog from "../../../components/enterpriseDialog";
|
||||
|
||||
export default {
|
||||
name: "add",
|
||||
components: {EnterpriseDialog, PersonCreditReport},
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
computed: {
|
||||
isEdit: v => !!v.$route.query.id,
|
||||
pageTitle: () => "报告申请详情",
|
||||
cpParams: v => ({...v.$props, personId: v.form.objId, enterpriseId: v.form.objId}),
|
||||
creditReport: v => v.form.type == 1 ? EnterpriseDialog : PersonCreditReport
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
let {id} = this.$route.query
|
||||
id && this.instance.post("/app/appcreditreport/applyInfot", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.form = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
back() {
|
||||
this.$router.push({})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getDetail()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.add {
|
||||
height: 100%;
|
||||
|
||||
.cpImage {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
margin: 0 8px 8px 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,71 @@
|
||||
<template>
|
||||
<section class="list">
|
||||
<ai-list>
|
||||
<ai-title slot="title" title="信用报告申请" isShowBottomBorder/>
|
||||
<template #content>
|
||||
<ai-search-bar>
|
||||
<template #right>
|
||||
<el-input size="small" placeholder="搜索信用主体/证件号码/信用代码" v-model="search.name" clearable @change="page.current=1,getTableData()"/>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
|
||||
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
|
||||
<el-table-column slot="options" label="操作" fixed="right" align="center" width="300">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="text" @click="handleAdd(row.id)">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ai-table>
|
||||
</template>
|
||||
</ai-list>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "list",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
search: {name: ""},
|
||||
page: {current: 1, size: 10, total: 0},
|
||||
tableData: [],
|
||||
colConfigs: [
|
||||
{prop: "createUserPhone", label: "联系方式"},
|
||||
{prop: "createUserName", label: "申请人"},
|
||||
{prop: "idNumber", label: "证件号码"},
|
||||
{prop: "objName", label: "信用主体"},
|
||||
{prop: "type", label: "申请类型", dict: "creditReportType"},
|
||||
{prop: "createTime", label: "申请时间"}],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post("/app/appcreditreport/applyList", null, {
|
||||
params: {...this.page, ...this.search}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.tableData = res.data.records
|
||||
this.page.total = res.data.total
|
||||
}
|
||||
})
|
||||
},
|
||||
handleAdd(id) {
|
||||
this.$router.push({hash: "#add", query: {id}})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getTableData()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.list {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user