diff --git a/.env b/.env index 97571e0..0c43f01 100644 --- a/.env +++ b/.env @@ -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://192.168.31.51:9000 # VITE_BASE_API=http://121.37.12.51 VITE_I18N_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn diff --git a/src/views/product/strategy/150.vue b/src/views/product/strategy/150.vue index 8fb916e..7e815e7 100644 --- a/src/views/product/strategy/150.vue +++ b/src/views/product/strategy/150.vue @@ -279,7 +279,7 @@ const submit = async () => { // 新增判分记录 const addRecord = async (data: Record) => { const preIds = `1,${Cookies.get('sand-level')},42,67,147,150`; // 1,关卡id,角色(这个页面是风控经理策略) - const rule = []>[]; + const rule: Array> = []; data.map((e, i) => { const temp = []; diff --git a/src/views/product/strategy/151.vue b/src/views/product/strategy/151.vue index 023fc97..f045e61 100644 --- a/src/views/product/strategy/151.vue +++ b/src/views/product/strategy/151.vue @@ -202,7 +202,7 @@ const submit = async () => { // 新增判分记录 const addRecord = async (data: Record) => { const preIds = `1,${Cookies.get('sand-level')},42,67,147,151`; // 1,关卡id,角色(这个页面是风控经理策略) - const rule = []>[]; + const rule: Array> = []; data[1].ruleOne && rule.push(handleId(234, 81, data[1].ruleOne, preIds + ',204,234', 3)); data[27].ruleOne && rule.push(handleId(267, 114, data[27].ruleOne === '有' ? 306 : 305, preIds + ',230,267', 1)); diff --git a/src/views/product/strategy/152.vue b/src/views/product/strategy/152.vue index 783e433..721d929 100644 --- a/src/views/product/strategy/152.vue +++ b/src/views/product/strategy/152.vue @@ -410,7 +410,7 @@ const submit = async () => { // 新增判分记录 const addRecord = async (data: Record) => { const preIds = `1,${Cookies.get('sand-level')},42,67,147,152`; // 1,关卡id,角色(这个页面是风控经理策略) - const rule = []>[ + const rule: Array> = [ 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), diff --git a/src/views/product/strategy/153.vue b/src/views/product/strategy/153.vue index 97e8952..c9aee28 100644 --- a/src/views/product/strategy/153.vue +++ b/src/views/product/strategy/153.vue @@ -224,7 +224,7 @@ const submit = async () => { // 新增判分记录 const addRecord = async (data: Record) => { const preIds = `1,${Cookies.get('sand-level')},42,67,147,153`; // 1,关卡id,角色(这个页面是风控经理策略) - const rule = []>[]; + const rule: Array> = []; data.map((e) => { e.enterBlacklist && rule.push(handleId(363, '', '', preIds + ',' + e.stRecordId + ',363', '')); diff --git a/src/views/product/strategy/154.vue b/src/views/product/strategy/154.vue index 1d63d5e..a6ffbba 100644 --- a/src/views/product/strategy/154.vue +++ b/src/views/product/strategy/154.vue @@ -262,7 +262,6 @@ import { ref, watch } from 'vue'; import { ElMessage } from 'element-plus'; import { accessStrategyEnterpriseBlacklistFind, accessStrategyEnterpriseBlacklistSave } from '@/api/model'; import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; -import type { TableColumnCtx } from 'element-plus'; import { useRouter, useRoute } from 'vue-router'; import { handleId, getNum, getSymbol, getChinese } from '@/utils/common'; import Cookies from 'js-cookie'; @@ -346,39 +345,33 @@ const submit = async () => { param.push(temp); }); await accessStrategyEnterpriseBlacklistSave({ enterpriseBlacklistList: param }); - // addRecord(param); + addRecord(param); getDetail(); ElMessage.success('提交成功!'); }; // 新增判分记录 const addRecord = async (data: Record) => { const preIds = `1,${Cookies.get('sand-level')},42,67,147,154`; // 1,关卡id,角色(这个页面是风控经理策略) - 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), - - handleId(353, 154, data[1].ruleOne, preIds + ',320,353', 5), + const rule: Array> = [ + 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), ]; - form.value[14].had && rule.push(handleId(354, 155, form.value[14].had === '有商品房' ? 353 : 354, preIds + ',320,354', 1)); - rule.push( - handleId(355, 156, form.value[15].num + form.value[15].symbol, preIds + ',320,355', 5), - handleId(356, 157, form.value[15].symbol1 + form.value[15].num1, preIds + ',320,356', 5), - ); - form.value[15].had && rule.push(handleId(357, 155, form.value[15].had === '有商品房' ? 353 : 354, preIds + ',320,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(350, 165, data[2].ruleEight, preIds + ',322,350', 5), - handleId(351, 166, data[2].ruleNine, preIds + ',322,351', 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)); + } else if ((i === 4 || i === 8) && e.check.length) { + const ids = []; + e.check.map((n) => { + const cur = e.subject?.itemList?.find((e) => e.options === n); + cur && ids.push(cur.itemId); + }); + ids.length && rule.push(handleId(e.stRecordId, e?.subject?.subjectId, ids.join(), preIds + ',' + e.stRecordId, 1)); + } + }); await addOperation({ checkpointId: levelId, parentId: preIds, diff --git a/src/views/product/strategy/155.vue b/src/views/product/strategy/155.vue new file mode 100644 index 0000000..0a66374 --- /dev/null +++ b/src/views/product/strategy/155.vue @@ -0,0 +1,408 @@ + + + + + diff --git a/src/views/product/strategy/CardList.vue b/src/views/product/strategy/CardList.vue index d352be9..7784ac7 100644 --- a/src/views/product/strategy/CardList.vue +++ b/src/views/product/strategy/CardList.vue @@ -23,6 +23,7 @@ + @@ -44,6 +45,7 @@ import Com2 from './151.vue'; import Com3 from './152.vue'; import Com4 from './153.vue'; import Com5 from './154.vue'; +import Com6 from './155.vue'; const router = useRouter(); const route = useRoute();