模型的下拉和输入框去掉默认值

V0.1
yujialong 9 months ago
parent 8ee0664347
commit db119792e0
  1. 4
      .env
  2. 2
      src/views/Home.vue
  3. 4
      src/views/Role.vue
  4. 24
      src/views/product/afterLoan/1029.vue
  5. 13
      src/views/product/afterLoan/1030.vue
  6. 12
      src/views/product/afterLoan/1031.vue
  7. 6
      src/views/product/afterLoan/1032.vue
  8. 2
      src/views/product/interestRate/772.vue
  9. 4
      src/views/product/interestRate/935.vue
  10. 6
      src/views/product/strategy/150.vue
  11. 20
      src/views/product/strategy/151.vue
  12. 31
      src/views/product/strategy/152.vue
  13. 30
      src/views/product/strategy/153.vue
  14. 107
      src/views/product/strategy/154.vue
  15. 89
      src/views/product/strategy/155.vue
  16. 11
      src/views/product/strategy/Credit.vue
  17. 3
      src/views/product/strategy/Risk1.vue

@ -2,7 +2,7 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘
VITE_PORT=9520
VITE_PROXY=http://192.168.31.125:8080
VITE_PUBLIC_PATH=./
# VITE_BASE_API=http://192.168.31.217:9000
VITE_BASE_API=http://121.37.12.51
VITE_BASE_API=http://192.168.31.217:9000
# VITE_BASE_API=http://121.37.12.51
VITE_I18N_LOCALE=zh-cn
VITE_I18N_FALLBACK_LOCALE=zh-cn

@ -6,7 +6,7 @@
content="退出实训"
placement="bottom">
<img class="mr-3 cursor-pointer"
src="@/assets/images/level/3.png"
src="@/assets/images/11.png"
alt=""
@click="logout" />
</el-tooltip>

@ -45,7 +45,7 @@
content="退出实训"
placement="bottom">
<img class="mr-3 cursor-pointer"
src="@/assets/images/level/3.png"
src="@/assets/images/11.png"
alt=""
@click="logout" />
</el-tooltip>
@ -53,7 +53,7 @@
content="返回关卡"
placement="bottom">
<img class="mr-3 cursor-pointer"
src="@/assets/images/level/1.png"
src="@/assets/images/2.png"
alt=""
@click="toLevel" />
</el-tooltip>

@ -15,7 +15,7 @@
<el-table-column label="未逾期"
align="center">
<template #default="{ row }">
<el-select class=""
<el-select clearable
v-model="row.notOverdue">
<el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item"
@ -27,7 +27,7 @@
<el-table-column label="1~30天"
align="center">
<template #default="{ row }">
<el-select class=""
<el-select clearable
v-model="row.thirtyDays">
<el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item"
@ -38,7 +38,7 @@
<el-table-column label="31~90天"
align="center">
<template #default="{ row }">
<el-select class=""
<el-select clearable
v-model="row.ninetyDays">
<el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item"
@ -49,7 +49,7 @@
<el-table-column label="91~180天"
align="center">
<template #default="{ row }">
<el-select class=""
<el-select clearable
v-model="row.oneHundredAndEightyDays">
<el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item"
@ -60,7 +60,7 @@
<el-table-column label="181~360天"
align="center">
<template #default="{ row }">
<el-select class=""
<el-select clearable
v-model="row.threeHundredAndSixtyDays">
<el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item"
@ -71,7 +71,7 @@
<el-table-column label="360天以上"
align="center">
<template #default="{ row }">
<el-select class=""
<el-select clearable
v-model="row.threeHundredAndSixtyDaysAbove">
<el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item"
@ -111,12 +111,12 @@ const getConfig = async () => {
projectId,
recordName: e.name,
recordChildren: e.recordChildren,
ninetyDays: +(cur.ninetyDays || 676),
notOverdue: +(cur.notOverdue || 676),
oneHundredAndEightyDays: +(cur.oneHundredAndEightyDays || 676),
thirtyDays: +(cur.thirtyDays || 676),
threeHundredAndSixtyDays: +(cur.threeHundredAndSixtyDays || 676),
threeHundredAndSixtyDaysAbove: +(cur.threeHundredAndSixtyDaysAbove || 676),
ninetyDays: +cur.ninetyDays || '',
notOverdue: +cur.notOverdue || '',
oneHundredAndEightyDays: +cur.oneHundredAndEightyDays || '',
thirtyDays: +cur.thirtyDays || '',
threeHundredAndSixtyDays: +cur.threeHundredAndSixtyDays || '',
threeHundredAndSixtyDaysAbove: +cur.threeHundredAndSixtyDaysAbove || '',
id: cur.id || '',
stRecordId: e.id,
});

