import{U as e,u as t,aT as s,V as i,$ as o,a2 as a,aU as r,f as n,aV as l,aW as c,aX as p,ad as f,n as h,b as d,K as m,s as u,R as g,t as y,c as v,w,i as k,o as T,C as b,T as I,y as x,v as j,B as C,z as L,A as _,D as B,E as U,F as S,a1 as F,x as R,G as A,a6 as N,b3 as E,I as O}from"./index-CjAEFiRr.js";import{_ as D}from"./u-tabs.CFJr6vcM.js";import{r as J}from"./uni-app.es.B7vfKfHW.js";import{_ as V}from"./u-sticky.5bc2EmSz.js";import{_ as H}from"./u-avatar.Dc3KZq3u.js";import{d as $}from"./index.CVaXlTcS.js";import{_ as P}from"./u-divider.DZMFXY3Q.js";import{_ as M}from"./mescroll-body.BdtpEwOJ.js";import{_ as q}from"./u-icon.Bdk6OXys.js";import{_ as z}from"./u-button.Bs5w_Ihx.js";import{_ as W}from"./u-select.DdCOsaQn.js";import{_ as G}from"./u-action-sheet.DIeUq5Y8.js";import{C as K,f as X,r as Y,R as Z,e as Q,i as ee,U as te,a as se}from"./emoji.CGGhSWsn.js";import{F as ie,R as oe,S as ae,C as re,a as ne,T as le,c as ce,b as pe,A as fe,d as he}from"./flowBefore.uDWckKXR.js";import{P as de,R as me}from"./flowLaunch.DkMHnfWW.js";import{u as ue,c as ge}from"./visualDev.Bju01K-E.js";import{b as ye,c as ve,d as we}from"./flowEngine.CFfXrYv6.js";import{r as ke}from"./resources.DipqUmnN.js";import{c as Te}from"./form.I6rEmrwe.js";import{E as be}from"./ErrorForm.BIqPh0Zu.js";import{M as Ie}from"./mescroll-mixins.BEj-1K4N.js";import{_ as xe}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./u-badge.CO554WUg.js";import"./u-loading.oQtM-vDp.js";import"./u-popup.BpOc_7Q-.js";import"./u-line.D29n5VKD.js";import"./u-input.e-CrUmDW.js";import"./emitter.DrjJCwnj.js";import"./u-upload.B8cJRaGh.js";import"./uni-icons.CjCLRkS2.js";import"./MultSelect.DRFDb3B_.js";import"./u-search.D_t95liS.js";import"./u-checkbox.CPHYLk7E.js";import"./u-checkbox-group.BxMwIKUo.js";import"./u-radio-group.CBfCD4M9.js";import"./mp-html.D6ksxZtu.js";import"./u-tag.C1Zw7u1k.js";import"./index.D8GTmU58.js";import"./index.D2E5tVtS.js";import"./u-form.D2RBHR1Z.js";import"./index.DYaC-WlV.js";import"./index.DanWZBJ4.js";import"./ly-tree.D6ET1lmN.js";import"./ly-checkbox.Cx08YYAW.js";import"./index.j2qmmoDl.js";import"./index.UsdIJWn2.js";import"./base.B073zwfT.js";import"./index.Da0tu58y.js";import"./index.BGwTQ2Yj.js";import"./order.BTmDDzQc.js";const je=xe({mixins:[Ie],components:{CandidateForm:K,childForm:Te,flowInfo:X,records:Y,RecordSummary:Z,ErrorForm:be},data:()=>({emojiList:Q,downOption:{use:!0,auto:!0},upOption:{page:{num:0,size:20,time:null},empty:{use:!0,icon:ke.message.nodata,tip:"暂无数据",fixed:!0,top:"300rpx"},textNoMore:"没有更多数据"},isComment:!1,isSummary:!1,show:!1,config:{},currentView:"",formData:{},flowTaskInfo:{},flowFormInfo:{},flowTemplateInfo:{},flowTaskNodeList:[],flowTemplateJson:[],recordList:[],properties:{},tabIndex:0,tabBars:[{name:"表单信息",id:0},{name:"流程信息",id:1},{name:"流转记录",id:2}],tablist:[],flowStatus:"",stepIndex:0,btnLoading:!1,eventType:"",commentList:[],processId:"",candidateList:[],summaryType:0,tabsName:"表单信息",title:"",branchList:[],candidateType:3,countersignOver:!1,selectflowUrgent:{extra:"0",label:"普通",value:1},showFlowUrgent:!1,defaultValue:[0],flowUrgent:1,flowUrgentList:[{label:"普通",color:"#409EFF",bgColor:"#e5f3fe",value:1,extra:"0"},{label:"重要",color:"#E6A23C",bgColor:"#fef6e5",value:2,extra:"1"},{label:"紧急",color:"#F56C6C",bgColor:"#fee5e5",value:3,extra:"2"}],showErrorForm:!1,showAction:!1,actionList:[],rejectList:[],rejectStep:"",key:+new Date,shortLink:!1}),computed:{baseURL(){return this.define.baseURL}},onLoad(i){if(!i.config)return this.goBack();if(this.config=JSON.parse(this.jnpf.base64.decode(i.config)),e("operate",(e=>{this[e.eventType+"Handle"](e)})),this.loading=!0,i.token){this.shortLink=!0;const e=t();e.setToken(""),e.setToken(i.token);let o={id:this.config.processId,flowId:this.config.flowId,opType:1==this.config.type?0:2==this.config.type?1:this.config.type,taskNodeId:this.config.taskNodeId,taskId:this.config.taskOperatorId,hideCancelBtn:!0,status:this.config.status};2==this.config.type?s(this.config.taskOperatorId).then((e=>{e.data&&e.data.isCheck&&(o.opType=3),this.config=o,this.init()})).catch((e=>{})):(this.config=o,this.init())}else this.init(),this.processId=this.config.id,("-1"!==this.config.opType||"-1"==this.config.opType&&3==this.config.status)&&setTimeout((()=>{this.tabIndex=0}),0)},onShow(){i("comment"),e("comment",(e=>{this.commentList=[],this.current=0,this.addComment(e)})),o("initCollapse")},onUnload(){i("operate"),i("refresh"),i("comment")},methods:{getTabBars(){let e=this.tabBars;this.isSummary&&e.push({name:"审批汇总",id:3}),this.isComment&&e.push({name:"流程评论",id:4}),this.tablist=e},handleCodeGeneration(t){this.config=t,this.init(this.config),e("operate",(e=>{this[e.eventType+"Handle"](e)})),e("comment",(e=>{this.commentList=[],this.current=0,this.addComment(e)})),("-1"!==this.config.opType||"-1"==this.config.opType&&3==this.config.status)&&setTimeout((()=>{this.tabIndex=0}),0),this.processId=this.config.id,a({title:this.config.fullName}),this.key=+new Date},doPreviewImage(e){let t;this.commentList.forEach((e=>{e.image.length>0&&(t=e.image.map((e=>this.baseURL+e.url)))})),r({urls:t,current:e,success:()=>{},fail:()=>{n({title:"预览图片失败",icon:"none"})}})},openFile(e){l("annex",e.fileId).then((t=>{window.location.href=this.baseURL+t.data.url+"&name="+e.name}))},previewFile(e){let t=e.url;c({url:this.baseURL+t,success:e=>{var t=e.tempFilePath;p({filePath:encodeURI(t),success:e=>{}})}})},swiperChange(e){this.tabIndex=e.detail.current,this.tabsName=this.tabBars[this.tabIndex].name},upCallback(e){let t={currentPage:e.num,pageSize:e.size,sort:"desc",sidx:"",taskId:this.processId};ye(t,{load:1==e.num}).then((t=>{this.mescroll.endSuccess(t.data.list.length),1==e.num&&(this.commentList=[]);const s=t.data.list.map((e=>(e.image=JSON.parse(e.image),e.file=JSON.parse(e.file),e.text=this.replaceEmoji(e.text),e)));this.commentList=this.commentList.concat(s)})).catch((()=>{this.mescroll.endErr()}))},replaceEmoji(e){if(!e)return"";let t=e.replace(/\[([^(\]|\[)]*)\]/g,(e=>"jnpfjnpf"+e+"jnpfjnpf")).split(/jnpfjnpfjnpfjnpf|jnpfjnpf/g);t=t.filter((e=>e));let s=[];for(let i=0;i<t.length;i++){let e={content:t[i],type:"emjio"};if(/\[([^(\]|\[)]*)\]/.test(t[i])){let s="";for(let e=0;e<this.emojiList.length;e++){let o=this.emojiList[e];if(o.alt==t[i]){s=this.getEmojiUrl(o.url);break}}e={content:s,type:"emjio"}}else e={content:t[i],type:"text"};s.push(e)}return s},getEmojiUrl:e=>ee[e.replace(".","")],openReplyText(e){f({content:e,showCancel:!1,success:e=>{}})},handleReply(e,t){this.goWriteComment(e)},goWriteComment(e){let t={taskId:this.processId};e&&(t.replyId=e),t=encodeURIComponent(JSON.stringify(t)),h({url:"/pages/workFlow/comment/index?data="+t})},tabChange(e){this.tabIndex=e,this.tabsName=this.tabBars[e].name},jumpComment(){this.goWriteComment()},addComment(e){e.taskId=this.processId,ve(e).then((e=>{this.mescroll.resetUpScroll()}))},delComment(e,t){f({title:"提示",content:"确定删除该评论?",success:s=>{s.confirm&&we(e).then((e=>{this.commentList.splice(t,1),this.mescroll.resetUpScroll()}))}})},init(){if(this.processId=this.config.id,("-1"!==this.config.opType||"-1"==this.config.opType&&3==this.config.status)&&setTimeout((()=>{this.tabIndex=0}),0),this.tabIndex=1,this.config.formRecords&&(this.tabIndex=4),this.config.id){let e={modelId:this.config.flowId,id:this.config.id,type:1,flowId:this.config.flowId,processId:this.config.id,taskId:this.config.taskId,opType:this.config.opType};d("dynamicModelExtra",e)}this.getBeforeInfo(this.config)},getBeforeInfo(e){this.formData.flowId=e.flowId,this.loading=!0;const t={taskNodeId:e.taskNodeId,taskOperatorId:e.taskId,flowId:e.flowId};ie(e.id||0,t).then((t=>{e.formData=t.data.formData||{},this.flowTaskInfo=t.data.flowTaskInfo||{},this.flowFormInfo=t.data.flowFormInfo||{},e.formType=this.flowFormInfo.formType,this.config.formType=this.flowFormInfo.formType,this.config.formEnCode=this.flowFormInfo.enCode,this.loading=!1,this.flowTemplateInfo=t.data.flowTemplateInfo||{};const s=this.flowTemplateInfo.flowTemplateJson?JSON.parse(this.flowTemplateInfo.flowTemplateJson):null;e.flowTemplateJson=s,this.flowTemplateJson=s,this.isSummary=this.flowTemplateJson.properties.isSummary,this.isComment=this.flowTemplateJson.properties.isComment,this.getTabBars(),this.summaryType=this.flowTemplateJson.properties.summaryType,this.flowTaskNodeList=t.data.flowTaskNodeList||[],this.recordList=(t.data.flowTaskOperatorRecordList||[]).reverse();for(let e=0;e<this.recordList.length;e++){const t=this.recordList[e];t.formType=this.flowFormInfo.formType,t.enCode=this.flowFormInfo.enCode,t.fileList&&(t.fileList=JSON.parse(t.fileList))}this.properties=t.data.approversProperties||{},e.draftData=t.data.draftData||null,e.formConf=this.flowFormInfo.propertyJson,e.type=this.flowTaskInfo.type,this.config.status=this.flowTaskInfo.status,this.config.fullName="-1"==e.opType?this.flowTemplateInfo.fullName:this.flowTaskInfo.fullName,this.title=this.flowTaskInfo.fullName,0!==this.config.status&&3!==this.config.status&&(this.title=this.flowTaskInfo.thisStep?this.config.fullName+"/"+this.flowTaskInfo.thisStep:this.config.fullName),a({title:this.config.fullName}),this.config.formRecords&&this.config.title&&a({title:this.config.title}),this.flowUrgent=this.flowTaskInfo.flowUrgent||1;if(this.selectflowUrgent=(()=>{var e={value:this.flowUrgent,extra:"0",label:"普通"};return this.flowUrgentList.forEach(((t,s)=>{t.value==this.flowUrgent&&(e.extra=s,e.label=t.label)})),e})(),this.handleMoreBtnList(),this.flowTaskNodeList.length){for(let e=0;e<this.flowTaskNodeList.length;e++){const t=this.flowTaskNodeList[e],i=e=>{if(Array.isArray(e)&&e.forEach((e=>i(e))),e.nodeId===t.nodeCode)return e.id=t.id,0==t.type&&(e.state="state-past"),1==t.type&&(e.state="state-curr"),void("approver"!==t.nodeType&&"start"!==t.nodeType&&"subFlow"!==t.nodeType||(e.content=t.userName));e.conditionNodes&&Array.isArray(e.conditionNodes)&&i(e.conditionNodes),e.childNode&&i(e.childNode)};i(s)}this.flowTemplateJson=s}switch(1!=e.opType&&"-1"!=e.opType&&(e.readonly=!0),e.formOperates=[],0==e.opType?this.flowTemplateJson&&this.flowTemplateJson.properties&&this.flowTemplateJson.properties.formOperates&&(e.formOperates=this.flowTemplateJson.properties.formOperates||[]):e.formOperates=t.data.formOperates||[],this.config.status){case 0:this.flowStatus=ke.status.submit;break;case 1:default:this.flowStatus=ke.status.review;break;case 2:this.flowStatus=ke.status.reviewAdopt;break;case 3:this.flowStatus=ke.status.reviewRefuse;break;case 4:case 7:this.flowStatus=ke.status.reviewUndo;break;case 5:this.flowStatus=ke.status.reviewStop}setTimeout((()=>{this.$nextTick((()=>{this.$refs.child&&this.$refs.child.$refs.form||n({title:"暂无此流程表单",icon:"none",complete:()=>{setTimeout((()=>{m()}),1500)}})}))}),100)}))},handleAction(e){switch(this.actionList[e].id){case"save":this.eventLauncher("save");break;case"transfer":this.eventReceiver({},"transfer");break;case"reject":this.eventReceiver({},"reject");break;case"saveAudit":this.eventLauncher("saveAudit");break;case"revoke":this.eventReceiver({},"revoke");break;case"freeapprover":this.eventLauncher("freeapprover");break;case"approvalCancel":this.eventReceiver({},"approvalCancel")}},handleMoreBtnList(){const e=[],t=this.config;t.type;const s=t.opType,i=this.properties;"-1"!=s||t.hideCancelBtn||e.push({text:i.saveBtnText||"暂存",id:"save"}),0==s&&1==t.status&&i.hasRevokeBtn&&e.push({text:i.revokeBtnText||"撤回",id:"revoke"}),1==s&&(i.hasTransferBtn&&e.push({text:i.transferBtnText||"转审",id:"transfer"}),i.hasRejectBtn&&e.push({text:i.rejectBtnText||"退回",id:"reject"}),i.hasSaveBtn&&e.push({text:i.saveBtnText||"暂存",id:"saveAudit"}),i.hasFreeApproverBtn&&e.push({text:i.hasFreeApproverBtnText||"加签",id:"freeapprover"}),i.hasCancelBtn&&e.push({text:i.cancelBtnText||"驳回",id:"approvalCancel"})),this.actionList=e},eventLauncher(e){this.$refs.child&&this.$refs.child.$refs.form&&this.$refs.child.$refs.form.submit(e,this.selectflowUrgent.value)},goBack(){if(this.shortLink)return u({url:"/pages/index/index"});m()},eventReceiver(e,t){if(this.formData={...e},this.eventType=t,this.formData.flowUrgent=this.selectflowUrgent.value||1,"save"===t||"submit"===t)return this.submitOrSave(t);if("saveAudit"===t)return this.saveAudit();if("audit"===t&&this.getCandidates(this.config.taskId,this.formData),"reject"===t||"revoke"===t||"recall"===t){let e="reject"===t?"退回":"撤回",s={formData:this.formData,eventType:this.eventType};if("recall"===t)return this.operate("recall",this.properties.revokeBtnText);if("reject"===t)return void oe(this.config.taskId).then((e=>{this.rejectList=e.data||[],this.operate("reject",this.properties.rejectBtnText)})).catch({});if("revoke"===t)return this.operate("revoke",this.properties.revokeBtnText);if(!this.properties.hasOpinion&&!this.properties.hasSign)return f({title:"提示",content:`此操作将${e}该审批单,是否继续?`,success:e=>{if(e.confirm){if("recall"===t)return this.recallHandle(s);if("reject"===t)return this.rejectHandle(s);if("revoke"===t)return this.revokeHandle(s)}}})}if("transfer"===t)return this.operate("transfer",this.properties.transferBtnText);if("freeapprover"===t&&this.getCandidates(this.config.taskId,this.formData),"approvalCancel"===t){let e={formData:this.formData,eventType:this.eventType};return this.properties.hasOpinion||this.properties.hasSign?this.operate("approvalCancel",this.properties.cancelBtnText||"驳回"):f({title:"提示",content:"此操作将审批驳回终止流程,是否继续?",success:t=>{t.confirm&&this.approvalCancelHandle(e)}})}},saveAudit(){this.btnLoading=!0,ae(this.config.taskId,this.formData).then((e=>{n({title:e.msg,icon:"none",complete:()=>{setTimeout((()=>{this.btnLoading=!1,m()}),1500)}})})).catch((()=>{this.btnLoading=!1}))},submitErrorForm(e){"submit"===e.eventType?this.handleRequest(e):this.handleApproval(e)},getCandidates(e,t){t.flowId=this.config.flowId,re(e,{flowId:t.flowId,flowUrgent:this.flowUrgent,...t}).then((e=>{const t=e.data||{};if(this.candidateType=t.type||3,this.countersignOver=!!t.countersignOver,this.branchList=t.list||[],"save"===this.eventType||"submit"===this.eventType)if(1==t.type)this.operate("submit","提交审核");else if(2==t.type)this.branchList=[],this.candidateList=e.data.list.filter((e=>e.isCandidates)),this.operate("submit","提交审核");else{if(this.properties.isCustomCopy)return this.operate("submit","提交审核");this.branchList=[],f({title:"提示",content:"您确定要提交当前流程吗?",success:e=>{e.confirm&&this.handleRequest()}})}else{if(this.candidateList=e.data.list?e.data.list.filter((e=>e.isCandidates)):[],!(this.properties.hasOpinion||this.properties.hasFreeApprover||this.properties.hasSign||this.properties.isCustomCopy||3!=this.candidateType)){let e={formData:this.formData,eventType:this.eventType};return void f({title:"提示",content:"此操作将通过该审批单,是否继续?",success:t=>{t.confirm&&this.auditHandle(e)}})}if("freeapprover"===this.eventType)return this.operate(this.eventType,this.properties.hasFreeApproverBtnText);this.operate(this.eventType,this.properties.auditBtnText)}})).catch((()=>{}))},submitOrSave(e){if(this.formData.status="submit"===e?0:1,"save"===e)return this.handleRequest();this.getCandidates(0,this.formData)},submitHandle(e){this.handleRequest(e)},selfHandleRequest(){(this.formData.id?ue:ge)(this.config.flowId,this.formData).then((e=>{n({title:e.msg,icon:"none",complete:()=>{setTimeout((()=>{m()}),1500)}})})).catch((()=>{}))},handleRequest(e){this.formData={...e,...this.formData,flowId:this.config.flowId,candidateType:this.candidateType,countersignOver:this.countersignOver,status:"save"===this.eventType?1:0,delegateUserList:this.config.delegateUserList||[],id:this.config.id},"save"===this.eventType&&(this.btnLoading=!0),(this.formData.id?te:se)(this.config.enCode,this.formData).then((e=>{e.data&&Array.isArray(e.data)&&e.data.length?this.$refs.ErrorForm.init(e.data,this.eventType):n({title:e.msg,icon:"none",complete:()=>{setTimeout((()=>{o("refresh"),this.btnLoading=!1,m()}),1500)}})})).catch((()=>{this.btnLoading=!1}))},handlePress(){f({title:"提示",content:"此操作将提示该节点尽快处理",success:e=>{e.confirm&&de(this.config.id).then((e=>{this.$u.toast(e.msg)}))}})},operate(e,t){let s={eventType:e,title:t.replace(/\s+/g,""),hasSign:this.properties.hasSign,hasFreeApprover:"freeapprover"===e&&this.properties.hasFreeApproverBtn,isCustomCopy:this.properties.isCustomCopy,taskId:"submit"===e?0:this.config.taskId,formData:this.formData,hasOpinion:this.properties.hasOpinion,candidateType:this.candidateType,branchList:this.branchList,candidateList:this.candidateList,rejectStep:this.properties.rejectStep,rejectList:this.rejectList,rejectType:this.properties.rejectType,props:{label:"nodeName",value:"nodeId"}};h({url:"/pages/workFlow/operate/index?config="+encodeURIComponent(JSON.stringify(s))})},revokeHandle(e){me(this.config.id,{handleOpinion:e.handleOpinion,signImg:e.signImg,fileList:e.fileList}).then((e=>{this.toastAndBack(e.msg,!0)}))},recallHandle(e){ne(this.config.taskId,{handleOpinion:e.handleOpinion,signImg:e.signImg,fileList:e.fileList}).then((e=>{this.toastAndBack(e.msg,!0)}))},auditHandle(e){this.handleApproval(e)},freeapproverHandle(e){this.freeApprover(e)},transferHandle(e){le(this.config.taskId,e).then((e=>{this.toastAndBack(e.msg,!0)}))},approvalCancelHandle(e){ce(this.config.id,{handleOpinion:e.handleOpinion,signImg:e.signImg,fileList:e.fileList,eventType:"approvalCancel"}).then((e=>{this.toastAndBack(e.msg,!0)}))},rejectHandle(e){this.handleApproval(e)},freeApprover(e){const t={...e,...this.formData};pe(this.config.taskId,t).then((e=>{this.toastAndBack(e.msg,!0)}))},handleApproval(e){const t={...e,countersignOver:this.countersignOver,...this.formData,enCode:this.config.enCode},s="audit"===e.eventType?fe:he;null!=this.config.taskId&&s(this.config.taskId,t).then((s=>{s.data&&Array.isArray(s.data)&&s.data.length?this.$refs.ErrorForm.init(s.data,e.eventType,t):this.toastAndBack(s.msg,!0)}))},setBtnLoad(e){this.btnLoading=!!e},toastAndBack(e,t){n({title:e,icon:"none",mask:!0,complete:()=>{setTimeout((()=>{if(this.shortLink)return u({url:"/pages/index/index"});o("refresh"),m()}),1500)}})},handleShowSelect(){"-1"==this.config.opType&&(this.showFlowUrgent=!0)},seltConfirm(e){this.flowUrgent=e[0].value,this.selectflowUrgent=e[0],this.defaultValue=[this.flowUrgentList.findIndex((t=>t.value===e[0].value))]}}},[["render",function(e,t,s,i,o,a){const r=g("childForm"),n=g("ErrorForm"),l=k,c=J(y("u-tabs"),D),p=J(y("u-sticky"),V),f=A,h=g("flowInfo"),d=g("records"),m=g("RecordSummary"),u=J(y("u-avatar"),H),K=O,X=J(y("JnpfUploadImg"),$),Y=J(y("u-divider"),P),Z=N,Q=J(y("mescroll-body"),M),ee=E,te=J(y("u-icon"),q),se=J(y("u-button"),z),ie=J(y("u-select"),W),oe=J(y("u-action-sheet"),G);return T(),v(l,{class:"flowBefore-v"},{default:w((()=>[b("div",{class:"flow-urgent-value",style:I({"background-color":o.flowUrgentList[o.selectflowUrgent.extra].bgColor}),onClick:t[0]||(t[0]=(...e)=>a.handleShowSelect&&a.handleShowSelect(...e))},[b("span",{style:I({color:o.flowUrgentList[o.selectflowUrgent.extra].color})},x(o.selectflowUrgent.label),5)],4),"-1"===o.config.opType&&7!=o.config.status?(T(),v(l,{key:0,class:"flowBefore-box"},{default:w((()=>[j(l,{class:"scroll-v","scroll-y":""},{default:w((()=>[e.loading?C("",!0):(T(),v(r,{key:0,ref:"child",config:o.config,onEventReceiver:a.eventReceiver},null,8,["config","onEventReceiver"])),j(n,{modelValue:o.showErrorForm,"onUpdate:modelValue":t[1]||(t[1]=e=>o.showErrorForm=e),onSubmitErrorForm:a.submitErrorForm,ref:"ErrorForm"},null,8,["modelValue","onSubmitErrorForm"])])),_:1})])),_:1})):(T(),v(l,{key:1,class:"flowBefore-box"},{default:w((()=>[j(l,{class:"u-border-bottom sticky-box"},{default:w((()=>[j(p,null,{default:w((()=>[j(c,{list:o.tablist,"is-scroll":!0,current:o.tabIndex,onChange:a.tabChange,height:"100"},null,8,["list","current","onChange"])])),_:1})])),_:1}),j(l,null,{default:w((()=>[L(j(l,null,{default:w((()=>[0==o.config.opType||4==o.config.opType?(T(),v(l,{key:0,class:"flowStatus"},{default:w((()=>[j(f,{src:o.flowStatus,mode:"widthFix"},null,8,["src"])])),_:1})):C("",!0),e.loading?C("",!0):(T(),v(r,{key:1,ref:"child",config:o.config,onEventReceiver:a.eventReceiver,onSetBtnLoad:a.setBtnLoad},null,8,["config","onEventReceiver","onSetBtnLoad"]))])),_:1},512),[[_,"表单信息"===o.tabsName]]),"流程信息"===o.tabsName?(T(),v(l,{key:0,class:"nodeList-v"},{default:w((()=>[j(h,{options:o.flowTemplateJson,config:o.config,isEnd:100==o.flowTaskInfo.completion},null,8,["options","config","isEnd"])])),_:1})):C("",!0),"流转记录"===o.tabsName?(T(),v(l,{key:1},{default:w((()=>[j(d,{options:o.recordList,flowId:o.config.flowId},null,8,["options","flowId"])])),_:1})):C("",!0),"审批汇总"===o.tabsName?(T(),v(l,{key:2},{default:w((()=>[j(m,{processId:o.processId,ref:"recordSummary",summaryType:o.summaryType},null,8,["processId","summaryType"])])),_:1})):C("",!0),"流程评论"===o.tabsName?(T(),v(l,{key:3},{default:w((()=>[j(l,{class:"record-v"},{default:w((()=>[j(Q,{ref:"mescrollRef",onInit:e.mescrollInit,onDown:e.downCallback,onUp:a.upCallback,sticky:!1,down:o.downOption,up:o.upOption,bottombar:!1},{default:w((()=>[j(l,{class:"discuss_box"},{default:w((()=>[j(Z,{"scroll-y":"true",style:{height:"100%"}},{default:w((()=>[(T(!0),B(S,null,U(o.commentList,((t,s)=>(T(),v(l,{class:"u-flex-col discuss_list",key:s},{default:w((()=>[j(l,{class:"u-flex discuss_txt"},{default:w((()=>[j(l,{class:"discuss_txt_left u-flex"},{default:w((()=>[j(u,{src:a.baseURL+t.creatorUserHeadIcon},null,8,["src"]),b("span",{class:"uName"},[b("span",{class:"comment-header-color"},x(t.creatorUser),1),t.replyUser?(T(),B("span",{key:0},[b("span",{class:"replyText comment-content-color"},"回复"),b("span",{class:"replyText comment-header-color"},x(t.replyUser),1),b("span",{class:"replyText"},[b("span",{class:"icon-ym icon-ym-chat",onClick:e=>a.openReplyText(t.replyText)},null,8,["onClick"])])])):C("",!0)])])),_:2},1024)])),_:2},1024),j(l,{class:"u-flex-col discuss_content"},{default:w((()=>[j(l,{class:"msg-text"},{default:w((()=>[(T(!0),B(S,null,U(t.text,((e,t)=>(T(),v(l,{key:t},{default:w((()=>["text"==e.type?(T(),v(K,{key:0,class:"txt comment-content-color"},{default:w((()=>[R(x(e.content),1)])),_:2},1024)):C("",!0),"emjio"==e.type?(T(),v(f,{key:1,class:"msg-text-emoji",src:e.content},null,8,["src"])):C("",!0)])),_:2},1024)))),128))])),_:2},1024),2!=t.isDel?(T(),v(X,{key:0,modelValue:t.image,"onUpdate:modelValue":e=>t.image=e,disabled:"",detailed:"",align:"left"},null,8,["modelValue","onUpdate:modelValue"])):C("",!0),2!=t.isDel?(T(!0),B(S,{key:1},U(t.file,((e,t)=>(T(),v(l,{key:t,class:"jnpf-file-item u-type-primary u-flex u-line-1",onClick:t=>a.openFile(e)},{default:w((()=>[j(l,{class:"u-line-1",style:{"margin-bottom":"10rpx"}},{default:w((()=>[R(x(e.name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128)):C("",!0)])),_:2},1024),j(l,{class:"u-flex discuss_txt time_button"},{default:w((()=>[j(K,{class:"discuss_txt_left u-flex comment-creator-time"},{default:w((()=>[R(x(e.$u.timeFormat(t.creatorTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:2},1024),j(l,null,{default:w((()=>[1==t.isDel?(T(),v(K,{key:0,class:"del",onClick:F((e=>a.delComment(t.id,s)),["stop"])},{default:w((()=>[R("删除")])),_:2},1032,["onClick"])):C("",!0),2!=t.isDel?(T(),v(K,{key:1,class:"reply",onClick:F((e=>a.handleReply(t.id,s)),["stop"])},{default:w((()=>[R("回复")])),_:2},1032,["onClick"])):C("",!0)])),_:2},1024)])),_:2},1024),s!=o.commentList.length-1?(T(),v(Y,{key:0,"half-width":"100%","margin-top":32,"margin-bottom":32,"use-slot":!1})):C("",!0)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1},8,["onInit","onDown","onUp","down","up"])])),_:1}),"流程评论"===o.tabsName?(T(),v(l,{key:0,class:"discuss_btn"},{default:w((()=>[j(ee,{onClick:F(a.jumpComment,["stop"]),class:"custom-style"},{default:w((()=>[R("评论")])),_:1},8,["onClick"])])),_:1})):C("",!0)])),_:1})):C("",!0),j(n,{modelValue:o.showErrorForm,"onUpdate:modelValue":t[2]||(t[2]=e=>o.showErrorForm=e),onSubmitErrorForm:a.submitErrorForm,ref:"ErrorForm"},null,8,["modelValue","onSubmitErrorForm"])])),_:1})])),_:1})),4!=o.tabIndex&&3!=o.tabIndex?(T(),v(l,{key:2,class:"flowBefore-actions"},{default:w((()=>[o.actionList.length?(T(),v(se,{key:0,class:"buttom-btn",loading:o.btnLoading,onClick:t[3]||(t[3]=e=>o.showAction=!0)},{default:w((()=>[R(" 更多"),j(te,{name:"arrow-down",size:"24"})])),_:1},8,["loading"])):C("",!0),"-1"==o.config.opType?(T(),v(se,{key:1,class:"buttom-btn",type:"primary",onClick:t[4]||(t[4]=F((e=>a.eventLauncher("submit")),["stop"]))},{default:w((()=>[R(x(o.properties.submitBtnText||"提交"),1)])),_:1})):C("",!0),0==o.config.opType?(T(),B(S,{key:2},[1==o.config.status&&o.properties.hasPressBtn?(T(),v(se,{key:0,class:"buttom-btn",type:"primary",onClick:t[5]||(t[5]=F((e=>a.handlePress()),["stop"]))},{default:w((()=>[R(x(o.properties.pressBtnText||"催办"),1)])),_:1})):C("",!0)],64)):C("",!0),1==o.config.opType&&o.properties.hasAuditBtn?(T(),v(se,{key:3,class:"buttom-btn",type:"primary",onClick:t[6]||(t[6]=F((e=>a.eventLauncher("audit")),["stop"]))},{default:w((()=>[R(x(o.properties.auditBtnText||"通过"),1)])),_:1})):C("",!0),2==o.config.opType&&o.properties.hasRevokeBtn?(T(),v(se,{key:4,class:"buttom-btn",type:"error",onClick:t[7]||(t[7]=F((e=>a.eventReceiver({},"recall")),["stop"]))},{default:w((()=>[R(x(o.properties.revokeBtnText||"撤回"),1)])),_:1})):C("",!0),j(se,{class:"buttom-btn",onClick:t[8]||(t[8]=F((e=>a.goBack()),["stop"]))},{default:w((()=>[R("取消")])),_:1})])),_:1})):C("",!0),j(ie,{list:o.flowUrgentList,modelValue:o.showFlowUrgent,"onUpdate:modelValue":t[9]||(t[9]=e=>o.showFlowUrgent=e),onConfirm:a.seltConfirm,"default-value":o.defaultValue},null,8,["list","modelValue","onConfirm","default-value"]),j(oe,{modelValue:o.showAction,"onUpdate:modelValue":t[10]||(t[10]=e=>o.showAction=e),list:o.actionList,onClick:a.handleAction},null,8,["modelValue","list","onClick"])])),_:1})}],["__scopeId","data-v-cc44c443"]]);export{je as default};