Commit 009c4713 authored by 沈翠玲's avatar 沈翠玲

稽核管理

parent fe3afc22
import request from '@/utils/http/index';
// 稽核列表
export const getAuditPage = (params) => {
return request.get('/audit/page', params);
};
// 发起稽核
export const saveAudit = (params) => {
return request.post('/audit/save', params);
};
// 稽核审核
export const auditAudit = (params) => {
return request.post('/audit/audit', params);
};
......@@ -27,6 +27,11 @@ export const getByStages = (id) => {
return request.get('/Loan/getByStages?borrowerId=' + id);
};
// 根据借款人查询所有的联系人
export const getGuarantors = (id) => {
return request.get('/Loan/getGuarantors?borrowerId=' + id);
};
// 根据借款人查询所有的还款记录
export const getRepayRecords = (id) => {
return request.get('/Loan/getRepayRecords?borrowerId=' + id);
......
This diff is collapsed.
This diff is collapsed.
......@@ -17,7 +17,7 @@
<el-button type="primary" @click="reduce">减免申请</el-button>
<el-button type="primary" @click="split">分期申请</el-button>
</div>
<div class="detail-steps">
<div class="detail-steps" style="display:none;">
<el-steps :active="activeStep">
<el-step
:title="item.title"
......@@ -59,7 +59,7 @@
<div class="box-content">
<ProTable
:config="relationConfig"
:data="detail?.borrower?.guarantors"
:data="guarantorData"
:showPagination="false"
:showToolBar="false"
/>
......@@ -230,12 +230,15 @@
getByStages,
listByBorrower,
getRepayRecords,
getGuarantors
} from '@/api/property';
import { Picture, Download } from '@element-plus/icons-vue';
import { saveAudit } from '@/api/audit';
import { inject } from 'vue';
const envs = getAppEnvConfig();
const returnData = ref([]);
const recordData = ref([]);
const guarantorData = ref([]);
const reduceData = ref([]);
const splitData = ref([]);
const srcList = ref([]);
......@@ -479,6 +482,25 @@
},
},
},
{
field: 'code',
title: '',
slots: {
default: ({ row, rowIndex }) => {
return (
<>
<ElButton
type="primary"
onClick={() => audit(row)}
>
{/* <ElButton type="primary" onClick={() => callTelephone(row)}> */}
发起稽核
</ElButton>
</>
);
},
},
}
],
toolbarConfig: { enabled: false },
});
......@@ -740,6 +762,13 @@
}
});
};
const getGuarantorsList = (borrowerId) => {
getGuarantors(borrowerId).then((res) => {
if (res.result && res.result) {
guarantorData.value = res.result;
}
});
};
const onCellCase = ({ row, rowIndex }) => {
console.log('row.borrower.id', row);
......@@ -755,6 +784,15 @@
caseDetailRef.value?.setAllRowExpand(true);
}
};
const audit = (row) => {
saveAudit({
trackRecord: {
id: row.id
}
}).then(res => {
})
}
const reduceConfig = reactive({
columns: [
{
......@@ -868,8 +906,10 @@
onBeforeMount(async () => {
const id = JSON.parse(route.query.id);
const { result } = await getCredit(id);
console.log('result', result)
detail.value = result;
if (detail.value?.borrower?.id) {
getGuarantorsList(detail.value?.borrower?.id)
getTrackRecordList(detail.value?.borrower?.id);
listByBorrower(detail.value?.borrower?.id).then((res) => {
if (res.result && res.result) {
......
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