import{u as e,aT as t,T as s,U as i,b as o,a1 as a,h as r,aU as n,e as l,aV as h,aW as f,aX as c,ac as p,n as d,J as m,$ as u,Q as g,q as w,c as y,w as b,i as v,o as T,B as k,R as I,x as j,t as L,A as x,y as C,z as F,C as _,D as U,F as S,a0 as B,v as N,a5 as D,b3 as R,H as A,E}from"./index-Dys5AnMe.js";import{_ as O}from"./u-tabs.CAd4XION.js";import{r as J}from"./uni-app.es.K7xXUPGD.js";import{_ as H}from"./u-sticky.DRyoeS0X.js";import{_ as V}from"./u-avatar.DbcvVMyR.js";import{d as $}from"./index.UtGW9l8A.js";import{_ as q}from"./u-divider.YQGfuVFk.js";import{_ as M}from"./mescroll-body.DC8QjiYv.js";import{C as P,f as W,r as z,R as G,e as Z,i as K,U as Q,a as X}from"./emoji.Dby6h0ot.js";import{e as Y,R as ee,S as te,C as se,a as ie,T as oe,b as ae,A as re,d as ne}from"./flowBefore.Ddn5eYdM.js";import{P as le,R as he}from"./flowLaunch.ClPCFaxw.js";import{u as fe,c as ce}from"./visualDev.OLv1LTDM.js";import{b as pe,c as de,d as me}from"./flowEngine.D-Axa8PH.js";import{r as ue}from"./resources.DipqUmnN.js";import{c as ge}from"./form.DF_NVE8E.js";import{F as we}from"./flowForm.DrpLsPuN.js";import{E as ye}from"./ErrorForm.bvv3CKpy.js";import{M as be}from"./mescroll-mixins.Cwzm71Gw.js";import{_ as ve}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./u-badge.P17HnvS-.js";import"./u-icon.ozD1aZEe.js";import"./u-loading.9vRHmcdp.js";import"./u-popup.geK9Lf_m.js";import"./u-line.BKZsAf4h.js";import"./u-input.DH-WETIc.js";import"./emitter.DrjJCwnj.js";import"./u-upload.D5iLhVqF.js";import"./uni-icons.v_3m2iR1.js";import"./MultSelect.GxH-EIaA.js";import"./u-search.kz8Xdpt3.js";import"./u-checkbox.B1vcs56c.js";import"./u-checkbox-group.CE-XksdO.js";import"./u-radio-group.BxAADOxm.js";import"./u-button.CFz6JFzH.js";import"./mp-html.DvuufK_t.js";import"./u-tag.9qXQqwBB.js";import"./index.CwTStGCr.js";import"./index.gR4cZ3lN.js";import"./u-form.DeLMGbd1.js";import"./index.B6d56vmZ.js";import"./index.CUcdgz04.js";import"./ly-tree.1W9mj2AH.js";import"./ly-checkbox.DA4SNxmt.js";import"./index.D1cMuTXK.js";import"./index.BRcvu79Y.js";import"./base.BnxN0Vyp.js";import"./index.B2VlJJm6.js";import"./index.Dffigcwn.js";import"./u-action-sheet.DcBQ72CS.js";import"./order.DILY3tjE.js";const Te=ve({mixins:[be],components:{CandidateForm:P,childForm:ge,flowInfo:W,records:z,RecordSummary:G,ErrorForm:ye,flowForm:we},data:()=>({emojiList:Z,key:+new Date,Loading:!1,isSubFlowInfo:!1,downOption:{use:!0,auto:!0},upOption:{page:{num:0,size:20,time:null},empty:{use:!0,icon:ue.message.nodata,tip:"暂无数据",fixed:!0,top:"300rpx"},textNoMore:"没有更多数据"},isComment:!1,isSummary:!1,show:!1,config:{},currentView:"",formData:{},flowTaskInfo:{},flowFormInfo:{},flowTemplateInfo:{},flowTaskNodeList:[],flowTemplateJson:[],recordList:[],properties:{},endTime:0,tabIndex:0,tabBars:[{name:"流程信息",id:1},{name:"流转记录",id:2}],flowStatus:"",stepIndex:0,userOptions:[],btnLoading:!1,eventType:"",commentList:[],processId:"",candidateList:[],summaryType:0,tabsName:"流程信息",title:"",branchList:[],candidateType:3,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:"",subFlowInfoList:[],currentSubFlow:0}),computed:{baseURL(){return this.define.baseURL}},onLoad(i){const o=JSON.parse(this.jnpf.base64.decode(i.config));if(this.config=o,i.token){const s=e();s.setToken(""),s.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&&t(this.config.taskOperatorId).then((e=>{e.data&&e.data.isCheck&&(o.opType=3)})).catch((e=>{})),this.config=o}if(!o)return this.jnpf.goBack();s("operate",(e=>{this[e.eventType+"Handle"](e)})),s("comment",(e=>{this.commentList=[],this.current=0,this.addComment(e)})),this.processId=this.config.id,this.init()},onUnload(){i("operate"),i("refresh"),i("comment")},methods:{init(){o({title:"正在加载"}),this.config.formRecords&&(this.tabIndex=4),this.getBeforeInfo(this.config)},getBeforeInfo(e){this.formData.flowId=e.flowId,Y(e.subId).then((e=>{this.subFlowInfoList=e.data||[],this.handelData()}))},handelData(){let e=this.config;for(let o=0;o<this.subFlowInfoList.length;o++)this.subFlowInfoList[o].name=this.subFlowInfoList[o].flowTaskInfo.fullName,this.subFlowInfoList[o].id=this.subFlowInfoList[o].flowTaskInfo.id;let t=this.subFlowInfoList[this.currentSubFlow];e.formData=t.formData,this.flowTaskInfo=t.flowTaskInfo||{},this.flowFormInfo=t.flowFormInfo,e.formType=this.flowFormInfo.formType,this.flowTemplateInfo=t.flowTemplateInfo;const s=this.flowTemplateInfo.flowTemplateJson?JSON.parse(this.flowTemplateInfo.flowTemplateJson):null;e.flowTemplateJson=s,this.flowTemplateJson=s,this.isComment=this.flowTemplateJson.properties.isComment,this.isSummary=this.flowTemplateJson.properties.isSummary,this.summaryType=this.flowTemplateJson.properties.summaryType,this.flowTaskNodeList=t.flowTaskNodeList||[];const i=this.$u.deepClone(t.flowTaskOperatorRecordList)||[];this.recordList=i.reverse();for(let o=0;o<this.recordList.length;o++){let e=this.recordList[o];e.formType=this.flowFormInfo.formType,e.enCode=this.flowFormInfo.enCode,e.fileList=JSON.parse(e.fileList)}this.properties=t.approversProperties||{},e.draftData=t.draftData||null,e.formConf=this.flowFormInfo.propertyJson,e.type=this.flowTaskInfo.type,this.endTime=100==this.flowTaskInfo.completion?this.flowTaskInfo.endTime:0,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.flowTaskInfo.flowUrgent,extra:"0",label:"普通"};return this.flowUrgentList.forEach(((t,s)=>{t.value==this.flowTaskInfo.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,r(),this.key=+new Date,this.Loading=!0}else this.flowTemplateJson.state="state-curr",r(),this.key=+new Date,this.Loading=!0},subFlowChange(e){this.currentSubFlow=e,this.handelData()},handleCodeGeneration(e){this.config=e,"-1"!==this.config.opType&&setTimeout((()=>{this.tabIndex=0}),0),a({title:this.config.fullName})},doPreviewImage(e){let t;this.commentList.forEach((e=>{e.image.length>0&&(t=e.image.map((e=>this.baseURL+e.url)))})),n({urls:t,current:e,success:()=>{},fail:()=>{l({title:"预览图片失败",icon:"none"})}})},openFile(e){h("annex",e.fileId).then((t=>{window.location.href=this.baseURL+t.data.url+"&name="+e.name}))},previewFile(e){let t=e.url;f({url:this.baseURL+t,success:e=>{var t=e.tempFilePath;c({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};pe(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=>K[e.replace(".","")],openReplyText(e){p({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)),d({url:"/pages/workFlow/comment/index?data="+t})},tabChange(e){this.tabIndex=e,this.tabsName=this.tabBars[e].name,"审批汇总"!==this.tabsName&&"流程评论"!==this.tabsName||(this.processId=this.subFlowInfoList[this.currentSubFlow].flowTaskInfo.processId)},jumpComment(){this.goWriteComment()},addComment(e){e.taskId=this.processId,de(e).then((e=>{this.mescroll.resetUpScroll()}))},delComment(e,t){p({title:"提示",content:"确定删除该评论?",success:s=>{s.confirm&&me(e).then((e=>{this.commentList.splice(t,1),this.mescroll.resetUpScroll()}))}})},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")}},handleMoreBtnList(){const e=this.config;e.type;const t=e.opType,s=this.properties;"-1"==t?this.actionList.push({text:s.saveBtnText||"暂存",id:"save"}):0==t?1!=e.status||!s.hasRevokeBtn&&void 0!==s.hasRevokeBtn?3==e.status&&this.actionList.push({text:s.saveBtnText||"暂存",id:"save"}):this.actionList.push({text:s.revokeBtnText||"撤回",id:"revoke"}):1==t&&(s.hasTransferBtn&&this.actionList.push({text:s.transferBtnText||"转审",id:"transfer"}),s.hasRejectBtn&&this.actionList.push({text:s.rejectBtnText||"退回",id:"reject"}),s.hasSaveBtn&&this.actionList.push({text:s.saveBtnText||"暂存",id:"saveAudit"}),s.hasFreeApproverBtn&&this.actionList.push({text:s.hasFreeApproverBtnText||"加签",id:"freeapprover"}))},eventLauncher(e){this.$refs.child&&this.$refs.child.$refs.form&&this.$refs.child.$refs.form.submit(e,this.selectflowUrgent.value)},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(!this.properties.hasOpinion&&!this.properties.hasSign)return p({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("recall"===t)return this.operate("recall",this.properties.revokeBtnText);if("reject"===t)return void ee(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("transfer"===t)return this.operate("transfer",this.properties.transferBtnText);"freeapprover"===t&&this.getCandidates(this.config.taskId,this.formData)},saveAudit(){this.btnLoading=!0,te(this.config.taskId,this.formData).then((e=>{l({title:e.msg,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){se(e,{flowId:t.flowId,flowUrgent:this.flowUrgent,...t}).then((e=>{const t=e.data||{};if(this.candidateType=t.type||3,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=[],p({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 p({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?fe:ce)(this.config.flowId,this.formData).then((e=>{l({title:e.msg,complete:()=>{setTimeout((()=>{m()}),1500)}})})).catch((()=>{}))},handleRequest(e){this.formData={...e,...this.formData,flowId:this.config.flowId,candidateType:this.candidateType,status:"save"===this.eventType?1:0,delegateUserList:[this.config.delegateUserList],id:this.config.id},"save"===this.eventType&&(this.btnLoading=!0),(this.formData.id?Q:X)(this.config.enCode,this.formData).then((e=>{e.data&&Array.isArray(e.data)&&e.data.length?this.$refs.ErrorForm.init(e.data,this.eventType):l({title:e.msg,complete:()=>{setTimeout((()=>{u("refresh"),this.btnLoading=!1,m()}),1500)}})})).catch((()=>{this.btnLoading=!1}))},handlePress(){p({title:"提示",content:"此操作将提示该节点尽快处理",success:e=>{e.confirm&&le(this.config.id).then((e=>{this.$u.toast(e.msg)}))}})},operate(e,t){let s={eventType:e,title:t.replace(/\s+/g,""),btnTxt:"确认"+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,flowId:this.config.flowId,hasOpinion:this.properties.hasOpinion,candidateType:this.candidateType,branchList:this.branchList,candidateList:this.candidateList,isCandidate:2==this.candidateType,rejectStep:this.properties.rejectStep,rejectList:this.rejectList,rejectType:this.properties.rejectType,props:{label:"nodeName",value:"nodeId"},type:this.config.type};d({url:"/pages/workFlow/operate/index?config="+JSON.stringify(s)})},revokeHandle(e){he(this.config.id,{handleOpinion:e.handleOpinion,signImg:e.signImg,fileList:e.fileList}).then((e=>{this.toastAndBack(e.msg,!0)}))},recallHandle(e){ie(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){oe(this.config.taskId,e).then((e=>{this.toastAndBack(e.msg,!0)}))},rejectHandle(e){this.handleApproval(e)},freeApprover(e){const t={...e,...this.formData};ae(this.config.taskId,t).then((e=>{this.toastAndBack(e.msg,!0)}))},handleApproval(e){const t={...e,...this.formData,enCode:this.config.enCode};("audit"===e.eventType?re:ne)(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){l({title:e,mask:!0,complete:()=>{setTimeout((()=>{u("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=v,h=J(w("u-tabs"),O),f=J(w("u-sticky"),H),c=g("flowInfo"),p=g("records"),d=g("RecordSummary"),m=J(w("u-avatar"),V),u=A,P=E,W=J(w("JnpfUploadImg"),$),z=J(w("u-divider"),q),G=D,Z=J(w("mescroll-body"),M),K=R;return T(),y(l,{class:"flowBefore-v"},{default:b((()=>[k("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))},[k("span",{style:I({color:o.flowUrgentList[o.selectflowUrgent.extra].color})},j(o.selectflowUrgent.label),5)],4),"-1"===o.config.opType?(T(),y(l,{key:0,class:"flowBefore-box"},{default:b((()=>[L(l,{class:"scroll-v","scroll-y":""},{default:b((()=>[L(r,{ref:"child",config:o.config,onEventReceiver:a.eventReceiver},null,8,["config","onEventReceiver"]),L(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})):x("",!0),o.isSubFlowInfo?x("",!0):(T(),y(l,{key:1,class:"flowBefore-box"},{default:b((()=>[L(l,{class:"u-border-bottom sticky-box"},{default:b((()=>[L(f,null,{default:b((()=>[L(h,{list:o.tabBars,"is-scroll":!0,current:o.tabIndex,onChange:a.tabChange,height:"100"},null,8,["list","current","onChange"])])),_:1})])),_:1}),L(l,null,{default:b((()=>[C(L(l,{class:"nodeList-v"},{default:b((()=>[L(h,{list:o.subFlowInfoList,"is-scroll":!0,current:o.currentSubFlow,onChange:a.subFlowChange},null,8,["list","current","onChange"]),o.Loading?(T(),y(c,{options:o.flowTemplateJson,isEnd:100==o.flowTaskInfo.completion,key:o.key},null,8,["options","isEnd"])):x("",!0)])),_:1},512),[[F,"流程信息"===o.tabsName]]),"流转记录"===o.tabsName?(T(),y(l,{key:0},{default:b((()=>[L(p,{options:o.recordList,endTime:o.endTime,flowId:o.config.flowId},null,8,["options","endTime","flowId"])])),_:1})):x("",!0),"审批汇总"===o.tabsName?(T(),y(l,{key:1},{default:b((()=>[L(d,{processId:o.processId,ref:"recordSummary",summaryType:o.summaryType},null,8,["processId","summaryType"])])),_:1})):x("",!0),"流程评论"===o.tabsName?(T(),y(l,{key:2},{default:b((()=>[L(l,{class:"record-v"},{default:b((()=>[L(Z,{ref:"mescrollRef",onInit:e.mescrollInit,onDown:e.downCallback,onUp:a.upCallback,sticky:!1,down:o.downOption,up:o.upOption,bottombar:!1},{default:b((()=>[L(l,{class:"discuss_box"},{default:b((()=>[L(G,{"scroll-y":"true",style:{height:"100%"}},{default:b((()=>[(T(!0),_(S,null,U(o.commentList,((t,s)=>(T(),y(l,{class:"u-flex-col discuss_list",key:s},{default:b((()=>[L(l,{class:"u-flex discuss_txt"},{default:b((()=>[L(l,{class:"discuss_txt_left u-flex"},{default:b((()=>[L(m,{src:a.baseURL+t.creatorUserHeadIcon},null,8,["src"]),k("span",{class:"uName"},[k("span",{class:"comment-header-color"},j(t.creatorUser),1),t.replyUser?(T(),_("span",{key:0},[k("span",{class:"replyText comment-content-color"},"回复"),k("span",{class:"replyText comment-header-color"},j(t.replyUser),1),k("span",{class:"replyText"},[k("span",{class:"icon-ym icon-ym-chat",onClick:e=>a.openReplyText(t.replyText)},null,8,["onClick"])])])):x("",!0)])])),_:2},1024)])),_:2},1024),L(l,{class:"u-flex-col discuss_content"},{default:b((()=>[L(l,{class:"msg-text"},{default:b((()=>[(T(!0),_(S,null,U(t.text,((e,t)=>(T(),y(l,{key:t},{default:b((()=>["text"==e.type?(T(),y(u,{key:0,class:"txt comment-content-color"},{default:b((()=>[N(j(e.content),1)])),_:2},1024)):x("",!0),"emjio"==e.type?(T(),y(P,{key:1,class:"msg-text-emoji",src:e.content},null,8,["src"])):x("",!0)])),_:2},1024)))),128))])),_:2},1024),2!=t.isDel?(T(),y(W,{key:0,modelValue:t.image,"onUpdate:modelValue":e=>t.image=e,disabled:"",detailed:"",align:"left"},null,8,["modelValue","onUpdate:modelValue"])):x("",!0),2!=t.isDel?(T(!0),_(S,{key:1},U(t.file,((e,t)=>(T(),y(l,{key:t,class:"jnpf-file-item u-type-primary u-flex u-line-1",onClick:t=>a.openFile(e)},{default:b((()=>[L(l,{class:"u-line-1",style:{"margin-bottom":"10rpx"}},{default:b((()=>[N(j(e.name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128)):x("",!0)])),_:2},1024),L(l,{class:"u-flex discuss_txt time_button"},{default:b((()=>[L(u,{class:"discuss_txt_left u-flex comment-creator-time"},{default:b((()=>[N(j(e.$u.timeFormat(t.creatorTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:2},1024),L(l,null,{default:b((()=>[1==t.isDel?(T(),y(u,{key:0,class:"del",onClick:B((e=>a.delComment(t.id,s)),["stop"])},{default:b((()=>[N("删除")])),_:2},1032,["onClick"])):x("",!0),2!=t.isDel?(T(),y(u,{key:1,class:"reply",onClick:B((e=>a.handleReply(t.id,s)),["stop"])},{default:b((()=>[N("回复")])),_:2},1032,["onClick"])):x("",!0)])),_:2},1024)])),_:2},1024),s!=o.commentList.length-1?(T(),y(z,{key:0,"half-width":"100%","margin-top":32,"margin-bottom":32,"use-slot":!1})):x("",!0)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1},8,["onInit","onDown","onUp","down","up"])])),_:1}),"流程评论"===o.tabsName?(T(),y(l,{key:0,class:"discuss_btn"},{default:b((()=>[L(K,{onClick:B(a.jumpComment,["stop"]),class:"custom-style"},{default:b((()=>[N("评论")])),_:1},8,["onClick"])])),_:1})):x("",!0)])),_:1})):x("",!0),L(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}))])),_:1})}],["__scopeId","data-v-9ef14ea6"]]);export{Te as default};