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

风控报告

parent 98fcf58a
......@@ -35,3 +35,15 @@ export const sendReport = (id) => {
export const getByIdcustomerReport = (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 @@
<tbody>
<tr>
<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 colspan="2"><el-input class="line-input" v-model="form.referee" placeholder="" /></td>
</tr>
<tr>
<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 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>
<td class="label">姓名</td>
......@@ -386,7 +386,7 @@ const form = ref({
"remark": "",
"creditCard": [],
lending: [],
inputUserName: '',
inputUserName: userStore.userInfo.username,
inputUser: userStore.userInfo,
"inputOrg": "",
"inputRole": "",
......
<template>
<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>
<!-- <el-button type="primary" :disabled="!selectdList || selectdList.length < 1" @click="pushCreditcard">新建信用卡</el-button> -->
<!-- <el-button type="primary" @click="pushCredit">新建信用卡</el-button>
......@@ -69,7 +69,7 @@
sendReport(row.id).then(res => {
if (res.success) {
router.push({
path: '/infoGather/dangerReport/dangerReportDetail',
name: 'dangerReportDetail',
query: res.result ? { id: res.result.id }: {}, //这里不能直接写成 query: JSON.stringify(item)
});
}
......@@ -95,7 +95,7 @@
},
},
{
field: 'createBy',
field: 'inputUserName',
title: '创建人',
search: { el: 'input',labelWidth: 85, props: { clearable: true } },
},
......
<template>
<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-tab-pane
:label="item.label"
......@@ -16,8 +16,8 @@
</template>
</el-tab-pane>
</el-tabs>
</div>
<ProTable ref="proTable" :config="config" :api="getPlatformPage" :paramCallback="paramCallback">
</div> -->
<ProTable ref="proTable" :config="config" :api="func" :paramCallback="paramCallback">
</ProTable>
</div>
</template>
......@@ -25,13 +25,15 @@
<script setup lang="jsx" name="platformManage">
import { ref, reactive, onMounted } from 'vue';
import { Plus, Delete, Edit, Setting } from '@element-plus/icons-vue';
import { getPlatformPage, deletePlatforms } from '@/api/platform';
import { getByStagesTotal } from '@/api/property';
import { getcustomerReportPage, getriskPage, getlegalPage } from '@/api/customer';
import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus';
import { useRouter } from 'vue-router';
import { useRoute } from 'vue-router';
const tabs = ref([]);
import { useDict } from '@/hooks/useDict';
const { PhoneResultStatus, ReduceType, FlowStatus, FollowStatus, AuditStatus, CaseStatus } = useDict("PhoneResultStatus","ReduceType", "FlowStatus", "FollowStatus","AuditStatus", "CaseStatus");
const route = useRoute();
const proTable = ref(null);
const selectdList = ref([]);
......@@ -39,6 +41,15 @@
selectdList.value = row.records;
};
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 paramCallback = (param) => {
const obj = JSON.parse(JSON.stringify(param));
......@@ -47,26 +58,6 @@
if (obj['createTime'][1]) obj['createTimeEnd'] = obj['createTime'][1];
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;
};
const onCheckboxAll = (flag) => {
......@@ -82,31 +73,30 @@
query: row ? { id: row.id }: {}, //这里不能直接写成 query: JSON.stringify(item)
});
};
const pushCredit = () => {
const onCellClick = ({ row, rowIndex }) => {
if (route.fullPath.includes('infoGather/dangerReport')) {
router.push({
path: '/infoGather/customerGather/Credit',
query: { id: 44 }, //这里不能直接写成 query: JSON.stringify(item)
name: 'dangerReportDetail',
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({
onCheckboxChange: onCheckboxChange,
onCheckboxAll: onCheckboxAll,
onCellClick: onCellClick,
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',
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