模型判分id修复

V0.1
yujialong 9 months ago
parent e011a0cc6d
commit 8558fa84cf
  1. 4
      .env
  2. 2
      src/views/product/afterLoan/1029.vue
  3. 6
      src/views/product/afterLoan/1030.vue
  4. 3
      src/views/product/afterLoan/1032.vue
  5. 2
      src/views/product/afterLoan/1033.vue
  6. 5
      src/views/product/interestRate/935.vue
  7. 2
      src/views/product/interestRate/936.vue
  8. 10
      src/views/product/strategy/150.vue
  9. 8
      src/views/product/strategy/151.vue
  10. 52
      src/views/product/strategy/152.vue
  11. 14
      src/views/product/strategy/153.vue
  12. 16
      src/views/product/strategy/154.vue
  13. 46
      src/views/product/strategy/155.vue
  14. 4
      src/views/product/strategy/Credit.vue
  15. 54
      src/views/product/strategy/Risk2.vue
  16. 16
      src/views/product/strategy/Risk3.vue

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

@ -141,7 +141,7 @@ const addRecord = async (data: Record<string, any>) => {
data.map((e) => {
e.recordChildren.forEach((n, i) => {
rule.push(handleId(n.id, n.subjectId, e[fieldKeys[i]], `${preIds},${e.stRecordId},${n.id}`, 1));
e[fieldKeys[i]] && rule.push(handleId(n.id, n.subjectId, e[fieldKeys[i]], `${preIds},${e.stRecordId},${n.id}`, 1));
});
});

@ -140,12 +140,14 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => {
};
//
const addRecord = async (data: Record<string, any>) => {
console.log('🚀 ~ addRecord ~ data:', data);
const preIds = `1,${Cookies.get('sand-level')},42,69,1030`; // 1id
const rule = [];
data.forEach((e, i) => {
rule.push(handleId(1052, '', '', preIds + ',' + e.stRecordId + ',1052', ''), handleId(1053, 282, e.checkObject, preIds + ',' + e.stRecordId + ',1053', 1));
i !== 4 && rule.push(handleId(1054, 283, e.checkTimeType, preIds + ',' + e.stRecordId + ',1054,1056', 1));
e.isChoose && rule.push(handleId(1052, '', '', preIds + ',' + e.stRecordId + ',1052', ''));
e.checkObject && rule.push(handleId(1053, 282, e.checkObject, preIds + ',' + e.stRecordId + ',1053', 1));
i !== 4 && e.checkTimeType && rule.push(handleId(1054, 283, e.checkTimeType, preIds + ',' + e.stRecordId + ',1054,1056', 1));
e.timeDays && rule.push(handleId(1057, 284, e.timeDays, preIds + ',' + e.stRecordId + ',1054,1057', 3));
const ids = [];

@ -95,7 +95,8 @@ const addRecord = async (data: Record<string, any>) => {
data.map((e) => {
e.isChoose && rule.push(handleId(1052, '', '', `${preIds},${e.stRecordId},1052`, ''));
rule.push(handleId(1147, 299, e.riskGradeType, `${preIds},${e.stRecordId},1146,1147`, 1), handleId(1148, 300, e.riskGrade, `${preIds},${e.stRecordId},1146,1148`, 1));
e.riskGradeType && rule.push(handleId(1147, 299, e.riskGradeType, `${preIds},${e.stRecordId},1146,1147`, 1));
e.riskGrade && rule.push(handleId(1148, 300, e.riskGrade, `${preIds},${e.stRecordId},1146,1148`, 1));
});
await addOperation({

@ -137,7 +137,7 @@ const addRecord = async (data: Record<string, any>) => {
e.manualCollection && ids.push(777);
ids.length && rule.push(handleId(n.id, n.subjectId, ids.join(), `${preIds},${e.stRecordId},${n.id}`, 1));
} else {
rule.push(handleId(n.id, n.subjectId, e.verbalTrick, `${preIds},${e.stRecordId},${n.id}`, 1));
e.verbalTrick && rule.push(handleId(n.id, n.subjectId, e.verbalTrick, `${preIds},${e.stRecordId},${n.id}`, 1));
}
});
});

@ -20,6 +20,7 @@
<el-table-column label="描述"
min-width="150">
<template #default="{ row, $index }">
{{ $index }},
<span>{{ $index === 11 ? '=起始浮动比例+增减分值 且 不超过最高浮动比例' : row?.description }}</span>
</template>
</el-table-column>
@ -151,6 +152,7 @@ const getConfig = async () => {
});
}
form.value.individualInterestRateModels = result;
console.log('🚀 ~ getConfig ~ form.value.individualInterestRateModels:', form.value.individualInterestRateModels);
loading.close();
};
//
@ -214,9 +216,8 @@ const addRecord = async (data: Record<string, any>) => {
const rule: Array<Record<string, any>> = [];
const listIds = preIds + ',937';
form.value.individualInterestRateModels[0].score && rule.push(handleId(939, 273, 647, listIds + ',939', 1));
form.value.individualInterestRateModels.forEach((e, i) => {
if (i && i !== 12 && i !== 13 && e.subject) {
if (i !== 12 && i !== 13 && e.subject) {
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));
}
});

