2024-01-12 18:15:12 +08:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-dialog title="案件流程" :visible="processVisable" @close="cancel" center :distroy-on-close="true">
|
|
|
|
|
<div>
|
|
|
|
|
<!-- <el-steps class="steps" :active="caseStatus">
|
|
|
|
|
<el-step :title="item.caseNodeName || item.content" v-for="(item,index) in pageData.allCasenode" :key="index" :description="(item.createNickName || '') + (item.caseNodeTime || '')+(item.nextRoleName || '')"></el-step>
|
|
|
|
|
|
|
|
|
|
</el-steps> -->
|
2024-01-18 15:49:33 +08:00
|
|
|
<el-steps :active="finishCasenode.length">
|
|
|
|
|
<el-step :title="item.content" v-for="(item,index) in finishCasenode" :key="index"></el-step>
|
|
|
|
|
<el-step :title="item.content" v-for="(item,index) in inCasenode" :key="index"></el-step>
|
|
|
|
|
<el-step :title="item.content" v-for="(item,index) in nextCasenode" :key="index"></el-step>
|
|
|
|
|
</el-steps>
|
2024-01-12 18:15:12 +08:00
|
|
|
</div>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="cancel" class="endbutton1"><span>取 消</span></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-01-18 15:49:33 +08:00
|
|
|
import {selectCaseProgress} from '@/api/caseManagement/caseManagement.js'
|
2024-01-12 18:15:12 +08:00
|
|
|
export default {
|
2024-01-18 15:49:33 +08:00
|
|
|
props: ["processVisable","processData","caseFlowNumber"],
|
2024-01-12 18:15:12 +08:00
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
processId:null,
|
|
|
|
|
pageData:{},
|
2024-01-18 15:49:33 +08:00
|
|
|
caseStatus:0,
|
|
|
|
|
finishCasenode:[],
|
|
|
|
|
inCasenode:[],
|
|
|
|
|
nextCasenode:[]
|
|
|
|
|
|
2024-01-12 18:15:12 +08:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
processVisable(val){
|
|
|
|
|
if(val){
|
2024-01-18 15:49:33 +08:00
|
|
|
this.processId = this.caseFlowNumber.id;
|
|
|
|
|
this.selectCaseProgressFn({caseId:this.processId});
|
|
|
|
|
|
2024-01-12 18:15:12 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-18 15:49:33 +08:00
|
|
|
|
2024-01-12 18:15:12 +08:00
|
|
|
methods: {
|
|
|
|
|
cancel() {
|
|
|
|
|
this.$emit("cancelViewProcess");
|
|
|
|
|
},
|
|
|
|
|
selectCaseProgressFn(data){
|
|
|
|
|
selectCaseProgress(data).then(res=>{
|
2024-01-18 15:49:33 +08:00
|
|
|
this.finishCasenode = res.data.data.finishCasenode
|
|
|
|
|
this.inCasenode = res.data.data.inCasenode
|
|
|
|
|
this.nextCasenode = res.data.data.nextCasenode
|
|
|
|
|
|
2024-01-12 18:15:12 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.steps{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-step{
|
|
|
|
|
// width: 150px;
|
|
|
|
|
flex-basis:25% !important;
|
|
|
|
|
margin-right: 20px;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-dialog__body {
|
|
|
|
|
height: 500px !important;
|
|
|
|
|
overflow: auto !important;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
width: 800px;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|