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

客户报告临时提交

parent 4a4db135
...@@ -27,3 +27,11 @@ export const saveContract = (data) => { ...@@ -27,3 +27,11 @@ export const saveContract = (data) => {
export const flowStatusByIds = (data) => { export const flowStatusByIds = (data) => {
return request.get('/Contract/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 * 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 { import {
TitleComponent, TitleComponent,
TooltipComponent, TooltipComponent,
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
TransformComponent, TransformComponent,
LegendComponent, LegendComponent,
PolarComponent, PolarComponent,
VisualMapComponent,
GeoComponent, GeoComponent,
ToolboxComponent, ToolboxComponent,
DataZoomComponent DataZoomComponent
...@@ -53,6 +54,7 @@ echarts.use([ ...@@ -53,6 +54,7 @@ echarts.use([
EffectScatterChart, EffectScatterChart,
TitleComponent, TitleComponent,
TooltipComponent, TooltipComponent,
VisualMapComponent,
GridComponent, GridComponent,
DatasetComponent, DatasetComponent,
TransformComponent, TransformComponent,
...@@ -63,6 +65,7 @@ echarts.use([ ...@@ -63,6 +65,7 @@ echarts.use([
DataZoomComponent, DataZoomComponent,
BarChart, BarChart,
LineChart, LineChart,
MapChart,
LinesChart, LinesChart,
PieChart, PieChart,
ScatterChart, ScatterChart,
......
.dataScreen-container { .dataScreen-container {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #00204b; background: #140f59;
.dataScreen-content { .dataScreen-content {
position: fixed; position: fixed;
top: 50%; top: 50%;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
>新建网贷&信用贷</el-button >新建网贷&信用贷</el-button
> --> > -->
<el-button type="primary" @click="pushCustomer()">新建客户</el-button> <el-button type="primary" @click="pushCustomer()">新建客户</el-button>
<el-button type="primary">发起风控审核</el-button> <!-- <el-button type="primary">发起风控审核</el-button> -->
</template> </template>
</ProTable> </ProTable>
</div> </div>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<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 { getCustomerPage } from '@/api/customer'; import { getCustomerPage, sendReport } from '@/api/customer';
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';
...@@ -59,6 +59,22 @@ ...@@ -59,6 +59,22 @@
query: { id: 44 }, //这里不能直接写成 query: JSON.stringify(item) 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 }) => { const onCellClick = ({ row, rowIndex }) => {
pushCustomer(row) pushCustomer(row)
} }
...@@ -67,7 +83,7 @@ ...@@ -67,7 +83,7 @@
onCheckboxAll: onCheckboxAll, onCheckboxAll: onCheckboxAll,
onCellClick: onCellClick, onCellClick: onCellClick,
columns: [ columns: [
{ type: 'checkbox', width: 60,fixed: 'left' }, // { type: 'checkbox', width: 60,fixed: 'left' },
{ field: 'name', title: '客户名称', search: { labelWidth: 85, el: 'input' } }, { field: 'name', title: '客户名称', search: { labelWidth: 85, el: 'input' } },
{ {
field: 'createTime', field: 'createTime',
...@@ -89,6 +105,22 @@ ...@@ -89,6 +105,22 @@
{ field: 'reserveWorkUnit', title: '预留工作单位', search: { labelWidth: 85, el: 'input' } }, { field: 'reserveWorkUnit', title: '预留工作单位', search: { labelWidth: 85, el: 'input' } },
{ field: 'reserveAddress', title: '预留家庭地址', search: { labelWidth: 85, el: 'input' } }, { field: 'reserveAddress', title: '预留家庭地址', search: { labelWidth: 85, el: 'input' } },
{ field: 'remark', 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 @@ ...@@ -266,6 +266,7 @@
import { ElButton, ElTag, ElMessage } from 'element-plus'; import { ElButton, ElTag, ElMessage } from 'element-plus';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { getByIdcustomerReport } from '@/api/customer';
import { ref, reactive, onBeforeMount } from 'vue'; import { ref, reactive, onBeforeMount } from 'vue';
const form = ref({ const form = ref({
status: '' status: ''
...@@ -313,10 +314,16 @@ const cancel = () => { ...@@ -313,10 +314,16 @@ const cancel = () => {
}); });
} }
const query = async (type) => { 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 () => { onBeforeMount(async () => {
if (route.query.id) {
query() query()
}
}) })
const cardConfig = reactive({ const cardConfig = reactive({
minHeight: 200, 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