@ -317,7 +317,7 @@ const addRecord = async (data: Record<string, any>) => {
//
if (i === 51 || i === 52) {
rule.push(handleId(e.stRecordId, e.subject.subjectId, e.floatingCoefficient, `${listIds},${e.stRecordId}`, 3));
e.floatingCoefficient && rule.push(handleId(e.stRecordId, e.subject.subjectId, e.floatingCoefficient, `${listIds},${e.stRecordId}`, 3));
}
});

@ -334,18 +334,20 @@ const addRecord = async (data: Record<string, any>) => {
if (n.id === 169 && e.had) {
rule.push(handleId(n.id, n.subjectId, e.had === '有' ? 387 : 388, preIds + ',' + e.stRecordId + ',' + n.id, 1));
} else if (n.id === 168) {
rule.push(handleId(n.id, n.subjectId, e.symbol + e.num, preIds + ',' + e.stRecordId + ',' + n.id, 5));
const val = e.symbol + e.num;
val && rule.push(handleId(n.id, n.subjectId, val, preIds + ',' + e.stRecordId + ',' + n.id, 5));
} else if (n.id === 170 && e.had) {
rule.push(handleId(n.id, n.subjectId, e.had === '有' ? 389 : 390, preIds + ',' + e.stRecordId + ',' + n.id, 1));
} else {
rule.push(handleId(n.id, n.subjectId, j ? (n.id === 168 ? e.symbol + e.num : e.ruleTwo) : e.ruleOne, preIds + ',' + e.stRecordId + ',' + n.id, 5));
const val = j ? (n.id === 168 ? e.symbol + e.num : e.ruleTwo) : e.ruleOne;
val && rule.push(handleId(n.id, n.subjectId, val, preIds + ',' + e.stRecordId + ',' + n.id, 5));
}
} else if (temp.length) {
rule.push(handleId(n.id, e.subjectId, temp.join(), preIds + ',' + e.stRecordId + ',' + n.id, 1));
rule.push(handleId(n.id, 71, temp.join(), preIds + ',' + e.stRecordId + ',' + n.id, 1));
}
});
} else {
rule.push(handleId(e.stRecordId, e.subjectId, temp.join(), preIds + ',' + e.stRecordId, 1));
temp.length && rule.push(handleId(e.stRecordId, 71, temp.join(), preIds + ',' + e.stRecordId, 1));
}
});

