银行相关修复

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. 9
      src/views/product/bank/Info.vue
  4. 2
      src/views/product/bank/List.vue

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

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

@ -1,6 +1,7 @@
<template>
<div class="info my-2">
<template v-if="route.params.action !== 'add'">
<h1 v-if="riskInfo"
class="mb-3 text-xl font-semibold text-center">{{ info.productName }}产品手册</h1>
<h6 class="step-name">{{ route.params.action !== 'config' ? '一、' : '' }}产品定义</h6>
<p class="text">{{ info.productDefinition }}</p>
<h6 class="step-name mt-5">{{ route.params.action !== 'config' ? '二、' : '' }}产品要素</h6>
@ -22,7 +23,8 @@
: info.otherPurposesOfLoan
}}
</p>
<div class="flex my-2">
<div v-if="info.guarantyStyle"
class="flex my-2">
<p class="text whitespace-nowrap">担保方式</p>
<p v-html="info.guarantyStyle"
class="text"></p>
@ -39,9 +41,8 @@
<div class="text"
v-html="info.prospectiveBorrowerText"></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>
<p v-if="riskInfo?.accountMaterials"
class="text">办理账户-提供材料{{ riskInfo?.accountMaterials }}</p>

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

Loading…
Cancel
Save