yujialong 10 months ago
parent 95cca0fa27
commit b2d946f992
  1. 2
      src/api/config.ts
  2. 8
      src/api/judgment.ts
  3. 3
      src/components/Panel/index.vue
  4. 2
      src/views/Home.vue
  5. 20
      src/views/config/level/Index.vue
  6. 9
      src/views/product/afterLoan/1033.vue
  7. 13
      src/views/product/bank/Add.vue
  8. 4
      src/views/product/bank/Approve.vue
  9. 4
      src/views/product/bank/Config.vue
  10. 7
      src/views/product/fund/Add.vue
  11. 5
      src/views/product/insurance/Add.vue
  12. 6
      src/views/product/interestRate/935.vue
  13. 2
      src/views/product/strategy/152.vue
  14. 2
      src/views/product/strategy/153.vue
  15. 2
      src/views/product/strategy/154.vue
  16. 2
      src/views/product/strategy/155.vue

@ -10,6 +10,8 @@ export const financialMarketFind = async (): Promise<any> => (await axios.post('
export const financialMarketSave = async (data: Record<string, any>): Promise<any> => (await axios.post('/product/financialMarket/saveOrUpdate', data)).data; export const financialMarketSave = async (data: Record<string, any>): Promise<any> => (await axios.post('/product/financialMarket/saveOrUpdate', data)).data;
export const delPass = async (data: number[]): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/batchDeletion', data)).data; export const delPass = async (data: number[]): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/batchDeletion', data)).data;
export const updateIsOpen = async (checkpointId: number, isEnable: number): Promise<any> =>
(await axios.post(`/nakadai/nakadai/customsPass/updateIsOpen?checkpointId=${checkpointId}&isEnable=${isEnable}`)).data;
export const listPass = async (data: Record<string, any>): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/checkpointList', data)).data; export const listPass = async (data: Record<string, any>): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/checkpointList', data)).data;
export const savePass = async (data: Record<string, any>): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/save', data)).data; export const savePass = async (data: Record<string, any>): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/save', data)).data;
export const updatePass = async (data: Record<string, any>[]): Promise<any> => (await axios.post(`/nakadai/nakadai/customsPass/update`, data)).data; export const updatePass = async (data: Record<string, any>[]): Promise<any> => (await axios.post(`/nakadai/nakadai/customsPass/update`, data)).data;

@ -7,5 +7,9 @@ export const getProcessInformationBasedOnRoles = async (id: number): Promise<any
export const addOperation = async (data: Record<string, any>): Promise<any> => (await axios.post('/product/product/bank/operation/addOperation', data)).data; export const addOperation = async (data: Record<string, any>): Promise<any> => (await axios.post('/product/product/bank/operation/addOperation', data)).data;
export const checkPointList = async (projectId: number, displayCollection?: number | string = ''): Promise<any> => export const checkPointList = async (projectId: number, displayCollection?: number | string = ''): Promise<any> =>
(await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}&displayCollection=${displayCollection}`)).data; (await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}&displayCollection=${displayCollection}`)).data;
export const deleteCache = async (projectId: number, checkpoint: number): Promise<any> => export const deleteCache = async (data: Record<string, any>): Promise<any> =>
(await axios.get(`/product/product/bank/operation/deleteCache?projectId=${projectId}&checkpoint=${checkpoint}`)).data; (
await axios.get(
`/product/product/bank/operation/deleteCache?projectId=${data.projectId}&checkpoint=${data.checkpointId}&assessmentId=${data.assessmentId}&competitionId=${data.competitionId}`,
)
).data;

