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-nested-ternary': 'off',
'no-use-before-define': 'off', 'no-use-before-define': 'off',
'no-unused-expressions': 'off', 'no-unused-expressions': 'off',
'no-empty': 'off',
'no-console': 'off'
}, },
settings: { settings: {
'import/resolver': { 'import/resolver': {

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

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

Loading…
Cancel
Save