From 80f49ab21ee9813a45d4acb895642d8a766ced3e Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 21 Feb 2024 17:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E9=AB=98=E5=BA=A6=E8=87=AA?= =?UTF-8?q?=E9=80=82=E5=BA=94=EF=BC=8C=E4=B8=AA=E4=BA=BA=E9=93=B6=E8=A1=8C?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/judgment.ts | 1 + src/styles/form.scss | 12 +++ src/views/product/bank/Add.vue | 103 ++++++++++++++++++-------- src/views/product/bank/Config.vue | 4 +- src/views/product/fund/Add.vue | 16 ++-- src/views/product/strategy/150.vue | 22 ++---- src/views/product/strategy/151.vue | 4 +- src/views/product/strategy/152.vue | 9 +-- src/views/product/strategy/153.vue | 12 ++- src/views/product/strategy/154.vue | 3 +- src/views/product/strategy/155.vue | 3 +- src/views/product/strategy/156.vue | 3 +- src/views/product/strategy/Credit.vue | 2 + 13 files changed, 119 insertions(+), 75 deletions(-) diff --git a/src/api/judgment.ts b/src/api/judgment.ts index f029737..962ea0a 100644 --- a/src/api/judgment.ts +++ b/src/api/judgment.ts @@ -14,3 +14,4 @@ export const deleteCache = async (data: Record): Promise => ) ).data; export const getOperation = async (params?: Record): Promise => (await axios.get('/product/product/bank/operation/getOperation', { params })).data; +export const queryCache = async (params?: Record): Promise => (await axios.get('/product/product/bank/operation/queryCache', { params })).data; diff --git a/src/styles/form.scss b/src/styles/form.scss index ea05b70..2686428 100644 --- a/src/styles/form.scss +++ b/src/styles/form.scss @@ -53,6 +53,18 @@ @apply ml-2.5 text-sm text-[#333]; } } + .radio-wrap { + @apply flex items-center; + .label { + @apply mr-10; + } + .whether { + @apply mr-5 text-xs text-[#666]; + } + .el-radio { + margin-right: 15px; + } + } } .submit { @apply py-[15px] px-[22px] mt-5 text-sm leading-none text-white bg-[#006bff] rounded-xl cursor-pointer; diff --git a/src/views/product/bank/Add.vue b/src/views/product/bank/Add.vue index 72e76ad..41356cf 100644 --- a/src/views/product/bank/Add.vue +++ b/src/views/product/bank/Add.vue @@ -77,10 +77,17 @@ @@ -289,6 +320,7 @@ interface RuleForm { productCurrency: number; bankGuaranteeTypeIds: any[]; currentWorkingLife?: any; + edu: number | string; educationalRequirements?: any; loanCeiling: any; loanPurpose: any; @@ -296,7 +328,8 @@ interface RuleForm { maximumAge: any; maximumAnnualInterestRate: any; maximumTermOfLoan: any; - age: boolean; + age: number | string; + curWL: number | string; minimumAge: any; minimumAprOnLoan: any; minimumLoan: any; @@ -305,7 +338,7 @@ interface RuleForm { otherPurposesOfLoan: string; productObject: any; productType: number; - providentFundAndSocialSecurity: any; + providentFundAndSocialSecurity: number | string; whetherToSupportEarlyRepayment?: any; } @@ -317,6 +350,16 @@ const levelId = +Cookies.get('sand-level'); const curTab = ref('tab1'); const config = ref([]); const info = ref>(null); +const whethers = ref>([ + { + id: 795, + name: '是', + }, + { + id: 796, + name: '否', + }, +]); const formRef = ref(); const userName = ref(); const form = reactive({ @@ -327,6 +370,7 @@ const form = reactive({ productCurrency: 1, bankGuaranteeTypeIds: [], currentWorkingLife: [], + edu: '', educationalRequirements: [], loanCeiling: '', loanPurpose: '', @@ -334,7 +378,8 @@ const form = reactive({ maximumAge: '', maximumAnnualInterestRate: '', maximumTermOfLoan: '', - age: false, + age: '', + curWL: '', minimumAge: '', minimumAprOnLoan: '', minimumLoan: '', @@ -343,7 +388,7 @@ const form = reactive({ otherPurposesOfLoan: '', productObject: '', productType: computed(() => +route.query.type), - providentFundAndSocialSecurity: false, + providentFundAndSocialSecurity: '', whetherToSupportEarlyRepayment: false, }); const rules = reactive>({ @@ -400,7 +445,7 @@ const submit = async (formEl: FormInstance | undefined) => { if (param.productType) { if (!param.productObject) return ElMessage.error('请选择企业类型'); } - if ((!param.productType && param.age) || param.productType) { + if ((!param.productType && param.age === 795) || param.productType) { if (!param.minimumAge) return ElMessage.error('请输入最小年龄'); if (!param.maximumAge) return ElMessage.error('请输入最大年龄'); if (isIllegalNum(param.minimumAge) || isIllegalNum(param.maximumAge)) return ElMessage.error('请输入合理的年龄'); @@ -409,9 +454,9 @@ const submit = async (formEl: FormInstance | undefined) => { // 个人 if (!param.productType) { - if (param.edu && !param.educationalRequirements.length) return ElMessage.error('请选择学历要求'); - if (param.curWL && !param.currentWorkingLife.length) return ElMessage.error('请选择工作年限'); - if (param.curWL && !param.currentWorkingLife.length) return ElMessage.error('请选择工作年限'); + if (param.edu === 795 && !param.educationalRequirements.length) return ElMessage.error('请选择学历要求'); + if (param.curWL === 795 && !param.currentWorkingLife.length) return ElMessage.error('请选择工作年限'); + if (param.curWL === 795 && !param.currentWorkingLife.length) return ElMessage.error('请选择工作年限'); } if (isIllegalNum(param.minimumLoan) || isIllegalNum(param.loanCeiling) || +param.minimumLoan > +param.loanCeiling) return ElMessage.error('请输入合理的贷款额度'); if (isIllegalNum(param.minimumAprOnLoan) || isIllegalNum(param.maximumAnnualInterestRate) || +param.minimumAprOnLoan > +param.maximumAnnualInterestRate) @@ -421,7 +466,7 @@ const submit = async (formEl: FormInstance | undefined) => { param.currentWorkingLife = param.currentWorkingLife.join(); param.educationalRequirements = param.educationalRequirements.join(); param.modeRepayment = param.modeRepayment.join(); - param.providentFundAndSocialSecurity = param.providentFundAndSocialSecurity ? 1 : ''; + param.providentFundAndSocialSecurity = param.providentFundAndSocialSecurity === 795 ? 1 : ''; param.whetherToSupportEarlyRepayment = param.whetherToSupportEarlyRepayment ? 58 : ''; // 担保方式 param.addBankProductsGuarantyStyleReqList = []; @@ -472,10 +517,10 @@ const addRecord = async (data: Record) => { ); } else { // 个人 - data.age && lcRule.push(handleId(100, 41, data.minimumAge + '~' + data.maximumAge + '', preIds + ',51,100', 5)); - data.edu && lcRule.push(handleId(101, 42, data.educationalRequirements, preIds + ',51,101', 1)); - data.curWL && lcRule.push(handleId(102, 43, data.currentWorkingLife, preIds + ',51,102', 1)); - data.providentFundAndSocialSecurity && lcRule.push(handleId(103, '', '', preIds + ',51,103', '')); // 公积金社保 + data.age === 795 && lcRule.push(handleId(100, 41, data.minimumAge + '~' + data.maximumAge + '', preIds + ',51,100', 5)); + data.edu === 795 && lcRule.push(handleId(101, 42, data.educationalRequirements, preIds + ',51,101', 1)); + data.curWL === 795 && lcRule.push(handleId(102, 43, data.currentWorkingLife, preIds + ',51,102', 1)); + data.providentFundAndSocialSecurity === 795 && lcRule.push(handleId(103, '', '', preIds + ',51,103', '')); // 公积金社保 lcRule.push( data.loanPurpose === 107 ? handleId(107, 11, data.otherPurposesOfLoan, preIds + ',52,107', 3) : handleId(data.loanPurpose, '', '', preIds + ',52,' + data.loanPurpose, ''), diff --git a/src/views/product/bank/Config.vue b/src/views/product/bank/Config.vue index 88f83d1..aa2f836 100644 --- a/src/views/product/bank/Config.vue +++ b/src/views/product/bank/Config.vue @@ -407,7 +407,7 @@ const form = reactive({ collateral: [], contractMaterials: '', corporateCreditScoringStrategiesCheck: false, - corporateCreditScoringStrategies: '无', + corporateCreditScoringStrategies: '', corporateInterestRateModel: [], dueDiligenceContent: [], dueDiligenceMode: '', @@ -423,7 +423,7 @@ const form = reactive({ materialsForLoanApproval: [], mortgageContract: '', personalCreditScoringStrategiesCheck: false, - personalCreditScoringStrategies: '无', + personalCreditScoringStrategies: '', pledgeContractCheck: false, pledgeContract: '', reviewApproveContent: '', diff --git a/src/views/product/fund/Add.vue b/src/views/product/fund/Add.vue index bb6715f..e886c53 100644 --- a/src/views/product/fund/Add.vue +++ b/src/views/product/fund/Add.vue @@ -336,7 +336,7 @@ const form = reactive({ checkPointId: levelId, projectId, buyingDuration: '', - buyingUnit: '天', + buyingUnit: '', fundName: '', fundType: '', fundraisingScale: '', @@ -345,7 +345,7 @@ const form = reactive({ operatingSalesServiceRates: '', operationManagementRate: '', sellingTime: '', - soldUnit: '天', + soldUnit: '', buySellRatioList0: [ { input1: '0', @@ -367,18 +367,18 @@ const form = reactive({ input1: '0', input2: '', rate: '', - rateUnit: '%', - soldUnit1: '分钟', - soldUnit2: '分钟', + rateUnit: '', + soldUnit1: '', + soldUnit2: '', type: 1, }, { input1: '', input2: '', rate: '', - rateUnit: '%', - soldUnit1: '分钟', - soldUnit2: '分钟', + rateUnit: '', + soldUnit1: '', + soldUnit2: '', type: 1, }, ], diff --git a/src/views/product/strategy/150.vue b/src/views/product/strategy/150.vue index 9bc8bbe..eaba6ae 100644 --- a/src/views/product/strategy/150.vue +++ b/src/views/product/strategy/150.vue @@ -3,7 +3,7 @@
@@ -62,6 +62,7 @@
,