@ -238,6 +238,7 @@ import 'mavon-editor/dist/css/index.css';
import '@vueup/vue-quill/dist/vue-quill.snow.css'; import '@vueup/vue-quill/dist/vue-quill.snow.css';
import { useDraggable } from '@vueuse/core'; import { useDraggable } from '@vueuse/core';
import { logout } from '@/store/useCurrentUser'; import { logout } from '@/store/useCurrentUser';
import { getIds } from '@/utils/common';
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();
@ -478,7 +479,7 @@ const toReport = () => {
}; };
// //
const reload = async () => { const reload = async () => {
await deleteCache(param.projectId, Cookies.get('sand-level') ?? ''); await deleteCache(getIds());
reloadCount(); reloadCount();
grade.value = '00'; grade.value = '00';
setSubmit(false); setSubmit(false);

@ -24,7 +24,7 @@
<img v-else <img v-else
src="@/assets/images/level/6.png" src="@/assets/images/level/6.png"
alt="" /> alt="" />
<span class="ml-2 text-sm text-[#999]">仅显示已收藏的项目</span> <span class="ml-2 text-sm text-[#999]">仅显示已收藏的关卡</span>
</div> </div>
</div> </div>
<div class="relative mt-20"> <div class="relative mt-20">

@ -123,11 +123,17 @@
width="140" width="140"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-popconfirm v-if="row.checkpointId"
:title="row.isEnable ? '禁用关卡后,已关联该关卡的判分点将被禁用,确定禁用吗?' : '启用关卡后,已关联该关卡的判分点将被启用,确定启用吗?'"
@confirm.stop="enableSubmit(row)">
<template #reference>
<el-switch v-if="row.checkpointId" <el-switch v-if="row.checkpointId"
v-model="row.isEnable" v-model="row.isEnable"
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
@change="hadChange = 1;" /> @change="enableChange(row)" />
</template>
</el-popconfirm>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" <el-table-column label="操作"
@ -157,9 +163,9 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, onMounted, ref, reactive, watch, nextTick } from 'vue'; import { computed, onMounted, ref, reactive, watch, nextTick } from 'vue';
import { ElMessage } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { Delete, Edit, Check, MoreFilled, Close } from '@element-plus/icons-vue'; import { Delete, Edit, Check, MoreFilled, Close } from '@element-plus/icons-vue';
import { listPass, savePass, updatePass, delPass } from '@/api/config'; import { listPass, savePass, updatePass, delPass, updateIsOpen } from '@/api/config';
import Search from '@/components/Search.vue'; import Search from '@/components/Search.vue';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
@ -266,6 +272,14 @@ const toAdd = () => {
hadChange.value = 1; hadChange.value = 1;
}; };
//
const enableChange = (row: Record<string, any>) => {
row.isEnable = row.isEnable ? 0 : 1;
};
const enableSubmit = async (row: Record<string, any>) => {
row.isEnable = row.isEnable ? 0 : 1;
await updateIsOpen(row.checkpointId, row.isEnable);
};
// //
const edit = async (row: Record<string, any>) => { const edit = async (row: Record<string, any>) => {
if (!row.editing) { if (!row.editing) {

@ -27,10 +27,12 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-full" class="w-full"
v-model="row.verbalTrick"> v-model="row.verbalTrick">
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0]?.subject?.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
:value="item.itemId" /> :value="item.itemId">
<span>{{ item.options }}</span>
</el-option>
</el-select> </el-select>
</template></el-table-column> </template></el-table-column>
</el-table> </el-table>
@ -68,12 +70,13 @@ const getConfig = async () => {
automaticOutboundCall: info.value.length ? !!cur.automaticOutboundCall : false, automaticOutboundCall: info.value.length ? !!cur.automaticOutboundCall : false,
shortMessageCollection: info.value.length ? !!cur.shortMessageCollection : false, shortMessageCollection: info.value.length ? !!cur.shortMessageCollection : false,
manualCollection: info.value.length ? !!cur.manualCollection : false, manualCollection: info.value.length ? !!cur.manualCollection : false,
verbalTrick: +(cur.verbalTrick || 750), verbalTrick: cur.verbalTrick ? +cur.verbalTrick : '',
id: cur.id || '', id: cur.id || '',
stRecordId: e.id, stRecordId: e.id,
}); });
}); });
form.value = result; form.value = result;
console.log('🚀 ~ getConfig ~ result:', result);
}; };
// //
const getDetail = async () => { const getDetail = async () => {

@ -276,7 +276,7 @@ import type { TabsPaneContext, FormInstance, FormRules } from 'element-plus';
import { findById, save, update } from '@/api/bank'; import { findById, save, update } from '@/api/bank';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { handleId, isIllegalNum } from '@/utils/common'; import { handleId, isIllegalNum, getIds } from '@/utils/common';
import { getStatus } from '@/store/useProduct'; import { getStatus } from '@/store/useProduct';
import Info from './Info.vue'; import Info from './Info.vue';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
@ -422,21 +422,20 @@ const submit = async (formEl: FormInstance | undefined) => {
pid: e > 22 && e < 33 ? 110 : e > 32 && e < 38 ? 111 : e, pid: e > 22 && e < 33 ? 110 : e > 32 && e < 38 ? 111 : e,
}); });
}); });
let res;
if (id.value) { if (id.value) {
param.id = id.value; param.id = id.value;
param.status = 295; param.status = 295;
await update(param); await update(param);
addRecord(param); addRecord(param);
} else { } else {
await save(param); res = await save(param);
addRecord(param); addRecord(param);
} }
router.push({
path: '/product/bank/detail', router.push(`/product/bank/detail?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${res.message}`);
query: route.query,
});
ElMessage.success('提交成功!'); ElMessage.success('提交成功!');
emit('getList', 1); emit('getList');
} finally { } finally {
} }
} else { } else {

@ -73,6 +73,7 @@ interface RuleForm {
} }
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();
const id = computed(() => +route.query.id);
const projectId = +Cookies.get('sand-projectId'); const projectId = +Cookies.get('sand-projectId');
const levelId = +Cookies.get('sand-level'); const levelId = +Cookies.get('sand-level');
const curTab = ref<string>('tab1'); const curTab = ref<string>('tab1');
@ -127,9 +128,10 @@ const submit = async (formEl: FormInstance | undefined) => {
param.approvalTime = dayjs(new Date()).format('YYYY-M-D'); param.approvalTime = dayjs(new Date()).format('YYYY-M-D');
await examineAndApprove(param.id, param.opinionDescription, param.status, param.approvalTime); await examineAndApprove(param.id, param.opinionDescription, param.status, param.approvalTime);
router.push(`/product/bank/detail?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${id.value}`);
addRecord(param); addRecord(param);
ElMessage.success('提交成功!'); ElMessage.success('提交成功!');
emit('getList', 1); emit('getList');
} finally { } finally {
} }
} }

