2 lines
4.5 KiB
JavaScript
Raw Normal View History

2025-06-02 21:34:56 +08:00
import{f as e}from"./finished-BsiARIvQ.js";import{g as a,f as s}from"./definition-DXmD8XrJ.js";import{B as l}from"./index-DAvuUjgd.js";import"./vue-treeselect-DOtaeHu9.js";import{_ as t,c as o,e as i,w as n,j as d,f as c,I as r,J as m,m as f,o as u,h as p,B as h,i as b}from"./index-C-c3zR6K.js";const k={class:"app-container"},I={class:"block"},y={style:{"font-weight":"700"}};const _=t({name:"Record",components:{BpmnViewer:l},props:{},data:()=>({flowData:{},activeName:"1",queryParams:{},loading:!0,flowRecordList:[],taskForm:{multiple:!1,comment:"",procInsId:"",instanceId:"",deployId:"",taskId:"",procDefId:""}}),created(){this.taskForm.deployId=this.$route.query&&this.$route.query.deployId,this.taskForm.taskId=this.$route.query&&this.$route.query.taskId,this.taskForm.procInsId=this.$route.query&&this.$route.query.procInsId,this.processVariables(this.taskForm.taskId),this.getFlowRecordList(this.taskForm.procInsId,this.taskForm.deployId)},methods:{handleClick(e,a){"2"===e.index&&s({procInsId:this.taskForm.procInsId,deployId:this.taskForm.deployId}).then((e=>{this.flowData=e.data}))},setIcon:e=>e?"el-icon-check":"el-icon-time",setColor:e=>e?"#2bc418":"#b3bdbb",getFlowRecordList(a,s){const l=this;e({procInsId:a,deployId:s}).then((e=>{l.flowRecordList=e.data.flowList})).catch((e=>{this.goBack()}))},processVariables(e){e&&a(e).then((e=>{this.$nextTick((()=>{this.$refs.vFormRef.setFormJson(e.data.formJson),this.$nextTick((()=>{this.$refs.vFormRef.setFormData(e.data),this.$nextTick((()=>{this.$refs.vFormRef.disableForm()}))}))}))}))},goBack(){const e={path:"/task/process",query:{t:Date.now()}};this.$tab.closeOpenPage(e)}}},[["render",function(e,a,s,l,t,_){const F=d("el-button"),g=d("v-form-render"),w=d("el-col"),v=d("el-tab-pane"),$=d("el-tag"),R=d("el-descriptions-item"),T=d("el-descriptions"),x=d("el-card"),q=d("el-timeline-item"),C=d("el-timeline"),D=d("bpmn-viewer"),j=d("el-tabs");return u(),o("div",k,[i(x,{class:"box-card"},{header:n((()=>[a[2]||(a[2]=c("span",{class:"el-icon-document"},"已发任务",-1)),i(F,{style:{float:"right"},size:"small",type:"danger",onClick:_.goBack},{default:n((()=>a[1]||(a[1]=[f("关闭")]))),_:1},8,["onClick"])])),default:n((()=>[i(j,{"tab-position":"top",modelValue:t.activeName,"onUpdate:modelValue":a[0]||(a[0]=e=>t.activeName=e),onTabClick:_.handleClick},{default:n((()=>[i(v,{label:"表单信息",name:"1"},{default:n((()=>[i(w,{span:16,offset:4},{default:n((()=>[i(g,{ref:"vFormRef"},null,512)])),_:1})])),_:1}),i(v,{label:"流转记录",name:"2"},{default:n((()=>[i(w,{span:16,offset:4},{default:n((()=>[c("div",I,[i(C,null,{default:n((()=>[(u(!0),o(r,null,m(t.flowRecordList,((e,s)=>(u(),p(q,{key:s,icon:_.setIcon(e.finishTime),color:_.setColor(e.finishTime)},{default:n((()=>[c("p",y,h(e.taskName),1),i(x,{"body-style":{padding:"10px"}},{default:n((()=>[i(T,{class:"margin-top",column:1,size:"small",border:""},{default:n((()=>[e.assigneeName?(u(),p(R,{key:0,"label-class-name":"my-label"},{label:n((()=>a[3]||(a[3]=[c("i",{class:"el-icon-user"},null,-1),f("办理人")]))),default:n((()=>[f(" "+h(e.assigneeName)+" ",1),i($,{type:"info",size:"small"},{default:n((()=>[f(h(e.deptName),1)])),_:2},1024)])),_:2},1024)):b("",!0),e.candidate?(u(),p(R,{key:1,"label-class-name":"my-label"},{label:n((()=>a[4]||(a[4]=[c("i",{class:"el-icon-user"},null,-1),f("候选办理")]))),default:n((()=>[f(" "+h(e.candidate),1)])),_:2},1024)):b("",!0),i(R,{"label-class-name":"my-label"},{label:n((()=>a[5]||(a[5]=[c("i",{class:"el-icon-date"},null,-1),f("接收时间")]))),default:n((()=>[f(" "+h(e.createTime),1)])),_:2},1024),e.finishTime?(u(),p(R,{key:2,"label-class-name":"my-label"},{label:n((()=>a[6]||(a[6]=[c("i",{class:"el-icon-date"},null,-1),f("处理时间")]))),default:n((()=>[f(" "+h(e.finishTime),1)])),_:2},1024)):b("",!0),e.duration?(u(),p(R,{key:3,"label-class-name":"my-label"},{label:n((()=>a[7]||(a[7]=[c("i",{class:"el-icon-time"},null,-1),f("耗时")]))),default:n((()=>[f(" "+h(e.duration),1)])),_:2},1024)):b("",!0),e.comment?(u(),p(R,{key:4,"label-class-name":"my-label"},{label:n((()=>a[8]||(a[8]=[c("i",{clas