Commit 98fcf58a authored by 沈翠玲's avatar 沈翠玲

客户报告临时提交

parent 4a4db135
......@@ -27,3 +27,11 @@ export const saveContract = (data) => {
export const flowStatusByIds = (data) => {
return request.get('/Contract/flowStatusByIds', data);
};
// 发起客户报告
export const sendReport = (id) => {
return request.get('/customerReport/sendReport?customerId=' + id);
};
// 根据id获取客户详情
export const getByIdcustomerReport = (id) => {
return request.get('/customerReport/getById?id=' + id);
};
\ No newline at end of file
import * as echarts from "echarts/core";
import { BarChart, LineChart, LinesChart, PieChart, ScatterChart, RadarChart, GaugeChart } from "echarts/charts";
import { BarChart, LineChart, LinesChart, PieChart, ScatterChart, RadarChart, GaugeChart, MapChart } from "echarts/charts";
import {
TitleComponent,
TooltipComponent,
......@@ -8,6 +8,7 @@ import {
TransformComponent,
LegendComponent,
PolarComponent,
VisualMapComponent,
GeoComponent,
ToolboxComponent,
DataZoomComponent
......@@ -53,6 +54,7 @@ echarts.use([
EffectScatterChart,
TitleComponent,
TooltipComponent,
VisualMapComponent,
GridComponent,
DatasetComponent,
TransformComponent,
......@@ -63,6 +65,7 @@ echarts.use([
DataZoomComponent,
BarChart,
LineChart,
MapChart,
LinesChart,
PieChart,
ScatterChart,
......
.dataScreen-container {
width: 100%;
height: 100%;
background: #00204b;
background: #140f59;
.dataScreen-content {
position: fixed;
top: 50%;
......
......@@ -11,7 +11,7 @@
>新建网贷&信用贷</el-button
> -->
<el-button type="primary" @click="pushCustomer()">新建客户</el-button>
<el-button type="primary">发起风控审核</el-button>
<!-- <el-button type="primary">发起风控审核</el-button> -->
</template>
</ProTable>
</div>
......@@ -20,7 +20,7 @@
<script setup lang="jsx" name="platformManage">
import { ref, reactive, onMounted } from 'vue';
import { Plus, Delete, Edit, Setting } from '@element-plus/icons-vue';
import { getCustomerPage } from '@/api/customer';
import { getCustomerPage, sendReport } from '@/api/customer';
import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus';
import { useRouter } from 'vue-router';
......@@ -59,6 +59,22 @@
query: { id: 44 }, //这里不能直接写成 query: JSON.stringify(item)
});
};
const send = async (e, row) => {
e.stopPropagation()
await ElMessageBox.confirm(`是否分起客户名称为${row.name},身份证号为${row.idCard},创建时间为${row.createTime}的风控审核?`, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
});
sendReport(row.id).then(res => {
if (res.success) {
router.push({
path: '/infoGather/dangerReport/dangerReportDetail',
query: res.result ? { id: res.result.id }: {}, //这里不能直接写成 query: JSON.stringify(item)
});
}
})
}
const onCellClick = ({ row, rowIndex }) => {
pushCustomer(row)
}
......@@ -67,7 +83,7 @@
onCheckboxAll: onCheckboxAll,
onCellClick: onCellClick,
columns: [
{ type: 'checkbox', width: 60,fixed: 'left' },
// { type: 'checkbox', width: 60,fixed: 'left' },
{ field: 'name', title: '客户名称', search: { labelWidth: 85, el: 'input' } },
{
field: 'createTime',
......@@ -89,6 +105,22 @@
{ field: 'reserveWorkUnit', title: '预留工作单位', search: { labelWidth: 85, el: 'input' } },
{ field: 'reserveAddress', title: '预留家庭地址', search: { labelWidth: 85, el: 'input' } },
{ field: 'remark', title: '备注', search: { labelWidth: 85, el: 'input' } },
{
field: 'code',
title: '操作',
width: 100,
slots: {
default: ({ row, rowIndex }) => {
return (
<>
<ElButton type="primary" onClick={(e) => send(e, row)}>
发起风控审核
</ElButton>
</>
);
},
},
},
],
});
......
......@@ -266,6 +266,7 @@
import { ElButton, ElTag, ElMessage } from 'element-plus';
import { useRoute } from 'vue-router';
import { useRouter } from 'vue-router';
import { getByIdcustomerReport } from '@/api/customer';
import { ref, reactive, onBeforeMount } from 'vue';
const form = ref({
status: ''
......@@ -313,10 +314,16 @@ const cancel = () => {
});
}
const query = async (type) => {
const id = JSON.parse(route.query.id);
getByIdcustomerReport(route.query.id).then(res => {
if(res.success) {
form.value = res.result
}
})
}
onBeforeMount(async () => {
if (route.query.id) {
query()
}
})
const cardConfig = reactive({
minHeight: 200,
......
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