@ -523,9 +523,9 @@ const submit = async (formEl: FormInstance | undefined) => {
await riskSave(param); await riskSave(param);
addRecord(param); addRecord(param);
} }
router.push(`/product/bank/detail?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${id.value}`);
ElMessage.success('提交成功!'); ElMessage.success('提交成功!');
emit('getList', 1); emit('getList');
} finally { } finally {
} }
} else { } else {

@ -317,7 +317,7 @@ import { Plus, Minus } from '@element-plus/icons-vue';
import { getAListOfAShares, saveFund } from '@/api/fund'; import { getAListOfAShares, saveFund } from '@/api/fund';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { handleId, isIllegalNum } from '@/utils/common'; import { handleId, isIllegalNum, getIds } from '@/utils/common';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
const emit = defineEmits(['getList']); const emit = defineEmits(['getList']);
@ -553,10 +553,11 @@ const submit = async () => {
const recordParam = JSON.parse(JSON.stringify(param)); const recordParam = JSON.parse(JSON.stringify(param));
delete param.buySellRatioList0; delete param.buySellRatioList0;
delete param.buySellRatioList1; delete param.buySellRatioList1;
await saveFund(param); const res = await saveFund(param);
router.push(`/product/fund/detail?id=` + res.message);
addRecord(recordParam); addRecord(recordParam);
ElMessage.success('提交成功!'); ElMessage.success('提交成功!');
emit('getList', 1); emit('getList');
} finally { } finally {
} }
}; };

