@@ -95,7 +96,7 @@ import { Plus } from '@element-plus/icons-vue';
import { ElMessage } from 'element-plus';
import { collectionAfterLoanDetails, collectionAfterLoanSave, isTheStrategyRelatedToTheProduct } from '@/api/model';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
-import { handleId, getIds } from '@/utils/common';
+import { handleId, getIds, opt1 } from '@/utils/common';
import Cookies from 'js-cookie';
const Confirm = defineAsyncComponent(() => import('@/components/StrategyConfirm.vue'));
@@ -123,6 +124,7 @@ const getConfig = async () => {
...getIds(),
recordName: e.name,
recordChildren: e.recordChildren,
+ isChoose: info.value.length ? cur.isChoose : '',
appCollection: info.value.length ? !!cur.appCollection : false,
automaticOutboundCall: info.value.length ? !!cur.automaticOutboundCall : false,
shortMessageCollection: info.value.length ? !!cur.shortMessageCollection : false,
@@ -133,7 +135,6 @@ const getConfig = async () => {
});
});
form.value = result;
- console.log('🚀 ~ getConfig ~ result:', result);
};
// 详情
const getDetail = async () => {
@@ -161,15 +162,20 @@ const addRecord = async (data: Record
) => {
data.map((e) => {
e.recordChildren.forEach((n, i) => {
- if (i) {
+ if (i === 1) {
+ // 催收方式
const ids = [];
e.shortMessageCollection && ids.push(774);
e.appCollection && ids.push(775);
e.automaticOutboundCall && ids.push(776);
e.manualCollection && ids.push(777);
ids.length && rule.push(handleId(n.id, n.subjectId, ids.join(), `${preIds},${e.stRecordId},${n.id}`, 1));
- } else {
+ } else if (i === 2) {
+ // 话术
e.verbalTrick && rule.push(handleId(n.id, n.subjectId, e.verbalTrick, `${preIds},${e.stRecordId},${n.id}`, 1));
+ } else {
+ // 选用
+ e.isChoose && rule.push(handleId(1052, 140, e.isChoose, `${preIds},${e.stRecordId},1052`, 1));
}
});
});
diff --git a/src/views/product/bank/Add.vue b/src/views/product/bank/Add.vue
index abcfb1d..61371e5 100644
--- a/src/views/product/bank/Add.vue
+++ b/src/views/product/bank/Add.vue
@@ -331,7 +331,6 @@ import { findById, save, update, elementDetail } from '@/api/bank';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router';
import { handleId, isIllegalNum, getIds, whethers, getUsername } from '@/utils/common';
-import { getStatus } from '@/store/useProduct';
import Info from './Info.vue';
import Cookies from 'js-cookie';
diff --git a/src/views/product/strategy/150/Detail.vue b/src/views/product/strategy/150/Detail.vue
index ae31172..203369a 100644
--- a/src/views/product/strategy/150/Detail.vue
+++ b/src/views/product/strategy/150/Detail.vue
@@ -91,48 +91,55 @@
min-width="100"
align="center">
- checkRow(e, row)">
+
+ {{ item.name }}
+
- checkRow(e, row)">
+
+ {{ item.name }}
+
- checkRow(e, row)">
+
+ {{ item.name }}
+
- checkRow(e, row)">
+
+ {{ item.name }}
+
- checkRow(e, row)">
-
-
-
-
-
+
+ {{ item.name }}
+
@@ -156,8 +163,9 @@ import { ElMessage } from 'element-plus';
import { accessStrategyGovernmentBlacklistFind, accessStrategyGovernmentBlacklistSave, isTheStrategyRelatedToTheProduct } from '@/api/model';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
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 { getStat } from '@/store/useProduct';
const Confirm = defineAsyncComponent(() => import('@/components/StrategyConfirm.vue'));
@@ -204,12 +212,11 @@ const getConfig = async () => {
name: e.name,
recordChildren: e.recordChildren,
isRule: isRule(e.id) ? 1 : 0,
- corporateMajorityHitRejected: !!cur?.corporateMajorityHitRejected,
- hitAccess: !!cur?.hitAccess,
- mateHitRejected: !!cur?.mateHitRejected,
- otherFamilyMembersHitRejected: !!cur?.otherFamilyMembersHitRejected,
- parentsHitRejected: !!cur?.parentsHitRejected,
- personalHitBlacklist: !!cur?.personalHitBlacklist,
+ corporateMajorityHitRejected: cur?.corporateMajorityHitRejected,
+ mateHitRejected: cur?.mateHitRejected,
+ otherFamilyMembersHitRejected: cur?.otherFamilyMembersHitRejected,
+ parentsHitRejected: cur?.parentsHitRejected,
+ personalHitBlacklist: cur?.personalHitBlacklist,
symbol: isRule(e.id) && symbol?.length ? symbol[0] : '',
had: e.id === 167 && had?.length ? had[0] : '',
num: isRule(e.id) && num?.length ? num[0] : '',
@@ -277,31 +284,12 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => {
}
}
};
-const checkRow = (e: boolean, row: Record) => {
- if (e) row.hitAccess = false;
-};
-const checkNone = (row: Record) => {
- if (row.hitAccess) {
- row.corporateMajorityHitRejected = false;
- row.mateHitRejected = false;
- row.otherFamilyMembersHitRejected = false;
- row.parentsHitRejected = false;
- row.personalHitBlacklist = false;
- }
-};
+
// 新增判分记录
const addRecord = async (data: Record) => {
const preIds = `1,${Cookies.get('sand-level')},42,67,147,150`; // 1,关卡id,角色(这个页面是风控经理策略)
const rule = [];
-
data.map((e, i) => {
- const temp = [];
- e.personalHitBlacklist && temp.push(300);
- e.mateHitRejected && temp.push(301);
- e.parentsHitRejected && temp.push(302);
- e.otherFamilyMembersHitRejected && temp.push(303);
- e.corporateMajorityHitRejected && temp.push(304);
- e.hitAccess && temp.push(757);
if (isRule(e.stRecordId)) {
const len = e?.recordChildren?.length - 1;
e?.recordChildren.map((n, j) => {
@@ -317,12 +305,19 @@ const addRecord = async (data: Record) => {
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, 71, temp.join(), preIds + ',' + e.stRecordId + ',' + n.id, 1));
}
});
+ e.personalHitBlacklist && rule.push(handleId(281, 140, e.personalHitBlacklist, `${preIds},${e.stRecordId},281`, 1));
+ e.mateHitRejected && rule.push(handleId(283, 140, e.mateHitRejected, `${preIds},${e.stRecordId},283`, 1));
+ e.parentsHitRejected && rule.push(handleId(284, 140, e.parentsHitRejected, `${preIds},${e.stRecordId},284`, 1));
+ e.otherFamilyMembersHitRejected && rule.push(handleId(285, 140, e.otherFamilyMembersHitRejected, `${preIds},${e.stRecordId},285`, 1));
+ e.corporateMajorityHitRejected && rule.push(handleId(286, 140, e.corporateMajorityHitRejected, `${preIds},${e.stRecordId},286`, 1));
} else {
- temp.length && rule.push(handleId(e.stRecordId, 71, temp.join(), preIds + ',' + e.stRecordId, 1));
+ e.personalHitBlacklist && rule.push(handleId(281, 140, e.personalHitBlacklist, `${preIds},${e.stRecordId},281`, 1));
+ e.mateHitRejected && rule.push(handleId(283, 140, e.mateHitRejected, `${preIds},${e.stRecordId},283`, 1));
+ e.parentsHitRejected && rule.push(handleId(284, 140, e.parentsHitRejected, `${preIds},${e.stRecordId},284`, 1));
+ e.otherFamilyMembersHitRejected && rule.push(handleId(285, 140, e.otherFamilyMembersHitRejected, `${preIds},${e.stRecordId},285`, 1));
+ e.corporateMajorityHitRejected && rule.push(handleId(286, 140, e.corporateMajorityHitRejected, `${preIds},${e.stRecordId},286`, 1));
}
});
@@ -343,12 +338,6 @@ const submit = async (synchronizeUpdate?: number) => {
let param = JSON.parse(JSON.stringify(form.value));
param.map((e, i) => {
if (info.value.length) e.id = info.value.find((n) => n.stRecordId === e.stRecordId)?.id;
- e.corporateMajorityHitRejected = +e.corporateMajorityHitRejected;
- e.hitAccess = +e.hitAccess;
- e.mateHitRejected = +e.mateHitRejected;
- e.otherFamilyMembersHitRejected = +e.otherFamilyMembersHitRejected;
- e.parentsHitRejected = +e.parentsHitRejected;
- e.personalHitBlacklist = +e.personalHitBlacklist;
if (e.stRecordId == 161 || e.stRecordId == 164) {
if (e.span) {
// 这里是合并表格,详情那里多加了一行,这里数据要放到一行去
@@ -382,7 +371,7 @@ const submit = async (synchronizeUpdate?: number) => {
governmentBlacklistList: param,
bankIds: bankIds.value,
});
-
+ getStat(295);
addRecord(recordParam);
} catch (e) {
loading.value = false;
diff --git a/src/views/product/strategy/156/Detail.vue b/src/views/product/strategy/156/Detail.vue
index 78428e8..c928de2 100644
--- a/src/views/product/strategy/156/Detail.vue
+++ b/src/views/product/strategy/156/Detail.vue
@@ -37,40 +37,44 @@
min-width="150"
align="center">
- checkRow(e, row)">
+
+ {{ item.name }}
+
- checkRow(e, row)">
+
+ {{ item.name }}
+
- checkRow(e, row)">
+
+ {{ item.name }}
+
- checkRow(e, row)">
-
-
-
-
-
+
+ {{ item.name }}
+
@@ -94,8 +98,7 @@ import { ElMessage } from 'element-plus';
import { accessStrategyNegativeIndustryStrategyFind, accessStrategyNegativeIndustryStrategySave, isTheStrategyRelatedToTheProduct } from '@/api/model';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import type { TableColumnCtx } from 'element-plus';
-import { useRouter, useRoute } from 'vue-router';
-import { handleId, getIds } from '@/utils/common';
+import { handleId, getIds, opt1 } from '@/utils/common';
import Cookies from 'js-cookie';
const Confirm = defineAsyncComponent(() => import('@/components/StrategyConfirm.vue'));
@@ -131,11 +134,10 @@ const getConfig = async () => {
temp.parentId = e.id;
temp.name = n.name;
temp.index = index;
- temp.myselfEnterprise = !!cur?.myselfEnterprise;
- temp.myselfWorkplace = !!cur?.myselfWorkplace;
- temp.spouseEnterprise = !!cur?.spouseEnterprise;
- temp.spouseWorkplace = !!cur?.spouseWorkplace;
- temp.admittance = !!cur?.admittance;
+ temp.myselfEnterprise = cur?.myselfEnterprise;
+ temp.myselfWorkplace = cur?.myselfWorkplace;
+ temp.spouseEnterprise = cur?.spouseEnterprise;
+ temp.spouseWorkplace = cur?.spouseWorkplace;
result.push(temp);
});
});
@@ -184,31 +186,17 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => {
}
}
};
-const checkRow = (e: boolean, row: Record) => {
- if (e) row.admittance = false;
-};
-const checkNone = (row: Record) => {
- if (row.admittance) {
- row.myselfEnterprise = false;
- row.myselfWorkplace = false;
- row.spouseEnterprise = false;
- row.spouseWorkplace = false;
- }
-};
// 新增判分记录
-const addRecord = async (data: Record) => {
+const addRecord = async () => {
const preIds = `1,${Cookies.get('sand-level')},42,67,147,156`; // 1,关卡id,角色(这个页面是风控经理策略)
const rule: Array> = [];
form.value.map((e) => {
if (e.index) {
- const temp = [];
- e.myselfWorkplace && temp.push(383);
- e.spouseWorkplace && temp.push(384);
- e.myselfEnterprise && temp.push(385);
- e.spouseEnterprise && temp.push(386);
- e.admittance && temp.push(758);
- temp.length && rule.push(handleId(e.stRecordId, e.subjectId, temp.join(), preIds + ',' + e.parentId + ',' + e.stRecordId, 1));
+ e.myselfWorkplace && rule.push(handleId(302, 140, e.myselfWorkplace, `${preIds},${e.parentId},${e.stRecordId},302`, 1));
+ e.spouseWorkplace && rule.push(handleId(303, 140, e.spouseWorkplace, `${preIds},${e.parentId},${e.stRecordId},303`, 1));
+ e.myselfEnterprise && rule.push(handleId(304, 140, e.myselfEnterprise, `${preIds},${e.parentId},${e.stRecordId},304`, 1));
+ e.spouseEnterprise && rule.push(handleId(305, 140, e.spouseEnterprise, `${preIds},${e.parentId},${e.stRecordId},305`, 1));
}
});
@@ -233,11 +221,10 @@ const submit = async (synchronizeUpdate?: number) => {
...getIds(),
stRecordId: e.stRecordId,
id: info.value.find((j) => j.stRecordId === e.stRecordId)?.id ?? '',
- myselfEnterprise: e.myselfEnterprise ? 1 : 0,
- myselfWorkplace: e.myselfWorkplace ? 1 : 0,
- spouseEnterprise: e.spouseEnterprise ? 1 : 0,
- spouseWorkplace: e.spouseWorkplace ? 1 : 0,
- admittance: e.admittance ? 1 : 0,
+ myselfEnterprise: e.myselfEnterprise,
+ myselfWorkplace: e.myselfWorkplace,
+ spouseEnterprise: e.spouseEnterprise,
+ spouseWorkplace: e.spouseWorkplace,
});
}
});
@@ -248,7 +235,7 @@ const submit = async (synchronizeUpdate?: number) => {
synchronizeUpdate,
negativeIndustryStrategyList: param,
});
- addRecord(param);
+ addRecord();
} catch (e) {
loading.value = false;
}
diff --git a/src/views/product/strategy/512/Detail.vue b/src/views/product/strategy/512/Detail.vue
index 31cd4da..696c5cd 100644
--- a/src/views/product/strategy/512/Detail.vue
+++ b/src/views/product/strategy/512/Detail.vue
@@ -20,10 +20,14 @@
border>
-
+
+ {{ item.name }}
+
import { ref, defineAsyncComponent, onMounted, toRefs, reactive } from 'vue';
-import { ElLoading, ElMessage } from 'element-plus';
+import { ElMessage } from 'element-plus';
import { saveCredit, findCredit, isTheStrategyRelatedToTheProduct } from '@/api/model';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
-import { useRouter, useRoute } from 'vue-router';
import type { TableColumnCtx } from 'element-plus';
-import { handleId, getIds } from '@/utils/common';
+import { handleId, getIds, opt1 } from '@/utils/common';
import Cookies from 'js-cookie';
const Confirm = defineAsyncComponent(() => import('@/components/StrategyConfirm.vue'));
@@ -119,7 +122,7 @@ const getConfig = async () => {
strategyId: cur ? cur?.strategyId : '',
name: e.name,
sub: n.name,
- isChoose: cur ? !!cur?.isChoose : false,
+ isChoose: cur?.isChoose || '',
score: cur ? cur?.dimensionIndexList[i - 1]?.score + '' : '',
span: i === 1 ? 1 : 0,
parent: i === 1 ? '' : j,
@@ -202,7 +205,7 @@ const addRecord = async () => {
form.description && lcRule.push(handleId(516, 192, form.description, preIds + ',516', 3));
list.value.forEach((e) => {
- e.span && e.isChoose && lcRule.push(handleId(518, '', '', preIds + ',' + e.answerId1 + ',518', ''));
+ e.span && e.isChoose && lcRule.push(handleId(518, 140, e.isChoose, `${preIds},${e.answerId1},${e.answerId2},518`, 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({
@@ -234,7 +237,7 @@ const submit = async (synchronizeUpdate?: number) => {
dimensionId: e.dimensionId,
strategyId: e.strategyId,
recordName: e.name,
- isChoose: +e.isChoose,
+ isChoose: e.isChoose,
dimensionIndexList: [child],
};
if (e.span) {
diff --git a/src/views/product/strategy/513/Detail.vue b/src/views/product/strategy/513/Detail.vue
index 830dc1f..8d86c88 100644
--- a/src/views/product/strategy/513/Detail.vue
+++ b/src/views/product/strategy/513/Detail.vue
@@ -20,15 +20,15 @@
border>
-
-
-
- {{row.name}}
-
+ width="130">
+
+
+ {{ item.name }}
+
+ {{row.name}}