From 0341e2169deb5ee3df971bc915e96e4242b112d5 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 9 Nov 2023 15:06:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B7=E5=90=8E=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model.ts | 12 +++ src/views/product/afterLoan/1030.vue | 33 +++--- src/views/product/afterLoan/1032.vue | 126 ++++++++++++++++++++++ src/views/product/afterLoan/1033.vue | 130 +++++++++++++++++++++++ src/views/product/afterLoan/CardList.vue | 6 +- 5 files changed, 285 insertions(+), 22 deletions(-) create mode 100644 src/views/product/afterLoan/1032.vue create mode 100644 src/views/product/afterLoan/1033.vue diff --git a/src/api/model.ts b/src/api/model.ts index 2a56523..6f1017c 100644 --- a/src/api/model.ts +++ b/src/api/model.ts @@ -70,3 +70,15 @@ export const fiveLevelClassificationSave = async (data: Record): Pr export const postLoanInspectionDetails = async (checkpointId: number, projectId: number): Promise => (await axios.post(`/product/postLoanInspection/details?checkpointId=${checkpointId}&projectId=${projectId}`)).data; export const postLoanInspectionSave = async (data: Record): Promise => (await axios.post(`/product/postLoanInspection/saveOrUpdate`, data)).data; + +export const postCreditScoreDetails = async (checkpointId: number, projectId: number): Promise => + (await axios.post(`/product/postCreditScore/details?checkpointId=${checkpointId}&projectId=${projectId}`)).data; +export const postCreditScoreSave = async (data: Record): Promise => (await axios.post(`/product/postCreditScore/saveOrUpdate`, data)).data; + +export const postLoanWarningDetails = async (checkpointId: number, projectId: number): Promise => + (await axios.post(`/product/postLoanWarning/details?checkpointId=${checkpointId}&projectId=${projectId}`)).data; +export const postLoanWarningSave = async (data: Record): Promise => (await axios.post(`/product/postLoanWarning/saveOrUpdate`, data)).data; + +export const collectionAfterLoanDetails = async (checkpointId: number, projectId: number): Promise => + (await axios.post(`/product/collectionAfterLoan/details?checkpointId=${checkpointId}&projectId=${projectId}`)).data; +export const collectionAfterLoanSave = async (data: Record): Promise => (await axios.post(`/product/collectionAfterLoan/saveOrUpdate`, data)).data; diff --git a/src/views/product/afterLoan/1030.vue b/src/views/product/afterLoan/1030.vue index 391b39f..1b051ed 100644 --- a/src/views/product/afterLoan/1030.vue +++ b/src/views/product/afterLoan/1030.vue @@ -15,7 +15,11 @@ + align="center"> + + @@ -81,34 +85,23 @@ const getConfig = async () => { const { process } = await getProcessInformationBasedOnRoles(1030); const result = []; process.map((e, i) => { - const cur = info.value.find((n) => n.stRecordId === e.id); + const cur = info.value.length ? info.value[i] : {}; let temp = { checkpointId: levelId, projectId, recordName: e.name, recordChildren: e.recordChildren, - checkObject: 683, - checkTimeType: 689, - creditData: false, - governmentData: false, - isChoose: false, - timeDays: '', + checkObject: +(cur.checkObject || 683), + checkTimeType: +(cur.checkTimeType || 689), + creditData: info.value.length ? !!cur.creditData : false, + governmentData: info.value.length ? !!cur.governmentData : false, + isChoose: info.value.length ? !!cur.isChoose : false, + timeDays: cur.timeDays || '', + id: cur.id || '', stRecordId: e.id, }; result.push(temp); - i === 1 && result.push(JSON.parse(JSON.stringify(temp))); }); - if (info.value.length) { - result.forEach((e, i) => { - result[i].checkObject = +info.value[i].checkObject; - result[i].checkTimeType = +info.value[i].checkTimeType; - result[i].creditData = !!info.value[i].creditData; - result[i].governmentData = !!info.value[i].governmentData; - result[i].isChoose = !!info.value[i].isChoose; - result[i].timeDays = info.value[i].timeDays; - result[i].id = info.value[i].id; - }); - } form.value = result; }; // 详情 diff --git a/src/views/product/afterLoan/1032.vue b/src/views/product/afterLoan/1032.vue new file mode 100644 index 0000000..e6fea27 --- /dev/null +++ b/src/views/product/afterLoan/1032.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/src/views/product/afterLoan/1033.vue b/src/views/product/afterLoan/1033.vue new file mode 100644 index 0000000..28560ea --- /dev/null +++ b/src/views/product/afterLoan/1033.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/views/product/afterLoan/CardList.vue b/src/views/product/afterLoan/CardList.vue index c552d54..de0f3aa 100644 --- a/src/views/product/afterLoan/CardList.vue +++ b/src/views/product/afterLoan/CardList.vue @@ -16,6 +16,8 @@
+ +
@@ -29,8 +31,8 @@ import { useRouter, useRoute } from 'vue-router'; import Cookies from 'js-cookie'; import Com1 from './1029.vue'; import Com2 from './1030.vue'; -import Com3 from './935.vue'; -import Com4 from './936.vue'; +import Com4 from './1032.vue'; +import Com5 from './1033.vue'; const router = useRouter(); const route = useRoute();