ui-process-h5 1.2.21 → 1.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,4 +39,4 @@ Component that was made reactive: `,s)),dm(s,i,c,r,p,A,f,!0)}function hm(s){retu
39
39
  left:0;
40
40
  right:0;
41
41
  margin: 0 auto;
42
- `,document.body.appendChild(this.mainContainer)}message(i={}){let c=sessionStorage.getItem(this.sessionStorageName),r=c?JSON.parse(c):null;if(i.againBtn&&i.content&&r&&Array.isArray(r)&&r.includes(i.content))return;const p=hf({type:i.type,content:i.content,duration:i.duration,delay:i.delay,againBtn:i.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(p.els),$s(this.mainContainer),uf(p,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const mf=Wt({components:{checked:_m,dcSwitch:of,dcLoading:df},name:"departPerson",props:{visible:{type:Boolean,default:!1},isTitle:{type:Boolean,default:!0},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},orgType:{type:Array,default:()=>[0]},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((s,i)=>{s(!0)})}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1,activeOrgType:0}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,i){if(!s)return!1;v(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(s,i){let c=[];const r=this.checkedJson.map(p=>{const f=this.entityJson.findIndex(A=>A.id===p.id&&p.type==A.type&&p.type==2)>-1?s&&p.type==2?"4":p.type:p.orgRecordsType;return(f==4||p.type==1)&&c.push(p.id),{...p,orgRecordsType:f}});this.checkedJson=r.filter(p=>p.ancestors.split(",").findIndex(f=>c.indexOf(f)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(s,i){v(this.businessId)&&this.getCards()}}},computed:{queryImg(){return pf},entityJson(){const s=this.checkedJson;return this.jsonData.map(i=>{const c=v(i.ancestors)?"":i.ancestors,r=v(i.ancestorNames)?"":i.ancestorNames,p=c+i.id+"__"+i.type,f=s.find(B=>B.uniqueId===p),A=!v(f),C=A?!1:s.findIndex(B=>B.id===i.id&&i.subjectId===B.subjectId)>-1,N=A?i.type==1||f.orgRecordsType==4:!1,g=v(s)?0:N?i.counts:s.filter(B=>B.type!=1&&B.ancestors.indexOf(i.id)>-1).length,w=A?f.isNoDelete:!1;return{type:i.type,id:i.id,name:i.name,counts:v(i.counts)?0:i.counts,num:g,phone:Bm(i.phone),uid:i.uid,iconName:qs(i.name,2),checked:A,ancestors:c,ancestorNames:r,deptName:Im(i.ancestorNames,"/",this.activeOrgType==0?"last":"find"),uniqueId:p,isDisabled:C,isLevel:N,subjectId:i.subjectId,sex:i.sex,avatar:v(i.avatar)?"":i.avatar,isNoDelete:w}})},companyJson(){return this.entityJson.filter(s=>s.type==1||s.type==5)},deptJson(){return this.entityJson.filter(s=>s.type==2)},userJson(){return this.entityJson.filter(s=>s.type==3||s.type==6)},checkedNumber(){const s=this.checkedJson.filter(f=>f.type==1).length,i=this.checkedJson.filter(f=>f.type==2).length,c=this.checkedJson.filter(f=>f.type==3||f.type==6).length,r=this.checkedJson.filter(f=>f.type==5).length;let p=[];return s>0&&p.push(s+"\u4E2A\u7EC4\u7EC7"),r>0&&p.push(r+"\u4E2A\u7FA4\u7EC4"),i>0&&p.push(i+"\u4E2A\u90E8\u95E8"),c>0&&p.push(c+"\u4E2A\u6210\u5458"),v(p)?"":"\u5DF2\u9009\u62E9"+p.join("\uFF0C")},breadcrumb_subjectId(){const s=this.breadcrumb.filter((i,c)=>i.value!=="-1");return v(s)?"":s[0].value},breadcrumb_level(){const s=this.breadcrumb.filter((i,c)=>i.value!=="-1");return{ancestors:s.map(i=>i.value).join(","),ancestorNames:s.map(i=>i.name).join("/")}},isDept(){return this.jsonData.findIndex(s=>s.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(s=>s==1||s==5)>-1},isShowDept(){return this.codeType.findIndex(s=>s==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(s=>s==3||s==6)>-1},getHight(){let s=194;return this.isShowQuery&&(s+=55),this.isDept&&(s+=45),this.orgType.length>1&&(s+=45),`calc(100% - ${s}px)`},getSearchHight(){let s=136;return this.orgType.length>1&&(s+=45),`calc(100% - ${s}px)`},getTitle(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":this.codeType.length==1&&this.codeType[0]==5?"\u9009\u62E9\u7FA4\u7EC4":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return v(this.checkedArray)?[]:this.checkedArray.filter(s=>s.isDeleteNo)},isOrgType(){return!!(v(this.orgType)||this.orgType.findIndex(s=>s===0)>-1)},isOrgGroup(){return this.orgType.findIndex(s=>s===1)>-1},showType(){if(this.activeOrgType===0)return this.codeType.findIndex(s=>s==3)>-1?3:this.codeType.findIndex(s=>s==2)>-1?2:this.codeType.findIndex(s=>s==1)>-1?1:-1;if(this.activeOrgType===1)return this.codeType.findIndex(s=>s==6)>-1?6:this.codeType.findIndex(s=>s==5)>-1?5:-1}},mounted(){this.isTitle&&(document.title=this.getTitle),v(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const s=v(this.checkedJson)?[]:this.checkedJson.map(c=>({type:c.orgRecordsType,id:c.id,name:c.name,ancestors:c.ancestors,ancestorNames:c.ancestorNames,subjectId:c.subjectId,phone:v(c.phone)?"":c.phone,sex:c.sex,avatar:c.avatar,uid:v(c.uid)?"":c.uid}));if(v(this.businessId))return this.$emit("callback",s);const i={businessId:this.businessId,orgRecords:this.checkedJson.map(c=>({type:c.orgRecordsType,bizId:c.id,ancestors:c.ancestors,ancestorNames:c.ancestorNames,uid:c.uid}))};this.isLoading=!0,this.businessCallack(s).then(c=>{c&&this.request.post("/auth/component/org/save",i).then(r=>{r.code===200&&this.$emit("callback",s)}).finally(()=>{this.isLoading=!1})}).catch(c=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){switch(this.activeOrgType){case 0:this.itemId="";break;case 1:this.deptId=0,this.subjectId="";break}this.getSearch(()=>{this.isQuery=v(this.keyword)})},handleOrgType(s){this.activeOrgType=s,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(s){(this.isShowDept?this.entityJson:this.entityJson.filter(i=>i.type!=2)).forEach(i=>this.handleCheckbox(s,i))},handleCheckbox(s,i){if(i.isDisabled||i.isNoDelete||(i.type==1||i.type==5)&&!this.isShowSubject||i.type==2&&!this.isShowDept)return!1;if(s.currentTarget.checked){if(this.checkedJson.findIndex(A=>A.uniqueId===i.uniqueId)!=-1)return!1;const c=i.type==1?"0":i.ancestors,r=i.type==1?"":i.ancestorNames,p=this.isDept&&this.isSon&&i.type==2?"4":i.type,f={...i,ancestors:c,ancestorNames:r,orgRecordsType:p};return(i.type==1||p==4)&&(this.checkedJson=this.checkedJson.filter(A=>A.ancestors.indexOf(i.id)===-1)),this.getBoolChecked(i)?(s.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(s.currentTarget.checked=!1,new en().message({content:`\u6700\u591A\u9009\u62E9${this.maxMultiple}\u9879\u3001\u8BF7\u79FB\u9664\u540E\u518D\u8FDB\u884C\u9009\u62E9`,type:"warning"}),!1):(this.multiple?this.checkedJson.push(f):this.checkedJson=[f],!1)}this.checkedJson=this.checkedJson.filter(c=>c.uniqueId!==i.uniqueId)},handleBreadcrumb(s,i){if(s.disable||i+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=i===0?this.deptCode:i===1&&v(this.deptCode)?0:s.value,this.itemId="",this.subjectId=s.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=v(this.itemCode)?s.value==="-1"?"":s.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((c,r)=>r<i+1)})},handleLevel(s){if(s.isDisabled||s.isLevel)return!1;switch(s.type){case"1":this.deptId=0,this.subjectId=s.id,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break;case"2":this.deptId=s.id,this.subjectId=this.breadcrumb_subjectId,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break;case"5":this.deptId=0,this.subjectId="",this.itemId=s.id,this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break}},getBoolChecked(s){if(s.type!=3)return!1;const i=s.ancestors.split(","),c=this.checkedJson.filter(p=>p.type==2||p.type==1).find(p=>i.indexOf(p.id)>-1);let r=!1;return v(c)||(c.type==1&&(new en().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),r=!0),c.type==4&&(new en().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),r=!0)),r},defaultData(){this.deptId=this.deptCode,this.subjectId="",this.itemId=this.itemCode,this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1,this.activeOrgType=this.isOrgType?0:this.isOrgGroup?1:"",this.defaultBreadcrumb()},defaultBreadcrumb(){const s=this.activeOrgType===0?"\u7EC4\u7EC7":this.activeOrgType===1?"\u7FA4\u7EC4":"";this.breadcrumb=v(this.deptCode)&&v(this.itemCode)?[{name:s,value:"-1"}]:[]},defaultGet(){this.defaultData(),v(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const s=this.entityJson.filter(c=>c.type==2),i=this.checkedJson.filter(c=>c.type==2);this.isSon=i.findIndex(c=>s.findIndex(r=>r.id===c.id&&c.orgRecordsType==4)>-1)>-1},getCheckedAll(){const s=this.entityJson.findIndex(i=>this.checkedJson.findIndex(c=>c.type===i.type&&c.id===i.id&&i.subjectId===c.subjectId)===-1);this.checkedAll=s===-1},getSearch(s=()=>{}){const i={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:this.showType,orgType:this.activeOrgType,itemId:this.itemId};v(i.deptId)&&delete i.deptId,v(i.subjectId)&&delete i.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:i}).then(c=>{s(),this.jsonData=v(c.data)||c.code!==200?[]:c.data;const r=this.breadcrumb.filter(p=>p.value!=="-1");if(!v(this.jsonData)&&v(r)&&(!v(this.deptCode)||!v(this.itemCode)||!v(this.subjectName))){const p=c.data[0];let f=p.ancestors.split(",");v(this.itemCode)||f.pop(),this.breadcrumb=f.map((A,C)=>({value:A,name:p.ancestorNames.split("/")[C],disable:C!==f.length-1&&f.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(s=()=>{}){if(v(this.businessId))return s(),!1;const i={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:i}).then(c=>{this.checkedJson=v(c.data)||c.code!==200?[]:c.data.map(r=>{const p=r.type==4?"2":r.type,f=r.type==1?"":r.ancestors,A=f+r.bizId+"__"+p,C=this.isNoDelete.findIndex(N=>N.id===r.id||N.uid===r.uid)>-1;return{...r,ancestors:f,id:r.bizId,type:p,uniqueId:A,orgRecordsType:r.type,iconName:qs(r.name,2),sex:r.sex,uid:v(r.uid)?"":r.uid,avatar:v(r.avatar)?"":r.avatar,isNoDelete:C}}),s()})},getCards(s=()=>{}){if(v(this.checkedArray))return s(),this.checkedJson=[];const i=this.checkedArray.map(c=>({type:c.type,id:v(c.id)?null:c.id,uid:v(c.uid)?null:c.uid,subjectId:v(c.subjectId)?null:c.subjectId,deptId:v(c.deptId)?null:c.deptId,itemId:v(c.itemId)?null:c.itemId,orgIds:v(this.orgType)?[0]:this.orgType}));this.request.post("/auth/component/org/cards",{params:i}).then(c=>{this.checkedJson=v(c.data)||c.code!==200?[]:c.data.map(r=>{const p=r.type==4?"2":r.type,f=r.type==1?"":r.ancestors,A=r.type==1?"":r.ancestorNames,C=f+r.id+"__"+p,N=this.isNoDelete.findIndex(g=>g.id===r.id||g.uid===r.uid)>-1;return{...r,ancestors:f,ancestorNames:A,id:r.id,type:p,uniqueId:C,orgRecordsType:r.type,iconName:qs(r.name,2),sex:r.sex,uid:v(r.uid)?"":r.uid,avatar:v(r.avatar)?"":r.avatar,isNoDelete:N}}),s()})},getByName(s=()=>{}){const i={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:i}).then(c=>{console.log("getByName",c),c.code===200&&(this.subjectId=c.data,s())})}}}),ff={class:"departPerson-main"},Af={class:"deper-top"},gf={key:0,class:"deper-nav"},kf={class:"deper-query"},yf=a.createElementVNode("i",{class:"icon-chaxun iconfont chaxun"},null,-1),Ef={key:1,class:"deper-breadcrumb"},Cf=["onClick"],Bf=a.createElementVNode("i",{class:"icon-jiantouyou iconfont"},null,-1),If={key:2,class:"deper-all"},Nf=a.createElementVNode("label",{class:"label",for:"deper-all"},"\u5168\u9009",-1),bf={key:0,class:"deper-c-depart"},vf=["disabled","onUpdate:modelValue","onChange"],wf={class:"depart-name"},Vf={class:"name"},Tf={key:0,class:"number"},Sf={class:"label"},Df={key:1,class:"number"},Qf=["onClick"],Of=[a.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),a.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],Ff={key:1,class:"deper-c-depart"},xf=["disabled","onUpdate:modelValue","onChange"],Uf={class:"depart-name"},Jf={class:"name"},Pf={key:0,class:"number"},Mf={class:"label"},Lf={key:1,class:"number"},Gf=["onClick"],Rf=[a.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),a.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],jf={key:2,class:"deper-c-user"},Kf=["disabled","onUpdate:modelValue","onChange"],Yf={class:"user-icon"},Hf={key:0},zf=["src"],Wf={class:"user-name"},Zf={class:"span"},Xf={class:"phone"},_f={class:"deper-search-section"},qf={class:"search-user"},$f=a.createElementVNode("div",{class:"search-title"},"\u8054\u7CFB\u4EBA",-1),eA=["onUpdate:modelValue","disabled","onChange"],tA={class:"user-icon"},sA={class:"user-name"},nA={class:"span"},oA={class:"phone"},aA={class:"txt"},iA={key:2,class:"deper-son"},lA=a.createElementVNode("span",null,"\u5305\u542B\u5B50\u7EA7",-1),cA={class:"deper-bottom"},rA={key:0,class:"icon-jiantouyou iconfont"};function dA(s,i,c,r,p,f){const A=a.resolveComponent("dc-switch"),C=a.resolveComponent("checked"),N=a.resolveComponent("dcLoading");return a.openBlock(),a.createElementBlock("main",ff,[a.createElementVNode("div",Af,[s.orgType.length>1?(a.openBlock(),a.createElementBlock("div",gf,[s.isOrgType?(a.openBlock(),a.createElementBlock("div",{key:0,onClick:i[0]||(i[0]=g=>s.handleOrgType(0)),class:a.normalizeClass([{active:s.activeOrgType===0},"deper-n-item"])},"\u7EC4\u7EC7",2)):a.createCommentVNode("",!0),s.isOrgGroup?(a.openBlock(),a.createElementBlock("div",{key:1,onClick:i[1]||(i[1]=g=>s.handleOrgType(1)),class:a.normalizeClass([{active:s.activeOrgType===1},"deper-n-item"])},"\u7FA4\u7EC4",2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",kf,[a.createElementVNode("form",{class:"form",onSubmit:i[5]||(i[5]=a.withModifiers(()=>{},["prevent"])),action:"javascript: void(0);"},[yf,a.withDirectives(a.createElementVNode("input",{class:"input",onKeyup:i[2]||(i[2]=a.withKeys((...g)=>s.handleQuery&&s.handleQuery(...g),["enter"])),"onUpdate:modelValue":i[3]||(i[3]=g=>s.keyword=g),type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},null,544),[[a.vModelText,s.keyword]]),s.keyword.length>0?(a.openBlock(),a.createElementBlock("i",{key:0,onClick:i[4]||(i[4]=(...g)=>s.handleEmpty&&s.handleEmpty(...g)),class:"icon-error-fill iconfont close"})):a.createCommentVNode("",!0)],32)],512),[[a.vShow,s.isShowQuery]]),s.isQuery?(a.openBlock(),a.createElementBlock("div",Ef,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.breadcrumb,(g,w)=>(a.openBlock(),a.createElementBlock("div",{onClick:B=>s.handleBreadcrumb(g,w),key:g.value,class:a.normalizeClass([{disable:g.disable},"deper-b-item"])},[a.createElementVNode("span",null,a.toDisplayString(g.name),1),Bf],10,Cf))),128))])):a.createCommentVNode("",!0),s.isQuery?(a.openBlock(),a.createElementBlock("div",If,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":i[6]||(i[6]=g=>s.checkedAll=g),onChange:i[7]||(i[7]=(...g)=>s.handleAllCheckbox&&s.handleAllCheckbox(...g)),class:"deper-checkbox",type:"checkbox",name:"deper-all",id:"deper-all"},null,544),[[a.vModelCheckbox,s.checkedAll]]),Nf])):a.createCommentVNode("",!0)]),s.isQuery?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({height:s.getHight}),class:"deper-center"},[s.companyJson.length>0?(a.openBlock(),a.createElementBlock("div",bf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.companyJson,g=>(a.openBlock(),a.createElementBlock("div",{key:g.uniqueId,class:"depart-item"},[a.createElementVNode("label",{class:a.normalizeClass([{width:s.isNotLevel,isNoDelete:g.isNoDelete},"depart-left"])},[a.withDirectives(a.createElementVNode("input",{disabled:g.isDisabled||g.isNoDelete,"onUpdate:modelValue":w=>g.checked=w,onChange:w=>s.handleCheckbox(w,g),class:"deper-checkbox",type:"checkbox"},null,40,vf),[[a.vShow,s.isShowSubject],[a.vModelCheckbox,g.checked]]),a.createElementVNode("div",wf,[a.createElementVNode("div",Vf,a.toDisplayString(g.name),1),g.num>0?(a.openBlock(),a.createElementBlock("div",Tf,[a.createTextVNode("("),a.createElementVNode("label",Sf,a.toDisplayString(g.num)+"/"+a.toDisplayString(g.counts),1),a.createTextVNode(")")])):(a.openBlock(),a.createElementBlock("div",Df,"("+a.toDisplayString(g.counts)+")",1))])],2),!s.isNotLevel&&g.counts>0?(a.openBlock(),a.createElementBlock("div",{key:0,onClick:w=>s.handleLevel(g),class:a.normalizeClass([{isdisabled:g.isLevel},"depart-right"])},Of,10,Qf)):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),s.deptJson.length>0?(a.openBlock(),a.createElementBlock("div",Ff,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.deptJson,g=>(a.openBlock(),a.createElementBlock("div",{key:g.uniqueId,class:"depart-item"},[a.createElementVNode("label",{class:a.normalizeClass([{isNoDelete:g.isNoDelete},"depart-left"])},[a.withDirectives(a.createElementVNode("input",{disabled:g.isDisabled||g.isNoDelete,"onUpdate:modelValue":w=>g.checked=w,onChange:w=>s.handleCheckbox(w,g),class:"deper-checkbox",type:"checkbox"},null,40,xf),[[a.vShow,s.isShowDept],[a.vModelCheckbox,g.checked]]),a.createElementVNode("div",Uf,[a.createElementVNode("div",Jf,a.toDisplayString(g.name),1),g.num>0?(a.openBlock(),a.createElementBlock("div",Pf,[a.createTextVNode("("),a.createElementVNode("label",Mf,a.toDisplayString(g.num)+"/"+a.toDisplayString(g.counts),1),a.createTextVNode(")")])):(a.openBlock(),a.createElementBlock("div",Lf,"("+a.toDisplayString(g.counts)+")",1))])],2),g.counts>0?(a.openBlock(),a.createElementBlock("div",{key:0,onClick:w=>s.handleLevel(g),class:a.normalizeClass([{isdisabled:g.isLevel},"depart-right"])},Rf,10,Gf)):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),s.userJson.length>0?(a.openBlock(),a.createElementBlock("div",jf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.userJson,g=>(a.openBlock(),a.createElementBlock("label",{key:g.uniqueId,class:a.normalizeClass([{isNoDelete:g.isNoDelete},"user-item"])},[a.withDirectives(a.createElementVNode("input",{disabled:g.isDisabled||g.isNoDelete,"onUpdate:modelValue":w=>g.checked=w,onChange:w=>s.handleCheckbox(w,g),class:"deper-checkbox",type:"checkbox"},null,40,Kf),[[a.vModelCheckbox,g.checked]]),a.createElementVNode("div",Yf,[g.avatar.length<1?(a.openBlock(),a.createElementBlock("span",Hf,a.toDisplayString(g.iconName),1)):(a.openBlock(),a.createElementBlock("img",{key:1,src:g.avatar},null,8,zf))]),a.createElementVNode("div",Wf,[a.createElementVNode("div",Zf,a.toDisplayString(g.name),1),a.createElementVNode("div",Xf,a.toDisplayString(g.phone),1)])],2))),128))])):a.createCommentVNode("",!0)],4)):(a.openBlock(),a.createElementBlock("div",{key:1,style:a.normalizeStyle({height:s.getSearchHight}),class:"deper-search"},[a.createCommentVNode("",!0),a.createElementVNode("div",_f,[a.createCommentVNode("",!0),a.createElementVNode("div",qf,[$f,(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.userJson,g=>(a.openBlock(),a.createElementBlock("label",{key:g.uniqueId,class:"user-item"},[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":w=>g.checked=w,disabled:g.isDisabled,onChange:w=>s.handleCheckbox(w,g),class:"deper-checkbox",type:"checkbox"},null,40,eA),[[a.vModelCheckbox,g.checked]]),a.createElementVNode("div",tA,[a.createElementVNode("span",null,a.toDisplayString(g.iconName),1)]),a.createElementVNode("div",sA,[a.createElementVNode("div",nA,a.toDisplayString(g.name),1),a.createElementVNode("div",oA,a.toDisplayString(g.phone),1),a.createElementVNode("div",aA,a.toDisplayString(g.ancestorNames),1)])]))),128))])])],4)),s.isDept?(a.openBlock(),a.createElementBlock("div",iA,[lA,a.createVNode(A,{modelValue:s.isSon,name:"isSone"},null,8,["modelValue"])])):a.createCommentVNode("",!0),a.createElementVNode("div",cA,[a.createElementVNode("div",{onClick:i[8]||(i[8]=g=>s.isShowChecked=!0),class:"deper-b-checked"},[a.createElementVNode("span",null,a.toDisplayString(s.checkedNumber),1),s.checkedNumber.length>0?(a.openBlock(),a.createElementBlock("i",rA)):a.createCommentVNode("",!0)]),a.createElementVNode("div",{onClick:i[9]||(i[9]=(...g)=>s.handleSubmit&&s.handleSubmit(...g)),class:"deper-b-btn"},"\u786E\u5B9A")]),a.createVNode(C,{visible:s.isShowChecked,checkedJson:s.checkedJson},{user:a.withCtx(({item:g})=>[a.renderSlot(s.$slots,"checkedUser",{item:g})]),_:3},8,["visible","checkedJson"]),s.isLoading?(a.openBlock(),a.createBlock(N,{key:3})):a.createCommentVNode("",!0)])}const pA=qt(mf,[["render",dA]]);o.departPerson=pA,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(ue,ue.exports);const Yc=pe({name:"TopSubmitPopup",components:{TopPopup:ee,TopDownSelect:io,PreviewImage:vs,departPerson:ue.exports.departPerson,TopTips:he},props:{visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:"0",request:this.request,codeType:[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:""}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),this.handleOption()},immediate:!0},businessType:{handler(e,n){this.businessTypeData=e},immediate:!0},id:{handler(e,n){this.idData=e},immediate:!0},processName:{handler(e,n){this.processNameData=e},immediate:!0},title:{handler(e,n){this.titleData=e},immediate:!0},todoParameter:{handler(e,n){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,n){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option))},immediate:!0,deep:!0},resubmit:{handler(e,n){e&&this.getProcessInstance()}}},methods:{async handleOption(){this.selfList&&this.selfList.length||await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())})},async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id)})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(n=>{n.code===200?(this.firstPerson=n.data,this.getAfferentParticipantNodeList()):(this.firstPerson=[],this.getAfferentParticipantNodeList())}).catch(n=>{this.firstPerson=[],this.getAfferentParticipantNodeList()})},async handleChange(e,n){this.handleTips("",!0,"loading"),console.log("\u5F53\u524D\u9009\u62E9::::",e,n),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",e,n),this.$refs.topTips.handleClose()},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(console.log("\u9009\u4E2D\u8282\u70B9L::",this.personList,this.firstPerson),this.personList=e.data.filter(n=>!this.firstPerson.some(o=>o.id==n.id))),this.$emit("change",this.checkedItem,this.option))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:[]},console.log(this.multiNodeParticipant[e.id]),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let n;e.routeTxt.departmentIds.map((o,a)=>{n=o.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:n,multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality)},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:n})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;e.routeTxt.companyIds.map((o,a)=>{n=o.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:n},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:this.handleLastStr(o.ancestors,o.subjectId),subjectName:o.ancestorNames.slice(0,o.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}},handleCallback(e){console.log("\u53C2\u6570::::",e),this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?n.ancestorNames.slice(0,n.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,n){return e.split(",")[e.split(",").length-1]!==n?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&this.firstPerson[0].routeTxt.userNames&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})},handleSongshen(){if(this.handleTips("",!0,"loading"),this.resubmit)this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")});else{let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};console.log("\u9A8C\u8BC1\u6761\u4EF6::",e,"this:::",this),this.request.post("/aws/pis/createAndStart",e).then(n=>{n.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):n.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(o=>{o.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(o.msg,!0,"error")}).catch(o=>{this.handleTips(o.msg,!0,"error")}):this.handleTips(n.msg,!0,"error")}).catch(n=>{this.handleTips(n.msg,!0,"error")})}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),vA="",Hc=e=>(t.pushScopeId("data-v-04d02d4c"),e=e(),t.popScopeId(),e),zc={key:1,class:"person-views"},Wc={class:"views-items"},Zc={class:"views-items-name"},Xc=Hc(()=>t.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),_c={class:"views-items-set"},qc={key:0},$c={key:0},er={key:1},tr={key:2},sr=["onClick"],nr={key:2,class:"person-views"},or={class:"views-items"},ar={class:"views-items-name"},ir={class:"views-items-set"},lr={key:0},cr={key:0},rr={key:1},dr=["onClick"],pr={key:3,class:"person-views-white"},hr={class:"person-btn"};function ur(e,n,o,a,l,d){const u=t.resolveComponent("TopDownSelect"),k=t.resolveComponent("TopPopup"),y=t.resolveComponent("departPerson"),E=t.resolveComponent("PreviewImage"),h=t.resolveComponent("TopTips");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(k,{visible:e.show,"onUpdate:visible":n[2]||(n[2]=m=>(e.show=m,e.$emit("update:visible",m))),ref:"TopPopup",titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[t.createVNode(u,{option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue},null,8,["option","onChange","defaultValue"]),e.checkedItem.id?(t.openBlock(),t.createElementBlock("div",{key:0,class:"viewTrack",onClick:n[0]||(n[0]=m=>e.taskurlshow=!0)}," \u67E5\u770B\u6D41\u7A0B\u56FE ")):t.createCommentVNode("",!0),e.firstPerson&&e.firstPerson.length?(t.openBlock(),t.createElementBlock("div",zc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.firstPerson,(m,I)=>(t.openBlock(),t.createElementBlock("div",Wc,[t.createElementVNode("div",Zc,[t.createTextVNode(t.toDisplayString(m.name)+" ",1),Xc]),t.createElementVNode("div",_c,[e.partNode[m.id]&&e.partNode[m.id].length?(t.openBlock(),t.createElementBlock("div",qc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[m.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T>=3?"":T==0?b:`,${b}`),1))),256)),e.partNode[m.id].length>3?(t.openBlock(),t.createElementBlock("span",$c,"...\u7B49"+t.toDisplayString(e.partNode[m.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):m.routeTxt&&m.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",er,t.toDisplayString(m.routeTxt.userNames),1)):t.createCommentVNode("",!0),m.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"?(t.openBlock(),t.createElementBlock("div",tr)):(t.openBlock(),t.createElementBlock("div",{key:3,class:"views-items-set-btn",onClick:b=>e.handleOpenPerson(m)}," \u8BBE\u7F6E ",8,sr))])]))),256))])):t.createCommentVNode("",!0),e.personList&&e.personList.length?(t.openBlock(),t.createElementBlock("div",nr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.personList,(m,I)=>(t.openBlock(),t.createElementBlock("div",or,[t.createElementVNode("div",ar,t.toDisplayString(m.name),1),t.createElementVNode("div",ir,[e.partNode[m.id]&&e.partNode[m.id].length?(t.openBlock(),t.createElementBlock("div",lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[m.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T>=3?"":T==0?b:`,${b}`),1))),256)),e.partNode[m.id].length>3?(t.openBlock(),t.createElementBlock("span",cr,"...\u7B49"+t.toDisplayString(e.partNode[m.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",rr)),t.createElementVNode("div",{class:"views-items-set-btn",onClick:b=>e.handleOpenPerson(m)}," \u8BBE\u7F6E ",8,dr)])]))),256))])):t.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(t.openBlock(),t.createElementBlock("div",pr," \u65E0\u9700\u8BBE\u7F6E ")):t.createCommentVNode("",!0),t.createElementVNode("div",hr,[t.createElementVNode("div",{class:"top-button",style:{"background-color":"#3c9cff",color:"#fff"},onClick:n[1]||(n[1]=(...m)=>e.handleSumbit&&e.handleSumbit(...m))}," \u9001\u5BA1 ")])]),_:1},8,["visible"]),t.createVNode(k,{visible:e.visiblePerson,"onUpdate:visible":n[3]||(n[3]=m=>e.visiblePerson=m),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:t.withCtx(()=>[t.createVNode(y,t.mergeProps({isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),t.createVNode(E,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":n[4]||(n[4]=m=>e.taskurlshow=m),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),t.createVNode(h,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const lo=M(Yc,[["render",ur],["__scopeId","data-v-04d02d4c"]]),mr="data:image/png;base64,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",fr=pe({name:"attchViews",components:{TopTips:he,PreviewImage:vs,PreView:Zn,TopPopup:ee},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,n){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return mr},del(){return Xn},doc(){return _n},file(){return qn},image(){return $n},pdf(){return eo},xls(){return to},zip(){return so}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const o=Array.from(e.target.files);document.getElementById("fileUp").value="";let a=0,l=this.haveCount>o.length?o.length:this.haveCount;try{for(let d=0;d<l;d++)if(this.extension.includes(o[d].name.substring(o[d].name.lastIndexOf(".")+1))){const u=new FormData;u.append("file",o[d]);const k=await this.request.post("/file/upload",u,{headers:{"Content-Type":"multipart/form-data"}});if(k.code===200){if(this.filesArr.length>0){for(let y=0;y<this.filesArr.length;y++)if(k.originFileName==this.filesArr[y].originFileName&&a++,this.filesArr[y].originFileName.includes(`(${a})`)&&a++,a>0){let E=k.originFileName.lastIndexOf(".");k.originFileName=`${k.originFileName.substring(0,E)} (${a}) .${k.originFileName.substring(k.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(k.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${o[d].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,n){if(this.deletFn){if(this.deletFn(n)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,n){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(e.url)):e.url&&(this.visibleS=!0,this.fileUrl=e.url)},viewImage(){this.lists=[];let e=[];this.filesArr.map((n,o)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))),e.forEach((n,o)=>{this.lists.push(n.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),wA="",Ar={class:"attch-upload"},gr={key:0,class:"attch-upload-mask"},kr={class:"attch-upload-body"},yr={class:"upload-header"},Er={class:"upload-header-title"},Cr={key:0,class:"upload-header-title--re"},Br={class:"upload-header-upload"},Ir=["src"],Nr={class:"upload-body"},br={key:0,class:"upload-list"},vr={class:"list-items-icon"},wr=["src"],Vr=["src"],Tr=["src"],Sr=["src"],Dr=["src"],Qr=["src"],Or={class:"list-items-info"},Fr={class:"info-name"},xr={class:"info-attribute"},Ur={class:"info-attribute-size"},Jr=["onClick"],Pr={key:0,class:"list-items-operation"},Mr=["onClick"],Lr=["src"];function Gr(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("PreviewImage"),y=t.resolveComponent("PreView"),E=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",Ar,[e.buttonLoading?(t.openBlock(),t.createElementBlock("div",gr)):t.createCommentVNode("",!0),t.createElementVNode("div",kr,[t.createElementVNode("div",yr,[t.createElementVNode("div",Er,[t.createTextVNode(" \u9644\u4EF6 "),e.requires?(t.openBlock(),t.createElementBlock("span",Cr,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Br,[e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:n[0]||(n[0]=(...h)=>e.handleClick&&e.handleClick(...h))},[t.createElementVNode("img",{src:e.addFile},null,8,Ir),t.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),t.createElementVNode("div",Nr,[e.filesArr.length>0?(t.openBlock(),t.createElementBlock("div",br,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filesArr,(h,m)=>(t.openBlock(),t.createElementBlock("div",{class:"list-items",key:h.uuid},[t.createElementVNode("div",vr,[e.xlsIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,wr)):e.imgIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Vr)):h.name.substring(h.name.lastIndexOf(".")+1)=="pdf"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Tr)):e.docIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Sr)):e.zipIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Dr)):(t.openBlock(),t.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Qr))]),t.createElementVNode("div",Or,[t.createElementVNode("div",Fr,t.toDisplayString(h.originFileName),1),t.createElementVNode("div",xr,[t.createElementVNode("span",Ur,t.toDisplayString(h.fileSize<1024?h.fileSize:h.fileSize/1024>1024?parseFloat((h.fileSize/1024/1024).toFixed(2)):parseFloat((h.fileSize/1024).toFixed(2)))+t.toDisplayString(h.fileSize<1024?"b":parseFloat((h.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),t.createElementVNode("span",{class:"info-attribute-views",onClick:I=>e.viewFile(h,m)}," \u9884\u89C8 ",8,Jr)])]),e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Pr,[t.createElementVNode("div",{onClick:I=>e.handleDel(m,h),class:"list-items-operation-img"},[t.createElementVNode("img",{src:e.del},null,8,Lr)],8,Mr)]))]))),128))])):t.createCommentVNode("",!0)])]),t.createVNode(u,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{images:e.lists,visible:e.visible,"onUpdate:visible":n[1]||(n[1]=h=>e.visible=h),indexd:e.indexd},null,8,["images","visible","indexd"]),t.createVNode(E,{visible:e.visibleS,"onUpdate:visible":n[2]||(n[2]=h=>e.visibleS=h),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[t.createVNode(y,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"])])}const ve=M(fr,[["render",Gr],["__scopeId","data-v-2fb31c81"]]),VA="",Rr={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/createDynamicTask",{title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,participant:e,processInstId:this.param.processInstId,adHocType:2,parentTaskInstId:this.param.taskInstId,reason:this.commentMsg}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},tt=e=>(t.pushScopeId("data-v-594ff303"),e=e(),t.popScopeId(),e),jr={class:"process-popup-content"},Kr=tt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Yr={class:"process-pc-value"},Hr={class:"process-popup-textarea"},zr=tt(()=>t.createElementVNode("div",null,[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Wr=["onClick"],Zr={class:"process-pc-value--people"},Xr={key:0,class:"process-pc-value--data"},_r={key:1,class:"process-pc-value--data",style:{color:"#888"}},qr=[tt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],$r={class:"process-pc-label"},ed=tt(()=>t.createElementVNode("br",null,null,-1)),td=tt(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),sd=["onClick"],nd={class:"process-pc-value--people"},od={key:0,class:"process-pc-value--data"},ad={key:1,class:"process-pc-value--data",style:{color:"#888"}},id=[tt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function ld(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",jr,[Kr,t.createElementVNode("div",Yr,[t.createElementVNode("div",Hr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=h=>l.commentMsg=h),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[zr,t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Zr,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Xr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T==0?b:`,${b}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",_r,qr))])],8,Wr)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption(h.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",$r,[t.createTextVNode(t.toDisplayString(h.name)+" ",1),ed,t.createTextVNode(" \u5BA1\u6279\u4EBA "),td]),t.createElementVNode("div",{class:"process-pc-value",onClick:m=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",nd,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",od,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(m,I)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(I==0?m:`,${m}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",ad,id))])],8,sd)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="5"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const cd=M(Rr,[["render",ld],["__scopeId","data-v-594ff303"]]),DA="",rd={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Re=e=>(t.pushScopeId("data-v-16f43124"),e=e(),t.popScopeId(),e),dd={class:"process-popup-content"},pd=Re(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),hd={class:"process-pc-value"},ud={class:"process-popup-textarea"},md=Re(()=>t.createElementVNode("br",null,null,-1)),fd=Re(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ad=["onClick"],gd={class:"process-pc-value--people"},kd={key:0,class:"process-pc-value--data"},yd={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ed=[Re(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Cd={class:"process-pc-label"},Bd=Re(()=>t.createElementVNode("br",null,null,-1)),Id=Re(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Nd=["onClick"],bd={class:"process-pc-value--people"},vd={key:0,class:"process-pc-value--data"},wd={key:1,class:"process-pc-value--data",style:{color:"#888"}},Vd=[Re(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Td(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",dd,[pd,t.createElementVNode("div",hd,[t.createElementVNode("div",ud,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=h=>l.commentMsg=h),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),md,t.createTextVNode(" \u5BA1\u6279\u4EBA "),fd]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",gd,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",kd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T==0?b:`,${b}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",yd,Ed))])],8,Ad)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption(h.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Cd,[t.createTextVNode(t.toDisplayString(h.name)+" ",1),Bd,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Id]),t.createElementVNode("div",{class:"process-pc-value",onClick:m=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",bd,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",vd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(m,I)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(I==0?m:`,${m}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",wd,Vd))])],8,Nd)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Sd=M(rd,[["render",Td],["__scopeId","data-v-16f43124"]]),Dd="data:image/png;base64,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",FA="",xA="",Qd={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},computed:{check(){return ao},checkS(){return Dd}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{},personMake:[],personMakeList:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,console.log("param:::",e),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(o=>{o.type!=="endEvent"&&(o.userTaskModelDTO={name:o.name,humanPerformer:{name:o.humanPerformerName}},o.humanPerformer={name:o.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((o,a)=>{o.type!=="endEvent"&&(o.userTaskModelDTO.participantList&&o.userTaskModelDTO.participantList.length&&o.userTaskModelDTO.participantList.map(l=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(l.id)||this.multiNodeParticipant[o.id].push(l.id),this.partNode[o.id].includes(l.name)||this.partNode[o.id].push(l.name)}),o.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"&&this.personMake.push(o.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(o=>{o.code==200&&(this.personMakeList=o.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((o,a)=>{o.type!=="endEvent"&&o.participantList&&o.participantList.length&&o.participantList.map(l=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(l.id)||this.multiNodeParticipant[o.id].push(l.id),this.partNode[o.id].includes(l.name)||this.partNode[o.id].push(l.name)})}),console.log("userTaskModelDTO",this.multiNodeParticipant),console.log("outGatewayUserTaskModel",this.outGatewayUserTaskModel)},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(e){this.radioCheckNameList.includes(e)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e),1):this.radioCheckNameList.push(e)},handleNode(e){this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length&&(e={...e,...e.userTaskModelDTO}),console.log("partNode",this.partObjId,e),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((a,l)=>{n=a.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((a,l)=>{o.push({type:3,uid:a})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[];e.routeTxt.departmentIds.map((a,l)=>{n=a.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((a,l)=>{o.push({type:3,uid:a,deptId:n})}),console.log("multiNodeParticipant",this.multiNodeParticipant[e.id],o),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),deptCode:n,checkedArray:o}}else{let n=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((o,a)=>{n.push({type:3,uid:o})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:n},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let n=0;if(this.radioCheckNameList.map((o,a)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&(n+=1),e[o]=this.multiNodeParticipant[o]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(n=>{if(n.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ie=e=>(t.pushScopeId("data-v-e9280a36"),e=e(),t.popScopeId(),e),Od={class:"process-popup-content"},Fd={key:0,class:"process-pc-label"},xd={key:1,class:"process-pc-value",style:{display:"flex"}},Ud=ie(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Jd={class:"process-pc-value"},Pd={class:"process-popup-textarea"},Md={class:"process-pc-label"},Ld=ie(()=>t.createElementVNode("br",null,null,-1)),Gd=ie(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Rd=["onClick"],jd={class:"process-pc-value--people"},Kd={key:0,class:"process-pc-value--data"},Yd={key:1,class:"process-pc-value--data",style:{color:"#888"}},Hd=[ie(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],zd={key:2,class:"process-pc-value--data"},Wd={key:1,class:"process-pc-label"},Zd={key:0},Xd={class:"process-pc-label"},_d=ie(()=>t.createElementVNode("br",null,null,-1)),qd=ie(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),$d=["onClick"],ep={class:"process-pc-value--people"},tp={key:0,class:"process-pc-value--data"},sp={key:1,class:"process-pc-value--data",style:{color:"#888"}},np=[ie(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],op={key:1,class:"process-pc-label"},ap=ie(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ip={class:"process-pc-value"},lp={class:"process-radio"},cp=["onClick"],rp=["src"],dp=["onClick"],pp={class:"process-checkbox"},hp=ie(()=>t.createElementVNode("br",null,null,-1)),up={class:"process-checkbox-item"},mp=["src"],fp=["onClick"],Ap={class:"process-pc-value--people"},gp={key:0,class:"process-pc-value--data"},kp={key:1,class:"process-pc-value--data",style:{color:"#888"}},yp=[ie(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Ep=ie(()=>t.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),Cp={class:"process-pc-value"};function Bp(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Od,[o.param.isDocument?(t.openBlock(),t.createElementBlock("div",Fd," \u5FEB\u6377\u56DE\u590D ")):t.createCommentVNode("",!0),o.param.isDocument?(t.openBlock(),t.createElementBlock("div",xd,[t.createElementVNode("div",{class:"process-tag",onClick:n[0]||(n[0]=()=>l.commentMsg="\u540C\u610F")}," \u540C\u610F "),t.createElementVNode("div",{class:"process-tag",onClick:n[1]||(n[1]=()=>l.commentMsg="\u5982\u62DF")}," \u5982\u62DF "),t.createElementVNode("div",{class:"process-tag",onClick:n[2]||(n[2]=()=>l.commentMsg="\u5DF2\u9605")}," \u5DF2\u9605 ")])):t.createCommentVNode("",!0),Ud,t.createElementVNode("div",Jd,[t.createElementVNode("div",Pd,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[3]||(n[3]=h=>l.commentMsg=h),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Md,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),Ld,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Gd])]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h)},[t.createElementVNode("div",jd,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Kd,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[h.id].join(",")),1)])):h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"?(t.openBlock(),t.createElementBlock("div",Yd,Hd)):h.routeTxt&&h.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",zd,t.toDisplayString(h.routeTxt.userNames),1)):t.createCommentVNode("",!0)])],8,Rd)],64)):h.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",Wd,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),l.personMakeList[h.id]?(t.openBlock(),t.createElementBlock("span",Zd,"\uFF1A"+t.toDisplayString(l.personMakeList[h.id]),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.outGatewayUserTaskModel,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[l.outGatewayUserTaskModel.childNode&&l.outGatewayUserTaskModel.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Xd,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),_d,t.createTextVNode(" \u5BA1\u6279\u4EBA "),qd])]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h)},[t.createElementVNode("div",ep,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",tp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[h.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",sp,np))])],8,$d)],64)):h.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",op,t.toDisplayString(h.userTaskModelDTO.name),1)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[ap,t.createElementVNode("div",ip,[t.createElementVNode("div",lp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.childNode,b=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",b.id==l.radioCheck?"process-radio-item--check":""]),onClick:T=>d.handleNode(b)},[t.createElementVNode("span",null,[b.id==l.radioCheck?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,rp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(b.nodeName),1)],10,cp))),256))])])],64))],64)}),256)),l.radioCheck?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.radioCheckChild&&l.radioCheckChild.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.radioCheckChild,h=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"process-pc-label",onClick:m=>d.handleSaveNode(h.id)},[t.createElementVNode("div",pp,[t.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),hp,t.createElementVNode("div",up,[t.createTextVNode(t.toDisplayString(h.nodeName)+" ",1),t.createElementVNode("span",null,[l.radioCheckNameList.includes(h.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:d.checkS},null,8,mp)):t.createCommentVNode("",!0)])])])],8,dp),t.createElementVNode("div",{class:"process-pc-value",onClick:m=>d.handleOpenPopup(h)},[t.createElementVNode("div",Ap,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",gp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[h.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",kp,yp))])],8,fp)]))),256)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Ep,t.createElementVNode("div",Cp,t.toDisplayString(l.radioCheckName),1)],64))],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(E,{key:3,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Ip=M(Qd,[["render",Bp],["__scopeId","data-v-e9280a36"]]),MA="",Np={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},st=e=>(t.pushScopeId("data-v-9c8b13c5"),e=e(),t.popScopeId(),e),bp={class:"process-popup-content"},vp=st(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),wp={class:"process-pc-value"},Vp={class:"process-popup-textarea"},Tp=st(()=>t.createElementVNode("br",null,null,-1)),Sp=st(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Dp=["onClick"],Qp={class:"process-pc-value--people"},Op={key:0,class:"process-pc-value--data"},Fp={key:1,class:"process-pc-value--data",style:{color:"#888"}},xp=[st(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Up={style:{"font-size":"15px"}},Jp=st(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Pp=[st(()=>t.createElementVNode("div",{class:"process-pc-value--people"},t.toDisplayString(234),-1))];function Mp(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",bp,[vp,t.createElementVNode("div",wp,[t.createElementVNode("div",Vp,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=h=>l.commentMsg=h),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),Tp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Sp]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Qp,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Op,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T==0?b:`,${b}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Fp,xp))])],8,Dp)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption(h.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Up,t.toDisplayString(h.name),1),Jp,t.createElementVNode("div",{class:"process-pc-value",onClick:n[1]||(n[1]=(...m)=>d.handleOpenPopup&&d.handleOpenPopup(...m))},Pp)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[2]||(n[2]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="\u62D2\u7EDD"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Lp=M(Np,[["render",Mp],["__scopeId","data-v-9c8b13c5"]]),RA="",Gp={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson,TopDownSelect:io},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},co=e=>(t.pushScopeId("data-v-72fe01a9"),e=e(),t.popScopeId(),e),Rp={class:"process-popup-content"},jp=co(()=>t.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Kp={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},Yp=co(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Hp={class:"process-pc-value"},zp={class:"process-popup-textarea"};function Wp(e,n,o,a,l,d){const u=t.resolveComponent("TopDownSelect"),k=t.resolveComponent("TopTips"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Rp,[jp,t.createElementVNode("div",Kp,[t.createVNode(u,{option:l.option,onChange:d.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),Yp,t.createElementVNode("div",Hp,[t.createElementVNode("div",zp,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=E=>l.commentMsg=E),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),t.createVNode(k,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),l.labels=="\u9000\u56DE"?(t.openBlock(),t.createBlock(y,{key:0,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Zp=M(Gp,[["render",Wp],["__scopeId","data-v-72fe01a9"]]),jA="",Xp={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),await this.param.request.post("/aws/tis/createCCTask",{processInstId:this.param.processInstId,title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,parentTaskInstId:this.param.taskInstId,participant:e}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ut=e=>(t.pushScopeId("data-v-f5f6d612"),e=e(),t.popScopeId(),e),_p={class:"process-popup-content"},qp=ut(()=>t.createElementVNode("br",null,null,-1)),$p=ut(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),eh=["onClick"],th={class:"process-pc-value--people"},sh={key:0,class:"process-pc-value--data"},nh={key:1,class:"process-pc-value--data",style:{color:"#888"}},oh=[ut(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],ah=ut(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ih=["onClick"],lh={class:"process-pc-value--people"},ch={key:0,class:"process-pc-value--data"},rh={key:1,class:"process-pc-value--data",style:{color:"#888"}},dh=[ut(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function ph(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",_p,[l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),qp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),$p]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",th,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",sh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T==0?b:`,${b}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",nh,oh))])],8,eh)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[ah,t.createElementVNode("div",{class:"process-pc-value",onClick:m=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",lh,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",ch,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(m,I)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(I==0?m:`,${m}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",rh,dh))])],8,ih)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="2"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const hh=M(Xp,[["render",ph],["__scopeId","data-v-f5f6d612"]]),HA="",uh={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(e,n){console.log("handler::::",e),this.getFirstProcessNode=e.getFirstProcessNode,e.getFirstProcessNode&&this.getFirstProcessNode&&(e.getFirstProcessNode.type=="userTask"||e.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.getFirstProcessNode.type=="ExclusiveGatewayModel"||e.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",e).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ws=e=>(t.pushScopeId("data-v-b2c51666"),e=e(),t.popScopeId(),e),mh={class:"process-popup-content"},fh={class:"process-pc-label"},Ah=ws(()=>t.createElementVNode("br",null,null,-1)),gh=ws(()=>t.createElementVNode("div",null,[t.createTextVNode("\u5BA1\u6279\u4EBA"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),kh={class:"process-pc-value--people"},yh={key:0,class:"process-pc-value--data"},Eh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ch=[ws(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Bh(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",mh,[t.createElementVNode("template",null,[t.createElementVNode("div",fh,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(l.getFirstProcessNode.name)+" ",1),Ah,gh])]),t.createElementVNode("div",{class:"process-pc-value",onClick:n[0]||(n[0]=E=>d.handleOpenPopup(l.getFirstProcessNode.id))},[t.createElementVNode("div",kh,[l.partNode[l.getFirstProcessNode.id]&&l.partNode[l.getFirstProcessNode.id].length?(t.openBlock(),t.createElementBlock("div",yh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[l.getFirstProcessNode.id],(E,h)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(h==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Eh,Ch))])])]),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=E=>l.visible=E),titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"])])}const Ih=M(uh,[["render",Bh],["__scopeId","data-v-b2c51666"]]),Nh=pe({name:"TopProcess",components:{TopTab:Ec,TopPopup:ee,TopTips:he,TopSumbitPopup:lo},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:""}},watch:{processInstId:{async handler(e,n){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(o=>{o.code==200&&(this.trackUrl=o.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(o=>{o.code==200&&(this.trackList=o.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(o=>{o.code==200&&(this.taskCommentList=o.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(o=>{o.code==200&&(this.ProcessInsObj=o.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(o=>{if(o.code==200)if(this.taskNode=o.data,this.taskNodeList=o.data,this.taskNodeList.length==1){if(this.taskNodeList[0].taskState==4)return this.taskState=4,!1;this.taskNodeList[0].taskState==11&&(this.taskState=11),this.taskNodeList[0].taskId,this.handleGetProcessStatus(),this.handleGetUserTaskModel()}else this.taskNodeList.length>1?(this.taskNodeList.forEach(a=>{a.name=a.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0},restartData:{handler(e,n){this.restartDataS=e},immediate:!0,deep:!0},selfBtn:{handler(e,n){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,n){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{let e=document.getElementById("process-header"),n=document.getElementById("process-footer");this.bottomNum=n?n.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144,console.log(this.topNum,"diss::",this.bottomNum)})},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var o,a;let e=[],n=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(this.formData.currentState==="\u5DF2\u64A4\u9500"||this.formData.currentState==="\u5DF2\u9A73\u56DE"||this.processStatus.status==="\u5DF2\u64A4\u9500"||this.processStatus.status==="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"){let l={};l.name="\u91CD\u65B0\u63D0\u4EA4",l.btnProps={type:"default"},e.push(l),l.click=this.handleTest}if(n&&!this.isView&&this.taskObj.completeButtonLabel){let l={};l.name=this.taskObj.completeButtonLabel,l.btnProps={type:"primary"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(Ip,d,this.request,this.taskObj.completeButtonAnnex)}}if(n&&!this.isView&&this.processStatus.currUserName){let l={};l.name="\u62D2\u7EDD",l.btnProps={type:"danger"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(Lp,d,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(l=>{let d={};d.name=l.name,d.btnProps={type:l.type},e.push(d),d.click=l.click}),n&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(l=>{if(l.label==="\u9000\u56DE"){let d={};d.name=l.label,d.btnProps={type:"danger"},e.push(d),d.click=u=>{this.handleActionClose(),this.showOperation(Zp,u,this.request,this.taskObj.otherButtonAnnexList)}}}),n&&!this.isView&&this.taskObj.ccTaskButtonLabel){let l={};l.name=this.taskObj.ccTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(hh,d,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(l)}if(n&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let l={};l.name=this.taskObj.delegateTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(Sd,d,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(l)}if(n&&!this.isView&&this.taskObj.counterSignLabel){let l={};l.name=this.taskObj.counterSignLabel,l.btnProps={type:"primary"},l.click=d=>{this.handleActionClose(),this.showOperation(cd,d,this.request,this.taskObj.counterSignButtonAnnex)},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((o=this.taskNode[0])==null?void 0:o.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u50AC\u529E",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((a=this.taskNode[0])==null?void 0:a.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u64A4\u9500",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(l)}return e},processCardHeight(){let e=this.topNum+this.bottomNum;return!this.isAdditional&&(!(this.processStatus.status=="\u5DF2\u64A4\u9500"||this.processStatus.status=="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName=="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName=="\u5DF2\u9A73\u56DE")&&this.ProcessInsObj.end||this.processStatus.createUid!==this.userIdData&&this.operBtn.length<3)&&(e-=this.bottomNum),`calc(100vh - ${e}px)`},processBtn(){if(!this.isAdditional&&(!(this.processStatus.status=="\u5DF2\u64A4\u9500"||this.processStatus.status=="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName=="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName=="\u5DF2\u9A73\u56DE")&&this.ProcessInsObj.end||this.processStatus.createUid!==this.userIdData&&this.operBtn.length<3))return`-${this.bottomNum}px`}},methods:{handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},o=await this.request.post("/aws/tis/simulation",n);if(o.success){this.handleTips("",!1,"success"),this.nextNodeData=o.data;for(let a=0;a<this.nextNodeData.length;a++)this.approveNode=this.nextNodeData[a]}else{let a=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(a,"")}},async getOutgoingProcessNode(e,n){let o=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:n}});if(o.code==200){if(o.data&&o.data.length){for(let a=0;a<o.data.length;a++){let l=o.data[a];if(l.type!="UserTaskModel"){let d=await this.getOutgoingProcessNode(e,l.id);d&&d.length&&(await d.map((u,k)=>{u.nodeName=u.incomingConditionItemList[0].compareValue}),l.childNode=d)}}return this.handleTips("",!1,"success"),o.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.$emit("processStatus",this.processStatus),this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,n,o,a){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let d;this.getVars&&(d=this.getVars()),await this.handleGetSimulation(d)}o&&(this.operationParam.request=o,this.annexlabel=a),this.titleText=n,this.operationCom=e,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=a,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=n,this.operationParam.formData=this.formData,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(d=>this.operationParam.actionComplete=d!=null&&d.isDefault?d.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(o=>{this.getFirstProcessNode=o.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(Ih,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(o=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(n=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),WA="",nt=e=>(t.pushScopeId("data-v-04ab9f0d"),e=e(),t.popScopeId(),e),bh={class:"process-warp"},vh={key:0,class:"process-main",id:"process-header"},wh={class:"process-ml-item border"},Vh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),Th={class:"process-mli-value"},Sh={class:"process-ml-item border"},Dh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),Qh={class:"process-mli-value"},Oh={key:0,class:"process-ml-item"},Fh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),xh={class:"process-mli-value"},Uh={class:"process-mliv-jd"},Jh=["slot"],Ph={slot:"default",style:{}},Mh=["slot"],Lh={key:0,class:"footBtnRow"},Gh=["onClick"],Rh=[nt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),nt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),nt(()=>t.createElementVNode("div",{class:"circle"},null,-1))],jh=["onClick"],Kh=["onClick"];function Yh(e,n,o,a,l,d){const u=t.resolveComponent("TopTab"),k=t.resolveComponent("TopPopup"),y=t.resolveComponent("TopTips"),E=t.resolveComponent("TopSumbitPopup");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",bh,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",vh,[t.createElementVNode("div",wh,[Vh,t.createElementVNode("div",Th,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-mliv-dd",style:t.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},t.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Sh,[Dh,t.createElementVNode("div",Qh,[t.createElementVNode("span",null,t.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(t.openBlock(),t.createElementBlock("div",Oh,[Fh,t.createElementVNode("div",xh,[t.createElementVNode("span",Uh,t.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"process-card",style:t.normalizeStyle({height:e.processCardHeight})},[t.createVNode(u,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:t.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.selfTapList,(h,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,slot:h.slot},[t.renderSlot(e.$slots,h.slot,{},void 0,!0)],8,Jh))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Ph,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tapList,(h,m)=>(t.openBlock(),t.createElementBlock("div",{style:{},key:m,slot:h.slot},[t.renderSlot(e.$slots,h.slot,{},void 0,!0)],8,Mh))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),t.createElementVNode("div",{class:"process-btn",id:"process-footer",style:t.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(t.openBlock(),t.createElementBlock("div",Lh,[t.renderSlot(e.$slots,"btn",{data:e.processStatus},void 0,!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(t.openBlock(),t.createElementBlock("div",{key:0,class:"top-button",style:t.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.operBtn,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[m<3?(t.openBlock(),t.createElementBlock("div",{class:"top-button",style:t.normalizeStyle(e.getBtnStyle(h.btnProps.type.toString())),key:h.name,onClick:I=>h.click(h.name)},t.toDisplayString(h.name),13,Gh)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(t.openBlock(),t.createElementBlock("div",{key:1,class:"elips",onClick:n[0]||(n[0]=(...h)=>e.handleActionOpen&&e.handleActionOpen(...h))},Rh)):t.createCommentVNode("",!0)],64))],64))],4)]),t.createVNode(k,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},null,40,["param","onHandleClosePopup1"]))]),_:1},8,["cancel","comfig","titleText"]),t.createVNode(k,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),t.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"top-elips",style:t.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.taskNodeList,h=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:m=>e.handleGet(h),key:h.taskId},t.toDisplayString(h.name),9,jh))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.actionBtn,h=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:m=>h.click(h.name),key:h.name},t.toDisplayString(h.name),9,Kh))),128)),t.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:n[1]||(n[1]=(...h)=>e.handleActionClose&&e.handleActionClose(...h))}," \u53D6\u6D88 ")],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-elips-mask",onClick:n[2]||(n[2]=(...h)=>e.handleActionClose&&e.handleActionClose(...h)),style:t.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),t.createVNode(E,t.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList}),null,16,["visible","request","appId","id","onSuccessFn","selfList"])])}const Hh=M(Nh,[["render",Yh],["__scopeId","data-v-04ab9f0d"]]);ce.TopProcess=Hh,ce.TopSumbitPopup=lo,ce.ViewAttchList=oo,ce.attchViews=ve,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
42
+ `,document.body.appendChild(this.mainContainer)}message(i={}){let c=sessionStorage.getItem(this.sessionStorageName),r=c?JSON.parse(c):null;if(i.againBtn&&i.content&&r&&Array.isArray(r)&&r.includes(i.content))return;const p=hf({type:i.type,content:i.content,duration:i.duration,delay:i.delay,againBtn:i.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(p.els),$s(this.mainContainer),uf(p,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const mf=Wt({components:{checked:_m,dcSwitch:of,dcLoading:df},name:"departPerson",props:{visible:{type:Boolean,default:!1},isTitle:{type:Boolean,default:!0},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},orgType:{type:Array,default:()=>[0]},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((s,i)=>{s(!0)})}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1,activeOrgType:0}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,i){if(!s)return!1;v(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(s,i){let c=[];const r=this.checkedJson.map(p=>{const f=this.entityJson.findIndex(A=>A.id===p.id&&p.type==A.type&&p.type==2)>-1?s&&p.type==2?"4":p.type:p.orgRecordsType;return(f==4||p.type==1)&&c.push(p.id),{...p,orgRecordsType:f}});this.checkedJson=r.filter(p=>p.ancestors.split(",").findIndex(f=>c.indexOf(f)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(s,i){v(this.businessId)&&this.getCards()}}},computed:{queryImg(){return pf},entityJson(){const s=this.checkedJson;return this.jsonData.map(i=>{const c=v(i.ancestors)?"":i.ancestors,r=v(i.ancestorNames)?"":i.ancestorNames,p=c+i.id+"__"+i.type,f=s.find(B=>B.uniqueId===p),A=!v(f),C=A?!1:s.findIndex(B=>B.id===i.id&&i.subjectId===B.subjectId)>-1,N=A?i.type==1||f.orgRecordsType==4:!1,g=v(s)?0:N?i.counts:s.filter(B=>B.type!=1&&B.ancestors.indexOf(i.id)>-1).length,w=A?f.isNoDelete:!1;return{type:i.type,id:i.id,name:i.name,counts:v(i.counts)?0:i.counts,num:g,phone:Bm(i.phone),uid:i.uid,iconName:qs(i.name,2),checked:A,ancestors:c,ancestorNames:r,deptName:Im(i.ancestorNames,"/",this.activeOrgType==0?"last":"find"),uniqueId:p,isDisabled:C,isLevel:N,subjectId:i.subjectId,sex:i.sex,avatar:v(i.avatar)?"":i.avatar,isNoDelete:w}})},companyJson(){return this.entityJson.filter(s=>s.type==1||s.type==5)},deptJson(){return this.entityJson.filter(s=>s.type==2)},userJson(){return this.entityJson.filter(s=>s.type==3||s.type==6)},checkedNumber(){const s=this.checkedJson.filter(f=>f.type==1).length,i=this.checkedJson.filter(f=>f.type==2).length,c=this.checkedJson.filter(f=>f.type==3||f.type==6).length,r=this.checkedJson.filter(f=>f.type==5).length;let p=[];return s>0&&p.push(s+"\u4E2A\u7EC4\u7EC7"),r>0&&p.push(r+"\u4E2A\u7FA4\u7EC4"),i>0&&p.push(i+"\u4E2A\u90E8\u95E8"),c>0&&p.push(c+"\u4E2A\u6210\u5458"),v(p)?"":"\u5DF2\u9009\u62E9"+p.join("\uFF0C")},breadcrumb_subjectId(){const s=this.breadcrumb.filter((i,c)=>i.value!=="-1");return v(s)?"":s[0].value},breadcrumb_level(){const s=this.breadcrumb.filter((i,c)=>i.value!=="-1");return{ancestors:s.map(i=>i.value).join(","),ancestorNames:s.map(i=>i.name).join("/")}},isDept(){return this.jsonData.findIndex(s=>s.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(s=>s==1||s==5)>-1},isShowDept(){return this.codeType.findIndex(s=>s==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(s=>s==3||s==6)>-1},getHight(){let s=194;return this.isShowQuery&&(s+=55),this.isDept&&(s+=45),this.orgType.length>1&&(s+=45),`calc(100% - ${s}px)`},getSearchHight(){let s=136;return this.orgType.length>1&&(s+=45),`calc(100% - ${s}px)`},getTitle(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":this.codeType.length==1&&this.codeType[0]==5?"\u9009\u62E9\u7FA4\u7EC4":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return v(this.checkedArray)?[]:this.checkedArray.filter(s=>s.isDeleteNo)},isOrgType(){return!!(v(this.orgType)||this.orgType.findIndex(s=>s===0)>-1)},isOrgGroup(){return this.orgType.findIndex(s=>s===1)>-1},showType(){if(this.activeOrgType===0)return this.codeType.findIndex(s=>s==3)>-1?3:this.codeType.findIndex(s=>s==2)>-1?2:this.codeType.findIndex(s=>s==1)>-1?1:-1;if(this.activeOrgType===1)return this.codeType.findIndex(s=>s==6)>-1?6:this.codeType.findIndex(s=>s==5)>-1?5:-1}},mounted(){this.isTitle&&(document.title=this.getTitle),v(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const s=v(this.checkedJson)?[]:this.checkedJson.map(c=>({type:c.orgRecordsType,id:c.id,name:c.name,ancestors:c.ancestors,ancestorNames:c.ancestorNames,subjectId:c.subjectId,phone:v(c.phone)?"":c.phone,sex:c.sex,avatar:c.avatar,uid:v(c.uid)?"":c.uid}));if(v(this.businessId))return this.$emit("callback",s);const i={businessId:this.businessId,orgRecords:this.checkedJson.map(c=>({type:c.orgRecordsType,bizId:c.id,ancestors:c.ancestors,ancestorNames:c.ancestorNames,uid:c.uid}))};this.isLoading=!0,this.businessCallack(s).then(c=>{c&&this.request.post("/auth/component/org/save",i).then(r=>{r.code===200&&this.$emit("callback",s)}).finally(()=>{this.isLoading=!1})}).catch(c=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){switch(this.activeOrgType){case 0:this.itemId="";break;case 1:this.deptId=0,this.subjectId="";break}this.getSearch(()=>{this.isQuery=v(this.keyword)})},handleOrgType(s){this.activeOrgType=s,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(s){(this.isShowDept?this.entityJson:this.entityJson.filter(i=>i.type!=2)).forEach(i=>this.handleCheckbox(s,i))},handleCheckbox(s,i){if(i.isDisabled||i.isNoDelete||(i.type==1||i.type==5)&&!this.isShowSubject||i.type==2&&!this.isShowDept)return!1;if(s.currentTarget.checked){if(this.checkedJson.findIndex(A=>A.uniqueId===i.uniqueId)!=-1)return!1;const c=i.type==1?"0":i.ancestors,r=i.type==1?"":i.ancestorNames,p=this.isDept&&this.isSon&&i.type==2?"4":i.type,f={...i,ancestors:c,ancestorNames:r,orgRecordsType:p};return(i.type==1||p==4)&&(this.checkedJson=this.checkedJson.filter(A=>A.ancestors.indexOf(i.id)===-1)),this.getBoolChecked(i)?(s.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(s.currentTarget.checked=!1,new en().message({content:`\u6700\u591A\u9009\u62E9${this.maxMultiple}\u9879\u3001\u8BF7\u79FB\u9664\u540E\u518D\u8FDB\u884C\u9009\u62E9`,type:"warning"}),!1):(this.multiple?this.checkedJson.push(f):this.checkedJson=[f],!1)}this.checkedJson=this.checkedJson.filter(c=>c.uniqueId!==i.uniqueId)},handleBreadcrumb(s,i){if(s.disable||i+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=i===0?this.deptCode:i===1&&v(this.deptCode)?0:s.value,this.itemId="",this.subjectId=s.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=v(this.itemCode)?s.value==="-1"?"":s.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((c,r)=>r<i+1)})},handleLevel(s){if(s.isDisabled||s.isLevel)return!1;switch(s.type){case"1":this.deptId=0,this.subjectId=s.id,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break;case"2":this.deptId=s.id,this.subjectId=this.breadcrumb_subjectId,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break;case"5":this.deptId=0,this.subjectId="",this.itemId=s.id,this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break}},getBoolChecked(s){if(s.type!=3)return!1;const i=s.ancestors.split(","),c=this.checkedJson.filter(p=>p.type==2||p.type==1).find(p=>i.indexOf(p.id)>-1);let r=!1;return v(c)||(c.type==1&&(new en().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),r=!0),c.type==4&&(new en().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),r=!0)),r},defaultData(){this.deptId=this.deptCode,this.subjectId="",this.itemId=this.itemCode,this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1,this.activeOrgType=this.isOrgType?0:this.isOrgGroup?1:"",this.defaultBreadcrumb()},defaultBreadcrumb(){const s=this.activeOrgType===0?"\u7EC4\u7EC7":this.activeOrgType===1?"\u7FA4\u7EC4":"";this.breadcrumb=v(this.deptCode)&&v(this.itemCode)?[{name:s,value:"-1"}]:[]},defaultGet(){this.defaultData(),v(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const s=this.entityJson.filter(c=>c.type==2),i=this.checkedJson.filter(c=>c.type==2);this.isSon=i.findIndex(c=>s.findIndex(r=>r.id===c.id&&c.orgRecordsType==4)>-1)>-1},getCheckedAll(){const s=this.entityJson.findIndex(i=>this.checkedJson.findIndex(c=>c.type===i.type&&c.id===i.id&&i.subjectId===c.subjectId)===-1);this.checkedAll=s===-1},getSearch(s=()=>{}){const i={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:this.showType,orgType:this.activeOrgType,itemId:this.itemId};v(i.deptId)&&delete i.deptId,v(i.subjectId)&&delete i.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:i}).then(c=>{s(),this.jsonData=v(c.data)||c.code!==200?[]:c.data;const r=this.breadcrumb.filter(p=>p.value!=="-1");if(!v(this.jsonData)&&v(r)&&(!v(this.deptCode)||!v(this.itemCode)||!v(this.subjectName))){const p=c.data[0];let f=p.ancestors.split(",");v(this.itemCode)||f.pop(),this.breadcrumb=f.map((A,C)=>({value:A,name:p.ancestorNames.split("/")[C],disable:C!==f.length-1&&f.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(s=()=>{}){if(v(this.businessId))return s(),!1;const i={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:i}).then(c=>{this.checkedJson=v(c.data)||c.code!==200?[]:c.data.map(r=>{const p=r.type==4?"2":r.type,f=r.type==1?"":r.ancestors,A=f+r.bizId+"__"+p,C=this.isNoDelete.findIndex(N=>N.id===r.id||N.uid===r.uid)>-1;return{...r,ancestors:f,id:r.bizId,type:p,uniqueId:A,orgRecordsType:r.type,iconName:qs(r.name,2),sex:r.sex,uid:v(r.uid)?"":r.uid,avatar:v(r.avatar)?"":r.avatar,isNoDelete:C}}),s()})},getCards(s=()=>{}){if(v(this.checkedArray))return s(),this.checkedJson=[];const i=this.checkedArray.map(c=>({type:c.type,id:v(c.id)?null:c.id,uid:v(c.uid)?null:c.uid,subjectId:v(c.subjectId)?null:c.subjectId,deptId:v(c.deptId)?null:c.deptId,itemId:v(c.itemId)?null:c.itemId,orgIds:v(this.orgType)?[0]:this.orgType}));this.request.post("/auth/component/org/cards",{params:i}).then(c=>{this.checkedJson=v(c.data)||c.code!==200?[]:c.data.map(r=>{const p=r.type==4?"2":r.type,f=r.type==1?"":r.ancestors,A=r.type==1?"":r.ancestorNames,C=f+r.id+"__"+p,N=this.isNoDelete.findIndex(g=>g.id===r.id||g.uid===r.uid)>-1;return{...r,ancestors:f,ancestorNames:A,id:r.id,type:p,uniqueId:C,orgRecordsType:r.type,iconName:qs(r.name,2),sex:r.sex,uid:v(r.uid)?"":r.uid,avatar:v(r.avatar)?"":r.avatar,isNoDelete:N}}),s()})},getByName(s=()=>{}){const i={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:i}).then(c=>{console.log("getByName",c),c.code===200&&(this.subjectId=c.data,s())})}}}),ff={class:"departPerson-main"},Af={class:"deper-top"},gf={key:0,class:"deper-nav"},kf={class:"deper-query"},yf=a.createElementVNode("i",{class:"icon-chaxun iconfont chaxun"},null,-1),Ef={key:1,class:"deper-breadcrumb"},Cf=["onClick"],Bf=a.createElementVNode("i",{class:"icon-jiantouyou iconfont"},null,-1),If={key:2,class:"deper-all"},Nf=a.createElementVNode("label",{class:"label",for:"deper-all"},"\u5168\u9009",-1),bf={key:0,class:"deper-c-depart"},vf=["disabled","onUpdate:modelValue","onChange"],wf={class:"depart-name"},Vf={class:"name"},Tf={key:0,class:"number"},Sf={class:"label"},Df={key:1,class:"number"},Qf=["onClick"],Of=[a.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),a.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],Ff={key:1,class:"deper-c-depart"},xf=["disabled","onUpdate:modelValue","onChange"],Uf={class:"depart-name"},Jf={class:"name"},Pf={key:0,class:"number"},Mf={class:"label"},Lf={key:1,class:"number"},Gf=["onClick"],Rf=[a.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),a.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],jf={key:2,class:"deper-c-user"},Kf=["disabled","onUpdate:modelValue","onChange"],Yf={class:"user-icon"},Hf={key:0},zf=["src"],Wf={class:"user-name"},Zf={class:"span"},Xf={class:"phone"},_f={class:"deper-search-section"},qf={class:"search-user"},$f=a.createElementVNode("div",{class:"search-title"},"\u8054\u7CFB\u4EBA",-1),eA=["onUpdate:modelValue","disabled","onChange"],tA={class:"user-icon"},sA={class:"user-name"},nA={class:"span"},oA={class:"phone"},aA={class:"txt"},iA={key:2,class:"deper-son"},lA=a.createElementVNode("span",null,"\u5305\u542B\u5B50\u7EA7",-1),cA={class:"deper-bottom"},rA={key:0,class:"icon-jiantouyou iconfont"};function dA(s,i,c,r,p,f){const A=a.resolveComponent("dc-switch"),C=a.resolveComponent("checked"),N=a.resolveComponent("dcLoading");return a.openBlock(),a.createElementBlock("main",ff,[a.createElementVNode("div",Af,[s.orgType.length>1?(a.openBlock(),a.createElementBlock("div",gf,[s.isOrgType?(a.openBlock(),a.createElementBlock("div",{key:0,onClick:i[0]||(i[0]=g=>s.handleOrgType(0)),class:a.normalizeClass([{active:s.activeOrgType===0},"deper-n-item"])},"\u7EC4\u7EC7",2)):a.createCommentVNode("",!0),s.isOrgGroup?(a.openBlock(),a.createElementBlock("div",{key:1,onClick:i[1]||(i[1]=g=>s.handleOrgType(1)),class:a.normalizeClass([{active:s.activeOrgType===1},"deper-n-item"])},"\u7FA4\u7EC4",2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",kf,[a.createElementVNode("form",{class:"form",onSubmit:i[5]||(i[5]=a.withModifiers(()=>{},["prevent"])),action:"javascript: void(0);"},[yf,a.withDirectives(a.createElementVNode("input",{class:"input",onKeyup:i[2]||(i[2]=a.withKeys((...g)=>s.handleQuery&&s.handleQuery(...g),["enter"])),"onUpdate:modelValue":i[3]||(i[3]=g=>s.keyword=g),type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},null,544),[[a.vModelText,s.keyword]]),s.keyword.length>0?(a.openBlock(),a.createElementBlock("i",{key:0,onClick:i[4]||(i[4]=(...g)=>s.handleEmpty&&s.handleEmpty(...g)),class:"icon-error-fill iconfont close"})):a.createCommentVNode("",!0)],32)],512),[[a.vShow,s.isShowQuery]]),s.isQuery?(a.openBlock(),a.createElementBlock("div",Ef,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.breadcrumb,(g,w)=>(a.openBlock(),a.createElementBlock("div",{onClick:B=>s.handleBreadcrumb(g,w),key:g.value,class:a.normalizeClass([{disable:g.disable},"deper-b-item"])},[a.createElementVNode("span",null,a.toDisplayString(g.name),1),Bf],10,Cf))),128))])):a.createCommentVNode("",!0),s.isQuery?(a.openBlock(),a.createElementBlock("div",If,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":i[6]||(i[6]=g=>s.checkedAll=g),onChange:i[7]||(i[7]=(...g)=>s.handleAllCheckbox&&s.handleAllCheckbox(...g)),class:"deper-checkbox",type:"checkbox",name:"deper-all",id:"deper-all"},null,544),[[a.vModelCheckbox,s.checkedAll]]),Nf])):a.createCommentVNode("",!0)]),s.isQuery?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({height:s.getHight}),class:"deper-center"},[s.companyJson.length>0?(a.openBlock(),a.createElementBlock("div",bf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.companyJson,g=>(a.openBlock(),a.createElementBlock("div",{key:g.uniqueId,class:"depart-item"},[a.createElementVNode("label",{class:a.normalizeClass([{width:s.isNotLevel,isNoDelete:g.isNoDelete},"depart-left"])},[a.withDirectives(a.createElementVNode("input",{disabled:g.isDisabled||g.isNoDelete,"onUpdate:modelValue":w=>g.checked=w,onChange:w=>s.handleCheckbox(w,g),class:"deper-checkbox",type:"checkbox"},null,40,vf),[[a.vShow,s.isShowSubject],[a.vModelCheckbox,g.checked]]),a.createElementVNode("div",wf,[a.createElementVNode("div",Vf,a.toDisplayString(g.name),1),g.num>0?(a.openBlock(),a.createElementBlock("div",Tf,[a.createTextVNode("("),a.createElementVNode("label",Sf,a.toDisplayString(g.num)+"/"+a.toDisplayString(g.counts),1),a.createTextVNode(")")])):(a.openBlock(),a.createElementBlock("div",Df,"("+a.toDisplayString(g.counts)+")",1))])],2),!s.isNotLevel&&g.counts>0?(a.openBlock(),a.createElementBlock("div",{key:0,onClick:w=>s.handleLevel(g),class:a.normalizeClass([{isdisabled:g.isLevel},"depart-right"])},Of,10,Qf)):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),s.deptJson.length>0?(a.openBlock(),a.createElementBlock("div",Ff,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.deptJson,g=>(a.openBlock(),a.createElementBlock("div",{key:g.uniqueId,class:"depart-item"},[a.createElementVNode("label",{class:a.normalizeClass([{isNoDelete:g.isNoDelete},"depart-left"])},[a.withDirectives(a.createElementVNode("input",{disabled:g.isDisabled||g.isNoDelete,"onUpdate:modelValue":w=>g.checked=w,onChange:w=>s.handleCheckbox(w,g),class:"deper-checkbox",type:"checkbox"},null,40,xf),[[a.vShow,s.isShowDept],[a.vModelCheckbox,g.checked]]),a.createElementVNode("div",Uf,[a.createElementVNode("div",Jf,a.toDisplayString(g.name),1),g.num>0?(a.openBlock(),a.createElementBlock("div",Pf,[a.createTextVNode("("),a.createElementVNode("label",Mf,a.toDisplayString(g.num)+"/"+a.toDisplayString(g.counts),1),a.createTextVNode(")")])):(a.openBlock(),a.createElementBlock("div",Lf,"("+a.toDisplayString(g.counts)+")",1))])],2),g.counts>0?(a.openBlock(),a.createElementBlock("div",{key:0,onClick:w=>s.handleLevel(g),class:a.normalizeClass([{isdisabled:g.isLevel},"depart-right"])},Rf,10,Gf)):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),s.userJson.length>0?(a.openBlock(),a.createElementBlock("div",jf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.userJson,g=>(a.openBlock(),a.createElementBlock("label",{key:g.uniqueId,class:a.normalizeClass([{isNoDelete:g.isNoDelete},"user-item"])},[a.withDirectives(a.createElementVNode("input",{disabled:g.isDisabled||g.isNoDelete,"onUpdate:modelValue":w=>g.checked=w,onChange:w=>s.handleCheckbox(w,g),class:"deper-checkbox",type:"checkbox"},null,40,Kf),[[a.vModelCheckbox,g.checked]]),a.createElementVNode("div",Yf,[g.avatar.length<1?(a.openBlock(),a.createElementBlock("span",Hf,a.toDisplayString(g.iconName),1)):(a.openBlock(),a.createElementBlock("img",{key:1,src:g.avatar},null,8,zf))]),a.createElementVNode("div",Wf,[a.createElementVNode("div",Zf,a.toDisplayString(g.name),1),a.createElementVNode("div",Xf,a.toDisplayString(g.phone),1)])],2))),128))])):a.createCommentVNode("",!0)],4)):(a.openBlock(),a.createElementBlock("div",{key:1,style:a.normalizeStyle({height:s.getSearchHight}),class:"deper-search"},[a.createCommentVNode("",!0),a.createElementVNode("div",_f,[a.createCommentVNode("",!0),a.createElementVNode("div",qf,[$f,(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.userJson,g=>(a.openBlock(),a.createElementBlock("label",{key:g.uniqueId,class:"user-item"},[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":w=>g.checked=w,disabled:g.isDisabled,onChange:w=>s.handleCheckbox(w,g),class:"deper-checkbox",type:"checkbox"},null,40,eA),[[a.vModelCheckbox,g.checked]]),a.createElementVNode("div",tA,[a.createElementVNode("span",null,a.toDisplayString(g.iconName),1)]),a.createElementVNode("div",sA,[a.createElementVNode("div",nA,a.toDisplayString(g.name),1),a.createElementVNode("div",oA,a.toDisplayString(g.phone),1),a.createElementVNode("div",aA,a.toDisplayString(g.ancestorNames),1)])]))),128))])])],4)),s.isDept?(a.openBlock(),a.createElementBlock("div",iA,[lA,a.createVNode(A,{modelValue:s.isSon,name:"isSone"},null,8,["modelValue"])])):a.createCommentVNode("",!0),a.createElementVNode("div",cA,[a.createElementVNode("div",{onClick:i[8]||(i[8]=g=>s.isShowChecked=!0),class:"deper-b-checked"},[a.createElementVNode("span",null,a.toDisplayString(s.checkedNumber),1),s.checkedNumber.length>0?(a.openBlock(),a.createElementBlock("i",rA)):a.createCommentVNode("",!0)]),a.createElementVNode("div",{onClick:i[9]||(i[9]=(...g)=>s.handleSubmit&&s.handleSubmit(...g)),class:"deper-b-btn"},"\u786E\u5B9A")]),a.createVNode(C,{visible:s.isShowChecked,checkedJson:s.checkedJson},{user:a.withCtx(({item:g})=>[a.renderSlot(s.$slots,"checkedUser",{item:g})]),_:3},8,["visible","checkedJson"]),s.isLoading?(a.openBlock(),a.createBlock(N,{key:3})):a.createCommentVNode("",!0)])}const pA=qt(mf,[["render",dA]]);o.departPerson=pA,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(ue,ue.exports);const Yc=pe({name:"TopSubmitPopup",components:{TopPopup:ee,TopDownSelect:io,PreviewImage:vs,departPerson:ue.exports.departPerson,TopTips:he},props:{visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:"0",request:this.request,codeType:[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:""}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),this.handleOption()},immediate:!0},businessType:{handler(e,n){this.businessTypeData=e},immediate:!0},id:{handler(e,n){this.idData=e},immediate:!0},processName:{handler(e,n){this.processNameData=e},immediate:!0},title:{handler(e,n){this.titleData=e},immediate:!0},todoParameter:{handler(e,n){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,n){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option))},immediate:!0,deep:!0},resubmit:{handler(e,n){e&&this.getProcessInstance()}}},methods:{async handleOption(){this.selfList&&this.selfList.length||await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())})},async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id)})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(n=>{n.code===200?(this.firstPerson=n.data,this.getAfferentParticipantNodeList()):(this.firstPerson=[],this.getAfferentParticipantNodeList())}).catch(n=>{this.firstPerson=[],this.getAfferentParticipantNodeList()})},async handleChange(e,n){this.handleTips("",!0,"loading"),console.log("\u5F53\u524D\u9009\u62E9::::",e,n),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",e,n),this.$refs.topTips.handleClose()},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(console.log("\u9009\u4E2D\u8282\u70B9L::",this.personList,this.firstPerson),this.personList=e.data.filter(n=>!this.firstPerson.some(o=>o.id==n.id))),this.$emit("change",this.checkedItem,this.option))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:[]},console.log(this.multiNodeParticipant[e.id]),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let n;e.routeTxt.departmentIds.map((o,a)=>{n=o.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:n,multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality)},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:n})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;e.routeTxt.companyIds.map((o,a)=>{n=o.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:n},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:this.handleLastStr(o.ancestors,o.subjectId),subjectName:o.ancestorNames.slice(0,o.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}},handleCallback(e){console.log("\u53C2\u6570::::",e),this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?n.ancestorNames.slice(0,n.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,n){return e.split(",")[e.split(",").length-1]!==n?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&this.firstPerson[0].routeTxt.userNames&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&this.firstPerson[0].humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})},handleSongshen(){if(this.handleTips("",!0,"loading"),this.resubmit)this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")});else{let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};console.log("\u9A8C\u8BC1\u6761\u4EF6::",e,"this:::",this),this.request.post("/aws/pis/createAndStart",e).then(n=>{n.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):n.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(o=>{o.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(o.msg,!0,"error")}).catch(o=>{this.handleTips(o.msg,!0,"error")}):this.handleTips(n.msg,!0,"error")}).catch(n=>{this.handleTips(n.msg,!0,"error")})}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),vA="",Hc=e=>(t.pushScopeId("data-v-da1ab790"),e=e(),t.popScopeId(),e),zc={key:1,class:"person-views"},Wc={class:"views-items"},Zc={class:"views-items-name"},Xc=Hc(()=>t.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),_c={class:"views-items-set"},qc={key:0},$c={key:0},er={key:1},tr={key:2},sr=["onClick"],nr={key:2,class:"person-views"},or={class:"views-items"},ar={class:"views-items-name"},ir={class:"views-items-set"},lr={key:0},cr={key:0},rr={key:1},dr=["onClick"],pr={key:3,class:"person-views-white"},hr={class:"person-btn"};function ur(e,n,o,a,l,d){const u=t.resolveComponent("TopDownSelect"),k=t.resolveComponent("TopPopup"),y=t.resolveComponent("departPerson"),E=t.resolveComponent("PreviewImage"),h=t.resolveComponent("TopTips");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(k,{visible:e.show,"onUpdate:visible":n[2]||(n[2]=m=>(e.show=m,e.$emit("update:visible",m))),ref:"TopPopup",titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[t.createVNode(u,{option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue},null,8,["option","onChange","defaultValue"]),e.checkedItem.id?(t.openBlock(),t.createElementBlock("div",{key:0,class:"viewTrack",onClick:n[0]||(n[0]=m=>e.taskurlshow=!0)}," \u67E5\u770B\u6D41\u7A0B\u56FE ")):t.createCommentVNode("",!0),e.firstPerson&&e.firstPerson.length?(t.openBlock(),t.createElementBlock("div",zc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.firstPerson,(m,I)=>(t.openBlock(),t.createElementBlock("div",Wc,[t.createElementVNode("div",Zc,[t.createTextVNode(t.toDisplayString(m.name)+" ",1),Xc]),t.createElementVNode("div",_c,[e.partNode[m.id]&&e.partNode[m.id].length?(t.openBlock(),t.createElementBlock("div",qc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[m.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T>=3?"":T==0?b:`,${b}`),1))),256)),e.partNode[m.id].length>3?(t.openBlock(),t.createElementBlock("span",$c,"...\u7B49"+t.toDisplayString(e.partNode[m.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):m.routeTxt&&m.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",er,t.toDisplayString(m.routeTxt.userNames),1)):t.createCommentVNode("",!0),m.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||m.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",tr)):(t.openBlock(),t.createElementBlock("div",{key:3,class:"views-items-set-btn",onClick:b=>e.handleOpenPerson(m)}," \u8BBE\u7F6E ",8,sr))])]))),256))])):t.createCommentVNode("",!0),e.personList&&e.personList.length?(t.openBlock(),t.createElementBlock("div",nr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.personList,(m,I)=>(t.openBlock(),t.createElementBlock("div",or,[t.createElementVNode("div",ar,t.toDisplayString(m.name),1),t.createElementVNode("div",ir,[e.partNode[m.id]&&e.partNode[m.id].length?(t.openBlock(),t.createElementBlock("div",lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[m.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T>=3?"":T==0?b:`,${b}`),1))),256)),e.partNode[m.id].length>3?(t.openBlock(),t.createElementBlock("span",cr,"...\u7B49"+t.toDisplayString(e.partNode[m.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",rr)),t.createElementVNode("div",{class:"views-items-set-btn",onClick:b=>e.handleOpenPerson(m)}," \u8BBE\u7F6E ",8,dr)])]))),256))])):t.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(t.openBlock(),t.createElementBlock("div",pr," \u65E0\u9700\u8BBE\u7F6E ")):t.createCommentVNode("",!0),t.createElementVNode("div",hr,[t.createElementVNode("div",{class:"top-button",style:{"background-color":"#3c9cff",color:"#fff"},onClick:n[1]||(n[1]=(...m)=>e.handleSumbit&&e.handleSumbit(...m))}," \u9001\u5BA1 ")])]),_:1},8,["visible"]),t.createVNode(k,{visible:e.visiblePerson,"onUpdate:visible":n[3]||(n[3]=m=>e.visiblePerson=m),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:t.withCtx(()=>[t.createVNode(y,t.mergeProps({isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),t.createVNode(E,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":n[4]||(n[4]=m=>e.taskurlshow=m),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),t.createVNode(h,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const lo=M(Yc,[["render",ur],["__scopeId","data-v-da1ab790"]]),mr="data:image/png;base64,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",fr=pe({name:"attchViews",components:{TopTips:he,PreviewImage:vs,PreView:Zn,TopPopup:ee},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,n){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return mr},del(){return Xn},doc(){return _n},file(){return qn},image(){return $n},pdf(){return eo},xls(){return to},zip(){return so}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const o=Array.from(e.target.files);document.getElementById("fileUp").value="";let a=0,l=this.haveCount>o.length?o.length:this.haveCount;try{for(let d=0;d<l;d++)if(this.extension.includes(o[d].name.substring(o[d].name.lastIndexOf(".")+1))){const u=new FormData;u.append("file",o[d]);const k=await this.request.post("/file/upload",u,{headers:{"Content-Type":"multipart/form-data"}});if(k.code===200){if(this.filesArr.length>0){for(let y=0;y<this.filesArr.length;y++)if(k.originFileName==this.filesArr[y].originFileName&&a++,this.filesArr[y].originFileName.includes(`(${a})`)&&a++,a>0){let E=k.originFileName.lastIndexOf(".");k.originFileName=`${k.originFileName.substring(0,E)} (${a}) .${k.originFileName.substring(k.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(k.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${o[d].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,n){if(this.deletFn){if(this.deletFn(n)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,n){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(e.url)):e.url&&(this.visibleS=!0,this.fileUrl=e.url)},viewImage(){this.lists=[];let e=[];this.filesArr.map((n,o)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))),e.forEach((n,o)=>{this.lists.push(n.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),wA="",Ar={class:"attch-upload"},gr={key:0,class:"attch-upload-mask"},kr={class:"attch-upload-body"},yr={class:"upload-header"},Er={class:"upload-header-title"},Cr={key:0,class:"upload-header-title--re"},Br={class:"upload-header-upload"},Ir=["src"],Nr={class:"upload-body"},br={key:0,class:"upload-list"},vr={class:"list-items-icon"},wr=["src"],Vr=["src"],Tr=["src"],Sr=["src"],Dr=["src"],Qr=["src"],Or={class:"list-items-info"},Fr={class:"info-name"},xr={class:"info-attribute"},Ur={class:"info-attribute-size"},Jr=["onClick"],Pr={key:0,class:"list-items-operation"},Mr=["onClick"],Lr=["src"];function Gr(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("PreviewImage"),y=t.resolveComponent("PreView"),E=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",Ar,[e.buttonLoading?(t.openBlock(),t.createElementBlock("div",gr)):t.createCommentVNode("",!0),t.createElementVNode("div",kr,[t.createElementVNode("div",yr,[t.createElementVNode("div",Er,[t.createTextVNode(" \u9644\u4EF6 "),e.requires?(t.openBlock(),t.createElementBlock("span",Cr,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Br,[e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:n[0]||(n[0]=(...h)=>e.handleClick&&e.handleClick(...h))},[t.createElementVNode("img",{src:e.addFile},null,8,Ir),t.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),t.createElementVNode("div",Nr,[e.filesArr.length>0?(t.openBlock(),t.createElementBlock("div",br,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filesArr,(h,m)=>(t.openBlock(),t.createElementBlock("div",{class:"list-items",key:h.uuid},[t.createElementVNode("div",vr,[e.xlsIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,wr)):e.imgIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Vr)):h.name.substring(h.name.lastIndexOf(".")+1)=="pdf"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Tr)):e.docIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Sr)):e.zipIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Dr)):(t.openBlock(),t.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Qr))]),t.createElementVNode("div",Or,[t.createElementVNode("div",Fr,t.toDisplayString(h.originFileName),1),t.createElementVNode("div",xr,[t.createElementVNode("span",Ur,t.toDisplayString(h.fileSize<1024?h.fileSize:h.fileSize/1024>1024?parseFloat((h.fileSize/1024/1024).toFixed(2)):parseFloat((h.fileSize/1024).toFixed(2)))+t.toDisplayString(h.fileSize<1024?"b":parseFloat((h.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),t.createElementVNode("span",{class:"info-attribute-views",onClick:I=>e.viewFile(h,m)}," \u9884\u89C8 ",8,Jr)])]),e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Pr,[t.createElementVNode("div",{onClick:I=>e.handleDel(m,h),class:"list-items-operation-img"},[t.createElementVNode("img",{src:e.del},null,8,Lr)],8,Mr)]))]))),128))])):t.createCommentVNode("",!0)])]),t.createVNode(u,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{images:e.lists,visible:e.visible,"onUpdate:visible":n[1]||(n[1]=h=>e.visible=h),indexd:e.indexd},null,8,["images","visible","indexd"]),t.createVNode(E,{visible:e.visibleS,"onUpdate:visible":n[2]||(n[2]=h=>e.visibleS=h),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[t.createVNode(y,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"])])}const ve=M(fr,[["render",Gr],["__scopeId","data-v-2fb31c81"]]),VA="",Rr={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/createDynamicTask",{title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,participant:e,processInstId:this.param.processInstId,adHocType:2,parentTaskInstId:this.param.taskInstId,reason:this.commentMsg}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},tt=e=>(t.pushScopeId("data-v-594ff303"),e=e(),t.popScopeId(),e),jr={class:"process-popup-content"},Kr=tt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Yr={class:"process-pc-value"},Hr={class:"process-popup-textarea"},zr=tt(()=>t.createElementVNode("div",null,[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Wr=["onClick"],Zr={class:"process-pc-value--people"},Xr={key:0,class:"process-pc-value--data"},_r={key:1,class:"process-pc-value--data",style:{color:"#888"}},qr=[tt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],$r={class:"process-pc-label"},ed=tt(()=>t.createElementVNode("br",null,null,-1)),td=tt(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),sd=["onClick"],nd={class:"process-pc-value--people"},od={key:0,class:"process-pc-value--data"},ad={key:1,class:"process-pc-value--data",style:{color:"#888"}},id=[tt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function ld(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",jr,[Kr,t.createElementVNode("div",Yr,[t.createElementVNode("div",Hr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=h=>l.commentMsg=h),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[zr,t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Zr,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Xr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T==0?b:`,${b}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",_r,qr))])],8,Wr)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption(h.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",$r,[t.createTextVNode(t.toDisplayString(h.name)+" ",1),ed,t.createTextVNode(" \u5BA1\u6279\u4EBA "),td]),t.createElementVNode("div",{class:"process-pc-value",onClick:m=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",nd,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",od,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(m,I)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(I==0?m:`,${m}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",ad,id))])],8,sd)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="5"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const cd=M(Rr,[["render",ld],["__scopeId","data-v-594ff303"]]),DA="",rd={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Re=e=>(t.pushScopeId("data-v-16f43124"),e=e(),t.popScopeId(),e),dd={class:"process-popup-content"},pd=Re(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),hd={class:"process-pc-value"},ud={class:"process-popup-textarea"},md=Re(()=>t.createElementVNode("br",null,null,-1)),fd=Re(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ad=["onClick"],gd={class:"process-pc-value--people"},kd={key:0,class:"process-pc-value--data"},yd={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ed=[Re(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Cd={class:"process-pc-label"},Bd=Re(()=>t.createElementVNode("br",null,null,-1)),Id=Re(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Nd=["onClick"],bd={class:"process-pc-value--people"},vd={key:0,class:"process-pc-value--data"},wd={key:1,class:"process-pc-value--data",style:{color:"#888"}},Vd=[Re(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Td(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",dd,[pd,t.createElementVNode("div",hd,[t.createElementVNode("div",ud,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=h=>l.commentMsg=h),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),md,t.createTextVNode(" \u5BA1\u6279\u4EBA "),fd]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",gd,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",kd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T==0?b:`,${b}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",yd,Ed))])],8,Ad)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption(h.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Cd,[t.createTextVNode(t.toDisplayString(h.name)+" ",1),Bd,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Id]),t.createElementVNode("div",{class:"process-pc-value",onClick:m=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",bd,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",vd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(m,I)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(I==0?m:`,${m}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",wd,Vd))])],8,Nd)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Sd=M(rd,[["render",Td],["__scopeId","data-v-16f43124"]]),Dd="data:image/png;base64,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",FA="",xA="",Qd={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},computed:{check(){return ao},checkS(){return Dd}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{},personMake:[],personMakeList:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,console.log("param:::",e),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(o=>{o.type!=="endEvent"&&(o.userTaskModelDTO={name:o.name,humanPerformer:{name:o.humanPerformerName}},o.humanPerformer={name:o.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((o,a)=>{o.type!=="endEvent"&&(o.userTaskModelDTO.participantList&&o.userTaskModelDTO.participantList.length&&o.userTaskModelDTO.participantList.map(l=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(l.id)||this.multiNodeParticipant[o.id].push(l.id),this.partNode[o.id].includes(l.name)||this.partNode[o.id].push(l.name)}),o.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"&&this.personMake.push(o.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(o=>{o.code==200&&(this.personMakeList=o.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((o,a)=>{o.type!=="endEvent"&&o.participantList&&o.participantList.length&&o.participantList.map(l=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(l.id)||this.multiNodeParticipant[o.id].push(l.id),this.partNode[o.id].includes(l.name)||this.partNode[o.id].push(l.name)})}),console.log("userTaskModelDTO",this.multiNodeParticipant),console.log("outGatewayUserTaskModel",this.outGatewayUserTaskModel)},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(e){this.radioCheckNameList.includes(e)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e),1):this.radioCheckNameList.push(e)},handleNode(e){this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length&&(e={...e,...e.userTaskModelDTO}),console.log("partNode",this.partObjId,e),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((a,l)=>{n=a.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((a,l)=>{o.push({type:3,uid:a})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[];e.routeTxt.departmentIds.map((a,l)=>{n=a.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((a,l)=>{o.push({type:3,uid:a,deptId:n})}),console.log("multiNodeParticipant",this.multiNodeParticipant[e.id],o),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),deptCode:n,checkedArray:o}}else{let n=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((o,a)=>{n.push({type:3,uid:o})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:n},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let n=0;if(this.radioCheckNameList.map((o,a)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&(n+=1),e[o]=this.multiNodeParticipant[o]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(n=>{if(n.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ie=e=>(t.pushScopeId("data-v-e9280a36"),e=e(),t.popScopeId(),e),Od={class:"process-popup-content"},Fd={key:0,class:"process-pc-label"},xd={key:1,class:"process-pc-value",style:{display:"flex"}},Ud=ie(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Jd={class:"process-pc-value"},Pd={class:"process-popup-textarea"},Md={class:"process-pc-label"},Ld=ie(()=>t.createElementVNode("br",null,null,-1)),Gd=ie(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Rd=["onClick"],jd={class:"process-pc-value--people"},Kd={key:0,class:"process-pc-value--data"},Yd={key:1,class:"process-pc-value--data",style:{color:"#888"}},Hd=[ie(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],zd={key:2,class:"process-pc-value--data"},Wd={key:1,class:"process-pc-label"},Zd={key:0},Xd={class:"process-pc-label"},_d=ie(()=>t.createElementVNode("br",null,null,-1)),qd=ie(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),$d=["onClick"],ep={class:"process-pc-value--people"},tp={key:0,class:"process-pc-value--data"},sp={key:1,class:"process-pc-value--data",style:{color:"#888"}},np=[ie(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],op={key:1,class:"process-pc-label"},ap=ie(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ip={class:"process-pc-value"},lp={class:"process-radio"},cp=["onClick"],rp=["src"],dp=["onClick"],pp={class:"process-checkbox"},hp=ie(()=>t.createElementVNode("br",null,null,-1)),up={class:"process-checkbox-item"},mp=["src"],fp=["onClick"],Ap={class:"process-pc-value--people"},gp={key:0,class:"process-pc-value--data"},kp={key:1,class:"process-pc-value--data",style:{color:"#888"}},yp=[ie(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Ep=ie(()=>t.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),Cp={class:"process-pc-value"};function Bp(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Od,[o.param.isDocument?(t.openBlock(),t.createElementBlock("div",Fd," \u5FEB\u6377\u56DE\u590D ")):t.createCommentVNode("",!0),o.param.isDocument?(t.openBlock(),t.createElementBlock("div",xd,[t.createElementVNode("div",{class:"process-tag",onClick:n[0]||(n[0]=()=>l.commentMsg="\u540C\u610F")}," \u540C\u610F "),t.createElementVNode("div",{class:"process-tag",onClick:n[1]||(n[1]=()=>l.commentMsg="\u5982\u62DF")}," \u5982\u62DF "),t.createElementVNode("div",{class:"process-tag",onClick:n[2]||(n[2]=()=>l.commentMsg="\u5DF2\u9605")}," \u5DF2\u9605 ")])):t.createCommentVNode("",!0),Ud,t.createElementVNode("div",Jd,[t.createElementVNode("div",Pd,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[3]||(n[3]=h=>l.commentMsg=h),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Md,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),Ld,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Gd])]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h)},[t.createElementVNode("div",jd,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Kd,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[h.id].join(",")),1)])):h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"?(t.openBlock(),t.createElementBlock("div",Yd,Hd)):h.routeTxt&&h.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",zd,t.toDisplayString(h.routeTxt.userNames),1)):t.createCommentVNode("",!0)])],8,Rd)],64)):h.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",Wd,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),l.personMakeList[h.id]?(t.openBlock(),t.createElementBlock("span",Zd,"\uFF1A"+t.toDisplayString(l.personMakeList[h.id]),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.outGatewayUserTaskModel,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[l.outGatewayUserTaskModel.childNode&&l.outGatewayUserTaskModel.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Xd,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),_d,t.createTextVNode(" \u5BA1\u6279\u4EBA "),qd])]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h)},[t.createElementVNode("div",ep,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",tp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[h.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",sp,np))])],8,$d)],64)):h.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",op,t.toDisplayString(h.userTaskModelDTO.name),1)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[ap,t.createElementVNode("div",ip,[t.createElementVNode("div",lp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.childNode,b=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",b.id==l.radioCheck?"process-radio-item--check":""]),onClick:T=>d.handleNode(b)},[t.createElementVNode("span",null,[b.id==l.radioCheck?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,rp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(b.nodeName),1)],10,cp))),256))])])],64))],64)}),256)),l.radioCheck?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.radioCheckChild&&l.radioCheckChild.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.radioCheckChild,h=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"process-pc-label",onClick:m=>d.handleSaveNode(h.id)},[t.createElementVNode("div",pp,[t.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),hp,t.createElementVNode("div",up,[t.createTextVNode(t.toDisplayString(h.nodeName)+" ",1),t.createElementVNode("span",null,[l.radioCheckNameList.includes(h.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:d.checkS},null,8,mp)):t.createCommentVNode("",!0)])])])],8,dp),t.createElementVNode("div",{class:"process-pc-value",onClick:m=>d.handleOpenPopup(h)},[t.createElementVNode("div",Ap,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",gp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[h.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",kp,yp))])],8,fp)]))),256)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Ep,t.createElementVNode("div",Cp,t.toDisplayString(l.radioCheckName),1)],64))],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(E,{key:3,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Ip=M(Qd,[["render",Bp],["__scopeId","data-v-e9280a36"]]),MA="",Np={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},st=e=>(t.pushScopeId("data-v-9c8b13c5"),e=e(),t.popScopeId(),e),bp={class:"process-popup-content"},vp=st(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),wp={class:"process-pc-value"},Vp={class:"process-popup-textarea"},Tp=st(()=>t.createElementVNode("br",null,null,-1)),Sp=st(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Dp=["onClick"],Qp={class:"process-pc-value--people"},Op={key:0,class:"process-pc-value--data"},Fp={key:1,class:"process-pc-value--data",style:{color:"#888"}},xp=[st(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Up={style:{"font-size":"15px"}},Jp=st(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Pp=[st(()=>t.createElementVNode("div",{class:"process-pc-value--people"},t.toDisplayString(234),-1))];function Mp(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",bp,[vp,t.createElementVNode("div",wp,[t.createElementVNode("div",Vp,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=h=>l.commentMsg=h),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),Tp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Sp]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Qp,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Op,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T==0?b:`,${b}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Fp,xp))])],8,Dp)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption(h.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Up,t.toDisplayString(h.name),1),Jp,t.createElementVNode("div",{class:"process-pc-value",onClick:n[1]||(n[1]=(...m)=>d.handleOpenPopup&&d.handleOpenPopup(...m))},Pp)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[2]||(n[2]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="\u62D2\u7EDD"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Lp=M(Np,[["render",Mp],["__scopeId","data-v-9c8b13c5"]]),RA="",Gp={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson,TopDownSelect:io},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},co=e=>(t.pushScopeId("data-v-72fe01a9"),e=e(),t.popScopeId(),e),Rp={class:"process-popup-content"},jp=co(()=>t.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Kp={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},Yp=co(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Hp={class:"process-pc-value"},zp={class:"process-popup-textarea"};function Wp(e,n,o,a,l,d){const u=t.resolveComponent("TopDownSelect"),k=t.resolveComponent("TopTips"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Rp,[jp,t.createElementVNode("div",Kp,[t.createVNode(u,{option:l.option,onChange:d.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),Yp,t.createElementVNode("div",Hp,[t.createElementVNode("div",zp,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=E=>l.commentMsg=E),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])])]),t.createVNode(k,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),l.labels=="\u9000\u56DE"?(t.openBlock(),t.createBlock(y,{key:0,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Zp=M(Gp,[["render",Wp],["__scopeId","data-v-72fe01a9"]]),jA="",Xp={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),await this.param.request.post("/aws/tis/createCCTask",{processInstId:this.param.processInstId,title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,parentTaskInstId:this.param.taskInstId,participant:e}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,a)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ut=e=>(t.pushScopeId("data-v-f5f6d612"),e=e(),t.popScopeId(),e),_p={class:"process-popup-content"},qp=ut(()=>t.createElementVNode("br",null,null,-1)),$p=ut(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),eh=["onClick"],th={class:"process-pc-value--people"},sh={key:0,class:"process-pc-value--data"},nh={key:1,class:"process-pc-value--data",style:{color:"#888"}},oh=[ut(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],ah=ut(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ih=["onClick"],lh={class:"process-pc-value--people"},ch={key:0,class:"process-pc-value--data"},rh={key:1,class:"process-pc-value--data",style:{color:"#888"}},dh=[ut(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function ph(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",_p,[l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var m,I;return t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"&&d.isOption((I=(m=h==null?void 0:h.userTaskModelDTO)==null?void 0:m.humanPerformer)==null?void 0:I.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),qp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),$p]),t.createElementVNode("div",{class:"process-pc-value",onClick:b=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",th,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",sh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(b,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T==0?b:`,${b}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",nh,oh))])],8,eh)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[ah,t.createElementVNode("div",{class:"process-pc-value",onClick:m=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",lh,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",ch,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(m,I)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(I==0?m:`,${m}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",rh,dh))])],8,ih)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="2"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const hh=M(Xp,[["render",ph],["__scopeId","data-v-f5f6d612"]]),HA="",uh={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:ue.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(e,n){console.log("handler::::",e),this.getFirstProcessNode=e.getFirstProcessNode,e.getFirstProcessNode&&this.getFirstProcessNode&&(e.getFirstProcessNode.type=="userTask"||e.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.getFirstProcessNode.type=="ExclusiveGatewayModel"||e.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",e).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ws=e=>(t.pushScopeId("data-v-b2c51666"),e=e(),t.popScopeId(),e),mh={class:"process-popup-content"},fh={class:"process-pc-label"},Ah=ws(()=>t.createElementVNode("br",null,null,-1)),gh=ws(()=>t.createElementVNode("div",null,[t.createTextVNode("\u5BA1\u6279\u4EBA"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),kh={class:"process-pc-value--people"},yh={key:0,class:"process-pc-value--data"},Eh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ch=[ws(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Bh(e,n,o,a,l,d){const u=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),y=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",mh,[t.createElementVNode("template",null,[t.createElementVNode("div",fh,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(l.getFirstProcessNode.name)+" ",1),Ah,gh])]),t.createElementVNode("div",{class:"process-pc-value",onClick:n[0]||(n[0]=E=>d.handleOpenPopup(l.getFirstProcessNode.id))},[t.createElementVNode("div",kh,[l.partNode[l.getFirstProcessNode.id]&&l.partNode[l.getFirstProcessNode.id].length?(t.openBlock(),t.createElementBlock("div",yh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[l.getFirstProcessNode.id],(E,h)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(h==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Eh,Ch))])])]),t.createVNode(u,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(y,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=E=>l.visible=E),titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"])])}const Ih=M(uh,[["render",Bh],["__scopeId","data-v-b2c51666"]]),Nh=pe({name:"TopProcess",components:{TopTab:Ec,TopPopup:ee,TopTips:he,TopSumbitPopup:lo},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:""}},watch:{processInstId:{async handler(e,n){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(o=>{o.code==200&&(this.trackUrl=o.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(o=>{o.code==200&&(this.trackList=o.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(o=>{o.code==200&&(this.taskCommentList=o.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(o=>{o.code==200&&(this.ProcessInsObj=o.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(o=>{if(o.code==200)if(this.taskNode=o.data,this.taskNodeList=o.data,this.taskNodeList.length==1){if(this.taskNodeList[0].taskState==4)return this.taskState=4,!1;this.taskNodeList[0].taskState==11&&(this.taskState=11),this.taskNodeList[0].taskId,this.handleGetProcessStatus(),this.handleGetUserTaskModel()}else this.taskNodeList.length>1?(this.taskNodeList.forEach(a=>{a.name=a.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0},restartData:{handler(e,n){this.restartDataS=e},immediate:!0,deep:!0},selfBtn:{handler(e,n){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,n){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{let e=document.getElementById("process-header"),n=document.getElementById("process-footer");this.bottomNum=n?n.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144,console.log(this.topNum,"diss::",this.bottomNum)})},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var o,a;let e=[],n=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(this.formData.currentState==="\u5DF2\u64A4\u9500"||this.formData.currentState==="\u5DF2\u9A73\u56DE"||this.processStatus.status==="\u5DF2\u64A4\u9500"||this.processStatus.status==="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"){let l={};l.name="\u91CD\u65B0\u63D0\u4EA4",l.btnProps={type:"default"},e.push(l),l.click=this.handleTest}if(n&&!this.isView&&this.taskObj.completeButtonLabel){let l={};l.name=this.taskObj.completeButtonLabel,l.btnProps={type:"primary"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(Ip,d,this.request,this.taskObj.completeButtonAnnex)}}if(n&&!this.isView&&this.processStatus.currUserName){let l={};l.name="\u62D2\u7EDD",l.btnProps={type:"danger"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(Lp,d,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(l=>{let d={};d.name=l.name,d.btnProps={type:l.type},e.push(d),d.click=l.click}),n&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(l=>{if(l.label==="\u9000\u56DE"){let d={};d.name=l.label,d.btnProps={type:"danger"},e.push(d),d.click=u=>{this.handleActionClose(),this.showOperation(Zp,u,this.request,this.taskObj.otherButtonAnnexList)}}}),n&&!this.isView&&this.taskObj.ccTaskButtonLabel){let l={};l.name=this.taskObj.ccTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(hh,d,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(l)}if(n&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let l={};l.name=this.taskObj.delegateTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(Sd,d,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(l)}if(n&&!this.isView&&this.taskObj.counterSignLabel){let l={};l.name=this.taskObj.counterSignLabel,l.btnProps={type:"primary"},l.click=d=>{this.handleActionClose(),this.showOperation(cd,d,this.request,this.taskObj.counterSignButtonAnnex)},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((o=this.taskNode[0])==null?void 0:o.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u50AC\u529E",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((a=this.taskNode[0])==null?void 0:a.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u64A4\u9500",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(l)}return e},processCardHeight(){let e=this.topNum+this.bottomNum;return!this.isAdditional&&(!(this.processStatus.status=="\u5DF2\u64A4\u9500"||this.processStatus.status=="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName=="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName=="\u5DF2\u9A73\u56DE")&&this.ProcessInsObj.end||this.processStatus.createUid!==this.userIdData&&this.operBtn.length<3)&&(e-=this.bottomNum),`calc(100vh - ${e}px)`},processBtn(){if(!this.isAdditional&&(!(this.processStatus.status=="\u5DF2\u64A4\u9500"||this.processStatus.status=="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName=="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName=="\u5DF2\u9A73\u56DE")&&this.ProcessInsObj.end||this.processStatus.createUid!==this.userIdData&&this.operBtn.length<3))return`-${this.bottomNum}px`}},methods:{handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},o=await this.request.post("/aws/tis/simulation",n);if(o.success){this.handleTips("",!1,"success"),this.nextNodeData=o.data;for(let a=0;a<this.nextNodeData.length;a++)this.approveNode=this.nextNodeData[a]}else{let a=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(a,"")}},async getOutgoingProcessNode(e,n){let o=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:n}});if(o.code==200){if(o.data&&o.data.length){for(let a=0;a<o.data.length;a++){let l=o.data[a];if(l.type!="UserTaskModel"){let d=await this.getOutgoingProcessNode(e,l.id);d&&d.length&&(await d.map((u,k)=>{u.nodeName=u.incomingConditionItemList[0].compareValue}),l.childNode=d)}}return this.handleTips("",!1,"success"),o.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.$emit("processStatus",this.processStatus),this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,n,o,a){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let d;this.getVars&&(d=this.getVars()),await this.handleGetSimulation(d)}o&&(this.operationParam.request=o,this.annexlabel=a),this.titleText=n,this.operationCom=e,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=a,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=n,this.operationParam.formData=this.formData,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(d=>this.operationParam.actionComplete=d!=null&&d.isDefault?d.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(o=>{this.getFirstProcessNode=o.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(Ih,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(o=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(n=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),WA="",nt=e=>(t.pushScopeId("data-v-04ab9f0d"),e=e(),t.popScopeId(),e),bh={class:"process-warp"},vh={key:0,class:"process-main",id:"process-header"},wh={class:"process-ml-item border"},Vh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),Th={class:"process-mli-value"},Sh={class:"process-ml-item border"},Dh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),Qh={class:"process-mli-value"},Oh={key:0,class:"process-ml-item"},Fh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),xh={class:"process-mli-value"},Uh={class:"process-mliv-jd"},Jh=["slot"],Ph={slot:"default",style:{}},Mh=["slot"],Lh={key:0,class:"footBtnRow"},Gh=["onClick"],Rh=[nt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),nt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),nt(()=>t.createElementVNode("div",{class:"circle"},null,-1))],jh=["onClick"],Kh=["onClick"];function Yh(e,n,o,a,l,d){const u=t.resolveComponent("TopTab"),k=t.resolveComponent("TopPopup"),y=t.resolveComponent("TopTips"),E=t.resolveComponent("TopSumbitPopup");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",bh,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",vh,[t.createElementVNode("div",wh,[Vh,t.createElementVNode("div",Th,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-mliv-dd",style:t.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},t.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Sh,[Dh,t.createElementVNode("div",Qh,[t.createElementVNode("span",null,t.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(t.openBlock(),t.createElementBlock("div",Oh,[Fh,t.createElementVNode("div",xh,[t.createElementVNode("span",Uh,t.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"process-card",style:t.normalizeStyle({height:e.processCardHeight})},[t.createVNode(u,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:t.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.selfTapList,(h,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,slot:h.slot},[t.renderSlot(e.$slots,h.slot,{},void 0,!0)],8,Jh))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Ph,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tapList,(h,m)=>(t.openBlock(),t.createElementBlock("div",{style:{},key:m,slot:h.slot},[t.renderSlot(e.$slots,h.slot,{},void 0,!0)],8,Mh))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),t.createElementVNode("div",{class:"process-btn",id:"process-footer",style:t.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(t.openBlock(),t.createElementBlock("div",Lh,[t.renderSlot(e.$slots,"btn",{data:e.processStatus},void 0,!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(t.openBlock(),t.createElementBlock("div",{key:0,class:"top-button",style:t.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.operBtn,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[m<3?(t.openBlock(),t.createElementBlock("div",{class:"top-button",style:t.normalizeStyle(e.getBtnStyle(h.btnProps.type.toString())),key:h.name,onClick:I=>h.click(h.name)},t.toDisplayString(h.name),13,Gh)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(t.openBlock(),t.createElementBlock("div",{key:1,class:"elips",onClick:n[0]||(n[0]=(...h)=>e.handleActionOpen&&e.handleActionOpen(...h))},Rh)):t.createCommentVNode("",!0)],64))],64))],4)]),t.createVNode(k,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},null,40,["param","onHandleClosePopup1"]))]),_:1},8,["cancel","comfig","titleText"]),t.createVNode(k,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),t.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"top-elips",style:t.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.taskNodeList,h=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:m=>e.handleGet(h),key:h.taskId},t.toDisplayString(h.name),9,jh))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.actionBtn,h=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:m=>h.click(h.name),key:h.name},t.toDisplayString(h.name),9,Kh))),128)),t.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:n[1]||(n[1]=(...h)=>e.handleActionClose&&e.handleActionClose(...h))}," \u53D6\u6D88 ")],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-elips-mask",onClick:n[2]||(n[2]=(...h)=>e.handleActionClose&&e.handleActionClose(...h)),style:t.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),t.createVNode(E,t.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList}),null,16,["visible","request","appId","id","onSuccessFn","selfList"])])}const Hh=M(Nh,[["render",Yh],["__scopeId","data-v-04ab9f0d"]]);ce.TopProcess=Hh,ce.TopSumbitPopup=lo,ce.ViewAttchList=oo,ce.attchViews=ve,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});