|
|
@ -16,7 +16,106 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<h6 class="mt-5 mb-3 text-sm text-[#006BFF] font-semibold">评分表</h6> |
|
|
|
<h6 class="mt-5 mb-3 text-sm text-[#006BFF] font-semibold">评分表</h6> |
|
|
|
<el-table class="c-table" |
|
|
|
<el-table v-if="form.scoringObject" |
|
|
|
|
|
|
|
class="c-table" |
|
|
|
|
|
|
|
:key="1" |
|
|
|
|
|
|
|
:data="list1" |
|
|
|
|
|
|
|
:span-method="span1" |
|
|
|
|
|
|
|
border> |
|
|
|
|
|
|
|
<el-table-column prop="name" |
|
|
|
|
|
|
|
label="选用" |
|
|
|
|
|
|
|
min-width="50"> |
|
|
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
|
|
|
<div class="items-center"> |
|
|
|
|
|
|
|
<el-checkbox class="mr-2" |
|
|
|
|
|
|
|
v-model="row.isChoose"></el-checkbox> |
|
|
|
|
|
|
|
<span v-if="row.top">{{row.name}}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="sub" |
|
|
|
|
|
|
|
label="维度" |
|
|
|
|
|
|
|
min-width="110"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="remark" |
|
|
|
|
|
|
|
label="计算公式" |
|
|
|
|
|
|
|
min-width="150"> |
|
|
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
|
|
|
<span v-if="isSelect(row.answerId1)">{{ row.remark }}</span> |
|
|
|
|
|
|
|
<el-select v-else |
|
|
|
|
|
|
|
v-model="row.calculationFormula"> |
|
|
|
|
|
|
|
<el-option v-for="item in row?.recordChildren[1]?.subject?.itemList" |
|
|
|
|
|
|
|
:key="item" |
|
|
|
|
|
|
|
:value="item.options" /> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="index" |
|
|
|
|
|
|
|
label="指标" |
|
|
|
|
|
|
|
min-width="60" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
|
|
|
<span>{{ isSelect(row.answerId1) ? row.index : row?.recordChildren[2]?.recordChildren[0]?.name }}</span> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="分值" |
|
|
|
|
|
|
|
min-width="150" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
|
|
|
<el-select v-if="isSelect(row.answerId1)" |
|
|
|
|
|
|
|
v-model="row.score"> |
|
|
|
|
|
|
|
<el-option v-for="item in row?.recordChildren[1]?.subject?.itemList" |
|
|
|
|
|
|
|
:key="item" |
|
|
|
|
|
|
|
:value="item.options" /> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
<div v-else |
|
|
|
|
|
|
|
:class="'flex items-center'"> |
|
|
|
|
|
|
|
<span v-if="row.answerId2 === 643" |
|
|
|
|
|
|
|
class="mr-2 whitespace-nowrap">全部为正常贷款满分,</span> |
|
|
|
|
|
|
|
<span class="whitespace-nowrap"> |
|
|
|
|
|
|
|
{{ row.answerId2 === 627 ? |
|
|
|
|
|
|
|
'每少1倍扣' : |
|
|
|
|
|
|
|
(row.answerId1 === 590 || row.answerId1 === 591 || row.answerId1 === 592) ? |
|
|
|
|
|
|
|
row?.recordChildren[2]?.recordChildren[0]?.recordChildren[0]?.name.replace('分','') : |
|
|
|
|
|
|
|
row.answerId1 === 595 ? |
|
|
|
|
|
|
|
'每降1%扣' : |
|
|
|
|
|
|
|
'' }} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<div class="w-[100px] mx-2"> |
|
|
|
|
|
|
|
<el-select v-model="row.score"> |
|
|
|
|
|
|
|
<el-option v-for="item in row?.recordChildren[2]?.recordChildren[0]?.recordChildren[0]?.subject?.itemList" |
|
|
|
|
|
|
|
:key="item" |
|
|
|
|
|
|
|
:value="item.options" /> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<span>分</span> |
|
|
|
|
|
|
|
<span v-if="row.answerId2 !== 627" |
|
|
|
|
|
|
|
class="mx-2 whitespace-nowrap"> |
|
|
|
|
|
|
|
{{ |
|
|
|
|
|
|
|
row.answerId2 === 607 || row.answerId2 === 609 ? |
|
|
|
|
|
|
|
',大于等于' : |
|
|
|
|
|
|
|
row.answerId2 === 667 || row.answerId2 === 668 || row.answerId2 === 670 || row.answerId2 === 694 || row.answerId2 === 695 ? |
|
|
|
|
|
|
|
',负增长不计分' : |
|
|
|
|
|
|
|
',小于等于' |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<template v-if="row.answerId2 !== 627 && row.answerId2 !== 667 && row.answerId2 !== 668 && row.answerId2 !== 670 && row.answerId2 !== 694 && row.answerId2 !== 695"> |
|
|
|
|
|
|
|
<div class="w-[120px] mx-2"> |
|
|
|
|
|
|
|
<el-select placeholder="" |
|
|
|
|
|
|
|
v-model="row.percentage"> |
|
|
|
|
|
|
|
<el-option v-for="item in row?.recordChildren[2]?.recordChildren[0]?.recordChildren[1]?.subject?.itemList" |
|
|
|
|
|
|
|
:key="item" |
|
|
|
|
|
|
|
:value="item.options" /> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<span class="whitespace-nowrap">不计分</span> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
<el-table v-else |
|
|
|
|
|
|
|
class="c-table" |
|
|
|
|
|
|
|
:key="2" |
|
|
|
:data="list" |
|
|
|
:data="list" |
|
|
|
:span-method="span" |
|
|
|
:span-method="span" |
|
|
|
border> |
|
|
|
border> |
|
|
@ -68,7 +167,6 @@ import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment' |
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
import type { TableColumnCtx } from 'element-plus'; |
|
|
|
import type { TableColumnCtx } from 'element-plus'; |
|
|
|
import { handleId } from '@/utils/common'; |
|
|
|
import { handleId } from '@/utils/common'; |
|
|
|
// import Info from './Info.vue'; |
|
|
|
|
|
|
|
import Cookies from 'js-cookie'; |
|
|
|
import Cookies from 'js-cookie'; |
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['getList']); |
|
|
|
const emit = defineEmits(['getList']); |
|
|
@ -80,6 +178,7 @@ const projectId = +Cookies.get('sand-projectId'); |
|
|
|
const levelId = +Cookies.get('sand-level'); |
|
|
|
const levelId = +Cookies.get('sand-level'); |
|
|
|
let loading: boolean = true; |
|
|
|
let loading: boolean = true; |
|
|
|
const list = ref<Record<string, any>[]>([]); |
|
|
|
const list = ref<Record<string, any>[]>([]); |
|
|
|
|
|
|
|
const list1 = ref<Record<string, any>[]>([]); |
|
|
|
const detail = ref<Record<string, any>>({}); |
|
|
|
const detail = ref<Record<string, any>>({}); |
|
|
|
const scoringObjects = ref<Array<any>>([ |
|
|
|
const scoringObjects = ref<Array<any>>([ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -91,23 +190,24 @@ const scoringObjects = ref<Array<any>>([ |
|
|
|
name: '企业', |
|
|
|
name: '企业', |
|
|
|
}, |
|
|
|
}, |
|
|
|
]); |
|
|
|
]); |
|
|
|
const form = reactive<RuleForm>({ |
|
|
|
const form = reactive({ |
|
|
|
checkpointId: levelId, |
|
|
|
checkpointId: levelId, |
|
|
|
projectId, |
|
|
|
projectId, |
|
|
|
description: '', |
|
|
|
description: '', |
|
|
|
scoreCardName: '', |
|
|
|
scoreCardName: '', |
|
|
|
scoringObject: 0, |
|
|
|
scoringObject: 1, |
|
|
|
id: computed(() => route.query.creditId || ''), |
|
|
|
id: computed(() => route.query.creditId || ''), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// 配置项 |
|
|
|
// 配置项 |
|
|
|
const getConfig = async () => { |
|
|
|
const getConfig = async () => { |
|
|
|
const { process } = await getProcessInformationBasedOnRoles(148); |
|
|
|
const { process } = await getProcessInformationBasedOnRoles(148); |
|
|
|
|
|
|
|
// 个人 |
|
|
|
const result = []; |
|
|
|
const result = []; |
|
|
|
process[0]?.recordChildren.slice(3).forEach((e, j) => { |
|
|
|
process[0]?.recordChildren.slice(3).forEach((e, j) => { |
|
|
|
e?.recordChildren.forEach((n, i) => { |
|
|
|
e?.recordChildren.forEach((n, i) => { |
|
|
|
if (i) { |
|
|
|
if (i) { |
|
|
|
const cur = detail.value[j]; |
|
|
|
const cur = !form.scoringObject && detail.value[j]; |
|
|
|
result.push({ |
|
|
|
result.push({ |
|
|
|
answerId1: e.id, |
|
|
|
answerId1: e.id, |
|
|
|
answerId2: n.id, |
|
|
|
answerId2: n.id, |
|
|
@ -127,6 +227,52 @@ const getConfig = async () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
list.value = result; |
|
|
|
list.value = result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 企业 |
|
|
|
|
|
|
|
const result1 = []; |
|
|
|
|
|
|
|
process[1]?.recordChildren.slice(3).forEach((e, j) => { |
|
|
|
|
|
|
|
result1.push({ |
|
|
|
|
|
|
|
id: e.id, |
|
|
|
|
|
|
|
name: e.name, |
|
|
|
|
|
|
|
isChoose: false, |
|
|
|
|
|
|
|
top: 1, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
e?.recordChildren.forEach((n, i) => { |
|
|
|
|
|
|
|
if (i) { |
|
|
|
|
|
|
|
let temp = { |
|
|
|
|
|
|
|
answerId1: e.id, |
|
|
|
|
|
|
|
answerId2: n.id, |
|
|
|
|
|
|
|
subjectId: n.subjectId, |
|
|
|
|
|
|
|
id: '', |
|
|
|
|
|
|
|
dimensionId: '', |
|
|
|
|
|
|
|
strategyId: '', |
|
|
|
|
|
|
|
name: e.name, |
|
|
|
|
|
|
|
sub: n.name, |
|
|
|
|
|
|
|
index: n?.recordChildren[1]?.name, |
|
|
|
|
|
|
|
remark: n.remark, |
|
|
|
|
|
|
|
isChoose: false, |
|
|
|
|
|
|
|
score: '', |
|
|
|
|
|
|
|
span: i === 1 ? 1 : 0, |
|
|
|
|
|
|
|
middle: 1, // 第二层的标识 |
|
|
|
|
|
|
|
parent: i === 1 ? '' : j, |
|
|
|
|
|
|
|
recordChildren: n?.recordChildren, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
result1.push(temp); |
|
|
|
|
|
|
|
if (e.id === 589 || e.id === 594) { |
|
|
|
|
|
|
|
n?.recordChildren.forEach((m, o) => { |
|
|
|
|
|
|
|
if (o > 1) { |
|
|
|
|
|
|
|
temp = JSON.parse(JSON.stringify(temp)); |
|
|
|
|
|
|
|
temp.index = m.name; |
|
|
|
|
|
|
|
delete temp.middle; |
|
|
|
|
|
|
|
result1.push(temp); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
list1.value = result1; |
|
|
|
|
|
|
|
console.log('🚀 ~ file: Credit.vue:202 ~ getConfig ~ result1:', result1); |
|
|
|
loading.close(); |
|
|
|
loading.close(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 详情 |
|
|
|
// 详情 |
|
|
@ -154,7 +300,7 @@ const getDetail = async () => { |
|
|
|
form.description = ''; |
|
|
|
form.description = ''; |
|
|
|
form.projectId = projectId; |
|
|
|
form.projectId = projectId; |
|
|
|
form.scoreCardName = ''; |
|
|
|
form.scoreCardName = ''; |
|
|
|
form.scoringObject = 0; |
|
|
|
form.scoringObject = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
watch( |
|
|
|
watch( |
|
|
@ -166,13 +312,49 @@ watch( |
|
|
|
immediate: true, |
|
|
|
immediate: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
const isSelect = (rule: number): boolean => { |
|
|
|
|
|
|
|
return rule === 589 || rule === 594; |
|
|
|
|
|
|
|
}; |
|
|
|
interface SpanMethodProps { |
|
|
|
interface SpanMethodProps { |
|
|
|
row: Record<string, any>; |
|
|
|
row: Record<string, any>; |
|
|
|
column: TableColumnCtx<Record<string, any>>; |
|
|
|
column: TableColumnCtx<Record<string, any>>; |
|
|
|
rowIndex: number; |
|
|
|
rowIndex: number; |
|
|
|
columnIndex: number; |
|
|
|
columnIndex: number; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const rowMerge1 = [1, 4, 7, 10, 40, 43, 46]; |
|
|
|
|
|
|
|
const rowMerge2 = [2, 3, 5, 6, 8, 9, 11, 12, 41, 42, 44, 45, 47, 48]; |
|
|
|
|
|
|
|
const rowMerge3 = [0, 13, 18, 26, 33, 39, 49]; |
|
|
|
// 表格合并 |
|
|
|
// 表格合并 |
|
|
|
|
|
|
|
const span1 = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => { |
|
|
|
|
|
|
|
if (rowMerge3.includes(rowIndex)) { |
|
|
|
|
|
|
|
if (!columnIndex) { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
rowspan: 1, |
|
|
|
|
|
|
|
colspan: 5, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
rowspan: 0, |
|
|
|
|
|
|
|
colspan: 0, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!columnIndex || columnIndex === 1 || columnIndex === 2) { |
|
|
|
|
|
|
|
if (rowMerge1.includes(rowIndex)) { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
rowspan: 3, |
|
|
|
|
|
|
|
colspan: 1, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} else if (rowMerge2.includes(rowIndex)) { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
rowspan: 0, |
|
|
|
|
|
|
|
colspan: 0, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => { |
|
|
|
const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => { |
|
|
|
if (!columnIndex || columnIndex === 1) { |
|
|
|
if (!columnIndex || columnIndex === 1) { |
|
|
|
if (!rowIndex || rowIndex === 31) { |
|
|
|
if (!rowIndex || rowIndex === 31) { |
|
|
@ -209,35 +391,29 @@ const submit = async () => { |
|
|
|
loading = ElLoading.service(); |
|
|
|
loading = ElLoading.service(); |
|
|
|
const param = []; |
|
|
|
const param = []; |
|
|
|
list.value.forEach((e) => { |
|
|
|
list.value.forEach((e) => { |
|
|
|
|
|
|
|
const child = { |
|
|
|
|
|
|
|
id: e.id, |
|
|
|
|
|
|
|
dimensionId: e.dimensionId, |
|
|
|
|
|
|
|
recordName: e.sub, |
|
|
|
|
|
|
|
score: e.score, |
|
|
|
|
|
|
|
}; |
|
|
|
if (e.span) { |
|
|
|
if (e.span) { |
|
|
|
param.push({ |
|
|
|
param.push({ |
|
|
|
dimensionId: e.dimensionId, |
|
|
|
dimensionId: e.dimensionId, |
|
|
|
strategyId: e.strategyId, |
|
|
|
strategyId: e.strategyId, |
|
|
|
recordName: e.name, |
|
|
|
recordName: e.name, |
|
|
|
isChoose: +e.isChoose, |
|
|
|
isChoose: +e.isChoose, |
|
|
|
dimensionIndexList: [ |
|
|
|
dimensionIndexList: [child], |
|
|
|
{ |
|
|
|
|
|
|
|
id: e.id, |
|
|
|
|
|
|
|
dimensionId: e.dimensionId, |
|
|
|
|
|
|
|
recordName: e.sub, |
|
|
|
|
|
|
|
score: e.score, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
param[e.parent].dimensionIndexList.push({ |
|
|
|
param[e.parent].dimensionIndexList.push(child); |
|
|
|
id: e.id, |
|
|
|
|
|
|
|
dimensionId: e.dimensionId, |
|
|
|
|
|
|
|
recordName: e.sub, |
|
|
|
|
|
|
|
score: e.score, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
await saveCredit({ |
|
|
|
await saveCredit({ |
|
|
|
...form, |
|
|
|
...form, |
|
|
|
dimensionOfTheRatingTableList: param, |
|
|
|
dimensionOfTheRatingTableList: param, |
|
|
|
}); |
|
|
|
}); |
|
|
|
addRecord(); |
|
|
|
// addRecord(); |
|
|
|
|
|
|
|
|
|
|
|
ElMessage.success('提交成功!'); |
|
|
|
ElMessage.success('提交成功!'); |
|
|
|
emit('getList', 1); |
|
|
|
emit('getList', 1); |
|
|
@ -248,52 +424,22 @@ const addRecord = async () => { |
|
|
|
const isEnterprise = form.scoringObject; |
|
|
|
const isEnterprise = form.scoringObject; |
|
|
|
const preIds = `1,${Cookies.get('sand-level')},42,148,${form.scoringObject ? 513 : 512}`; // 1,关卡id,角色(这个页面是风控经理),个人/企业(512/513) |
|
|
|
const preIds = `1,${Cookies.get('sand-level')},42,148,${form.scoringObject ? 513 : 512}`; // 1,关卡id,角色(这个页面是风控经理),个人/企业(512/513) |
|
|
|
const lcRule: Array<Record<string, any>> = [handleId(514, 190, form.scoreCardName, preIds + ',514', 3), handleId(515, 191, form.scoringObject ? 392 : 391, preIds + ',515', 1)]; |
|
|
|
const lcRule: Array<Record<string, any>> = [handleId(514, 190, form.scoreCardName, preIds + ',514', 3), handleId(515, 191, form.scoringObject ? 392 : 391, preIds + ',515', 1)]; |
|
|
|
|
|
|
|
form.description && lcRule.push(handleId(516, 192, '94,' + form.description, preIds + ',516', 3)); |
|
|
|
|
|
|
|
|
|
|
|
// 企业 |
|
|
|
// 企业 |
|
|
|
if (isEnterprise) { |
|
|
|
if (isEnterprise) { |
|
|
|
lcRule.push( |
|
|
|
|
|
|
|
handleId(120, 44, data.accountMaterials, preIds + ',112,120', 1), |
|
|
|
|
|
|
|
handleId(121, 45, 162, preIds + ',112,121', 1), |
|
|
|
|
|
|
|
handleId(122, 46, data.loanApplicationMethod, preIds + ',113,122', 1), |
|
|
|
|
|
|
|
handleId(123, 47, data.borrowerMaterial, preIds + ',113,123', 1), |
|
|
|
|
|
|
|
handleId(124, 48, data.collateral, preIds + ',113,124', 1), |
|
|
|
|
|
|
|
handleId(125, 49, data.businessMaterials, preIds + ',113,125', 1), |
|
|
|
|
|
|
|
handleId(126, 50, data.supplementaryMaterials, preIds + ',113,126', 1), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleId(127, 51, data.runBatchObject, preIds + ',114,127', 1), |
|
|
|
|
|
|
|
handleId(128, 52, data.accessStrategy, preIds + ',114,128', 1), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
data.personalCreditScoringStrategiesCheck && lcRule.push(handleId(129, 53, '240,' + data.personalCreditScoringStrategies, preIds + ',114,129', 1)); |
|
|
|
|
|
|
|
data.corporateCreditScoringStrategiesCheck && lcRule.push(handleId(129, 53, '241,' + data.corporateCreditScoringStrategies, preIds + ',114,129', 1)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lcRule.push(handleId(130, 54, data.riskDegreeStrategy, preIds + ',114,130', 1)); |
|
|
|
|
|
|
|
data.interestRatePricingModelCheck && lcRule.push(handleId(131, 55, '247,' + data.interestRatePricingModel, preIds + ',114,131', 1)); |
|
|
|
|
|
|
|
data.individualInterestRateModel && lcRule.push(handleId(131, 55, data.individualInterestRateModel, preIds + ',114,131', 1)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lcRule.push( |
|
|
|
|
|
|
|
handleId(132, 56, data.dueDiligenceMode, preIds + ',115,132', 1), |
|
|
|
|
|
|
|
handleId(133, 57, data.dueDiligenceContent, preIds + ',115,133', 1), |
|
|
|
|
|
|
|
handleId(134, 58, data.reviewContent, preIds + ',116,134', 1), |
|
|
|
|
|
|
|
handleId(135, 59, data.reviewSignature, preIds + ',116,135', 1), |
|
|
|
|
|
|
|
handleId(136, 60, data.reviewApproveContent, preIds + ',117,136', 1), |
|
|
|
|
|
|
|
handleId(137, 61, data.approvalSignature, preIds + ',117,137', 1), |
|
|
|
|
|
|
|
handleId(138, 62, data.contractMaterials, preIds + ',118,138', 1), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
data.loanContract && lcRule.push(handleId(139, 63, data.loanContract, preIds + ',118,139', 1)); |
|
|
|
|
|
|
|
data.mortgageContract && lcRule.push(handleId(139, 63, data.mortgageContract, preIds + ',118,139', 1)); |
|
|
|
|
|
|
|
data.pledgeContract && lcRule.push(handleId(139, 63, data.pledgeContract, preIds + ',118,139', 1)); |
|
|
|
|
|
|
|
data.guaranteeContract && lcRule.push(handleId(139, 63, data.guaranteeContract, preIds + ',118,139', 1)); |
|
|
|
|
|
|
|
lcRule.push(handleId(140, 64, data.selectionStrategy, preIds + ',119,140', 1)); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
form.description && lcRule.push(handleId(516, 192, '94,' + form.description, preIds + ',516', 3)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list.value.forEach((e) => { |
|
|
|
list.value.forEach((e) => { |
|
|
|
if (e.span) { |
|
|
|
// 选择了才需要给 |
|
|
|
// e.isChoose && lcRule.push(handleId(e.answerId2, '', '', preIds + ',' + e.answerId1 + ',' + e.answerId2, '')) |
|
|
|
if (e.isChoose) { |
|
|
|
e.isChoose && lcRule.push(handleId(518, '', '', preIds + ',' + e.answerId1 + ',518', '')); |
|
|
|
e.middle ? lcRule.push(handleId(518, '', '', `${preIds},${e.answerId1},${e.answerId2},518`, '')) : lcRule.push(handleId(518, '', '', `${preIds},${e.answerId1},518`, '')); |
|
|
|
} else { |
|
|
|
|
|
|
|
lcRule.push(handleId(e.answerId2, e.subjectId, e?.itemList?.find((n) => n.options == e.score)?.itemId || '', preIds + ',' + e.answerId1 + ',' + e.answerId2, 1)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
lcRule.push(handleId(e.answerId2, e.subjectId, e?.itemList?.find((n) => n.options == e.score)?.itemId || '', `${preIds},${e.answerId1},${e.answerId2}`, 1)); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
// 个人 |
|
|
|
|
|
|
|
list.value.forEach((e) => { |
|
|
|
|
|
|
|
e.span && e.isChoose && lcRule.push(handleId(518, '', '', preIds + ',' + e.answerId1 + ',518', '')); |
|
|
|
|
|
|
|
lcRule.push(handleId(e.answerId2, e.subjectId, e?.itemList?.find((n) => n.options == e.score)?.itemId || '', preIds + ',' + e.answerId1 + ',' + e.answerId2, 1)); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|