@ -117,7 +117,7 @@ import { ElMessage } from 'element-plus';
import { insuranceProductDetails, addInsuranceProducts } from '@/api/insurance'; import { insuranceProductDetails, addInsuranceProducts } from '@/api/insurance';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { handleId, isIllegalNum } from '@/utils/common'; import { handleId, isIllegalNum, getIds } from '@/utils/common';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
const emit = defineEmits(['getList']); const emit = defineEmits(['getList']);
@ -248,7 +248,8 @@ const submit = async () => {
if (!param.exemptionFromLiability.length) return ElMessage.error('请至少选择一项责任免除'); if (!param.exemptionFromLiability.length) return ElMessage.error('请至少选择一项责任免除');
param.applicationMaterial = param.applicationMaterial.join(); param.applicationMaterial = param.applicationMaterial.join();
param.exemptionFromLiability = param.exemptionFromLiability.join(); param.exemptionFromLiability = param.exemptionFromLiability.join();
await addInsuranceProducts(param); const res = await addInsuranceProducts(param);
// router.push(`/product/insurance/detail?id=` + res.message);
addRecord(param); addRecord(param);
ElMessage.success('提交成功!'); ElMessage.success('提交成功!');
emit('getList', 1); emit('getList', 1);

@ -145,9 +145,9 @@ const getConfig = async () => {
len.value = result.length - 1; len.value = result.length - 1;
if (info.value.length) { if (info.value.length) {
result.forEach((e, i) => { result.forEach((e, i) => {
result[i].score = info.value[i].score; result[i].score = info.value[i]?.score;
result[i].id = info.value[i].id; result[i].id = info.value[i]?.id;
result[i].modelId = info.value[i].modelId; result[i].modelId = info.value[i]?.modelId;
}); });
} }
form.value.individualInterestRateModels = result; form.value.individualInterestRateModels = result;

@ -156,7 +156,7 @@ import { accessStrategyBusinessBlacklistFind, accessStrategyBusinessBlacklistSav
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import type { TableColumnCtx } from 'element-plus'; import type { TableColumnCtx } from 'element-plus';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { handleId, getNum, getSymbol, getChinese } from '@/utils/common'; import { handleId, getNum, getSymbol, getChinese, getIds } from '@/utils/common';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
const router = useRouter(); const router = useRouter();

@ -129,7 +129,7 @@ import { accessStrategyInlineBlacklistFind, accessStrategyInlineBlacklistSave }
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import type { TableColumnCtx } from 'element-plus'; import type { TableColumnCtx } from 'element-plus';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { handleId, getNum, getChinese } from '@/utils/common'; import { handleId, getNum, getChinese, getIds } from '@/utils/common';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
const route = useRoute(); const route = useRoute();

@ -266,7 +266,7 @@ import { ElMessage } from 'element-plus';
import { accessStrategyEnterpriseBlacklistFind, accessStrategyEnterpriseBlacklistSave } from '@/api/model'; import { accessStrategyEnterpriseBlacklistFind, accessStrategyEnterpriseBlacklistSave } from '@/api/model';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { handleId, getNum, getSymbol, getChinese } from '@/utils/common'; import { handleId, getNum, getSymbol, getChinese, getIds } from '@/utils/common';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
const router = useRouter(); const router = useRouter();

@ -125,7 +125,7 @@ import { accessStrategyAntiFraudStrategyFind, accessStrategyAntiFraudStrategySav
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import type { TableColumnCtx } from 'element-plus'; import type { TableColumnCtx } from 'element-plus';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { handleId, getNum, getSymbol, getChinese } from '@/utils/common'; import { handleId, getNum, getSymbol, getChinese, getIds } from '@/utils/common';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
const router = useRouter(); const router = useRouter();

Loading…
Cancel
Save