From 250c14b3da433a86859ed246c44dde9b58b1b787 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 15 Mar 2024 11:58:01 +0800 Subject: [PATCH] fix --- src/api/system.ts | 1 + src/views/product/bank/Config.vue | 57 ++++++++++++++------------ src/views/product/interestRate/935.vue | 4 +- 3 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/api/system.ts b/src/api/system.ts index cada3df..5a64ee3 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -16,3 +16,4 @@ export const editExperimentalData = async (data: Record): Promise): Promise => (await axios.get('/python/python/getStartTime', { params })).data; export const getCurrentTime = async (): Promise => (await axios.get('/competition/competition/management/getCurrentTime')).data; +export const heartbeatDetection = async (): Promise => (await axios.get('/nakadai/message/heartbeatDetection')).data; diff --git a/src/views/product/bank/Config.vue b/src/views/product/bank/Config.vue index f81db78..4c8bda2 100644 --- a/src/views/product/bank/Config.vue +++ b/src/views/product/bank/Config.vue @@ -363,12 +363,12 @@ prop="dueDiligenceMode">

选择尽调方式(至少选一样)

- - {{ item.options }} - + + {{ item.options }} +

选择审查材料(至少选一样)

- - {{ item.options }} - + + {{ item.options }} +

选择审批材料(至少选一样)

- - {{ item.options }} - + + {{ item.options }} +
({ corporateCreditScoringStrategies: '', corporateInterestRateModel: [], dueDiligenceContent: [], - dueDiligenceMode: '', + dueDiligenceMode: [], enterpriseMaterialCheck: '', enterpriseMaterial: [], enterpriseQuotaModel: '', @@ -700,8 +700,8 @@ const form = reactive({ personalCreditScoringStrategies: '', pledgeContractCheck: '', pledgeContract: '', - reviewApproveContent: '', - reviewContent: '', + reviewApproveContent: [], + reviewContent: [], reviewSignature: '', riskDegreeStrategyCheck: '', riskDegreeStrategy: [], @@ -783,11 +783,11 @@ const submit = async (formEl: FormInstance | undefined) => { if (param.supplementaryMaterialsCheck === 797 && !param.supplementaryMaterials.length) return ElMessage.error('请选择需要提供的补充材料'); if (param.runBatchObjectCheck === 803 && !param.runBatchObject.length) return ElMessage.error('请选择需要跑批的对象'); if (param.accessStrategyCheck === 803 && !param.accessStrategy.length) return ElMessage.error('请选择需要跑批的准入策略'); - if (!param.dueDiligenceMode) return ElMessage.error('请选择尽调方式'); + if (!param.dueDiligenceMode.length) return ElMessage.error('请选择尽调方式'); if (!param.dueDiligenceContent.length) return ElMessage.error('请选择尽调内容'); - if (!param.reviewContent) return ElMessage.error('请选择审查材料'); + if (!param.reviewContent.length) return ElMessage.error('请选择审查材料'); if (!param.reviewSignature) return ElMessage.error('请选择签字表单'); - if (!param.reviewApproveContent) return ElMessage.error('请选择审批材料'); + if (!param.reviewApproveContent.length) return ElMessage.error('请选择审批材料'); if (!param.approvalSignature) return ElMessage.error('请选择签字表单'); if (param.selectionStrategyCheck === 803 && !param.selectionStrategy.length) return ElMessage.error('请选择策略'); @@ -812,7 +812,10 @@ const submit = async (formEl: FormInstance | undefined) => { if (param.pledgeContractCheck !== 797) param.pledgeContract = ''; if (param.guaranteeContractCheck !== 797) param.guaranteeContract = ''; + param.dueDiligenceMode = param.dueDiligenceMode.join(); param.dueDiligenceContent = param.dueDiligenceContent.join(); + param.reviewContent = param.reviewContent.join(); + param.reviewApproveContent = param.reviewApproveContent.join(); param.loanApplicationMethod = param.loanApplicationMethod.join(); param.riskDegreeStrategy = param.riskDegreeStrategyCheck === 803 ? param.riskDegreeStrategy.join() : ''; param.runBatchObject = param.runBatchObjectCheck === 803 ? param.runBatchObject.join() : ''; diff --git a/src/views/product/interestRate/935.vue b/src/views/product/interestRate/935.vue index 797df63..b8dc94a 100644 --- a/src/views/product/interestRate/935.vue +++ b/src/views/product/interestRate/935.vue @@ -217,8 +217,8 @@ const addRecord = async (data: Record) => { e.score && rule.push(handleId(e.ruleId, e.subject.subjectId, e?.subject?.itemList?.find((n) => n.options === e.score)?.itemId, `${listIds},${e.stRecordId},${e.ruleId}`, 1)); } }); - form.value.individualInterestRateModels[12].score && rule.push(handleId(1229, 306, form.value.individualInterestRateModels[13].score, listIds + ',1229', 3)); - form.value.individualInterestRateModels[13].score && rule.push(handleId(1230, 307, form.value.individualInterestRateModels[14].score, listIds + ',1230', 3)); + form.value.individualInterestRateModels[12].score && rule.push(handleId(1229, 306, form.value.individualInterestRateModels[12].score, listIds + ',1229', 3)); + form.value.individualInterestRateModels[13].score && rule.push(handleId(1230, 307, form.value.individualInterestRateModels[13].score, listIds + ',1230', 3)); data.finalFloatingRatioEqual && rule.push(handleId(1024, 279, getItemId(data.finalFloatingRatioEqual), preIds + ',1023,1024', 1)); data.finalFloatingRatioLess && rule.push(handleId(1025, 279, getItemId(data.finalFloatingRatioLess), preIds + ',1023,1025', 1));