Commit 524a0269 authored by 沈翠玲's avatar 沈翠玲

风控报告

parent 98fcf58a
...@@ -35,3 +35,15 @@ export const sendReport = (id) => { ...@@ -35,3 +35,15 @@ export const sendReport = (id) => {
export const getByIdcustomerReport = (id) => { export const getByIdcustomerReport = (id) => {
return request.get('/customerReport/getById?id=' + id); return request.get('/customerReport/getById?id=' + id);
}; };
// 客户报告风控审核列表
export const getriskPage = (params) => {
return request.get('/customerReport/riskPage', params);
};
// 客户报告列表
export const getcustomerReportPage = (params) => {
return request.get('/customerReport/page', params);
};
// 客户报告风控审核列表
export const getlegalPage = (params) => {
return request.get('/customerReport/legalPage', params);
};
\ No newline at end of file
...@@ -21,15 +21,15 @@ ...@@ -21,15 +21,15 @@
<tbody> <tbody>
<tr> <tr>
<td class="label">录入人</td> <td class="label">录入人</td>
<td colspan="2"><el-input class="line-input" v-model="form.inputUserName" placeholder="" /></td> <td colspan="2"><el-input class="line-input" v-model="form.inputUserName" placeholder="" disabled/></td>
<td class="label">推荐人</td> <td class="label">推荐人</td>
<td colspan="2"><el-input class="line-input" v-model="form.referee" placeholder="" /></td> <td colspan="2"><el-input class="line-input" v-model="form.referee" placeholder="" /></td>
</tr> </tr>
<tr> <tr>
<td class="label">部门</td> <td class="label">部门</td>
<td colspan="2"><el-input class="line-input" v-model="form.inputOrg" placeholder="" /></td> <td colspan="2"><el-input class="line-input" v-model="form.inputOrg" placeholder="" disabled /></td>
<td class="label">角色</td> <td class="label">角色</td>
<td colspan="2"><el-input class="line-input" v-model="form.inputRole" placeholder="" /></td> <td colspan="2"><el-input class="line-input" v-model="form.inputRole" placeholder="" disabled /></td>
</tr> </tr>
<tr> <tr>
<td class="label">姓名</td> <td class="label">姓名</td>
...@@ -386,7 +386,7 @@ const form = ref({ ...@@ -386,7 +386,7 @@ const form = ref({
"remark": "", "remark": "",
"creditCard": [], "creditCard": [],
lending: [], lending: [],
inputUserName: '', inputUserName: userStore.userInfo.username,
inputUser: userStore.userInfo, inputUser: userStore.userInfo,
"inputOrg": "", "inputOrg": "",
"inputRole": "", "inputRole": "",
......
<template> <template>
<div class="table-box"> <div class="table-box">
<ProTable ref="proTable" :config="config" :api="getCustomerPage" :paramCallback="paramCallback" :selectdList="selectdList"> <ProTable ref="proTable" :config="config" :api="getCustomerPage" :paramCallback="paramCallback">
<template #left_buttons> <template #left_buttons>
<!-- <el-button type="primary" :disabled="!selectdList || selectdList.length < 1" @click="pushCreditcard">新建信用卡</el-button> --> <!-- <el-button type="primary" :disabled="!selectdList || selectdList.length < 1" @click="pushCreditcard">新建信用卡</el-button> -->
<!-- <el-button type="primary" @click="pushCredit">新建信用卡</el-button> <!-- <el-button type="primary" @click="pushCredit">新建信用卡</el-button>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
sendReport(row.id).then(res => { sendReport(row.id).then(res => {
if (res.success) { if (res.success) {
router.push({ router.push({
path: '/infoGather/dangerReport/dangerReportDetail', name: 'dangerReportDetail',
query: res.result ? { id: res.result.id }: {}, //这里不能直接写成 query: JSON.stringify(item) query: res.result ? { id: res.result.id }: {}, //这里不能直接写成 query: JSON.stringify(item)
}); });
} }
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
}, },
}, },
{ {
field: 'createBy', field: 'inputUserName',
title: '创建人', title: '创建人',
search: { el: 'input',labelWidth: 85, props: { clearable: true } }, search: { el: 'input',labelWidth: 85, props: { clearable: true } },
}, },
......
<template> <template>
<div class="table-box"> <div class="table-box">
<div class=" bg-white pt-2 pl-2"> <!-- <div class=" bg-white pt-2 pl-2">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick"> <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
<el-tab-pane <el-tab-pane
:label="item.label" :label="item.label"
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
</template> </template>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div> -->
<ProTable ref="proTable" :config="config" :api="getPlatformPage" :paramCallback="paramCallback"> <ProTable ref="proTable" :config="config" :api="func" :paramCallback="paramCallback">
</ProTable> </ProTable>
</div> </div>
</template> </template>
...@@ -25,13 +25,15 @@ ...@@ -25,13 +25,15 @@
<script setup lang="jsx" name="platformManage"> <script setup lang="jsx" name="platformManage">
import { ref, reactive, onMounted } from 'vue'; import { ref, reactive, onMounted } from 'vue';
import { Plus, Delete, Edit, Setting } from '@element-plus/icons-vue'; import { Plus, Delete, Edit, Setting } from '@element-plus/icons-vue';
import { getPlatformPage, deletePlatforms } from '@/api/platform'; import { getcustomerReportPage, getriskPage, getlegalPage } from '@/api/customer';
import { getByStagesTotal } from '@/api/property';
import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus'; import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useRoute } from 'vue-router';
const tabs = ref([]); const tabs = ref([]);
import { useDict } from '@/hooks/useDict'; import { useDict } from '@/hooks/useDict';
const { PhoneResultStatus, ReduceType, FlowStatus, FollowStatus, AuditStatus, CaseStatus } = useDict("PhoneResultStatus","ReduceType", "FlowStatus", "FollowStatus","AuditStatus", "CaseStatus"); const { PhoneResultStatus, ReduceType, FlowStatus, FollowStatus, AuditStatus, CaseStatus } = useDict("PhoneResultStatus","ReduceType", "FlowStatus", "FollowStatus","AuditStatus", "CaseStatus");
const route = useRoute();
const proTable = ref(null); const proTable = ref(null);
const selectdList = ref([]); const selectdList = ref([]);
...@@ -39,6 +41,15 @@ ...@@ -39,6 +41,15 @@
selectdList.value = row.records; selectdList.value = row.records;
}; };
const router = useRouter(); const router = useRouter();
const func = () => {
if (route.fullPath.includes('infoGather/dangerReport')) {
return getcustomerReportPage
} else if (route.fullPath.includes('/business-approval/riskManager')) {
return getriskPage
} else if (route.fullPath.includes('/business-approval/legalManager')) {
return getlegalPage
}
}
const activeName = ref('pending'); const activeName = ref('pending');
const paramCallback = (param) => { const paramCallback = (param) => {
const obj = JSON.parse(JSON.stringify(param)); const obj = JSON.parse(JSON.stringify(param));
...@@ -47,26 +58,6 @@ ...@@ -47,26 +58,6 @@
if (obj['createTime'][1]) obj['createTimeEnd'] = obj['createTime'][1]; if (obj['createTime'][1]) obj['createTimeEnd'] = obj['createTime'][1];
delete obj['createTime']; delete obj['createTime'];
} }
setTimeout(() => {
const arr = JSON.parse(JSON.stringify(FlowStatus.value))
getByStagesTotal({...obj, flowStatus: null}).then(res => {
if (res.success) {
arr.forEach(item => {
const tt = res.result.find(v => v.flowStatus === item.value)
if (tt) {
item['msg'] = tt.number
} else {
item['msg'] = 0
}
})
tabs.value = arr
} else {
tabs.value = arr
}
}).catch(e => {
tabs.value = arr
})
}, (FlowStatus.value && FlowStatus.value.length) ? 100 : 1000)
return obj; return obj;
}; };
const onCheckboxAll = (flag) => { const onCheckboxAll = (flag) => {
...@@ -82,31 +73,30 @@ ...@@ -82,31 +73,30 @@
query: row ? { id: row.id }: {}, //这里不能直接写成 query: JSON.stringify(item) query: row ? { id: row.id }: {}, //这里不能直接写成 query: JSON.stringify(item)
}); });
}; };
const pushCredit = () => { const onCellClick = ({ row, rowIndex }) => {
if (route.fullPath.includes('infoGather/dangerReport')) {
router.push({ router.push({
path: '/infoGather/customerGather/Credit', name: 'dangerReportDetail',
query: { id: 44 }, //这里不能直接写成 query: JSON.stringify(item) query: row ? { id: row.id }: {}
}); });
}; } else if (route.fullPath.includes('/business-approval/riskManager')) {
router.push({
name: 'riskReportDetail',
query: row ? { id: row.id }: {}
});
} else if (route.fullPath.includes('/business-approval/legalManager')) {
router.push({
name: 'legalReportDetail',
query: row ? { id: row.id }: {}
});
}
}
const config = reactive({ const config = reactive({
onCheckboxChange: onCheckboxChange, onCheckboxChange: onCheckboxChange,
onCheckboxAll: onCheckboxAll, onCheckboxAll: onCheckboxAll,
onCellClick: onCellClick,
columns: [ columns: [
{ field: 'id', title: '客户ID', slots: {
default: ({ row, rowIndex }) => {
return (
<>
<div
onClick={() => pushCustomer(row)}
className=" text-blue-400 cursor-pointer inline-block"
>
{row.id}
</div>
</>
);
},
}
},
{ {
field: 'createTime', field: 'createTime',
title: '创建日期', title: '创建日期',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment