<template>
|
<div class="apply-info">
|
<!-- <div class="base-buttom">
|
<el-button round> 产品额度详情</el-button>
|
</div>-->
|
<CommForm :inline="true" formType="info" :list="formList" ref="applyForm" title="基础额度信息" />
|
</div>
|
</template>
|
|
<script>
|
import CommForm from "@/components/CommForm";
|
|
import quotaControlBaseInfo from "@/controller/quotaControlBaseInfo";
|
import qryCustBaseQuotaInfo from "@/controller/qryCustBaseQuotaInfo";
|
export default {
|
components: {
|
CommForm
|
},
|
data() {
|
return {
|
formList: [],
|
query: {},
|
model: null
|
};
|
},
|
created() {
|
this.init();
|
},
|
methods: {
|
init() {
|
const { query } = this.$route;
|
const { type } = query;
|
this.query = query;
|
// 管控额度
|
if (type === "0") {
|
this.model = quotaControlBaseInfo();
|
this.getDetail();
|
}
|
// 客户额度
|
if (type === "1") {
|
this.model = qryCustBaseQuotaInfo();
|
this.getFormListDetail();
|
}
|
},
|
async getDetail() {
|
const { model, query } = this;
|
const { serialNo, controlSerialNo, pageId, quotaSerialNo } = query;
|
let params = null;
|
if (pageId === "10") {
|
params = {
|
serialNo: controlSerialNo
|
};
|
} else if (pageId === "11") {
|
params = {
|
serialNo: quotaSerialNo
|
};
|
} else {
|
params = {
|
serialNo
|
};
|
}
|
const info = await model.request(params);
|
this.formList = model.getFormList(info);
|
},
|
async getFormListDetail() {
|
const { model, query } = this;
|
const { customerId } = query;
|
const info = await model.request({ customerId });
|
this.formList = model.getFormList(info);
|
}
|
}
|
};
|
</script>
|
|
<style scoped>
|
</style>
|