@ -3,7 +3,6 @@
<div class="c-auto">
<el-table class="c-table"
:data="form"
:span-method="span"
:cell-style="{background:'#fff'}"
border>
<el-table-column prop="name"
@ -17,16 +16,13 @@
<el-table-column prop="recordName"
label="检查方式"
min-width="150"
align="center">
<template #default="{ row, $index }">
{{ $index === 1 ? '贷后全检' : row.recordName }}
</template>
</el-table-column>
align="center"></el-table-column>
<el-table-column label="检查对象"
min-width="200"
align="center">
<template #default="{ row }">
<el-select v-if="row.recordChildren"
clearable
v-model="row.checkObject">
<el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item"
@ -43,6 +39,7 @@
<div v-else
class="flex items-center">
<el-select v-if="row.recordChildren"
clearable
v-model="row.checkTimeType">
<el-option v-for="item in row?.recordChildren[2].recordChildren[0].subject.itemList"
:key="item"
@ -96,8 +93,8 @@ const getConfig = async () => {
projectId,
recordName: e.name,
recordChildren: e.recordChildren,
checkObject: +(cur.checkObject || 683),
checkTimeType: +(cur.checkTimeType || 689),
checkObject: +cur.checkObject || '',
checkTimeType: +cur.checkTimeType || '',
creditData: info.value.length ? !!cur.creditData : false,
governmentData: info.value.length ? !!cur.governmentData : false,
isChoose: info.value.length ? !!cur.isChoose : false,

@ -20,6 +20,7 @@
<div class="inline-flex flex-col justify-center mx-2">
<el-select v-if="row.recordChildren"
class="w-[140px]"
clearable
v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item"
@ -29,6 +30,7 @@
<p class="h-[1px] my-2 bg-[#cdcdcd]"></p>
<el-select v-if="row.recordChildren"
class="w-[140px]"
clearable
v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item"
@ -42,6 +44,7 @@
房屋净值 =
<el-select v-if="row.recordChildren"
class="w-[140px] mx-2"
clearable
v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item"
@ -51,6 +54,7 @@
-
<el-select v-if="row.recordChildren"
class="w-[140px] ml-2"
clearable
v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item"
@ -61,9 +65,11 @@
<template v-if="$index === 9">
<el-input class="w-[80px] mx-2"
placeholder="请输入"
v-model="row.formulaOne"></el-input>
<el-select v-if="row.recordChildren"
class="w-[140px] mr-2"
clearable
v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item"
@ -76,6 +82,7 @@
<el-select v-if="row.recordChildren"
class="w-[140px] mx-2"
clearable
v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item"
@ -90,6 +97,7 @@
<div class="inline-flex flex-col justify-center mx-2">
<el-select v-if="row.recordChildren"
class="w-[140px]"
clearable
v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item"
@ -99,6 +107,7 @@
<p class="h-[1px] my-2 bg-[#cdcdcd]"></p>
<el-select v-if="row.recordChildren"
class="w-[140px]"
clearable
v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item"
@ -113,6 +122,7 @@
<div class="inline-flex flex-col justify-center mx-2">
<el-select v-if="row.recordChildren"
class="w-[140px]"
clearable
v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item"
@ -122,6 +132,7 @@
<p class="h-[1px] my-2 bg-[#cdcdcd]"></p>
<el-select v-if="row.recordChildren"
class="w-[140px]"
clearable
v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item"
@ -147,6 +158,7 @@
align="center">
<template #default="{ row }">
<el-select v-if="row.subject"
clearable
v-model="row.score">
<el-option v-for="item in row.subject.itemList.sort((a, b) => +a.options - +b.options)"
:key="item"

@ -20,6 +20,7 @@
<div class="flex">
<el-select v-if="row.recordChildren"
class="mr-2"
clearable
v-model="row.riskGradeType">
<el-option v-for="item in row?.recordChildren[1].recordChildren[0].subject.itemList"
:key="item"
@ -28,6 +29,7 @@
</el-select>
<el-select v-if="row.recordChildren"
clearable
v-model="row.riskGrade">
<el-option v-for="item in row?.recordChildren[1].recordChildren[1].subject.itemList"
:key="item"
@ -67,8 +69,8 @@ const getConfig = async () => {
projectId,
recordName: e.name,
recordChildren: e.recordChildren,
riskGrade: +(cur.riskGrade || 747),
riskGradeType: +(cur.riskGradeType || 744),
riskGrade: +cur.riskGrade || '',
riskGradeType: +cur.riskGradeType || '',
isChoose: info.value.length ? !!cur.isChoose : false,
id: cur.id || '',
stRecordId: e.id,

@ -64,7 +64,7 @@
class="mr-2 whitespace-nowrap">{{ row?.subject?.name }}</span>
<el-select v-if="row.subject"
v-model="row.score">
<el-option v-for="item in row?.subject?.itemList.sort((a, b) => +(a.options.replace(/\D+/, '')) - +(b.options.replace(/\D+/, '')))"
<el-option v-for="item in row?.subject?.itemList.sort((a, b) => +(a.options.replace(/[^\d-]/, '')) - +(b.options.replace(/[^\d-]/, '')))"
:key="item"
:value="item.options" />
</el-select>

@ -220,8 +220,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(954, 306, form.value.individualInterestRateModels[12].score, listIds + ',954', 3));
form.value.individualInterestRateModels[13].score && rule.push(handleId(955, 307, form.value.individualInterestRateModels[13].score, listIds + ',955', 3));
form.value.individualInterestRateModels[13].score && rule.push(handleId(1229, 306, form.value.individualInterestRateModels[13].score, listIds + ',1229', 3));
form.value.individualInterestRateModels[14].score && rule.push(handleId(1230, 307, form.value.individualInterestRateModels[14].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));

@ -21,8 +21,9 @@
class="flex items-center">
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[row.span ? 1 : 0]?.name }}</span>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol">
<el-option v-for="item in symbols"
:key="item"
@ -31,6 +32,7 @@
</el-select>
</div>
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input>
<span class="ml-2 whitespace-nowrap">万元</span>
</div>
@ -184,7 +186,7 @@ const getConfig = async () => {
otherFamilyMembersHitRejected: !!cur?.otherFamilyMembersHitRejected,
parentsHitRejected: !!cur?.parentsHitRejected,
personalHitBlacklist: !!cur?.personalHitBlacklist,
symbol: isRule(e.id) && symbol?.length ? symbol[0] : '>=',
symbol: isRule(e.id) && symbol?.length ? symbol[0] : '',
had: e.id === 167 && had?.length ? had[0] : '',
num: isRule(e.id) && num?.length ? num[0] : '',
ruleOne: '',

@ -21,6 +21,7 @@
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span>
<el-input class="w-[150px] mx-2"
placeholder="请输入"
v-model="row.ruleOne"></el-input>
<span class="whitespace-nowrap">的信用卡</span>
</div>
@ -29,8 +30,9 @@
class="flex items-center">
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol">
<el-option v-for="item in symbols"
:key="item"
@ -39,11 +41,13 @@
</el-select>
</div>
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input>
<span v-if="row.recordChildren"
class="ml-2 whitespace-nowrap">{{ row?.recordChildren[1]?.name }}</span>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol1">
<el-option v-for="item in symbols"
:key="item"
@ -52,12 +56,14 @@
</el-select>
</div>
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num1"></el-input>
<span class="ml-2 whitespace-nowrap"></span>
</div>
<div v-else-if="row.stRecordId == 230 || row.stRecordId == 231"
class="flex">
<el-select class="w-[80px] ml-2"
<el-select class="w-[85px] ml-2"
clearable
v-model="row.ruleOne">
<el-option value="有" />
<el-option value="无" />
@ -67,8 +73,9 @@
class="flex items-center">
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol">
<el-option v-for="item in symbols"
:key="item"
@ -77,6 +84,7 @@
</el-select>
</div>
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input>
<span class="ml-2 whitespace-nowrap">{{ row.stRecordId === 203 || row.stRecordId === 205 ? '元' : row.stRecordId === 207 || row.stRecordId === 229 ? '万元' : ' ' }}</span>
</div>
@ -146,8 +154,8 @@ const getConfig = async () => {
name: e.name,
recordChildren: e.recordChildren,
mateRejectedStandardIdentity: !!cur?.mateRejectedStandardIdentity,
symbol: symbol?.length ? symbol[0] : '>=',
symbol1: symbol1?.length ? symbol1[0] : '>=',
symbol: symbol?.length ? symbol[0] : '',
symbol1: symbol1?.length ? symbol1[0] : '',
num: num?.length ? num[0] : '',
num1: num1?.length ? num1[0] : '',
ruleOne: e.id === 204 || e.id === 230 || e.id === 231 ? cur?.ruleOne : '',

@ -21,8 +21,9 @@
<div v-if="$index < 4"
class="flex items-center">
<span class="whitespace-nowrap">{{ row.rule }}</span>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol">
<el-option v-for="item in symbols"
:key="item"
@ -31,6 +32,7 @@
</el-select>
</div>
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input>
<span class="ml-2 whitespace-nowrap"></span>
</div>
@ -40,8 +42,9 @@
class="flex items-center">
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[0]?.recordChildren[0]?.name }}</span>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol">
<el-option v-for="item in symbols"
:key="item"
@ -50,10 +53,12 @@
</el-select>
</div>
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input>
<span class="ml-2 whitespace-nowrap"></span>
<div class="w-[120px] ">
<el-select class="mx-2"
clearable
v-model="row.had">
<el-option v-for="item in house"
:key="item"
@ -66,9 +71,11 @@
<div v-else-if="$index === 15"
class="flex items-center">
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol">
<el-option v-for="item in units"
:key="item"
@ -77,8 +84,9 @@
</el-select>
</div>
<span class="ml-2 whitespace-nowrap">内申请次数</span>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol1">
<el-option v-for="item in symbols"
:key="item"
@ -87,10 +95,12 @@
</el-select>
</div>
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num1"></el-input>
<span class="ml-2 whitespace-nowrap"></span>
<div class="w-[120px] ">
<el-select class="mx-2"
clearable
v-model="row.had">
<el-option v-for="item in house"
:key="item"
@ -101,8 +111,9 @@
<span class="ml-2 whitespace-nowrap"></span>
</div>
<div v-else-if="$index === 18"
class="w-[90px] ">
class="w-[95px] ">
<el-select v-if="row.recordChildren"
clearable
v-model="row.symbol">
<el-option v-for="item in row?.recordChildren[0]?.subject?.itemList"
:key="item"
@ -113,9 +124,11 @@
<div v-else-if="$index > 19 && $index < 28"
class="flex items-center">
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input>
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol">
<el-option v-for="item in units"
:key="item"
@ -125,8 +138,9 @@
</div>
<span class="ml-2 whitespace-nowrap">{{tdNames[row.ruleId]}}</span>
<template v-if="row.ruleId === 350">
<div class="w-[90px] ">
<div class="w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.symbol1">
<el-option v-for="item in symbols"
:key="item"
@ -135,6 +149,7 @@
</el-select>
</div>
<el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num1"></el-input>
<span class="ml-2 whitespace-nowrap"></span>
</template>
@ -234,7 +249,7 @@ const getConfig = async () => {
stRecordId: e.id,
ruleId: e?.recordChildren[0].id,
rule: e?.recordChildren[0].name,
symbol: e.id === 322 && cur ? cur?.ruleOne : (e.id === 318 || e.id === 320) && cur ? symbol : !i || i === 2 ? '>=' : e.id === 322 ? '' : '年',
symbol: e.id === 322 && cur ? cur?.ruleOne : (e.id === 318 || e.id === 320) && cur ? symbol : !i || i === 2 ? '' : e.id === 322 ? '' : '年',
symbol1: '>=',
num,
num1: '',

@ -28,8 +28,9 @@
<div class="flex items-center">
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[0]?.name }}认定{{row.name}}</span>
<div class="w-[90px] ">
<div class="min-w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.enterRuleOne">
<el-option v-for="item in nums"
:key="item"
@ -42,8 +43,9 @@
<div class="flex items-center mt-2">
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[1]?.name }}认定{{row.name}}</span>
<div class="w-[90px] ">
<div class="min-w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.enterRuleTwo">
<el-option v-for="item in nums"
:key="item"
@ -69,8 +71,9 @@
<div class="flex items-center">
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[0]?.name }}结清后</span>
<div class="w-[90px] ">
<div class="min-w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.num">
<el-option v-for="item in nums"
:key="item"
@ -78,8 +81,9 @@
:value="item" />
</el-select>
</div>
<div class="w-[90px] ">
<div class="min-w-[95px] ">
<el-select class="mr-2"
clearable
v-model="row.symbol">
<el-option v-for="item in units"
:key="item"
@ -92,8 +96,9 @@
<div class="flex items-center mt-2">
<span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[1]?.name }}结清后</span>
<div class="w-[90px] ">
<div class="min-w-[95px] ">
<el-select class="mx-2"
clearable
v-model="row.num1">
<el-option v-for="item in nums"
:key="item"
@ -101,8 +106,9 @@
:value="item" />
</el-select>
</div>
<div class="w-[90px] ">
<div class="min-w-[95px] ">
<el-select class="mr-2"
clearable
v-model="row.symbol1">
<el-option v-for="item in units"
:key="item"
@ -153,12 +159,12 @@ const getConfig = async () => {
recordChildren: e.recordChildren,
enterBlacklist: !!cur?.enterBlacklist,
outBlacklist: !!cur?.outBlacklist,
enterRuleOne: cur?.enterRuleOne || 1,
enterRuleTwo: cur?.enterRuleTwo || 1,
num: getNum(cur?.outRuleOne) || 1,
num1: getNum(cur?.outRuleTwo) || 1,
symbol: getChinese(cur?.outRuleOne) || '',
symbol1: getChinese(cur?.outRuleTwo) || '',
enterRuleOne: cur?.enterRuleOne || '',
enterRuleTwo: cur?.enterRuleTwo || '',
num: getNum(cur?.outRuleOne) || '',
num1: getNum(cur?.outRuleTwo) || '',
symbol: getChinese(cur?.outRuleOne) || '',
symbol1: getChinese(cur?.outRuleTwo) || '',
stRecordId: e.id,
};
result.push(temp);

