银行相关修复

master
yujialong 8 months ago
parent 81269748e5
commit f855d54174
  1. 10
      src/views/product/bank/Add.vue
  2. 4
      src/views/product/bank/CardList.vue
  3. 55
      src/views/product/bank/Info.vue
  4. 2
      src/views/product/bank/List.vue

@ -425,6 +425,7 @@ const getConfig = async () => {
}; };
// //
const getDetail = async () => { const getDetail = async () => {
if (!route.query.show) curTab.value = 'tab1';
userName.value = await getUsername(); userName.value = await getUsername();
info.value = null; info.value = null;
@ -492,6 +493,15 @@ const submit = async (formEl: FormInstance | undefined) => {
return ElMessage.error('请输入合理的贷款利率'); return ElMessage.error('请输入合理的贷款利率');
if (isIllegalNum(param.minimumTermOfLoan) || isIllegalNum(param.maximumTermOfLoan) || +param.minimumTermOfLoan > +param.maximumTermOfLoan) if (isIllegalNum(param.minimumTermOfLoan) || isIllegalNum(param.maximumTermOfLoan) || +param.minimumTermOfLoan > +param.maximumTermOfLoan)
return ElMessage.error('请输入合理的贷款期限'); return ElMessage.error('请输入合理的贷款期限');
if (param.ageSelectedState !== 795) {
param.minimumAge = '';
param.maximumAge = '';
}
if (param.degreeSelectedStatus !== 795) param.educationalRequirements = [];
if (param.workingLifeSelectedState !== 795) param.currentWorkingLife = [];
param.currentWorkingLife = param.currentWorkingLife.join(); param.currentWorkingLife = param.currentWorkingLife.join();
param.educationalRequirements = param.educationalRequirements.join(); param.educationalRequirements = param.educationalRequirements.join();
param.modeRepayment = param.modeRepayment.join(); param.modeRepayment = param.modeRepayment.join();

@ -47,6 +47,7 @@
@getList="getList"></config> @getList="getList"></config>
<detail v-if="action === 'detail'"></detail> <detail v-if="action === 'detail'"></detail>
<add v-else-if="action === 'add'" <add v-else-if="action === 'add'"
:key="addKey"
@getList="getList"></add> @getList="getList"></add>
<approve v-else-if="action === 'approve'" <approve v-else-if="action === 'approve'"
@getList="getList"></approve> @getList="getList"></approve>
@ -80,6 +81,7 @@ const productType = computed(() => route.query.type); // 个人/企业
const role = computed(() => +route.query.role || 41); const role = computed(() => +route.query.role || 41);
const id = computed(() => +route.query.id); const id = computed(() => +route.query.id);
const configKey = ref<number>(1); const configKey = ref<number>(1);
const addKey = ref<number>(1);
// //
const getList = async (refresh?: number) => { const getList = async (refresh?: number) => {
loading.value = true; loading.value = true;
@ -122,9 +124,11 @@ const switchProduct = (row: any, refresh?: number) => {
const path = `/product/bank/${toAction}`; const path = `/product/bank/${toAction}`;
router.push(`${path}?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${row.id}&name=${route.query.name ?? ''}`); router.push(`${path}?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${row.id}&name=${route.query.name ?? ''}`);
if (toAction === 'config' && curAction === 'config') configKey.value += 1; if (toAction === 'config' && curAction === 'config') configKey.value += 1;
if (toAction === 'add' && curAction === 'add') addKey.value += 1;
}; };
// //
const toAdd = () => { const toAdd = () => {
if (action.value === 'add') addKey.value += 1;
router.push(`/product/bank/add?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}`); router.push(`/product/bank/add?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}`);
}; };
// //

@ -1,14 +1,15 @@
<template> <template>
<div class="info my-2"> <div class="info my-2">
<template v-if="route.params.action !== 'add'"> <h1 v-if="riskInfo"
<h6 class="step-name">{{ route.params.action !== 'config' ? '一、' : '' }}产品定义</h6> class="mb-3 text-xl font-semibold text-center">{{ info.productName }}产品手册</h1>
<p class="text">{{ info.productDefinition }}</p> <h6 class="step-name">{{ route.params.action !== 'config' ? '一、' : '' }}产品定义</h6>
<h6 class="step-name mt-5">{{ route.params.action !== 'config' ? '二、' : '' }}产品要素</h6> <p class="text">{{ info.productDefinition }}</p>
<p class="text">产品名称{{ info.productName }}</p> <h6 class="step-name mt-5">{{ route.params.action !== 'config' ? '二、' : '' }}产品要素</h6>
<p class="text">贷款币种人民币</p> <p class="text">产品名称{{ info.productName }}</p>
<p v-if="info.loanPurpose" <p class="text">贷款币种人民币</p>
class="text"> <p v-if="info.loanPurpose"
贷款用途{{ class="text">
贷款用途{{
info.loanPurpose === '购房' info.loanPurpose === '购房'
? '可用于住房按揭贷款、二手房住房按揭贷款。' ? '可用于住房按揭贷款、二手房住房按揭贷款。'
: info.loanPurpose === '消费' : info.loanPurpose === '消费'
@ -21,27 +22,27 @@
? '用于短期生产经营周转的可循环的人民币信用贷款业务。' ? '用于短期生产经营周转的可循环的人民币信用贷款业务。'
: info.otherPurposesOfLoan : info.otherPurposesOfLoan
}} }}
</p> </p>
<div class="flex my-2"> <div v-if="info.guarantyStyle"
<p class="text whitespace-nowrap">担保方式</p> class="flex my-2">
<p v-html="info.guarantyStyle" <p class="text whitespace-nowrap">担保方式</p>
class="text"></p> <p v-html="info.guarantyStyle"
</div> class="text"></p>
</div>
<p class="text">贷款期限{{ info.minimumTermOfLoan }} - {{ info.maximumTermOfLoan }}</p> <p class="text">贷款期限{{ info.minimumTermOfLoan }} - {{ info.maximumTermOfLoan }}</p>
<p class="text">贷款限额{{ info.minimumLoan }}万元 - {{ info.loanCeiling }}万元</p> <p class="text">贷款限额{{ info.minimumLoan }}万元 - {{ info.loanCeiling }}万元</p>
<p class="text">贷款利率{{ info.minimumAprOnLoan }}% - {{ info.maximumAnnualInterestRate }}%</p> <p class="text">贷款利率{{ info.minimumAprOnLoan }}% - {{ info.maximumAnnualInterestRate }}%</p>
<p class="text">还款方式{{ info.modeRepayment }}</p> <p class="text">还款方式{{ info.modeRepayment }}</p>
<div v-if="info.prospectiveBorrowerText" <div v-if="info.prospectiveBorrowerText"
class="flex my-2"> class="flex my-2">
<p class="text whitespace-nowrap">贷款对象</p> <p class="text whitespace-nowrap">贷款对象</p>
<div class="text" <div class="text"
v-html="info.prospectiveBorrowerText"></div> v-html="info.prospectiveBorrowerText"></div>
</div> </div>
</template>
<template v-if="riskInfo && route.params.action !== 'config'"> <template v-if="riskInfo">
<h6 class="step-name mt-5">{{ route.params.action !== 'add' ? '三、' : '' }}材料要求</h6> <h6 class="step-name mt-5">{{ route.params.action !== 'add' ? '三、' : '' }}材料要求</h6>
<p v-if="riskInfo?.accountMaterials" <p v-if="riskInfo?.accountMaterials"
class="text">办理账户-提供材料{{ riskInfo?.accountMaterials }}</p> class="text">办理账户-提供材料{{ riskInfo?.accountMaterials }}</p>

@ -99,7 +99,7 @@
<el-button v-if="row.showDetailsOrNot" <el-button v-if="row.showDetailsOrNot"
type="text" type="text"
@click="toDetail(`/product/bank/detail`, row)" @click="toDetail(`/product/bank/detail`, row)"
size="small">{{ params.roleId == 43 ? '审批结果' : '产品详情' }}</el-button> size="small">产品详情</el-button>
<el-button v-if="row.showElementsOrNot" <el-button v-if="row.showElementsOrNot"
type="text" type="text"
size="small" size="small"

Loading…
Cancel
Save