yujialong 6 months ago
parent a5cc5d3874
commit 44a88fc28a
  1. 2
      .eslintrc.js
  2. 2
      src/views/product/afterLoan/1029/Detail.vue
  3. 62
      src/views/product/bank/Config.vue
  4. 2
      src/views/product/bank/Info.vue

@ -20,6 +20,8 @@ module.exports = {
'no-nested-ternary': 'off',
'no-use-before-define': 'off',
'no-unused-expressions': 'off',
'no-empty': 'off',
'no-console': 'off'
},
settings: {
'import/resolver': {

@ -8,7 +8,7 @@
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table" :data="form" :span-method="span" :cell-style="{ background: '#fff' }" border>
<el-table class="c-table" :data="form" :cell-style="{ background: '#fff' }" border>
<el-table-column prop="recordName" label="产品类别" min-width="150" align="center"> </el-table-column>
<el-table-column label="逾期时间" align="center">
<el-table-column label="未逾期" align="center">

@ -517,50 +517,50 @@ import Info from './Info.vue';
const emit = defineEmits(['getList']);
interface RuleForm {
provideMaterialSelectedStatus?: number;
provideMaterialSelectedStatus: number | string;
accountMaterials?: number[];
approvalSignature?: number;
borrowerMaterialSelectedStatus?: number;
approvalSignature: number | string;
borrowerMaterialSelectedStatus: number | string;
borrowerMaterial?: number[];
businessMaterialsSelectedStatus?: number;
businessMaterialsSelectedStatus: number | string;
businessMaterials?: number[];
mortgagedPropertySelectedStatus?: number;
mortgagedPropertySelectedStatus: number | string;
collateral?: number[];
contractSupplyMaterialsSelectedStatus?: number;
contractMaterials?: number;
contractSupplyMaterialsSelectedStatus: number | string;
contractMaterials: number | string;
corporateInterestRateModel?: number[];
dueDiligenceContent?: number[];
dueDiligenceMode?: number[];
enterpriseMaterialSelectedStatus?: number;
enterpriseMaterialSelectedStatus: number | string;
enterpriseMaterial?: number[];
guaranteeContractSelectedStatus?: number;
guaranteeContract?: number;
guaranteeContractSelectedStatus: number | string;
guaranteeContract: number | string;
loanApplicationMethod?: number[];
loanContractSelectedStatus?: number;
loanContract?: number;
mateMaterialSelectedStatus?: number;
loanContractSelectedStatus: number | string;
loanContract: number | string;
mateMaterialSelectedStatus: number | string;
mateMaterial?: number[];
materialsForLoanApproval?: number[];
mortgageContractSelectedStatus?: number;
mortgageContract?: number;
pledgeContractSelectedStatus?: number;
pledgeContract?: number;
mortgageContractSelectedStatus: number | string;
mortgageContract: number | string;
pledgeContractSelectedStatus: number | string;
pledgeContract: number | string;
reviewApproveContent?: number[];
reviewContent?: number[];
reviewSignature?: number;
runBatchObjectSelectedStatus?: number;
reviewSignature: number | string;
runBatchObjectSelectedStatus: number | string;
runBatchObject?: number[];
issueAccountSelectStatus?: number;
issueAccountSelectStatus: number | string;
sendingAccount?: number[];
supplementMaterialSelectedStatus?: number;
supplementMaterialSelectedStatus: number | string;
supplementaryMaterials?: number[];
bankRiskControlAllocationTacticsList: Record<string, any>[];
creditScoringStrategyList: Record<string, any>[];
interestRatePricingModelList: Record<string, any>[];
postLoanSelectionStrategyList: Record<string, any>[];
enterpriseRiskDegreeStrategySelectedStatus?: number;
personalRiskDegreeStrategySelectedStatus?: number;
enterpriseQuotaModelSelectedStatus?: number;
enterpriseRiskDegreeStrategySelectedStatus: number | string;
personalRiskDegreeStrategySelectedStatus: number | string;
enterpriseQuotaModelSelectedStatus: number | string;
enterpriseQuotaModel?: number[];
}
const router = useRouter();
@ -697,8 +697,7 @@ const getAccess = async (i: number) => {
if (i === 5) res = await accessStrategyAntiFraudStrategy(strategyParams); //
if (i === 6) res = await accessStrategyNegativeIndustryStrategy(strategyParams); //
if (res) list[i].blackList = res.page.records;
} finally {
}
} catch (e) {}
}
};
//
@ -711,8 +710,7 @@ const getCredits = async (i: number) => {
type: i,
});
if (res) list[i].blackList = res.data.records;
} finally {
}
} catch (e) {}
}
};
//
@ -873,8 +871,7 @@ const getDetail = async () => {
form = Object.assign(form, e);
}
getConfig();
} finally {
}
} catch (e) {}
}
};
watch(
@ -1284,6 +1281,7 @@ const submit = async (formEl: FormInstance | undefined) => {
}
});
};
//
const addStratety = (i: number) => {
ElMessageBox.confirm('<p class="text-danger whitespace-nowrap">即将跳转到可以新增策略的界面,当前界面数据会清空。</p><p>确定离开当前界面?</p>', '提示', {
@ -1299,6 +1297,7 @@ const addStratety = (i: number) => {
})
.catch(() => {});
};
//
const preview = async (row: Record<string, any>, i: number) => {
const { tacticsId } = form.bankRiskControlAllocationTacticsList[i];
@ -1310,6 +1309,7 @@ const preview = async (row: Record<string, any>, i: number) => {
curPreviewTitle.value = `查看${assessNames[i]}策略`;
visible.value = true;
};
//
const previewCredits = async (row: Record<string, any>, i: number) => {
const { tacticsId } = form.creditScoringStrategyList[i];
@ -1320,6 +1320,7 @@ const previewCredits = async (row: Record<string, any>, i: number) => {
curPreviewTitle.value = `查看${i ? '企业' : '个人'}信用评分策略`;
visible.value = true;
};
//
const previewRate = async (row: Record<string, any>, i: number) => {
const { tacticsId } = form.interestRatePricingModelList[i];
@ -1331,6 +1332,7 @@ const previewRate = async (row: Record<string, any>, i: number) => {
curPreviewTitle.value = `查看${interestNames[i]}`;
visible.value = true;
};
//
const previewAfter = async (row: Record<string, any>, i: number) => {
const { tacticsId } = form.postLoanSelectionStrategyList[i];

@ -152,7 +152,7 @@
<script setup lang="ts">
import { ref, computed, watch, defineExpose, defineAsyncComponent, markRaw } from 'vue';
import { findById, approvalRecord } from '@/api/bank';
import { useRouter, useRoute } from 'vue-router';
import { useRoute } from 'vue-router';
import { getStatus } from '@/store/useProduct';
import { getUsername } from '@/utils/common';

Loading…
Cancel
Save