yujialong 7 months ago
parent 73ee648b97
commit f0a342b470
  1. 127
      src/api/model.ts
  2. 2
      src/views/product/bank/Approve.vue
  3. 43
      src/views/product/bank/Config.vue
  4. 113
      src/views/product/bank/Info.vue

@ -5,21 +5,21 @@ const host = `http://192.168.31.51:9000`;
export const accessStrategyGovernmentBlacklistList = async (data: Record<string, any>): Promise<any> => export const accessStrategyGovernmentBlacklistList = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/accessStrategyGovernmentBlacklist/list`, { await axios.post(`/product/accessStrategyGovernmentBlacklist/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const accessStrategyGovernmentBlacklistFind = async (params: Record<string, any>): Promise<any> => export const accessStrategyGovernmentBlacklistFind = async (params: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyGovernmentBlacklist/details`, {}, { params })).data; (await axios.post(`/product/accessStrategyGovernmentBlacklist/details`, {}, { params })).data;
export const accessStrategyGovernmentBlacklistSave = async (data: Record<string, any>): Promise<any> => export const accessStrategyGovernmentBlacklistSave = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyGovernmentBlacklist/saveOrUpdate`, data)).data; (await axios.post(`/product/accessStrategyGovernmentBlacklist/saveOrUpdate`, data)).data;
export const accessStrategyGovernmentBlacklistDel = async (data: Record<string, any>): Promise<any> => export const accessStrategyGovernmentBlacklistDel = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyGovernmentBlacklist/delete`, data)).data; (await axios.post(`/product/accessStrategyGovernmentBlacklist/delete`, data)).data;
export const accessStrategyEnterpriseBlacklist = async (data: Record<string, any>): Promise<any> => export const accessStrategyEnterpriseBlacklist = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/accessStrategyEnterpriseBlacklist/list`, { await axios.post(`/product/accessStrategyEnterpriseBlacklist/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
@ -29,11 +29,11 @@ export const accessStrategyEnterpriseBlacklistFind = async (params: Record<strin
export const accessStrategyEnterpriseBlacklistSave = async (data: Record<string, any>): Promise<any> => export const accessStrategyEnterpriseBlacklistSave = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`/product/accessStrategyEnterpriseBlacklist/saveOrUpdate`, data)).data; (await axios.post(`/product/accessStrategyEnterpriseBlacklist/saveOrUpdate`, data)).data;
export const accessStrategyEnterpriseBlacklistDel = async (data: Record<string, any>): Promise<any> => export const accessStrategyEnterpriseBlacklistDel = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyEnterpriseBlacklist/delete`, data)).data; (await axios.post(`/product/accessStrategyEnterpriseBlacklist/delete`, data)).data;
export const accessStrategyAntiFraudStrategy = async (data: Record<string, any>): Promise<any> => export const accessStrategyAntiFraudStrategy = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/accessStrategyAntiFraudStrategy/list`, { await axios.post(`/product/accessStrategyAntiFraudStrategy/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
@ -43,39 +43,38 @@ export const accessStrategyAntiFraudStrategyFind = async (params: Record<string,
export const accessStrategyAntiFraudStrategySave = async (data: Record<string, any>): Promise<any> => export const accessStrategyAntiFraudStrategySave = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`/product/accessStrategyAntiFraudStrategy/saveOrUpdate`, data)).data; (await axios.post(`/product/accessStrategyAntiFraudStrategy/saveOrUpdate`, data)).data;
export const accessStrategyAntiFraudStrategyDel = async (data: Record<string, any>): Promise<any> => export const accessStrategyAntiFraudStrategyDel = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyAntiFraudStrategy/delete`, data)).data; (await axios.post(`/product/accessStrategyAntiFraudStrategy/delete`, data)).data;
export const accessStrategyBusinessBlacklist = async (data: Record<string, any>): Promise<any> => export const accessStrategyBusinessBlacklist = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/accessStrategyBusinessBlacklist/list`, { await axios.post(`/product/accessStrategyBusinessBlacklist/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const accessStrategyBusinessBlacklistFind = async (params: Record<string, any>): Promise<any> => export const accessStrategyBusinessBlacklistFind = async (params: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyBusinessBlacklist/details`, {}, { params })).data; (await axios.post(`/product/accessStrategyBusinessBlacklist/details`, {}, { params })).data;
export const accessStrategyBusinessBlacklistSave = async (data: Record<string, any>): Promise<any> => export const accessStrategyBusinessBlacklistSave = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyBusinessBlacklist/saveOrUpdate`, data)).data; (await axios.post(`/product/accessStrategyBusinessBlacklist/saveOrUpdate`, data)).data;
export const accessStrategyBusinessBlacklistDel = async (data: Record<string, any>): Promise<any> => export const accessStrategyBusinessBlacklistDel = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyBusinessBlacklist/delete`, data)).data; (await axios.post(`/product/accessStrategyBusinessBlacklist/delete`, data)).data;
export const accessStrategyCreditBlacklist = async (data: Record<string, any>): Promise<any> => export const accessStrategyCreditBlacklist = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/accessStrategyCreditBlacklist/list`, { await axios.post(`/product/accessStrategyCreditBlacklist/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const accessStrategyCreditBlacklistFind = async (params: Record<string, any>): Promise<any> => export const accessStrategyCreditBlacklistFind = async (params: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyCreditBlacklist/details`, {}, { params })).data; (await axios.post(`/product/accessStrategyCreditBlacklist/details`, {}, { params })).data;
export const accessStrategyCreditBlacklistSave = async (data: Record<string, any>): Promise<any> => export const accessStrategyCreditBlacklistSave = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyCreditBlacklist/saveOrUpdate`, data)).data; (await axios.post(`/product/accessStrategyCreditBlacklist/saveOrUpdate`, data)).data;
export const accessStrategyCreditBlacklistDel = async (data: Record<string, any>): Promise<any> => export const accessStrategyCreditBlacklistDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/accessStrategyCreditBlacklist/delete`, data)).data;
(await axios.post(`${host}/product/accessStrategyCreditBlacklist/delete`, data)).data;
export const accessStrategyInlineBlacklist = async (data: Record<string, any>): Promise<any> => export const accessStrategyInlineBlacklist = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/accessStrategyInlineBlacklist/list`, { await axios.post(`/product/accessStrategyInlineBlacklist/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
@ -84,132 +83,128 @@ export const accessStrategyInlineBlacklistFind = async (params: Record<string, a
(await axios.post(`/product/accessStrategyInlineBlacklist/details`, {}, { params })).data; (await axios.post(`/product/accessStrategyInlineBlacklist/details`, {}, { params })).data;
export const accessStrategyInlineBlacklistSave = async (data: Record<string, any>): Promise<any> => export const accessStrategyInlineBlacklistSave = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`/product/accessStrategyInlineBlacklist/saveOrUpdate`, data)).data; (await axios.post(`/product/accessStrategyInlineBlacklist/saveOrUpdate`, data)).data;
export const accessStrategyInlineBlacklistDel = async (data: Record<string, any>): Promise<any> => export const accessStrategyInlineBlacklistDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/accessStrategyInlineBlacklist/delete`, data)).data;
(await axios.post(`${host}/product/accessStrategyInlineBlacklist/delete`, data)).data;
export const accessStrategyNegativeIndustryStrategy = async (data: Record<string, any>): Promise<any> => export const accessStrategyNegativeIndustryStrategy = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/accessStrategyNegativeIndustryStrategy/list`, { await axios.post(`/product/accessStrategyNegativeIndustryStrategy/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const accessStrategyNegativeIndustryStrategyFind = async (params: Record<string, any>): Promise<any> => export const accessStrategyNegativeIndustryStrategyFind = async (params: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyNegativeIndustryStrategy/details`, {}, { params })).data; (await axios.post(`/product/accessStrategyNegativeIndustryStrategy/details`, {}, { params })).data;
export const accessStrategyNegativeIndustryStrategySave = async (data: Record<string, any>): Promise<any> => export const accessStrategyNegativeIndustryStrategySave = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyNegativeIndustryStrategy/saveOrUpdate`, data)).data; (await axios.post(`/product/accessStrategyNegativeIndustryStrategy/saveOrUpdate`, data)).data;
export const accessStrategyNegativeIndustryStrategyDel = async (data: Record<string, any>): Promise<any> => export const accessStrategyNegativeIndustryStrategyDel = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/accessStrategyNegativeIndustryStrategy/delete`, data)).data; (await axios.post(`/product/accessStrategyNegativeIndustryStrategy/delete`, data)).data;
export const delCredit = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/creditScoringStrategy/delete`, data)).data; export const delCredit = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/creditScoringStrategy/delete`, data)).data;
export const findCredit = async (id: number): Promise<any> => (await axios.post(`${host}/product/creditScoringStrategy/details?strategyId=${id}`)).data; export const findCredit = async (id: number): Promise<any> => (await axios.post(`/product/creditScoringStrategy/details?strategyId=${id}`)).data;
export const listCredit = async (data: Record<string, any>): Promise<any> => export const listCredit = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/creditScoringStrategy/list`, { await axios.post(`/product/creditScoringStrategy/list`, {
...data, ...data,
...getIds(), ...getIds(),
}) })
).data; ).data;
export const saveCredit = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/creditScoringStrategy/saveOrUpdate`, data)).data; export const saveCredit = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/creditScoringStrategy/saveOrUpdate`, data)).data;
export const detailRick = async (type: number): Promise<any> => export const detailRick = async (type: number): Promise<any> =>
( (
await axios.post(`${host}/product/riskDegreeStrategy/details`, { await axios.post(`/product/riskDegreeStrategy/details`, {
...getIds(), ...getIds(),
type, type,
}) })
).data; ).data;
export const saveRick = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/riskDegreeStrategy/saveOrUpdate`, data)).data; export const saveRick = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/riskDegreeStrategy/saveOrUpdate`, data)).data;
export const interestRateModelList = async (data: Record<string, any>): Promise<any> => export const interestRateModelList = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/interestRateModel/list`, { await axios.post(`/product/interestRateModel/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const businessInterestRateDetails = async (params: Record<string, any>): Promise<any> => export const businessInterestRateDetails = async (params: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/interestRateModel/businessInterestRateDetails`, {}, { params })).data; (await axios.post(`/product/interestRateModel/businessInterestRateDetails`, {}, { params })).data;
export const businessInterestRateSaveOrUpdate = async (data: Record<string, any>): Promise<any> => export const businessInterestRateSaveOrUpdate = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/interestRateModel/businessInterestRateSaveOrUpdate`, data)).data; (await axios.post(`/product/interestRateModel/businessInterestRateSaveOrUpdate`, data)).data;
export const personalInterestRateDetails = async (params: Record<string, any>): Promise<any> => export const personalInterestRateDetails = async (params: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/interestRateModel/personalInterestRateDetails`, {}, { params })).data; (await axios.post(`/product/interestRateModel/personalInterestRateDetails`, {}, { params })).data;
export const personalInterestRateSaveOrUpdate = async (data: Record<string, any>): Promise<any> => export const personalInterestRateSaveOrUpdate = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/interestRateModel/personalInterestRateSaveOrUpdate`, data)).data; (await axios.post(`/product/interestRateModel/personalInterestRateSaveOrUpdate`, data)).data;
export const deleteBusinessInterestRate = async (data: Record<string, any>): Promise<any> => export const deleteBusinessInterestRate = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/interestRateModel/deleteBusinessInterestRate`, data)).data;
(await axios.post(`${host}/product/interestRateModel/deleteBusinessInterestRate`, data)).data; export const deletePersonalInterestRate = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/interestRateModel/deletePersonalInterestRate`, data)).data;
export const deletePersonalInterestRate = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/interestRateModel/deletePersonalInterestRate`, data)).data;
export const quotaModelList = async (data: Record<string, any>): Promise<any> => export const quotaModelList = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/quotaModel/list`, { await axios.post(`/product/quotaModel/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const quotaModelDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/quotaModel/delete`, data)).data; export const quotaModelDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/quotaModel/delete`, data)).data;
export const businessQuotaModelDetails = async (): Promise<any> => (await axios.post(`${host}/product/quotaModel/businessQuotaModelDetails`, getIds())).data; export const businessQuotaModelDetails = async (): Promise<any> => (await axios.post(`/product/quotaModel/businessQuotaModelDetails`, getIds())).data;
export const businessQuotaModelSaveOrUpdate = async (data: Record<string, any>): Promise<any> => export const businessQuotaModelSaveOrUpdate = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/quotaModel/businessQuotaModelSaveOrUpdate`, data)).data; (await axios.post(`/product/quotaModel/businessQuotaModelSaveOrUpdate`, data)).data;
export const personalCreditModelDetails = async (params: Record<string, any>): Promise<any> => export const personalCreditModelDetails = async (params: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/quotaModel/personalCreditModelDetails`, {}, { params })).data; (await axios.post(`/product/quotaModel/personalCreditModelDetails`, {}, { params })).data;
export const personalCreditModelSaveOrUpdate = async (data: Record<string, any>): Promise<any> => export const personalCreditModelSaveOrUpdate = async (data: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/quotaModel/personalCreditModelSaveOrUpdate`, data)).data; (await axios.post(`/product/quotaModel/personalCreditModelSaveOrUpdate`, data)).data;
export const fiveLevelClassification = async (data: Record<string, any>): Promise<any> => export const fiveLevelClassification = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/fiveLevelClassification/list`, { await axios.post(`/product/fiveLevelClassification/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const fiveLevelClassificationDetails = async (params: Record<string, any>): Promise<any> => export const fiveLevelClassificationDetails = async (params: Record<string, any>): Promise<any> =>
(await axios.post(`${host}/product/fiveLevelClassification/details`, {}, { params })).data; (await axios.post(`/product/fiveLevelClassification/details`, {}, { params })).data;
export const fiveLevelClassificationSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/fiveLevelClassification/saveOrUpdate`, data)).data; export const fiveLevelClassificationSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/fiveLevelClassification/saveOrUpdate`, data)).data;
export const fiveLevelClassificationDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/fiveLevelClassification/delete`, data)).data; export const fiveLevelClassificationDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/fiveLevelClassification/delete`, data)).data;
export const postLoanInspection = async (data: Record<string, any>): Promise<any> => export const postLoanInspection = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/postLoanInspection/list`, { await axios.post(`/product/postLoanInspection/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const postLoanInspectionDetails = async (params: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postLoanInspection/details`, {}, { params })).data; export const postLoanInspectionDetails = async (params: Record<string, any>): Promise<any> => (await axios.post(`/product/postLoanInspection/details`, {}, { params })).data;
export const postLoanInspectionSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postLoanInspection/saveOrUpdate`, data)).data; export const postLoanInspectionSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/postLoanInspection/saveOrUpdate`, data)).data;
export const postLoanInspectionDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postLoanInspection/delete`, data)).data; export const postLoanInspectionDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/postLoanInspection/delete`, data)).data;
export const postCreditScore = async (data: Record<string, any>): Promise<any> => export const postCreditScore = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/postCreditScore/list`, { await axios.post(`/product/postCreditScore/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const postCreditScoreDetails = async (params: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postCreditScore/details`, {}, { params })).data; export const postCreditScoreDetails = async (params: Record<string, any>): Promise<any> => (await axios.post(`/product/postCreditScore/details`, {}, { params })).data;
export const postCreditScoreSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postCreditScore/saveOrUpdate`, data)).data; export const postCreditScoreSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/postCreditScore/saveOrUpdate`, data)).data;
export const postCreditScoreDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postCreditScore/delete`, data)).data; export const postCreditScoreDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/postCreditScore/delete`, data)).data;
export const postLoanWarning = async (data: Record<string, any>): Promise<any> => export const postLoanWarning = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/postLoanWarning/list`, { await axios.post(`/product/postLoanWarning/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const postLoanWarningDetails = async (params: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postLoanWarning/details`, {}, { params })).data; export const postLoanWarningDetails = async (params: Record<string, any>): Promise<any> => (await axios.post(`/product/postLoanWarning/details`, {}, { params })).data;
export const postLoanWarningSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postLoanWarning/saveOrUpdate`, data)).data; export const postLoanWarningSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/postLoanWarning/saveOrUpdate`, data)).data;
export const postLoanWarningDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/postLoanWarning/delete`, data)).data; export const postLoanWarningDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/postLoanWarning/delete`, data)).data;
export const collectionAfterLoan = async (data: Record<string, any>): Promise<any> => export const collectionAfterLoan = async (data: Record<string, any>): Promise<any> =>
( (
await axios.post(`${host}/product/collectionAfterLoan/list`, { await axios.post(`/product/collectionAfterLoan/list`, {
...getIds(), ...getIds(),
...data, ...data,
}) })
).data; ).data;
export const collectionAfterLoanDetails = async (params: Record<string, any>): Promise<any> => export const collectionAfterLoanDetails = async (params: Record<string, any>): Promise<any> => (await axios.post(`/product/collectionAfterLoan/details`, {}, { params })).data;
(await axios.post(`${host}/product/collectionAfterLoan/details`, {}, { params })).data; export const collectionAfterLoanSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/collectionAfterLoan/saveOrUpdate`, data)).data;
export const collectionAfterLoanSave = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/collectionAfterLoan/saveOrUpdate`, data)).data; export const collectionAfterLoanDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`/product/collectionAfterLoan/delete`, data)).data;
export const collectionAfterLoanDel = async (data: Record<string, any>): Promise<any> => (await axios.post(`${host}/product/collectionAfterLoan/delete`, data)).data;

@ -116,7 +116,7 @@ const sign = async () => {
}; };
// //
const addRecord = async (data: Record<string, any>) => { const addRecord = async (data: Record<string, any>) => {
const approved = !!infoRef.value.info.approvalTime; // id const approved = data.status !== 299; // id
const preIds = `1,${levelId},43,${approved ? 1219 : 1218}`; // 1id const preIds = `1,${levelId},43,${approved ? 1219 : 1218}`; // 1id
const lcRule = [ const lcRule = [
handleId(approved ? 1215 : 145, 69, data.status, `${preIds},${approved ? '1215' : '145'}`, 1), handleId(approved ? 1215 : 145, 69, data.status, `${preIds},${approved ? '1215' : '145'}`, 1),

@ -859,12 +859,12 @@ const getRate = async (i: number) => {
try { try {
let res; let res;
if (!i) { if (!i) {
res = await quotaModelList({ res = await interestRateModelList({
...strategyParams, ...strategyParams,
type: 1, type: 1,
}); // }); //
} else if (i === 1) { } else if (i === 1) {
res = await interestRateModelList({ res = await quotaModelList({
...strategyParams, ...strategyParams,
type: 1, type: 1,
}); // }); //
@ -906,13 +906,19 @@ const getConfig = async () => {
process[2].recordChildren[1].recordChildren.map((e) => { process[2].recordChildren[1].recordChildren.map((e) => {
form.bankRiskControlAllocationTacticsList.push({ form.bankRiskControlAllocationTacticsList.push({
type: 1, type: 1,
bankId: '', bankId: id.value,
id: '', id: '',
tacticsId: '', tacticsId: '',
tacticsPointId: e.id, tacticsPointId: e.id,
tacticsSelectedStatus: '', tacticsSelectedStatus: '',
}); });
}); });
} else {
//
form.bankRiskControlAllocationTacticsList.map((e, i) => {
if (!e.tacticsId) e.tacticsId = '';
e.tacticsSelectedStatus === 803 && getAccess(i);
});
} }
// //
@ -920,13 +926,19 @@ const getConfig = async () => {
process[2].recordChildren[2].recordChildren.map((e) => { process[2].recordChildren[2].recordChildren.map((e) => {
form.creditScoringStrategyList.push({ form.creditScoringStrategyList.push({
type: 2, type: 2,
bankId: '', bankId: id.value,
id: '', id: '',
tacticsId: '', tacticsId: '',
tacticsPointId: e.id, tacticsPointId: e.id,
tacticsSelectedStatus: '', tacticsSelectedStatus: '',
}); });
}); });
} else {
//
form.creditScoringStrategyList.map((e, i) => {
if (!e.tacticsId) e.tacticsId = '';
e.tacticsSelectedStatus === 803 && getCredits(i);
});
} }
// //
@ -935,13 +947,19 @@ const getConfig = async () => {
i !== 2 && i !== 2 &&
form.interestRatePricingModelList.push({ form.interestRatePricingModelList.push({
type: 3, type: 3,
bankId: '', bankId: id.value,
id: '', id: '',
tacticsId: '', tacticsId: '',
tacticsPointId: e.id, tacticsPointId: e.id,
tacticsSelectedStatus: '', tacticsSelectedStatus: '',
}); });
}); });
} else {
//
form.interestRatePricingModelList.map((e, i) => {
if (!e.tacticsId) e.tacticsId = '';
e.tacticsSelectedStatus === 803 && getRate(i);
});
} }
// //
@ -949,21 +967,18 @@ const getConfig = async () => {
process[7].recordChildren.map((e) => { process[7].recordChildren.map((e) => {
form.postLoanSelectionStrategyList.push({ form.postLoanSelectionStrategyList.push({
type: 4, type: 4,
bankId: '', bankId: id.value,
id: '', id: '',
tacticsId: '', tacticsId: '',
tacticsPointId: e.id, tacticsPointId: e.id,
tacticsSelectedStatus: '', tacticsSelectedStatus: '',
}); });
}); });
} } else {
//
// form.postLoanSelectionStrategyList.map((e, i) => {
const risk = form.bankRiskControlAllocationTacticsList;
if (risk) {
risk.map((e, i) => {
if (!e.tacticsId) e.tacticsId = ''; if (!e.tacticsId) e.tacticsId = '';
e.tacticsSelectedStatus === 803 && getAccess(i); e.tacticsSelectedStatus === 803 && getAfter(i);
}); });
} }
}; };
@ -980,6 +995,8 @@ const getDetail = async () => {
const res = await riskControlDetailsAreDisplayed(id.value); const res = await riskControlDetailsAreDisplayed(id.value);
const e = res.data; const e = res.data;
if (e) { if (e) {
if (e.personalRiskDegreeStrategySelectedStatus) e.personalRiskDegreeStrategySelectedStatus = +e.personalRiskDegreeStrategySelectedStatus;
if (e.enterpriseRiskDegreeStrategySelectedStatus) e.enterpriseRiskDegreeStrategySelectedStatus = +e.enterpriseRiskDegreeStrategySelectedStatus;
e.enterpriseQuotaModel = e?.enterpriseQuotaModel?.split(',').map((e) => +e); e.enterpriseQuotaModel = e?.enterpriseQuotaModel?.split(',').map((e) => +e);
e.reviewSignature = e?.reviewSignature?.length ? e.reviewSignature[0] : ''; e.reviewSignature = e?.reviewSignature?.length ? e.reviewSignature[0] : '';
e.approvalSignature = e?.approvalSignature?.length ? e.approvalSignature[0] : ''; e.approvalSignature = e?.approvalSignature?.length ? e.approvalSignature[0] : '';

@ -70,27 +70,61 @@
class="text">系统跑批准入风控策略-跑批对象{{ riskInfo?.runBatchObject }}</p> class="text">系统跑批准入风控策略-跑批对象{{ riskInfo?.runBatchObject }}</p>
<template v-if="info.bankRiskControlAllocationTacticsList && info.bankRiskControlAllocationTacticsList.length"> <template v-if="info.bankRiskControlAllocationTacticsList && info.bankRiskControlAllocationTacticsList.length">
<p v-for="(item, i) in info.bankRiskControlAllocationTacticsList" <template v-for="(item, i) in info.bankRiskControlAllocationTacticsList">
<p v-if="item.tacticsSelectedStatus"
:key="i" :key="i"
class="text flex"> class="text flex">
系统跑批{{ item.pointName }}{{ item.tacticsName }} 系统跑批{{ item.pointName }}{{ item.tacticsName || '无需跑批' }}
<img v-if="item.tacticsId" <img v-if="item.tacticsName"
src="@/assets/svgs/preview.svg" src="@/assets/svgs/preview.svg"
alt="" alt=""
class="cursor-pointer ml-2" class="cursor-pointer ml-2"
@click="preview(item, i)"> @click="preview(item, i)">
</p> </p>
</template> </template>
</template>
<template v-if="info.creditScoringStrategyList && info.creditScoringStrategyList.length">
<template v-for="(item, i) in info.creditScoringStrategyList">
<p v-if="item.tacticsSelectedStatus"
:key="i"
class="text flex">
系统跑批{{ item.pointName }}{{ item.tacticsName || '无需跑批' }}
<img v-if="item.tacticsName"
src="@/assets/svgs/preview.svg"
alt=""
class="cursor-pointer ml-2"
@click="previewCredits(item, i)">
</p>
</template>
</template>
<p v-if="info?.personalRiskDegreeStrategySelectedStatus === 803 || info?.enterpriseRiskDegreeStrategySelectedStatus === 803"
class="text">系统跑批风险度策略
{{ info?.personalRiskDegreeStrategySelectedStatus === 803 ? '个人风险度策略' : '' }}
{{ info?.personalRiskDegreeStrategySelectedStatus === 803 && info?.enterpriseRiskDegreeStrategySelectedStatus === 803 ? ',' : '' }}
{{ info?.enterpriseRiskDegreeStrategySelectedStatus === 803 ? '企业风险度策略' : '' }}</p>
<template v-if="info.interestRatePricingModelList && info.interestRatePricingModelList.length">
<template v-for="(item, i) in info.interestRatePricingModelList">
<p v-if="item.tacticsSelectedStatus"
:key="i"
class="text flex">
系统跑批{{ item.pointName }}{{ item.tacticsName || '无需跑批' }}
<img v-if="item.tacticsName"
src="@/assets/svgs/preview.svg"
alt=""
class="cursor-pointer ml-2"
@click="preview(item, i)">
</p>
</template>
</template>
<p v-if="info?.enterpriseQuotaModelStr"
class="text">系统跑批企业额度模型{{ info?.enterpriseQuotaModelStr }}</p>
<p v-if="riskInfo?.personalCreditScoringStrategies"
class="text">系统跑批准入风控策略-信用评分策略{{ riskInfo?.personalCreditScoringStrategies }}</p>
<p v-if="riskInfo?.riskDegreeStrategy"
class="text">系统跑批准入风控策略-风险度策略{{ riskInfo?.riskDegreeStrategy }}</p>
<p v-if="riskInfo?.interestRatePricingModel"
class="text">系统跑批准入风控策略-利率定价模型-{{ info.productType ? '企业' : '个人' }}额度模型{{ riskInfo?.interestRatePricingModel }}</p>
<p v-if="riskInfo?.individualInterestRateModel === '需要跑批'"
class="text">系统跑批准入风控策略-利率定价模型-{{ info.productType ? '企业' : '个人' }}利率模型</p>
<p v-if="riskInfo?.dueDiligenceMode" <p v-if="riskInfo?.dueDiligenceMode"
class="text">尽职调查-尽调方式{{ riskInfo?.dueDiligenceMode }}</p> class="text">尽职调查-尽调方式{{ riskInfo?.dueDiligenceMode }}</p>
<p v-if="riskInfo?.dueDiligenceContent" <p v-if="riskInfo?.dueDiligenceContent"
@ -106,15 +140,29 @@
<p v-if="riskInfo?.contractMaterials" <p v-if="riskInfo?.contractMaterials"
class="text">签订合同-提供的材料{{ riskInfo?.contractMaterials }}</p> class="text">签订合同-提供的材料{{ riskInfo?.contractMaterials }}</p>
<p v-if="riskInfo?.loanContract" <p v-if="riskInfo?.loanContract"
class="text">签订合同-合同模板-借贷合同{{ riskInfo?.loanContract }}</p> class="text">需要签订借贷合同{{ riskInfo?.loanContract }}</p>
<p v-if="riskInfo?.mortgageContract" <p v-if="riskInfo?.mortgageContract"
class="text">签订合同-合同模板-抵押合同{{ riskInfo?.mortgageContract }}</p> class="text">需要签订抵押合同{{ riskInfo?.mortgageContract }}</p>
<p v-if="riskInfo?.pledgeContract" <p v-if="riskInfo?.pledgeContract"
class="text">签订合同-合同模板-质押合同{{ riskInfo?.pledgeContract }}</p> class="text">需要签订质押合同{{ riskInfo?.pledgeContract }}</p>
<p v-if="riskInfo?.guaranteeContract" <p v-if="riskInfo?.guaranteeContract"
class="text">签订合同-合同模板-担保合同{{ riskInfo?.guaranteeContract }}</p> class="text">需要签订担保合同{{ riskInfo?.guaranteeContract }}</p>
<p v-if="riskInfo?.selectionStrategy"
class="text">贷后管理-选择策略{{ riskInfo?.selectionStrategy }}</p> <template v-if="info.postLoanSelectionStrategyList && info.postLoanSelectionStrategyList.length">
<template v-for="(item, i) in info.postLoanSelectionStrategyList">
<p v-if="item.tacticsSelectedStatus"
:key="i"
class="text flex">
系统跑批{{ item.pointName }}{{ item.tacticsName || '无需跑批' }}
<img v-if="item.tacticsName"
src="@/assets/svgs/preview.svg"
alt=""
class="cursor-pointer ml-2"
@click="previewAfter(item, i)">
</p>
</template>
</template>
<h6 class="step-name mt-5">{{ route.params.action !== 'add' ? '四、' : '' }}业务流程</h6> <h6 class="step-name mt-5">{{ route.params.action !== 'add' ? '四、' : '' }}业务流程</h6>
<p class="text">1贷款人APP向智信银行公司业务部门提交借款申请同时提交贷款用途证明文件以及有关资料</p> <p class="text">1贷款人APP向智信银行公司业务部门提交借款申请同时提交贷款用途证明文件以及有关资料</p>
@ -181,6 +229,7 @@ const curRow = ref<Record<string, any>>();
const curPreview = ref<string>('150'); const curPreview = ref<string>('150');
const curPreviewTitle = ref<string>(); const curPreviewTitle = ref<string>();
const assessNames = ['政务黑名单', '征信黑名单', '商采黑名单', '行内黑名单', '企业黑名单', '反欺诈策略', '负面行业黑名单策略']; const assessNames = ['政务黑名单', '征信黑名单', '商采黑名单', '行内黑名单', '企业黑名单', '反欺诈策略', '负面行业黑名单策略'];
const afterNames = ['五级分类策略', '贷后检查策略', '贷后评分卡', '贷后预警策略', '贷后催收策略'];
const dynamicComponentMap = { const dynamicComponentMap = {
'150': defineAsyncComponent(() => import('../strategy/150/Detail.vue')), '150': defineAsyncComponent(() => import('../strategy/150/Detail.vue')),
'151': defineAsyncComponent(() => import('../strategy/151/Detail.vue')), '151': defineAsyncComponent(() => import('../strategy/151/Detail.vue')),
@ -189,10 +238,13 @@ const dynamicComponentMap = {
'154': defineAsyncComponent(() => import('../strategy/154/Detail.vue')), '154': defineAsyncComponent(() => import('../strategy/154/Detail.vue')),
'155': defineAsyncComponent(() => import('../strategy/155/Detail.vue')), '155': defineAsyncComponent(() => import('../strategy/155/Detail.vue')),
'156': defineAsyncComponent(() => import('../strategy/156/Detail.vue')), '156': defineAsyncComponent(() => import('../strategy/156/Detail.vue')),
// '148': defineAsyncComponent(() => import('./Credit.vue')), '512': defineAsyncComponent(() => import('../strategy/512/Detail.vue')),
// '702': defineAsyncComponent(() => import('./Risk1.vue')), '513': defineAsyncComponent(() => import('../strategy/513/Detail.vue')),
// '703': defineAsyncComponent(() => import('./Risk2.vue')), '1029': defineAsyncComponent(() => import('../afterLoan/1029/Detail.vue')),
// '704': defineAsyncComponent(() => import('./Risk3.vue')), '1030': defineAsyncComponent(() => import('../afterLoan/1030/Detail.vue')),
'1031': defineAsyncComponent(() => import('../afterLoan/1031/Detail.vue')),
'1032': defineAsyncComponent(() => import('../afterLoan/1032/Detail.vue')),
'1033': defineAsyncComponent(() => import('../afterLoan/1033/Detail.vue')),
}; };
const app = getCurrentInstance().appContext.app; const app = getCurrentInstance().appContext.app;
for (const [name, asyncComponent] of Object.entries(dynamicComponentMap)) { for (const [name, asyncComponent] of Object.entries(dynamicComponentMap)) {
@ -238,6 +290,25 @@ const preview = (row: Record<string, any>, i: number) => {
curPreviewTitle.value = `查看${assessNames[i]}策略`; curPreviewTitle.value = `查看${assessNames[i]}策略`;
visible.value = true; visible.value = true;
}; };
//
const previewCredits = (row: Record<string, any>, i: number) => {
curRow.value = {
id: row.tacticsId,
};
curPreview.value = i ? '513' : '512';
curPreviewTitle.value = `查看${i ? '企业' : '个人'}信用评分策略`;
visible.value = true;
};
//
const previewAfter = (row: Record<string, any>, i: number) => {
curRow.value = {
strategyId: row.tacticsId,
strategyName: row.tacticsName,
};
curPreview.value = Object.keys(dynamicComponentMap)[i + 9];
curPreviewTitle.value = `查看${afterNames[i]}策略`;
visible.value = true;
};
defineExpose({ defineExpose({
info, info,

Loading…
Cancel
Save