修改案件包和案件管理bug

This commit is contained in:
liuxi 2025-02-13 18:14:14 +08:00
parent 87b52c0f76
commit df9fe48f3d
7 changed files with 54 additions and 20 deletions

View File

@ -13,7 +13,8 @@
<el-table :data="tableData" height="390" > <el-table :data="tableData" height="390" >
<el-table-column prop="amount" label="凭证金额" show-overflow-tooltip > <el-table-column prop="amount" label="凭证金额" show-overflow-tooltip >
<template slot-scope="scope"> <template slot-scope="scope">
<span >{{ scope.row.amount }}</span> <span v-if="scope.row.amount > 0">{{ scope.row.amount }}</span>
<span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="paybackTime" label="还款日期" show-overflow-tooltip ></el-table-column> <el-table-column prop="paybackTime" label="还款日期" show-overflow-tooltip ></el-table-column>

View File

@ -159,10 +159,33 @@ import apipack from "@/services/casePackageManagement";
}, },
// id // id
getByDeptList(){ getByDeptList(){
//
let deptList = []
let userlistmy = []
api.getUserByDeptList({ids:[this.deptId]}).then(res => {
res.forEach(item =>{
userlistmy.push({
id:item.id,
realName:item.realName,
checked:false
})
})
})
deptList.push({
deptId:this.deptId,
name:this.departmentOptions.find(item=>{ return item.id == this.deptId}).name,
count:this.departmentOptions.find(item=>{ return item.id == this.deptId}).count,
checked:false,
values:userlistmy
})
//
api.getDeptList({companyId:this.$store.state.userinfo.companyId,current:1,size:500,pid:this.deptId}).then(res => { api.getDeptList({companyId:this.$store.state.userinfo.companyId,current:1,size:500,pid:this.deptId}).then(res => {
if (!res.code) if (!res.code)
{ {
let deptList = [] // let deptList = []
res.records.forEach(item =>{ res.records.forEach(item =>{
let userlist = [] let userlist = []
api.getUserByDeptList({ids:[item.id]}).then(res => { api.getUserByDeptList({ids:[item.id]}).then(res => {
@ -172,7 +195,7 @@ import apipack from "@/services/casePackageManagement";
id:item.id, id:item.id,
realName:item.realName, realName:item.realName,
checked:false checked:false
}) })
}) })
}) })
@ -185,7 +208,6 @@ import apipack from "@/services/casePackageManagement";
}) })
}) })
this.peopleList = deptList this.peopleList = deptList
} }
}) })
}, },
@ -390,6 +412,6 @@ import apipack from "@/services/casePackageManagement";
margin-bottom:0; margin-bottom:0;
} }
} }
.min-height350{min-height: 350px;} .min-height350{height: 350px;}
.department-dept ::v-deep .el-checkbox__label {color: $color-000000} .department-dept ::v-deep .el-checkbox__label {color: $color-000000}
</style> </style>

View File

@ -519,7 +519,7 @@ export default {
if (filelist == undefined) { if (filelist == undefined) {
// //
this.$fetchApi.viewFullFile({path: scope.row.proofUrl}).then((res) => { this.$fetchApi.viewFullFile({path: scope.row.proofUrl}).then((res) => {
this.fileDialog = {showfile: {url: res}, filelist: []} this.fileDialog = {showfile: {url: scope.row.proofUrl,fullUrl: res}, filelist: []}
}); });
} else { } else {

View File

@ -233,7 +233,9 @@
<el-checkbox-group v-model="selectionData"> <el-checkbox-group v-model="selectionData">
<!-- 此处的label是复选框右边显示的值也是选中后的值如果要一行的数据直接使用row即可 --> <!-- 此处的label是复选框右边显示的值也是选中后的值如果要一行的数据直接使用row即可 -->
<!-- label的内容会显示在页面上需要配合css把label的内容隐藏掉 --> <!-- label的内容会显示在页面上需要配合css把label的内容隐藏掉 -->
<el-checkbox :disabled="scope.row.caseStatus == 0 || scope.row.caseStatus == 1 ? false :true" :key="scope.row.id" :label="scope.row.id"></el-checkbox> <!-- 非自己创建的案件不能删除分配结案 -->
<!-- <el-checkbox :disabled="(scope.row.caseStatus == 0 || scope.row.caseStatus == 1) ? false :true" :key="scope.row.id" :label="scope.row.id"></el-checkbox> -->
<el-checkbox :disabled="(CreateuserId == scope.row.createBy*1) && (scope.row.caseStatus == 0 || scope.row.caseStatus == 1) ? false :true" :key="scope.row.id" :label="scope.row.id"></el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</span> </span>
<span class="f-weight500 color-000 f16">被申请人 <span class="f-weight500 color-000 f16">被申请人
@ -273,7 +275,7 @@
</span> </span>
<span style=" text-align: right;"> <span style=" text-align: right;">
<el-button size="mini" class="case-btn" @click="jumpUrl(`/case-detail?dataKey=casepack&caseId=${scope.row.id}`)">查看详情</el-button> <el-button size="mini" class="case-btn" @click="jumpUrl(`/case-detail?dataKey=casepack&caseId=${scope.row.id}`)">查看详情</el-button>
<el-button size="mini" class="case-btn" @click="handleDelete(scope)">删除</el-button> <el-button size="mini" v-if="CreateuserId == scope.row.createBy*1" class="case-btn" @click="handleDelete(scope)">删除</el-button>
</span> </span>
</div> </div>
<div class="flex-row justify-content-between case-bg"> <div class="flex-row justify-content-between case-bg">
@ -420,7 +422,8 @@ import { values } from "lodash";
addCaseDialog:null,// addCaseDialog:null,//
editCaseDrawer:null,// editCaseDrawer:null,//
caseStatusData:[], caseStatusData:[],
MediateUserList:[] MediateUserList:[],
CreateuserId:''
} }
}, },
@ -439,6 +442,10 @@ import { values } from "lodash";
}, },
created() { created() {
if(JSON.parse(sessionStorage.getItem('userInfo'))){
this.CreateuserId = JSON.parse(sessionStorage.getItem('userInfo')).id
}
if (this.$route.query.pkgName != undefined) { if (this.$route.query.pkgName != undefined) {
this.queryParam.pkgName = this.$route.query.pkgName; this.queryParam.pkgName = this.$route.query.pkgName;
} }
@ -483,7 +490,8 @@ import { values } from "lodash";
handleCheckAllChange(value){ handleCheckAllChange(value){
// this.selectionData = value ? this.enabledDataList.map(el=>el.id) : []; // this.selectionData = value ? this.enabledDataList.map(el=>el.id) : [];
// this.indeterminate = false; // this.indeterminate = false;
let chooseData = this.enabledDataList.filter(el=>(el.caseStatus == 0 || el.caseStatus == 1)) // (CreateuserId == scope.row.createBy*1) && (scope.row.caseStatus == 0 || scope.row.caseStatus == 1)
let chooseData = this.enabledDataList.filter(el=>((this.CreateuserId == el.createBy*1)&&(el.caseStatus == 0 || el.caseStatus == 1)))
// console.log(chooseData,'chooseData') // console.log(chooseData,'chooseData')
this.selectionData = value ? chooseData.map(el=>el.id) : []; this.selectionData = value ? chooseData.map(el=>el.id) : [];
this.indeterminate = false; this.indeterminate = false;

View File

@ -287,7 +287,7 @@ import api from "@/services/casePackageManagement";
}).then(() => { }).then(() => {
if(!this.$clickThrottle()) { return }// if(!this.$clickThrottle()) { return }//
api.postpkgquash({id:scope.row.id}).then((res) => { api.postpkgquash({id:scope.row.id}).then((res) => {
this.$message.success("撤回分案成功"); this.$message.success("未触达案件撤回分案成功");
this.getCaseInfoList(1) this.getCaseInfoList(1)
}); });

View File

@ -51,7 +51,7 @@
<!-- table --> <!-- table -->
<div class="pt-8"> <div class="pt-8">
<div class="height-56 flex-row align-items-center justify-content-between"> <div class="height-56 flex-row align-items-center justify-content-between">
<div class="f18 color-text-primary">还款登记列表</div> <div class="f18 color-text-primary">还款凭证登记列表</div>
<div class="flex-row"> <div class="flex-row">
</div> </div>
@ -72,8 +72,12 @@
<!-- <el-table-column prop="deadline" label="还款截止日期" show-overflow-tooltip ></el-table-column> <!-- <el-table-column prop="deadline" label="还款截止日期" show-overflow-tooltip ></el-table-column>
<el-table-column prop="payableAmount" label="应还金额" show-overflow-tooltip ></el-table-column> --> <el-table-column prop="payableAmount" label="应还金额" show-overflow-tooltip ></el-table-column> -->
<el-table-column prop="actualPayDate" label="实际还款日期" show-overflow-tooltip ></el-table-column> <el-table-column prop="actualPayDate" label="实际还款日期" show-overflow-tooltip ></el-table-column>
<el-table-column prop="amount" label="实际还款金额" show-overflow-tooltip ></el-table-column> <el-table-column prop="amount" label="实际还款金额" show-overflow-tooltip >
<template slot-scope="scope">
<span v-if="scope.row.amount > 0">{{ scope.row.amount }}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="状态" show-overflow-tooltip > <el-table-column label="状态" show-overflow-tooltip >
<template slot-scope="scope"> <template slot-scope="scope">
<span > <span >
@ -120,6 +124,8 @@
<RepaymentEffectDialog v-if="EffectDialog" :EffectDialog.sync="EffectDialog" /> <RepaymentEffectDialog v-if="EffectDialog" :EffectDialog.sync="EffectDialog" />
</div> </div>
</template> </template>
<script> <script>
import api from "@/services/eventTracingApi"; import api from "@/services/eventTracingApi";
@ -217,13 +223,10 @@ import caseapi from "@/services/caseManagement";
}).catch(() => {}); }).catch(() => {});
}, },
handleCaseShow(scope){ handleCaseShow(scope){
// //
this.$fetchApi.viewFullFile({path: scope.row.proofUrl}).then((res) => { this.$fetchApi.viewFullFile({path: scope.row.proofUrl}).then((res) => {
this.fileDialog = {showfile: {url: res}, filelist: []} this.fileDialog = {showfile: {url: scope.row.proofUrl,fullUrl: res}, filelist: []}
}); });
// this.fileDialog = {showfile:{url:scope.row.proofUrl},filelist:[]}
}, },
} }
}; };