@ -16,16 +16,18 @@
<div class="flex items-center">
<template v-if="!$index">
<span class="whitespace-nowrap">跨行业经营行业门类数</span>
<div class="w-[90px] mx-2">
<el-select v-model="row.symbol">
<div class="w-[95px] mx-2">
<el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] ">
<el-select v-model="row.num">
<div class="w-[95px]">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
@ -36,8 +38,9 @@
</template>
<template v-else-if="$index === 1">
<span class="whitespace-nowrap">名下企业</span>
<div class="w-[90px] mx-2">
<el-select v-model="row.had">
<div class="w-[95px] mx-2">
<el-select v-model="row.had"
clearable>
<el-option v-for="item in have"
:key="item"
:label="item"
@ -48,8 +51,9 @@
</template>
<template v-else-if="$index === 2">
<span class="whitespace-nowrap">名下企业</span>
<div class="w-[90px] mx-2">
<el-select v-model="row.had">
<div class="w-[95px] mx-2">
<el-select v-model="row.had"
clearable>
<el-option v-for="item in have"
:key="item"
:label="item"
@ -60,8 +64,9 @@
</template>
<template v-else-if="$index === 3">
<span class="whitespace-nowrap">行内企业</span>
<div class="w-[90px] mx-2">
<el-select v-model="row.had">
<div class="w-[95px] mx-2">
<el-select v-model="row.had"
clearable>
<el-option v-for="item in have"
:key="item"
:label="item"
@ -79,7 +84,7 @@
</el-checkbox-group>
</template>
<template v-else-if="$index === 5">
<div class="w-[90px]">
<div class="w-[95px]">
<el-select v-model="row.had"
clearable>
<el-option value="不是" />
@ -89,7 +94,7 @@
<span class="whitespace-nowrap ml-2">被列为非正常户或注销户</span>
</template>
<template v-else-if="$index === 6">
<div class="w-[90px]">
<div class="w-[95px]">
<el-select v-model="row.had"
clearable>
<el-option value="不是" />
@ -100,24 +105,27 @@
</template>
<template v-else-if="$index === 7">
<span class="whitespace-nowrap">经营年限</span>
<div class="w-[90px] ml-2">
<el-select v-model="row.symbol">
<div class="w-[95px] ml-2">
<el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] mx-2">
<el-select v-model="row.num">
<div class="w-[95px] mx-2">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] ">
<el-select v-model="row.unit">
<div class="w-[95px]">
<el-select v-model="row.unit"
clearable>
<el-option v-for="item in units"
:key="item"
:label="item"
@ -136,24 +144,27 @@
</el-checkbox-group>
</template>
<template v-else-if="$index === 9">
<div class="w-[90px]">
<el-select v-model="row.symbol">
<div class="w-[95px]">
<el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] mx-2">
<el-select v-model="row.num">
<div class="w-[95px] mx-2">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px]">
<el-select v-model="row.unit">
<div class="w-[95px]">
<el-select v-model="row.unit"
clearable>
<el-option v-for="item in units"
:key="item"
:label="item"
@ -163,24 +174,27 @@
<span class="whitespace-nowrap ml-2">注册资本减少</span>
</template>
<template v-else-if="$index === 10">
<div class="w-[90px]">
<el-select v-model="row.symbol">
<div class="w-[95px]">
<el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] mx-2">
<el-select v-model="row.num">
<div class="w-[95px] mx-2">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px]">
<el-select v-model="row.unit">
<div class="w-[95px]">
<el-select v-model="row.unit"
clearable>
<el-option v-for="item in units"
:key="item"
:label="item"
@ -190,24 +204,27 @@
<span class="whitespace-nowrap ml-2">内法定代表人变更</span>
</template>
<template v-else-if="$index === 11">
<div class="w-[90px]">
<el-select v-model="row.symbol">
<div class="w-[95px]">
<el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] mx-2">
<el-select v-model="row.num">
<div class="w-[95px] mx-2">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px]">
<el-select v-model="row.unit">
<div class="w-[95px]">
<el-select v-model="row.unit"
clearable>
<el-option v-for="item in units"
:key="item"
:label="item"
@ -221,16 +238,18 @@
</template>
<template v-else-if="$index === 13">
<span class="whitespace-nowrap">申请人在该企业的股权占比</span>
<div class="w-[90px] mx-2">
<el-select v-model="row.symbol">
<div class="w-[95px] mx-2">
<el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] ">
<el-select v-model="row.num">
<div class="w-[95px] ">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
@ -240,7 +259,7 @@
<span class="whitespace-nowrap ml-2">%</span>
</template>
<template v-else-if="$index === 14">
<div class="w-[90px] mx-2">
<div class="w-[95px] mx-2">
<el-select v-model="row.had"
clearable>
<el-option value="不在" />
@ -293,9 +312,9 @@ const getConfig = async () => {
name: e.name,
subject: e.subject,
stRecordId: e.id,
symbol: symbol || '>=',
unit: had || '',
num: num || 1,
symbol: symbol || '',
unit: had || '',
num: num || '',
had: (((i > 0 && i < 4) || i === 5 || i === 6 || i === 14) && cur?.rule) || '',
check: (i === 4 || i === 8) && cur ? cur?.rule.split(',') : [],
};

