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

修改案件分配和案件回收和案件撤案的bug

parent dd048e4d
...@@ -279,6 +279,13 @@ ...@@ -279,6 +279,13 @@
.vxe-table--render-default.size--small .vxe-body--column:not(.col--ellipsis) { .vxe-table--render-default.size--small .vxe-body--column:not(.col--ellipsis) {
padding: 0 !important; padding: 0 !important;
} }
/*vxe-table 自定义行高 */
.vxe-table .vxe-body--column.col--ellipsis {
height: 34px;
}
.vxe-table .vxe-body--column:not(.col--ellipsis), .vxe-table .vxe-footer--column:not(.col--ellipsis), .vxe-table .vxe-header--column:not(.col--ellipsis) {
height: 34px;
}
.el-button { .el-button {
padding: 0px 10px !important; padding: 0px 10px !important;
font-size: 13px !important; font-size: 13px !important;
......
...@@ -276,6 +276,7 @@ ...@@ -276,6 +276,7 @@
getTree(); getTree();
step.value = 0; step.value = 0;
radio.value = 0 radio.value = 0
radio.value === 0 && getStatisis(param);
SaveBol.value = false; SaveBol.value = false;
currentTenant.value = null; currentTenant.value = null;
editRowIndex.value = -1; editRowIndex.value = -1;
...@@ -349,15 +350,19 @@ ...@@ -349,15 +350,19 @@
} else if (radio.value === 0) { } else if (radio.value === 0) {
// chooseIdea('BORROWER'); // chooseIdea('BORROWER');
distributeLoan(currentTenant.value, { const param = {}
borrowerName: pageParams.value.borrowerName, if (lonsArr.value && lonsArr.value.length) {
batchCode: pageParams.value.batchCode, param['loanIds'] = lonsArr.value.map(v => v.id)
borrowerIdCard: pageParams.value.idCard, } else {
borrowerPhone: pageParams.value.borrowerPhone, param['borrowerName'] = pageParams.value.borrowerName
commissionAmount: pageParams.value.commissionAmount, param['batchCode'] = pageParams.value.batchCode
remainingAmount: pageParams.value.remainingAmount, param['borrowerIdCard'] = pageParams.value.idCard
tenantId: null, param['borrowerPhone'] = pageParams.value.borrowerPhone
}).then((res) => { param['commissionAmount'] = pageParams.value.commissionAmount
param['remainingAmount'] = pageParams.value.remainingAmount
param['tenantId'] = null
}
distributeLoan(currentTenant.value, param).then((res) => {
if (res.success) { if (res.success) {
ElMessage.success({ ElMessage.success({
message: '分派成功', message: '分派成功',
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
width: 80, width: 80,
}, },
{ {
field: 'cpe.name', field: 'cpe.username',
title: 'CPE', title: 'CPE',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 60, width: 60,
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
let param = { let param = {
} }
if (ids.length > 0) { if (ids.length > 0) {
param['ids'] = ids param['loanIds'] = ids
} else { } else {
param = {...curParam.value} param = {...curParam.value}
} }
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
width: 80, width: 80,
}, },
{ {
field: 'cpe.name', field: 'cpe.username',
title: 'CPE', title: 'CPE',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 60, width: 60,
......
...@@ -244,6 +244,9 @@ ...@@ -244,6 +244,9 @@
const dialogImageUrl = ref(''); const dialogImageUrl = ref('');
const dialogVisible = ref(false); const dialogVisible = ref(false);
const emits = defineEmits(['success']); const emits = defineEmits(['success']);
const props = defineProps({
mergerCase: String,
});
const tabObj = [ const tabObj = [
{ {
label: '本人可联', label: '本人可联',
...@@ -408,6 +411,11 @@ ...@@ -408,6 +411,11 @@
}; };
const config = reactive({ const config = reactive({
minHeight: 200, minHeight: 200,
checkboxConfig: {
checkMethod: ({ row }) => {
return props.mergerCase !== 'Y'
}
},
columns: [ columns: [
{ type: 'checkbox', width: 50 }, { type: 'checkbox', width: 50 },
{ {
......
...@@ -103,6 +103,9 @@ ...@@ -103,6 +103,9 @@
remainingAmount: 0, remainingAmount: 0,
applyDate: dayjs().format('YYYY-MM-DD HH:mm:ss'), applyDate: dayjs().format('YYYY-MM-DD HH:mm:ss'),
}); });
const props = defineProps({
mergerCase: String,
});
const selectdList = ref([]); const selectdList = ref([]);
const onCheckboxChange = (row) => { const onCheckboxChange = (row) => {
selectdList.value = row.records; selectdList.value = row.records;
...@@ -153,6 +156,11 @@ ...@@ -153,6 +156,11 @@
}, },
]; ];
const config = reactive({ const config = reactive({
checkboxConfig: {
checkMethod: ({ row }) => {
return props.mergerCase !== 'Y'
}
},
minHeight: 200, minHeight: 200,
columns: [ columns: [
{ type: 'checkbox', title: '', width: '40px' }, { type: 'checkbox', title: '', width: '40px' },
......
...@@ -211,6 +211,9 @@ ...@@ -211,6 +211,9 @@
files: [], files: [],
realRepayTime: dayjs().format('YYYY-MM-DD HH:mm:ss'), realRepayTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
}); });
const props = defineProps({
mergerCase: String,
});
const radio = ref(0); const radio = ref(0);
const validaterealRepayAmount = (rule, value, callback) => { const validaterealRepayAmount = (rule, value, callback) => {
if ( if (
......
...@@ -159,6 +159,9 @@ ...@@ -159,6 +159,9 @@
firstApplyDate: dayjs().format('YYYY-MM-DD'), firstApplyDate: dayjs().format('YYYY-MM-DD'),
effectiveTime: dayjs().format('YYYY-MM-DD HH:mm:ss'), effectiveTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
}); });
const props = defineProps({
mergerCase: String,
});
const minAmount = ref(0); const minAmount = ref(0);
const currentDetail = ref({}); const currentDetail = ref({});
const onHide = (done) => { const onHide = (done) => {
...@@ -349,6 +352,11 @@ ...@@ -349,6 +352,11 @@
changePeriod(); changePeriod();
}; };
const config = reactive({ const config = reactive({
checkboxConfig: {
checkMethod: ({ row }) => {
return props.mergerCase !== 'Y'
}
},
minHeight: 200, minHeight: 200,
columns: [ columns: [
{ type: 'checkbox', width: 50 }, { type: 'checkbox', width: 50 },
......
...@@ -268,10 +268,10 @@ ...@@ -268,10 +268,10 @@
</vxe-tabs> </vxe-tabs>
</div> </div>
<repairModal ref="repairModalRef"></repairModal> <repairModal ref="repairModalRef"></repairModal>
<returnModal ref="returnModalRef" @success="query('还款')"></returnModal> <returnModal ref="returnModalRef" @success="query('还款')" :mergerCase="detail?.manageOrg?.mergerCase"></returnModal>
<reduceDrawer ref="reduceDrawerRef" @success="query('减免')"></reduceDrawer> <reduceDrawer ref="reduceDrawerRef" @success="query('减免')" :mergerCase="detail?.manageOrg?.mergerCase"></reduceDrawer>
<splitDrawer ref="splitDrawerRef" @success="query('分期')"></splitDrawer> <splitDrawer ref="splitDrawerRef" @success="query('分期')" :mergerCase="detail?.manageOrg?.mergerCase"></splitDrawer>
<callDrawer ref="callDrawerRef" @success="query('跟进')"></callDrawer> <callDrawer ref="callDrawerRef" @success="query('跟进')" :mergerCase="detail?.manageOrg?.mergerCase"></callDrawer>
<el-image-viewer :url-list="srcList" v-if="RefImage" @close="RefImage = false" /> <el-image-viewer :url-list="srcList" v-if="RefImage" @close="RefImage = false" />
</div> </div>
</template> </template>
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
let param = { let param = {
} }
if (ids.length > 0) { if (ids.length > 0) {
param['ids'] = ids param['loanIds'] = ids
} else { } else {
param = {...curParam.value} param = {...curParam.value}
} }
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
width: 80, width: 80,
}, },
{ {
field: 'cpe.name', field: 'cpe.username',
title: 'CPE', title: 'CPE',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 60, width: 60,
......
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
<el-form-item class="w-full" label="导入编号:" prop="code"> <el-form-item class="w-full" label="导入编号:" prop="code">
<el-input v-model="form.code" placeholder="请输入" style="width: 100%" /> <el-input v-model="form.code" placeholder="请输入" style="width: 100%" />
</el-form-item> </el-form-item>
<el-form-item class="w-full" label="委案合同:" prop="contractNo"> <!-- <el-form-item class="w-full" label="委案合同:" prop="contractNo">
<el-input v-model="form.contractNo" placeholder="请输入" style="width: 100%" /> <el-input v-model="form.contractNo" placeholder="请输入" style="width: 100%" />
</el-form-item> </el-form-item> -->
<el-form-item class="w-full" label="折扣:" prop="discount"> <el-form-item class="w-full" label="折扣:" prop="discount">
<el-input v-model="form.discount" placeholder="请输入" style="width: 100%" /> <el-input v-model="form.discount" placeholder="请输入" style="width: 100%" />
</el-form-item> </el-form-item>
...@@ -140,12 +140,12 @@ ...@@ -140,12 +140,12 @@
showOverflow: 'tooltip', showOverflow: 'tooltip',
search: { el: 'input', props: { clearable: true } }, search: { el: 'input', props: { clearable: true } },
}, },
{ // {
field: 'contractNo', // field: 'contractNo',
title: '委案合同', // title: '委案合同',
showOverflow: 'tooltip', // showOverflow: 'tooltip',
search: { el: 'input', props: { clearable: true } }, // search: { el: 'input', props: { clearable: true } },
}, // },
{ {
field: 'code', field: 'code',
title: '资产类型', title: '资产类型',
......
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