diff --git a/src/views/product/bank/Add.vue b/src/views/product/bank/Add.vue index 0165cdb..1a79f02 100644 --- a/src/views/product/bank/Add.vue +++ b/src/views/product/bank/Add.vue @@ -171,7 +171,7 @@ :label="item.itemId">{{ item.options }} @@ -186,12 +186,11 @@ {{ item.name }} -

选择需要提供的申请人材料(至少选一样)

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

选择需要发放的账户(至少选一样)

-

补充材料

@@ -180,16 +194,18 @@ :key="i" :label="item.id">{{ item.name }} -

选择需要提供的补充材料(至少选一样)

- - {{ item.options }} - +
@@ -200,38 +216,44 @@ prop="runBatchObject">
- + {{ item.options }} -

选择需要跑批的对象(至少选一样)

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

选择需要跑批的准入策略(至少选一样)

- - {{ item.options }} - +
- + {{ item.options }}
-
{{ (info.productType ? '企业' : '个人') + '额度模型' }} - + {{ item.options }}
- @@ -324,7 +348,8 @@
{{ (info.productType ? '企业' : '个人') + '利率模型' }} - + {{ item.options }} @@ -339,7 +364,8 @@ prop="dueDiligenceMode">

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

- + {{ item.options }} @@ -350,7 +376,8 @@ prop="dueDiligenceContent">

选择尽调内容(至少选一样)

- + {{ item.options }} @@ -401,7 +428,7 @@
-
+
- @@ -445,7 +472,7 @@
- @@ -464,7 +491,7 @@ :label="item.id">{{ item.name }}
- @@ -483,7 +510,7 @@ :label="item.id">{{ item.name }}
- @@ -502,19 +529,22 @@ prop="selectionStrategy">
- - + {{ item.options }} -

选择策略(至少选一样)

- - {{ item.options }} - +
@@ -731,6 +761,32 @@ const submit = async (formEl: FormInstance | undefined) => { const isEnterprise = info.value.productType === 1; const param = JSON.parse(JSON.stringify(form)); + if (param.accountMaterialsCheck === 797 && !param.accountMaterials.length) return ElMessage.error('请选择需要提供的申请人材料'); + if (param.sendingAccountCheck === 801 && !param.sendingAccount) return ElMessage.error('请选择需要发放的账户'); + if (!param.loanApplicationMethod.length) return ElMessage.error('请选择申请方式'); + if (param.borrowerMaterialCheck === 797 && !param.borrowerMaterialSelect && !param.borrowerMaterial.length) return ElMessage.error('请选择需要提供的借款人材料'); + + if (isEnterprise) { + // 企业 + if (param.enterpriseMaterialCheck === 797 && !param.enterpriseMaterial.length) return ElMessage.error('请选择需要提供的企业材料'); + if (param.collateralCheck === 797 && !param.collateral.length) return ElMessage.error('请选择需要提供的抵押物材料'); + } else { + // 个人 + if (param.mateMaterialCheck === 797 && !param.mateMaterial.length) return ElMessage.error('请选择需要提供的配偶材料'); + if (param.businessMaterialsCheck === 797 && !param.businessMaterials.length) return ElMessage.error('请选择需要提供的经营类材料'); + } + + if (param.supplementaryMaterialsCheck === 797 && !param.supplementaryMaterials.length) return ElMessage.error('请选择需要提供的补充材料'); + if (param.runBatchObjectCheck === 797 && !param.runBatchObject.length) return ElMessage.error('请选择需要跑批的对象'); + if (param.accessStrategyCheck === 797 && !param.accessStrategy.length) return ElMessage.error('请选择需要跑批的准入策略'); + if (!param.dueDiligenceMode) return ElMessage.error('请选择尽调方式'); + if (!param.dueDiligenceContent.length) return ElMessage.error('请选择尽调内容'); + if (!param.reviewContent) return ElMessage.error('请选择审查材料'); + if (!param.reviewSignature) return ElMessage.error('请选择签字表单'); + if (!param.reviewApproveContent) return ElMessage.error('请选择审批材料'); + if (!param.approvalSignature) return ElMessage.error('请选择签字表单'); + if (param.selectionStrategyCheck === 803 && !param.selectionStrategy.length) return ElMessage.error('请选择策略'); + param.accessStrategy = param.accessStrategyCheck === 797 ? param.accessStrategy.join() : ''; if (param.borrowerMaterialCheck === 797) param.borrowerMaterial.unshift(param.borrowerMaterialSelect); param.borrowerMaterial = param.borrowerMaterial.join(); @@ -759,6 +815,7 @@ const submit = async (formEl: FormInstance | undefined) => { param.runBatchObject = param.runBatchObjectCheck === 797 ? param.runBatchObject.join() : ''; param.selectionStrategy = param.selectionStrategyCheck === 803 ? param.selectionStrategy.join() : ''; param.supplementaryMaterials = param.supplementaryMaterialsCheck === 797 ? param.supplementaryMaterials.join() : ''; + debugger; if (param.contractMaterialsCheck !== 797) param.contractMaterials = ''; if (info.value.riskControlDetails) { param.id = info.value.riskControlDetails.id; diff --git a/src/views/product/fund/Add.vue b/src/views/product/fund/Add.vue index c310347..e9b1aa0 100644 --- a/src/views/product/fund/Add.vue +++ b/src/views/product/fund/Add.vue @@ -284,7 +284,7 @@
-
+