@ -134,11 +134,11 @@ const form = ref<Record<string, any>[]>([]);
const info = ref<Record<string, any>[]>([]);
const whethers: Record<string, any>[] = [
{
id: 795,
id: 345,
name: '是',
},
{
id: 796,
id: 346,
name: '否',
},
];
@ -249,8 +249,8 @@ const addRecord = async (data: Record<string, any>) => {
});
}
//
e.hitTheBlacklist && rule.push(handleId(1245, 324, e.hitTheBlacklist, preIds + ',' + e.stRecordId + ',1245', 1));
e.mateRejectedStandardIdentity && rule.push(handleId(274, 324, e.mateRejectedStandardIdentity, preIds + ',' + e.stRecordId + ',274', 1));
e.hitTheBlacklist && rule.push(handleId(1245, 140, e.hitTheBlacklist, preIds + ',' + e.stRecordId + ',1245', 1));
e.mateRejectedStandardIdentity && rule.push(handleId(274, 140, e.mateRejectedStandardIdentity, preIds + ',' + e.stRecordId + ',274', 1));
});
await addOperation({

@ -423,32 +423,40 @@ const submit = async () => {
//
const addRecord = async (data: Record<string, any>) => {
const preIds = `1,${Cookies.get('sand-level')},42,67,147,152`; // 1id
const rule = [
handleId(324, 150, data[0].ruleOne, preIds + ',318,324', 5),
handleId(325, 151, data[0].ruleTwo, preIds + ',318,325', 5),
handleId(326, 152, data[0].ruleThree, preIds + ',318,326', 5),
handleId(327, 153, data[0].ruleFour, preIds + ',318,327', 5),
const rule = [];
data[0].ruleOne && rule.push(handleId(324, 150, data[0].ruleOne, preIds + ',318,324', 5));
data[0].ruleTwo && rule.push(handleId(325, 151, data[0].ruleTwo, preIds + ',318,325', 5));
data[0].ruleThree && rule.push(handleId(326, 152, data[0].ruleThree, preIds + ',318,326', 5));
data[0].ruleFour && rule.push(handleId(327, 153, data[0].ruleFour, preIds + ',318,327', 5));
const line14 = form.value[14].symbol + form.value[14].num;
line14 && rule.push(handleId(353, 154, line14, preIds + ',320,338,353', 5));
handleId(353, 154, form.value[14].symbol + form.value[14].num, preIds + ',320,338,353', 5),
];
form.value[14].had && rule.push(handleId(354, 155, form.value[14].had === '有商品房' ? 353 : 354, preIds + ',320,338,354', 1));
rule.push(
handleId(355, 156, form.value[15].num + form.value[15].symbol, preIds + ',320,339,355', 5),
handleId(356, 157, form.value[15].symbol1 + form.value[15].num1, preIds + ',320,339,356', 5),
);
const line15 = form.value[15].num + form.value[15].symbol;
line15 && rule.push(handleId(355, 156, line15, preIds + ',320,339,355', 5));
const line151 = form.value[15].symbol1 + form.value[15].num1;
line151 && rule.push(handleId(356, 157, line151, preIds + ',320,339,356', 5));
form.value[15].had && rule.push(handleId(357, 155, form.value[15].had === '有商品房' ? 353 : 354, preIds + ',320,339,357', 1));
data[2].ruleOne && rule.push(handleId(342, 158, data[2].ruleOne === '拒绝' ? 355 : 356, preIds + ',322,342', 1));
rule.push(
handleId(344, 159, data[2].ruleTwo, preIds + ',322,344', 5),
handleId(345, 160, data[2].ruleThree, preIds + ',322,345', 5),
handleId(346, 161, data[2].ruleFour, preIds + ',322,346', 5),
handleId(347, 162, data[2].ruleFive, preIds + ',322,347', 5),
handleId(348, 163, data[2].ruleSix, preIds + ',322,348', 5),
handleId(349, 164, data[2].ruleSeven, preIds + ',322,349', 5),
handleId(355, 156, form.value[26].num + form.value[26].symbol, preIds + ',322,350,355', 5),
handleId(356, 157, form.value[26].symbol1 + form.value[26].num1, preIds + ',322,350,356', 5),
handleId(351, 165, data[2].ruleNine, preIds + ',322,351', 5),
);
data[2].ruleTwo && rule.push(handleId(344, 159, data[2].ruleTwo, preIds + ',322,344', 5));
data[2].ruleThree && rule.push(handleId(345, 160, data[2].ruleThree, preIds + ',322,345', 5));
data[2].ruleFour && rule.push(handleId(346, 161, data[2].ruleFour, preIds + ',322,346', 5));
data[2].ruleFive && rule.push(handleId(347, 162, data[2].ruleFive, preIds + ',322,347', 5));
data[2].ruleSix && rule.push(handleId(348, 163, data[2].ruleSix, preIds + ',322,348', 5));
data[2].ruleSeven && rule.push(handleId(349, 164, data[2].ruleSeven, preIds + ',322,349', 5));
const line26 = form.value[26].num + form.value[26].symbol;
line26 && rule.push(handleId(355, 156, line26, preIds + ',322,350,355', 5));
const line261 = form.value[26].symbol1 + form.value[26].num1;
line261 && rule.push(handleId(356, 157, line261, preIds + ',322,350,356', 5));
data[2].ruleNine && rule.push(handleId(351, 165, data[2].ruleNine, preIds + ',322,351', 5));
await addOperation({
...getIds(),

@ -154,11 +154,11 @@ const nums: Array<number> = [1, 3, 5, 10, 20, 30, 40];
const units: Array<string> = ['年', '个月', '天'];
const whethers: Record<string, any>[] = [
{
id: 795,
id: 345,
name: '是',
},
{
id: 796,
id: 346,
name: '否',
},
];
@ -250,10 +250,12 @@ const addRecord = async (data: Record<string, any>) => {
const rule: Array<Record<string, any>> = [];
data.map((e) => {
e.enterBlacklist && rule.push(handleId(363, 324, e.enterBlacklist, preIds + ',' + e.stRecordId + ',363', 1));
rule.push(handleId(367, 166, e.enterRuleOne, preIds + ',' + e.stRecordId + ',364,367', 5), handleId(368, 167, e.enterRuleTwo, preIds + ',' + e.stRecordId + ',364,368', 5));
e.outBlacklist && rule.push(handleId(365, 324, e.outBlacklist, preIds + ',' + e.stRecordId + ',365', 1));
rule.push(handleId(367, 166, e.outRuleOne, preIds + ',' + e.stRecordId + ',366,367', 5), handleId(368, 167, e.outRuleTwo, preIds + ',' + e.stRecordId + ',366,368', 5));
e.enterBlacklist && rule.push(handleId(363, 140, e.enterBlacklist, preIds + ',' + e.stRecordId + ',363', 1));
e.enterRuleOne && rule.push(handleId(367, 166, e.enterRuleOne, preIds + ',' + e.stRecordId + ',364,367', 5));
e.enterRuleTwo && rule.push(handleId(368, 167, e.enterRuleTwo, preIds + ',' + e.stRecordId + ',364,368', 5));
e.outBlacklist && rule.push(handleId(365, 140, e.outBlacklist, preIds + ',' + e.stRecordId + ',365', 1));
e.outRuleOne && rule.push(handleId(367, 166, e.outRuleOne, preIds + ',' + e.stRecordId + ',366,367', 5));
e.outRuleTwo && rule.push(handleId(368, 167, e.outRuleTwo, preIds + ',' + e.stRecordId + ',366,368', 5));
});
await addOperation({

@ -372,14 +372,14 @@ const submit = async () => {
//
const addRecord = async (data: Record<string, any>) => {
const preIds = `1,${Cookies.get('sand-level')},42,67,147,154`; // 1id
const rule: Array<Record<string, any>> = [
handleId(369, 168, data[0].rule, preIds + ',369', 5),
handleId(382, 179, data[13].rule, preIds + ',382', 5),
handleId(376, 174, data[7].rule, preIds + ',376', 5),
handleId(378, 176, data[9].rule, preIds + ',378', 5),
handleId(379, 177, data[10].rule, preIds + ',379', 5),
handleId(380, 178, data[11].rule, preIds + ',380', 5),
];
const rule: Array<Record<string, any>> = [];
data[0].rule && rule.push(handleId(369, 168, data[0].rule, preIds + ',369', 5));
data[13].rule && rule.push(handleId(382, 179, data[13].rule, preIds + ',382', 5));
data[7].rule && rule.push(handleId(376, 174, data[7].rule, preIds + ',376', 5));
data[9].rule && rule.push(handleId(378, 176, data[9].rule, preIds + ',378', 5));
data[10].rule && rule.push(handleId(379, 177, data[10].rule, preIds + ',379', 5));
data[11].rule && rule.push(handleId(380, 178, data[11].rule, preIds + ',380', 5));
form.value.map((e, i) => {
if (((i > 0 && i < 4) || i === 5 || i === 6 || i === 14) && e.had) {
rule.push(handleId(e.stRecordId, e?.subject?.subjectId, e?.subject?.itemList?.find((n) => n.options === e.had)?.itemId, preIds + ',' + e.stRecordId, 1));

@ -361,13 +361,14 @@ const getName = (str: string): string | number => {
//
const addRecord = async (data: Record<string, any>) => {
const preIds = `1,${Cookies.get('sand-level')},42,67,147,155`; // 1id
const rule: Array<Record<string, any>> = [
handleId(387, 181, data[0].ruleOne, preIds + ',384,387', 5),
handleId(388, 140, data[0].ruleTwo === '是' ? 345 : 346, preIds + ',384,388', 1),
handleId(389, 140, data[0].ruleThree === '是' ? 345 : 346, preIds + ',384,389', 1),
handleId(390, 187, data[0].ruleFour, preIds + ',384,390', 5),
handleId(391, 187, data[0].ruleFive, preIds + ',384,391', 5),
];
const rule: Array<Record<string, any>> = [];
data[0].ruleOne && rule.push(handleId(387, 181, data[0].ruleOne, preIds + ',384,387', 5));
data[0].ruleTwo && rule.push(handleId(388, 140, data[0].ruleTwo === '是' ? 345 : 346, preIds + ',384,388', 1));
data[0].ruleThree && rule.push(handleId(389, 140, data[0].ruleThree === '是' ? 345 : 346, preIds + ',384,389', 1));
data[0].ruleFour && rule.push(handleId(390, 187, data[0].ruleFour, preIds + ',384,390', 5));
data[0].ruleFive && rule.push(handleId(391, 187, data[0].ruleFive, preIds + ',384,391', 5));
data[1].ruleOne && rule.push(handleId(392, 188, getName(data[1].ruleOne), preIds + ',385,392', 1));
data[1].ruleTwo && rule.push(handleId(393, 188, getName(data[1].ruleTwo), preIds + ',385,393', 1));
data[1].ruleThree && rule.push(handleId(394, 188, getName(data[1].ruleThree), preIds + ',385,394', 1));
@ -378,23 +379,22 @@ const addRecord = async (data: Record<string, any>) => {
data[1].ruleEight && rule.push(handleId(399, 188, getName(data[1].ruleEight), preIds + ',385,399', 1));
data[1].ruleNine && rule.push(handleId(400, 188, getName(data[1].ruleNine), preIds + ',385,400', 1));
rule.push(
handleId(401, 182, data[2].ruleOne, preIds + ',386,401', 5),
handleId(402, 183, data[2].ruleTwo, preIds + ',386,402', 5),
handleId(403, 184, data[2].ruleThree, preIds + ',386,403', 5),
handleId(404, 185, data[2].ruleFour, preIds + ',386,404', 5),
handleId(405, 186, data[2].ruleFive, preIds + ',386,405', 5),
data[2].ruleOne && rule.push(handleId(401, 182, data[2].ruleOne, preIds + ',386,401', 5));
data[2].ruleTwo && rule.push(handleId(402, 183, data[2].ruleTwo, preIds + ',386,402', 5));
data[2].ruleThree && rule.push(handleId(403, 184, data[2].ruleThree, preIds + ',386,403', 5));
data[2].ruleFour && rule.push(handleId(404, 185, data[2].ruleFour, preIds + ',386,404', 5));
data[2].ruleFive && rule.push(handleId(405, 186, data[2].ruleFive, preIds + ',386,405', 5));
data[2].ruleSix && rule.push(handleId(406, 140, data[2].ruleSix === '是' ? 345 : 346, preIds + ',386,406', 1));
data[2].ruleSeven && rule.push(handleId(407, 140, data[2].ruleSeven === '是' ? 345 : 346, preIds + ',386,407', 1));
data[2].ruleEight && rule.push(handleId(408, 140, data[2].ruleEight === '是' ? 345 : 346, preIds + ',386,408', 1));
data[2].ruleNine && rule.push(handleId(409, 140, data[2].ruleNine === '是' ? 345 : 346, preIds + ',386,409', 1));
data[2].ruleTen && rule.push(handleId(410, 140, data[2].ruleTen === '是' ? 345 : 346, preIds + ',386,410', 1));
data[2].ruleEleven && rule.push(handleId(411, 140, data[2].ruleEleven === '是' ? 345 : 346, preIds + ',386,411', 1));
data[2].ruleTwelve && rule.push(handleId(412, 140, data[2].ruleTwelve === '是' ? 345 : 346, preIds + ',386,412', 1));
data[2].ruleThirteen && rule.push(handleId(413, 140, data[2].ruleThirteen === '是' ? 345 : 346, preIds + ',386,413', 1));
data[2].ruleFourteen && rule.push(handleId(414, 140, data[2].ruleFourteen === '是' ? 345 : 346, preIds + ',386,414', 1));
handleId(406, 140, data[2].ruleSix === '是' ? 345 : 346, preIds + ',386,406', 1),
handleId(407, 140, data[2].ruleSeven === '是' ? 345 : 346, preIds + ',386,407', 1),
handleId(408, 140, data[2].ruleEight === '是' ? 345 : 346, preIds + ',386,408', 1),
handleId(409, 140, data[2].ruleNine === '是' ? 345 : 346, preIds + ',386,409', 1),
handleId(410, 140, data[2].ruleTen === '是' ? 345 : 346, preIds + ',386,410', 1),
handleId(411, 140, data[2].ruleEleven === '是' ? 345 : 346, preIds + ',386,411', 1),
handleId(412, 140, data[2].ruleTwelve === '是' ? 345 : 346, preIds + ',386,412', 1),
handleId(413, 140, data[2].ruleThirteen === '是' ? 345 : 346, preIds + ',386,413', 1),
handleId(414, 140, data[2].ruleFourteen === '是' ? 345 : 346, preIds + ',386,414', 1),
);
await addOperation({
...getIds(),
parentId: preIds,

@ -435,7 +435,7 @@ const getConfig = async () => {
result1[23].score = detail.value[15]?.dimensionIndexList[0]?.score;
result1[24].dimensionId = detail.value[16]?.dimensionId;
result1[24].isChoose = detail.value[16]?.isChoose;
result1[24].isChoose = !!detail.value[16]?.isChoose;
result1[24].calculationFormula = detail.value[16]?.calculationFormula;
result1[24].dimensionId = detail.value[16]?.dimensionIndexList[0]?.dimensionId;
result1[24].id = detail.value[16]?.dimensionIndexList[0]?.id;
@ -926,7 +926,7 @@ const addRecord = async () => {
//
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));
e.score && lcRule.push(handleId(e.answerId2, e.subjectId, e?.itemList?.find((n) => n.options == e.score)?.itemId || '', preIds + ',' + e.answerId1 + ',' + e.answerId2, 1));
});
}
await addOperation({

@ -116,33 +116,35 @@ const submit = async () => {
//
const addRecord = async () => {
const preIds = `1,${Cookies.get('sand-level')},42,67,149,703,718`; // 1id
const rule: Array<Record<string, any>> = [
handleId(719, 232, form.value[0].coefficient, `${preIds},719`, 3),
handleId(723, 232, form.value[2].coefficient, `${preIds},720,723`, 3),
handleId(724, 232, form.value[3].coefficient, `${preIds},720,724`, 3),
handleId(728, 232, form.value[5].coefficient, `${preIds},720,725,728`, 3),
handleId(729, 232, form.value[6].coefficient, `${preIds},720,725,729`, 3),
handleId(730, 232, form.value[7].coefficient, `${preIds},720,725,730`, 3),
handleId(726, 232, form.value[8].coefficient, `${preIds},720,726`, 3),
handleId(727, 232, form.value[9].coefficient, `${preIds},720,727`, 3),
handleId(731, 232, form.value[11].coefficient, `${preIds},721,731`, 3),
handleId(732, 232, form.value[12].coefficient, `${preIds},721,732`, 3),
handleId(733, 232, form.value[13].coefficient, `${preIds},721,733`, 3),
handleId(734, 232, form.value[14].coefficient, `${preIds},721,734`, 3),
handleId(735, 232, form.value[15].coefficient, `${preIds},721,735`, 3),
handleId(736, 232, form.value[16].coefficient, `${preIds},721,736`, 3),
handleId(737, 232, form.value[17].coefficient, `${preIds},721,737`, 3),
handleId(738, 232, form.value[18].coefficient, `${preIds},721,738`, 3),
handleId(739, 232, form.value[19].coefficient, `${preIds},721,739`, 3),
handleId(740, 232, form.value[20].coefficient, `${preIds},721,740`, 3),
handleId(741, 232, form.value[21].coefficient, `${preIds},721,741`, 3),
handleId(742, 232, form.value[22].coefficient, `${preIds},721,742`, 3),
const rule: Array<Record<string, any>> = [];
form.value[0].coefficient && rule.push(handleId(719, 232, form.value[0].coefficient, `${preIds},719`, 3));
form.value[2].coefficient && rule.push(handleId(723, 232, form.value[2].coefficient, `${preIds},720,723`, 3));
form.value[3].coefficient && rule.push(handleId(724, 232, form.value[3].coefficient, `${preIds},720,724`, 3));
form.value[5].coefficient && rule.push(handleId(728, 232, form.value[5].coefficient, `${preIds},720,725,728`, 3));
form.value[6].coefficient && rule.push(handleId(729, 232, form.value[6].coefficient, `${preIds},720,725,729`, 3));
handleId(743, 232, form.value[24].coefficient, `${preIds},722,743`, 3),
handleId(744, 232, form.value[25].coefficient, `${preIds},722,744`, 3),
handleId(745, 232, form.value[26].coefficient, `${preIds},722,745`, 3),
handleId(746, 232, form.value[27].coefficient, `${preIds},722,746`, 3),
];
form.value[7].coefficient && rule.push(handleId(730, 232, form.value[7].coefficient, `${preIds},720,725,730`, 3));
form.value[8].coefficient && rule.push(handleId(726, 232, form.value[8].coefficient, `${preIds},720,726`, 3));
form.value[9].coefficient && rule.push(handleId(727, 232, form.value[9].coefficient, `${preIds},720,727`, 3));
form.value[11].coefficient && rule.push(handleId(731, 232, form.value[11].coefficient, `${preIds},721,731`, 3));
form.value[12].coefficient && rule.push(handleId(732, 232, form.value[12].coefficient, `${preIds},721,732`, 3));
form.value[13].coefficient && rule.push(handleId(733, 232, form.value[13].coefficient, `${preIds},721,733`, 3));
form.value[14].coefficient && rule.push(handleId(734, 232, form.value[14].coefficient, `${preIds},721,734`, 3));
form.value[15].coefficient && rule.push(handleId(735, 232, form.value[15].coefficient, `${preIds},721,735`, 3));
form.value[16].coefficient && rule.push(handleId(736, 232, form.value[16].coefficient, `${preIds},721,736`, 3));
form.value[17].coefficient && rule.push(handleId(737, 232, form.value[17].coefficient, `${preIds},721,737`, 3));
form.value[18].coefficient && rule.push(handleId(738, 232, form.value[18].coefficient, `${preIds},721,738`, 3));
form.value[19].coefficient && rule.push(handleId(739, 232, form.value[19].coefficient, `${preIds},721,739`, 3));
form.value[20].coefficient && rule.push(handleId(740, 232, form.value[20].coefficient, `${preIds},721,740`, 3));
form.value[21].coefficient && rule.push(handleId(741, 232, form.value[21].coefficient, `${preIds},721,741`, 3));
form.value[22].coefficient && rule.push(handleId(742, 232, form.value[22].coefficient, `${preIds},721,742`, 3));
form.value[24].coefficient && rule.push(handleId(743, 232, form.value[24].coefficient, `${preIds},722,743`, 3));
form.value[25].coefficient && rule.push(handleId(744, 232, form.value[25].coefficient, `${preIds},722,744`, 3));
form.value[26].coefficient && rule.push(handleId(745, 232, form.value[26].coefficient, `${preIds},722,745`, 3));
form.value[27].coefficient && rule.push(handleId(746, 232, form.value[27].coefficient, `${preIds},722,746`, 3));
await addOperation({
...getIds(),

@ -109,15 +109,13 @@ const submit = async () => {
//
const addRecord = async () => {
const preIds = `1,${Cookies.get('sand-level')},42,67,149,704,747`; // 1id
const rule: Array<Record<string, any>> = [
handleId(750, 232, form.value[1].coefficient, `${preIds},748,750`, 3),
handleId(751, 232, form.value[2].coefficient, `${preIds},748,751`, 3),
handleId(752, 232, form.value[4].coefficient, `${preIds},749,752`, 3),
handleId(753, 232, form.value[5].coefficient, `${preIds},749,753`, 3),
handleId(754, 232, form.value[6].coefficient, `${preIds},749,754`, 3),
handleId(755, 232, form.value[7].coefficient, `${preIds},749,755`, 3),
];
const rule: Array<Record<string, any>> = [];
form.value[1].coefficient && rule.push(handleId(750, 232, form.value[1].coefficient, `${preIds},748,750`, 3));
form.value[2].coefficient && rule.push(handleId(751, 232, form.value[2].coefficient, `${preIds},748,751`, 3));
form.value[4].coefficient && rule.push(handleId(752, 232, form.value[4].coefficient, `${preIds},749,752`, 3));
form.value[5].coefficient && rule.push(handleId(753, 232, form.value[5].coefficient, `${preIds},749,753`, 3));
form.value[6].coefficient && rule.push(handleId(754, 232, form.value[6].coefficient, `${preIds},749,754`, 3));
form.value[7].coefficient && rule.push(handleId(755, 232, form.value[7].coefficient, `${preIds},749,755`, 3));
await addOperation({
...getIds(),

Loading…
Cancel
Save