@ -21,16 +21,18 @@
<div class="flex items-center">
<template v-if="!$index">
<span class="whitespace-nowrap">人脸识别匹配度</span>
<div class="w-[90px] mx-2">
<el-select v-model="row.symbol">
<div class="w-[95px] mx-2">
<el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] ">
<el-select v-model="row.num">
<div class="w-[95px]">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
@ -40,8 +42,9 @@
<span class="whitespace-nowrap ml-2">%</span>
</template>
<div v-else-if="$index === 1 || $index === 2 || $index > 18"
class="w-[90px] mx-2">
<el-select v-model="row.had">
class="w-[95px] mx-2">
<el-select v-model="row.had"
clearable>
<el-option v-for="item in have"
:key="item"
:label="item"
@ -50,8 +53,9 @@
</div>
<template v-else-if="$index === 3 || $index === 4">
<span class="whitespace-nowrap">在网期限</span>
<div class="w-[90px] ">
<el-select v-model="row.num">
<div class="w-[95px] ">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
@ -59,16 +63,18 @@
</el-select>
</div>
<span class="mx-2">~</span>
<div class="w-[90px] ">
<el-select v-model="row.num1">
<div class="w-[95px] ">
<el-select v-model="row.num1"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] mx-2">
<el-select v-model="row.unit">
<div class="w-[95px] mx-2">
<el-select v-model="row.unit"
clearable>
<el-option v-for="item in units"
:key="item"
:label="item"
@ -80,6 +86,7 @@
<span class="whitespace-nowrap">命中</span>
<div class="flex-1">
<el-select v-if="row.recordChildren"
clearable
v-model="row.select">
<el-option v-for="item in row?.recordChildren[0]?.subject?.itemList"
:key="item"
@ -89,16 +96,18 @@
</template>
<template v-else-if="$index > 13 && $index < 19">
<span class="whitespace-nowrap">关联人数</span>
<div class="w-[90px] mx-2">
<el-select v-model="row.symbol">
<div class="w-[95px] mx-2">
<el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols"
:key="item"
:label="item"
:value="item" />
</el-select>
</div>
<div class="w-[90px] ">
<el-select v-model="row.num">
<div class="w-[95px] ">
<el-select v-model="row.num"
clearable>
<el-option v-for="item in nums"
:key="item"
:label="item"
@ -154,10 +163,10 @@ const getConfig = async () => {
stRecordId: e.id,
ruleId: e?.recordChildren[0].id,
rule: e?.recordChildren[0].name,
symbol: symbol || '>=',
num: num || 2,
symbol: symbol || '',
num: num || '',
num1: '',
had: '',
had: '',
select: cur?.ruleOne || '',
unit: '',
};
@ -170,27 +179,27 @@ const getConfig = async () => {
temp.ruleId = n.id;
temp.rule = n.name;
if (n.id === 388) {
temp.had = cur?.ruleTwo || '';
temp.had = cur?.ruleTwo || '';
} else if (n.id === 389) {
temp.had = cur?.ruleThree || '';
temp.had = cur?.ruleThree || '';
} else if (n.id === 406) {
temp.had = cur?.ruleSix || '';
temp.had = cur?.ruleSix || '';
} else if (n.id === 407) {
temp.had = cur?.ruleSeven || '';
temp.had = cur?.ruleSeven || '';
} else if (n.id === 408) {
temp.had = cur?.ruleEight || '';
temp.had = cur?.ruleEight || '';
} else if (n.id === 409) {
temp.had = cur?.ruleNine || '';
temp.had = cur?.ruleNine || '';
} else if (n.id === 410) {
temp.had = cur?.ruleTen || '';
temp.had = cur?.ruleTen || '';
} else if (n.id === 411) {
temp.had = cur?.ruleEleven || '';
temp.had = cur?.ruleEleven || '';
} else if (n.id === 412) {
temp.had = cur?.ruleTwelve || '';
temp.had = cur?.ruleTwelve || '';
} else if (n.id === 413) {
temp.had = cur?.ruleThirteen || '';
temp.had = cur?.ruleThirteen || '';
} else if (n.id === 414) {
temp.had = cur?.ruleFourteen || '';
temp.had = cur?.ruleFourteen || '';
} else if (e.id === 385) {
//
if (n.id === 393) {
@ -221,20 +230,20 @@ const getConfig = async () => {
temp.num1 = getNum(arr[1]) || '';
temp.unit = getChinese(arr[1]) || '';
} else if (n.id === 401) {
temp.symbol = getSymbol(cur?.ruleOne) || '>=';
temp.num = getNum(cur?.ruleOne) || 2;
temp.symbol = getSymbol(cur?.ruleOne) || '';
temp.num = getNum(cur?.ruleOne) || '';
} else if (n.id === 402) {
temp.symbol = getSymbol(cur?.ruleTwo) || '>=';
temp.num = getNum(cur?.ruleTwo) || 2;
temp.symbol = getSymbol(cur?.ruleTwo) || '';
temp.num = getNum(cur?.ruleTwo) || '';
} else if (n.id === 403) {
temp.symbol = getSymbol(cur?.ruleThree) || '>=';
temp.num = getNum(cur?.ruleThree) || 2;
temp.symbol = getSymbol(cur?.ruleThree) || '';
temp.num = getNum(cur?.ruleThree) || '';
} else if (n.id === 404) {
temp.symbol = getSymbol(cur?.ruleFour) || '>=';
temp.num = getNum(cur?.ruleFour) || 2;
temp.symbol = getSymbol(cur?.ruleFour) || '';
temp.num = getNum(cur?.ruleFour) || '';
} else if (n.id === 405) {
temp.symbol = getSymbol(cur?.ruleFive) || '>=';
temp.num = getNum(cur?.ruleFive) || 2;
temp.symbol = getSymbol(cur?.ruleFive) || '';
temp.num = getNum(cur?.ruleFive) || '';
}
result.push(temp);
}

@ -65,6 +65,7 @@
align="center">
<template #default="{ row }">
<el-select v-if="isSelect(row.answerId1) && row.subject"
clearable
v-model="row.score">
<el-option v-for="item in row?.subject?.itemList.sort((a, b) => +a.options - +b.options)"
:key="item"
@ -81,8 +82,9 @@
class="whitespace-nowrap">{{ row?.recordChildren[2]?.recordChildren[0]?.recordChildren[0]?.name.replace('分', '') }}</span>
<span v-else-if="row.answerId1 === 595 || row.answerId1 === 593"
class="whitespace-nowrap">每降1%</span>
<div class="w-[100px] mx-2">
<div class="w-[95px] mx-2">
<el-select v-if="row.recordChildren"
clearable
v-model="row.score">
<el-option v-for="item in row?.recordChildren[2]?.recordChildren[0]?.recordChildren[0]?.subject?.itemList.sort((a, b) => +a.options - +b.options)"
:key="item"
@ -101,9 +103,9 @@
}}
</span>
<template v-if="row.answerId2 !== 627 && row.answerId2 !== 646 && row.answerId2 !== 667 && row.answerId2 !== 668 && row.answerId2 !== 670 && row.answerId2 !== 694 && row.answerId2 !== 695">
<div class="w-[120px] mx-2">
<div class="w-[95px] mx-2">
<el-select v-if="row.recordChildren"
placeholder=""
clearable
v-model="row.percentage">
<el-option v-for="item in row.answerId2 === 669 || row.answerId2 === 671 ? row?.recordChildren[2]?.recordChildren[0]?.recordChildren[1]?.subject?.itemList : row?.recordChildren[2]?.recordChildren[0]?.recordChildren[1]?.subject?.itemList.sort((a, b) => +(a.options.replace('%', '')) - +(b.options.replace('%', '')))"
:key="item"
@ -144,6 +146,7 @@
align="center">
<template #default="{ row }">
<el-select v-if="row.itemList"
clearable
v-model="row.score">
<el-option v-for="item in row?.itemList.sort((a, b) => +a.options - +b.options)"
:key="item"
@ -223,7 +226,7 @@ const getConfig = async () => {
name: e.name,
sub: n.name,
isChoose: cur ? !!cur?.isChoose : false,
score: cur ? cur?.dimensionIndexList[i - 1]?.score + '' : '0',
score: cur ? cur?.dimensionIndexList[i - 1]?.score + '' : '',
span: i === 1 ? 1 : 0,
parent: i === 1 ? '' : j,
itemList: n?.subject?.itemList || [],

@ -22,7 +22,8 @@
min-width="150"
align="center">
<template #default="{ row }">
<el-input v-model="row.coefficient"></el-input>
<el-input placeholder="输入系数"
v-model="row.coefficient"></el-input>
</template>
</el-table-column>
</el-table>

Loading…
Cancel
Save