yujialong 9 months ago
parent 67e6360ace
commit 250c14b3da
  1. 1
      src/api/system.ts
  2. 45
      src/views/product/bank/Config.vue
  3. 4
      src/views/product/interestRate/935.vue

@ -16,3 +16,4 @@ export const editExperimentalData = async (data: Record<string, any>): Promise<a
(await axios.post('/occupationlab/occupationlab/experimentalReport/editExperimentalData', data)).data;
export const getStartTime = async (params: Record<string, any>): Promise<any> => (await axios.get('/python/python/getStartTime', { params })).data;
export const getCurrentTime = async (): Promise<any> => (await axios.get('/competition/competition/management/getCurrentTime')).data;
export const heartbeatDetection = async (): Promise<any> => (await axios.get('/nakadai/message/heartbeatDetection')).data;

@ -363,12 +363,12 @@
prop="dueDiligenceMode">
<div>
<p class="tips leading-[32px]">选择尽调方式至少选一样</p>
<el-radio-group v-if="config.length"
<el-checkbox-group v-if="config.length"
v-model="form.dueDiligenceMode">
<el-radio v-for="(item, i) in config[3]?.recordChildren[0]?.subject?.itemList"
<el-checkbox v-for="(item, i) in config[3]?.recordChildren[0]?.subject?.itemList"
:key="i"
:label="item.itemId">{{ item.options }}</el-radio>
</el-radio-group>
:label="item.itemId">{{ item.options }}</el-checkbox>
</el-checkbox-group>
</div>
</el-form-item>
<el-form-item label="尽调内容"
@ -390,12 +390,12 @@
prop="reviewContent">
<div>
<p class="tips leading-[32px]">选择审查材料至少选一样</p>
<el-radio-group v-if="config.length"
<el-checkbox-group v-if="config.length"
v-model="form.reviewContent">
<el-radio v-for="(item, i) in config[4]?.recordChildren[0]?.subject?.itemList"
<el-checkbox v-for="(item, i) in config[4]?.recordChildren[0]?.subject?.itemList"
:key="i"
:label="item.itemId">{{ item.options }}</el-radio>
</el-radio-group>
:label="item.itemId">{{ item.options }}</el-checkbox>
</el-checkbox-group>
</div>
</el-form-item>
<el-form-item label="审查签字"
@ -413,12 +413,12 @@
prop="reviewApproveContent">
<div>
<p class="tips leading-[32px]">选择审批材料至少选一样</p>
<el-radio-group v-if="config.length"
<el-checkbox-group v-if="config.length"
v-model="form.reviewApproveContent">
<el-radio v-for="(item, i) in config[5]?.recordChildren[0]?.subject?.itemList"
<el-checkbox v-for="(item, i) in config[5]?.recordChildren[0]?.subject?.itemList"
:key="i"
:label="item.itemId">{{ item.options }}</el-radio>
</el-radio-group>
:label="item.itemId">{{ item.options }}</el-checkbox>
</el-checkbox-group>
</div>
</el-form-item>
<el-form-item label="审批签字"
@ -603,7 +603,7 @@ interface RuleForm {
corporateCreditScoringStrategies: any;
corporateInterestRateModel: any;
dueDiligenceContent: any;
dueDiligenceMode: any;
dueDiligenceMode: number[];
enterpriseMaterialCheck?: number;
enterpriseMaterial: any;
enterpriseQuotaModel: any;
@ -624,8 +624,8 @@ interface RuleForm {
personalCreditScoringStrategies: any;
pledgeContractCheck?: number;
pledgeContract: any;
reviewApproveContent: any;
reviewContent: any;
reviewApproveContent: number[];
reviewContent: number[];
reviewSignature: any;
riskDegreeStrategyCheck?: number;
riskDegreeStrategy: any;
@ -679,7 +679,7 @@ const form = reactive<RuleForm>({
corporateCreditScoringStrategies: '',
corporateInterestRateModel: [],
dueDiligenceContent: [],
dueDiligenceMode: '',
dueDiligenceMode: [],
enterpriseMaterialCheck: '',
enterpriseMaterial: [],
enterpriseQuotaModel: '',
@ -700,8 +700,8 @@ const form = reactive<RuleForm>({
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() : '';

@ -217,8 +217,8 @@ const addRecord = async (data: Record<string, any>) => {
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));

Loading…
Cancel
Save