|
|
@ -20,15 +20,15 @@ |
|
|
|
border> |
|
|
|
border> |
|
|
|
<el-table-column prop="name" |
|
|
|
<el-table-column prop="name" |
|
|
|
label="选用" |
|
|
|
label="选用" |
|
|
|
width="100"> |
|
|
|
width="130"> |
|
|
|
<template #default="{ row, $index }"> |
|
|
|
<template #default="{ row }"> |
|
|
|
<div class="items-center"> |
|
|
|
<el-radio-group v-if="!row.top" |
|
|
|
<el-checkbox v-if="!row.top" |
|
|
|
v-model="row.isChoose"> |
|
|
|
class="mr-2" |
|
|
|
<el-radio v-for="(item, i) in opt1" |
|
|
|
v-model="row.isChoose" |
|
|
|
:key="i" |
|
|
|
@change="checkAll(row, $index)"></el-checkbox> |
|
|
|
:label="item.id">{{ item.name }}</el-radio> |
|
|
|
<span v-else>{{row.name}}</span> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
<span v-else>{{row.name}}</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="sub" |
|
|
|
<el-table-column prop="sub" |
|
|
@ -135,13 +135,12 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { ref, defineAsyncComponent, onMounted, toRefs, reactive, isTheStrategyRelatedToTheProduct } from 'vue'; |
|
|
|
import { ref, defineAsyncComponent, onMounted, toRefs, reactive } from 'vue'; |
|
|
|
import { ElLoading, ElMessage } from 'element-plus'; |
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|
import { saveCredit, findCredit } from '@/api/model'; |
|
|
|
import { saveCredit, findCredit, isTheStrategyRelatedToTheProduct } from '@/api/model'; |
|
|
|
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; |
|
|
|
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; |
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
|
|
|
|
import type { TableColumnCtx } from 'element-plus'; |
|
|
|
import type { TableColumnCtx } from 'element-plus'; |
|
|
|
import { handleId, getIds } from '@/utils/common'; |
|
|
|
import { handleId, getIds, opt1 } from '@/utils/common'; |
|
|
|
import Cookies from 'js-cookie'; |
|
|
|
import Cookies from 'js-cookie'; |
|
|
|
|
|
|
|
|
|
|
|
const Confirm = defineAsyncComponent(() => import('@/components/StrategyConfirm.vue')); |
|
|
|
const Confirm = defineAsyncComponent(() => import('@/components/StrategyConfirm.vue')); |
|
|
@ -176,7 +175,7 @@ const getConfig = async () => { |
|
|
|
answerId1: e.id, |
|
|
|
answerId1: e.id, |
|
|
|
dimensionId: '', |
|
|
|
dimensionId: '', |
|
|
|
name: e.name, |
|
|
|
name: e.name, |
|
|
|
isChoose: false, |
|
|
|
isChoose: '', |
|
|
|
top: 1, |
|
|
|
top: 1, |
|
|
|
}); |
|
|
|
}); |
|
|
|
e?.recordChildren.forEach((n, i) => { |
|
|
|
e?.recordChildren.forEach((n, i) => { |
|
|
@ -192,7 +191,7 @@ const getConfig = async () => { |
|
|
|
index: n?.recordChildren[1]?.name, |
|
|
|
index: n?.recordChildren[1]?.name, |
|
|
|
subject: n?.recordChildren[1]?.subject, |
|
|
|
subject: n?.recordChildren[1]?.subject, |
|
|
|
remark: n.remark, |
|
|
|
remark: n.remark, |
|
|
|
isChoose: false, |
|
|
|
isChoose: '', |
|
|
|
calculationFormula: '', |
|
|
|
calculationFormula: '', |
|
|
|
score: '', |
|
|
|
score: '', |
|
|
|
percentage: '', |
|
|
|
percentage: '', |
|
|
@ -220,11 +219,11 @@ const getConfig = async () => { |
|
|
|
|
|
|
|
|
|
|
|
if (detail.value.length) { |
|
|
|
if (detail.value.length) { |
|
|
|
result[0].dimensionId = detail.value[0]?.dimensionId; |
|
|
|
result[0].dimensionId = detail.value[0]?.dimensionId; |
|
|
|
result[0].isChoose = !!detail.value[0]?.isChoose; |
|
|
|
result[0].isChoose = detail.value[0]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
// 企业素质下的4大块有下拉的 |
|
|
|
// 企业素质下的4大块有下拉的 |
|
|
|
result[1].dimensionId = detail.value[1]?.dimensionId; |
|
|
|
result[1].dimensionId = detail.value[1]?.dimensionId; |
|
|
|
result[1].isChoose = !!detail.value[1]?.isChoose; |
|
|
|
result[1].isChoose = detail.value[1]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[1].id = detail.value[1].dimensionIndexList[0]?.id; |
|
|
|
result[1].id = detail.value[1].dimensionIndexList[0]?.id; |
|
|
|
result[1].dimensionId = detail.value[1].dimensionIndexList[0]?.dimensionId; |
|
|
|
result[1].dimensionId = detail.value[1].dimensionIndexList[0]?.dimensionId; |
|
|
@ -239,7 +238,7 @@ const getConfig = async () => { |
|
|
|
result[3].score = detail.value[1].dimensionIndexList[2]?.score; |
|
|
|
result[3].score = detail.value[1].dimensionIndexList[2]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[4].dimensionId = detail.value[2]?.dimensionId; |
|
|
|
result[4].dimensionId = detail.value[2]?.dimensionId; |
|
|
|
result[4].isChoose = !!detail.value[2]?.isChoose; |
|
|
|
result[4].isChoose = detail.value[2]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[4].id = detail.value[2].dimensionIndexList[0]?.id; |
|
|
|
result[4].id = detail.value[2].dimensionIndexList[0]?.id; |
|
|
|
result[4].dimensionId = detail.value[2].dimensionIndexList[0]?.dimensionId; |
|
|
|
result[4].dimensionId = detail.value[2].dimensionIndexList[0]?.dimensionId; |
|
|
@ -254,7 +253,7 @@ const getConfig = async () => { |
|
|
|
result[6].score = detail.value[2].dimensionIndexList[2]?.score; |
|
|
|
result[6].score = detail.value[2].dimensionIndexList[2]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[7].dimensionId = detail.value[3]?.dimensionId; |
|
|
|
result[7].dimensionId = detail.value[3]?.dimensionId; |
|
|
|
result[7].isChoose = !!detail.value[3]?.isChoose; |
|
|
|
result[7].isChoose = detail.value[3]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[7].id = detail.value[3].dimensionIndexList[0]?.id; |
|
|
|
result[7].id = detail.value[3].dimensionIndexList[0]?.id; |
|
|
|
result[7].dimensionId = detail.value[3].dimensionIndexList[0]?.dimensionId; |
|
|
|
result[7].dimensionId = detail.value[3].dimensionIndexList[0]?.dimensionId; |
|
|
@ -269,7 +268,7 @@ const getConfig = async () => { |
|
|
|
result[9].score = detail.value[3].dimensionIndexList[2]?.score; |
|
|
|
result[9].score = detail.value[3].dimensionIndexList[2]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[10].dimensionId = detail.value[4]?.dimensionId; |
|
|
|
result[10].dimensionId = detail.value[4]?.dimensionId; |
|
|
|
result[10].isChoose = !!detail.value[4]?.isChoose; |
|
|
|
result[10].isChoose = detail.value[4]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[10].id = detail.value[4].dimensionIndexList[0]?.id; |
|
|
|
result[10].id = detail.value[4].dimensionIndexList[0]?.id; |
|
|
|
result[10].dimensionId = detail.value[4].dimensionIndexList[0]?.dimensionId; |
|
|
|
result[10].dimensionId = detail.value[4].dimensionIndexList[0]?.dimensionId; |
|
|
@ -285,10 +284,10 @@ const getConfig = async () => { |
|
|
|
|
|
|
|
|
|
|
|
// <经济实力>下面4行 |
|
|
|
// <经济实力>下面4行 |
|
|
|
result[13].dimensionId = detail.value[5]?.dimensionId; |
|
|
|
result[13].dimensionId = detail.value[5]?.dimensionId; |
|
|
|
result[13].isChoose = !!detail.value[5]?.isChoose; |
|
|
|
result[13].isChoose = detail.value[5]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[14].dimensionId = detail.value[6]?.dimensionId; |
|
|
|
result[14].dimensionId = detail.value[6]?.dimensionId; |
|
|
|
result[14].isChoose = !!detail.value[6]?.isChoose; |
|
|
|
result[14].isChoose = detail.value[6]?.isChoose; |
|
|
|
result[14].calculationFormula = detail.value[6]?.calculationFormula; |
|
|
|
result[14].calculationFormula = detail.value[6]?.calculationFormula; |
|
|
|
result[14].dimensionId = detail.value[6]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[14].dimensionId = detail.value[6]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[14].id = detail.value[6]?.dimensionIndexList[0]?.id; |
|
|
|
result[14].id = detail.value[6]?.dimensionIndexList[0]?.id; |
|
|
@ -296,7 +295,7 @@ const getConfig = async () => { |
|
|
|
result[14].score = detail.value[6]?.dimensionIndexList[0]?.score; |
|
|
|
result[14].score = detail.value[6]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[15].dimensionId = detail.value[7]?.dimensionId; |
|
|
|
result[15].dimensionId = detail.value[7]?.dimensionId; |
|
|
|
result[15].isChoose = !!detail.value[7]?.isChoose; |
|
|
|
result[15].isChoose = detail.value[7]?.isChoose; |
|
|
|
result[15].calculationFormula = detail.value[7]?.calculationFormula; |
|
|
|
result[15].calculationFormula = detail.value[7]?.calculationFormula; |
|
|
|
result[15].dimensionId = detail.value[7]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[15].dimensionId = detail.value[7]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[15].id = detail.value[7]?.dimensionIndexList[0]?.id; |
|
|
|
result[15].id = detail.value[7]?.dimensionIndexList[0]?.id; |
|
|
@ -304,7 +303,7 @@ const getConfig = async () => { |
|
|
|
result[15].score = detail.value[7]?.dimensionIndexList[0]?.score; |
|
|
|
result[15].score = detail.value[7]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[16].dimensionId = detail.value[8]?.dimensionId; |
|
|
|
result[16].dimensionId = detail.value[8]?.dimensionId; |
|
|
|
result[16].isChoose = !!detail.value[8]?.isChoose; |
|
|
|
result[16].isChoose = detail.value[8]?.isChoose; |
|
|
|
result[16].calculationFormula = detail.value[8]?.calculationFormula; |
|
|
|
result[16].calculationFormula = detail.value[8]?.calculationFormula; |
|
|
|
result[16].dimensionId = detail.value[8]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[16].dimensionId = detail.value[8]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[16].id = detail.value[8]?.dimensionIndexList[0]?.id; |
|
|
|
result[16].id = detail.value[8]?.dimensionIndexList[0]?.id; |
|
|
@ -312,7 +311,7 @@ const getConfig = async () => { |
|
|
|
result[16].score = detail.value[8]?.dimensionIndexList[0]?.score; |
|
|
|
result[16].score = detail.value[8]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[17].dimensionId = detail.value[9]?.dimensionId; |
|
|
|
result[17].dimensionId = detail.value[9]?.dimensionId; |
|
|
|
result[17].isChoose = !!detail.value[9]?.isChoose; |
|
|
|
result[17].isChoose = detail.value[9]?.isChoose; |
|
|
|
result[17].calculationFormula = detail.value[9]?.calculationFormula; |
|
|
|
result[17].calculationFormula = detail.value[9]?.calculationFormula; |
|
|
|
result[17].dimensionId = detail.value[9]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[17].dimensionId = detail.value[9]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[17].id = detail.value[9]?.dimensionIndexList[0]?.id; |
|
|
|
result[17].id = detail.value[9]?.dimensionIndexList[0]?.id; |
|
|
@ -321,10 +320,10 @@ const getConfig = async () => { |
|
|
|
|
|
|
|
|
|
|
|
// <偿债能力>下面7行 |
|
|
|
// <偿债能力>下面7行 |
|
|
|
result[18].dimensionId = detail.value[10]?.dimensionId; |
|
|
|
result[18].dimensionId = detail.value[10]?.dimensionId; |
|
|
|
result[18].isChoose = !!detail.value[10]?.isChoose; |
|
|
|
result[18].isChoose = detail.value[10]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[19].dimensionId = detail.value[11]?.dimensionId; |
|
|
|
result[19].dimensionId = detail.value[11]?.dimensionId; |
|
|
|
result[19].isChoose = !!detail.value[11]?.isChoose; |
|
|
|
result[19].isChoose = detail.value[11]?.isChoose; |
|
|
|
result[19].calculationFormula = detail.value[11]?.calculationFormula; |
|
|
|
result[19].calculationFormula = detail.value[11]?.calculationFormula; |
|
|
|
result[19].dimensionId = detail.value[11]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[19].dimensionId = detail.value[11]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[19].id = detail.value[11]?.dimensionIndexList[0]?.id; |
|
|
|
result[19].id = detail.value[11]?.dimensionIndexList[0]?.id; |
|
|
@ -332,7 +331,7 @@ const getConfig = async () => { |
|
|
|
result[19].score = detail.value[11]?.dimensionIndexList[0]?.score; |
|
|
|
result[19].score = detail.value[11]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[20].dimensionId = detail.value[12]?.dimensionId; |
|
|
|
result[20].dimensionId = detail.value[12]?.dimensionId; |
|
|
|
result[20].isChoose = !!detail.value[12]?.isChoose; |
|
|
|
result[20].isChoose = detail.value[12]?.isChoose; |
|
|
|
result[20].calculationFormula = detail.value[12]?.calculationFormula; |
|
|
|
result[20].calculationFormula = detail.value[12]?.calculationFormula; |
|
|
|
result[20].dimensionId = detail.value[12]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[20].dimensionId = detail.value[12]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[20].id = detail.value[12]?.dimensionIndexList[0]?.id; |
|
|
|
result[20].id = detail.value[12]?.dimensionIndexList[0]?.id; |
|
|
@ -340,7 +339,7 @@ const getConfig = async () => { |
|
|
|
result[20].score = detail.value[12]?.dimensionIndexList[0]?.score; |
|
|
|
result[20].score = detail.value[12]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[21].dimensionId = detail.value[13]?.dimensionId; |
|
|
|
result[21].dimensionId = detail.value[13]?.dimensionId; |
|
|
|
result[21].isChoose = !!detail.value[13]?.isChoose; |
|
|
|
result[21].isChoose = detail.value[13]?.isChoose; |
|
|
|
result[21].calculationFormula = detail.value[13]?.calculationFormula; |
|
|
|
result[21].calculationFormula = detail.value[13]?.calculationFormula; |
|
|
|
result[21].dimensionId = detail.value[13]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[21].dimensionId = detail.value[13]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[21].id = detail.value[13]?.dimensionIndexList[0]?.id; |
|
|
|
result[21].id = detail.value[13]?.dimensionIndexList[0]?.id; |
|
|
@ -348,7 +347,7 @@ const getConfig = async () => { |
|
|
|
result[21].score = detail.value[13]?.dimensionIndexList[0]?.score; |
|
|
|
result[21].score = detail.value[13]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[22].dimensionId = detail.value[14]?.dimensionId; |
|
|
|
result[22].dimensionId = detail.value[14]?.dimensionId; |
|
|
|
result[22].isChoose = !!detail.value[14]?.isChoose; |
|
|
|
result[22].isChoose = detail.value[14]?.isChoose; |
|
|
|
result[22].calculationFormula = detail.value[14]?.calculationFormula; |
|
|
|
result[22].calculationFormula = detail.value[14]?.calculationFormula; |
|
|
|
result[22].dimensionId = detail.value[14]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[22].dimensionId = detail.value[14]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[22].id = detail.value[14]?.dimensionIndexList[0]?.id; |
|
|
|
result[22].id = detail.value[14]?.dimensionIndexList[0]?.id; |
|
|
@ -356,7 +355,7 @@ const getConfig = async () => { |
|
|
|
result[22].score = detail.value[14]?.dimensionIndexList[0]?.score; |
|
|
|
result[22].score = detail.value[14]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[23].dimensionId = detail.value[15]?.dimensionId; |
|
|
|
result[23].dimensionId = detail.value[15]?.dimensionId; |
|
|
|
result[23].isChoose = !!detail.value[15]?.isChoose; |
|
|
|
result[23].isChoose = detail.value[15]?.isChoose; |
|
|
|
result[23].calculationFormula = detail.value[15]?.calculationFormula; |
|
|
|
result[23].calculationFormula = detail.value[15]?.calculationFormula; |
|
|
|
result[23].dimensionId = detail.value[15]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[23].dimensionId = detail.value[15]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[23].id = detail.value[15]?.dimensionIndexList[0]?.id; |
|
|
|
result[23].id = detail.value[15]?.dimensionIndexList[0]?.id; |
|
|
@ -364,7 +363,7 @@ const getConfig = async () => { |
|
|
|
result[23].score = detail.value[15]?.dimensionIndexList[0]?.score; |
|
|
|
result[23].score = detail.value[15]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[24].dimensionId = detail.value[16]?.dimensionId; |
|
|
|
result[24].dimensionId = detail.value[16]?.dimensionId; |
|
|
|
result[24].isChoose = !!detail.value[16]?.isChoose; |
|
|
|
result[24].isChoose = detail.value[16]?.isChoose; |
|
|
|
result[24].calculationFormula = detail.value[16]?.calculationFormula; |
|
|
|
result[24].calculationFormula = detail.value[16]?.calculationFormula; |
|
|
|
result[24].dimensionId = detail.value[16]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[24].dimensionId = detail.value[16]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[24].id = detail.value[16]?.dimensionIndexList[0]?.id; |
|
|
|
result[24].id = detail.value[16]?.dimensionIndexList[0]?.id; |
|
|
@ -372,7 +371,7 @@ const getConfig = async () => { |
|
|
|
result[24].score = detail.value[16]?.dimensionIndexList[0]?.score; |
|
|
|
result[24].score = detail.value[16]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[25].dimensionId = detail.value[17]?.dimensionId; |
|
|
|
result[25].dimensionId = detail.value[17]?.dimensionId; |
|
|
|
result[25].isChoose = !!detail.value[17]?.isChoose; |
|
|
|
result[25].isChoose = detail.value[17]?.isChoose; |
|
|
|
result[25].calculationFormula = detail.value[17]?.calculationFormula; |
|
|
|
result[25].calculationFormula = detail.value[17]?.calculationFormula; |
|
|
|
result[25].dimensionId = detail.value[17]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[25].dimensionId = detail.value[17]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[25].id = detail.value[17]?.dimensionIndexList[0]?.id; |
|
|
|
result[25].id = detail.value[17]?.dimensionIndexList[0]?.id; |
|
|
@ -381,10 +380,10 @@ const getConfig = async () => { |
|
|
|
|
|
|
|
|
|
|
|
// <经营能力>下面6行 |
|
|
|
// <经营能力>下面6行 |
|
|
|
result[26].dimensionId = detail.value[18]?.dimensionId; |
|
|
|
result[26].dimensionId = detail.value[18]?.dimensionId; |
|
|
|
result[26].isChoose = !!detail.value[18]?.isChoose; |
|
|
|
result[26].isChoose = detail.value[18]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[27].dimensionId = detail.value[19]?.dimensionId; |
|
|
|
result[27].dimensionId = detail.value[19]?.dimensionId; |
|
|
|
result[27].isChoose = !!detail.value[19]?.isChoose; |
|
|
|
result[27].isChoose = detail.value[19]?.isChoose; |
|
|
|
result[27].calculationFormula = detail.value[19]?.calculationFormula; |
|
|
|
result[27].calculationFormula = detail.value[19]?.calculationFormula; |
|
|
|
result[27].dimensionId = detail.value[19]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[27].dimensionId = detail.value[19]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[27].id = detail.value[19]?.dimensionIndexList[0]?.id; |
|
|
|
result[27].id = detail.value[19]?.dimensionIndexList[0]?.id; |
|
|
@ -392,7 +391,7 @@ const getConfig = async () => { |
|
|
|
result[27].score = detail.value[19]?.dimensionIndexList[0]?.score; |
|
|
|
result[27].score = detail.value[19]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[28].dimensionId = detail.value[20]?.dimensionId; |
|
|
|
result[28].dimensionId = detail.value[20]?.dimensionId; |
|
|
|
result[28].isChoose = !!detail.value[20]?.isChoose; |
|
|
|
result[28].isChoose = detail.value[20]?.isChoose; |
|
|
|
result[28].calculationFormula = detail.value[20]?.calculationFormula; |
|
|
|
result[28].calculationFormula = detail.value[20]?.calculationFormula; |
|
|
|
result[28].dimensionId = detail.value[20]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[28].dimensionId = detail.value[20]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[28].id = detail.value[20]?.dimensionIndexList[0]?.id; |
|
|
|
result[28].id = detail.value[20]?.dimensionIndexList[0]?.id; |
|
|
@ -400,7 +399,7 @@ const getConfig = async () => { |
|
|
|
result[28].score = detail.value[20]?.dimensionIndexList[0]?.score; |
|
|
|
result[28].score = detail.value[20]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[29].dimensionId = detail.value[21]?.dimensionId; |
|
|
|
result[29].dimensionId = detail.value[21]?.dimensionId; |
|
|
|
result[29].isChoose = !!detail.value[21]?.isChoose; |
|
|
|
result[29].isChoose = detail.value[21]?.isChoose; |
|
|
|
result[29].calculationFormula = detail.value[21]?.calculationFormula; |
|
|
|
result[29].calculationFormula = detail.value[21]?.calculationFormula; |
|
|
|
result[29].dimensionId = detail.value[21]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[29].dimensionId = detail.value[21]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[29].id = detail.value[21]?.dimensionIndexList[0]?.id; |
|
|
|
result[29].id = detail.value[21]?.dimensionIndexList[0]?.id; |
|
|
@ -408,7 +407,7 @@ const getConfig = async () => { |
|
|
|
result[29].score = detail.value[21]?.dimensionIndexList[0]?.score; |
|
|
|
result[29].score = detail.value[21]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[30].dimensionId = detail.value[22]?.dimensionId; |
|
|
|
result[30].dimensionId = detail.value[22]?.dimensionId; |
|
|
|
result[30].isChoose = !!detail.value[22]?.isChoose; |
|
|
|
result[30].isChoose = detail.value[22]?.isChoose; |
|
|
|
result[30].calculationFormula = detail.value[22]?.calculationFormula; |
|
|
|
result[30].calculationFormula = detail.value[22]?.calculationFormula; |
|
|
|
result[30].dimensionId = detail.value[22]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[30].dimensionId = detail.value[22]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[30].id = detail.value[22]?.dimensionIndexList[0]?.id; |
|
|
|
result[30].id = detail.value[22]?.dimensionIndexList[0]?.id; |
|
|
@ -416,7 +415,7 @@ const getConfig = async () => { |
|
|
|
result[30].score = detail.value[22]?.dimensionIndexList[0]?.score; |
|
|
|
result[30].score = detail.value[22]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[31].dimensionId = detail.value[23]?.dimensionId; |
|
|
|
result[31].dimensionId = detail.value[23]?.dimensionId; |
|
|
|
result[31].isChoose = !!detail.value[23]?.isChoose; |
|
|
|
result[31].isChoose = detail.value[23]?.isChoose; |
|
|
|
result[31].calculationFormula = detail.value[23]?.calculationFormula; |
|
|
|
result[31].calculationFormula = detail.value[23]?.calculationFormula; |
|
|
|
result[31].dimensionId = detail.value[23]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[31].dimensionId = detail.value[23]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[31].id = detail.value[23]?.dimensionIndexList[0]?.id; |
|
|
|
result[31].id = detail.value[23]?.dimensionIndexList[0]?.id; |
|
|
@ -424,7 +423,7 @@ const getConfig = async () => { |
|
|
|
result[31].score = detail.value[23]?.dimensionIndexList[0]?.score; |
|
|
|
result[31].score = detail.value[23]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[32].dimensionId = detail.value[24]?.dimensionId; |
|
|
|
result[32].dimensionId = detail.value[24]?.dimensionId; |
|
|
|
result[32].isChoose = !!detail.value[24]?.isChoose; |
|
|
|
result[32].isChoose = detail.value[24]?.isChoose; |
|
|
|
result[32].calculationFormula = detail.value[24]?.calculationFormula; |
|
|
|
result[32].calculationFormula = detail.value[24]?.calculationFormula; |
|
|
|
result[32].dimensionId = detail.value[24]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[32].dimensionId = detail.value[24]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[32].id = detail.value[24]?.dimensionIndexList[0]?.id; |
|
|
|
result[32].id = detail.value[24]?.dimensionIndexList[0]?.id; |
|
|
@ -433,10 +432,10 @@ const getConfig = async () => { |
|
|
|
|
|
|
|
|
|
|
|
// <经营效益>下面5行 |
|
|
|
// <经营效益>下面5行 |
|
|
|
result[33].dimensionId = detail.value[25]?.dimensionId; |
|
|
|
result[33].dimensionId = detail.value[25]?.dimensionId; |
|
|
|
result[33].isChoose = !!detail.value[25]?.isChoose; |
|
|
|
result[33].isChoose = detail.value[25]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[34].dimensionId = detail.value[26]?.dimensionId; |
|
|
|
result[34].dimensionId = detail.value[26]?.dimensionId; |
|
|
|
result[34].isChoose = !!detail.value[26]?.isChoose; |
|
|
|
result[34].isChoose = detail.value[26]?.isChoose; |
|
|
|
result[34].calculationFormula = detail.value[26]?.calculationFormula; |
|
|
|
result[34].calculationFormula = detail.value[26]?.calculationFormula; |
|
|
|
result[34].dimensionId = detail.value[26]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[34].dimensionId = detail.value[26]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[34].id = detail.value[26]?.dimensionIndexList[0]?.id; |
|
|
|
result[34].id = detail.value[26]?.dimensionIndexList[0]?.id; |
|
|
@ -444,7 +443,7 @@ const getConfig = async () => { |
|
|
|
result[34].score = detail.value[26]?.dimensionIndexList[0]?.score; |
|
|
|
result[34].score = detail.value[26]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[35].dimensionId = detail.value[27]?.dimensionId; |
|
|
|
result[35].dimensionId = detail.value[27]?.dimensionId; |
|
|
|
result[35].isChoose = !!detail.value[27]?.isChoose; |
|
|
|
result[35].isChoose = detail.value[27]?.isChoose; |
|
|
|
result[35].calculationFormula = detail.value[27]?.calculationFormula; |
|
|
|
result[35].calculationFormula = detail.value[27]?.calculationFormula; |
|
|
|
result[35].dimensionId = detail.value[27]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[35].dimensionId = detail.value[27]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[35].id = detail.value[27]?.dimensionIndexList[0]?.id; |
|
|
|
result[35].id = detail.value[27]?.dimensionIndexList[0]?.id; |
|
|
@ -452,7 +451,7 @@ const getConfig = async () => { |
|
|
|
result[35].score = detail.value[27]?.dimensionIndexList[0]?.score; |
|
|
|
result[35].score = detail.value[27]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[36].dimensionId = detail.value[28]?.dimensionId; |
|
|
|
result[36].dimensionId = detail.value[28]?.dimensionId; |
|
|
|
result[36].isChoose = !!detail.value[28]?.isChoose; |
|
|
|
result[36].isChoose = detail.value[28]?.isChoose; |
|
|
|
result[36].calculationFormula = detail.value[28]?.calculationFormula; |
|
|
|
result[36].calculationFormula = detail.value[28]?.calculationFormula; |
|
|
|
result[36].dimensionId = detail.value[28]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[36].dimensionId = detail.value[28]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[36].id = detail.value[28]?.dimensionIndexList[0]?.id; |
|
|
|
result[36].id = detail.value[28]?.dimensionIndexList[0]?.id; |
|
|
@ -460,7 +459,7 @@ const getConfig = async () => { |
|
|
|
result[36].score = detail.value[28]?.dimensionIndexList[0]?.score; |
|
|
|
result[36].score = detail.value[28]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[37].dimensionId = detail.value[29]?.dimensionId; |
|
|
|
result[37].dimensionId = detail.value[29]?.dimensionId; |
|
|
|
result[37].isChoose = !!detail.value[29]?.isChoose; |
|
|
|
result[37].isChoose = detail.value[29]?.isChoose; |
|
|
|
result[37].calculationFormula = detail.value[29]?.calculationFormula; |
|
|
|
result[37].calculationFormula = detail.value[29]?.calculationFormula; |
|
|
|
result[37].dimensionId = detail.value[29]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[37].dimensionId = detail.value[29]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[37].id = detail.value[29]?.dimensionIndexList[0]?.id; |
|
|
|
result[37].id = detail.value[29]?.dimensionIndexList[0]?.id; |
|
|
@ -468,7 +467,7 @@ const getConfig = async () => { |
|
|
|
result[37].score = detail.value[29]?.dimensionIndexList[0]?.score; |
|
|
|
result[37].score = detail.value[29]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[38].dimensionId = detail.value[30]?.dimensionId; |
|
|
|
result[38].dimensionId = detail.value[30]?.dimensionId; |
|
|
|
result[38].isChoose = !!detail.value[30]?.isChoose; |
|
|
|
result[38].isChoose = detail.value[30]?.isChoose; |
|
|
|
result[38].calculationFormula = detail.value[30]?.calculationFormula; |
|
|
|
result[38].calculationFormula = detail.value[30]?.calculationFormula; |
|
|
|
result[38].dimensionId = detail.value[30]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[38].dimensionId = detail.value[30]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[38].id = detail.value[30]?.dimensionIndexList[0]?.id; |
|
|
|
result[38].id = detail.value[30]?.dimensionIndexList[0]?.id; |
|
|
@ -477,10 +476,10 @@ const getConfig = async () => { |
|
|
|
|
|
|
|
|
|
|
|
// <发展前景>下面3大块 |
|
|
|
// <发展前景>下面3大块 |
|
|
|
result[39].dimensionId = detail.value[31]?.dimensionId; |
|
|
|
result[39].dimensionId = detail.value[31]?.dimensionId; |
|
|
|
result[39].isChoose = !!detail.value[31]?.isChoose; |
|
|
|
result[39].isChoose = detail.value[31]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[40].dimensionId = detail.value[32]?.dimensionId; |
|
|
|
result[40].dimensionId = detail.value[32]?.dimensionId; |
|
|
|
result[40].isChoose = !!detail.value[32]?.isChoose; |
|
|
|
result[40].isChoose = detail.value[32]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[40].id = detail.value[32].dimensionIndexList[0]?.id; |
|
|
|
result[40].id = detail.value[32].dimensionIndexList[0]?.id; |
|
|
|
result[40].dimensionId = detail.value[32].dimensionIndexList[0]?.dimensionId; |
|
|
|
result[40].dimensionId = detail.value[32].dimensionIndexList[0]?.dimensionId; |
|
|
@ -495,7 +494,7 @@ const getConfig = async () => { |
|
|
|
result[42].score = detail.value[32].dimensionIndexList[2]?.score; |
|
|
|
result[42].score = detail.value[32].dimensionIndexList[2]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[43].dimensionId = detail.value[33]?.dimensionId; |
|
|
|
result[43].dimensionId = detail.value[33]?.dimensionId; |
|
|
|
result[43].isChoose = !!detail.value[33]?.isChoose; |
|
|
|
result[43].isChoose = detail.value[33]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[43].id = detail.value[33].dimensionIndexList[0]?.id; |
|
|
|
result[43].id = detail.value[33].dimensionIndexList[0]?.id; |
|
|
|
result[43].dimensionId = detail.value[33].dimensionIndexList[0]?.dimensionId; |
|
|
|
result[43].dimensionId = detail.value[33].dimensionIndexList[0]?.dimensionId; |
|
|
@ -510,7 +509,7 @@ const getConfig = async () => { |
|
|
|
result[45].score = detail.value[33].dimensionIndexList[2]?.score; |
|
|
|
result[45].score = detail.value[33].dimensionIndexList[2]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[46].dimensionId = detail.value[34]?.dimensionId; |
|
|
|
result[46].dimensionId = detail.value[34]?.dimensionId; |
|
|
|
result[46].isChoose = !!detail.value[34]?.isChoose; |
|
|
|
result[46].isChoose = detail.value[34]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[46].id = detail.value[34].dimensionIndexList[0]?.id; |
|
|
|
result[46].id = detail.value[34].dimensionIndexList[0]?.id; |
|
|
|
result[46].dimensionId = detail.value[34].dimensionIndexList[0]?.dimensionId; |
|
|
|
result[46].dimensionId = detail.value[34].dimensionIndexList[0]?.dimensionId; |
|
|
@ -526,10 +525,10 @@ const getConfig = async () => { |
|
|
|
|
|
|
|
|
|
|
|
// <经营效益预测(未来一年)>下面2行 |
|
|
|
// <经营效益预测(未来一年)>下面2行 |
|
|
|
result[49].dimensionId = detail.value[35]?.dimensionId; |
|
|
|
result[49].dimensionId = detail.value[35]?.dimensionId; |
|
|
|
result[49].isChoose = !!detail.value[35]?.isChoose; |
|
|
|
result[49].isChoose = detail.value[35]?.isChoose; |
|
|
|
|
|
|
|
|
|
|
|
result[50].dimensionId = detail.value[36]?.dimensionId; |
|
|
|
result[50].dimensionId = detail.value[36]?.dimensionId; |
|
|
|
result[50].isChoose = !!detail.value[36]?.isChoose; |
|
|
|
result[50].isChoose = detail.value[36]?.isChoose; |
|
|
|
result[50].calculationFormula = detail.value[36]?.calculationFormula; |
|
|
|
result[50].calculationFormula = detail.value[36]?.calculationFormula; |
|
|
|
result[50].dimensionId = detail.value[36]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[50].dimensionId = detail.value[36]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[50].id = detail.value[36]?.dimensionIndexList[0]?.id; |
|
|
|
result[50].id = detail.value[36]?.dimensionIndexList[0]?.id; |
|
|
@ -537,7 +536,7 @@ const getConfig = async () => { |
|
|
|
result[50].score = detail.value[36]?.dimensionIndexList[0]?.score; |
|
|
|
result[50].score = detail.value[36]?.dimensionIndexList[0]?.score; |
|
|
|
|
|
|
|
|
|
|
|
result[51].dimensionId = detail.value[37]?.dimensionId; |
|
|
|
result[51].dimensionId = detail.value[37]?.dimensionId; |
|
|
|
result[51].isChoose = !!detail.value[37]?.isChoose; |
|
|
|
result[51].isChoose = detail.value[37]?.isChoose; |
|
|
|
result[51].calculationFormula = detail.value[37]?.calculationFormula; |
|
|
|
result[51].calculationFormula = detail.value[37]?.calculationFormula; |
|
|
|
result[51].dimensionId = detail.value[37]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[51].dimensionId = detail.value[37]?.dimensionIndexList[0]?.dimensionId; |
|
|
|
result[51].id = detail.value[37]?.dimensionIndexList[0]?.id; |
|
|
|
result[51].id = detail.value[37]?.dimensionIndexList[0]?.id; |
|
|
@ -616,50 +615,6 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// 选择框回调 |
|
|
|
|
|
|
|
const checkAll = (row: Record<string, any>, i: number) => { |
|
|
|
|
|
|
|
const c = row.isChoose; |
|
|
|
|
|
|
|
if (!i) { |
|
|
|
|
|
|
|
list.value[1].isChoose = c; |
|
|
|
|
|
|
|
list.value[4].isChoose = c; |
|
|
|
|
|
|
|
list.value[7].isChoose = c; |
|
|
|
|
|
|
|
list.value[10].isChoose = c; |
|
|
|
|
|
|
|
} else if (i === 13) { |
|
|
|
|
|
|
|
list.value[14].isChoose = c; |
|
|
|
|
|
|
|
list.value[15].isChoose = c; |
|
|
|
|
|
|
|
list.value[16].isChoose = c; |
|
|
|
|
|
|
|
list.value[17].isChoose = c; |
|
|
|
|
|
|
|
} else if (i === 18) { |
|
|
|
|
|
|
|
list.value[19].isChoose = c; |
|
|
|
|
|
|
|
list.value[20].isChoose = c; |
|
|
|
|
|
|
|
list.value[21].isChoose = c; |
|
|
|
|
|
|
|
list.value[22].isChoose = c; |
|
|
|
|
|
|
|
list.value[23].isChoose = c; |
|
|
|
|
|
|
|
list.value[24].isChoose = c; |
|
|
|
|
|
|
|
list.value[25].isChoose = c; |
|
|
|
|
|
|
|
} else if (i === 26) { |
|
|
|
|
|
|
|
list.value[27].isChoose = c; |
|
|
|
|
|
|
|
list.value[28].isChoose = c; |
|
|
|
|
|
|
|
list.value[29].isChoose = c; |
|
|
|
|
|
|
|
list.value[30].isChoose = c; |
|
|
|
|
|
|
|
list.value[31].isChoose = c; |
|
|
|
|
|
|
|
list.value[32].isChoose = c; |
|
|
|
|
|
|
|
} else if (i === 33) { |
|
|
|
|
|
|
|
list.value[34].isChoose = c; |
|
|
|
|
|
|
|
list.value[35].isChoose = c; |
|
|
|
|
|
|
|
list.value[36].isChoose = c; |
|
|
|
|
|
|
|
list.value[37].isChoose = c; |
|
|
|
|
|
|
|
list.value[38].isChoose = c; |
|
|
|
|
|
|
|
} else if (i === 39) { |
|
|
|
|
|
|
|
list.value[40].isChoose = c; |
|
|
|
|
|
|
|
list.value[43].isChoose = c; |
|
|
|
|
|
|
|
list.value[46].isChoose = c; |
|
|
|
|
|
|
|
} else if (i === 49) { |
|
|
|
|
|
|
|
list.value[50].isChoose = c; |
|
|
|
|
|
|
|
list.value[51].isChoose = c; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 新增判分记录 |
|
|
|
// 新增判分记录 |
|
|
|
const addRecord = async () => { |
|
|
|
const addRecord = async () => { |
|
|
|
const preIds = `1,${Cookies.get('sand-level')},42,67,148,${form.scoringObject ? 513 : 512}`; // 1,关卡id,角色(这个页面是风控经理),个人/企业(512/513) |
|
|
|
const preIds = `1,${Cookies.get('sand-level')},42,67,148,${form.scoringObject ? 513 : 512}`; // 1,关卡id,角色(这个页面是风控经理),个人/企业(512/513) |
|
|
@ -667,10 +622,9 @@ const addRecord = async () => { |
|
|
|
form.description && lcRule.push(handleId(516, 192, form.description, preIds + ',516', 3)); |
|
|
|
form.description && lcRule.push(handleId(516, 192, form.description, preIds + ',516', 3)); |
|
|
|
|
|
|
|
|
|
|
|
list.value.forEach((e) => { |
|
|
|
list.value.forEach((e) => { |
|
|
|
// 多选框选择了才需要给 |
|
|
|
// 单选框选择了才需要给 |
|
|
|
if (e.isChoose) { |
|
|
|
e.isChoose && lcRule.push(handleId(518, 140, e.isChoose, `${preIds},${e.answerId1},${e.answerId2},518`, 1)); |
|
|
|
e.middle ? lcRule.push(handleId(518, '', '', `${preIds},${e.answerId1},${e.answerId2},518`, '')) : lcRule.push(handleId(518, '', '', `${preIds},${e.answerId1},518`, '')); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 分值(同上) |
|
|
|
// 分值(同上) |
|
|
|
if (isSelect(e.answerId1)) { |
|
|
|
if (isSelect(e.answerId1)) { |
|
|
|
e.score && |
|
|
|
e.score && |
|
|
@ -750,7 +704,7 @@ const submit = async (synchronizeUpdate?: number) => { |
|
|
|
dimensionId: e.dimensionId ?? '', |
|
|
|
dimensionId: e.dimensionId ?? '', |
|
|
|
strategyId: id.value || '', |
|
|
|
strategyId: id.value || '', |
|
|
|
recordName: e.name, |
|
|
|
recordName: e.name, |
|
|
|
isChoose: +e.isChoose, |
|
|
|
isChoose: e.isChoose, |
|
|
|
}; |
|
|
|
}; |
|
|
|
if (e.middle) { |
|
|
|
if (e.middle) { |
|
|
|
temp.dimensionIndexList = [child]; |
|
|
|
temp.dimensionIndexList = [child]; |
|
|
|