View File

@ -70,7 +70,7 @@
<span class="color-86909C mt-8">上传时间<a>{{ proofitem.createAt }}</a></span> <span class="color-86909C mt-8">上传时间<a>{{ proofitem.createAt }}</a></span>
</div> </div>
</div> </div>
<span class="color-86909C mt-8 pt12-pb10">凭证金额<a>{{ proofitem.amount }}</a>{{ proofitem.amount != null ? '元' : '' }}</span> <span class="color-86909C mt-8 pt12-pb10">凭证金额<a>{{ (proofitem.amount == 0 ?'' : proofitem.amount) }}</a>{{ (proofitem.amount != null&&proofitem.amount != 0) ? '元' : '' }}</span>
<span class="color-86909C mt-8 pt12-pb10 bgColor-F7F8FA">还款日期<a>{{ proofitem.paybackTime | formaDate('yyyy-MM-dd hh:mm:ss') }}</a></span> <span class="color-86909C mt-8 pt12-pb10 bgColor-F7F8FA">还款日期<a>{{ proofitem.paybackTime | formaDate('yyyy-MM-dd hh:mm:ss') }}</a></span>
<span class="color-86909C mt-8 pt12-pb10">备注说明<a>{{ proofitem.remark }}</a></span> <span class="color-86909C mt-8 pt12-pb10">备注说明<a>{{ proofitem.remark }}</a></span>
</div> </div>
@ -194,7 +194,7 @@ import api from "@/services/caseManagement";
rulesClientRepayment:{ rulesClientRepayment:{
amount: [ amount: [
{ required: true, message: '请输入还款金额', trigger: 'change',}, { required: true, message: '请输入还款金额', trigger: 'change',},
{ pattern: /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0.\d{1,2}$/, message: '请输入2位小数金额', trigger: ['blur', 'change']} { pattern: /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0.\d{1,2}$/, message: '请输入大于0且最多2位小数金额', trigger: ['blur', 'change']}
], ],
paybackTime: [ paybackTime: [
{ required: true, message: '请选择还款日期', trigger: 'change',}, { required: true, message: '请选择还款日期', trigger: 'change',},