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

强制回收和强制撤案

parent adc84480
......@@ -28,16 +28,20 @@ export const changeDistributeCpe = (data) => {
return request.post(`/LoanDistribute/changeDistributeCpe`, data);
};
// 撤回案件
export const backDistribute = (ids) => {
return request.get('/LoanDistribute/back', { ids });
export const backDistribute = (params) => {
return request.get('/LoanDistribute/back', params);
};
// 撤案
export const withdraw = (ids) => {
return request.get('/LoanDistribute/withdraw', { ids });
// 强制撤案
export const fullWithdraw = (params) => {
return request.get('/LoanDistribute/fullWithdraw', params);
};
// 撤回案件
export const fullWithdraw = (ids) => {
return request.get('/LoanDistribute/fullWithdraw', { ids });
// 回收
export const back = (params) => {
return request.get('/LoanDistribute/back', params);
};
// 强制回收
export const fullBack = (params) => {
return request.get('/LoanDistribute/fullBack', params);
};
// 留案
export const stayLoan = (ids) => {
......
......@@ -273,3 +273,6 @@
.vxe-body--row.row--current, .vxe-body--row.row--hover {
background-color: var(--el-color-primary-light-9) !important;
}
.vxe-table--render-default .vxe-body--column, .vxe-table--render-default .vxe-footer--column, .vxe-table--render-default .vxe-header--column {
line-height: 11px !important;
}
\ No newline at end of file
......@@ -431,6 +431,7 @@
border: 1px solid rgba(5, 5, 5, 0.06);
background: #fff;
padding: 8px;
line-height: 11px;
width: 240px;
&.label {
background: var(--el-color-primary-light-9);
......
......@@ -390,7 +390,9 @@
background: #fff;
padding: 8px;
width: 240px;
line-height: 11px;
&.label {
text-align: center;
background: var(--el-color-primary-light-9);
}
}
......
......@@ -321,6 +321,7 @@
padding: 8px;
width: 240px;
&.label {
text-align: center;
background: var(--el-color-primary-light-9);
}
}
......
......@@ -33,7 +33,7 @@
</template>
<script setup name="case-allocation" lang="jsx">
import { getLoantotal, getLoanpage, withdraw, fullWithdraw } from '@/api/allcation';
import { getLoantotal, getLoanpage, back, fullBack } from '@/api/allcation';
import { reactive, ref } from 'vue';
import { ElMessageBox, ElMessage } from 'element-plus';
import citydata from '../../../assets/citydata';
......@@ -58,15 +58,22 @@
};
const submitForm = async (type) => {
const ids = selectdList.value.map((v) => v.id).join(',');
let param = {
}
if (ids.length > 0) {
param['ids'] = ids
} else {
param = {...curParam.value}
}
if (type === 'withdraw') {
await withdraw(ids);
await back(param);
ElMessage({
type: 'success',
message: '回收成功!',
plain: true,
});
} else {
await fullWithdraw(ids);
await fullBack(param);
ElMessage({
type: 'success',
message: '强制回收成功!',
......@@ -74,6 +81,7 @@
});
}
query();
showModal.value = false
}
const paramCallback = (param) => {
const obj = JSON.parse(JSON.stringify(param));
......
......@@ -379,8 +379,10 @@
background: #fff;
padding: 8px;
width: 240px;
line-height: 11px;
&.label {
width: 160px;
text-align: center;
background: var(--el-color-primary-light-9);
}
}
......
......@@ -1210,8 +1210,10 @@
background: #fff;
padding: 8px;
width: 240px;
line-height: 11px;
&.label {
width: 125px;
text-align: center;
background: var(--el-color-primary-light-9);
}
}
......@@ -1232,7 +1234,9 @@
background: #fff;
padding: 8px;
width: 240px;
line-height: 11px;
&.label {
text-align: center;
background: var(--el-color-primary-light-9);
}
}
......
......@@ -34,7 +34,7 @@
</template>
<script setup name="case-allocation" lang="jsx">
import { getLoantotal, getLoanpage, withdraw, fullWithdraw } from '@/api/allcation';
import { getLoantotal, getLoanpage, backDistribute, fullWithdraw } from '@/api/allcation';
import { reactive, ref } from 'vue';
import { ElMessageBox, ElMessage } from 'element-plus';
import citydata from '../../../assets/citydata';
......@@ -59,15 +59,22 @@
};
const submitForm = async (type) => {
const ids = selectdList.value.map((v) => v.id).join(',');
let param = {
}
if (ids.length > 0) {
param['ids'] = ids
} else {
param = {...curParam.value}
}
if (type === 'withdraw') {
await withdraw(ids);
await backDistribute(param);
ElMessage({
type: 'success',
message: '撤案成功!',
plain: true,
});
} else {
await fullWithdraw(ids);
await fullWithdraw(param);
ElMessage({
type: 'success',
message: '强制撤案成功!',
......@@ -75,6 +82,7 @@
});
}
query();
showModal.value = false
}
const paramCallback = (param) => {
const obj = JSON.parse(JSON.stringify(param));
......
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