银行相关修复

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 () => { 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,6 +1,7 @@
<template> <template>
<div class="info my-2"> <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> <h6 class="step-name">{{ route.params.action !== 'config' ? '一、' : '' }}产品定义</h6>
<p class="text">{{ info.productDefinition }}</p> <p class="text">{{ info.productDefinition }}</p>
<h6 class="step-name mt-5">{{ route.params.action !== 'config' ? '二、' : '' }}产品要素</h6> <h6 class="step-name mt-5">{{ route.params.action !== 'config' ? '二、' : '' }}产品要素</h6>
@ -22,7 +23,8 @@
: info.otherPurposesOfLoan : info.otherPurposesOfLoan
}} }}
</p> </p>
<div class="flex my-2"> <div v-if="info.guarantyStyle"
class="flex my-2">
<p class="text whitespace-nowrap">担保方式</p> <p class="text whitespace-nowrap">担保方式</p>
<p v-html="info.guarantyStyle" <p v-html="info.guarantyStyle"
class="text"></p> class="text"></p>
@ -39,9 +41,8 @@
<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