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