ui-process-h5 1.6.30 → 1.6.32
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/package.json +1 -1
- package/v2/style.css +1 -1
- package/v2/ui-process-h5.js +11 -9
- package/v2/ui-process-h5.umd.cjs +1 -1
- package/v2.7/style.css +1 -1
- package/v2.7/ui-process-h5.js +11 -9
- package/v2.7/ui-process-h5.umd.cjs +1 -1
- package/v3/style.css +1 -1
- package/v3/ui-process-h5.js +264 -262
- package/v3/ui-process-h5.umd.cjs +1 -1
package/v3/ui-process-h5.umd.cjs
CHANGED
|
@@ -39,4 +39,4 @@ Component that was made reactive: `,s)),sg(s,a,c,r,p,f,g,!0)}function og(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=Ag({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),sn(this.mainContainer),kg(p,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const yg=Zt({name:"checked",props:{},data(){return{dialogVisible:!1,jsonData:[]}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,a){if(!s)return!1;this.$nextTick(()=>{})}}},computed:{checkedNumber(){const s=this.jsonData.filter(g=>g.type==1).length,a=this.jsonData.filter(g=>g.type==2).length,c=this.jsonData.filter(g=>g.type==3||g.type==6).length,r=this.jsonData.filter(g=>g.type==5).length;let p=[];return s>0&&p.push(`\u7EC4\u7EC7(${s})`),r>0&&p.push(`\u7FA4\u7EC4(${r})`),a>0&&p.push(`\u90E8\u95E8(${a})`),c>0&&p.push(`\u4EBA\u5458(${c})`),b(p)?"":"\u5DF2\u9009\u62E9"+p.join("\uFF0C")},companyJson(){return this.jsonData.filter(s=>s.type==1||s.type==5)},deptJson(){return this.jsonData.filter(s=>s.type==2)},userJson(){return this.jsonData.filter(s=>s.type==3||s.type==6)}},mounted(){},methods:{init(s,a){this.dialogVisible=s,this.jsonData=a},handleRemove(s){this.jsonData=this.jsonData.filter(a=>a.uniqueId!==s.uniqueId||a.isNoDelete),this.$emit("callback",this.jsonData)},handleSlotUser(s){return{id:s.id,name:s.name,uid:s.uid}},isBool(s){return b(s)},handleClose(){this.init(!1,this.jsonData)}}}),es=(s,a)=>{const c=s.__vccOpts||s;for(const[r,p]of a)c[r]=p;return c},Cg={key:0,class:"checked-main"},Eg={class:"checked-content"},Bg={class:"checked-title"},Ig={class:"checked-name"},Ng={class:"checked-section"},bg={class:"checked-depart"},Tg={class:"checked-departItem-content"},wg={class:"name"},vg=["onClick"],Vg={class:"checked-departItem-content"},Sg={class:"name"},Dg={key:0},Qg={class:"content"},Og=["onClick"],Mg={class:"checked-user"},xg={class:"checked-userItem-icon"},Fg={key:0},Lg=["src"],Pg={class:"checked-userItem-content"},Ug={class:"checked-userItem-left"},Jg={class:"checked-userItem-name"},Gg={class:"checked-userItem-phone"},Rg={key:0,class:"checked-userItem-txt"},jg={class:"deper-person-slot"},Kg=["onClick"];function Yg(s,a,c,r,p,g){return s.dialogVisible?(i.openBlock(),i.createElementBlock("main",Cg,[i.createElementVNode("div",{onClick:a[0]||(a[0]=(...f)=>s.handleClose&&s.handleClose(...f)),class:"checked-mask"}),i.createElementVNode("div",Eg,[i.createElementVNode("div",Bg,[i.createElementVNode("div",Ig,i.toDisplayString(s.checkedNumber),1),i.createElementVNode("div",{onClick:a[1]||(a[1]=(...f)=>s.handleClose&&s.handleClose(...f)),class:"checked-btn"},"\u5173\u95ED")]),i.createElementVNode("section",Ng,[i.createElementVNode("div",bg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,f=>(i.openBlock(),i.createElementBlock("div",{key:f.uniqueId,class:"checked-depart-item"},[i.createElementVNode("div",Tg,[i.createElementVNode("div",wg,[i.createElementVNode("span",null,i.toDisplayString(f.name),1)])]),f.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:B=>s.handleRemove(f),class:"checked-remove"},"\u79FB\u9664",8,vg))]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,f=>(i.openBlock(),i.createElementBlock("div",{key:f.uniqueId,class:"checked-depart-item"},[i.createElementVNode("div",Vg,[i.createElementVNode("div",Sg,[i.createElementVNode("span",{class:i.normalizeClass({width:f.orgRecordsType==4})},i.toDisplayString(f.name),3),f.orgRecordsType==4?(i.openBlock(),i.createElementBlock("label",Dg,"\u5305\u542B\u5B50\u7EA7")):i.createCommentVNode("",!0)]),i.createElementVNode("div",Qg,i.toDisplayString(f.ancestorNames),1)]),f.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:B=>s.handleRemove(f),class:"checked-remove"},"\u79FB\u9664",8,Og))]))),128))]),i.createElementVNode("div",Mg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,f=>(i.openBlock(),i.createElementBlock("div",{key:f.uniqueId,class:"checked-user-item"},[i.createElementVNode("div",xg,[f.avatar.length<1?(i.openBlock(),i.createElementBlock("span",Fg,i.toDisplayString(f.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:f.avatar},null,8,Lg))]),i.createElementVNode("div",Pg,[i.createElementVNode("div",Ug,[i.createElementVNode("div",Jg,i.toDisplayString(f.name),1),i.createElementVNode("div",Gg,i.toDisplayString(f.phone),1),s.isBool(f.ancestorNamesList)?(i.openBlock(),i.createElementBlock("div",Rg,i.toDisplayString(f.ancestorNames),1)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(f.ancestorNamesList,(B,N)=>(i.openBlock(),i.createElementBlock("div",{key:N,class:"checked-userItem-txt"},i.toDisplayString(B),1))),128)),i.createElementVNode("div",jg,[i.renderSlot(s.$slots,"user",{item:s.handleSlotUser(f)},void 0,!0)])]),f.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:B=>s.handleRemove(f),class:"checked-remove"},"\u79FB\u9664",8,Kg))])]))),128))])])])])):i.createCommentVNode("",!0)}const Hg=es(yg,[["render",Yg],["__scopeId","data-v-0472994d"]]),Wg=Zt({name:"dcSwitch",props:{modelValue:{type:Boolean,default:!1},name:{type:String,default:""},activeColor:{type:String,default:"#409EFF"},inactiveColor:{type:String,default:"#c9c9c9"}},watch:{modelValue:{deep:!0,immediate:!0,handler:function(s,a){this.setColor()}}},computed:{contentCss(){let s=this.width>30?"px":"rem";return{width:this.width+s,height:this.height+s}}},methods:{switchClick(){this.$emit("update:modelValue",!this.modelValue),this.$nextTick(()=>{this.setColor()})},setColor(){this.$nextTick(()=>{if(this.activeColor||this.inactiveColor){let s=this.modelValue?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=s,this.$refs.core.style.backgroundColor=s}this.$refs.input.checked=this.modelValue})}}}),zg=s=>(i.pushScopeId("data-v-ca60242b"),s=s(),i.popScopeId(),s),Zg={class:"x_switch_core",ref:"core"},Xg=[zg(()=>i.createElementVNode("span",{class:"x_switch_btn"},null,-1))],_g=["name"];function qg(s,a,c,r,p,g){return i.openBlock(),i.createElementBlock("div",{onClick:a[0]||(a[0]=(...f)=>s.switchClick&&s.switchClick(...f)),class:i.normalizeClass(["x_switch",{"x-switch-checked":s.modelValue}])},[i.createElementVNode("span",Zg,Xg,512),i.createElementVNode("input",{type:"checkbox",class:"x-switch-input",name:s.name,ref:"input"},null,8,_g)],2)}const $g=es(Wg,[["render",qg],["__scopeId","data-v-ca60242b"]]),ef=Zt({name:"dcLoading"}),tf={role:"dialog",tabindex:"0",class:"dc-loading"},sf=[i.createStaticVNode('<div class="dc-loading-section" data-v-789cc72a><div class="dc-loading-spinner" aria-live="polite" aria-busy="true" data-v-789cc72a><span data-v-789cc72a><i class="dc-loading-line dc-loading-line-1" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-2" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-3" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-4" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-5" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-6" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-7" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-8" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-9" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-10" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-11" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-12" data-v-789cc72a></i></span></div><div class="dc-loading-text" data-v-789cc72a>\u52A0\u8F7D\u4E2D...</div></div>',1)];function nf(s,a,c,r,p,g){return i.openBlock(),i.createElementBlock("div",tf,sf)}const of=Zt({components:{checked:Hg,dcSwitch:$g,dcLoading:es(ef,[["render",nf],["__scopeId","data-v-789cc72a"]])},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:""},deptCodeArray:{type:Array,default:()=>[]},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((s,a)=>{s(!0)})}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1,activeOrgType:0}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,a){if(!s)return!1;b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(s,a){let c=[];const r=this.checkedJson.map(p=>{const g=this.entityJson.findIndex(f=>f.id===p.id&&p.type==f.type&&p.type==2)>-1?s&&p.type==2?"4":p.type:p.orgRecordsType;return(g==4||p.type==1)&&c.push(p.id),{...p,orgRecordsType:g}});this.checkedJson=r.filter(p=>p.ancestors.split(",").findIndex(g=>c.indexOf(g)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(s,a){b(this.businessId)&&this.getCards()}}},computed:{queryImg(){return ug},entityJson(){const s=this.checkedJson;return this.jsonData.map(a=>{const c=b(a.ancestors)?"":a.ancestors,r=b(a.ancestorNames)?"":a.ancestorNames,p=c+a.id+"__"+a.type,g=s.find(V=>V.uniqueId===p),f=!b(g),B=f?!1:s.findIndex(V=>V.id===a.id&&a.subjectId===V.subjectId)>-1,N=f?a.type==1||g.orgRecordsType==4:!1,y=b(s)?0:N?a.counts:s.filter(V=>V.type!=1&&V.ancestors.indexOf(a.id)>-1).length,T=f?g.isNoDelete:!1,I=this.isNotLevel?!1:this.isDeptOne&&a.type==2?a.deptCounts>0:a.counts>0;return{type:a.type,id:a.id,name:a.name,counts:b(a.counts)?0:a.counts,num:y,phone:gg(a.phone),uid:a.uid,iconName:tn(a.name,2),checked:f,ancestors:c,ancestorNames:r,deptName:fg(a.ancestorNames,"/",this.activeOrgType==0?"last":"find"),deptId:b(a.deptId)?"":a.deptId,uniqueId:p,isDisabled:B,isLevel:N,subjectId:a.subjectId,sex:a.sex,avatar:b(a.avatar)?"":a.avatar,isNoDelete:T,showLevel:I}})},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(g=>g.type==1).length,a=this.checkedJson.filter(g=>g.type==2).length,c=this.checkedJson.filter(g=>g.type==3||g.type==6).length,r=this.checkedJson.filter(g=>g.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"),b(p)?"":"\u5DF2\u9009\u62E9"+p.join("\uFF0C")},breadcrumb_subjectId(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return b(s)?"":s[0].value},breadcrumb_level(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return{ancestors:s.map(a=>a.value).join(","),ancestorNames:s.map(a=>a.name).join("/")}},isDept(){return this.jsonData.findIndex(s=>s.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(s=>s==1||s==5)>-1},isShowDept(){return this.codeType.findIndex(s=>s==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isDeptOne(){return this.isShowDept&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(s=>s==3||s==6)>-1},getHight(){let s=349;return this.isDept||(s-=55),this.isAll||(s-=59),this.isShowQuery||(s-=55),this.orgType.length<2&&(s-=45),`calc(100% - ${s}px)`},getSearchHight(){let s=240;return this.isAll||(s-=59),this.orgType.length<2&&(s-=45),this.isShowQuery||(s-=55),`calc(100% - ${s}px)`},getTitle(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":this.codeType.length==1&&this.codeType[0]==5?"\u9009\u62E9\u7FA4\u7EC4":"\u9009\u62E9\u7EC4\u7EC7"},isAll(){return this.multiple?this.isShowSubject?this.isShowDept?!0:this.entityJson.findIndex(s=>s.type!=2)>-1:this.entityJson.findIndex(s=>s.type!=1)>-1:!1},isNoDelete(){return b(this.checkedArray)?[]:this.checkedArray.filter(s=>s.isDeleteNo)},isOrgType(){return!!(b(this.orgType)||this.orgType.findIndex(s=>s===0)>-1)},isOrgGroup(){return this.orgType.findIndex(s=>s===1)>-1},isGroup(){return this.orgType.findIndex(s=>s===2)>-1},showType(){const s=(a,c)=>a.findIndex(r=>r==c)>-1;if(s([0],this.activeOrgType))return s(this.codeType,3)?3:s(this.codeType,2)?2:s(this.codeType,1)?1:-1;if(s([1,2],this.activeOrgType))return s(this.codeType,6)?6:s(this.codeType,5)?5:-1},deptIds(){return b(this.deptCodeArray)?b(this.deptCode)?[]:[this.deptCode]:this.deptCodeArray}},mounted(){this.isTitle&&(document.title=this.getTitle),b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const s=b(this.checkedJson)?[]:this.checkedJson.map(c=>({type:c.orgRecordsType,id:c.id,name:c.name,ancestors:c.ancestors,ancestorNames:c.ancestorNames,subjectId:c.subjectId,phone:b(c.phone)?"":c.phone,sex:c.sex,avatar:c.avatar,deptId:b(c.deptId)?"":c.deptId,uid:b(c.uid)?"":c.uid}));if(b(this.businessId))return this.$emit("callback",s);const a={businessId:this.businessId,orgRecords:this.checkedJson.map(c=>({type:c.orgRecordsType,bizId:c.id,ancestors:c.ancestors,ancestorNames:c.ancestorNames,uid:c.uid}))};this.isLoading=!0,this.businessCallack(s).then(c=>{c&&this.request.post("/auth/component/org/save",a).then(r=>{r.code===200&&this.$emit("callback",s)}).finally(()=>{this.isLoading=!1})}).catch(c=>{this.isLoading=!1})},handleBreadcrumb(s,a){if(s.disable||a+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=a===0?this.deptCode:a===1&&b(this.deptCode)?0:s.value,this.itemId="",this.subjectId=s.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:case 2:this.itemId=b(this.itemCode)?s.value==="-1"?"":s.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((c,r)=>r<a+1)})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){switch(this.breadcrumb=[],this.activeOrgType){case 0:this.itemId="",this.deptId=this.deptCode,this.subjectId=this.subjectCode;break;case 1:case 2:this.deptId="",this.subjectId="";break}this.getSearch(()=>{this.isQuery=b(this.keyword)})},handleOrgType(s){this.activeOrgType=s,this.keyword="",this.itemId="",this.handleQuery()},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(f=>f.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,g={...a,ancestors:c,ancestorNames:r,orgRecordsType:p};return(a.type==1||p==4)&&(this.checkedJson=this.checkedJson.filter(f=>f.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 nn().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(g):this.checkedJson=[g],!1)}this.checkedJson=this.checkedJson.filter(c=>c.uniqueId!==a.uniqueId)},handleLevel(s){if(s.isDisabled||s.isLevel)return!1;switch(s.type){case"1":this.deptId="",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="",this.subjectId="",this.itemId=s.id,this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break}},handleChecked(s,a){this.$refs.checkedDp.init(s,a)},handleCallback(s){this.checkedJson=s},getBoolChecked(s){if(s.type!=3)return!1;const a=s.ancestors.split(","),c=this.checkedJson.filter(p=>p.type==2||p.type==1).find(p=>a.indexOf(p.id)>-1);let r=!1;return b(c)||(c.type==1&&(new nn().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 nn().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.isGroup?2:"",this.breadcrumb=[],this.defaultBreadcrumb()},defaultGet(){this.defaultData(),b(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const s=this.entityJson.filter(c=>c.type==2),a=this.checkedJson.filter(c=>c.type==2);this.isSon=a.findIndex(c=>s.findIndex(r=>r.id===c.id&&c.orgRecordsType==4)>-1)>-1},getCheckedAll(){const s=b(this.entityJson)?0: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,deptIds:this.deptIds.join(",")};b(a.deptId)&&delete a.deptId,b(a.subjectId)&&delete a.subjectId,(b(a.deptIds)||!b(a.deptId))&&delete a.deptIds,this.isLoading||(this.isLoading=!0),this.request.get("/auth/component/org/search",{params:a}).then(c=>{this.jsonData=b(c.data)||c.code!==200?[]:c.data,this.defaultBreadcrumb(b(this.jsonData)?"":c.data[0]),s(),this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},defaultBreadcrumb(s){if(!b(this.breadcrumb))return!1;let a="";switch(this.activeOrgType){case 0:a="\u7EC4\u7EC7";break;case 1:a="\u7FA4\u7EC4";break;case 2:a="\u516C\u5171\u7FA4\u7EC4";break}if(this.breadcrumb=[{name:a,value:"-1"}],b(s)||this.activeOrgType===0&&(b(this.deptCode)||b(this.subjectName))||[1,2].indexOf(this.activeOrgType)>-1&&b(this.itemCode))return!1;let c=s.ancestors.split(",");b(this.itemCode)||c.pop(),this.breadcrumb=c.map((r,p)=>({value:r,name:s.ancestorNames.split("/")[p],disable:p!==array.length-1&&array.length!==0}))},getDetail(s=()=>{}){if(b(this.businessId))return s(),!1;const a={businessId:this.businessId};this.isLoading||(this.isLoading=!0),this.request.get("/auth/component/org/detail",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(r=>{const p=r.type==4?"2":r.type,g=r.type==1?"":r.ancestors,f=g+r.bizId+"__"+p,B=this.isNoDelete.findIndex(N=>N.id===r.id||N.uid===r.uid)>-1;return{...r,ancestors:g,id:r.bizId,type:p,uniqueId:f,orgRecordsType:r.type,iconName:tn(r.name,2),sex:r.sex,uid:b(r.uid)?"":r.uid,avatar:b(r.avatar)?"":r.avatar,deptId:b(r.deptId)?"":r.deptId,isNoDelete:B}}),s()})},getCards(s=()=>{}){if(b(this.checkedArray))return s(),this.checkedJson=[];const a=this.checkedArray.map(c=>({type:c.type,id:b(c.id)?null:c.id,uid:b(c.uid)?null:c.uid,subjectId:b(c.subjectId)?null:c.subjectId,deptId:b(c.deptId)?null:c.deptId,itemId:b(c.itemId)?null:c.itemId,orgIds:b(this.orgType)?[0]:this.orgType}));this.isLoading||(this.isLoading=!0),this.request.post("/auth/component/org/cards",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(r=>{const p=r.type==4?"2":r.type,g=r.type==1?"":r.ancestors,f=r.type==1?"":r.ancestorNames,B=g+r.id+"__"+p,N=this.isNoDelete.findIndex(y=>y.id===r.id||y.uid===r.uid)>-1;return{...r,ancestors:g,ancestorNames:f,id:r.id,type:p,uniqueId:B,orgRecordsType:r.type,iconName:tn(r.name,2),sex:r.sex,uid:b(r.uid)?"":r.uid,avatar:b(r.avatar)?"":r.avatar,deptId:b(r.deptId)?"":r.deptId,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())})}}}),af={class:"departPerson-main"},lf={class:"deper-top"},cf={key:0,class:"deper-nav"},df={class:"deper-query"},rf=i.createElementVNode("i",{class:"icon-chaxun iconfont chaxun"},null,-1),pf={key:1,class:"deper-breadcrumb"},hf=["onClick"],mf=i.createElementVNode("i",{class:"icon-jiantouyou iconfont"},null,-1),uf={key:2,class:"deper-all"},gf=i.createElementVNode("label",{class:"label",for:"deper-all"},"\u5168\u9009",-1),ff={key:0,class:"deper-c-depart"},Af=["disabled","onUpdate:modelValue","onChange"],kf={class:"depart-name"},yf={class:"name"},Cf={key:0,class:"number"},Ef={class:"label"},Bf={key:1,class:"number"},If=["onClick"],Nf=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],bf={key:1,class:"deper-c-depart"},Tf=["disabled","onUpdate:modelValue","onChange"],wf={class:"depart-name"},vf={class:"name"},Vf={key:0,class:"number"},Sf={class:"label"},Df={key:1,class:"number"},Qf=["onClick"],Of=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],Mf={key:2,class:"deper-c-user"},xf=["disabled","onUpdate:modelValue","onChange"],Ff={class:"user-icon"},Lf={key:0},Pf=["src"],Uf={class:"user-name"},Jf={class:"span"},Gf={class:"phone"},Rf={class:"deper-search-section"},jf={class:"search-user"},Kf=i.createElementVNode("div",{class:"search-title"},"\u641C\u7D22\u7ED3\u679C",-1),Yf=["onUpdate:modelValue","disabled","onChange"],Hf={class:"user-icon"},Wf={key:0},zf=["src"],Zf={class:"user-name"},Xf={class:"span"},_f={class:"phone"},qf={class:"txt"},$f={key:2,class:"deper-son"},eA=i.createElementVNode("span",null,"\u5305\u542B\u5B50\u7EA7",-1),tA={class:"deper-bottom"},sA={key:0,class:"icon-jiantouyou iconfont"};function nA(s,a,c,r,p,g){const f=i.resolveComponent("dc-switch"),B=i.resolveComponent("checked"),N=i.resolveComponent("dcLoading");return i.openBlock(),i.createElementBlock("main",af,[i.createElementVNode("div",lf,[s.orgType.length>1?(i.openBlock(),i.createElementBlock("div",cf,[s.isOrgType?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:a[0]||(a[0]=y=>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]=y=>s.handleOrgType(1)),class:i.normalizeClass([{active:s.activeOrgType===1},"deper-n-item"])},"\u7FA4\u7EC4",2)):i.createCommentVNode("",!0),s.isGroup?(i.openBlock(),i.createElementBlock("div",{key:2,onClick:a[2]||(a[2]=y=>s.handleOrgType(2)),class:i.normalizeClass([{active:s.activeOrgType===2},"deper-n-item"])},"\u516C\u5171\u7FA4\u7EC4",2)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",df,[i.createElementVNode("form",{class:"form",onSubmit:a[6]||(a[6]=i.withModifiers(()=>{},["prevent"])),action:"javascript: void(0);"},[rf,i.withDirectives(i.createElementVNode("input",{class:"input",onKeyup:a[3]||(a[3]=i.withKeys((...y)=>s.handleQuery&&s.handleQuery(...y),["enter"])),"onUpdate:modelValue":a[4]||(a[4]=y=>s.keyword=y),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[5]||(a[5]=(...y)=>s.handleEmpty&&s.handleEmpty(...y)),class:"icon-error-fill iconfont close"})):i.createCommentVNode("",!0)],32)],512),[[i.vShow,s.isShowQuery]]),s.isQuery?(i.openBlock(),i.createElementBlock("div",pf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.breadcrumb,(y,T)=>(i.openBlock(),i.createElementBlock("div",{onClick:I=>s.handleBreadcrumb(y,T),key:y.value,class:i.normalizeClass([{disable:y.disable},"deper-b-item"])},[i.createElementVNode("span",null,i.toDisplayString(y.name),1),mf],10,hf))),128))])):i.createCommentVNode("",!0),s.isAll?(i.openBlock(),i.createElementBlock("div",uf,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[7]||(a[7]=y=>s.checkedAll=y),onChange:a[8]||(a[8]=(...y)=>s.handleAllCheckbox&&s.handleAllCheckbox(...y)),class:"deper-checkbox",type:"checkbox",name:"deper-all",id:"deper-all"},null,544),[[i.vModelCheckbox,s.checkedAll]]),gf])):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",ff,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,y=>(i.openBlock(),i.createElementBlock("div",{key:y.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{width:s.isNotLevel,isNoDelete:y.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:y.isDisabled||y.isNoDelete,"onUpdate:modelValue":T=>y.checked=T,onChange:T=>s.handleCheckbox(T,y),class:"deper-checkbox",type:"checkbox"},null,40,Af),[[i.vShow,s.isShowSubject],[i.vModelCheckbox,y.checked]]),i.createElementVNode("div",kf,[i.createElementVNode("div",yf,i.toDisplayString(y.name),1),y.num>0?(i.openBlock(),i.createElementBlock("div",Cf,[i.createTextVNode("("),i.createElementVNode("label",Ef,i.toDisplayString(y.num)+"/"+i.toDisplayString(y.counts),1),i.createTextVNode(")")])):y.counts>0?(i.openBlock(),i.createElementBlock("div",Bf,"("+i.toDisplayString(y.counts)+")",1)):i.createCommentVNode("",!0)])],2),y.showLevel?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:T=>s.handleLevel(y),class:i.normalizeClass([{isdisabled:y.isLevel},"depart-right"])},Nf,10,If)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.deptJson.length>0?(i.openBlock(),i.createElementBlock("div",bf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,y=>(i.openBlock(),i.createElementBlock("div",{key:y.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{isNoDelete:y.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:y.isDisabled||y.isNoDelete,"onUpdate:modelValue":T=>y.checked=T,onChange:T=>s.handleCheckbox(T,y),class:"deper-checkbox",type:"checkbox"},null,40,Tf),[[i.vShow,s.isShowDept],[i.vModelCheckbox,y.checked]]),i.createElementVNode("div",wf,[i.createElementVNode("div",vf,i.toDisplayString(y.name),1),y.num>0?(i.openBlock(),i.createElementBlock("div",Vf,[i.createTextVNode("("),i.createElementVNode("label",Sf,i.toDisplayString(y.num)+"/"+i.toDisplayString(y.counts),1),i.createTextVNode(")")])):y.counts>0?(i.openBlock(),i.createElementBlock("div",Df,"("+i.toDisplayString(y.counts)+")",1)):i.createCommentVNode("",!0)])],2),y.showLevel?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:T=>s.handleLevel(y),class:i.normalizeClass([{isdisabled:y.isLevel},"depart-right"])},Of,10,Qf)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.userJson.length>0?(i.openBlock(),i.createElementBlock("div",Mf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,y=>(i.openBlock(),i.createElementBlock("label",{key:y.uniqueId,class:i.normalizeClass([{isNoDelete:y.isNoDelete},"user-item"])},[i.withDirectives(i.createElementVNode("input",{disabled:y.isDisabled||y.isNoDelete,"onUpdate:modelValue":T=>y.checked=T,onChange:T=>s.handleCheckbox(T,y),class:"deper-checkbox",type:"checkbox"},null,40,xf),[[i.vModelCheckbox,y.checked]]),i.createElementVNode("div",Ff,[y.avatar.length<1?(i.openBlock(),i.createElementBlock("span",Lf,i.toDisplayString(y.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:y.avatar},null,8,Pf))]),i.createElementVNode("div",Uf,[i.createElementVNode("div",Jf,i.toDisplayString(y.name),1),i.createElementVNode("div",Gf,i.toDisplayString(y.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",Rf,[i.createCommentVNode("",!0),i.createElementVNode("div",jf,[Kf,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,y=>(i.openBlock(),i.createElementBlock("label",{key:y.uniqueId,class:"user-item"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":T=>y.checked=T,disabled:y.isDisabled,onChange:T=>s.handleCheckbox(T,y),class:"deper-checkbox",type:"checkbox"},null,40,Yf),[[i.vModelCheckbox,y.checked]]),i.createElementVNode("div",Hf,[y.avatar.length<1?(i.openBlock(),i.createElementBlock("span",Wf,i.toDisplayString(y.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:y.avatar},null,8,zf))]),i.createElementVNode("div",Zf,[i.createElementVNode("div",Xf,i.toDisplayString(y.name),1),i.createElementVNode("div",_f,i.toDisplayString(y.phone),1),i.createElementVNode("div",qf,i.toDisplayString(y.ancestorNames),1)])]))),128))])])],4)),s.isDept?(i.openBlock(),i.createElementBlock("div",$f,[eA,i.createVNode(f,{modelValue:s.isSon,name:"isSone"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",tA,[i.createElementVNode("div",{onClick:a[9]||(a[9]=y=>s.handleChecked(!0,s.checkedJson)),class:"deper-b-checked"},[i.createElementVNode("span",null,i.toDisplayString(s.checkedNumber),1),s.checkedNumber.length>0?(i.openBlock(),i.createElementBlock("i",sA)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{onClick:a[10]||(a[10]=(...y)=>s.handleSubmit&&s.handleSubmit(...y)),class:"deper-b-btn"},"\u786E\u5B9A")]),i.createVNode(B,{ref:"checkedDp",onCallback:s.handleCallback},{user:i.withCtx(({item:y})=>[i.renderSlot(s.$slots,"checkedUser",{item:y})]),_:3},8,["onCallback"]),s.isLoading?(i.openBlock(),i.createBlock(N,{key:3})):i.createCommentVNode("",!0)])}const oA=es(of,[["render",nA]]);o.departPerson=oA,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(he,he.exports);const zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5oRkeU/k/L/4ZlzAINtKAhBhpmC/r6/So8TiSWcFNBgS4AOfwcz2Kk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KzQAIABEJM28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",Zc=re({name:"TopSubmitPopup",components:{TopPopup:$,TopDownSelect:co,PreviewImage:ws,departPerson:he.exports.departPerson,TopTips:pe},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),e?this.handleOption():this.$refs.TopDownSelect.handleClose()}},show:{handler(e,n){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,n){this.businessTypeData=e},immediate:!0},id:{handler(e,n){e&&(this.idData=e,this.getProcessInstance())},immediate:!0},processName:{handler(e,n){this.processNameData=e},immediate:!0},title:{handler(e,n){this.titleData=e},immediate:!0},todoParameter:{handler(e,n){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,n){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())},immediate:!0,deep:!0},resubmit:{handler(e,n){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return zc}},methods:{handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){this.checkedItem={},this.firstPerson=[],this.personList=[],!(this.selfList&&this.selfList.length)&&(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,e.data&&e.data.length?(this.handleTips("",!0,"success"),this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl()):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]))}))},async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id,this.processId&&this.option.map((n,o)=>{n.id===e.data.processDefId&&(this.checkedItem=n,this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())}))})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(n=>{n.code===200?(this.firstPerson=n.data,this.getAfferentParticipantNodeList()):(this.firstPerson=[],this.getAfferentParticipantNodeList())}).catch(n=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,n){this.handleTips("",!0,"loading"),this.checkedItem={},this.firstPerson=[],this.personList=[],this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl(),this.$emit("change",e,n)},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(this.personList=e.data.filter(n=>!this.firstPerson.some(o=>o.id==n.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:[]},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,o=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((i,l)=>{o.push(i.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:o,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((i,l)=>{n=i.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:n,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({uid:i.uid,type:i.type,deptId:n})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;e.routeTxt.companyIds.map((o,i)=>{n=o.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:n},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:this.handleLastStr(o.ancestors,o.subjectId),subjectName:o.ancestorNames.slice(0,o.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?n.ancestorNames.slice(0,n.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,n){return e.split(",")[e.split(",").length-1]!==n?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&this.firstPerson[0].humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/aws/pis/createAndStart",e).then(n=>{n.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):n.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(o=>{o.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(o.msg,!0,"error"),this.btnLoading=!1)}).catch(o=>{this.handleTips(o.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(n.msg,!0,"error"),this.btnLoading=!1)}).catch(n=>{this.handleTips(n.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips&&this.$refs.topTips.handleOpen()}}}),yA="",Mt=e=>(t.pushScopeId("data-v-113ef106"),e=e(),t.popScopeId(),e),Xc={class:"sumbmitPopup-select"},_c=Mt(()=>t.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"}," \u5F53\u524D\u6D41\u7A0B ",-1)),qc={class:"sumbmitPopup-select-viewTrack"},$c=["src"],ed={key:0,class:"person-views"},td=Mt(()=>t.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),sd={class:"views-items"},nd={class:"views-items-name"},od=Mt(()=>t.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),id={class:"views-items-set"},ad={key:0},ld={key:0},cd={key:1},dd={key:2},rd=["onClick"],pd={key:1,class:"person-views"},hd=Mt(()=>t.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),md={class:"views-items"},ud={class:"views-items-name"},gd={class:"views-items-set"},fd=["onClick"],Ad={key:0},kd={key:0},yd={key:1},Cd={key:2,class:"person-views-white"},Ed={style:{height:"100%"}};function Bd(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),A=t.resolveComponent("TopPopup"),k=t.resolveComponent("departPerson"),C=t.resolveComponent("PreviewImage"),u=t.resolveComponent("TopTips");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(A,{visible:e.show,"onUpdate:visible":n[2]||(n[2]=h=>(e.show=h,e.$emit("update:visible",h))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index sumbmitPopup-index-sumbit",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:t.withCtx(()=>[t.createVNode(m,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:e.resubmit},{header:t.withCtx(h=>[t.createElementVNode("div",Xc,[t.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:n[0]||(n[0]=(...E)=>e.handleSelect&&e.handleSelect(...E))},[_c,t.createElementVNode("div",{class:t.normalizeClass(["sumbmitPopup-select-checked-node",e.resubmit?"sumbmitPopup-select-checked-node--noafter":""])},t.toDisplayString(h.data.name?h.data.name:h.data.placeholder),3)]),t.createElementVNode("div",qc,[e.checkedItem.id?(t.openBlock(),t.createElementBlock("div",{key:0,class:"viewTrack",onClick:n[1]||(n[1]=E=>e.taskurlshow=!0)},[t.createElementVNode("img",{src:e.ProcessImg},null,8,$c),t.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ")])):t.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.firstPerson&&e.firstPerson.length?(t.openBlock(),t.createElementBlock("div",ed,[td,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.firstPerson,(h,E)=>(t.openBlock(),t.createElementBlock("div",sd,[t.createElementVNode("div",nd,[t.createTextVNode(t.toDisplayString(h.name)+" ",1),od]),t.createElementVNode("div",id,[e.partNode[h.id]&&e.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[h.id],(w,S)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(S>=3?"":S==0?w:`,${w}`),1))),256)),e.partNode[h.id].length>3?(t.openBlock(),t.createElementBlock("span",ld,"...\u7B49"+t.toDisplayString(e.partNode[h.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):h.routeTxt&&h.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",cd,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",dd)):(t.openBlock(),t.createElementBlock("div",{key:3,class:"views-items-set-btn",onClick:w=>e.handleOpenPerson(h)}," \u8BBE\u7F6E ",8,rd))])]))),256))])):t.createCommentVNode("",!0),e.personList&&e.personList.length?(t.openBlock(),t.createElementBlock("div",pd,[hd,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.personList,(h,E)=>(t.openBlock(),t.createElementBlock("div",md,[t.createElementVNode("div",ud,t.toDisplayString(h.name),1),t.createElementVNode("div",gd,[t.createElementVNode("div",{class:"views-items-set-btn",onClick:w=>e.handleOpenPerson(h)}," \u8BBE\u7F6E ",8,fd),e.partNode[h.id]&&e.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[h.id],(w,S)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(S>=3?"":S==0?w:`,${w}`),1))),256)),e.partNode[h.id].length>3?(t.openBlock(),t.createElementBlock("span",kd,"...\u7B49"+t.toDisplayString(e.partNode[h.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",yd))])]))),256))])):t.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(t.openBlock(),t.createElementBlock("div",Cd," \u65E0\u9700\u8BBE\u7F6E ")):t.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),t.createVNode(A,{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.createElementVNode("div",Ed,[e.visiblePerson?(t.openBlock(),t.createBlock(k,t.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),t.createVNode(C,{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(u,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const ro=U(Zc,[["render",Bd],["__scopeId","data-v-113ef106"]]),Id="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYW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vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Nd=re({name:"attchViews",components:{TopTips:pe,PreviewImage:ws,PreView:qn,TopPopup:$},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,n){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return Id},del(){return $n},doc(){return eo},file(){return to},image(){return so},pdf(){return no},xls(){return oo},zip(){return io}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const o=Array.from(e.target.files);document.getElementById("fileUp").value="";let i=0,l=this.haveCount>o.length?o.length:this.haveCount;try{for(let d=0;d<l;d++)if(this.extension.includes(o[d].name.substring(o[d].name.lastIndexOf(".")+1))){const m=new FormData;m.append("file",o[d]);const A=await this.request.post("/file/upload",m,{headers:{"Content-Type":"multipart/form-data"}});if(A.code===200){if(this.filesArr.length>0){for(let k=0;k<this.filesArr.length;k++)if(A.originFileName==this.filesArr[k].originFileName&&i++,this.filesArr[k].originFileName.includes(`(${i})`)&&i++,i>0){let C=A.originFileName.lastIndexOf(".");A.originFileName=`${A.originFileName.substring(0,C)} (${i}) .${A.originFileName.substring(A.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(A.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).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((n,o)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())),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()}}}),CA="",bd={class:"attch-upload"},Td={key:0,class:"attch-upload-mask"},wd={class:"attch-upload-body"},vd={class:"upload-header"},Vd={class:"upload-header-title"},Sd={key:0,class:"upload-header-title--re"},Dd={class:"upload-header-upload"},Qd=["src"],Od={class:"upload-body"},Md={key:0,class:"upload-list"},xd={class:"list-items-icon"},Fd=["src"],Ld=["src"],Pd=["src"],Ud=["src"],Jd=["src"],Gd=["src"],Rd={class:"list-items-info"},jd={class:"info-name"},Kd={class:"info-attribute"},Yd={class:"info-attribute-size"},Hd=["onClick"],Wd={key:0,class:"list-items-operation"},zd=["onClick"],Zd=["src"];function Xd(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("PreviewImage"),k=t.resolveComponent("PreView"),C=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",bd,[e.buttonLoading?(t.openBlock(),t.createElementBlock("div",Td)):t.createCommentVNode("",!0),t.createElementVNode("div",wd,[t.createElementVNode("div",vd,[t.createElementVNode("div",Vd,[t.createTextVNode(" \u9644\u4EF6 "),e.requires?(t.openBlock(),t.createElementBlock("span",Sd,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Dd,[e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[t.createElementVNode("img",{src:e.addFile},null,8,Qd),t.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),t.createElementVNode("div",Od,[e.filesArr.length>0?(t.openBlock(),t.createElementBlock("div",Md,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filesArr,(u,h)=>(t.openBlock(),t.createElementBlock("div",{class:"list-items",key:u.uuid},[t.createElementVNode("div",xd,[e.xlsIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Fd)):e.imgIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(t.openBlock(),t.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Ld)):u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Pd)):e.docIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(t.openBlock(),t.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Ud)):e.zipIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(t.openBlock(),t.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Jd)):(t.openBlock(),t.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Gd))]),t.createElementVNode("div",Rd,[t.createElementVNode("div",jd,t.toDisplayString(u.originFileName),1),t.createElementVNode("div",Kd,[t.createElementVNode("span",Yd,t.toDisplayString(u.fileSize<1024?u.fileSize:u.fileSize/1024>1024?parseFloat((u.fileSize/1024/1024).toFixed(2)):parseFloat((u.fileSize/1024).toFixed(2)))+t.toDisplayString(u.fileSize<1024?"b":parseFloat((u.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),t.createElementVNode("span",{class:"info-attribute-views",onClick:E=>e.viewFile(u,h)}," \u9884\u89C8 ",8,Hd)])]),e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Wd,[t.createElementVNode("div",{onClick:E=>e.handleDel(h,u),class:"list-items-operation-img"},[t.createElementVNode("img",{src:e.del},null,8,Zd)],8,zd)]))]))),128))])):t.createCommentVNode("",!0)])]),t.createVNode(m,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{images:e.lists,visible:e.visible,"onUpdate:visible":n[1]||(n[1]=u=>e.visible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),t.createVNode(C,{visible:e.visibleS,"onUpdate:visible":n[2]||(n[2]=u=>e.visibleS=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[e.visibleS?(t.openBlock(),t.createBlock(k,{key:0,file:e.fileUrl},null,8,["file"])):t.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Je=U(Nd,[["render",Xd],["__scopeId","data-v-73da35c4"]]),_d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86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EYgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsLk5JVbTV5I4tBnGmfj0k1zHicX0doYT7/xd3MvVqZAgoerdqwDYCzlrVcQrXBxc0OMG4Hk3oXrabYZy8BP7WfupBdCQCDrkPsbOGJo+ut1Mv7i1dF0ep1RkSqVCJTks+ZVqNbuullBjJe0vdBPRGJNfq3yuW5g2Z7al9lZ+u1GIH2jC5bkZZ/7+2UXV3/GKnfNWuCOrWyMzVnGRdXPMHmzzK4EUjrzjG1A7ml/3ew/er6uBFJus/Z0yIyoW57slTuB9A2yXLw8onEzlq66Wj1cCoRVZCxa+LGf3lYPlwLpG1VyRDje4TX0nvs8hXS1B1lNMRv2oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",EA="",qd={name:"msgList",components:{TopPopup:$},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return _d}},watch:{visible:{handler(e,n){e&&this.request.get("/auth/user/opinion/my").then(o=>{o.code===200&&(this.listData=o.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(n=>{n.code===200&&(this.listData=n.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},$d={key:0,class:"top-msg"},er=["onClick"],tr={class:"top-msg-items-text"},sr=["onClick"],nr=["src"];function or(e,n,o,i,l,d){const m=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",null,[o.visible?(t.openBlock(),t.createElementBlock("div",$d,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.listData,A=>(t.openBlock(),t.createElementBlock("div",{class:"top-msg-items",onClick:k=>d.handleMsg(A)},[t.createElementVNode("div",tr,t.toDisplayString(A.opinionName),1),t.createElementVNode("div",{class:"top-msg-items-del",onClick:t.withModifiers(k=>d.handleOpenMsg(A),["stop"])},[t.createElementVNode("img",{src:d.Del},null,8,nr)],8,sr)],8,er))),256))])):t.createCommentVNode("",!0),t.createVNode(m,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${l.opinion.opinionName}'\u5220\u9664`,cancel:d.handleTipsCancel,comfig:d.handleDel,visible:l.visibleListMsg,"onUpdate:visible":n[0]||(n[0]=A=>l.visibleListMsg=A)},null,8,["context","cancel","comfig","visible"])])}const rt=U(qd,[["render",or],["__scopeId","data-v-87fc3e49"]]),BA="",ir={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,MsgList:rt},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/createDynamicTask",{title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,participant:e,processInstId:this.param.processInstId,adHocType:2,parentTaskInstId:this.param.taskInstId,reason:this.commentMsg}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},pt=e=>(t.pushScopeId("data-v-7c557bcb"),e=e(),t.popScopeId(),e),ar={class:"process-popup-content"},lr={class:"process-popup-content-msg"},cr={key:0},dr=pt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),rr={class:"process-pc-value"},pr={class:"process-popup-textarea"},hr={class:"process-popup-textarea-num"},mr={key:0,class:"msg-btn"},ur={key:0,class:"process-popup-content-person"},gr=pt(()=>t.createElementVNode("div",null,[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),fr=["onClick"],Ar={class:"process-pc-value--people"},kr={key:0,class:"process-pc-value--data"},yr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Cr=[pt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Er=pt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Br=["onClick"],Ir={class:"process-pc-value--people"},Nr={key:0,class:"process-pc-value--data"},br={key:1,class:"process-pc-value--data",style:{color:"#888"}},Tr=[pt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],wr={style:{height:"100%"}};function vr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),u=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",ar,[t.createElementVNode("div",lr,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",cr,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=h=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),dr,t.createElementVNode("div",rr,[t.createElementVNode("div",pr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",hr,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=h=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock("div",ur,[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[gr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Ar,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",kr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(E,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",yr,Cr))])],8,fr)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Er,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Ir,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Nr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(E,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",br,Tr))])],8,Br)],64))),256)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",wr,[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),l.labels=="5"?(t.openBlock(),t.createBlock(C,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(k,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=h=>l.visibleListMsg=h),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(u,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(k,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=h=>l.visibleMsgComfig=h)},null,8,["context","cancel","comfig","visible"])])}const Vr=U(ir,[["render",vr],["__scopeId","data-v-7c557bcb"]]),bA="",Sr={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,MsgList:rt},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},ht=e=>(t.pushScopeId("data-v-da729aaf"),e=e(),t.popScopeId(),e),Dr={class:"process-popup-content"},Qr={class:"process-popup-content-msg"},Or={key:0},Mr=ht(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),xr={class:"process-pc-value"},Fr={class:"process-popup-textarea"},Lr={class:"process-popup-textarea-num"},Pr={key:0,class:"msg-btn"},Ur={key:0,class:"process-popup-content-person"},Jr=ht(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Gr=["onClick"],Rr={class:"process-pc-value--people"},jr={key:0,class:"process-pc-value--data"},Kr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Yr=[ht(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Hr=ht(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Wr=["onClick"],zr={class:"process-pc-value--people"},Zr={key:0,class:"process-pc-value--data"},Xr={key:1,class:"process-pc-value--data",style:{color:"#888"}},_r=[ht(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],qr={style:{height:"100%"}};function $r(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),u=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",Dr,[t.createElementVNode("div",Qr,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Or,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=h=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Mr,t.createElementVNode("div",xr,[t.createElementVNode("div",Fr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",Lr,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Pr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=h=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock("div",Ur,[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Jr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Rr,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",jr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(E,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Kr,Yr))])],8,Gr)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Hr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",zr,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Zr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(E,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Xr,_r))])],8,Wr)],64))),256)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",qr,[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(C,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(k,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=h=>l.visibleListMsg=h),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(u,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(k,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=h=>l.visibleMsgComfig=h)},null,8,["context","cancel","comfig","visible"])])}const ep=U(Sr,[["render",$r],["__scopeId","data-v-da729aaf"]]),tp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57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zInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",vA="",VA="",sp={name:"TreeNode",components:{TopPopup:$,TopTips:pe,departPerson:he.exports.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,n){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onVars",this.gateVars),this.nodeType=="outing"?this.nodeItems=JSON.parse(JSON.stringify(e)):this.nodeType=="nexting"&&e.forEach(o=>{o.userTaskModelDTO.participantList&&o.userTaskModelDTO.participantList.length&&o.userTaskModelDTO.participantList.map(i=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(i.id)||this.multiNodeParticipant[o.id].push(i.id),this.partNode[o.id].includes(i.name)||this.partNode[o.id].push(i.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(i=>{i.code==200&&(this.personMakeList=i.data)}),this.nodeItems=JSON.parse(JSON.stringify(e))}))},immediate:!0,deep:!0}},computed:{check(){return vs}},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.gateVars={}},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"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e))},handleNode(e){let n=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];n&&n.length&&n.forEach((o,i)=>{o.participantList&&o.participantList.length?o.participantList.forEach((l,d)=>{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.id&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[o.id]}).then(l=>{l.code==200&&(this.partNode[o.id]={},this.partNode[o.id]=l.data[o.id])}),this.nodeType=="outing"&&(!o.incomingConditionItemList||!o.incomingConditionItemList.length?e&&e.length?this.gateVars[e[0].incomingConditionItemList[0].itemName]=e[0].incomingConditionItemList[0].compareValue:this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue:o.incomingConditionItemList[0].itemName&&o.incomingConditionItemList[0].compareValue&&(this.gateVars[o.incomingConditionItemList[0].itemName]=o.incomingConditionItemList[0].compareValue),this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((i,l)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[],i=[];e.routeTxt.departmentIds.forEach((l,d)=>{e.routeTxt.departmentIds.length>1?o.push(l.rangeId):n=l.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((l,d)=>{i.push({type:3,uid:l,deptId:n})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCodeArray:o,checkedArray:i}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:n,checkedArray:i}}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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:n}}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},np=e=>(t.pushScopeId("data-v-f499df5b"),e=e(),t.popScopeId(),e),op={key:0,class:"treenode"},ip={key:0,class:"treenode-multi"},ap={class:"treenode-node",style:{"margin-top":"0"}},lp=["onClick"],cp=["src"],dp=["onClick"],rp=np(()=>t.createElementVNode("span",null,null,-1)),pp={class:"treenode-node"},hp={key:0},mp={key:1,class:"personselect"},up={class:"personselect-name"},gp={class:"items-person"},fp=["onClick"],Ap={key:1,class:"items-person-name"},kp={key:2,class:"items-person-name"},yp={class:"treenode-node"},Cp={key:0},Ep={key:1,class:"personselect"},Bp={class:"personselect-name"},Ip={class:"items-person"},Np=["onClick"],bp={key:1,class:"items-person-name"},Tp={key:2,class:"items-person-name"},wp={key:1,class:"treenode-single"},vp={class:"treenode-single-items"},Vp={class:"personselect"},Sp={class:"personselect-name"},Dp={class:"items-person"},Qp=["onClick"],Op={key:1,class:"items-person-name"},Mp={key:2,class:"items-person-name"},xp={key:3,class:"items-person-name"};function Fp(e,n,o,i,l,d){const m=t.resolveComponent("TreeNode",!0),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("TopTips");return l.nodeItems&&l.nodeItems.length?(t.openBlock(),t.createElementBlock("div",op,[o.endNode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ip,[t.createElementVNode("div",ap,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.nodeItems,u=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[o.checkType=="InclusiveGatewayModel"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["treenode-checkbox",l.checkBoxArr.includes(u.id)?"treenode-checkbox-active":""]),onClick:h=>d.handleCheckBoxClick(u)},[t.createElementVNode("span",null,[l.checkBoxArr.includes(u.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:d.check},null,8,cp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(u.nodeName||u.name),1)],10,lp)):o.checkType=="ExclusiveGatewayModel"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["treenode-radio",l.radioArr==u.id?"treenode-radio-active":""]),onClick:h=>d.handleRadioClick(u)},[rp,t.createTextVNode(" "+t.toDisplayString(u.nodeName||u.name),1)],10,dp)):t.createCommentVNode("",!0)],64))),256))]),o.checkType=="InclusiveGatewayModel"&&l.checkBoxItem&&l.checkBoxItem.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.checkBoxItem,u=>(t.openBlock(),t.createElementBlock("div",pp,[u.childNode&&u.childNode.length?(t.openBlock(),t.createElementBlock("div",hp,[t.createVNode(m,{items:u.childNode,endNode:u.childNode.length==1,nodeType:o.nodeType,param:o.param,checkType:u.type,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(t.openBlock(),t.createElementBlock("div",mp,[t.createElementVNode("div",up,t.toDisplayString(u.nodeName||u.name),1),t.createElementVNode("div",gp,[u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"items-person-set",onClick:t.withModifiers(h=>d.handleOpenPopup(u),["stop"])}," \u8BBE\u7F6E ",8,fp)):t.createCommentVNode("",!0),u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",Ap,t.toDisplayString(l.partNode[u.id]?l.partNode[u.id].join(","):""),1)):u.routeTxt&&u.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",kp,t.toDisplayString(u.routeTxt.userNames),1)):t.createCommentVNode("",!0)])]))]))),256)):t.createCommentVNode("",!0),o.checkType=="ExclusiveGatewayModel"&&l.radioItem&&l.radioItem.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.radioItem,u=>(t.openBlock(),t.createElementBlock("div",yp,[u.childNode&&u.childNode.length?(t.openBlock(),t.createElementBlock("div",Cp,[t.createVNode(m,{items:u.childNode,endNode:u.childNode.length==1,nodeType:o.nodeType,param:o.param,checkType:u.type,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(t.openBlock(),t.createElementBlock("div",Ep,[t.createElementVNode("div",Bp,t.toDisplayString(u.nodeName||u.name),1),t.createElementVNode("div",Ip,[u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"items-person-set",onClick:t.withModifiers(h=>d.handleOpenPopup(u),["stop"])}," \u8BBE\u7F6E ",8,Np)):t.createCommentVNode("",!0),u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",bp,t.toDisplayString(l.partNode[u.id]?l.partNode[u.id].join(","):""),1)):u.routeTxt&&u.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",Tp,t.toDisplayString(u.routeTxt.userNames),1)):t.createCommentVNode("",!0)])]))]))),256)):t.createCommentVNode("",!0)])),o.endNode?(t.openBlock(),t.createElementBlock("div",wp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.nodeItems,u=>(t.openBlock(),t.createElementBlock("div",vp,[t.createElementVNode("div",Vp,[t.createElementVNode("div",Sp,t.toDisplayString(u.nodeName||u.name),1),t.createElementVNode("div",Dp,[u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"items-person-set",onClick:t.withModifiers(h=>d.handleOpenPopup(u),["stop"])}," \u8BBE\u7F6E ",8,Qp)):t.createCommentVNode("",!0),l.personMakeList[u.id]?(t.openBlock(),t.createElementBlock("div",Op,t.toDisplayString(l.personMakeList[u.id]),1)):u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",Mp,t.toDisplayString(l.partNode[u.id]?l.partNode[u.id].join(","):""),1)):u.routeTxt&&u.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",xp,t.toDisplayString(u.routeTxt.userNames),1)):t.createCommentVNode("",!0)])])]))),256))])):t.createCommentVNode("",!0),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=u=>l.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1},l.entity,{onCallback:d.handleCallback}),null,16,["onCallback"])):t.createCommentVNode("",!0)]),_:1},8,["visible"]),t.createVNode(C,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"])])):t.createCommentVNode("",!0)}const Lp=U(sp,[["render",Fp],["__scopeId","data-v-f499df5b"]]),SA="",Pp={name:"treeperson",components:{TreeNode:Lp},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstType:"",childrenItems:[],childrenEndItems:!1,gateVars:{},multiNode:[],getVars:{}}},watch:{items:{handler(e,n){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(o=>{o={...o,...o.userTaskModelDTO},o.humanPerformerName=o.humanPerformer.name,this.nodeItems.push(o)})):this.nodeType=="outing"&&(this.nodeItems=e))},immediate:!0,deep:!0}},methods:{onMultiNode(e){this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},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"},handleFirstNodeClick(e){if(e){this.firstCheck=e.id,this.firstType=e.type;let n=[e];e.childNode&&e.childNode.length?(this.childrenItems=e.childNode,this.childrenEndItems=!1):(this.childrenItems=[e],this.childrenEndItems=!0),this.nodeType=="outing"&&(this.gateVars={},n.forEach(o=>{this.gateVars[o.incomingConditionItemList[0].itemName]=o.incomingConditionItemList[0].compareValue}))}}}},Vs=e=>(t.pushScopeId("data-v-2a6b462f"),e=e(),t.popScopeId(),e),Up={class:"test"},Jp={key:0},Gp={class:"treeperson"},Rp=Vs(()=>t.createElementVNode("div",{class:"treeperson-title"},[t.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),jp={class:"treeperson-firstnode"},Kp=["onClick"],Yp=Vs(()=>t.createElementVNode("span",null,null,-1)),Hp=Vs(()=>t.createElementVNode("div",{class:"treeperson-title"},[t.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1));function Wp(e,n,o,i,l,d){const m=t.resolveComponent("TreeNode");return t.openBlock(),t.createElementBlock("div",Up,[l.nodeItems&&l.nodeItems.length?(t.openBlock(),t.createElementBlock("div",Jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.nodeItems,A=>(t.openBlock(),t.createElementBlock("div",Gp,[A.childNode&&A.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Rp,o.nodeType=="outing"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(A.childNode,k=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["treeperson-radio",l.firstCheck==k.id?"treeperson-radio-active":""]),onClick:C=>d.handleFirstNodeClick(k)},[Yp,t.createTextVNode(" "+t.toDisplayString(k.nodeName||k.name),1)],10,Kp))),256))]),t.createVNode(m,{items:l.childrenItems,endNode:l.childrenEndItems,nodeType:o.nodeType,param:o.param,checkType:l.firstType,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Hp,o.nodeType=="nexting"?(t.openBlock(),t.createBlock(m,{key:0,items:[A],endNode:l.childrenEndItems,nodeType:o.nodeType,param:o.param,checkType:l.firstType,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])):t.createCommentVNode("",!0)],64))]))),256))])):t.createCommentVNode("",!0)])}const zp=U(Pp,[["render",Wp],["__scopeId","data-v-2a6b462f"]]),DA="",Zp={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,MsgList:rt,TreePerson:zp},computed:{check(){return vs},checkS(){return tp}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:""}},watch:{"param.visible":{handler(e,n){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,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)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,n){e.map((o,i)=>{o.childNode&&o.childNode.length?this.forRadioChild(o.childNode,!0):n&&this.radioCheckChild.push(o)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(n=>{n.participantList&&n.participantList.length?n.participantList.map(o=>{this.multiNodeParticipant[n.id]||(this.multiNodeParticipant[n.id]=[]),this.partNode[n.id]||(this.partNode[n.id]=[]),this.multiNodeParticipant[n.id].includes(o.id)||this.multiNodeParticipant[n.id].push(o.id),this.partNode[n.id].includes(o.name)||this.partNode[n.id].push(o.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[n.id]}).then(o=>{o.code==200&&(this.partNodeS=[],this.partNodeS.push(o.data[n.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((i,l)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[],i=[];e.routeTxt.departmentIds.forEach((l,d)=>{e.routeTxt.departmentIds.length>1?o.push(l.rangeId):n=l.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((l,d)=>{i.push({type:3,uid:l,deptId:n})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCodeArray:o,checkedArray:i}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:n,checkedArray:i}}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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:n}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){if(this.param.ProcessInsObj.processDefId==="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!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?this.radioCheckChild[0].type!=="EndEventModel"&&this.radioCheckNameList.map((n,o)=>{(!this.multiNodeParticipant[n]||!this.multiNodeParticipant[n].length)&&this.radioCheckChild.map((i,l)=>{i.id==n&&(i.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||i.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!i.childNode||!i.childNode.length||this.radioCheckNode.map((d,m)=>{!this.multiNodeParticipant[d]||this.multiNodeParticipant[d].length,e[d]=this.multiNodeParticipant[d]}))}),e[n]=this.multiNodeParticipant[n]}):e=this.multiNodeParticipant,this.handleTips("",!0,"loading"),this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.param.beforeFunction&&!await this.param.beforeFunction()){this.handleTips("error!",!0,"error");return}await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(n=>{if(n.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onVars(e){this.gateVars=e}}},Ss=e=>(t.pushScopeId("data-v-4692e519"),e=e(),t.popScopeId(),e),Xp={class:"process-popup-content"},_p={key:0,class:"process-popup-content-msg"},qp={key:0,class:"process-pc-label"},$p={key:1,class:"process-pc-value",style:{display:"flex"}},eh={class:"process-radio",style:{width:"100%"}},th=["onClick"],sh=Ss(()=>t.createElementVNode("span",null,null,-1)),nh=["onClick"],oh=Ss(()=>t.createElementVNode("span",null,null,-1)),ih={key:2},ah=Ss(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),lh={class:"process-pc-value"},ch={class:"process-popup-textarea"},dh={class:"process-popup-textarea-num"},rh={key:0,class:"msg-btn"},ph={key:1,class:"process-popup-content-person"},hh={style:{height:"100%"}};function mh(e,n,o,i,l,d){const m=t.resolveComponent("TreePerson"),A=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),C=t.resolveComponent("TopPopup"),u=t.resolveComponent("MsgList"),h=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Xp,[o.param.ProcessInsObj&&o.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(t.openBlock(),t.createElementBlock("div",_p,[o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",qp," \u5FEB\u6377\u56DE\u590D ")):t.createCommentVNode("",!0),o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",$p,[t.createElementVNode("div",eh,[o.param.isDocument?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.msgCheckList,E=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",E==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=E},[sh,t.createTextVNode(" "+t.toDisplayString(E),1)],10,th))),256)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.msgCheckListS,E=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",E==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=E},[oh,t.createTextVNode(" "+t.toDisplayString(E),1)],10,nh))),256)),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",{key:2,class:"process-radio-item",onClick:n[0]||(n[0]=E=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),o.param.isMsg&&!o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",ih,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[1]||(n[1]=E=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),ah,t.createElementVNode("div",lh,[t.createElementVNode("div",ch,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[2]||(n[2]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",dh,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",rh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[3]||(n[3]=E=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock("div",ph,[l.nextNodeData.length?(t.openBlock(),t.createBlock(m,{key:0,items:l.nextNodeData,nodeType:"nexting",param:o.param,onOnMultiNode:d.onMultiNode},null,8,["items","param","onOnMultiNode"])):l.outGatewayUserTaskModel.length?(t.openBlock(),t.createBlock(m,{key:1,items:l.outGatewayUserTaskModel,nodeType:"outing",param:o.param,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","param","onOnMultiNode","onOnVars"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"completeSlot",{},void 0,!0),t.createVNode(A,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(C,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=E=>l.visible=E),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",hh,[l.visible?(t.openBlock(),t.createBlock(k,t.mergeProps({key:0,isTitle:!1,visible:l.visible},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),t.createVNode(C,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=E=>l.visibleListMsg=E),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(u,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(C,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=E=>l.visibleMsgComfig=E)},null,8,["context","cancel","comfig","visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(h,{key:2,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const uh=U(Zp,[["render",mh],["__scopeId","data-v-4692e519"]]),QA="",gh={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,MsgList:rt},watch:{param:{async handler(e,n){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},$e=e=>(t.pushScopeId("data-v-a4ea7c79"),e=e(),t.popScopeId(),e),fh={class:"process-popup-content"},Ah={class:"process-popup-content-msg"},kh={key:0},yh=$e(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Ch={class:"process-pc-value"},Eh={class:"process-popup-textarea"},Bh={class:"process-popup-textarea-num"},Ih={key:0,class:"msg-btn"},Nh={key:0,class:"process-popup-content-person"},bh=$e(()=>t.createElementVNode("br",null,null,-1)),Th=$e(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),wh=["onClick"],vh={class:"process-pc-value--people"},Vh={key:0,class:"process-pc-value--data"},Sh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Dh=[$e(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Qh={style:{"font-size":"15px"}},Oh=$e(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Mh=[$e(()=>t.createElementVNode("div",{class:"process-pc-value--people"},t.toDisplayString(234),-1))],xh={style:{height:"100%"}};function Fh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),u=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",fh,[t.createElementVNode("div",Ah,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",kh,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=h=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),yh,t.createElementVNode("div",Ch,[t.createElementVNode("div",Eh,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",Bh,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Ih,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=h=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock("div",Nh,[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var E,w;return t.openBlock(),t.createElementBlock(t.Fragment,null,[d.isOption((w=(E=h==null?void 0:h.userTaskModelDTO)==null?void 0:E.humanPerformer)==null?void 0:w.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),bh,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Th]),t.createElementVNode("div",{class:"process-pc-value",onClick:S=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",vh,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Vh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(S,Q)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(Q==0?S:`,${S}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Sh,Dh))])],8,wh)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[d.isOption(h.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Qh,t.toDisplayString(h.name),1),Oh,t.createElementVNode("div",{class:"process-pc-value",onClick:n[3]||(n[3]=(...E)=>d.handleOpenPopup&&d.handleOpenPopup(...E))},Mh)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",xh,[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),l.labels=="\u62D2\u7EDD"?(t.openBlock(),t.createBlock(C,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(k,{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(u,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(k,{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"])])}const Lh=U(gh,[["render",Fh],["__scopeId","data-v-a4ea7c79"]]),xA="",Ph={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,TopDownSelect:co,MsgList:rt},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},po=e=>(t.pushScopeId("data-v-4bcd7506"),e=e(),t.popScopeId(),e),Uh={class:"process-popup-content"},Jh={class:"process-popup-content-msg"},Gh=po(()=>t.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Rh={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},jh={key:0},Kh=po(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Yh={class:"process-pc-value"},Hh={class:"process-popup-textarea"},Wh={class:"process-popup-textarea-num"},zh={key:0,class:"msg-btn"};function Zh(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),A=t.resolveComponent("TopTips"),k=t.resolveComponent("MsgList"),C=t.resolveComponent("TopPopup"),u=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Uh,[t.createElementVNode("div",Jh,[Gh,t.createElementVNode("div",Rh,[t.createVNode(m,{option:l.option,onChange:d.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",jh,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=h=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Kh,t.createElementVNode("div",Yh,[t.createElementVNode("div",Hh,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",Wh,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",zh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=h=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])]),t.createVNode(A,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(C,{visible:l.visibleListMsg,"onUpdate:visible":n[3]||(n[3]=h=>l.visibleListMsg=h),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(C,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[4]||(n[4]=h=>l.visibleMsgComfig=h)},null,8,["context","cancel","comfig","visible"]),l.labels=="\u9000\u56DE"?(t.openBlock(),t.createBlock(u,{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 Xh=U(Ph,[["render",Zh],["__scopeId","data-v-4bcd7506"]]),FA="",_h={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),await this.param.request.post("/aws/tis/createCCTask",{processInstId:this.param.processInstId,title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,parentTaskInstId:this.param.taskInstId,participant:e}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},xt=e=>(t.pushScopeId("data-v-57f36d8e"),e=e(),t.popScopeId(),e),qh={class:"process-popup-content"},$h={key:0,class:"process-popup-content-person"},em=xt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),tm=["onClick"],sm={class:"process-pc-value--people"},nm={key:0,class:"process-pc-value--data"},om={key:1,class:"process-pc-value--data",style:{color:"#888"}},im=[xt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))],am=xt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),lm=["onClick"],cm={class:"process-pc-value--people"},dm={key:0,class:"process-pc-value--data"},rm={key:1,class:"process-pc-value--data",style:{color:"#888"}},pm=[xt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))],hm={style:{height:"100%"}};function mm(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",qh,[l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock("div",$h,[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,u=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[em,t.createElementVNode("div",{class:"process-pc-value",onClick:h=>d.handleOpenPopup(u.id)},[t.createElementVNode("div",sm,[l.partNode[u.id]&&l.partNode[u.id].length?(t.openBlock(),t.createElementBlock("div",nm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[u.id],(h,E)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(E==0?h:`,${h}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",om,im))])],8,tm)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,u=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[am,t.createElementVNode("div",{class:"process-pc-value",onClick:h=>d.handleOpenPopup(u.id)},[t.createElementVNode("div",cm,[l.partNode[u.id]&&l.partNode[u.id].length?(t.openBlock(),t.createElementBlock("div",dm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[u.id],(h,E)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(E==0?h:`\uFF1B${h}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",rm,pm))])],8,lm)],64))),256)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=u=>l.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",hm,[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),l.labels=="2"?(t.openBlock(),t.createBlock(C,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const um=U(_h,[["render",mm],["__scopeId","data-v-57f36d8e"]]),gm=re({name:"TopProcess",components:{TopTab:Bc,TopPopup:$,TopTips:pe,TopSumbitPopup:ro},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1}},watch:{processInstId:{async handler(e,n){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(o=>{o.code==200&&(this.trackUrl=o.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(o=>{o.code==200&&(this.trackList=o.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(o=>{o.code==200&&(this.taskCommentList=o.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(o=>{o.code==200&&(this.ProcessInsObj=o.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(o=>{if(o.code==200)if(this.taskNode=o.data,this.taskNodeList=o.data,this.taskNodeList.length==1){if(this.taskNodeList[0].taskState==4)return this.taskState=4,!1;this.taskNodeList[0].taskState==11&&(this.taskState=11),this.taskNodeList[0].taskId,this.handleGetProcessStatus(),this.handleGetUserTaskModel()}else this.taskNodeList.length>1?(this.taskNodeList.forEach(i=>{i.name=i.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0},restartData:{handler(e,n){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,n){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,n){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var o,i;let e=[],n=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(this.formData.currentState==="\u5DF2\u64A4\u9500"||this.formData.currentState==="\u5DF2\u9A73\u56DE"||this.processStatus.status==="\u5DF2\u64A4\u9500"||this.processStatus.status==="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"){let l={};l.name="\u91CD\u65B0\u63D0\u4EA4",l.btnProps={type:"default"},e.push(l),l.click=this.handleTest}if(n&&!this.isView&&this.taskObj.completeButtonLabel){let l={};l.name=this.taskObj.completeButtonLabel,l.btnProps={type:"primary"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(uh,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(Lh,d,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(l=>{let d={};d.name=l.name,d.btnProps={type:l.type},e.push(d),d.click=l.click}),n&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(l=>{if(l.label==="\u9000\u56DE"){let d={};d.name=l.label,d.btnProps={type:"danger"},e.push(d),d.click=m=>{this.handleActionClose(),this.showOperation(Xh,m,this.request,this.taskObj.otherButtonAnnexList)}}}),n&&!this.isView&&this.taskObj.ccTaskButtonLabel){let l={};l.name=this.taskObj.ccTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(um,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(ep,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(Vr,d,this.request,this.taskObj.counterSignButtonAnnex)},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((o=this.taskNode[0])==null?void 0:o.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u50AC\u529E",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((i=this.taskNode[0])==null?void 0:i.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u64A4\u9500",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(l)}return e},processCardHeight(){console.log("btnList",this.operBtn);let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),`calc(100vh - ${e}px)`},processBtn(){if(console.log("btnList",this.operBtn),this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),n=document.getElementById("process-footer");this.bottomNum=n?n.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144,console.log(this.bottomNum,"diss::",this.topNum)},1e3)})},handleTestsss(e,n){console.log("==========:::",e,n)},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},o=await this.request.post("/aws/tis/simulation",n);if(o.success){this.handleTips("",!1,"success"),this.nextNodeData=o.data;for(let i=0;i<this.nextNodeData.length;i++)this.approveNode=this.nextNodeData[i]}else{let i=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(i,"")}},async getOutgoingProcessNode(e,n){let o=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:n}});if(o.code==200){if(o.data&&o.data.length){for(let i=0;i<o.data.length;i++){let l=o.data[i];if(l.type!="UserTaskModel"&&l.type!="EndEventModel"){let d=await this.getOutgoingProcessNode(e,l.id);d&&d.length&&(await d.map((m,A)=>{m.nodeName=m.incomingConditionItemList&&m.incomingConditionItemList.length?m.incomingConditionItemList[0].compareValue:""}),l.childNode=d)}}return this.handleTips("",!1,"success"),o.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0),this.handleGetHeight()}).catch(e=>{this.handleGetHeight()})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,n,o,i){if(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.processStatus.allUserNames&&this.processStatus.allUserNames.length&&this.taskNode[0]&&this.taskNode[0].nodeId){let d;this.getVars&&(d=this.getVars()),await this.handleGetSimulation(d)}o&&(this.operationParam.request=o,this.annexlabel=i),this.titleText=n,this.operationCom=e,this.operationParam.visible=this.TopPopup1,this.operationParam.annex=i,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=n,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationParam.userInfo=this.user,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,this.taskObj.commentModels.some(d=>this.operationParam.actionComplete=d!=null&&d.isDefault?d.actionName:""),this.TopPopup1=!0},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(o=>{this.getFirstProcessNode=o.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\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()}}}),UA="",et=e=>(t.pushScopeId("data-v-6ddd36c7"),e=e(),t.popScopeId(),e),fm={class:"process-warp"},Am={key:0,class:"process-main",id:"process-header",ref:"processheader"},km={class:"process-ml-item border"},ym=et(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),Cm={class:"process-mli-value"},Em={class:"process-ml-item border"},Bm=et(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),Im={class:"process-mli-value"},Nm={key:0,class:"process-ml-item"},bm=et(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),Tm={class:"process-mli-value",style:{width:"50%","text-align":"right"}},wm={class:"process-mliv-jd"},vm=["slot"],Vm={slot:"default",style:{}},Sm=["slot"],Dm={key:0,class:"footBtnRow"},Qm=["onClick"],Om=[et(()=>t.createElementVNode("div",{class:"circle"},null,-1)),et(()=>t.createElementVNode("div",{class:"circle"},null,-1)),et(()=>t.createElementVNode("div",{class:"circle"},null,-1))],Mm={slot:"completeSlot"},xm=["onClick"],Fm=["onClick"];function Lm(e,n,o,i,l,d){const m=t.resolveComponent("TopTab"),A=t.resolveComponent("TopPopup"),k=t.resolveComponent("TopTips"),C=t.resolveComponent("TopSumbitPopup");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",fm,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",Am,[t.createElementVNode("div",km,[ym,t.createElementVNode("div",Cm,[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",Em,[Bm,t.createElementVNode("div",Im,[t.createElementVNode("span",null,t.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(t.openBlock(),t.createElementBlock("div",Nm,[bm,t.createElementVNode("div",Tm,[t.createElementVNode("span",wm,t.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"process-card",style:t.normalizeStyle({height:e.processCardHeight})},[t.createVNode(m,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:t.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.selfTapList,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,slot:u.slot},[t.renderSlot(e.$slots,u.slot,{},void 0,!0)],8,vm))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Vm,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tapList,(u,h)=>(t.openBlock(),t.createElementBlock("div",{style:{},key:h,slot:u.slot},[t.renderSlot(e.$slots,u.slot,{},void 0,!0)],8,Sm))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:t.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(t.openBlock(),t.createElementBlock("div",Dm,[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,(u,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h<3?(t.openBlock(),t.createElementBlock("div",{class:"top-button",style:t.normalizeStyle(e.getBtnStyle(u.btnProps.type.toString())),key:u.name,onClick:E=>u.click(u.name)},t.toDisplayString(u.name),13,Qm)):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]=(...u)=>e.handleActionOpen&&e.handleActionOpen(...u))},Om)):t.createCommentVNode("",!0)],64))],64))],4))]),t.createVNode(A,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":n[1]||(n[1]=u=>e.TopPopup1=u),className:"toppopup-component"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:t.withCtx(()=>[t.createElementVNode("div",Mm,[t.renderSlot(e.$slots,"completeSlot",{},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),t.createVNode(A,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),t.createVNode(k,{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,u=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:h=>e.handleGet(u),key:u.taskId},t.toDisplayString(u.name),9,xm))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.actionBtn,u=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:h=>u.click(u.name),key:u.name},t.toDisplayString(u.name),9,Fm))),128)),t.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:n[2]||(n[2]=(...u)=>e.handleActionClose&&e.handleActionClose(...u))}," \u53D6\u6D88 ")],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-elips-mask",onClick:n[3]||(n[3]=(...u)=>e.handleActionClose&&e.handleActionClose(...u)),style:t.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),t.createVNode(C,t.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"])])}const Pm=U(gm,[["render",Lm],["__scopeId","data-v-6ddd36c7"]]);le.TopProcess=Pm,le.TopSumbitPopup=ro,le.ViewAttchList=lo,le.attchViews=Je,Object.defineProperties(le,{__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=Ag({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),sn(this.mainContainer),kg(p,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const yg=Zt({name:"checked",props:{},data(){return{dialogVisible:!1,jsonData:[]}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,a){if(!s)return!1;this.$nextTick(()=>{})}}},computed:{checkedNumber(){const s=this.jsonData.filter(g=>g.type==1).length,a=this.jsonData.filter(g=>g.type==2).length,c=this.jsonData.filter(g=>g.type==3||g.type==6).length,r=this.jsonData.filter(g=>g.type==5).length;let p=[];return s>0&&p.push(`\u7EC4\u7EC7(${s})`),r>0&&p.push(`\u7FA4\u7EC4(${r})`),a>0&&p.push(`\u90E8\u95E8(${a})`),c>0&&p.push(`\u4EBA\u5458(${c})`),b(p)?"":"\u5DF2\u9009\u62E9"+p.join("\uFF0C")},companyJson(){return this.jsonData.filter(s=>s.type==1||s.type==5)},deptJson(){return this.jsonData.filter(s=>s.type==2)},userJson(){return this.jsonData.filter(s=>s.type==3||s.type==6)}},mounted(){},methods:{init(s,a){this.dialogVisible=s,this.jsonData=a},handleRemove(s){this.jsonData=this.jsonData.filter(a=>a.uniqueId!==s.uniqueId||a.isNoDelete),this.$emit("callback",this.jsonData)},handleSlotUser(s){return{id:s.id,name:s.name,uid:s.uid}},isBool(s){return b(s)},handleClose(){this.init(!1,this.jsonData)}}}),es=(s,a)=>{const c=s.__vccOpts||s;for(const[r,p]of a)c[r]=p;return c},Cg={key:0,class:"checked-main"},Eg={class:"checked-content"},Bg={class:"checked-title"},Ig={class:"checked-name"},Ng={class:"checked-section"},bg={class:"checked-depart"},Tg={class:"checked-departItem-content"},wg={class:"name"},vg=["onClick"],Vg={class:"checked-departItem-content"},Sg={class:"name"},Dg={key:0},Qg={class:"content"},Og=["onClick"],Mg={class:"checked-user"},xg={class:"checked-userItem-icon"},Fg={key:0},Lg=["src"],Pg={class:"checked-userItem-content"},Ug={class:"checked-userItem-left"},Jg={class:"checked-userItem-name"},Gg={class:"checked-userItem-phone"},Rg={key:0,class:"checked-userItem-txt"},jg={class:"deper-person-slot"},Kg=["onClick"];function Yg(s,a,c,r,p,g){return s.dialogVisible?(i.openBlock(),i.createElementBlock("main",Cg,[i.createElementVNode("div",{onClick:a[0]||(a[0]=(...f)=>s.handleClose&&s.handleClose(...f)),class:"checked-mask"}),i.createElementVNode("div",Eg,[i.createElementVNode("div",Bg,[i.createElementVNode("div",Ig,i.toDisplayString(s.checkedNumber),1),i.createElementVNode("div",{onClick:a[1]||(a[1]=(...f)=>s.handleClose&&s.handleClose(...f)),class:"checked-btn"},"\u5173\u95ED")]),i.createElementVNode("section",Ng,[i.createElementVNode("div",bg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,f=>(i.openBlock(),i.createElementBlock("div",{key:f.uniqueId,class:"checked-depart-item"},[i.createElementVNode("div",Tg,[i.createElementVNode("div",wg,[i.createElementVNode("span",null,i.toDisplayString(f.name),1)])]),f.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:B=>s.handleRemove(f),class:"checked-remove"},"\u79FB\u9664",8,vg))]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,f=>(i.openBlock(),i.createElementBlock("div",{key:f.uniqueId,class:"checked-depart-item"},[i.createElementVNode("div",Vg,[i.createElementVNode("div",Sg,[i.createElementVNode("span",{class:i.normalizeClass({width:f.orgRecordsType==4})},i.toDisplayString(f.name),3),f.orgRecordsType==4?(i.openBlock(),i.createElementBlock("label",Dg,"\u5305\u542B\u5B50\u7EA7")):i.createCommentVNode("",!0)]),i.createElementVNode("div",Qg,i.toDisplayString(f.ancestorNames),1)]),f.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:B=>s.handleRemove(f),class:"checked-remove"},"\u79FB\u9664",8,Og))]))),128))]),i.createElementVNode("div",Mg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,f=>(i.openBlock(),i.createElementBlock("div",{key:f.uniqueId,class:"checked-user-item"},[i.createElementVNode("div",xg,[f.avatar.length<1?(i.openBlock(),i.createElementBlock("span",Fg,i.toDisplayString(f.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:f.avatar},null,8,Lg))]),i.createElementVNode("div",Pg,[i.createElementVNode("div",Ug,[i.createElementVNode("div",Jg,i.toDisplayString(f.name),1),i.createElementVNode("div",Gg,i.toDisplayString(f.phone),1),s.isBool(f.ancestorNamesList)?(i.openBlock(),i.createElementBlock("div",Rg,i.toDisplayString(f.ancestorNames),1)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(f.ancestorNamesList,(B,N)=>(i.openBlock(),i.createElementBlock("div",{key:N,class:"checked-userItem-txt"},i.toDisplayString(B),1))),128)),i.createElementVNode("div",jg,[i.renderSlot(s.$slots,"user",{item:s.handleSlotUser(f)},void 0,!0)])]),f.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:B=>s.handleRemove(f),class:"checked-remove"},"\u79FB\u9664",8,Kg))])]))),128))])])])])):i.createCommentVNode("",!0)}const Hg=es(yg,[["render",Yg],["__scopeId","data-v-0472994d"]]),Wg=Zt({name:"dcSwitch",props:{modelValue:{type:Boolean,default:!1},name:{type:String,default:""},activeColor:{type:String,default:"#409EFF"},inactiveColor:{type:String,default:"#c9c9c9"}},watch:{modelValue:{deep:!0,immediate:!0,handler:function(s,a){this.setColor()}}},computed:{contentCss(){let s=this.width>30?"px":"rem";return{width:this.width+s,height:this.height+s}}},methods:{switchClick(){this.$emit("update:modelValue",!this.modelValue),this.$nextTick(()=>{this.setColor()})},setColor(){this.$nextTick(()=>{if(this.activeColor||this.inactiveColor){let s=this.modelValue?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=s,this.$refs.core.style.backgroundColor=s}this.$refs.input.checked=this.modelValue})}}}),zg=s=>(i.pushScopeId("data-v-ca60242b"),s=s(),i.popScopeId(),s),Zg={class:"x_switch_core",ref:"core"},Xg=[zg(()=>i.createElementVNode("span",{class:"x_switch_btn"},null,-1))],_g=["name"];function qg(s,a,c,r,p,g){return i.openBlock(),i.createElementBlock("div",{onClick:a[0]||(a[0]=(...f)=>s.switchClick&&s.switchClick(...f)),class:i.normalizeClass(["x_switch",{"x-switch-checked":s.modelValue}])},[i.createElementVNode("span",Zg,Xg,512),i.createElementVNode("input",{type:"checkbox",class:"x-switch-input",name:s.name,ref:"input"},null,8,_g)],2)}const $g=es(Wg,[["render",qg],["__scopeId","data-v-ca60242b"]]),ef=Zt({name:"dcLoading"}),tf={role:"dialog",tabindex:"0",class:"dc-loading"},sf=[i.createStaticVNode('<div class="dc-loading-section" data-v-789cc72a><div class="dc-loading-spinner" aria-live="polite" aria-busy="true" data-v-789cc72a><span data-v-789cc72a><i class="dc-loading-line dc-loading-line-1" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-2" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-3" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-4" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-5" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-6" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-7" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-8" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-9" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-10" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-11" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-12" data-v-789cc72a></i></span></div><div class="dc-loading-text" data-v-789cc72a>\u52A0\u8F7D\u4E2D...</div></div>',1)];function nf(s,a,c,r,p,g){return i.openBlock(),i.createElementBlock("div",tf,sf)}const of=Zt({components:{checked:Hg,dcSwitch:$g,dcLoading:es(ef,[["render",nf],["__scopeId","data-v-789cc72a"]])},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:""},deptCodeArray:{type:Array,default:()=>[]},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((s,a)=>{s(!0)})}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1,activeOrgType:0}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,a){if(!s)return!1;b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(s,a){let c=[];const r=this.checkedJson.map(p=>{const g=this.entityJson.findIndex(f=>f.id===p.id&&p.type==f.type&&p.type==2)>-1?s&&p.type==2?"4":p.type:p.orgRecordsType;return(g==4||p.type==1)&&c.push(p.id),{...p,orgRecordsType:g}});this.checkedJson=r.filter(p=>p.ancestors.split(",").findIndex(g=>c.indexOf(g)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(s,a){b(this.businessId)&&this.getCards()}}},computed:{queryImg(){return ug},entityJson(){const s=this.checkedJson;return this.jsonData.map(a=>{const c=b(a.ancestors)?"":a.ancestors,r=b(a.ancestorNames)?"":a.ancestorNames,p=c+a.id+"__"+a.type,g=s.find(V=>V.uniqueId===p),f=!b(g),B=f?!1:s.findIndex(V=>V.id===a.id&&a.subjectId===V.subjectId)>-1,N=f?a.type==1||g.orgRecordsType==4:!1,y=b(s)?0:N?a.counts:s.filter(V=>V.type!=1&&V.ancestors.indexOf(a.id)>-1).length,T=f?g.isNoDelete:!1,I=this.isNotLevel?!1:this.isDeptOne&&a.type==2?a.deptCounts>0:a.counts>0;return{type:a.type,id:a.id,name:a.name,counts:b(a.counts)?0:a.counts,num:y,phone:gg(a.phone),uid:a.uid,iconName:tn(a.name,2),checked:f,ancestors:c,ancestorNames:r,deptName:fg(a.ancestorNames,"/",this.activeOrgType==0?"last":"find"),deptId:b(a.deptId)?"":a.deptId,uniqueId:p,isDisabled:B,isLevel:N,subjectId:a.subjectId,sex:a.sex,avatar:b(a.avatar)?"":a.avatar,isNoDelete:T,showLevel:I}})},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(g=>g.type==1).length,a=this.checkedJson.filter(g=>g.type==2).length,c=this.checkedJson.filter(g=>g.type==3||g.type==6).length,r=this.checkedJson.filter(g=>g.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"),b(p)?"":"\u5DF2\u9009\u62E9"+p.join("\uFF0C")},breadcrumb_subjectId(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return b(s)?"":s[0].value},breadcrumb_level(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return{ancestors:s.map(a=>a.value).join(","),ancestorNames:s.map(a=>a.name).join("/")}},isDept(){return this.jsonData.findIndex(s=>s.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(s=>s==1||s==5)>-1},isShowDept(){return this.codeType.findIndex(s=>s==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isDeptOne(){return this.isShowDept&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(s=>s==3||s==6)>-1},getHight(){let s=349;return this.isDept||(s-=55),this.isAll||(s-=59),this.isShowQuery||(s-=55),this.orgType.length<2&&(s-=45),`calc(100% - ${s}px)`},getSearchHight(){let s=240;return this.isAll||(s-=59),this.orgType.length<2&&(s-=45),this.isShowQuery||(s-=55),`calc(100% - ${s}px)`},getTitle(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":this.codeType.length==1&&this.codeType[0]==5?"\u9009\u62E9\u7FA4\u7EC4":"\u9009\u62E9\u7EC4\u7EC7"},isAll(){return this.multiple?this.isShowSubject?this.isShowDept?!0:this.entityJson.findIndex(s=>s.type!=2)>-1:this.entityJson.findIndex(s=>s.type!=1)>-1:!1},isNoDelete(){return b(this.checkedArray)?[]:this.checkedArray.filter(s=>s.isDeleteNo)},isOrgType(){return!!(b(this.orgType)||this.orgType.findIndex(s=>s===0)>-1)},isOrgGroup(){return this.orgType.findIndex(s=>s===1)>-1},isGroup(){return this.orgType.findIndex(s=>s===2)>-1},showType(){const s=(a,c)=>a.findIndex(r=>r==c)>-1;if(s([0],this.activeOrgType))return s(this.codeType,3)?3:s(this.codeType,2)?2:s(this.codeType,1)?1:-1;if(s([1,2],this.activeOrgType))return s(this.codeType,6)?6:s(this.codeType,5)?5:-1},deptIds(){return b(this.deptCodeArray)?b(this.deptCode)?[]:[this.deptCode]:this.deptCodeArray}},mounted(){this.isTitle&&(document.title=this.getTitle),b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const s=b(this.checkedJson)?[]:this.checkedJson.map(c=>({type:c.orgRecordsType,id:c.id,name:c.name,ancestors:c.ancestors,ancestorNames:c.ancestorNames,subjectId:c.subjectId,phone:b(c.phone)?"":c.phone,sex:c.sex,avatar:c.avatar,deptId:b(c.deptId)?"":c.deptId,uid:b(c.uid)?"":c.uid}));if(b(this.businessId))return this.$emit("callback",s);const a={businessId:this.businessId,orgRecords:this.checkedJson.map(c=>({type:c.orgRecordsType,bizId:c.id,ancestors:c.ancestors,ancestorNames:c.ancestorNames,uid:c.uid}))};this.isLoading=!0,this.businessCallack(s).then(c=>{c&&this.request.post("/auth/component/org/save",a).then(r=>{r.code===200&&this.$emit("callback",s)}).finally(()=>{this.isLoading=!1})}).catch(c=>{this.isLoading=!1})},handleBreadcrumb(s,a){if(s.disable||a+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=a===0?this.deptCode:a===1&&b(this.deptCode)?0:s.value,this.itemId="",this.subjectId=s.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:case 2:this.itemId=b(this.itemCode)?s.value==="-1"?"":s.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((c,r)=>r<a+1)})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){switch(this.breadcrumb=[],this.activeOrgType){case 0:this.itemId="",this.deptId=this.deptCode,this.subjectId=this.subjectCode;break;case 1:case 2:this.deptId="",this.subjectId="";break}this.getSearch(()=>{this.isQuery=b(this.keyword)})},handleOrgType(s){this.activeOrgType=s,this.keyword="",this.itemId="",this.handleQuery()},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(f=>f.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,g={...a,ancestors:c,ancestorNames:r,orgRecordsType:p};return(a.type==1||p==4)&&(this.checkedJson=this.checkedJson.filter(f=>f.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 nn().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(g):this.checkedJson=[g],!1)}this.checkedJson=this.checkedJson.filter(c=>c.uniqueId!==a.uniqueId)},handleLevel(s){if(s.isDisabled||s.isLevel)return!1;switch(s.type){case"1":this.deptId="",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="",this.subjectId="",this.itemId=s.id,this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break}},handleChecked(s,a){this.$refs.checkedDp.init(s,a)},handleCallback(s){this.checkedJson=s},getBoolChecked(s){if(s.type!=3)return!1;const a=s.ancestors.split(","),c=this.checkedJson.filter(p=>p.type==2||p.type==1).find(p=>a.indexOf(p.id)>-1);let r=!1;return b(c)||(c.type==1&&(new nn().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 nn().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.isGroup?2:"",this.breadcrumb=[],this.defaultBreadcrumb()},defaultGet(){this.defaultData(),b(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const s=this.entityJson.filter(c=>c.type==2),a=this.checkedJson.filter(c=>c.type==2);this.isSon=a.findIndex(c=>s.findIndex(r=>r.id===c.id&&c.orgRecordsType==4)>-1)>-1},getCheckedAll(){const s=b(this.entityJson)?0: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,deptIds:this.deptIds.join(",")};b(a.deptId)&&delete a.deptId,b(a.subjectId)&&delete a.subjectId,(b(a.deptIds)||!b(a.deptId))&&delete a.deptIds,this.isLoading||(this.isLoading=!0),this.request.get("/auth/component/org/search",{params:a}).then(c=>{this.jsonData=b(c.data)||c.code!==200?[]:c.data,this.defaultBreadcrumb(b(this.jsonData)?"":c.data[0]),s(),this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},defaultBreadcrumb(s){if(!b(this.breadcrumb))return!1;let a="";switch(this.activeOrgType){case 0:a="\u7EC4\u7EC7";break;case 1:a="\u7FA4\u7EC4";break;case 2:a="\u516C\u5171\u7FA4\u7EC4";break}if(this.breadcrumb=[{name:a,value:"-1"}],b(s)||this.activeOrgType===0&&(b(this.deptCode)||b(this.subjectName))||[1,2].indexOf(this.activeOrgType)>-1&&b(this.itemCode))return!1;let c=s.ancestors.split(",");b(this.itemCode)||c.pop(),this.breadcrumb=c.map((r,p)=>({value:r,name:s.ancestorNames.split("/")[p],disable:p!==array.length-1&&array.length!==0}))},getDetail(s=()=>{}){if(b(this.businessId))return s(),!1;const a={businessId:this.businessId};this.isLoading||(this.isLoading=!0),this.request.get("/auth/component/org/detail",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(r=>{const p=r.type==4?"2":r.type,g=r.type==1?"":r.ancestors,f=g+r.bizId+"__"+p,B=this.isNoDelete.findIndex(N=>N.id===r.id||N.uid===r.uid)>-1;return{...r,ancestors:g,id:r.bizId,type:p,uniqueId:f,orgRecordsType:r.type,iconName:tn(r.name,2),sex:r.sex,uid:b(r.uid)?"":r.uid,avatar:b(r.avatar)?"":r.avatar,deptId:b(r.deptId)?"":r.deptId,isNoDelete:B}}),s()})},getCards(s=()=>{}){if(b(this.checkedArray))return s(),this.checkedJson=[];const a=this.checkedArray.map(c=>({type:c.type,id:b(c.id)?null:c.id,uid:b(c.uid)?null:c.uid,subjectId:b(c.subjectId)?null:c.subjectId,deptId:b(c.deptId)?null:c.deptId,itemId:b(c.itemId)?null:c.itemId,orgIds:b(this.orgType)?[0]:this.orgType}));this.isLoading||(this.isLoading=!0),this.request.post("/auth/component/org/cards",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(r=>{const p=r.type==4?"2":r.type,g=r.type==1?"":r.ancestors,f=r.type==1?"":r.ancestorNames,B=g+r.id+"__"+p,N=this.isNoDelete.findIndex(y=>y.id===r.id||y.uid===r.uid)>-1;return{...r,ancestors:g,ancestorNames:f,id:r.id,type:p,uniqueId:B,orgRecordsType:r.type,iconName:tn(r.name,2),sex:r.sex,uid:b(r.uid)?"":r.uid,avatar:b(r.avatar)?"":r.avatar,deptId:b(r.deptId)?"":r.deptId,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())})}}}),af={class:"departPerson-main"},lf={class:"deper-top"},cf={key:0,class:"deper-nav"},df={class:"deper-query"},rf=i.createElementVNode("i",{class:"icon-chaxun iconfont chaxun"},null,-1),pf={key:1,class:"deper-breadcrumb"},hf=["onClick"],mf=i.createElementVNode("i",{class:"icon-jiantouyou iconfont"},null,-1),uf={key:2,class:"deper-all"},gf=i.createElementVNode("label",{class:"label",for:"deper-all"},"\u5168\u9009",-1),ff={key:0,class:"deper-c-depart"},Af=["disabled","onUpdate:modelValue","onChange"],kf={class:"depart-name"},yf={class:"name"},Cf={key:0,class:"number"},Ef={class:"label"},Bf={key:1,class:"number"},If=["onClick"],Nf=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],bf={key:1,class:"deper-c-depart"},Tf=["disabled","onUpdate:modelValue","onChange"],wf={class:"depart-name"},vf={class:"name"},Vf={key:0,class:"number"},Sf={class:"label"},Df={key:1,class:"number"},Qf=["onClick"],Of=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],Mf={key:2,class:"deper-c-user"},xf=["disabled","onUpdate:modelValue","onChange"],Ff={class:"user-icon"},Lf={key:0},Pf=["src"],Uf={class:"user-name"},Jf={class:"span"},Gf={class:"phone"},Rf={class:"deper-search-section"},jf={class:"search-user"},Kf=i.createElementVNode("div",{class:"search-title"},"\u641C\u7D22\u7ED3\u679C",-1),Yf=["onUpdate:modelValue","disabled","onChange"],Hf={class:"user-icon"},Wf={key:0},zf=["src"],Zf={class:"user-name"},Xf={class:"span"},_f={class:"phone"},qf={class:"txt"},$f={key:2,class:"deper-son"},eA=i.createElementVNode("span",null,"\u5305\u542B\u5B50\u7EA7",-1),tA={class:"deper-bottom"},sA={key:0,class:"icon-jiantouyou iconfont"};function nA(s,a,c,r,p,g){const f=i.resolveComponent("dc-switch"),B=i.resolveComponent("checked"),N=i.resolveComponent("dcLoading");return i.openBlock(),i.createElementBlock("main",af,[i.createElementVNode("div",lf,[s.orgType.length>1?(i.openBlock(),i.createElementBlock("div",cf,[s.isOrgType?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:a[0]||(a[0]=y=>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]=y=>s.handleOrgType(1)),class:i.normalizeClass([{active:s.activeOrgType===1},"deper-n-item"])},"\u7FA4\u7EC4",2)):i.createCommentVNode("",!0),s.isGroup?(i.openBlock(),i.createElementBlock("div",{key:2,onClick:a[2]||(a[2]=y=>s.handleOrgType(2)),class:i.normalizeClass([{active:s.activeOrgType===2},"deper-n-item"])},"\u516C\u5171\u7FA4\u7EC4",2)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",df,[i.createElementVNode("form",{class:"form",onSubmit:a[6]||(a[6]=i.withModifiers(()=>{},["prevent"])),action:"javascript: void(0);"},[rf,i.withDirectives(i.createElementVNode("input",{class:"input",onKeyup:a[3]||(a[3]=i.withKeys((...y)=>s.handleQuery&&s.handleQuery(...y),["enter"])),"onUpdate:modelValue":a[4]||(a[4]=y=>s.keyword=y),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[5]||(a[5]=(...y)=>s.handleEmpty&&s.handleEmpty(...y)),class:"icon-error-fill iconfont close"})):i.createCommentVNode("",!0)],32)],512),[[i.vShow,s.isShowQuery]]),s.isQuery?(i.openBlock(),i.createElementBlock("div",pf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.breadcrumb,(y,T)=>(i.openBlock(),i.createElementBlock("div",{onClick:I=>s.handleBreadcrumb(y,T),key:y.value,class:i.normalizeClass([{disable:y.disable},"deper-b-item"])},[i.createElementVNode("span",null,i.toDisplayString(y.name),1),mf],10,hf))),128))])):i.createCommentVNode("",!0),s.isAll?(i.openBlock(),i.createElementBlock("div",uf,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[7]||(a[7]=y=>s.checkedAll=y),onChange:a[8]||(a[8]=(...y)=>s.handleAllCheckbox&&s.handleAllCheckbox(...y)),class:"deper-checkbox",type:"checkbox",name:"deper-all",id:"deper-all"},null,544),[[i.vModelCheckbox,s.checkedAll]]),gf])):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",ff,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,y=>(i.openBlock(),i.createElementBlock("div",{key:y.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{width:s.isNotLevel,isNoDelete:y.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:y.isDisabled||y.isNoDelete,"onUpdate:modelValue":T=>y.checked=T,onChange:T=>s.handleCheckbox(T,y),class:"deper-checkbox",type:"checkbox"},null,40,Af),[[i.vShow,s.isShowSubject],[i.vModelCheckbox,y.checked]]),i.createElementVNode("div",kf,[i.createElementVNode("div",yf,i.toDisplayString(y.name),1),y.num>0?(i.openBlock(),i.createElementBlock("div",Cf,[i.createTextVNode("("),i.createElementVNode("label",Ef,i.toDisplayString(y.num)+"/"+i.toDisplayString(y.counts),1),i.createTextVNode(")")])):y.counts>0?(i.openBlock(),i.createElementBlock("div",Bf,"("+i.toDisplayString(y.counts)+")",1)):i.createCommentVNode("",!0)])],2),y.showLevel?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:T=>s.handleLevel(y),class:i.normalizeClass([{isdisabled:y.isLevel},"depart-right"])},Nf,10,If)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.deptJson.length>0?(i.openBlock(),i.createElementBlock("div",bf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,y=>(i.openBlock(),i.createElementBlock("div",{key:y.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{isNoDelete:y.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:y.isDisabled||y.isNoDelete,"onUpdate:modelValue":T=>y.checked=T,onChange:T=>s.handleCheckbox(T,y),class:"deper-checkbox",type:"checkbox"},null,40,Tf),[[i.vShow,s.isShowDept],[i.vModelCheckbox,y.checked]]),i.createElementVNode("div",wf,[i.createElementVNode("div",vf,i.toDisplayString(y.name),1),y.num>0?(i.openBlock(),i.createElementBlock("div",Vf,[i.createTextVNode("("),i.createElementVNode("label",Sf,i.toDisplayString(y.num)+"/"+i.toDisplayString(y.counts),1),i.createTextVNode(")")])):y.counts>0?(i.openBlock(),i.createElementBlock("div",Df,"("+i.toDisplayString(y.counts)+")",1)):i.createCommentVNode("",!0)])],2),y.showLevel?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:T=>s.handleLevel(y),class:i.normalizeClass([{isdisabled:y.isLevel},"depart-right"])},Of,10,Qf)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.userJson.length>0?(i.openBlock(),i.createElementBlock("div",Mf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,y=>(i.openBlock(),i.createElementBlock("label",{key:y.uniqueId,class:i.normalizeClass([{isNoDelete:y.isNoDelete},"user-item"])},[i.withDirectives(i.createElementVNode("input",{disabled:y.isDisabled||y.isNoDelete,"onUpdate:modelValue":T=>y.checked=T,onChange:T=>s.handleCheckbox(T,y),class:"deper-checkbox",type:"checkbox"},null,40,xf),[[i.vModelCheckbox,y.checked]]),i.createElementVNode("div",Ff,[y.avatar.length<1?(i.openBlock(),i.createElementBlock("span",Lf,i.toDisplayString(y.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:y.avatar},null,8,Pf))]),i.createElementVNode("div",Uf,[i.createElementVNode("div",Jf,i.toDisplayString(y.name),1),i.createElementVNode("div",Gf,i.toDisplayString(y.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",Rf,[i.createCommentVNode("",!0),i.createElementVNode("div",jf,[Kf,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,y=>(i.openBlock(),i.createElementBlock("label",{key:y.uniqueId,class:"user-item"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":T=>y.checked=T,disabled:y.isDisabled,onChange:T=>s.handleCheckbox(T,y),class:"deper-checkbox",type:"checkbox"},null,40,Yf),[[i.vModelCheckbox,y.checked]]),i.createElementVNode("div",Hf,[y.avatar.length<1?(i.openBlock(),i.createElementBlock("span",Wf,i.toDisplayString(y.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:y.avatar},null,8,zf))]),i.createElementVNode("div",Zf,[i.createElementVNode("div",Xf,i.toDisplayString(y.name),1),i.createElementVNode("div",_f,i.toDisplayString(y.phone),1),i.createElementVNode("div",qf,i.toDisplayString(y.ancestorNames),1)])]))),128))])])],4)),s.isDept?(i.openBlock(),i.createElementBlock("div",$f,[eA,i.createVNode(f,{modelValue:s.isSon,name:"isSone"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",tA,[i.createElementVNode("div",{onClick:a[9]||(a[9]=y=>s.handleChecked(!0,s.checkedJson)),class:"deper-b-checked"},[i.createElementVNode("span",null,i.toDisplayString(s.checkedNumber),1),s.checkedNumber.length>0?(i.openBlock(),i.createElementBlock("i",sA)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{onClick:a[10]||(a[10]=(...y)=>s.handleSubmit&&s.handleSubmit(...y)),class:"deper-b-btn"},"\u786E\u5B9A")]),i.createVNode(B,{ref:"checkedDp",onCallback:s.handleCallback},{user:i.withCtx(({item:y})=>[i.renderSlot(s.$slots,"checkedUser",{item:y})]),_:3},8,["onCallback"]),s.isLoading?(i.openBlock(),i.createBlock(N,{key:3})):i.createCommentVNode("",!0)])}const oA=es(of,[["render",nA]]);o.departPerson=oA,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(he,he.exports);const zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpA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StfG/AxDBADC+8g5ABPXXMAVABFUFIBvEZN69EAxLkSkAUiTfr40BCAARTCd/pgAIAPGX1YIeAZANYgZKe3G+CMpc11SkayLsuRIRHYCIyOjFyODFkS1+HGX7B0CyJXPbYH4ZurlDmRsE9tHYACRXar/Xcx6K9aIGANkQKexJyk7fISzovPR9iOxeKzQAIABEJM28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",Zc=re({name:"TopSubmitPopup",components:{TopPopup:$,TopDownSelect:co,PreviewImage:ws,departPerson:he.exports.departPerson,TopTips:pe},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),e?this.handleOption():this.$refs.TopDownSelect.handleClose()}},show:{handler(e,n){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,n){this.businessTypeData=e},immediate:!0},id:{handler(e,n){e&&(this.idData=e,this.getProcessInstance())},immediate:!0},processName:{handler(e,n){this.processNameData=e},immediate:!0},title:{handler(e,n){this.titleData=e},immediate:!0},todoParameter:{handler(e,n){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,n){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())},immediate:!0,deep:!0},resubmit:{handler(e,n){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return zc}},methods:{handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){this.checkedItem={},this.firstPerson=[],this.personList=[],!(this.selfList&&this.selfList.length)&&(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,e.data&&e.data.length?(this.handleTips("",!0,"success"),this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl()):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]))}))},async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id,this.processId&&this.option.map((n,o)=>{n.id===e.data.processDefId&&(this.checkedItem=n,this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())}))})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(n=>{n.code===200?(this.firstPerson=n.data,this.getAfferentParticipantNodeList()):(this.firstPerson=[],this.getAfferentParticipantNodeList())}).catch(n=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,n){this.handleTips("",!0,"loading"),this.checkedItem={},this.firstPerson=[],this.personList=[],this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl(),this.$emit("change",e,n)},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(this.personList=e.data.filter(n=>!this.firstPerson.some(o=>o.id==n.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:[]},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,o=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((i,l)=>{o.push(i.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:o,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((i,l)=>{n=i.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:n,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({uid:i.uid,type:i.type,deptId:n})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;e.routeTxt.companyIds.map((o,i)=>{n=o.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:n},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:this.handleLastStr(o.ancestors,o.subjectId),subjectName:o.ancestorNames.slice(0,o.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?n.ancestorNames.slice(0,n.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,n){return e.split(",")[e.split(",").length-1]!==n?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&this.firstPerson[0].humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/aws/pis/createAndStart",e).then(n=>{n.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):n.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(o=>{o.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(o.msg,!0,"error"),this.btnLoading=!1)}).catch(o=>{this.handleTips(o.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(n.msg,!0,"error"),this.btnLoading=!1)}).catch(n=>{this.handleTips(n.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips&&this.$refs.topTips.handleOpen()}}}),yA="",Mt=e=>(t.pushScopeId("data-v-113ef106"),e=e(),t.popScopeId(),e),Xc={class:"sumbmitPopup-select"},_c=Mt(()=>t.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"}," \u5F53\u524D\u6D41\u7A0B ",-1)),qc={class:"sumbmitPopup-select-viewTrack"},$c=["src"],ed={key:0,class:"person-views"},td=Mt(()=>t.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),sd={class:"views-items"},nd={class:"views-items-name"},od=Mt(()=>t.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),id={class:"views-items-set"},ad={key:0},ld={key:0},cd={key:1},dd={key:2},rd=["onClick"],pd={key:1,class:"person-views"},hd=Mt(()=>t.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),md={class:"views-items"},ud={class:"views-items-name"},gd={class:"views-items-set"},fd=["onClick"],Ad={key:0},kd={key:0},yd={key:1},Cd={key:2,class:"person-views-white"},Ed={style:{height:"100%"}};function Bd(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),A=t.resolveComponent("TopPopup"),k=t.resolveComponent("departPerson"),C=t.resolveComponent("PreviewImage"),u=t.resolveComponent("TopTips");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(A,{visible:e.show,"onUpdate:visible":n[2]||(n[2]=h=>(e.show=h,e.$emit("update:visible",h))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index sumbmitPopup-index-sumbit",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:t.withCtx(()=>[t.createVNode(m,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:e.resubmit},{header:t.withCtx(h=>[t.createElementVNode("div",Xc,[t.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:n[0]||(n[0]=(...E)=>e.handleSelect&&e.handleSelect(...E))},[_c,t.createElementVNode("div",{class:t.normalizeClass(["sumbmitPopup-select-checked-node",e.resubmit?"sumbmitPopup-select-checked-node--noafter":""])},t.toDisplayString(h.data.name?h.data.name:h.data.placeholder),3)]),t.createElementVNode("div",qc,[e.checkedItem.id?(t.openBlock(),t.createElementBlock("div",{key:0,class:"viewTrack",onClick:n[1]||(n[1]=E=>e.taskurlshow=!0)},[t.createElementVNode("img",{src:e.ProcessImg},null,8,$c),t.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ")])):t.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.firstPerson&&e.firstPerson.length?(t.openBlock(),t.createElementBlock("div",ed,[td,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.firstPerson,(h,E)=>(t.openBlock(),t.createElementBlock("div",sd,[t.createElementVNode("div",nd,[t.createTextVNode(t.toDisplayString(h.name)+" ",1),od]),t.createElementVNode("div",id,[e.partNode[h.id]&&e.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[h.id],(w,S)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(S>=3?"":S==0?w:`,${w}`),1))),256)),e.partNode[h.id].length>3?(t.openBlock(),t.createElementBlock("span",ld,"...\u7B49"+t.toDisplayString(e.partNode[h.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):h.routeTxt&&h.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",cd,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",dd)):(t.openBlock(),t.createElementBlock("div",{key:3,class:"views-items-set-btn",onClick:w=>e.handleOpenPerson(h)}," \u8BBE\u7F6E ",8,rd))])]))),256))])):t.createCommentVNode("",!0),e.personList&&e.personList.length?(t.openBlock(),t.createElementBlock("div",pd,[hd,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.personList,(h,E)=>(t.openBlock(),t.createElementBlock("div",md,[t.createElementVNode("div",ud,t.toDisplayString(h.name),1),t.createElementVNode("div",gd,[t.createElementVNode("div",{class:"views-items-set-btn",onClick:w=>e.handleOpenPerson(h)}," \u8BBE\u7F6E ",8,fd),e.partNode[h.id]&&e.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[h.id],(w,S)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(S>=3?"":S==0?w:`,${w}`),1))),256)),e.partNode[h.id].length>3?(t.openBlock(),t.createElementBlock("span",kd,"...\u7B49"+t.toDisplayString(e.partNode[h.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",yd))])]))),256))])):t.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(t.openBlock(),t.createElementBlock("div",Cd," \u65E0\u9700\u8BBE\u7F6E ")):t.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),t.createVNode(A,{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.createElementVNode("div",Ed,[e.visiblePerson?(t.openBlock(),t.createBlock(k,t.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),t.createVNode(C,{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(u,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const ro=U(Zc,[["render",Bd],["__scopeId","data-v-113ef106"]]),Id="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXR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PGwL5JWbgUqHwSQzJKJDfpvQ3wP0vgP1/1P0sJQ2Qwxu6psvDi1RVZ266xgOZqBecneTkFrVAlGYLepaijhn5KjQXed+cq21wgNhYbSmMB39Tg7sBwy55rLJDKpKJWOJU32eE6wwUaztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Nd=re({name:"attchViews",components:{TopTips:pe,PreviewImage:ws,PreView:qn,TopPopup:$},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,n){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return Id},del(){return $n},doc(){return eo},file(){return to},image(){return so},pdf(){return no},xls(){return oo},zip(){return io}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const o=Array.from(e.target.files);document.getElementById("fileUp").value="";let i=0,l=this.haveCount>o.length?o.length:this.haveCount;try{for(let d=0;d<l;d++)if(this.extension.includes(o[d].name.substring(o[d].name.lastIndexOf(".")+1))){const m=new FormData;m.append("file",o[d]);const A=await this.request.post("/file/upload",m,{headers:{"Content-Type":"multipart/form-data"}});if(A.code===200){if(this.filesArr.length>0){for(let k=0;k<this.filesArr.length;k++)if(A.originFileName==this.filesArr[k].originFileName&&i++,this.filesArr[k].originFileName.includes(`(${i})`)&&i++,i>0){let C=A.originFileName.lastIndexOf(".");A.originFileName=`${A.originFileName.substring(0,C)} (${i}) .${A.originFileName.substring(A.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(A.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).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((n,o)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())),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()}}}),CA="",bd={class:"attch-upload"},Td={key:0,class:"attch-upload-mask"},wd={class:"attch-upload-body"},vd={class:"upload-header"},Vd={class:"upload-header-title"},Sd={key:0,class:"upload-header-title--re"},Dd={class:"upload-header-upload"},Qd=["src"],Od={class:"upload-body"},Md={key:0,class:"upload-list"},xd={class:"list-items-icon"},Fd=["src"],Ld=["src"],Pd=["src"],Ud=["src"],Jd=["src"],Gd=["src"],Rd={class:"list-items-info"},jd={class:"info-name"},Kd={class:"info-attribute"},Yd={class:"info-attribute-size"},Hd=["onClick"],Wd={key:0,class:"list-items-operation"},zd=["onClick"],Zd=["src"];function Xd(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("PreviewImage"),k=t.resolveComponent("PreView"),C=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",bd,[e.buttonLoading?(t.openBlock(),t.createElementBlock("div",Td)):t.createCommentVNode("",!0),t.createElementVNode("div",wd,[t.createElementVNode("div",vd,[t.createElementVNode("div",Vd,[t.createTextVNode(" \u9644\u4EF6 "),e.requires?(t.openBlock(),t.createElementBlock("span",Sd,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Dd,[e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[t.createElementVNode("img",{src:e.addFile},null,8,Qd),t.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),t.createElementVNode("div",Od,[e.filesArr.length>0?(t.openBlock(),t.createElementBlock("div",Md,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filesArr,(u,h)=>(t.openBlock(),t.createElementBlock("div",{class:"list-items",key:u.uuid},[t.createElementVNode("div",xd,[e.xlsIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Fd)):e.imgIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(t.openBlock(),t.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Ld)):u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Pd)):e.docIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(t.openBlock(),t.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Ud)):e.zipIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(t.openBlock(),t.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Jd)):(t.openBlock(),t.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Gd))]),t.createElementVNode("div",Rd,[t.createElementVNode("div",jd,t.toDisplayString(u.originFileName),1),t.createElementVNode("div",Kd,[t.createElementVNode("span",Yd,t.toDisplayString(u.fileSize<1024?u.fileSize:u.fileSize/1024>1024?parseFloat((u.fileSize/1024/1024).toFixed(2)):parseFloat((u.fileSize/1024).toFixed(2)))+t.toDisplayString(u.fileSize<1024?"b":parseFloat((u.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),t.createElementVNode("span",{class:"info-attribute-views",onClick:E=>e.viewFile(u,h)}," \u9884\u89C8 ",8,Hd)])]),e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Wd,[t.createElementVNode("div",{onClick:E=>e.handleDel(h,u),class:"list-items-operation-img"},[t.createElementVNode("img",{src:e.del},null,8,Zd)],8,zd)]))]))),128))])):t.createCommentVNode("",!0)])]),t.createVNode(m,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{images:e.lists,visible:e.visible,"onUpdate:visible":n[1]||(n[1]=u=>e.visible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),t.createVNode(C,{visible:e.visibleS,"onUpdate:visible":n[2]||(n[2]=u=>e.visibleS=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[e.visibleS?(t.openBlock(),t.createBlock(k,{key:0,file:e.fileUrl},null,8,["file"])):t.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Je=U(Nd,[["render",Xd],["__scopeId","data-v-73da35c4"]]),_d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c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:{TopPopup:$},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return _d}},watch:{visible:{handler(e,n){e&&this.request.get("/auth/user/opinion/my").then(o=>{o.code===200&&(this.listData=o.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(n=>{n.code===200&&(this.listData=n.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},$d={key:0,class:"top-msg"},er=["onClick"],tr={class:"top-msg-items-text"},sr=["onClick"],nr=["src"];function or(e,n,o,i,l,d){const m=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",null,[o.visible?(t.openBlock(),t.createElementBlock("div",$d,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.listData,A=>(t.openBlock(),t.createElementBlock("div",{class:"top-msg-items",onClick:k=>d.handleMsg(A)},[t.createElementVNode("div",tr,t.toDisplayString(A.opinionName),1),t.createElementVNode("div",{class:"top-msg-items-del",onClick:t.withModifiers(k=>d.handleOpenMsg(A),["stop"])},[t.createElementVNode("img",{src:d.Del},null,8,nr)],8,sr)],8,er))),256))])):t.createCommentVNode("",!0),t.createVNode(m,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${l.opinion.opinionName}'\u5220\u9664`,cancel:d.handleTipsCancel,comfig:d.handleDel,visible:l.visibleListMsg,"onUpdate:visible":n[0]||(n[0]=A=>l.visibleListMsg=A)},null,8,["context","cancel","comfig","visible"])])}const rt=U(qd,[["render",or],["__scopeId","data-v-87fc3e49"]]),BA="",ir={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,MsgList:rt},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/createDynamicTask",{title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,participant:e,processInstId:this.param.processInstId,adHocType:2,parentTaskInstId:this.param.taskInstId,reason:this.commentMsg}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},pt=e=>(t.pushScopeId("data-v-7c557bcb"),e=e(),t.popScopeId(),e),ar={class:"process-popup-content"},lr={class:"process-popup-content-msg"},cr={key:0},dr=pt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),rr={class:"process-pc-value"},pr={class:"process-popup-textarea"},hr={class:"process-popup-textarea-num"},mr={key:0,class:"msg-btn"},ur={key:0,class:"process-popup-content-person"},gr=pt(()=>t.createElementVNode("div",null,[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),fr=["onClick"],Ar={class:"process-pc-value--people"},kr={key:0,class:"process-pc-value--data"},yr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Cr=[pt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Er=pt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Br=["onClick"],Ir={class:"process-pc-value--people"},Nr={key:0,class:"process-pc-value--data"},br={key:1,class:"process-pc-value--data",style:{color:"#888"}},Tr=[pt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],wr={style:{height:"100%"}};function vr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),u=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",ar,[t.createElementVNode("div",lr,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",cr,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=h=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),dr,t.createElementVNode("div",rr,[t.createElementVNode("div",pr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",hr,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=h=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock("div",ur,[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[gr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Ar,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",kr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(E,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",yr,Cr))])],8,fr)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Er,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Ir,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Nr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(E,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",br,Tr))])],8,Br)],64))),256)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",wr,[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),l.labels=="5"?(t.openBlock(),t.createBlock(C,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(k,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=h=>l.visibleListMsg=h),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(u,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(k,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=h=>l.visibleMsgComfig=h)},null,8,["context","cancel","comfig","visible"])])}const Vr=U(ir,[["render",vr],["__scopeId","data-v-7c557bcb"]]),bA="",Sr={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,MsgList:rt},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},ht=e=>(t.pushScopeId("data-v-da729aaf"),e=e(),t.popScopeId(),e),Dr={class:"process-popup-content"},Qr={class:"process-popup-content-msg"},Or={key:0},Mr=ht(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),xr={class:"process-pc-value"},Fr={class:"process-popup-textarea"},Lr={class:"process-popup-textarea-num"},Pr={key:0,class:"msg-btn"},Ur={key:0,class:"process-popup-content-person"},Jr=ht(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Gr=["onClick"],Rr={class:"process-pc-value--people"},jr={key:0,class:"process-pc-value--data"},Kr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Yr=[ht(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Hr=ht(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Wr=["onClick"],zr={class:"process-pc-value--people"},Zr={key:0,class:"process-pc-value--data"},Xr={key:1,class:"process-pc-value--data",style:{color:"#888"}},_r=[ht(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],qr={style:{height:"100%"}};function $r(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),u=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",Dr,[t.createElementVNode("div",Qr,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Or,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=h=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Mr,t.createElementVNode("div",xr,[t.createElementVNode("div",Fr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",Lr,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Pr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=h=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock("div",Ur,[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Jr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",Rr,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",jr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(E,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Kr,Yr))])],8,Gr)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[Hr,t.createElementVNode("div",{class:"process-pc-value",onClick:E=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",zr,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Zr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(E,w)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(w==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Xr,_r))])],8,Wr)],64))),256)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",qr,[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(C,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(k,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=h=>l.visibleListMsg=h),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(u,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(k,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=h=>l.visibleMsgComfig=h)},null,8,["context","cancel","comfig","visible"])])}const ep=U(Sr,[["render",$r],["__scopeId","data-v-da729aaf"]]),tp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARB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ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",vA="",VA="",sp={name:"TreeNode",components:{TopPopup:$,TopTips:pe,departPerson:he.exports.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,n){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onVars",this.gateVars),this.nodeType=="outing"?this.nodeItems=JSON.parse(JSON.stringify(e)):this.nodeType=="nexting"&&e.forEach(o=>{o.userTaskModelDTO.participantList&&o.userTaskModelDTO.participantList.length&&o.userTaskModelDTO.participantList.map(i=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(i.id)||this.multiNodeParticipant[o.id].push(i.id),this.partNode[o.id].includes(i.name)||this.partNode[o.id].push(i.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(i=>{i.code==200&&(this.personMakeList=i.data)}),this.nodeItems=JSON.parse(JSON.stringify(e))}))},immediate:!0,deep:!0}},computed:{check(){return vs}},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.gateVars={}},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"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e))},handleNode(e){let n=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];n&&n.length&&n.forEach((o,i)=>{o.participantList&&o.participantList.length?o.participantList.forEach((l,d)=>{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.id&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[o.id]}).then(l=>{l.code==200&&(this.partNode[o.id]={},this.partNode[o.id]=l.data[o.id])}),this.nodeType=="outing"&&(!o.incomingConditionItemList||!o.incomingConditionItemList.length?e&&e.length?this.gateVars[e[0].incomingConditionItemList[0].itemName]=e[0].incomingConditionItemList[0].compareValue:this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue:o.incomingConditionItemList[0].itemName&&o.incomingConditionItemList[0].compareValue&&(this.gateVars[o.incomingConditionItemList[0].itemName]=o.incomingConditionItemList[0].compareValue),this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((i,l)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[],i=[];e.routeTxt.departmentIds.forEach((l,d)=>{e.routeTxt.departmentIds.length>1?o.push(l.rangeId):n=l.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((l,d)=>{i.push({type:3,uid:l,deptId:n})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCodeArray:o,checkedArray:i}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:n,checkedArray:i}}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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:n}}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},np=e=>(t.pushScopeId("data-v-f499df5b"),e=e(),t.popScopeId(),e),op={key:0,class:"treenode"},ip={key:0,class:"treenode-multi"},ap={class:"treenode-node",style:{"margin-top":"0"}},lp=["onClick"],cp=["src"],dp=["onClick"],rp=np(()=>t.createElementVNode("span",null,null,-1)),pp={class:"treenode-node"},hp={key:0},mp={key:1,class:"personselect"},up={class:"personselect-name"},gp={class:"items-person"},fp=["onClick"],Ap={key:1,class:"items-person-name"},kp={key:2,class:"items-person-name"},yp={class:"treenode-node"},Cp={key:0},Ep={key:1,class:"personselect"},Bp={class:"personselect-name"},Ip={class:"items-person"},Np=["onClick"],bp={key:1,class:"items-person-name"},Tp={key:2,class:"items-person-name"},wp={key:1,class:"treenode-single"},vp={class:"treenode-single-items"},Vp={class:"personselect"},Sp={class:"personselect-name"},Dp={class:"items-person"},Qp=["onClick"],Op={key:1,class:"items-person-name"},Mp={key:2,class:"items-person-name"},xp={key:3,class:"items-person-name"};function Fp(e,n,o,i,l,d){const m=t.resolveComponent("TreeNode",!0),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("TopTips");return l.nodeItems&&l.nodeItems.length?(t.openBlock(),t.createElementBlock("div",op,[o.endNode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ip,[t.createElementVNode("div",ap,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.nodeItems,u=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[o.checkType=="InclusiveGatewayModel"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["treenode-checkbox",l.checkBoxArr.includes(u.id)?"treenode-checkbox-active":""]),onClick:h=>d.handleCheckBoxClick(u)},[t.createElementVNode("span",null,[l.checkBoxArr.includes(u.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:d.check},null,8,cp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(u.nodeName||u.name),1)],10,lp)):o.checkType=="ExclusiveGatewayModel"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["treenode-radio",l.radioArr==u.id?"treenode-radio-active":""]),onClick:h=>d.handleRadioClick(u)},[rp,t.createTextVNode(" "+t.toDisplayString(u.nodeName||u.name),1)],10,dp)):t.createCommentVNode("",!0)],64))),256))]),o.checkType=="InclusiveGatewayModel"&&l.checkBoxItem&&l.checkBoxItem.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.checkBoxItem,u=>(t.openBlock(),t.createElementBlock("div",pp,[u.childNode&&u.childNode.length?(t.openBlock(),t.createElementBlock("div",hp,[t.createVNode(m,{items:u.childNode,endNode:u.childNode.length==1,nodeType:o.nodeType,param:o.param,checkType:u.type,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(t.openBlock(),t.createElementBlock("div",mp,[t.createElementVNode("div",up,t.toDisplayString(u.nodeName||u.name),1),t.createElementVNode("div",gp,[u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"items-person-set",onClick:t.withModifiers(h=>d.handleOpenPopup(u),["stop"])}," \u8BBE\u7F6E ",8,fp)):t.createCommentVNode("",!0),u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",Ap,t.toDisplayString(l.partNode[u.id]?l.partNode[u.id].join(","):""),1)):u.routeTxt&&u.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",kp,t.toDisplayString(u.routeTxt.userNames),1)):t.createCommentVNode("",!0)])]))]))),256)):t.createCommentVNode("",!0),o.checkType=="ExclusiveGatewayModel"&&l.radioItem&&l.radioItem.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.radioItem,u=>(t.openBlock(),t.createElementBlock("div",yp,[u.childNode&&u.childNode.length?(t.openBlock(),t.createElementBlock("div",Cp,[t.createVNode(m,{items:u.childNode,endNode:u.childNode.length==1,nodeType:o.nodeType,param:o.param,checkType:u.type,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(t.openBlock(),t.createElementBlock("div",Ep,[t.createElementVNode("div",Bp,t.toDisplayString(u.nodeName||u.name),1),t.createElementVNode("div",Ip,[u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"items-person-set",onClick:t.withModifiers(h=>d.handleOpenPopup(u),["stop"])}," \u8BBE\u7F6E ",8,Np)):t.createCommentVNode("",!0),u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",bp,t.toDisplayString(l.partNode[u.id]?l.partNode[u.id].join(","):""),1)):u.routeTxt&&u.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",Tp,t.toDisplayString(u.routeTxt.userNames),1)):t.createCommentVNode("",!0)])]))]))),256)):t.createCommentVNode("",!0)])),o.endNode?(t.openBlock(),t.createElementBlock("div",wp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.nodeItems,u=>(t.openBlock(),t.createElementBlock("div",vp,[t.createElementVNode("div",Vp,[t.createElementVNode("div",Sp,t.toDisplayString(u.nodeName||u.name),1),t.createElementVNode("div",Dp,[u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"items-person-set",onClick:t.withModifiers(h=>d.handleOpenPopup(u),["stop"])}," \u8BBE\u7F6E ",8,Qp)):t.createCommentVNode("",!0),l.personMakeList[u.id]?(t.openBlock(),t.createElementBlock("div",Op,t.toDisplayString(l.personMakeList[u.id]),1)):u.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&u.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",Mp,t.toDisplayString(l.partNode[u.id]?l.partNode[u.id].join(","):""),1)):u.routeTxt&&u.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",xp,t.toDisplayString(u.routeTxt.userNames),1)):t.createCommentVNode("",!0)])])]))),256))])):t.createCommentVNode("",!0),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=u=>l.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1},l.entity,{onCallback:d.handleCallback}),null,16,["onCallback"])):t.createCommentVNode("",!0)]),_:1},8,["visible"]),t.createVNode(C,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"])])):t.createCommentVNode("",!0)}const Lp=U(sp,[["render",Fp],["__scopeId","data-v-f499df5b"]]),SA="",Pp={name:"treeperson",components:{TreeNode:Lp},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstType:"",childrenItems:[],childrenEndItems:!1,gateVars:{},multiNode:[],getVars:{}}},watch:{items:{handler(e,n){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(o=>{o={...o,...o.userTaskModelDTO},o.humanPerformerName=o.humanPerformer.name,this.nodeItems.push(o)})):this.nodeType=="outing"&&(this.nodeItems=e))},immediate:!0,deep:!0}},methods:{onMultiNode(e){this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},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"},handleFirstNodeClick(e){if(e){this.firstCheck=e.id,this.firstType=e.type;let n=[e];e.childNode&&e.childNode.length?(this.childrenItems=e.childNode,this.childrenEndItems=!1):(this.childrenItems=[e],this.childrenEndItems=!0),this.nodeType=="outing"&&(this.gateVars={},n.forEach(o=>{this.gateVars[o.incomingConditionItemList[0].itemName]=o.incomingConditionItemList[0].compareValue}))}}}},Vs=e=>(t.pushScopeId("data-v-2a6b462f"),e=e(),t.popScopeId(),e),Up={class:"test"},Jp={key:0},Gp={class:"treeperson"},Rp=Vs(()=>t.createElementVNode("div",{class:"treeperson-title"},[t.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),jp={class:"treeperson-firstnode"},Kp=["onClick"],Yp=Vs(()=>t.createElementVNode("span",null,null,-1)),Hp=Vs(()=>t.createElementVNode("div",{class:"treeperson-title"},[t.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1));function Wp(e,n,o,i,l,d){const m=t.resolveComponent("TreeNode");return t.openBlock(),t.createElementBlock("div",Up,[l.nodeItems&&l.nodeItems.length?(t.openBlock(),t.createElementBlock("div",Jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.nodeItems,A=>(t.openBlock(),t.createElementBlock("div",Gp,[A.childNode&&A.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Rp,o.nodeType=="outing"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(A.childNode,k=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["treeperson-radio",l.firstCheck==k.id?"treeperson-radio-active":""]),onClick:C=>d.handleFirstNodeClick(k)},[Yp,t.createTextVNode(" "+t.toDisplayString(k.nodeName||k.name),1)],10,Kp))),256))]),t.createVNode(m,{items:l.childrenItems,endNode:l.childrenEndItems,nodeType:o.nodeType,param:o.param,checkType:l.firstType,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Hp,o.nodeType=="nexting"?(t.openBlock(),t.createBlock(m,{key:0,items:[A],endNode:l.childrenEndItems,nodeType:o.nodeType,param:o.param,checkType:l.firstType,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])):t.createCommentVNode("",!0)],64))]))),256))])):t.createCommentVNode("",!0)])}const zp=U(Pp,[["render",Wp],["__scopeId","data-v-2a6b462f"]]),DA="",Zp={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,MsgList:rt,TreePerson:zp},computed:{check(){return vs},checkS(){return tp}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:""}},watch:{"param.visible":{handler(e,n){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,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)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,n){e.map((o,i)=>{o.childNode&&o.childNode.length?this.forRadioChild(o.childNode,!0):n&&this.radioCheckChild.push(o)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(n=>{n.participantList&&n.participantList.length?n.participantList.map(o=>{this.multiNodeParticipant[n.id]||(this.multiNodeParticipant[n.id]=[]),this.partNode[n.id]||(this.partNode[n.id]=[]),this.multiNodeParticipant[n.id].includes(o.id)||this.multiNodeParticipant[n.id].push(o.id),this.partNode[n.id].includes(o.name)||this.partNode[n.id].push(o.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[n.id]}).then(o=>{o.code==200&&(this.partNodeS=[],this.partNodeS.push(o.data[n.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((i,l)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[],i=[];e.routeTxt.departmentIds.forEach((l,d)=>{e.routeTxt.departmentIds.length>1?o.push(l.rangeId):n=l.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((l,d)=>{i.push({type:3,uid:l,deptId:n})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCodeArray:o,checkedArray:i}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:n,checkedArray:i}}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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:n}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){if(this.param.ProcessInsObj.processDefId==="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!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={};this.radioCheckNameList&&this.radioCheckNameList.length?this.radioCheckChild[0].type!=="EndEventModel"&&this.radioCheckNameList.map((n,o)=>{(!this.multiNodeParticipant[n]||!this.multiNodeParticipant[n].length)&&this.radioCheckChild.map((i,l)=>{i.id==n&&(i.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||i.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!i.childNode||!i.childNode.length||this.radioCheckNode.map((d,m)=>{!this.multiNodeParticipant[d]||this.multiNodeParticipant[d].length,e[d]=this.multiNodeParticipant[d]}))}),e[n]=this.multiNodeParticipant[n]}):e=this.multiNodeParticipant,this.handleTips("",!0,"loading"),this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,!(this.param.beforeFunction&&!await this.param.beforeFunction())&&await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(n=>{if(n.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onVars(e){this.gateVars=e}}},Ss=e=>(t.pushScopeId("data-v-8f662840"),e=e(),t.popScopeId(),e),Xp={class:"process-popup-content"},_p={key:0,class:"process-popup-content-msg"},qp={key:0,class:"process-pc-label"},$p={key:1,class:"process-pc-value",style:{display:"flex"}},eh={class:"process-radio",style:{width:"100%"}},th=["onClick"],sh=Ss(()=>t.createElementVNode("span",null,null,-1)),nh=["onClick"],oh=Ss(()=>t.createElementVNode("span",null,null,-1)),ih={key:2},ah=Ss(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),lh={class:"process-pc-value"},ch={class:"process-popup-textarea"},dh={class:"process-popup-textarea-num"},rh={key:0,class:"msg-btn"},ph={key:1,class:"process-popup-content-person"},hh={style:{height:"100%"}};function mh(e,n,o,i,l,d){const m=t.resolveComponent("TreePerson"),A=t.resolveComponent("TopTips"),k=t.resolveComponent("departPerson"),C=t.resolveComponent("TopPopup"),u=t.resolveComponent("MsgList"),h=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Xp,[o.param.ProcessInsObj&&o.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(t.openBlock(),t.createElementBlock("div",_p,[o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",qp," \u5FEB\u6377\u56DE\u590D ")):t.createCommentVNode("",!0),o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",$p,[t.createElementVNode("div",eh,[o.param.isDocument?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.msgCheckList,E=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",E==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=E},[sh,t.createTextVNode(" "+t.toDisplayString(E),1)],10,th))),256)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.msgCheckListS,E=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",E==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=E},[oh,t.createTextVNode(" "+t.toDisplayString(E),1)],10,nh))),256)),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",{key:2,class:"process-radio-item",onClick:n[0]||(n[0]=E=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),o.param.isMsg&&!o.param.isQuickReply?(t.openBlock(),t.createElementBlock("div",ih,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[1]||(n[1]=E=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),ah,t.createElementVNode("div",lh,[t.createElementVNode("div",ch,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[2]||(n[2]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",dh,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",rh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[3]||(n[3]=E=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock("div",ph,[l.nextNodeData.length?(t.openBlock(),t.createBlock(m,{key:0,items:l.nextNodeData,nodeType:"nexting",param:o.param,onOnMultiNode:d.onMultiNode},null,8,["items","param","onOnMultiNode"])):l.outGatewayUserTaskModel.length?(t.openBlock(),t.createBlock(m,{key:1,items:l.outGatewayUserTaskModel,nodeType:"outing",param:o.param,onOnMultiNode:d.onMultiNode,onOnVars:d.onVars},null,8,["items","param","onOnMultiNode","onOnVars"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"completeSlot",{},void 0,!0),t.createVNode(A,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(C,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=E=>l.visible=E),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",hh,[l.visible?(t.openBlock(),t.createBlock(k,t.mergeProps({key:0,isTitle:!1,visible:l.visible},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),t.createVNode(C,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=E=>l.visibleListMsg=E),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(u,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(C,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=E=>l.visibleMsgComfig=E)},null,8,["context","cancel","comfig","visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(h,{key:2,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const uh=U(Zp,[["render",mh],["__scopeId","data-v-8f662840"]]),QA="",gh={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,MsgList:rt},watch:{param:{async handler(e,n){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},$e=e=>(t.pushScopeId("data-v-a4ea7c79"),e=e(),t.popScopeId(),e),fh={class:"process-popup-content"},Ah={class:"process-popup-content-msg"},kh={key:0},yh=$e(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Ch={class:"process-pc-value"},Eh={class:"process-popup-textarea"},Bh={class:"process-popup-textarea-num"},Ih={key:0,class:"msg-btn"},Nh={key:0,class:"process-popup-content-person"},bh=$e(()=>t.createElementVNode("br",null,null,-1)),Th=$e(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),wh=["onClick"],vh={class:"process-pc-value--people"},Vh={key:0,class:"process-pc-value--data"},Sh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Dh=[$e(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Qh={style:{"font-size":"15px"}},Oh=$e(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Mh=[$e(()=>t.createElementVNode("div",{class:"process-pc-value--people"},t.toDisplayString(234),-1))],xh={style:{height:"100%"}};function Fh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews"),u=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",fh,[t.createElementVNode("div",Ah,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",kh,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=h=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),yh,t.createElementVNode("div",Ch,[t.createElementVNode("div",Eh,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",Bh,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Ih,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=h=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock("div",Nh,[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,h=>{var E,w;return t.openBlock(),t.createElementBlock(t.Fragment,null,[d.isOption((w=(E=h==null?void 0:h.userTaskModelDTO)==null?void 0:E.humanPerformer)==null?void 0:w.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(h.userTaskModelDTO.name)+" ",1),bh,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Th]),t.createElementVNode("div",{class:"process-pc-value",onClick:S=>d.handleOpenPopup(h.id)},[t.createElementVNode("div",vh,[l.partNode[h.id]&&l.partNode[h.id].length?(t.openBlock(),t.createElementBlock("div",Vh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[h.id],(S,Q)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(Q==0?S:`,${S}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Sh,Dh))])],8,wh)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,h=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[d.isOption(h.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Qh,t.toDisplayString(h.name),1),Oh,t.createElementVNode("div",{class:"process-pc-value",onClick:n[3]||(n[3]=(...E)=>d.handleOpenPopup&&d.handleOpenPopup(...E))},Mh)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=h=>l.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",xh,[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),l.labels=="\u62D2\u7EDD"?(t.openBlock(),t.createBlock(C,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(k,{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(u,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(k,{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"])])}const Lh=U(gh,[["render",Fh],["__scopeId","data-v-a4ea7c79"]]),xA="",Ph={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson,TopDownSelect:co,MsgList:rt},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},po=e=>(t.pushScopeId("data-v-4bcd7506"),e=e(),t.popScopeId(),e),Uh={class:"process-popup-content"},Jh={class:"process-popup-content-msg"},Gh=po(()=>t.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Rh={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},jh={key:0},Kh=po(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Yh={class:"process-pc-value"},Hh={class:"process-popup-textarea"},Wh={class:"process-popup-textarea-num"},zh={key:0,class:"msg-btn"};function Zh(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),A=t.resolveComponent("TopTips"),k=t.resolveComponent("MsgList"),C=t.resolveComponent("TopPopup"),u=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Uh,[t.createElementVNode("div",Jh,[Gh,t.createElementVNode("div",Rh,[t.createVNode(m,{option:l.option,onChange:d.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",jh,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=h=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Kh,t.createElementVNode("div",Yh,[t.createElementVNode("div",Hh,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=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",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[t.vModelText,l.commentMsg]]),t.createElementVNode("div",Wh,t.toDisplayString(l.commentMsg.length)+"/200 ",1)]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",zh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=h=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)])]),t.createVNode(A,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(C,{visible:l.visibleListMsg,"onUpdate:visible":n[3]||(n[3]=h=>l.visibleListMsg=h),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(k,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(C,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[4]||(n[4]=h=>l.visibleMsgComfig=h)},null,8,["context","cancel","comfig","visible"]),l.labels=="\u9000\u56DE"?(t.openBlock(),t.createBlock(u,{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 Xh=U(Ph,[["render",Zh],["__scopeId","data-v-4bcd7506"]]),FA="",_h={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:pe,attchViews:Je,TopPopup:$,departPerson:he.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((n,o)=>{o==0?e=n:e=`${e} ${n}`}),await this.param.request.post("/aws/tis/createCCTask",{processInstId:this.param.processInstId,title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,parentTaskInstId:this.param.taskInstId,participant:e}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},xt=e=>(t.pushScopeId("data-v-ac700a0b"),e=e(),t.popScopeId(),e),qh={class:"process-popup-content"},$h={key:0,class:"process-popup-content-person"},em=xt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),tm=["onClick"],sm={class:"process-pc-value--people"},nm={key:0,class:"process-pc-value--data"},om={key:1,class:"process-pc-value--data",style:{color:"#888"}},im=[xt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))],am=xt(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),lm=["onClick"],cm={class:"process-pc-value--people"},dm={key:0,class:"process-pc-value--data"},rm={key:1,class:"process-pc-value--data",style:{color:"#888"}},pm=[xt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))],hm={style:{height:"100%"}};function mm(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),k=t.resolveComponent("TopPopup"),C=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",qh,[l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=4?(t.openBlock(),t.createElementBlock("div",$h,[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,u=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[em,t.createElementVNode("div",{class:"process-pc-value",onClick:h=>d.handleOpenPopup(u.id)},[t.createElementVNode("div",sm,[l.partNode[u.id]&&l.partNode[u.id].length?(t.openBlock(),t.createElementBlock("div",nm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[u.id],(h,E)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(E==0?h:`,${h}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",om,im))])],8,tm)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,u=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[am,t.createElementVNode("div",{class:"process-pc-value",onClick:h=>d.handleOpenPopup(u.id)},[t.createElementVNode("div",cm,[l.partNode[u.id]&&l.partNode[u.id].length?(t.openBlock(),t.createElementBlock("div",dm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[u.id],(h,E)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(E==0?h:`\uFF1B${h}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",rm,pm))])],8,lm)],64))),256)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(k,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=u=>l.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createElementVNode("div",hm,[l.visible?(t.openBlock(),t.createBlock(A,t.mergeProps({key:0,isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):t.createCommentVNode("",!0)])]),_:1},8,["visible"]),l.labels=="2"?(t.openBlock(),t.createBlock(C,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const um=U(_h,[["render",mm],["__scopeId","data-v-ac700a0b"]]),gm=re({name:"TopProcess",components:{TopTab:Bc,TopPopup:$,TopTips:pe,TopSumbitPopup:ro},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1}},watch:{processInstId:{async handler(e,n){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(o=>{o.code==200&&(this.trackUrl=o.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(o=>{o.code==200&&(this.trackList=o.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(o=>{o.code==200&&(this.taskCommentList=o.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(o=>{o.code==200&&(this.ProcessInsObj=o.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(o=>{if(o.code==200)if(this.taskNode=o.data,this.taskNodeList=o.data,this.taskNodeList.length==1){if(this.taskNodeList[0].taskState==4)return this.taskState=4,!1;this.taskNodeList[0].taskState==11&&(this.taskState=11),this.taskNodeList[0].taskId,this.handleGetProcessStatus(),this.handleGetUserTaskModel()}else this.taskNodeList.length>1?(this.taskNodeList.forEach(i=>{i.name=i.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0},restartData:{handler(e,n){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,n){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,n){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var o,i;let e=[],n=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(this.formData.currentState==="\u5DF2\u64A4\u9500"||this.formData.currentState==="\u5DF2\u9A73\u56DE"||this.processStatus.status==="\u5DF2\u64A4\u9500"||this.processStatus.status==="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"){let l={};l.name="\u91CD\u65B0\u63D0\u4EA4",l.btnProps={type:"default"},e.push(l),l.click=this.handleTest}if(n&&!this.isView&&this.taskObj.completeButtonLabel){let l={};l.name=this.taskObj.completeButtonLabel,l.btnProps={type:"primary"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(uh,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(Lh,d,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(l=>{let d={};d.name=l.name,d.btnProps={type:l.type},e.push(d),d.click=l.click}),n&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(l=>{if(l.label==="\u9000\u56DE"){let d={};d.name=l.label,d.btnProps={type:"danger"},e.push(d),d.click=m=>{this.handleActionClose(),this.showOperation(Xh,m,this.request,this.taskObj.otherButtonAnnexList)}}}),n&&!this.isView&&this.taskObj.ccTaskButtonLabel){let l={};l.name=this.taskObj.ccTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(um,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(ep,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(Vr,d,this.request,this.taskObj.counterSignButtonAnnex)},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((o=this.taskNode[0])==null?void 0:o.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u50AC\u529E",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((i=this.taskNode[0])==null?void 0:i.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u64A4\u9500",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(l)}return e},processCardHeight(){console.log("btnList",this.operBtn);let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),`calc(100vh - ${e}px)`},processBtn(){if(console.log("btnList",this.operBtn),this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),n=document.getElementById("process-footer");this.bottomNum=n?n.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144,console.log(this.bottomNum,"diss::",this.topNum)},1e3)})},handleTestsss(e,n){console.log("==========:::",e,n)},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},o=await this.request.post("/aws/tis/simulation",n);if(o.success){this.handleTips("",!1,"success"),this.nextNodeData=o.data;for(let i=0;i<this.nextNodeData.length;i++)this.approveNode=this.nextNodeData[i]}else{let i=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(i,"")}},async getOutgoingProcessNode(e,n){let o=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:n}});if(o.code==200){if(o.data&&o.data.length){for(let i=0;i<o.data.length;i++){let l=o.data[i];if(l.type!="UserTaskModel"&&l.type!="EndEventModel"){let d=await this.getOutgoingProcessNode(e,l.id);d&&d.length&&(await d.map((m,A)=>{m.nodeName=m.incomingConditionItemList&&m.incomingConditionItemList.length?m.incomingConditionItemList[0].compareValue:""}),l.childNode=d)}}return this.handleTips("",!1,"success"),o.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0),this.handleGetHeight()}).catch(e=>{this.handleGetHeight()})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,n,o,i){if(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.ccTaskFunction&&!await this.ccTaskFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length&&this.taskNode[0]&&this.taskNode[0].nodeId){let d;this.getVars&&(d=this.getVars()),await this.handleGetSimulation(d)}o&&(this.operationParam.request=o,this.annexlabel=i),this.titleText=n,this.operationCom=e,this.operationParam.visible=this.TopPopup1,this.operationParam.annex=i,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=n,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationParam.userInfo=this.user,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,this.taskObj.commentModels.some(d=>this.operationParam.actionComplete=d!=null&&d.isDefault?d.actionName:""),this.TopPopup1=!0},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(o=>{this.getFirstProcessNode=o.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\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()}}}),UA="",et=e=>(t.pushScopeId("data-v-6ddd36c7"),e=e(),t.popScopeId(),e),fm={class:"process-warp"},Am={key:0,class:"process-main",id:"process-header",ref:"processheader"},km={class:"process-ml-item border"},ym=et(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),Cm={class:"process-mli-value"},Em={class:"process-ml-item border"},Bm=et(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),Im={class:"process-mli-value"},Nm={key:0,class:"process-ml-item"},bm=et(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),Tm={class:"process-mli-value",style:{width:"50%","text-align":"right"}},wm={class:"process-mliv-jd"},vm=["slot"],Vm={slot:"default",style:{}},Sm=["slot"],Dm={key:0,class:"footBtnRow"},Qm=["onClick"],Om=[et(()=>t.createElementVNode("div",{class:"circle"},null,-1)),et(()=>t.createElementVNode("div",{class:"circle"},null,-1)),et(()=>t.createElementVNode("div",{class:"circle"},null,-1))],Mm={slot:"completeSlot"},xm=["onClick"],Fm=["onClick"];function Lm(e,n,o,i,l,d){const m=t.resolveComponent("TopTab"),A=t.resolveComponent("TopPopup"),k=t.resolveComponent("TopTips"),C=t.resolveComponent("TopSumbitPopup");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",fm,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",Am,[t.createElementVNode("div",km,[ym,t.createElementVNode("div",Cm,[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",Em,[Bm,t.createElementVNode("div",Im,[t.createElementVNode("span",null,t.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(t.openBlock(),t.createElementBlock("div",Nm,[bm,t.createElementVNode("div",Tm,[t.createElementVNode("span",wm,t.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"process-card",style:t.normalizeStyle({height:e.processCardHeight})},[t.createVNode(m,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:t.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.selfTapList,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,slot:u.slot},[t.renderSlot(e.$slots,u.slot,{},void 0,!0)],8,vm))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Vm,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tapList,(u,h)=>(t.openBlock(),t.createElementBlock("div",{style:{},key:h,slot:u.slot},[t.renderSlot(e.$slots,u.slot,{},void 0,!0)],8,Sm))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:t.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(t.openBlock(),t.createElementBlock("div",Dm,[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,(u,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[h<3?(t.openBlock(),t.createElementBlock("div",{class:"top-button",style:t.normalizeStyle(e.getBtnStyle(u.btnProps.type.toString())),key:u.name,onClick:E=>u.click(u.name)},t.toDisplayString(u.name),13,Qm)):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]=(...u)=>e.handleActionOpen&&e.handleActionOpen(...u))},Om)):t.createCommentVNode("",!0)],64))],64))],4))]),t.createVNode(A,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":n[1]||(n[1]=u=>e.TopPopup1=u),className:"toppopup-component"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:t.withCtx(()=>[t.createElementVNode("div",Mm,[t.renderSlot(e.$slots,"completeSlot",{},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),t.createVNode(A,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),t.createVNode(k,{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,u=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:h=>e.handleGet(u),key:u.taskId},t.toDisplayString(u.name),9,xm))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.actionBtn,u=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:h=>u.click(u.name),key:u.name},t.toDisplayString(u.name),9,Fm))),128)),t.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:n[2]||(n[2]=(...u)=>e.handleActionClose&&e.handleActionClose(...u))}," \u53D6\u6D88 ")],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-elips-mask",onClick:n[3]||(n[3]=(...u)=>e.handleActionClose&&e.handleActionClose(...u)),style:t.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),t.createVNode(C,t.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"])])}const Pm=U(gm,[["render",Lm],["__scopeId","data-v-6ddd36c7"]]);le.TopProcess=Pm,le.TopSumbitPopup=ro,le.ViewAttchList=lo,le.attchViews=Je,Object.defineProperties(le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|