详情和基本业务

This commit is contained in:
liuxi 2024-12-25 11:05:40 +08:00
parent 3d91081b1f
commit ba1546b26b
6 changed files with 87 additions and 18 deletions

View File

@ -94,8 +94,8 @@
<el-tab-pane>
<span slot="label"><i v-if="repaymentObj.type != undefined" class="el-icon-s-flag"></i> 还款计划</span>
<div class="case-repayment-des flex-column mb-16 p-16 border-radius-8">
<div class="flex-column justify-content-between">
<div class="case-repayment-des flex-column mb-16 p-16 border-radius-8" style="min-height: 200px;">
<div v-if="repaymentObj.type != undefined" class="flex-column justify-content-between">
<el-form ref="ruleFormRepayment"
label-width="130px">
<el-form-item label="还款方式" prop="type">
@ -197,19 +197,19 @@
</el-tab-pane>
<el-tab-pane>
<span slot="label"><i class="el-icon-s-flag"></i> 回款凭证</span>
<span class="f16">总计待还金额14,289.86总计已还金额0</span>
<el-table :data="tableData2" :height="300" >
<span slot="label"><i v-if="ProofList.length > 0" class="el-icon-s-flag"></i> 回款凭证</span>
<span class="f16">总计待还金额{{ProofStatistics.total}}总计已还金额{{ProofStatistics.payback}}</span>
<el-table :data="ProofList" :height="300" >
<el-table-column type="index" label="序号" width="55"></el-table-column>
<el-table-column prop="A" label="凭证时间" show-overflow-tooltip ></el-table-column>
<el-table-column prop="B" label="凭证金额" show-overflow-tooltip ></el-table-column>
<el-table-column prop="C" label="上传者" show-overflow-tooltip ></el-table-column>
<el-table-column prop="D" label="上传时间" show-overflow-tooltip ></el-table-column>
<el-table-column prop="E" label="备注信息" show-overflow-tooltip ></el-table-column>
<el-table-column prop="paybackTime" label="凭证时间" show-overflow-tooltip ></el-table-column>
<el-table-column prop="amount" label="凭证金额" show-overflow-tooltip ></el-table-column>
<el-table-column prop="uploaderName" label="上传者" show-overflow-tooltip ></el-table-column>
<el-table-column prop="createAt" label="上传时间" show-overflow-tooltip ></el-table-column>
<el-table-column prop="remark" label="备注信息" show-overflow-tooltip ></el-table-column>
<el-table-column label="操作" width="170">
<template slot-scope="scope">
<div class="flex-row align-items-center">
<el-button size="mini" @click="handleCaseAllocation(scope)">查看</el-button>
<el-button size="mini" @click="handleCaseShow(scope)">查看</el-button>
</div>
</template>
</el-table-column>
@ -380,6 +380,8 @@ import { subtract } from "lodash";
//
repaymentObj:{},
RepaymentOptions:[{label:'一次性还款',value:'ALL'},{label:'全部分期',value:'STAGES'},{label:'部分先还加分期',value:'MIX'},{label:'其他',value:'OTHER'}],
//
ProofList:[],
}
},
@ -408,7 +410,13 @@ import { subtract } from "lodash";
return '-'
},
handleCaseShow(scope,filelist){
this.fileDialog = {showfile:scope.row,filelist:filelist}
if(filelist == undefined){
this.fileDialog = {showfile:{url:scope.row.proofUrl},filelist:[]}
}
else
{
this.fileDialog = {showfile:scope.row,filelist:filelist}
}
},
debtorEntityCardNo(datalist,len){
let datacardno=''
@ -446,7 +454,9 @@ import { subtract } from "lodash";
})
this.getplanlist()
this.getProofList()
},
//
getplanlist(){
console.log(111,{caseId:this.caseId})
api.getcase_payback_planlist({caseId:this.caseId}).then(res => {
@ -454,6 +464,21 @@ import { subtract } from "lodash";
if(res.length > 0 ){this.repaymentObj = res[0]}
}
})
},
//
getProofList(){
api.gettraceProof_list({caseId:this.caseId}).then(res => {
if(!res.code){
this.ProofList = res
}
})
api.gettraceProof_statistics({caseId:this.caseId}).then(res => {
if(!res.code){
this.ProofStatistics = res
}
})
},
//
inputChange(){

View File

@ -13,7 +13,7 @@
<el-form ref="ruleForm"
:model="deptInfo"
:rules="rulesClient"
label-width="140px"
label-width="100px"
class="demo-ruleForm">
<el-row type="flex" align="middle">
<el-col :span="24">
@ -38,6 +38,20 @@
</el-form-item>
</el-col>
</el-row>
<el-row type="flex" align="middle">
<el-col :span="24">
<el-form-item label="区域负责人" prop="remark">
<el-select v-model="deptInfo.directorIds" multiple placeholder="请选择" class="width100" :multiple-limit="5">
<el-option
v-for="item in usersOptions"
:key="item.id"
:label="item.showName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
@ -70,6 +84,7 @@ import systemManageApi from "@/services/systemManage";
name:'',//
remark:'',//
companyId:this.$store.state.userinfo.companyId,//id 0
directorIds:[]
},
rulesClient: {
name: [
@ -78,7 +93,8 @@ import systemManageApi from "@/services/systemManage";
remark: [
{ required: false, message: '请输入区域描述', trigger: 'change',},
],
}
},
usersOptions:[]
};
},
@ -87,6 +103,7 @@ import systemManageApi from "@/services/systemManage";
if(Object.keys(this.addOrEditAreaConfig.data).length>0){
this.getDeptById()
}
this.getUserList()
},
methods: {
// id
@ -99,11 +116,20 @@ import systemManageApi from "@/services/systemManage";
this.deptInfo = {
name:res.name,
remark:res.remark,
companyId:res.companyId
companyId:res.companyId,
directorIds:res.directorId
}
}
})
},
getUserList(val){
if(val!=undefined){this.queryData.current = val}
systemManageApi.getUserList({current: 1,size: 500,}).then(res => {
if (!res.code) {
this.usersOptions = res.records;
}
})
},
handleSubmit(){
if(!this.$clickThrottle()) { return }
let _this=this;
@ -112,6 +138,7 @@ import systemManageApi from "@/services/systemManage";
if(Object.keys(this.addOrEditAreaConfig.data).length>0)
{
_this.deptInfo.id = this.addOrEditAreaConfig.data.id
_this.deptInfo.directorId ='['+ this.deptInfo.directorIds.toString()+']'
systemManageApi.updateDeptById(_this.deptInfo).then(res => {
this.$message({
showClose: true,

View File

@ -13,7 +13,7 @@
<el-form ref="ruleForm"
:model="deptInfo"
:rules="rulesClient"
label-width="140px"
label-width="100px"
class="demo-ruleForm">
<el-row type="flex" align="middle">
<el-col :span="24">
@ -71,6 +71,7 @@ import systemManageApi from "@/services/systemManage";
name:'',//
remark:'',//
companyId:this.$store.state.userinfo.companyId,//id 0
directorId:[]
},
rulesClient: {
name: [
@ -79,7 +80,8 @@ import systemManageApi from "@/services/systemManage";
remark: [
{ required: false, message: '请输入部门描述', trigger: 'change',},
],
}
},
usersOptions:[]
};
},
@ -88,6 +90,7 @@ import systemManageApi from "@/services/systemManage";
if(Object.keys(this.addOrEditDeptConfig.data).length>0 && this.addOrEditDeptConfig.data.pid != 0){
this.getDeptById()
}
this.getUserList()
},
methods: {
// id
@ -105,6 +108,14 @@ import systemManageApi from "@/services/systemManage";
}
})
},
getUserList(val){
if(val!=undefined){this.queryData.current = val}
systemManageApi.getUserList({current: 1,size: 500,}).then(res => {
if (!res.code) {
this.usersOptions = res.records;
}
})
},
handleSubmit(){
if(!this.$clickThrottle()) { return }
let _this=this;

View File

@ -13,7 +13,7 @@
<el-form ref="ruleForm"
:model="deptInfo"
:rules="rulesClient"
label-width="140px"
label-width="100px"
class="demo-ruleForm">
<el-row type="flex" align="middle">
<el-col :span="24">

View File

@ -81,6 +81,7 @@
return {
tableData:[],
queryData: {
pid:'0',
name:'',
current: 1,
size: 10,

View File

@ -116,6 +116,11 @@ const caseManagementApi = {
gettraceProof_create: data => {
return service.service.post(`${apiAdmin}api/trace/traceProof/create`, data)
},
// 统计总金额
gettraceProof_statistics: data => {
return service.service.post(`${apiAdmin}api/trace/traceProof/statistics`, data)
},