Commit dd965c2c authored by 沈翠玲's avatar 沈翠玲

修改bug

parent e7f92840
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
width: 80, width: 80,
}, },
{ {
field: 'payOrg', field: 'loanPlatform.name',
title: '借款机构', title: '借款机构',
search: { el: 'input' }, search: { el: 'input' },
}, },
......
...@@ -82,6 +82,11 @@ ...@@ -82,6 +82,11 @@
field: 'caseId', field: 'caseId',
title: '案件ID', title: '案件ID',
search: { el: 'input' }, search: { el: 'input' },
slots: {
default: ({ row }) => {
return <>{row.reduceRecords.map((v) => v.loan.caseId).join(',')}</>;
},
},
width: 80, width: 80,
}, },
{ {
......
...@@ -134,9 +134,9 @@ ...@@ -134,9 +134,9 @@
width: 80, width: 80,
}, },
{ {
field: 'stages.loans.payOrg', field: 'stages.loans.loanPlatform.name',
title: '借款机构', title: '借款机构',
search: { el: 'input', key: 'stages.loans.payOrg' }, search: { el: 'input', key: 'payOrg' },
width: 100, width: 100,
}, },
{ {
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
title: '所属区域', title: '所属区域',
width: 80, width: 80,
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'label', value: 'value' },
search: { el: 'cascader', props: { clearable: true }, labelWidth: 85 }, search: { el: 'cascader', props: { clearable: true, checkStrictly: true }, labelWidth: 85 },
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return ( return (
......
...@@ -38,9 +38,9 @@ ...@@ -38,9 +38,9 @@
<td class="label">案件ID</td> <td class="label">案件ID</td>
<td>{{ currentInfo.caseId }}</td> <td>{{ currentInfo.caseId }}</td>
<td class="label">借款平台</td> <td class="label">借款平台</td>
<td>{{ currentInfo.payOrg }}</td> <td>{{ currentInfo.loanPlatform.name }}</td>
<td class="label">资管公司</td> <td class="label">资管公司</td>
<td>{{ currentInfo.manageOrg }}</td> <td>{{ currentInfo.manageOrg.orgName }}</td>
</tr> </tr>
<tr> <tr>
<td class="label">委案金额</td> <td class="label">委案金额</td>
...@@ -240,6 +240,9 @@ ...@@ -240,6 +240,9 @@
}; };
const openModal = (info, detail, type) => { const openModal = (info, detail, type) => {
showModal.value = true; showModal.value = true;
form.realRepayAmount = ''
form.files = []
form.realRepayTime = dayjs().format('YYYY-MM-DD HH:mm:ss')
currentInfo.value = info; currentInfo.value = info;
console.log('currentInfo', currentInfo.value); console.log('currentInfo', currentInfo.value);
currentDetail.value = detail; currentDetail.value = detail;
...@@ -272,14 +275,31 @@ ...@@ -272,14 +275,31 @@
const submitForm = () => { const submitForm = () => {
formRef.value.validate((valid) => { formRef.value.validate((valid) => {
if (valid) { if (valid) {
saveRepayRecord({ const param = {
repayType: options.find((v) => v.label === currentType.value).value, repayType: options.find((v) => v.label === currentType.value).value,
...form, ...form,
borrower: currentInfo.value.borrower, borrower: currentInfo.value.borrower,
flowStatus: 'pending', flowStatus: 'pending',
repayStatus: 'over', repayStatus: 'over',
status: 'enable', status: 'enable',
}).then((res) => { }
if (currentType.value === '分期还款') {
param['stages'] = {
borrower: currentInfo.value.borrower,
totalPeriod: currentDetail.value.totalPeriod,
remainingAmount: currentInfo.value.remainingAmount,
totalRepayAmount: currentDetail.value.totalRepayAmount,
applyDate: currentDetail.value.applyDate,
firstApplyDate: currentDetail.value.firstApplyDate,
effectiveTime: currentDetail.value.effectiveTime,
loans: currentDetail.value.loans,
flowStatus: 'pending'
}
const item = currentDetail.value.byStagesRecords.find(v=>currentInfo.value.period === v.period)
item['repayStatus'] = 'over'
param['stages']['byStagesRecords'] = currentDetail.value.byStagesRecords
}
saveRepayRecord(param).then((res) => {
console.log('res', res); console.log('res', res);
if (res.success) { if (res.success) {
ElMessage.success({ ElMessage.success({
......
...@@ -101,11 +101,13 @@ ...@@ -101,11 +101,13 @@
</el-form> </el-form>
</div> </div>
<div class="w-3/5"> <div class="w-3/5">
<ProTable :config="splitconfig" :data="splitdata" :showPagination="false"> <ProTable :config="splitconfig" :data="splitdata" :showPagination="false" :showToolBar="false">
<template #right_tools> <template #table_top>
<el-button type="primary" @click="editOrConfirm" class="mr-1">{{ <div class="flex justify-end">
editFirst ? '确定' : '修改' <el-button type="primary" @click="editOrConfirm" class="mr-1 my-2">{{
}}</el-button> editFirst ? '确定' : '修改'
}}</el-button>
</div>
</template> </template>
</ProTable> </ProTable>
<div class="flex"> <div class="flex">
...@@ -303,6 +305,7 @@ ...@@ -303,6 +305,7 @@
const splitconfig = computed(() => { const splitconfig = computed(() => {
return { return {
minHeight: 200, minHeight: 200,
toolbarConfig: { enabled: false },
columns: [ columns: [
{ field: 'period', width: 50, title: '期次' }, { field: 'period', width: 50, title: '期次' },
{ {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item class="w-full" label="所属区域" prop="orgName"> <el-form-item class="w-full" label="所属区域" prop="orgName">
<el-cascader v-model="form.arealist" class="w-full" :options="citydata" clearable /> <el-cascader v-model="form.arealist" class="w-full" :checkStrictly="true" :options="citydata" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
enum: citydata, enum: citydata,
title: '所属区域', title: '所属区域',
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'label', value: 'value' },
search: { el: 'cascader', props: { clearable: true } }, search: { el: 'cascader', props: { clearable: true, checkStrictly: true} },
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return ( return (
......
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