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

强制回收和强制撤案

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