ui-process-h5 1.5.21 → 1.5.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.
package/v3/ui-process-h5.umd.cjs
CHANGED
|
@@ -39,4 +39,4 @@ Component that was made reactive: `,s)),lg(s,a,c,p,h,g,u,!0)}function dg(s){retu
|
|
|
39
39
|
left:0;
|
|
40
40
|
right:0;
|
|
41
41
|
margin: 0 auto;
|
|
42
|
-
`,document.body.appendChild(this.mainContainer)}message(a={}){let c=sessionStorage.getItem(this.sessionStorageName),p=c?JSON.parse(c):null;if(a.againBtn&&a.content&&p&&Array.isArray(p)&&p.includes(a.content))return;const h=df({type:a.type,content:a.content,duration:a.duration,delay:a.delay,againBtn:a.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(h.els),tn(this.mainContainer),rf(h,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const pf=Xt({components:{checked:zg,dcSwitch:tf,dcLoading:lf},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,a)=>{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,a){if(!s)return!1;b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(s,a){let c=[];const p=this.checkedJson.map(h=>{const u=this.entityJson.findIndex(g=>g.id===h.id&&h.type==g.type&&h.type==2)>-1?s&&h.type==2?"4":h.type:h.orgRecordsType;return(u==4||h.type==1)&&c.push(h.id),{...h,orgRecordsType:u}});this.checkedJson=p.filter(h=>h.ancestors.split(",").findIndex(u=>c.indexOf(u)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(s,a){b(this.businessId)&&this.getCards()}}},computed:{queryImg(){return cf},entityJson(){const s=this.checkedJson;return this.jsonData.map(a=>{const c=b(a.ancestors)?"":a.ancestors,p=b(a.ancestorNames)?"":a.ancestorNames,h=c+a.id+"__"+a.type,u=s.find(I=>I.uniqueId===h),g=!b(u),B=g?!1:s.findIndex(I=>I.id===a.id&&a.subjectId===I.subjectId)>-1,N=g?a.type==1||u.orgRecordsType==4:!1,k=b(s)?0:N?a.counts:s.filter(I=>I.type!=1&&I.ancestors.indexOf(a.id)>-1).length,T=g?u.isNoDelete:!1;return{type:a.type,id:a.id,name:a.name,counts:b(a.counts)?0:a.counts,num:k,phone:yg(a.phone),uid:a.uid,iconName:en(a.name,2),checked:g,ancestors:c,ancestorNames:p,deptName:Cg(a.ancestorNames,"/",this.activeOrgType==0?"last":"find"),uniqueId:h,isDisabled:B,isLevel:N,subjectId:a.subjectId,sex:a.sex,avatar:b(a.avatar)?"":a.avatar,isNoDelete:T}})},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(u=>u.type==1).length,a=this.checkedJson.filter(u=>u.type==2).length,c=this.checkedJson.filter(u=>u.type==3||u.type==6).length,p=this.checkedJson.filter(u=>u.type==5).length;let h=[];return s>0&&h.push(s+"\u4E2A\u7EC4\u7EC7"),p>0&&h.push(p+"\u4E2A\u7FA4\u7EC4"),a>0&&h.push(a+"\u4E2A\u90E8\u95E8"),c>0&&h.push(c+"\u4E2A\u6210\u5458"),b(h)?"":"\u5DF2\u9009\u62E9"+h.join("\uFF0C")},breadcrumb_subjectId(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return b(s)?"":s[0].value},breadcrumb_level(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return{ancestors:s.map(a=>a.value).join(","),ancestorNames:s.map(a=>a.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=134;return this.isAll&&(s+=60),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"},isAll(){return this.multiple?this.isShowSubject?this.isShowDept?!0:this.entityJson.findIndex(s=>s.type!=2)>-1:this.entityJson.findIndex(s=>s.type!=1)>-1:!1},isNoDelete(){return b(this.checkedArray)?[]:this.checkedArray.filter(s=>s.isDeleteNo)},isOrgType(){return!!(b(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),b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const s=b(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:b(c.phone)?"":c.phone,sex:c.sex,avatar:c.avatar,uid:b(c.uid)?"":c.uid}));if(b(this.businessId))return this.$emit("callback",s);const a={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",a).then(p=>{p.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=b(this.keyword)})},handleOrgType(s){this.activeOrgType=s,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(s){(this.isShowDept?this.entityJson:this.entityJson.filter(a=>a.type!=2)).forEach(a=>this.handleCheckbox(s,a))},handleCheckbox(s,a){if(a.isDisabled||a.isNoDelete||(a.type==1||a.type==5)&&!this.isShowSubject||a.type==2&&!this.isShowDept)return!1;if(s.currentTarget.checked){if(this.checkedJson.findIndex(g=>g.uniqueId===a.uniqueId)!=-1)return!1;const c=a.type==1?"0":a.ancestors,p=a.type==1?"":a.ancestorNames,h=this.isDept&&this.isSon&&a.type==2?"4":a.type,u={...a,ancestors:c,ancestorNames:p,orgRecordsType:h};return(a.type==1||h==4)&&(this.checkedJson=this.checkedJson.filter(g=>g.ancestors.indexOf(a.id)===-1)),this.getBoolChecked(a)?(s.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(s.currentTarget.checked=!1,new sn().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(u):this.checkedJson=[u],!1)}this.checkedJson=this.checkedJson.filter(c=>c.uniqueId!==a.uniqueId)},handleBreadcrumb(s,a){if(s.disable||a+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=a===0?this.deptCode:a===1&&b(this.deptCode)?0:s.value,this.itemId="",this.subjectId=s.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=b(this.itemCode)?s.value==="-1"?"":s.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((c,p)=>p<a+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}},handleChecked(s,a){this.$refs.checkedDp.init(s,a)},handleCallback(s){this.checkedJson=s},getBoolChecked(s){if(s.type!=3)return!1;const a=s.ancestors.split(","),c=this.checkedJson.filter(h=>h.type==2||h.type==1).find(h=>a.indexOf(h.id)>-1);let p=!1;return b(c)||(c.type==1&&(new sn().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),p=!0),c.type==4&&(new sn().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),p=!0)),p},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=b(this.deptCode)&&b(this.itemCode)?[{name:s,value:"-1"}]:[]},defaultGet(){this.defaultData(),b(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const s=this.entityJson.filter(c=>c.type==2),a=this.checkedJson.filter(c=>c.type==2);this.isSon=a.findIndex(c=>s.findIndex(p=>p.id===c.id&&c.orgRecordsType==4)>-1)>-1},getCheckedAll(){const s=this.entityJson.findIndex(a=>this.checkedJson.findIndex(c=>c.type===a.type&&c.id===a.id&&a.subjectId===c.subjectId)===-1);this.checkedAll=s===-1},getSearch(s=()=>{}){const a={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:this.showType,orgType:this.activeOrgType,itemId:this.itemId};b(a.deptId)&&delete a.deptId,b(a.subjectId)&&delete a.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:a}).then(c=>{s(),this.jsonData=b(c.data)||c.code!==200?[]:c.data;const p=this.breadcrumb.filter(h=>h.value!=="-1");if(!b(this.jsonData)&&b(p)&&(!b(this.deptCode)||!b(this.itemCode)||!b(this.subjectName))){const h=c.data[0];let u=h.ancestors.split(",");b(this.itemCode)||u.pop(),this.breadcrumb=u.map((g,B)=>({value:g,name:h.ancestorNames.split("/")[B],disable:B!==u.length-1&&u.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(s=()=>{}){if(b(this.businessId))return s(),!1;const a={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(p=>{const h=p.type==4?"2":p.type,u=p.type==1?"":p.ancestors,g=u+p.bizId+"__"+h,B=this.isNoDelete.findIndex(N=>N.id===p.id||N.uid===p.uid)>-1;return{...p,ancestors:u,id:p.bizId,type:h,uniqueId:g,orgRecordsType:p.type,iconName:en(p.name,2),sex:p.sex,uid:b(p.uid)?"":p.uid,avatar:b(p.avatar)?"":p.avatar,isNoDelete:B}}),s()})},getCards(s=()=>{}){if(b(this.checkedArray))return s(),this.checkedJson=[];const a=this.checkedArray.map(c=>({type:c.type,id:b(c.id)?null:c.id,uid:b(c.uid)?null:c.uid,subjectId:b(c.subjectId)?null:c.subjectId,deptId:b(c.deptId)?null:c.deptId,itemId:b(c.itemId)?null:c.itemId,orgIds:b(this.orgType)?[0]:this.orgType}));this.request.post("/auth/component/org/cards",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(p=>{const h=p.type==4?"2":p.type,u=p.type==1?"":p.ancestors,g=p.type==1?"":p.ancestorNames,B=u+p.id+"__"+h,N=this.isNoDelete.findIndex(k=>k.id===p.id||k.uid===p.uid)>-1;return{...p,ancestors:u,ancestorNames:g,id:p.id,type:h,uniqueId:B,orgRecordsType:p.type,iconName:en(p.name,2),sex:p.sex,uid:b(p.uid)?"":p.uid,avatar:b(p.avatar)?"":p.avatar,isNoDelete:N}}),s()})},getByName(s=()=>{}){const a={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:a}).then(c=>{console.log("getByName",c),c.code===200&&(this.subjectId=c.data,s())})}}}),hf={class:"departPerson-main"},mf={class:"deper-top"},uf={key:0,class:"deper-nav"},gf={class:"deper-query"},ff=i.createElementVNode("i",{class:"icon-chaxun iconfont chaxun"},null,-1),Af={key:1,class:"deper-breadcrumb"},kf=["onClick"],yf=i.createElementVNode("i",{class:"icon-jiantouyou iconfont"},null,-1),Cf={key:2,class:"deper-all"},Ef=i.createElementVNode("label",{class:"label",for:"deper-all"},"\u5168\u9009",-1),Bf={key:0,class:"deper-c-depart"},If=["disabled","onUpdate:modelValue","onChange"],Nf={class:"depart-name"},bf={class:"name"},vf={key:0,class:"number"},Tf={class:"label"},wf={key:1,class:"number"},Vf=["onClick"],Sf=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],Df={key:1,class:"deper-c-depart"},Qf=["disabled","onUpdate:modelValue","onChange"],Of={class:"depart-name"},Ff={class:"name"},Mf={key:0,class:"number"},xf={class:"label"},Lf={key:1,class:"number"},Uf=["onClick"],Pf=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],Jf={key:2,class:"deper-c-user"},Gf=["disabled","onUpdate:modelValue","onChange"],Rf={class:"user-icon"},jf={key:0},Kf=["src"],Yf={class:"user-name"},Hf={class:"span"},Wf={class:"phone"},zf={class:"deper-search-section"},Zf={class:"search-user"},Xf=i.createElementVNode("div",{class:"search-title"},"\u641C\u7D22\u7ED3\u679C",-1),_f=["onUpdate:modelValue","disabled","onChange"],qf={class:"user-icon"},$f={key:0},eA=["src"],tA={class:"user-name"},sA={class:"span"},nA={class:"phone"},oA={class:"txt"},iA={key:2,class:"deper-son"},aA=i.createElementVNode("span",null,"\u5305\u542B\u5B50\u7EA7",-1),lA={class:"deper-bottom"},cA={key:0,class:"icon-jiantouyou iconfont"};function dA(s,a,c,p,h,u){const g=i.resolveComponent("dc-switch"),B=i.resolveComponent("checked"),N=i.resolveComponent("dcLoading");return i.openBlock(),i.createElementBlock("main",hf,[i.createElementVNode("div",mf,[s.orgType.length>1?(i.openBlock(),i.createElementBlock("div",uf,[s.isOrgType?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:a[0]||(a[0]=k=>s.handleOrgType(0)),class:i.normalizeClass([{active:s.activeOrgType===0},"deper-n-item"])},"\u7EC4\u7EC7",2)):i.createCommentVNode("",!0),s.isOrgGroup?(i.openBlock(),i.createElementBlock("div",{key:1,onClick:a[1]||(a[1]=k=>s.handleOrgType(1)),class:i.normalizeClass([{active:s.activeOrgType===1},"deper-n-item"])},"\u7FA4\u7EC4",2)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",gf,[i.createElementVNode("form",{class:"form",onSubmit:a[5]||(a[5]=i.withModifiers(()=>{},["prevent"])),action:"javascript: void(0);"},[ff,i.withDirectives(i.createElementVNode("input",{class:"input",onKeyup:a[2]||(a[2]=i.withKeys((...k)=>s.handleQuery&&s.handleQuery(...k),["enter"])),"onUpdate:modelValue":a[3]||(a[3]=k=>s.keyword=k),type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},null,544),[[i.vModelText,s.keyword]]),s.keyword.length>0?(i.openBlock(),i.createElementBlock("i",{key:0,onClick:a[4]||(a[4]=(...k)=>s.handleEmpty&&s.handleEmpty(...k)),class:"icon-error-fill iconfont close"})):i.createCommentVNode("",!0)],32)],512),[[i.vShow,s.isShowQuery]]),s.isQuery?(i.openBlock(),i.createElementBlock("div",Af,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.breadcrumb,(k,T)=>(i.openBlock(),i.createElementBlock("div",{onClick:I=>s.handleBreadcrumb(k,T),key:k.value,class:i.normalizeClass([{disable:k.disable},"deper-b-item"])},[i.createElementVNode("span",null,i.toDisplayString(k.name),1),yf],10,kf))),128))])):i.createCommentVNode("",!0),s.isAll?(i.openBlock(),i.createElementBlock("div",Cf,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[6]||(a[6]=k=>s.checkedAll=k),onChange:a[7]||(a[7]=(...k)=>s.handleAllCheckbox&&s.handleAllCheckbox(...k)),class:"deper-checkbox",type:"checkbox",name:"deper-all",id:"deper-all"},null,544),[[i.vModelCheckbox,s.checkedAll]]),Ef])):i.createCommentVNode("",!0)]),s.isQuery?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({height:s.getHight}),class:"deper-center"},[s.companyJson.length>0?(i.openBlock(),i.createElementBlock("div",Bf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,k=>(i.openBlock(),i.createElementBlock("div",{key:k.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{width:s.isNotLevel,isNoDelete:k.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":T=>k.checked=T,onChange:T=>s.handleCheckbox(T,k),class:"deper-checkbox",type:"checkbox"},null,40,If),[[i.vShow,s.isShowSubject],[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Nf,[i.createElementVNode("div",bf,i.toDisplayString(k.name),1),k.num>0?(i.openBlock(),i.createElementBlock("div",vf,[i.createTextVNode("("),i.createElementVNode("label",Tf,i.toDisplayString(k.num)+"/"+i.toDisplayString(k.counts),1),i.createTextVNode(")")])):(i.openBlock(),i.createElementBlock("div",wf,"("+i.toDisplayString(k.counts)+")",1))])],2),!s.isNotLevel&&k.counts>0?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:T=>s.handleLevel(k),class:i.normalizeClass([{isdisabled:k.isLevel},"depart-right"])},Sf,10,Vf)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.deptJson.length>0?(i.openBlock(),i.createElementBlock("div",Df,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,k=>(i.openBlock(),i.createElementBlock("div",{key:k.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{isNoDelete:k.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":T=>k.checked=T,onChange:T=>s.handleCheckbox(T,k),class:"deper-checkbox",type:"checkbox"},null,40,Qf),[[i.vShow,s.isShowDept],[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Of,[i.createElementVNode("div",Ff,i.toDisplayString(k.name),1),k.num>0?(i.openBlock(),i.createElementBlock("div",Mf,[i.createTextVNode("("),i.createElementVNode("label",xf,i.toDisplayString(k.num)+"/"+i.toDisplayString(k.counts),1),i.createTextVNode(")")])):(i.openBlock(),i.createElementBlock("div",Lf,"("+i.toDisplayString(k.counts)+")",1))])],2),k.counts>0?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:T=>s.handleLevel(k),class:i.normalizeClass([{isdisabled:k.isLevel},"depart-right"])},Pf,10,Uf)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.userJson.length>0?(i.openBlock(),i.createElementBlock("div",Jf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,k=>(i.openBlock(),i.createElementBlock("label",{key:k.uniqueId,class:i.normalizeClass([{isNoDelete:k.isNoDelete},"user-item"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":T=>k.checked=T,onChange:T=>s.handleCheckbox(T,k),class:"deper-checkbox",type:"checkbox"},null,40,Gf),[[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Rf,[k.avatar.length<1?(i.openBlock(),i.createElementBlock("span",jf,i.toDisplayString(k.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:k.avatar},null,8,Kf))]),i.createElementVNode("div",Yf,[i.createElementVNode("div",Hf,i.toDisplayString(k.name),1),i.createElementVNode("div",Wf,i.toDisplayString(k.phone),1)])],2))),128))])):i.createCommentVNode("",!0)],4)):(i.openBlock(),i.createElementBlock("div",{key:1,style:i.normalizeStyle({height:s.getSearchHight}),class:"deper-search"},[i.createCommentVNode("",!0),i.createElementVNode("div",zf,[i.createCommentVNode("",!0),i.createElementVNode("div",Zf,[Xf,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,k=>(i.openBlock(),i.createElementBlock("label",{key:k.uniqueId,class:"user-item"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":T=>k.checked=T,disabled:k.isDisabled,onChange:T=>s.handleCheckbox(T,k),class:"deper-checkbox",type:"checkbox"},null,40,_f),[[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",qf,[k.avatar.length<1?(i.openBlock(),i.createElementBlock("span",$f,i.toDisplayString(k.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:k.avatar},null,8,eA))]),i.createElementVNode("div",tA,[i.createElementVNode("div",sA,i.toDisplayString(k.name),1),i.createElementVNode("div",nA,i.toDisplayString(k.phone),1),i.createElementVNode("div",oA,i.toDisplayString(k.ancestorNames),1)])]))),128))])])],4)),s.isDept?(i.openBlock(),i.createElementBlock("div",iA,[aA,i.createVNode(g,{modelValue:s.isSon,name:"isSone"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",lA,[i.createElementVNode("div",{onClick:a[8]||(a[8]=k=>s.handleChecked(!0,s.checkedJson)),class:"deper-b-checked"},[i.createElementVNode("span",null,i.toDisplayString(s.checkedNumber),1),s.checkedNumber.length>0?(i.openBlock(),i.createElementBlock("i",cA)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{onClick:a[9]||(a[9]=(...k)=>s.handleSubmit&&s.handleSubmit(...k)),class:"deper-b-btn"},"\u786E\u5B9A")]),i.createVNode(B,{ref:"checkedDp",onCallback:s.handleCallback},{user:i.withCtx(({item:k})=>[i.renderSlot(s.$slots,"checkedUser",{item:k})]),_:3},8,["onCallback"]),s.isLoading?(i.openBlock(),i.createBlock(N,{key:3})):i.createCommentVNode("",!0)])}const rA=es(pf,[["render",dA]]);o.departPerson=rA,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(me,me.exports);const zc="data:image/png;base64,iVBORw0KGgoAAAANSU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opup:ee,TopDownSelect:co,PreviewImage:ws,departPerson:me.exports.departPerson,TopTips:he},props:{isCheckType:{type:String,default:"0"},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:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),e&&this.handleOption()}},businessType:{handler(e,n){this.businessTypeData=e},immediate:!0},id:{handler(e,n){e&&(this.idData=e,this.getProcessInstance())},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),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())},immediate:!0,deep:!0},resubmit:{handler(e,n){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return zc}},methods:{handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){this.checkedItem={},this.firstPerson=[],this.personList=[],!(this.selfList&&this.selfList.length)&&(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,e.data&&e.data.length?(this.handleTips("",!0,"success"),this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl()):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]))}))},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,this.processId&&this.option.map((n,o)=>{n.id===e.data.processDefId&&(this.checkedItem=n,this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())}))})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),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"),this.checkedItem={},this.firstPerson=[],this.personList=[],console.log("\u5F53\u524D\u9009\u62E9::::",e,n),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl(),this.$emit("change",e,n)},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)),this.$refs.topTips.handleClose()})},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:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,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,i)=>{n=o.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:n,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0},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,i)=>{n=o.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,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.btnLoading){if(this.btnLoading=!0,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.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),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.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}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"),this.btnLoading=!1):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.btnLoading=!1):(this.handleTips(o.msg,!0,"error"),this.btnLoading=!1)}).catch(o=>{this.handleTips(o.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(n.msg,!0,"error"),this.btnLoading=!1)}).catch(n=>{this.handleTips(n.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips&&this.$refs.topTips.handleOpen()}}}),bA="",Mt=e=>(t.pushScopeId("data-v-cc07ec84"),e=e(),t.popScopeId(),e),Xc={class:"sumbmitPopup-select"},_c=Mt(()=>t.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"}," \u5F53\u524D\u6D41\u7A0B ",-1)),qc={class:"sumbmitPopup-select-checked-node"},$c={class:"sumbmitPopup-select-viewTrack"},ed=["src"],td={key:0,class:"person-views"},sd=Mt(()=>t.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),nd={class:"views-items"},od={class:"views-items-name"},id=Mt(()=>t.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),ad={class:"views-items-set"},ld={key:0},cd={key:0},dd={key:1},rd={key:2},pd=["onClick"],hd={key:1,class:"person-views"},md=Mt(()=>t.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),ud={class:"views-items"},gd={class:"views-items-name"},fd={class:"views-items-set"},Ad={key:0},kd={key:0},yd={key:1},Cd=["onClick"],Ed={key:2,class:"person-views-white"};function Bd(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),f=t.resolveComponent("TopPopup"),A=t.resolveComponent("departPerson"),C=t.resolveComponent("PreviewImage"),y=t.resolveComponent("TopTips");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(f,{visible:e.show,"onUpdate:visible":n[2]||(n[2]=r=>(e.show=r,e.$emit("update:visible",r))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index sumbmitPopup-index-sumbit",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:t.withCtx(()=>[t.createVNode(m,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect"},{header:t.withCtx(r=>[t.createElementVNode("div",Xc,[t.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:n[0]||(n[0]=(...E)=>e.handleSelect&&e.handleSelect(...E))},[_c,t.createElementVNode("div",qc,t.toDisplayString(r.data.name?r.data.name:r.data.placeholder),1)]),t.createElementVNode("div",$c,[e.checkedItem.id?(t.openBlock(),t.createElementBlock("div",{key:0,class:"viewTrack",onClick:n[1]||(n[1]=E=>e.taskurlshow=!0)},[t.createElementVNode("img",{src:e.ProcessImg},null,8,ed),t.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ")])):t.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue"]),e.firstPerson&&e.firstPerson.length?(t.openBlock(),t.createElementBlock("div",td,[sd,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.firstPerson,(r,E)=>(t.openBlock(),t.createElementBlock("div",nd,[t.createElementVNode("div",od,[t.createTextVNode(t.toDisplayString(r.name)+" ",1),id]),t.createElementVNode("div",ad,[e.partNode[r.id]&&e.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",ld,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[r.id],(v,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w>=3?"":w==0?v:`,${v}`),1))),256)),e.partNode[r.id].length>3?(t.openBlock(),t.createElementBlock("span",cd,"...\u7B49"+t.toDisplayString(e.partNode[r.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):r.routeTxt&&r.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",dd,t.toDisplayString(r.routeTxt.userNames),1)):t.createCommentVNode("",!0),r.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||r.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",rd)):(t.openBlock(),t.createElementBlock("div",{key:3,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(r)}," \u8BBE\u7F6E ",8,pd))])]))),256))])):t.createCommentVNode("",!0),e.personList&&e.personList.length?(t.openBlock(),t.createElementBlock("div",hd,[md,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.personList,(r,E)=>(t.openBlock(),t.createElementBlock("div",ud,[t.createElementVNode("div",gd,t.toDisplayString(r.name),1),t.createElementVNode("div",fd,[e.partNode[r.id]&&e.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[r.id],(v,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w>=3?"":w==0?v:`,${v}`),1))),256)),e.partNode[r.id].length>3?(t.openBlock(),t.createElementBlock("span",kd,"...\u7B49"+t.toDisplayString(e.partNode[r.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",yd)),t.createElementVNode("div",{class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(r)}," \u8BBE\u7F6E ",8,Cd)])]))),256))])):t.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(t.openBlock(),t.createElementBlock("div",Ed," \u65E0\u9700\u8BBE\u7F6E ")):t.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),t.createVNode(f,{visible:e.visiblePerson,"onUpdate:visible":n[3]||(n[3]=r=>e.visiblePerson=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:t.withCtx(()=>[t.createVNode(A,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(C,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":n[4]||(n[4]=r=>e.taskurlshow=r),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),t.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const ro=P(Zc,[["render",Bd],["__scopeId","data-v-cc07ec84"]]),Id="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirF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aztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Nd=pe({name:"attchViews",components:{TopTips:he,PreviewImage:ws,PreView:_n,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 Id},del(){return qn},doc(){return $n},file(){return eo},image(){return to},pdf(){return so},xls(){return no},zip(){return oo}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",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}document.getElementById("fileUp").click()},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const o=Array.from(e.target.files);document.getElementById("fileUp").value="";let i=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 m=new FormData;m.append("file",o[d]);const f=await this.request.post("/file/upload",m,{headers:{"Content-Type":"multipart/form-data"}});if(f.code===200){if(this.filesArr.length>0){for(let A=0;A<this.filesArr.length;A++)if(f.originFileName==this.filesArr[A].originFileName&&i++,this.filesArr[A].originFileName.includes(`(${i})`)&&i++,i>0){let C=f.originFileName.lastIndexOf(".");f.originFileName=`${f.originFileName.substring(0,C)} (${i}) .${f.originFileName.substring(f.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(f.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.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},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()}}}),vA="",bd={class:"attch-upload"},vd={key:0,class:"attch-upload-mask"},Td={class:"attch-upload-body"},wd={class:"upload-header"},Vd={class:"upload-header-title"},Sd={key:0,class:"upload-header-title--re"},Dd={class:"upload-header-upload"},Qd=["src"],Od={class:"upload-body"},Fd={key:0,class:"upload-list"},Md={class:"list-items-icon"},xd=["src"],Ld=["src"],Ud=["src"],Pd=["src"],Jd=["src"],Gd=["src"],Rd={class:"list-items-info"},jd={class:"info-name"},Kd={class:"info-attribute"},Yd={class:"info-attribute-size"},Hd=["onClick"],Wd={key:0,class:"list-items-operation"},zd=["onClick"],Zd=["src"];function Xd(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("PreviewImage"),A=t.resolveComponent("PreView"),C=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",bd,[e.buttonLoading?(t.openBlock(),t.createElementBlock("div",vd)):t.createCommentVNode("",!0),t.createElementVNode("div",Td,[t.createElementVNode("div",wd,[t.createElementVNode("div",Vd,[t.createTextVNode(" \u9644\u4EF6 "),e.requires?(t.openBlock(),t.createElementBlock("span",Sd,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Dd,[e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:n[0]||(n[0]=(...y)=>e.handleClick&&e.handleClick(...y))},[t.createElementVNode("img",{src:e.addFile},null,8,Qd),t.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),t.createElementVNode("div",Od,[e.filesArr.length>0?(t.openBlock(),t.createElementBlock("div",Fd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filesArr,(y,r)=>(t.openBlock(),t.createElementBlock("div",{class:"list-items",key:y.uuid},[t.createElementVNode("div",Md,[e.xlsIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,xd)):e.imgIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Ld)):y.name.substring(y.name.lastIndexOf(".")+1)=="pdf"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Ud)):e.docIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Pd)):e.zipIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Jd)):(t.openBlock(),t.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Gd))]),t.createElementVNode("div",Rd,[t.createElementVNode("div",jd,t.toDisplayString(y.originFileName),1),t.createElementVNode("div",Kd,[t.createElementVNode("span",Yd,t.toDisplayString(y.fileSize<1024?y.fileSize:y.fileSize/1024>1024?parseFloat((y.fileSize/1024/1024).toFixed(2)):parseFloat((y.fileSize/1024).toFixed(2)))+t.toDisplayString(y.fileSize<1024?"b":parseFloat((y.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),t.createElementVNode("span",{class:"info-attribute-views",onClick:E=>e.viewFile(y,r)}," \u9884\u89C8 ",8,Hd)])]),e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Wd,[t.createElementVNode("div",{onClick:E=>e.handleDel(r,y),class:"list-items-operation-img"},[t.createElementVNode("img",{src:e.del},null,8,Zd)],8,zd)]))]))),128))])):t.createCommentVNode("",!0)])]),t.createVNode(m,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{images:e.lists,visible:e.visible,"onUpdate:visible":n[1]||(n[1]=y=>e.visible=y),indexd:e.indexd},null,8,["images","visible","indexd"]),t.createVNode(C,{visible:e.visibleS,"onUpdate:visible":n[2]||(n[2]=y=>e.visibleS=y),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[e.visibleS?(t.openBlock(),t.createBlock(A,{key:0,file:e.fileUrl},null,8,["file"])):t.createCommentVNode("",!0)]),_:1},8,["visible"])])}const ve=P(Nd,[["render",Xd],["__scopeId","data-v-a7312e07"]]),_d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB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iAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsLk5JVbTV5I4tBnGmfj0k1zHicX0doYT7/xd3MvVqZAgoerdqwDYCzlrVcQrXBxc0OMG4Hk3oXrabYZy8BP7WfupBdCQCDrkPsbOGJo+ut1Mv7i1dF0ep1RkSqVCJTks+ZVqNbuullBjJe0vdBPRGJNfq3yuW5g2Z7al9lZ+u1GIH2jC5bkZZ/7+2UXV3/GKnfNWuCOrWyMzVnGRdXPMHmzzK4EUjrzjG1A7ml/3ew/er6uBFJus/Z0yIyoW57slTuB9A2yXLw8onEzlq66Wj1cCoRVZCxa+LGf3lYPlwLpG1VyRDje4TX0nvs8hXS1B1lNMRv2oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",TA="",qd={name:"msgList",components:{TopPopup:ee},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return _d}},watch:{visible:{handler(e,n){e&&this.request.get("/auth/user/opinion/my").then(o=>{o.code===200&&(this.listData=o.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(n=>{n.code===200&&(this.listData=n.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},$d={key:0,class:"top-msg"},er=["onClick"],tr={class:"top-msg-items-text"},sr=["onClick"],nr=["src"];function or(e,n,o,i,l,d){const m=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",null,[o.visible?(t.openBlock(),t.createElementBlock("div",$d,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.listData,f=>(t.openBlock(),t.createElementBlock("div",{class:"top-msg-items",onClick:A=>d.handleMsg(f)},[t.createElementVNode("div",tr,t.toDisplayString(f.opinionName),1),t.createElementVNode("div",{class:"top-msg-items-del",onClick:t.withModifiers(A=>d.handleOpenMsg(f),["stop"])},[t.createElementVNode("img",{src:d.Del},null,8,nr)],8,sr)],8,er))),256))])):t.createCommentVNode("",!0),t.createVNode(m,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${l.opinion.opinionName}'\u5220\u9664`,cancel:d.handleTipsCancel,comfig:d.handleDel,visible:l.visibleListMsg,"onUpdate:visible":n[0]||(n[0]=f=>l.visibleListMsg=f)},null,8,["context","cancel","comfig","visible"])])}const pt=P(qd,[["render",or],["__scopeId","data-v-87fc3e49"]]),wA="",ir={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,MsgList:pt},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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){console.log("111:::",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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("counterSign")}}},ht=e=>(t.pushScopeId("data-v-45384676"),e=e(),t.popScopeId(),e),ar={class:"process-popup-content"},lr={key:0},cr=ht(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),dr={class:"process-pc-value"},rr={class:"process-popup-textarea"},pr={key:0,class:"msg-btn"},hr=ht(()=>t.createElementVNode("div",null,[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),mr=["onClick"],ur={class:"process-pc-value--people"},gr={key:0,class:"process-pc-value--data"},fr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ar=[ht(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],kr=ht(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),yr=["onClick"],Cr={class:"process-pc-value--people"},Er={key:0,class:"process-pc-value--data"},Br={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ir=[ht(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Nr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",ar,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",lr,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),cr,t.createElementVNode("div",dr,[t.createElementVNode("div",rr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",pr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[hr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",ur,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",gr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(E,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",fr,Ar))])],8,mr)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[kr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",Cr,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Er,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(E,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Br,Ir))])],8,yr)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=r=>l.visible=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="5"?(t.openBlock(),t.createBlock(C,{key:2,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),t.createVNode(A,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(A,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"])])}const br=P(ir,[["render",Nr],["__scopeId","data-v-45384676"]]),DA="",vr={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,MsgList:pt},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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){console.log("111:::",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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("delegateTask")}}},mt=e=>(t.pushScopeId("data-v-4d755aa2"),e=e(),t.popScopeId(),e),Tr={class:"process-popup-content"},wr={key:0},Vr=mt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Sr={class:"process-pc-value"},Dr={class:"process-popup-textarea"},Qr={key:0,class:"msg-btn"},Or=mt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Fr=["onClick"],Mr={class:"process-pc-value--people"},xr={key:0,class:"process-pc-value--data"},Lr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ur=[mt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Pr=mt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Jr=["onClick"],Gr={class:"process-pc-value--people"},Rr={key:0,class:"process-pc-value--data"},jr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Kr=[mt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Yr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",Tr,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",wr,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Vr,t.createElementVNode("div",Sr,[t.createElementVNode("div",Dr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Qr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Or,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",Mr,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",xr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(E,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Lr,Ur))])],8,Fr)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Pr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",Gr,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Rr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(E,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",jr,Kr))])],8,Jr)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=r=>l.visible=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(C,{key:2,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),t.createVNode(A,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(A,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"])])}const Hr=P(vr,[["render",Yr],["__scopeId","data-v-4d755aa2"]]),Wr="data:image/png;base64,iVB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AIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",FA="",MA="",zr={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,MsgList:pt},computed:{check(){return lo},checkS(){return Wr}},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:""}},watch:{"param.visible":{handler(e,n){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,console.log("param:::",this.param),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,i)=>{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"||o.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&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,i)=>{o.type!=="endEvent"&&(console.log("\u6D4B\u8BD5\u6570\u636E:::",o),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:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue),console.log("\u67E5\u770B::",this.radioCheckNodeList)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,n){e.map((o,i)=>{o.childNode&&o.childNode.length?this.forRadioChild(o.childNode,!0):n&&this.radioCheckChild.push(o)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],console.log("item",e,"radioCheckChild",this.radioCheckChild),this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(n=>{n.participantList&&n.participantList.length?n.participantList.map(o=>{this.multiNodeParticipant[n.id]||(this.multiNodeParticipant[n.id]=[]),this.partNode[n.id]||(this.partNode[n.id]=[]),this.multiNodeParticipant[n.id].includes(o.id)||this.multiNodeParticipant[n.id].push(o.id),this.partNode[n.id].includes(o.name)||this.partNode[n.id].push(o.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[n.id]}).then(o=>{o.code==200&&(this.partNodeS=[],this.partNodeS.push(o.data[n.id]),console.log("this.partNode",this.partNodeS))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),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}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),console.log("item.id:::",e),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((i,l)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[];e.routeTxt.departmentIds.map((i,l)=>{n=i.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i,deptId:n})}),console.log("multiNodeParticipant",this.multiNodeParticipant[e.id],o),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:n,checkedArray:o}}else{let n=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&(console.log("\u5B58\u5728:::",this.multiNodeParticipant[e.id]),this.multiNodeParticipant[e.id].map((o,i)=>{n.push({type:3,uid:o})})),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:n},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},handleOpenMsg(){this.visibleListMsg=!0},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(console.log("radioCheckNameList",this.radioCheckNameList,this.radioCheckChild),this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let n=0;if(this.radioCheckNameList.map((o,i)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&this.radioCheckChild.map((l,d)=>{l.id==o&&(!l.childNode||!l.childNode.length?n+=1:this.radioCheckNode.map((m,f)=>{(!this.multiNodeParticipant[m]||!this.multiNodeParticipant[m].length)&&(n+=1),e[m]=this.multiNodeParticipant[m]}))}),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,i)=>{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("complete")}}},Y=e=>(t.pushScopeId("data-v-540c205b"),e=e(),t.popScopeId(),e),Zr={class:"process-popup-content"},Xr={key:0,class:"process-pc-label"},_r={key:1,class:"process-pc-value",style:{display:"flex"}},qr={class:"process-radio",style:{width:"100%"}},$r=["onClick"],ep=["src"],tp=["onClick"],sp=["src"],np={key:2},op=Y(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ip={class:"process-pc-value"},ap={class:"process-popup-textarea"},lp={key:0,class:"msg-btn"},cp={class:"process-pc-label"},dp=Y(()=>t.createElementVNode("br",null,null,-1)),rp=Y(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),pp=["onClick"],hp={class:"process-pc-value--people"},mp={key:0,class:"process-pc-value--data"},up={key:1,class:"process-pc-value--data",style:{color:"#888"}},gp=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],fp={key:2,class:"process-pc-value--data"},Ap={key:1,class:"process-pc-label"},kp={key:0},yp={key:2},Cp={class:"process-pc-label"},Ep=Y(()=>t.createElementVNode("br",null,null,-1)),Bp=Y(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ip=["onClick"],Np={class:"process-pc-value--people"},bp={key:0,class:"process-pc-value--data"},vp={key:1,class:"process-pc-value--data",style:{color:"#888"}},Tp=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],wp={key:1,class:"process-pc-label"},Vp={key:2},Sp=Y(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8282\u70B9\u5BA1\u6279 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Dp={key:0,class:"process-pc-value"},Qp={class:"process-radio"},Op=["onClick"],Fp=["src"],Mp={key:1,class:"process-pc-value"},xp={class:"process-pc-value--people"},Lp={style:{"margin-bottom":"10px"}},Up={key:0,class:"process-pc-value--data"},Pp=["onClick"],Jp=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Gp={key:2,class:"process-pc-value--data"},Rp=Y(()=>t.createElementVNode("div",{style:{"margin-top":"20px"}},"\u8282\u70B9\u5BA1\u6279:",-1)),jp=["onClick"],Kp={class:"process-checkbox"},Yp={class:"process-checkbox-item"},Hp=["src"],Wp=["onClick"],zp={class:"process-pc-value--people"},Zp={key:0,class:"process-pc-value--data"},Xp={key:1,class:"process-pc-value--data",style:{color:"#888"}},_p=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],qp={key:1,class:"process-pc-value--data"},$p={key:0},eh=Y(()=>t.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),th={class:"process-pc-value"},sh=Y(()=>t.createElementVNode("div",{style:{"margin-top":"20px"}},"\u8282\u70B9\u5BA1\u6279:",-1)),nh=["onClick"],oh={class:"process-checkbox"},ih={class:"process-checkbox-item"},ah=["src"],lh=["onClick"],ch={class:"process-pc-value--people"},dh={key:0,class:"process-pc-value--data"},rh={key:1,class:"process-pc-value--data",style:{color:"#888"}},ph=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],hh={key:1,class:"process-pc-value--data"},mh={key:0},uh=Y(()=>t.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),gh={class:"process-pc-value"};function fh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("MsgList"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Zr,[o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",Xr," \u5FEB\u6377\u56DE\u590D ")):t.createCommentVNode("",!0),o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",_r,[t.createElementVNode("div",qr,[o.param.isDocument?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.msgCheckList,r=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",r==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=r},[t.createElementVNode("span",null,[r==l.commentMsg?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,ep)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(r),1)],10,$r))),256)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.msgCheckListS,r=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",r==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=r},[t.createElementVNode("span",null,[r==l.commentMsg?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,sp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(r),1)],10,tp))),256)),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",{key:2,class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),o.param.isMsg&&!o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",np,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[1]||(n[1]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),op,t.createElementVNode("div",ip,[t.createElementVNode("div",ap,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[2]||(n[2]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",lp,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[3]||(n[3]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,r=>{var E,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[r.type!="endEvent"&&d.isOption((v=(E=r==null?void 0:r.userTaskModelDTO)==null?void 0:E.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",cp,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(r.userTaskModelDTO.name)+" ",1),dp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),rp])]),t.createElementVNode("div",{class:"process-pc-value",onClick:w=>d.handleOpenPopup(r)},[t.createElementVNode("div",hp,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",mp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",up,gp)):r.routeTxt&&r.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",fp,t.toDisplayString(r.routeTxt.userNames),1)):t.createCommentVNode("",!0)])],8,pp)],64)):r.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",Ap,[t.createTextVNode(t.toDisplayString(r.userTaskModelDTO.name)+" ",1),l.personMakeList[r.id]?(t.openBlock(),t.createElementBlock("span",kp,"\uFF1A"+t.toDisplayString(l.personMakeList[r.id]),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",yp,"\u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6"))],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,r=>{var E,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[l.outGatewayUserTaskModel.childNode&&l.outGatewayUserTaskModel.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.type!="endEvent"&&d.isOption((v=(E=r==null?void 0:r.userTaskModelDTO)==null?void 0:E.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Cp,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(r.userTaskModelDTO.name)+" ",1),Ep,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Bp])]),t.createElementVNode("div",{class:"process-pc-value",onClick:w=>d.handleOpenPopup(r)},[t.createElementVNode("div",Np,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",bp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",vp,Tp))])],8,Ip)],64)):r.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",wp,t.toDisplayString(r.userTaskModelDTO.name),1)):(t.openBlock(),t.createElementBlock("div",Vp,"\u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6"))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Sp,r.childNode&&r.childNode.length?(t.openBlock(),t.createElementBlock("div",Dp,[t.createElementVNode("div",Qp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.childNode,w=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",w.id==l.radioCheck?"process-radio-item--check":""]),onClick:D=>d.handleNode(w)},[t.createElementVNode("span",null,[w.id==l.radioCheck?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,Fp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(w.nodeName||w.name),1)],10,Op))),256))])])):(t.openBlock(),t.createElementBlock("div",Mp,[t.createElementVNode("div",xp,[t.createElementVNode("div",Lp,t.toDisplayString(r.userTaskModelDTO.name),1),l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Up,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"process-pc-value--data",style:{color:"#888"},onClick:w=>d.handleOpenPopup(r)},Jp,8,Pp)):r.routeTxt&&r.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",Gp,t.toDisplayString(r.routeTxt.userNames),1)):t.createCommentVNode("",!0)])]))],64))],64)}),256)),l.radioCheck?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.radioCheckChild&&l.radioCheckChild.length&&l.radioCheckChild[0].type!=="EndEventModel"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Rp,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.radioCheckChild,r=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"process-pc-label",onClick:E=>d.handleSaveNode(r)},[t.createElementVNode("div",Kp,[t.createElementVNode("div",Yp,[t.createTextVNode(t.toDisplayString(r.nodeName||r.name)+" ",1),t.createElementVNode("span",null,[l.radioCheckNameList.includes(r.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:d.checkS},null,8,Hp)):t.createCommentVNode("",!0)])])])],8,jp),!r.childNode||!r.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-pc-value",onClick:E=>d.handleOpenPopup(r)},[t.createElementVNode("div",zp,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Zp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",Xp,_p))])],8,Wp)):(t.openBlock(),t.createElementBlock("div",qp,[l.partNodeS&&l.partNodeS.length?(t.openBlock(),t.createElementBlock("span",$p,t.toDisplayString(l.partNodeS&&l.partNodeS.length?l.partNodeS.join(","):""),1)):t.createCommentVNode("",!0)]))],64)):t.createCommentVNode("",!0)]))),256))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[eh,t.createElementVNode("div",th,t.toDisplayString(l.radioCheckChild[0].type==="EndEventModel"?"\u7ED3\u675F\u4E8B\u4EF6":l.radioCheckName),1)],64))],64)):t.createCommentVNode("",!0),l.radioCheckNodeList&&l.radioCheckNodeList.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.radioCheckNodeList&&l.radioCheckNodeList.length&&l.radioCheckNodeList[0].type!=="EndEventModel"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[sh,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.radioCheckNodeList,r=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"process-pc-label",onClick:E=>d.handleSaveNodeS(r)},[t.createElementVNode("div",oh,[t.createElementVNode("div",ih,[t.createTextVNode(t.toDisplayString(r.nodeName||r.name)+" ",1),t.createElementVNode("span",null,[l.radioCheckNode.includes(r.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:d.checkS},null,8,ah)):t.createCommentVNode("",!0)])])])],8,nh),!r.childNode||!r.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-pc-value",onClick:E=>d.handleOpenPopup(r)},[t.createElementVNode("div",ch,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",dh,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",rh,ph))])],8,lh)):(t.openBlock(),t.createElementBlock("div",hh,[l.partNodeS&&l.partNodeS.length?(t.openBlock(),t.createElementBlock("span",mh,t.toDisplayString(l.partNodeS&&l.partNodeS.length?l.partNodeS.join(","):""),1)):t.createCommentVNode("",!0)]))],64)):t.createCommentVNode("",!0)]))),256))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[uh,t.createElementVNode("div",gh,t.toDisplayString(l.radioCheckChild[0].type==="EndEventModel"?"\u7ED3\u675F\u4E8B\u4EF6":l.radioCheckName),1)],64))],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=r=>l.visible=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),t.createVNode(A,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(C,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(A,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(y,{key:4,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 Ah=P(zr,[["render",fh],["__scopeId","data-v-540c205b"]]),GA="",kh={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,MsgList:pt},watch:{param:{async handler(e,n){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("\u62D2\u7EDD")}}},et=e=>(t.pushScopeId("data-v-709b21e6"),e=e(),t.popScopeId(),e),yh={class:"process-popup-content"},Ch={key:0},Eh=et(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Bh={class:"process-pc-value"},Ih={class:"process-popup-textarea"},Nh={key:0,class:"msg-btn"},bh=et(()=>t.createElementVNode("br",null,null,-1)),vh=et(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Th=["onClick"],wh={class:"process-pc-value--people"},Vh={key:0,class:"process-pc-value--data"},Sh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Dh=[et(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Qh={style:{"font-size":"15px"}},Oh=et(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Fh=[et(()=>t.createElementVNode("div",{class:"process-pc-value--people"},t.toDisplayString(234),-1))];function Mh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",yh,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Ch,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Eh,t.createElementVNode("div",Bh,[t.createElementVNode("div",Ih,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Nh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,r=>{var E,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[d.isOption((v=(E=r==null?void 0:r.userTaskModelDTO)==null?void 0:E.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(r.userTaskModelDTO.name)+" ",1),bh,t.createTextVNode(" \u5BA1\u6279\u4EBA "),vh]),t.createElementVNode("div",{class:"process-pc-value",onClick:w=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",wh,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Vh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(w,D)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(D==0?w:`,${w}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Sh,Dh))])],8,Th)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[d.isOption(r.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Qh,t.toDisplayString(r.name),1),Oh,t.createElementVNode("div",{class:"process-pc-value",onClick:n[3]||(n[3]=(...E)=>d.handleOpenPopup&&d.handleOpenPopup(...E))},Fh)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=r=>l.visible=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="\u62D2\u7EDD"?(t.openBlock(),t.createBlock(C,{key:2,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),t.createVNode(A,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(A,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"])])}const xh=P(kh,[["render",Mh],["__scopeId","data-v-709b21e6"]]),KA="",Lh={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,TopDownSelect:co,MsgList:pt},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("\u9000\u56DE")}}},po=e=>(t.pushScopeId("data-v-ff1be51f"),e=e(),t.popScopeId(),e),Uh={class:"process-popup-content"},Ph=po(()=>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)),Jh={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},Gh={key:0},Rh=po(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),jh={class:"process-pc-value"},Kh={class:"process-popup-textarea"},Yh={key:0,class:"msg-btn"};function Hh(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),f=t.resolveComponent("TopTips"),A=t.resolveComponent("MsgList"),C=t.resolveComponent("TopPopup"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Uh,[Ph,t.createElementVNode("div",Jh,[t.createVNode(m,{option:l.option,onChange:d.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Gh,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Rh,t.createElementVNode("div",jh,[t.createElementVNode("div",Kh,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Yh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),t.createVNode(f,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(C,{visible:l.visibleListMsg,"onUpdate:visible":n[3]||(n[3]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(C,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[4]||(n[4]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"]),l.labels=="\u9000\u56DE"?(t.openBlock(),t.createBlock(y,{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 Wh=P(Lh,[["render",Hh],["__scopeId","data-v-ff1be51f"]]),YA="",zh={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("ccTask")}}},xt=e=>(t.pushScopeId("data-v-a9fb7e98"),e=e(),t.popScopeId(),e),Zh={class:"process-popup-content"},Xh=xt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),_h=["onClick"],qh={class:"process-pc-value--people"},$h={key:0,class:"process-pc-value--data"},em={key:1,class:"process-pc-value--data",style:{color:"#888"}},tm=[xt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))],sm=xt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),nm=["onClick"],om={class:"process-pc-value--people"},im={key:0,class:"process-pc-value--data"},am={key:1,class:"process-pc-value--data",style:{color:"#888"}},lm=[xt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))];function cm(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Zh,[l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,y=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Xh,t.createElementVNode("div",{class:"process-pc-value",onClick:r=>d.handleOpenPopup(y.id)},[t.createElementVNode("div",qh,[l.partNode[y.id]&&l.partNode[y.id].length?(t.openBlock(),t.createElementBlock("div",$h,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[y.id],(r,E)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(E==0?r:`,${r}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",em,tm))])],8,_h)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,y=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[sm,t.createElementVNode("div",{class:"process-pc-value",onClick:r=>d.handleOpenPopup(y.id)},[t.createElementVNode("div",om,[l.partNode[y.id]&&l.partNode[y.id].length?(t.openBlock(),t.createElementBlock("div",im,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[y.id],(r,E)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(E==0?r:`\uFF1B${r}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",am,lm))])],8,nm)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=y=>l.visible=y),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="2"?(t.openBlock(),t.createBlock(C,{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 dm=P(zh,[["render",cm],["__scopeId","data-v-a9fb7e98"]]),zA="",rm={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.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()}}},Vs=e=>(t.pushScopeId("data-v-1bc995da"),e=e(),t.popScopeId(),e),pm={class:"process-popup-content"},hm={class:"process-pc-label"},mm=Vs(()=>t.createElementVNode("br",null,null,-1)),um=Vs(()=>t.createElementVNode("div",null,[t.createTextVNode("\u5BA1\u6279\u4EBA"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),gm={class:"process-pc-value--people"},fm={key:0,class:"process-pc-value--data"},Am={key:1,class:"process-pc-value--data",style:{color:"#888"}},km=[Vs(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function ym(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",pm,[t.createElementVNode("template",null,[t.createElementVNode("div",hm,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(l.getFirstProcessNode.name)+" ",1),mm,um])]),t.createElementVNode("div",{class:"process-pc-value",onClick:n[0]||(n[0]=C=>d.handleOpenPopup(l.getFirstProcessNode.id))},[t.createElementVNode("div",gm,[l.partNode[l.getFirstProcessNode.id]&&l.partNode[l.getFirstProcessNode.id].length?(t.openBlock(),t.createElementBlock("div",fm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[l.getFirstProcessNode.id],(C,y)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(y==0?C:`,${C}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Am,km))])])]),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=C=>l.visible=C),titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,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 Cm=P(rm,[["render",ym],["__scopeId","data-v-1bc995da"]]),Em=pe({name:"TopProcess",components:{TopTab:Bc,TopPopup:ee,TopTips:he,TopSumbitPopup:ro},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:""},isMsg:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1}},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:"",TopPopup1:!1}},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(i=>{i.name=i.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0},restartData:{handler(e,n){e&&(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(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var o,i;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(Ah,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(xh,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=m=>{this.handleActionClose(),this.showOperation(Wh,m,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(dm,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(Hr,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(br,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&&((i=this.taskNode[0])==null?void 0:i.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(){console.log("btnList",this.operBtn);let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),`calc(100vh - ${e}px)`},processBtn(){if(console.log("btnList",this.operBtn),this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{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.bottomNum,"diss::",this.topNum)},1e3)})},handleTestsss(e,n){console.log("==========:::",e,n)},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 i=0;i<this.nextNodeData.length;i++)this.approveNode=this.nextNodeData[i]}else{let i=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(i,"")}},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 i=0;i<o.data.length;i++){let l=o.data[i];if(l.type!="UserTaskModel"&&l.type!="EndEventModel"){let d=await this.getOutgoingProcessNode(e,l.id);d&&d.length&&(await d.map((m,f)=>{m.nodeName=m.incomingConditionItemList&&m.incomingConditionItemList.length?m.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.handleTips("",!0,"loading"),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),this.handleGetHeight()}).catch(e=>{this.handleGetHeight()})},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),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight()})},async showOperation(e,n,o,i){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length&&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=i),this.titleText=n,this.operationCom=e,this.operationParam.visible=this.TopPopup1,this.operationParam.annex=i,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.userInfo=this.user,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.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,this.taskObj.commentModels.some(d=>this.operationParam.actionComplete=d!=null&&d.isDefault?d.actionName:""),this.TopPopup1=!0},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1},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("\u50AC\u529E")):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("\u64A4\u9500")):(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(Cm,"\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()}}}),XA="",tt=e=>(t.pushScopeId("data-v-fee73224"),e=e(),t.popScopeId(),e),Bm={class:"process-warp"},Im={key:0,class:"process-main",id:"process-header",ref:"processheader"},Nm={class:"process-ml-item border"},bm=tt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),vm={class:"process-mli-value"},Tm={class:"process-ml-item border"},wm=tt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),Vm={class:"process-mli-value"},Sm={key:0,class:"process-ml-item"},Dm=tt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),Qm={class:"process-mli-value",style:{width:"50%","text-align":"right"}},Om={class:"process-mliv-jd"},Fm=["slot"],Mm={slot:"default",style:{}},xm=["slot"],Lm={key:0,class:"footBtnRow"},Um=["onClick"],Pm=[tt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),tt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),tt(()=>t.createElementVNode("div",{class:"circle"},null,-1))],Jm=["onClick"],Gm=["onClick"];function Rm(e,n,o,i,l,d){const m=t.resolveComponent("TopTab"),f=t.resolveComponent("TopPopup"),A=t.resolveComponent("TopTips"),C=t.resolveComponent("TopSumbitPopup");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Bm,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",Im,[t.createElementVNode("div",Nm,[bm,t.createElementVNode("div",vm,[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",Tm,[wm,t.createElementVNode("div",Vm,[t.createElementVNode("span",null,t.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(t.openBlock(),t.createElementBlock("div",Sm,[Dm,t.createElementVNode("div",Qm,[t.createElementVNode("span",Om,t.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"process-card",style:t.normalizeStyle({height:e.processCardHeight})},[t.createVNode(m,{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,(y,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,slot:y.slot},[t.renderSlot(e.$slots,y.slot,{},void 0,!0)],8,Fm))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Mm,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tapList,(y,r)=>(t.openBlock(),t.createElementBlock("div",{style:{},key:r,slot:y.slot},[t.renderSlot(e.$slots,y.slot,{},void 0,!0)],8,xm))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:t.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(t.openBlock(),t.createElementBlock("div",Lm,[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,(y,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[r<3?(t.openBlock(),t.createElementBlock("div",{class:"top-button",style:t.normalizeStyle(e.getBtnStyle(y.btnProps.type.toString())),key:y.name,onClick:E=>y.click(y.name)},t.toDisplayString(y.name),13,Um)):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]=(...y)=>e.handleActionOpen&&e.handleActionOpen(...y))},Pm)):t.createCommentVNode("",!0)],64))],64))],4))]),t.createVNode(f,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":n[1]||(n[1]=y=>e.TopPopup1=y)},{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","visible"]),t.createVNode(f,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),t.createVNode(A,{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,y=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:r=>e.handleGet(y),key:y.taskId},t.toDisplayString(y.name),9,Jm))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.actionBtn,y=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:r=>y.click(y.name),key:y.name},t.toDisplayString(y.name),9,Gm))),128)),t.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:n[2]||(n[2]=(...y)=>e.handleActionClose&&e.handleActionClose(...y))}," \u53D6\u6D88 ")],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-elips-mask",onClick:n[3]||(n[3]=(...y)=>e.handleActionClose&&e.handleActionClose(...y)),style:t.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),t.createVNode(C,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,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"])])}const jm=P(Em,[["render",Rm],["__scopeId","data-v-fee73224"]]);ce.TopProcess=jm,ce.TopSumbitPopup=ro,ce.ViewAttchList=ao,ce.attchViews=ve,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
42
|
+
`,document.body.appendChild(this.mainContainer)}message(a={}){let c=sessionStorage.getItem(this.sessionStorageName),p=c?JSON.parse(c):null;if(a.againBtn&&a.content&&p&&Array.isArray(p)&&p.includes(a.content))return;const h=df({type:a.type,content:a.content,duration:a.duration,delay:a.delay,againBtn:a.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(h.els),tn(this.mainContainer),rf(h,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const pf=Xt({components:{checked:zg,dcSwitch:tf,dcLoading:lf},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,a)=>{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,a){if(!s)return!1;b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(s,a){let c=[];const p=this.checkedJson.map(h=>{const u=this.entityJson.findIndex(g=>g.id===h.id&&h.type==g.type&&h.type==2)>-1?s&&h.type==2?"4":h.type:h.orgRecordsType;return(u==4||h.type==1)&&c.push(h.id),{...h,orgRecordsType:u}});this.checkedJson=p.filter(h=>h.ancestors.split(",").findIndex(u=>c.indexOf(u)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(s,a){b(this.businessId)&&this.getCards()}}},computed:{queryImg(){return cf},entityJson(){const s=this.checkedJson;return this.jsonData.map(a=>{const c=b(a.ancestors)?"":a.ancestors,p=b(a.ancestorNames)?"":a.ancestorNames,h=c+a.id+"__"+a.type,u=s.find(I=>I.uniqueId===h),g=!b(u),B=g?!1:s.findIndex(I=>I.id===a.id&&a.subjectId===I.subjectId)>-1,N=g?a.type==1||u.orgRecordsType==4:!1,k=b(s)?0:N?a.counts:s.filter(I=>I.type!=1&&I.ancestors.indexOf(a.id)>-1).length,T=g?u.isNoDelete:!1;return{type:a.type,id:a.id,name:a.name,counts:b(a.counts)?0:a.counts,num:k,phone:yg(a.phone),uid:a.uid,iconName:en(a.name,2),checked:g,ancestors:c,ancestorNames:p,deptName:Cg(a.ancestorNames,"/",this.activeOrgType==0?"last":"find"),uniqueId:h,isDisabled:B,isLevel:N,subjectId:a.subjectId,sex:a.sex,avatar:b(a.avatar)?"":a.avatar,isNoDelete:T}})},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(u=>u.type==1).length,a=this.checkedJson.filter(u=>u.type==2).length,c=this.checkedJson.filter(u=>u.type==3||u.type==6).length,p=this.checkedJson.filter(u=>u.type==5).length;let h=[];return s>0&&h.push(s+"\u4E2A\u7EC4\u7EC7"),p>0&&h.push(p+"\u4E2A\u7FA4\u7EC4"),a>0&&h.push(a+"\u4E2A\u90E8\u95E8"),c>0&&h.push(c+"\u4E2A\u6210\u5458"),b(h)?"":"\u5DF2\u9009\u62E9"+h.join("\uFF0C")},breadcrumb_subjectId(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return b(s)?"":s[0].value},breadcrumb_level(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return{ancestors:s.map(a=>a.value).join(","),ancestorNames:s.map(a=>a.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=134;return this.isAll&&(s+=60),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"},isAll(){return this.multiple?this.isShowSubject?this.isShowDept?!0:this.entityJson.findIndex(s=>s.type!=2)>-1:this.entityJson.findIndex(s=>s.type!=1)>-1:!1},isNoDelete(){return b(this.checkedArray)?[]:this.checkedArray.filter(s=>s.isDeleteNo)},isOrgType(){return!!(b(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),b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const s=b(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:b(c.phone)?"":c.phone,sex:c.sex,avatar:c.avatar,uid:b(c.uid)?"":c.uid}));if(b(this.businessId))return this.$emit("callback",s);const a={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",a).then(p=>{p.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=b(this.keyword)})},handleOrgType(s){this.activeOrgType=s,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(s){(this.isShowDept?this.entityJson:this.entityJson.filter(a=>a.type!=2)).forEach(a=>this.handleCheckbox(s,a))},handleCheckbox(s,a){if(a.isDisabled||a.isNoDelete||(a.type==1||a.type==5)&&!this.isShowSubject||a.type==2&&!this.isShowDept)return!1;if(s.currentTarget.checked){if(this.checkedJson.findIndex(g=>g.uniqueId===a.uniqueId)!=-1)return!1;const c=a.type==1?"0":a.ancestors,p=a.type==1?"":a.ancestorNames,h=this.isDept&&this.isSon&&a.type==2?"4":a.type,u={...a,ancestors:c,ancestorNames:p,orgRecordsType:h};return(a.type==1||h==4)&&(this.checkedJson=this.checkedJson.filter(g=>g.ancestors.indexOf(a.id)===-1)),this.getBoolChecked(a)?(s.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(s.currentTarget.checked=!1,new sn().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(u):this.checkedJson=[u],!1)}this.checkedJson=this.checkedJson.filter(c=>c.uniqueId!==a.uniqueId)},handleBreadcrumb(s,a){if(s.disable||a+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=a===0?this.deptCode:a===1&&b(this.deptCode)?0:s.value,this.itemId="",this.subjectId=s.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=b(this.itemCode)?s.value==="-1"?"":s.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((c,p)=>p<a+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}},handleChecked(s,a){this.$refs.checkedDp.init(s,a)},handleCallback(s){this.checkedJson=s},getBoolChecked(s){if(s.type!=3)return!1;const a=s.ancestors.split(","),c=this.checkedJson.filter(h=>h.type==2||h.type==1).find(h=>a.indexOf(h.id)>-1);let p=!1;return b(c)||(c.type==1&&(new sn().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),p=!0),c.type==4&&(new sn().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),p=!0)),p},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=b(this.deptCode)&&b(this.itemCode)?[{name:s,value:"-1"}]:[]},defaultGet(){this.defaultData(),b(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const s=this.entityJson.filter(c=>c.type==2),a=this.checkedJson.filter(c=>c.type==2);this.isSon=a.findIndex(c=>s.findIndex(p=>p.id===c.id&&c.orgRecordsType==4)>-1)>-1},getCheckedAll(){const s=this.entityJson.findIndex(a=>this.checkedJson.findIndex(c=>c.type===a.type&&c.id===a.id&&a.subjectId===c.subjectId)===-1);this.checkedAll=s===-1},getSearch(s=()=>{}){const a={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:this.showType,orgType:this.activeOrgType,itemId:this.itemId};b(a.deptId)&&delete a.deptId,b(a.subjectId)&&delete a.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:a}).then(c=>{s(),this.jsonData=b(c.data)||c.code!==200?[]:c.data;const p=this.breadcrumb.filter(h=>h.value!=="-1");if(!b(this.jsonData)&&b(p)&&(!b(this.deptCode)||!b(this.itemCode)||!b(this.subjectName))){const h=c.data[0];let u=h.ancestors.split(",");b(this.itemCode)||u.pop(),this.breadcrumb=u.map((g,B)=>({value:g,name:h.ancestorNames.split("/")[B],disable:B!==u.length-1&&u.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(s=()=>{}){if(b(this.businessId))return s(),!1;const a={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(p=>{const h=p.type==4?"2":p.type,u=p.type==1?"":p.ancestors,g=u+p.bizId+"__"+h,B=this.isNoDelete.findIndex(N=>N.id===p.id||N.uid===p.uid)>-1;return{...p,ancestors:u,id:p.bizId,type:h,uniqueId:g,orgRecordsType:p.type,iconName:en(p.name,2),sex:p.sex,uid:b(p.uid)?"":p.uid,avatar:b(p.avatar)?"":p.avatar,isNoDelete:B}}),s()})},getCards(s=()=>{}){if(b(this.checkedArray))return s(),this.checkedJson=[];const a=this.checkedArray.map(c=>({type:c.type,id:b(c.id)?null:c.id,uid:b(c.uid)?null:c.uid,subjectId:b(c.subjectId)?null:c.subjectId,deptId:b(c.deptId)?null:c.deptId,itemId:b(c.itemId)?null:c.itemId,orgIds:b(this.orgType)?[0]:this.orgType}));this.request.post("/auth/component/org/cards",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(p=>{const h=p.type==4?"2":p.type,u=p.type==1?"":p.ancestors,g=p.type==1?"":p.ancestorNames,B=u+p.id+"__"+h,N=this.isNoDelete.findIndex(k=>k.id===p.id||k.uid===p.uid)>-1;return{...p,ancestors:u,ancestorNames:g,id:p.id,type:h,uniqueId:B,orgRecordsType:p.type,iconName:en(p.name,2),sex:p.sex,uid:b(p.uid)?"":p.uid,avatar:b(p.avatar)?"":p.avatar,isNoDelete:N}}),s()})},getByName(s=()=>{}){const a={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:a}).then(c=>{console.log("getByName",c),c.code===200&&(this.subjectId=c.data,s())})}}}),hf={class:"departPerson-main"},mf={class:"deper-top"},uf={key:0,class:"deper-nav"},gf={class:"deper-query"},ff=i.createElementVNode("i",{class:"icon-chaxun iconfont chaxun"},null,-1),Af={key:1,class:"deper-breadcrumb"},kf=["onClick"],yf=i.createElementVNode("i",{class:"icon-jiantouyou iconfont"},null,-1),Cf={key:2,class:"deper-all"},Ef=i.createElementVNode("label",{class:"label",for:"deper-all"},"\u5168\u9009",-1),Bf={key:0,class:"deper-c-depart"},If=["disabled","onUpdate:modelValue","onChange"],Nf={class:"depart-name"},bf={class:"name"},vf={key:0,class:"number"},Tf={class:"label"},wf={key:1,class:"number"},Vf=["onClick"],Sf=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],Df={key:1,class:"deper-c-depart"},Qf=["disabled","onUpdate:modelValue","onChange"],Of={class:"depart-name"},Ff={class:"name"},Mf={key:0,class:"number"},xf={class:"label"},Lf={key:1,class:"number"},Uf=["onClick"],Pf=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],Jf={key:2,class:"deper-c-user"},Gf=["disabled","onUpdate:modelValue","onChange"],Rf={class:"user-icon"},jf={key:0},Kf=["src"],Yf={class:"user-name"},Hf={class:"span"},Wf={class:"phone"},zf={class:"deper-search-section"},Zf={class:"search-user"},Xf=i.createElementVNode("div",{class:"search-title"},"\u641C\u7D22\u7ED3\u679C",-1),_f=["onUpdate:modelValue","disabled","onChange"],qf={class:"user-icon"},$f={key:0},eA=["src"],tA={class:"user-name"},sA={class:"span"},nA={class:"phone"},oA={class:"txt"},iA={key:2,class:"deper-son"},aA=i.createElementVNode("span",null,"\u5305\u542B\u5B50\u7EA7",-1),lA={class:"deper-bottom"},cA={key:0,class:"icon-jiantouyou iconfont"};function dA(s,a,c,p,h,u){const g=i.resolveComponent("dc-switch"),B=i.resolveComponent("checked"),N=i.resolveComponent("dcLoading");return i.openBlock(),i.createElementBlock("main",hf,[i.createElementVNode("div",mf,[s.orgType.length>1?(i.openBlock(),i.createElementBlock("div",uf,[s.isOrgType?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:a[0]||(a[0]=k=>s.handleOrgType(0)),class:i.normalizeClass([{active:s.activeOrgType===0},"deper-n-item"])},"\u7EC4\u7EC7",2)):i.createCommentVNode("",!0),s.isOrgGroup?(i.openBlock(),i.createElementBlock("div",{key:1,onClick:a[1]||(a[1]=k=>s.handleOrgType(1)),class:i.normalizeClass([{active:s.activeOrgType===1},"deper-n-item"])},"\u7FA4\u7EC4",2)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",gf,[i.createElementVNode("form",{class:"form",onSubmit:a[5]||(a[5]=i.withModifiers(()=>{},["prevent"])),action:"javascript: void(0);"},[ff,i.withDirectives(i.createElementVNode("input",{class:"input",onKeyup:a[2]||(a[2]=i.withKeys((...k)=>s.handleQuery&&s.handleQuery(...k),["enter"])),"onUpdate:modelValue":a[3]||(a[3]=k=>s.keyword=k),type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},null,544),[[i.vModelText,s.keyword]]),s.keyword.length>0?(i.openBlock(),i.createElementBlock("i",{key:0,onClick:a[4]||(a[4]=(...k)=>s.handleEmpty&&s.handleEmpty(...k)),class:"icon-error-fill iconfont close"})):i.createCommentVNode("",!0)],32)],512),[[i.vShow,s.isShowQuery]]),s.isQuery?(i.openBlock(),i.createElementBlock("div",Af,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.breadcrumb,(k,T)=>(i.openBlock(),i.createElementBlock("div",{onClick:I=>s.handleBreadcrumb(k,T),key:k.value,class:i.normalizeClass([{disable:k.disable},"deper-b-item"])},[i.createElementVNode("span",null,i.toDisplayString(k.name),1),yf],10,kf))),128))])):i.createCommentVNode("",!0),s.isAll?(i.openBlock(),i.createElementBlock("div",Cf,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[6]||(a[6]=k=>s.checkedAll=k),onChange:a[7]||(a[7]=(...k)=>s.handleAllCheckbox&&s.handleAllCheckbox(...k)),class:"deper-checkbox",type:"checkbox",name:"deper-all",id:"deper-all"},null,544),[[i.vModelCheckbox,s.checkedAll]]),Ef])):i.createCommentVNode("",!0)]),s.isQuery?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({height:s.getHight}),class:"deper-center"},[s.companyJson.length>0?(i.openBlock(),i.createElementBlock("div",Bf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,k=>(i.openBlock(),i.createElementBlock("div",{key:k.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{width:s.isNotLevel,isNoDelete:k.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":T=>k.checked=T,onChange:T=>s.handleCheckbox(T,k),class:"deper-checkbox",type:"checkbox"},null,40,If),[[i.vShow,s.isShowSubject],[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Nf,[i.createElementVNode("div",bf,i.toDisplayString(k.name),1),k.num>0?(i.openBlock(),i.createElementBlock("div",vf,[i.createTextVNode("("),i.createElementVNode("label",Tf,i.toDisplayString(k.num)+"/"+i.toDisplayString(k.counts),1),i.createTextVNode(")")])):(i.openBlock(),i.createElementBlock("div",wf,"("+i.toDisplayString(k.counts)+")",1))])],2),!s.isNotLevel&&k.counts>0?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:T=>s.handleLevel(k),class:i.normalizeClass([{isdisabled:k.isLevel},"depart-right"])},Sf,10,Vf)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.deptJson.length>0?(i.openBlock(),i.createElementBlock("div",Df,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,k=>(i.openBlock(),i.createElementBlock("div",{key:k.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{isNoDelete:k.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":T=>k.checked=T,onChange:T=>s.handleCheckbox(T,k),class:"deper-checkbox",type:"checkbox"},null,40,Qf),[[i.vShow,s.isShowDept],[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Of,[i.createElementVNode("div",Ff,i.toDisplayString(k.name),1),k.num>0?(i.openBlock(),i.createElementBlock("div",Mf,[i.createTextVNode("("),i.createElementVNode("label",xf,i.toDisplayString(k.num)+"/"+i.toDisplayString(k.counts),1),i.createTextVNode(")")])):(i.openBlock(),i.createElementBlock("div",Lf,"("+i.toDisplayString(k.counts)+")",1))])],2),k.counts>0?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:T=>s.handleLevel(k),class:i.normalizeClass([{isdisabled:k.isLevel},"depart-right"])},Pf,10,Uf)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.userJson.length>0?(i.openBlock(),i.createElementBlock("div",Jf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,k=>(i.openBlock(),i.createElementBlock("label",{key:k.uniqueId,class:i.normalizeClass([{isNoDelete:k.isNoDelete},"user-item"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":T=>k.checked=T,onChange:T=>s.handleCheckbox(T,k),class:"deper-checkbox",type:"checkbox"},null,40,Gf),[[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Rf,[k.avatar.length<1?(i.openBlock(),i.createElementBlock("span",jf,i.toDisplayString(k.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:k.avatar},null,8,Kf))]),i.createElementVNode("div",Yf,[i.createElementVNode("div",Hf,i.toDisplayString(k.name),1),i.createElementVNode("div",Wf,i.toDisplayString(k.phone),1)])],2))),128))])):i.createCommentVNode("",!0)],4)):(i.openBlock(),i.createElementBlock("div",{key:1,style:i.normalizeStyle({height:s.getSearchHight}),class:"deper-search"},[i.createCommentVNode("",!0),i.createElementVNode("div",zf,[i.createCommentVNode("",!0),i.createElementVNode("div",Zf,[Xf,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,k=>(i.openBlock(),i.createElementBlock("label",{key:k.uniqueId,class:"user-item"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":T=>k.checked=T,disabled:k.isDisabled,onChange:T=>s.handleCheckbox(T,k),class:"deper-checkbox",type:"checkbox"},null,40,_f),[[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",qf,[k.avatar.length<1?(i.openBlock(),i.createElementBlock("span",$f,i.toDisplayString(k.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:k.avatar},null,8,eA))]),i.createElementVNode("div",tA,[i.createElementVNode("div",sA,i.toDisplayString(k.name),1),i.createElementVNode("div",nA,i.toDisplayString(k.phone),1),i.createElementVNode("div",oA,i.toDisplayString(k.ancestorNames),1)])]))),128))])])],4)),s.isDept?(i.openBlock(),i.createElementBlock("div",iA,[aA,i.createVNode(g,{modelValue:s.isSon,name:"isSone"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",lA,[i.createElementVNode("div",{onClick:a[8]||(a[8]=k=>s.handleChecked(!0,s.checkedJson)),class:"deper-b-checked"},[i.createElementVNode("span",null,i.toDisplayString(s.checkedNumber),1),s.checkedNumber.length>0?(i.openBlock(),i.createElementBlock("i",cA)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{onClick:a[9]||(a[9]=(...k)=>s.handleSubmit&&s.handleSubmit(...k)),class:"deper-b-btn"},"\u786E\u5B9A")]),i.createVNode(B,{ref:"checkedDp",onCallback:s.handleCallback},{user:i.withCtx(({item:k})=>[i.renderSlot(s.$slots,"checkedUser",{item:k})]),_:3},8,["onCallback"]),s.isLoading?(i.openBlock(),i.createBlock(N,{key:3})):i.createCommentVNode("",!0)])}const rA=es(pf,[["render",dA]]);o.departPerson=rA,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(me,me.exports);const zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5oRkeU/k/L/4ZlzAINtKAhBhpmC/r6/So8TiSWcFNBgS4AOfwcz2Kkt4HoA0ODgSI9hkhfAAtDvYk3MQ3IXx/jSZzR3apClIcq0v1TpJufV+H/aoM/KLBDAZOApGnUwQHdUaQThQgOkej+x2W4UbANk84UMAfIqmo8VNB5eFrQKapJBaU77sIUIG9u4zVzncENwUCBbuYX4Z5rAO18K2AGkMPP8UFpSrUrgphy7VJowv9uApAGleNlyIewoHPc5ZowCVtcbw5IxTXHruhjTbJLoQn+e1NADMExhn6YX4bjCeYBXLZYQRquO7YnRKBzLNrBy6hAswpisHqgioCL3xRoBojJ6rGSJxJ9wINE0JIUaAJI2ltFcbmFxOof1iJWI1N5XG0A+RTvKNBZZV+zugsLOsVt3yzJXF7cBpDb+E1sA6JWWCLdz/8O51rmYbcPBaoD0sH0Cov1PnK3yiirA2LgqfnewmKatbdUbi+sDshhB+uP53vgWIe4Tfx9HQMgrymFh4b75pHb6+oD0sMCHc9D3CZ8rmMA5BXF8MAwN538XQ9AAIi/rBb0qD4g7V6MypYNFSRbMncNAAgW6e6SWtKh6oDgOYhk+GBLW4HqgBje5v6b1vPLUF0f7YDDfp4C1RNg+c2rGaW9WLb/sBfLdnwqja46IMkvy++CPOsOQCqloO1uWgFi/X0QelrQMT4qZzt5a4yuCS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NjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",Zc=pe({name:"TopSubmitPopup",components:{TopPopup:ee,TopDownSelect:co,PreviewImage:ws,departPerson:me.exports.departPerson,TopTips:he},props:{isCheckType:{type:String,default:"0"},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:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),e&&this.handleOption()}},businessType:{handler(e,n){this.businessTypeData=e},immediate:!0},id:{handler(e,n){e&&(this.idData=e,this.getProcessInstance())},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),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())},immediate:!0,deep:!0},resubmit:{handler(e,n){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return zc}},methods:{handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){this.checkedItem={},this.firstPerson=[],this.personList=[],!(this.selfList&&this.selfList.length)&&(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,e.data&&e.data.length?(this.handleTips("",!0,"success"),this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl()):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]))}))},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,this.processId&&this.option.map((n,o)=>{n.id===e.data.processDefId&&(this.checkedItem=n,this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())}))})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),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"),this.checkedItem={},this.firstPerson=[],this.personList=[],console.log("\u5F53\u524D\u9009\u62E9::::",e,n),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl(),this.$emit("change",e,n)},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)),this.$refs.topTips.handleClose()})},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:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,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,i)=>{n=o.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:n,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0},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,i)=>{n=o.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,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.btnLoading){if(this.btnLoading=!0,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.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),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.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}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"),this.btnLoading=!1):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.btnLoading=!1):(this.handleTips(o.msg,!0,"error"),this.btnLoading=!1)}).catch(o=>{this.handleTips(o.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(n.msg,!0,"error"),this.btnLoading=!1)}).catch(n=>{this.handleTips(n.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips&&this.$refs.topTips.handleOpen()}}}),bA="",Mt=e=>(t.pushScopeId("data-v-cc07ec84"),e=e(),t.popScopeId(),e),Xc={class:"sumbmitPopup-select"},_c=Mt(()=>t.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"}," \u5F53\u524D\u6D41\u7A0B ",-1)),qc={class:"sumbmitPopup-select-checked-node"},$c={class:"sumbmitPopup-select-viewTrack"},ed=["src"],td={key:0,class:"person-views"},sd=Mt(()=>t.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),nd={class:"views-items"},od={class:"views-items-name"},id=Mt(()=>t.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),ad={class:"views-items-set"},ld={key:0},cd={key:0},dd={key:1},rd={key:2},pd=["onClick"],hd={key:1,class:"person-views"},md=Mt(()=>t.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),ud={class:"views-items"},gd={class:"views-items-name"},fd={class:"views-items-set"},Ad={key:0},kd={key:0},yd={key:1},Cd=["onClick"],Ed={key:2,class:"person-views-white"};function Bd(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),f=t.resolveComponent("TopPopup"),A=t.resolveComponent("departPerson"),C=t.resolveComponent("PreviewImage"),y=t.resolveComponent("TopTips");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(f,{visible:e.show,"onUpdate:visible":n[2]||(n[2]=r=>(e.show=r,e.$emit("update:visible",r))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index sumbmitPopup-index-sumbit",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:t.withCtx(()=>[t.createVNode(m,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect"},{header:t.withCtx(r=>[t.createElementVNode("div",Xc,[t.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:n[0]||(n[0]=(...E)=>e.handleSelect&&e.handleSelect(...E))},[_c,t.createElementVNode("div",qc,t.toDisplayString(r.data.name?r.data.name:r.data.placeholder),1)]),t.createElementVNode("div",$c,[e.checkedItem.id?(t.openBlock(),t.createElementBlock("div",{key:0,class:"viewTrack",onClick:n[1]||(n[1]=E=>e.taskurlshow=!0)},[t.createElementVNode("img",{src:e.ProcessImg},null,8,ed),t.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ")])):t.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue"]),e.firstPerson&&e.firstPerson.length?(t.openBlock(),t.createElementBlock("div",td,[sd,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.firstPerson,(r,E)=>(t.openBlock(),t.createElementBlock("div",nd,[t.createElementVNode("div",od,[t.createTextVNode(t.toDisplayString(r.name)+" ",1),id]),t.createElementVNode("div",ad,[e.partNode[r.id]&&e.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",ld,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[r.id],(v,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w>=3?"":w==0?v:`,${v}`),1))),256)),e.partNode[r.id].length>3?(t.openBlock(),t.createElementBlock("span",cd,"...\u7B49"+t.toDisplayString(e.partNode[r.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):r.routeTxt&&r.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",dd,t.toDisplayString(r.routeTxt.userNames),1)):t.createCommentVNode("",!0),r.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||r.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",rd)):(t.openBlock(),t.createElementBlock("div",{key:3,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(r)}," \u8BBE\u7F6E ",8,pd))])]))),256))])):t.createCommentVNode("",!0),e.personList&&e.personList.length?(t.openBlock(),t.createElementBlock("div",hd,[md,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.personList,(r,E)=>(t.openBlock(),t.createElementBlock("div",ud,[t.createElementVNode("div",gd,t.toDisplayString(r.name),1),t.createElementVNode("div",fd,[e.partNode[r.id]&&e.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[r.id],(v,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w>=3?"":w==0?v:`,${v}`),1))),256)),e.partNode[r.id].length>3?(t.openBlock(),t.createElementBlock("span",kd,"...\u7B49"+t.toDisplayString(e.partNode[r.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",yd)),t.createElementVNode("div",{class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(r)}," \u8BBE\u7F6E ",8,Cd)])]))),256))])):t.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(t.openBlock(),t.createElementBlock("div",Ed," \u65E0\u9700\u8BBE\u7F6E ")):t.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),t.createVNode(f,{visible:e.visiblePerson,"onUpdate:visible":n[3]||(n[3]=r=>e.visiblePerson=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:t.withCtx(()=>[t.createVNode(A,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(C,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":n[4]||(n[4]=r=>e.taskurlshow=r),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),t.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const ro=P(Zc,[["render",Bd],["__scopeId","data-v-cc07ec84"]]),Id="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23Vql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u6psvDi1RVZ266xgOZqBecneTkFrVAlGYLepaijhn5KjQXed+cq21wgNhYbSmMB39Tg7sBwy55rLJDKpKJWOJU32eE6wwUaztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Nd=pe({name:"attchViews",components:{TopTips:he,PreviewImage:ws,PreView:_n,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 Id},del(){return qn},doc(){return $n},file(){return eo},image(){return to},pdf(){return so},xls(){return no},zip(){return oo}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",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}document.getElementById("fileUp").click()},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const o=Array.from(e.target.files);document.getElementById("fileUp").value="";let i=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 m=new FormData;m.append("file",o[d]);const f=await this.request.post("/file/upload",m,{headers:{"Content-Type":"multipart/form-data"}});if(f.code===200){if(this.filesArr.length>0){for(let A=0;A<this.filesArr.length;A++)if(f.originFileName==this.filesArr[A].originFileName&&i++,this.filesArr[A].originFileName.includes(`(${i})`)&&i++,i>0){let C=f.originFileName.lastIndexOf(".");f.originFileName=`${f.originFileName.substring(0,C)} (${i}) .${f.originFileName.substring(f.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(f.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.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},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()}}}),vA="",bd={class:"attch-upload"},vd={key:0,class:"attch-upload-mask"},Td={class:"attch-upload-body"},wd={class:"upload-header"},Vd={class:"upload-header-title"},Sd={key:0,class:"upload-header-title--re"},Dd={class:"upload-header-upload"},Qd=["src"],Od={class:"upload-body"},Fd={key:0,class:"upload-list"},Md={class:"list-items-icon"},xd=["src"],Ld=["src"],Ud=["src"],Pd=["src"],Jd=["src"],Gd=["src"],Rd={class:"list-items-info"},jd={class:"info-name"},Kd={class:"info-attribute"},Yd={class:"info-attribute-size"},Hd=["onClick"],Wd={key:0,class:"list-items-operation"},zd=["onClick"],Zd=["src"];function Xd(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("PreviewImage"),A=t.resolveComponent("PreView"),C=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",bd,[e.buttonLoading?(t.openBlock(),t.createElementBlock("div",vd)):t.createCommentVNode("",!0),t.createElementVNode("div",Td,[t.createElementVNode("div",wd,[t.createElementVNode("div",Vd,[t.createTextVNode(" \u9644\u4EF6 "),e.requires?(t.openBlock(),t.createElementBlock("span",Sd,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Dd,[e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:n[0]||(n[0]=(...y)=>e.handleClick&&e.handleClick(...y))},[t.createElementVNode("img",{src:e.addFile},null,8,Qd),t.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),t.createElementVNode("div",Od,[e.filesArr.length>0?(t.openBlock(),t.createElementBlock("div",Fd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filesArr,(y,r)=>(t.openBlock(),t.createElementBlock("div",{class:"list-items",key:y.uuid},[t.createElementVNode("div",Md,[e.xlsIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,xd)):e.imgIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Ld)):y.name.substring(y.name.lastIndexOf(".")+1)=="pdf"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Ud)):e.docIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Pd)):e.zipIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Jd)):(t.openBlock(),t.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Gd))]),t.createElementVNode("div",Rd,[t.createElementVNode("div",jd,t.toDisplayString(y.originFileName),1),t.createElementVNode("div",Kd,[t.createElementVNode("span",Yd,t.toDisplayString(y.fileSize<1024?y.fileSize:y.fileSize/1024>1024?parseFloat((y.fileSize/1024/1024).toFixed(2)):parseFloat((y.fileSize/1024).toFixed(2)))+t.toDisplayString(y.fileSize<1024?"b":parseFloat((y.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),t.createElementVNode("span",{class:"info-attribute-views",onClick:E=>e.viewFile(y,r)}," \u9884\u89C8 ",8,Hd)])]),e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Wd,[t.createElementVNode("div",{onClick:E=>e.handleDel(r,y),class:"list-items-operation-img"},[t.createElementVNode("img",{src:e.del},null,8,Zd)],8,zd)]))]))),128))])):t.createCommentVNode("",!0)])]),t.createVNode(m,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{images:e.lists,visible:e.visible,"onUpdate:visible":n[1]||(n[1]=y=>e.visible=y),indexd:e.indexd},null,8,["images","visible","indexd"]),t.createVNode(C,{visible:e.visibleS,"onUpdate:visible":n[2]||(n[2]=y=>e.visibleS=y),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[e.visibleS?(t.openBlock(),t.createBlock(A,{key:0,file:e.fileUrl},null,8,["file"])):t.createCommentVNode("",!0)]),_:1},8,["visible"])])}const ve=P(Nd,[["render",Xd],["__scopeId","data-v-a7312e07"]]),_d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/i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xjCrtXdbbwMCKc3ior7XFWS9e71YwuHhSe2ZV4R1HmbZ5v7fb91uBCLK5FAEIuruaMIgEFGqEYgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsLk5JVbTV5I4tBnGmfj0k1zHicX0doYT7/xd3MvVqZAgoerdqwDYCzlrVcQrXBxc0OMG4Hk3oXrabYZy8BP7WfupBdCQCDrkPsbOGJo+ut1Mv7i1dF0ep1RkSqVCJTks+ZVqNbuullBjJe0vdBPRGJNfq3yuW5g2Z7al9lZ+u1GIH2jC5bkZZ/7+2UXV3/GKnfNWuCOrWyMzVnGRdXPMHmzzK4EUjrzjG1A7ml/3ew/er6uBFJus/Z0yIyoW57slTuB9A2yXLw8onEzlq66Wj1cCoRVZCxa+LGf3lYPlwLpG1VyRDje4TX0nvs8hXS1B1lNMRv2oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",TA="",qd={name:"msgList",components:{TopPopup:ee},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return _d}},watch:{visible:{handler(e,n){e&&this.request.get("/auth/user/opinion/my").then(o=>{o.code===200&&(this.listData=o.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(n=>{n.code===200&&(this.listData=n.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},$d={key:0,class:"top-msg"},er=["onClick"],tr={class:"top-msg-items-text"},sr=["onClick"],nr=["src"];function or(e,n,o,i,l,d){const m=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",null,[o.visible?(t.openBlock(),t.createElementBlock("div",$d,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.listData,f=>(t.openBlock(),t.createElementBlock("div",{class:"top-msg-items",onClick:A=>d.handleMsg(f)},[t.createElementVNode("div",tr,t.toDisplayString(f.opinionName),1),t.createElementVNode("div",{class:"top-msg-items-del",onClick:t.withModifiers(A=>d.handleOpenMsg(f),["stop"])},[t.createElementVNode("img",{src:d.Del},null,8,nr)],8,sr)],8,er))),256))])):t.createCommentVNode("",!0),t.createVNode(m,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${l.opinion.opinionName}'\u5220\u9664`,cancel:d.handleTipsCancel,comfig:d.handleDel,visible:l.visibleListMsg,"onUpdate:visible":n[0]||(n[0]=f=>l.visibleListMsg=f)},null,8,["context","cancel","comfig","visible"])])}const pt=P(qd,[["render",or],["__scopeId","data-v-87fc3e49"]]),wA="",ir={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,MsgList:pt},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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){console.log("111:::",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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("counterSign")}}},ht=e=>(t.pushScopeId("data-v-45384676"),e=e(),t.popScopeId(),e),ar={class:"process-popup-content"},lr={key:0},cr=ht(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),dr={class:"process-pc-value"},rr={class:"process-popup-textarea"},pr={key:0,class:"msg-btn"},hr=ht(()=>t.createElementVNode("div",null,[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),mr=["onClick"],ur={class:"process-pc-value--people"},gr={key:0,class:"process-pc-value--data"},fr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ar=[ht(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],kr=ht(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),yr=["onClick"],Cr={class:"process-pc-value--people"},Er={key:0,class:"process-pc-value--data"},Br={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ir=[ht(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Nr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",ar,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",lr,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),cr,t.createElementVNode("div",dr,[t.createElementVNode("div",rr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",pr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[hr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",ur,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",gr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(E,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",fr,Ar))])],8,mr)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[kr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",Cr,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Er,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(E,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Br,Ir))])],8,yr)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=r=>l.visible=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="5"?(t.openBlock(),t.createBlock(C,{key:2,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),t.createVNode(A,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(A,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"])])}const br=P(ir,[["render",Nr],["__scopeId","data-v-45384676"]]),DA="",vr={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,MsgList:pt},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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){console.log("111:::",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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("delegateTask")}}},mt=e=>(t.pushScopeId("data-v-4d755aa2"),e=e(),t.popScopeId(),e),Tr={class:"process-popup-content"},wr={key:0},Vr=mt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Sr={class:"process-pc-value"},Dr={class:"process-popup-textarea"},Qr={key:0,class:"msg-btn"},Or=mt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Fr=["onClick"],Mr={class:"process-pc-value--people"},xr={key:0,class:"process-pc-value--data"},Lr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ur=[mt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Pr=mt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Jr=["onClick"],Gr={class:"process-pc-value--people"},Rr={key:0,class:"process-pc-value--data"},jr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Kr=[mt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Yr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",Tr,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",wr,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Vr,t.createElementVNode("div",Sr,[t.createElementVNode("div",Dr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Qr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Or,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",Mr,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",xr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(E,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Lr,Ur))])],8,Fr)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Pr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",Gr,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Rr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(E,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",jr,Kr))])],8,Jr)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=r=>l.visible=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(C,{key:2,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),t.createVNode(A,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(A,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"])])}const Hr=P(vr,[["render",Yr],["__scopeId","data-v-4d755aa2"]]),Wr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57Moq8MvuT9vY65DTrb3JGtwBJJQRjIopMM0bG/schmN/kLQuAiDFMo0jtwK+eeOy+519td82b9z7zzAAkBkisSRBgdi8cekgdJCEFOGylQJL5o2XzswM0iqT7FtUgTLzxumREq9X00ZcsYpWAM4uKlBq3jjdgO9BKLkVKHC/e2dmnwtHkg4HHaRwxnD3ggL3uwmMCZCSnypwAEjJlOHrVIGMeWO/QzU4AISizlFg3suGkb2rwgEgkRRhc12BnGG8euc4BMlTLAq+nAJlv/w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ocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",FA="",MA="",zr={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,MsgList:pt},computed:{check(){return lo},checkS(){return Wr}},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:""}},watch:{"param.visible":{handler(e,n){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,console.log("param:::",this.param),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,i)=>{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"||o.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&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,i)=>{o.type!=="endEvent"&&(console.log("\u6D4B\u8BD5\u6570\u636E:::",o),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:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue),console.log("\u67E5\u770B::",this.radioCheckNodeList)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,n){e.map((o,i)=>{o.childNode&&o.childNode.length?this.forRadioChild(o.childNode,!0):n&&this.radioCheckChild.push(o)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],console.log("item",e,"radioCheckChild",this.radioCheckChild),this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(n=>{n.participantList&&n.participantList.length?n.participantList.map(o=>{this.multiNodeParticipant[n.id]||(this.multiNodeParticipant[n.id]=[]),this.partNode[n.id]||(this.partNode[n.id]=[]),this.multiNodeParticipant[n.id].includes(o.id)||this.multiNodeParticipant[n.id].push(o.id),this.partNode[n.id].includes(o.name)||this.partNode[n.id].push(o.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[n.id]}).then(o=>{o.code==200&&(this.partNodeS=[],this.partNodeS.push(o.data[n.id]),console.log("this.partNode",this.partNodeS))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),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}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),console.log("item.id:::",e),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((i,l)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[];e.routeTxt.departmentIds.map((i,l)=>{n=i.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i,deptId:n})}),console.log("multiNodeParticipant",this.multiNodeParticipant[e.id],o),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:n,checkedArray:o}}else{let n=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&(console.log("\u5B58\u5728:::",this.multiNodeParticipant[e.id]),this.multiNodeParticipant[e.id].map((o,i)=>{n.push({type:3,uid:o})})),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:n},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},handleOpenMsg(){this.visibleListMsg=!0},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(console.log("radioCheckNameList",this.radioCheckNameList,this.radioCheckChild),this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let n=0;if(this.radioCheckNameList.map((o,i)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&this.radioCheckChild.map((l,d)=>{l.id==o&&(!l.childNode||!l.childNode.length?n+=1:this.radioCheckNode.map((m,f)=>{(!this.multiNodeParticipant[m]||!this.multiNodeParticipant[m].length)&&(n+=1),e[m]=this.multiNodeParticipant[m]}))}),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,i)=>{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("complete")}}},Y=e=>(t.pushScopeId("data-v-540c205b"),e=e(),t.popScopeId(),e),Zr={class:"process-popup-content"},Xr={key:0,class:"process-pc-label"},_r={key:1,class:"process-pc-value",style:{display:"flex"}},qr={class:"process-radio",style:{width:"100%"}},$r=["onClick"],ep=["src"],tp=["onClick"],sp=["src"],np={key:2},op=Y(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ip={class:"process-pc-value"},ap={class:"process-popup-textarea"},lp={key:0,class:"msg-btn"},cp={class:"process-pc-label"},dp=Y(()=>t.createElementVNode("br",null,null,-1)),rp=Y(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),pp=["onClick"],hp={class:"process-pc-value--people"},mp={key:0,class:"process-pc-value--data"},up={key:1,class:"process-pc-value--data",style:{color:"#888"}},gp=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],fp={key:2,class:"process-pc-value--data"},Ap={key:1,class:"process-pc-label"},kp={key:0},yp={key:2},Cp={class:"process-pc-label"},Ep=Y(()=>t.createElementVNode("br",null,null,-1)),Bp=Y(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ip=["onClick"],Np={class:"process-pc-value--people"},bp={key:0,class:"process-pc-value--data"},vp={key:1,class:"process-pc-value--data",style:{color:"#888"}},Tp=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],wp={key:1,class:"process-pc-label"},Vp={key:2},Sp=Y(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8282\u70B9\u5BA1\u6279 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Dp={key:0,class:"process-pc-value"},Qp={class:"process-radio"},Op=["onClick"],Fp=["src"],Mp={key:1,class:"process-pc-value"},xp={class:"process-pc-value--people"},Lp={style:{"margin-bottom":"10px"}},Up={key:0,class:"process-pc-value--data"},Pp=["onClick"],Jp=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Gp={key:2,class:"process-pc-value--data"},Rp=Y(()=>t.createElementVNode("div",{style:{"margin-top":"20px"}},"\u8282\u70B9\u5BA1\u6279:",-1)),jp=["onClick"],Kp={class:"process-checkbox"},Yp={class:"process-checkbox-item"},Hp=["src"],Wp=["onClick"],zp={class:"process-pc-value--people"},Zp={key:0,class:"process-pc-value--data"},Xp={key:1,class:"process-pc-value--data",style:{color:"#888"}},_p=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],qp={key:1,class:"process-pc-value--data"},$p={key:0},eh=Y(()=>t.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),th={class:"process-pc-value"},sh=Y(()=>t.createElementVNode("div",{style:{"margin-top":"20px"}},"\u8282\u70B9\u5BA1\u6279:",-1)),nh=["onClick"],oh={class:"process-checkbox"},ih={class:"process-checkbox-item"},ah=["src"],lh=["onClick"],ch={class:"process-pc-value--people"},dh={key:0,class:"process-pc-value--data"},rh={key:1,class:"process-pc-value--data",style:{color:"#888"}},ph=[Y(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],hh={key:1,class:"process-pc-value--data"},mh={key:0},uh=Y(()=>t.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),gh={class:"process-pc-value"};function fh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("MsgList"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Zr,[o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",Xr," \u5FEB\u6377\u56DE\u590D ")):t.createCommentVNode("",!0),o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",_r,[t.createElementVNode("div",qr,[o.param.isDocument?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.msgCheckList,r=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",r==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=r},[t.createElementVNode("span",null,[r==l.commentMsg?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,ep)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(r),1)],10,$r))),256)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.msgCheckListS,r=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",r==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=r},[t.createElementVNode("span",null,[r==l.commentMsg?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,sp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(r),1)],10,tp))),256)),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",{key:2,class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),o.param.isMsg&&!o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",np,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[1]||(n[1]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),op,t.createElementVNode("div",ip,[t.createElementVNode("div",ap,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[2]||(n[2]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",lp,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[3]||(n[3]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,r=>{var E,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[r.type!="endEvent"&&d.isOption((v=(E=r==null?void 0:r.userTaskModelDTO)==null?void 0:E.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",cp,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(r.userTaskModelDTO.name)+" ",1),dp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),rp])]),t.createElementVNode("div",{class:"process-pc-value",onClick:w=>d.handleOpenPopup(r)},[t.createElementVNode("div",hp,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",mp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",up,gp)):r.routeTxt&&r.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",fp,t.toDisplayString(r.routeTxt.userNames),1)):t.createCommentVNode("",!0)])],8,pp)],64)):r.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",Ap,[t.createTextVNode(t.toDisplayString(r.userTaskModelDTO.name)+" ",1),l.personMakeList[r.id]?(t.openBlock(),t.createElementBlock("span",kp,"\uFF1A"+t.toDisplayString(l.personMakeList[r.id]),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",yp,"\u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6"))],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,r=>{var E,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[l.outGatewayUserTaskModel.childNode&&l.outGatewayUserTaskModel.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.type!="endEvent"&&d.isOption((v=(E=r==null?void 0:r.userTaskModelDTO)==null?void 0:E.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Cp,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(r.userTaskModelDTO.name)+" ",1),Ep,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Bp])]),t.createElementVNode("div",{class:"process-pc-value",onClick:w=>d.handleOpenPopup(r)},[t.createElementVNode("div",Np,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",bp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",vp,Tp))])],8,Ip)],64)):r.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",wp,t.toDisplayString(r.userTaskModelDTO.name),1)):(t.openBlock(),t.createElementBlock("div",Vp,"\u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6"))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Sp,r.childNode&&r.childNode.length?(t.openBlock(),t.createElementBlock("div",Dp,[t.createElementVNode("div",Qp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.childNode,w=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",w.id==l.radioCheck?"process-radio-item--check":""]),onClick:D=>d.handleNode(w)},[t.createElementVNode("span",null,[w.id==l.radioCheck?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,Fp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(w.nodeName||w.name),1)],10,Op))),256))])])):(t.openBlock(),t.createElementBlock("div",Mp,[t.createElementVNode("div",xp,[t.createElementVNode("div",Lp,t.toDisplayString(r.userTaskModelDTO.name),1),l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Up,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"process-pc-value--data",style:{color:"#888"},onClick:w=>d.handleOpenPopup(r)},Jp,8,Pp)):r.routeTxt&&r.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",Gp,t.toDisplayString(r.routeTxt.userNames),1)):t.createCommentVNode("",!0)])]))],64))],64)}),256)),l.radioCheck?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.radioCheckChild&&l.radioCheckChild.length&&l.radioCheckChild[0].type!=="EndEventModel"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Rp,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.radioCheckChild,r=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"process-pc-label",onClick:E=>d.handleSaveNode(r)},[t.createElementVNode("div",Kp,[t.createElementVNode("div",Yp,[t.createTextVNode(t.toDisplayString(r.nodeName||r.name)+" ",1),t.createElementVNode("span",null,[l.radioCheckNameList.includes(r.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:d.checkS},null,8,Hp)):t.createCommentVNode("",!0)])])])],8,jp),!r.childNode||!r.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-pc-value",onClick:E=>d.handleOpenPopup(r)},[t.createElementVNode("div",zp,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Zp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",Xp,_p))])],8,Wp)):(t.openBlock(),t.createElementBlock("div",qp,[l.partNodeS&&l.partNodeS.length?(t.openBlock(),t.createElementBlock("span",$p,t.toDisplayString(l.partNodeS&&l.partNodeS.length?l.partNodeS.join(","):""),1)):t.createCommentVNode("",!0)]))],64)):t.createCommentVNode("",!0)]))),256))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[eh,t.createElementVNode("div",th,t.toDisplayString(l.radioCheckChild[0].type==="EndEventModel"?"\u7ED3\u675F\u4E8B\u4EF6":l.radioCheckName),1)],64))],64)):t.createCommentVNode("",!0),l.radioCheckNodeList&&l.radioCheckNodeList.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.radioCheckNodeList&&l.radioCheckNodeList.length&&l.radioCheckNodeList[0].type!=="EndEventModel"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[sh,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.radioCheckNodeList,r=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"process-pc-label",onClick:E=>d.handleSaveNodeS(r)},[t.createElementVNode("div",oh,[t.createElementVNode("div",ih,[t.createTextVNode(t.toDisplayString(r.nodeName||r.name)+" ",1),t.createElementVNode("span",null,[l.radioCheckNode.includes(r.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:d.checkS},null,8,ah)):t.createCommentVNode("",!0)])])])],8,nh),!r.childNode||!r.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-pc-value",onClick:E=>d.handleOpenPopup(r)},[t.createElementVNode("div",ch,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",dh,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[r.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",rh,ph))])],8,lh)):(t.openBlock(),t.createElementBlock("div",hh,[l.partNodeS&&l.partNodeS.length?(t.openBlock(),t.createElementBlock("span",mh,t.toDisplayString(l.partNodeS&&l.partNodeS.length?l.partNodeS.join(","):""),1)):t.createCommentVNode("",!0)]))],64)):t.createCommentVNode("",!0)]))),256))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[uh,t.createElementVNode("div",gh,t.toDisplayString(l.radioCheckChild[0].type==="EndEventModel"?"\u7ED3\u675F\u4E8B\u4EF6":l.radioCheckName),1)],64))],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=r=>l.visible=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),t.createVNode(A,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(C,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(A,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(y,{key:4,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 Ah=P(zr,[["render",fh],["__scopeId","data-v-540c205b"]]),GA="",kh={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,MsgList:pt},watch:{param:{async handler(e,n){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("\u62D2\u7EDD")}}},et=e=>(t.pushScopeId("data-v-709b21e6"),e=e(),t.popScopeId(),e),yh={class:"process-popup-content"},Ch={key:0},Eh=et(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Bh={class:"process-pc-value"},Ih={class:"process-popup-textarea"},Nh={key:0,class:"msg-btn"},bh=et(()=>t.createElementVNode("br",null,null,-1)),vh=et(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Th=["onClick"],wh={class:"process-pc-value--people"},Vh={key:0,class:"process-pc-value--data"},Sh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Dh=[et(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Qh={style:{"font-size":"15px"}},Oh=et(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Fh=[et(()=>t.createElementVNode("div",{class:"process-pc-value--people"},t.toDisplayString(234),-1))];function Mh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",yh,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Ch,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Eh,t.createElementVNode("div",Bh,[t.createElementVNode("div",Ih,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Nh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,r=>{var E,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[d.isOption((v=(E=r==null?void 0:r.userTaskModelDTO)==null?void 0:E.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(r.userTaskModelDTO.name)+" ",1),bh,t.createTextVNode(" \u5BA1\u6279\u4EBA "),vh]),t.createElementVNode("div",{class:"process-pc-value",onClick:w=>d.handleOpenPopup(r.id)},[t.createElementVNode("div",wh,[l.partNode[r.id]&&l.partNode[r.id].length?(t.openBlock(),t.createElementBlock("div",Vh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[r.id],(w,D)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(D==0?w:`,${w}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Sh,Dh))])],8,Th)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,r=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[d.isOption(r.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Qh,t.toDisplayString(r.name),1),Oh,t.createElementVNode("div",{class:"process-pc-value",onClick:n[3]||(n[3]=(...E)=>d.handleOpenPopup&&d.handleOpenPopup(...E))},Fh)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=r=>l.visible=r),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="\u62D2\u7EDD"?(t.openBlock(),t.createBlock(C,{key:2,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),t.createVNode(A,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(A,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"])])}const xh=P(kh,[["render",Mh],["__scopeId","data-v-709b21e6"]]),KA="",Lh={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.exports.departPerson,TopDownSelect:co,MsgList:pt},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("\u9000\u56DE")}}},po=e=>(t.pushScopeId("data-v-ff1be51f"),e=e(),t.popScopeId(),e),Uh={class:"process-popup-content"},Ph=po(()=>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)),Jh={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},Gh={key:0},Rh=po(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),jh={class:"process-pc-value"},Kh={class:"process-popup-textarea"},Yh={key:0,class:"msg-btn"};function Hh(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),f=t.resolveComponent("TopTips"),A=t.resolveComponent("MsgList"),C=t.resolveComponent("TopPopup"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Uh,[Ph,t.createElementVNode("div",Jh,[t.createVNode(m,{option:l.option,onChange:d.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Gh,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=r=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Rh,t.createElementVNode("div",jh,[t.createElementVNode("div",Kh,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>l.commentMsg=r),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Yh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=r=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),t.createVNode(f,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(C,{visible:l.visibleListMsg,"onUpdate:visible":n[3]||(n[3]=r=>l.visibleListMsg=r),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(C,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[4]||(n[4]=r=>l.visibleMsgComfig=r)},null,8,["context","cancel","comfig","visible"]),l.labels=="\u9000\u56DE"?(t.openBlock(),t.createBlock(y,{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 Wh=P(Lh,[["render",Hh],["__scopeId","data-v-ff1be51f"]]),YA="",zh={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},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),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{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("ccTask")}}},xt=e=>(t.pushScopeId("data-v-a9fb7e98"),e=e(),t.popScopeId(),e),Zh={class:"process-popup-content"},Xh=xt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),_h=["onClick"],qh={class:"process-pc-value--people"},$h={key:0,class:"process-pc-value--data"},em={key:1,class:"process-pc-value--data",style:{color:"#888"}},tm=[xt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))],sm=xt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),nm=["onClick"],om={class:"process-pc-value--people"},im={key:0,class:"process-pc-value--data"},am={key:1,class:"process-pc-value--data",style:{color:"#888"}},lm=[xt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))];function cm(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Zh,[l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,y=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Xh,t.createElementVNode("div",{class:"process-pc-value",onClick:r=>d.handleOpenPopup(y.id)},[t.createElementVNode("div",qh,[l.partNode[y.id]&&l.partNode[y.id].length?(t.openBlock(),t.createElementBlock("div",$h,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[y.id],(r,E)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(E==0?r:`,${r}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",em,tm))])],8,_h)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,y=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[sm,t.createElementVNode("div",{class:"process-pc-value",onClick:r=>d.handleOpenPopup(y.id)},[t.createElementVNode("div",om,[l.partNode[y.id]&&l.partNode[y.id].length?(t.openBlock(),t.createElementBlock("div",im,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[y.id],(r,E)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(E==0?r:`\uFF1B${r}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",am,lm))])],8,nm)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=y=>l.visible=y),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="2"?(t.openBlock(),t.createBlock(C,{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 dm=P(zh,[["render",cm],["__scopeId","data-v-a9fb7e98"]]),zA="",rm={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:ee,departPerson:me.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()}}},Vs=e=>(t.pushScopeId("data-v-1bc995da"),e=e(),t.popScopeId(),e),pm={class:"process-popup-content"},hm={class:"process-pc-label"},mm=Vs(()=>t.createElementVNode("br",null,null,-1)),um=Vs(()=>t.createElementVNode("div",null,[t.createTextVNode("\u5BA1\u6279\u4EBA"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),gm={class:"process-pc-value--people"},fm={key:0,class:"process-pc-value--data"},Am={key:1,class:"process-pc-value--data",style:{color:"#888"}},km=[Vs(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function ym(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),f=t.resolveComponent("departPerson"),A=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",pm,[t.createElementVNode("template",null,[t.createElementVNode("div",hm,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(l.getFirstProcessNode.name)+" ",1),mm,um])]),t.createElementVNode("div",{class:"process-pc-value",onClick:n[0]||(n[0]=C=>d.handleOpenPopup(l.getFirstProcessNode.id))},[t.createElementVNode("div",gm,[l.partNode[l.getFirstProcessNode.id]&&l.partNode[l.getFirstProcessNode.id].length?(t.openBlock(),t.createElementBlock("div",fm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[l.getFirstProcessNode.id],(C,y)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(y==0?C:`,${C}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Am,km))])])]),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=C=>l.visible=C),titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,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 Cm=P(rm,[["render",ym],["__scopeId","data-v-1bc995da"]]),Em=pe({name:"TopProcess",components:{TopTab:Bc,TopPopup:ee,TopTips:he,TopSumbitPopup:ro},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:""},isMsg:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1}},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:"",TopPopup1:!1}},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(i=>{i.name=i.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0},restartData:{handler(e,n){e&&(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(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var o,i;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(Ah,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(xh,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=m=>{this.handleActionClose(),this.showOperation(Wh,m,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(dm,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(Hr,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(br,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&&((i=this.taskNode[0])==null?void 0:i.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(){console.log("btnList",this.operBtn);let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),`calc(100vh - ${e}px)`},processBtn(){if(console.log("btnList",this.operBtn),this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{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.bottomNum,"diss::",this.topNum)},1e3)})},handleTestsss(e,n){console.log("==========:::",e,n)},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 i=0;i<this.nextNodeData.length;i++)this.approveNode=this.nextNodeData[i]}else{let i=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(i,"")}},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 i=0;i<o.data.length;i++){let l=o.data[i];if(l.type!="UserTaskModel"&&l.type!="EndEventModel"){let d=await this.getOutgoingProcessNode(e,l.id);d&&d.length&&(await d.map((m,f)=>{m.nodeName=m.incomingConditionItemList&&m.incomingConditionItemList.length?m.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.handleTips("",!0,"loading"),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),this.handleGetHeight()}).catch(e=>{this.handleGetHeight()})},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),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,n,o,i){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length&&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=i),this.titleText=n,this.operationCom=e,this.operationParam.visible=this.TopPopup1,this.operationParam.annex=i,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.userInfo=this.user,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.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,this.taskObj.commentModels.some(d=>this.operationParam.actionComplete=d!=null&&d.isDefault?d.actionName:""),this.TopPopup1=!0},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1},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("\u50AC\u529E")):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("\u64A4\u9500")):(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(Cm,"\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()}}}),XA="",tt=e=>(t.pushScopeId("data-v-fee73224"),e=e(),t.popScopeId(),e),Bm={class:"process-warp"},Im={key:0,class:"process-main",id:"process-header",ref:"processheader"},Nm={class:"process-ml-item border"},bm=tt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),vm={class:"process-mli-value"},Tm={class:"process-ml-item border"},wm=tt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),Vm={class:"process-mli-value"},Sm={key:0,class:"process-ml-item"},Dm=tt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),Qm={class:"process-mli-value",style:{width:"50%","text-align":"right"}},Om={class:"process-mliv-jd"},Fm=["slot"],Mm={slot:"default",style:{}},xm=["slot"],Lm={key:0,class:"footBtnRow"},Um=["onClick"],Pm=[tt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),tt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),tt(()=>t.createElementVNode("div",{class:"circle"},null,-1))],Jm=["onClick"],Gm=["onClick"];function Rm(e,n,o,i,l,d){const m=t.resolveComponent("TopTab"),f=t.resolveComponent("TopPopup"),A=t.resolveComponent("TopTips"),C=t.resolveComponent("TopSumbitPopup");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Bm,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",Im,[t.createElementVNode("div",Nm,[bm,t.createElementVNode("div",vm,[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",Tm,[wm,t.createElementVNode("div",Vm,[t.createElementVNode("span",null,t.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(t.openBlock(),t.createElementBlock("div",Sm,[Dm,t.createElementVNode("div",Qm,[t.createElementVNode("span",Om,t.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"process-card",style:t.normalizeStyle({height:e.processCardHeight})},[t.createVNode(m,{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,(y,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,slot:y.slot},[t.renderSlot(e.$slots,y.slot,{},void 0,!0)],8,Fm))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Mm,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tapList,(y,r)=>(t.openBlock(),t.createElementBlock("div",{style:{},key:r,slot:y.slot},[t.renderSlot(e.$slots,y.slot,{},void 0,!0)],8,xm))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:t.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(t.openBlock(),t.createElementBlock("div",Lm,[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,(y,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[r<3?(t.openBlock(),t.createElementBlock("div",{class:"top-button",style:t.normalizeStyle(e.getBtnStyle(y.btnProps.type.toString())),key:y.name,onClick:E=>y.click(y.name)},t.toDisplayString(y.name),13,Um)):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]=(...y)=>e.handleActionOpen&&e.handleActionOpen(...y))},Pm)):t.createCommentVNode("",!0)],64))],64))],4))]),t.createVNode(f,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":n[1]||(n[1]=y=>e.TopPopup1=y)},{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","visible"]),t.createVNode(f,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),t.createVNode(A,{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,y=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:r=>e.handleGet(y),key:y.taskId},t.toDisplayString(y.name),9,Jm))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.actionBtn,y=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:r=>y.click(y.name),key:y.name},t.toDisplayString(y.name),9,Gm))),128)),t.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:n[2]||(n[2]=(...y)=>e.handleActionClose&&e.handleActionClose(...y))}," \u53D6\u6D88 ")],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-elips-mask",onClick:n[3]||(n[3]=(...y)=>e.handleActionClose&&e.handleActionClose(...y)),style:t.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),t.createVNode(C,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,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"])])}const jm=P(Em,[["render",Rm],["__scopeId","data-v-fee73224"]]);ce.TopProcess=jm,ce.TopSumbitPopup=ro,ce.ViewAttchList=ao,ce.attchViews=ve,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|