ui-process-h5 1.2.3 → 1.2.4

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.
@@ -64,4 +64,4 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0),pe.util.warn;func
64
64
  left:0;
65
65
  right:0;
66
66
  margin: 0 auto;
67
- `,document.body.appendChild(this.mainContainer)}message(n={}){let a=sessionStorage.getItem(this.sessionStorageName),o=a?JSON.parse(a):null;if(n.againBtn&&n.content&&o&&Array.isArray(o)&&o.includes(n.content))return;const u=oC({type:n.type,content:n.content,duration:n.duration,delay:n.delay,againBtn:n.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(u.els),Nr(this.mainContainer),cC(u,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const lC={components:{checked:Hy,dcSwitch:$y,dcLoading:aC},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},orgType:{type:Array,default:()=>[0]},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((t,n)=>{t(!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(t,n){if(!t)return!1;U(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(t,n){let a=[];const o=this.checkedJson.map(u=>{const p=this.entityJson.findIndex(f=>f.id===u.id&&u.type==f.type&&u.type==2)>-1?t&&u.type==2?"4":u.type:u.orgRecordsType;return(p==4||u.type==1)&&a.push(u.id),{...u,orgRecordsType:p}});this.checkedJson=o.filter(u=>u.ancestors.split(",").findIndex(p=>a.indexOf(p)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(t,n){U(this.businessId)&&this.getCards()}}},computed:{queryImg(){return rC},entityJson(){const t=this.checkedJson;return this.jsonData.map(n=>{const a=U(n.ancestors)?"":n.ancestors,o=U(n.ancestorNames)?"":n.ancestorNames,u=a+n.id+"__"+n.type,p=t.find(O=>O.uniqueId===u),f=!U(p),v=f?!1:t.findIndex(O=>O.id===n.id&&n.subjectId===O.subjectId)>-1,m=f?n.type==1||p.orgRecordsType==4:!1,C=U(t)?0:m?n.counts:t.filter(O=>O.type!=1&&O.ancestors.indexOf(n.id)>-1).length,T=f?p.isNoDelete:!1;return{type:n.type,id:n.id,name:n.name,counts:U(n.counts)?0:n.counts,num:C,phone:Ly(n.phone),uid:n.uid,iconName:wr(n.name,2),checked:f,ancestors:a,ancestorNames:o,deptName:Jy(n.ancestorNames,"/",this.activeOrgType==0?"last":"find"),uniqueId:u,isDisabled:v,isLevel:m,subjectId:n.subjectId,sex:n.sex,avatar:U(n.avatar)?"":n.avatar,isNoDelete:T}})},companyJson(){return this.entityJson.filter(t=>t.type==1||t.type==5)},deptJson(){return this.entityJson.filter(t=>t.type==2)},userJson(){return this.entityJson.filter(t=>t.type==3||t.type==6)},checkedNumber(){const t=this.checkedJson.filter(p=>p.type==1).length,n=this.checkedJson.filter(p=>p.type==2).length,a=this.checkedJson.filter(p=>p.type==3||p.type==6).length,o=this.checkedJson.filter(p=>p.type==5).length;let u=[];return t>0&&u.push(t+"\u4E2A\u7EC4\u7EC7"),o>0&&u.push(o+"\u4E2A\u7FA4\u7EC4"),n>0&&u.push(n+"\u4E2A\u90E8\u95E8"),a>0&&u.push(a+"\u4E2A\u6210\u5458"),U(u)?"":"\u5DF2\u9009\u62E9"+u.join("\uFF0C")},breadcrumb_subjectId(){const t=this.breadcrumb.filter((n,a)=>n.value!=="-1");return U(t)?"":t[0].value},breadcrumb_level(){const t=this.breadcrumb.filter((n,a)=>n.value!=="-1");return{ancestors:t.map(n=>n.value).join(","),ancestorNames:t.map(n=>n.name).join("/")}},isDept(){return this.jsonData.findIndex(t=>t.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(t=>t==1||t==5)>-1},isShowDept(){return this.codeType.findIndex(t=>t==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(t=>t==3||t==6)>-1},getHight(){let t=194;return this.isShowQuery&&(t+=55),this.isDept&&(t+=45),this.orgType.length>1&&(t+=45),`calc(100% - ${t}px)`},getSearchHight(){let t=136;return this.orgType.length>1&&(t+=45),`calc(100% - ${t}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":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return U(this.checkedArray)?[]:this.checkedArray.filter(t=>t.isDeleteNo)},isOrgType(){return!!(U(this.orgType)||this.orgType.findIndex(t=>t===0)>-1)},isOrgGroup(){return this.orgType.findIndex(t=>t===1)>-1},showType(){if(this.activeOrgType===0)return this.codeType.findIndex(t=>t==3)>-1?3:this.codeType.findIndex(t=>t==2)>-1?2:this.codeType.findIndex(t=>t==1)>-1?1:-1;if(this.activeOrgType===1)return this.codeType.findIndex(t=>t==6)>-1?6:this.codeType.findIndex(t=>t==5)>-1?5:-1}},mounted(){document.title=this.getTitle,U(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const t=U(this.checkedJson)?[]:this.checkedJson.map(a=>({type:a.orgRecordsType,id:a.id,name:a.name,ancestors:a.ancestors,ancestorNames:a.ancestorNames,subjectId:a.subjectId,phone:U(a.phone)?"":a.phone,sex:a.sex,avatar:a.avatar,uid:U(a.uid)?"":a.uid}));if(U(this.businessId))return this.$emit("callback",t);const n={businessId:this.businessId,orgRecords:this.checkedJson.map(a=>({type:a.orgRecordsType,bizId:a.id,ancestors:a.ancestors,ancestorNames:a.ancestorNames,uid:a.uid}))};this.isLoading=!0,this.businessCallack(t).then(a=>{a&&this.request.post("/auth/component/org/save",n).then(o=>{o.code===200&&this.$emit("callback",t)}).finally(()=>{this.isLoading=!1})}).catch(a=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){switch(this.activeOrgType){case 0:this.itemId="";break;case 1:this.deptId=0,this.subjectId="";break}this.getSearch(()=>{this.isQuery=U(this.keyword)})},handleOrgType(t){this.activeOrgType=t,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(t){(this.isShowDept?this.entityJson:this.entityJson.filter(n=>n.type!=2)).forEach(n=>this.handleCheckbox(t,n))},handleCheckbox(t,n){if(n.isDisabled||n.isNoDelete||n.type==1&&!this.isShowSubject||n.type==2&&!this.isShowDept)return!1;if(t.currentTarget.checked){if(this.checkedJson.findIndex(f=>f.uniqueId===n.uniqueId)!=-1)return!1;const a=n.type==1?"0":n.ancestors,o=n.type==1?"":n.ancestorNames,u=this.isDept&&this.isSon&&n.type==2?"4":n.type,p={...n,ancestors:a,ancestorNames:o,orgRecordsType:u};return(n.type==1||u==4)&&(this.checkedJson=this.checkedJson.filter(f=>f.ancestors.indexOf(n.id)===-1)),this.getBoolChecked(n)?(t.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(t.currentTarget.checked=!1,new Tr().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(p):this.checkedJson=[p],!1)}this.checkedJson=this.checkedJson.filter(a=>a.uniqueId!==n.uniqueId)},handleBreadcrumb(t,n){if(t.disable||n+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=n===0?this.deptCode:n===1&&U(this.deptCode)?0:t.value,this.itemId="",this.subjectId=t.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=U(this.itemCode)?t.value==="-1"?"":t.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((a,o)=>o<n+1)})},handleLevel(t){if(t.isDisabled||t.isLevel)return!1;switch(t.type){case"1":this.deptId=0,this.subjectId=t.id,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break;case"2":this.deptId=t.id,this.subjectId=this.breadcrumb_subjectId,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break;case"5":this.deptId=0,this.subjectId="",this.itemId=t.id,this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break}},getBoolChecked(t){if(t.type!=3)return!1;const n=t.ancestors.split(","),a=this.checkedJson.filter(u=>u.type==2||u.type==1).find(u=>n.indexOf(u.id)>-1);let o=!1;return U(a)||(a.type==1&&(new Tr().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${a.name}\u3011\u5B58\u5728${t.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),o=!0),a.type==4&&(new Tr().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${a.name}\u3011\u5B58\u5728${t.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),o=!0)),o},defaultData(){this.deptId=this.deptCode,this.subjectId="",this.itemId=this.itemCode,this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1,this.activeOrgType=this.isOrgType?0:this.isOrgGroup?1:"",this.defaultBreadcrumb()},defaultBreadcrumb(){const t=this.activeOrgType===0?"\u7EC4\u7EC7":this.activeOrgType===1?"\u7FA4\u7EC4":"";this.breadcrumb=U(this.deptCode)&&U(this.itemCode)?[{name:t,value:"-1"}]:[]},defaultGet(){this.defaultData(),U(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const t=this.entityJson.filter(a=>a.type==2),n=this.checkedJson.filter(a=>a.type==2);this.isSon=n.findIndex(a=>t.findIndex(o=>o.id===a.id&&a.orgRecordsType==4)>-1)>-1},getCheckedAll(){const t=this.entityJson.findIndex(n=>this.checkedJson.findIndex(a=>a.type===n.type&&a.id===n.id&&n.subjectId===a.subjectId)===-1);this.checkedAll=t===-1},getSearch(t=()=>{}){const n={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:this.showType,orgType:this.activeOrgType,itemId:this.itemId};U(n.deptId)&&delete n.deptId,U(n.subjectId)&&delete n.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:n}).then(a=>{t(),this.jsonData=U(a.data)||a.code!==200?[]:a.data;const o=this.breadcrumb.filter(u=>u.value!=="-1");if(!U(this.jsonData)&&U(o)&&(!U(this.deptCode)||!U(this.itemCode)||!U(this.subjectName))){const u=a.data[0];let p=u.ancestors.split(",");U(this.itemCode)||p.pop(),this.breadcrumb=p.map((f,v)=>({value:f,name:u.ancestorNames.split("/")[v],disable:v!==p.length-1&&p.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(t=()=>{}){if(U(this.businessId))return t(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(a=>{this.checkedJson=U(a.data)||a.code!==200?[]:a.data.map(o=>{const u=o.type==4?"2":o.type,p=o.type==1?"":o.ancestors,f=p+o.bizId+"__"+u,v=this.isNoDelete.findIndex(m=>m.id===o.id||m.uid===o.uid)>-1;return{...o,ancestors:p,id:o.bizId,type:u,uniqueId:f,orgRecordsType:o.type,iconName:wr(o.name,2),sex:o.sex,uid:U(o.uid)?"":o.uid,avatar:U(o.avatar)?"":o.avatar,isNoDelete:v}}),t()})},getCards(t=()=>{}){if(U(this.checkedArray))return t(),this.checkedJson=[];const n=this.checkedArray.map(a=>({type:a.type,id:U(a.id)?null:a.id,uid:U(a.uid)?null:a.uid,subjectId:U(a.subjectId)?null:a.subjectId,deptId:U(a.deptId)?null:a.deptId,itemId:U(a.itemId)?null:a.itemId,orgIds:U(this.orgType)?[0]:this.orgType}));this.request.post("/auth/component/org/cards",{params:n}).then(a=>{this.checkedJson=U(a.data)||a.code!==200?[]:a.data.map(o=>{const u=o.type==4?"2":o.type,p=o.type==1?"":o.ancestors,f=o.type==1?"":o.ancestorNames,v=p+o.id+"__"+u,m=this.isNoDelete.findIndex(C=>C.id===o.id||C.uid===o.uid)>-1;return{...o,ancestors:p,ancestorNames:f,id:o.id,type:u,uniqueId:v,orgRecordsType:o.type,iconName:wr(o.name,2),sex:o.sex,uid:U(o.uid)?"":o.uid,avatar:U(o.avatar)?"":o.avatar,isNoDelete:m}}),t()})},getByName(t=()=>{}){const n={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:n}).then(a=>{console.log("getByName",a),a.code===200&&(this.subjectId=a.data,t())})}}};var uC=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("main",{staticClass:"departPerson-main"},[a("div",{staticClass:"deper-top"},[t.orgType.length>1?a("div",{staticClass:"deper-nav"},[t.isOrgType?a("div",{staticClass:"deper-n-item",class:{active:t.activeOrgType===0},on:{click:function(o){return t.handleOrgType(0)}}},[t._v("\u7EC4\u7EC7")]):t._e(),t.isOrgGroup?a("div",{staticClass:"deper-n-item",class:{active:t.activeOrgType===1},on:{click:function(o){return t.handleOrgType(1)}}},[t._v("\u7FA4\u7EC4")]):t._e()]):t._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[a("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(o){o.preventDefault()}}},[a("i",{staticClass:"icon-chaxun iconfont chaxun"}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:t.keyword},on:{keyup:function(o){return!o.type.indexOf("key")&&t._k(o.keyCode,"enter",13,o.key,"Enter")?null:t.handleQuery.apply(null,arguments)},input:function(o){o.target.composing||(t.keyword=o.target.value)}}}),t.keyword.length>0?a("i",{staticClass:"icon-error-fill iconfont close",on:{click:t.handleEmpty}}):t._e()])]),t.isQuery?a("div",{staticClass:"deper-breadcrumb"},t._l(t.breadcrumb,function(o,u){return a("div",{key:o.value,staticClass:"deper-b-item",class:{disable:o.disable},on:{click:function(p){return t.handleBreadcrumb(o,u)}}},[a("span",[t._v(t._s(o.name))]),a("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):t._e(),t.isQuery?a("div",{staticClass:"deper-all"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.checkedAll,expression:"checkedAll"}],staticClass:"deper-checkbox",attrs:{type:"checkbox",name:"deper-all",id:"deper-all"},domProps:{checked:Array.isArray(t.checkedAll)?t._i(t.checkedAll,null)>-1:t.checkedAll},on:{change:[function(o){var u=t.checkedAll,p=o.target,f=!!p.checked;if(Array.isArray(u)){var v=null,m=t._i(u,v);p.checked?m<0&&(t.checkedAll=u.concat([v])):m>-1&&(t.checkedAll=u.slice(0,m).concat(u.slice(m+1)))}else t.checkedAll=f},t.handleAllCheckbox]}}),a("label",{staticClass:"label",attrs:{for:"deper-all"}},[t._v("\u5168\u9009")])]):t._e()]),t.isQuery?a("div",{staticClass:"deper-center",style:{height:t.getHight}},[t.companyJson.length>0?a("div",{staticClass:"deper-c-depart"},t._l(t.companyJson,function(o){return a("div",{key:o.uniqueId,staticClass:"depart-item"},[a("label",{staticClass:"depart-left",class:{width:t.isNotLevel,isNoDelete:o.isNoDelete}},[a("input",{directives:[{name:"show",rawName:"v-show",value:t.isShowSubject,expression:"isShowSubject"},{name:"model",rawName:"v-model",value:o.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:o.isDisabled||o.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(o.checked)?t._i(o.checked,null)>-1:o.checked},on:{change:[function(u){var p=o.checked,f=u.target,v=!!f.checked;if(Array.isArray(p)){var m=null,C=t._i(p,m);f.checked?C<0&&t.$set(o,"checked",p.concat([m])):C>-1&&t.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else t.$set(o,"checked",v)},function(u){return t.handleCheckbox(u,o)}]}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v(t._s(o.name))]),o.num>0?a("div",{staticClass:"number"},[t._v("("),a("label",{staticClass:"label"},[t._v(t._s(o.num)+"/"+t._s(o.counts))]),t._v(")")]):a("div",{staticClass:"number"},[t._v("("+t._s(o.counts)+")")])])]),!t.isNotLevel&&o.counts>0?a("div",{staticClass:"depart-right",class:{isdisabled:o.isLevel},on:{click:function(u){return t.handleLevel(o)}}},[a("i",{staticClass:"icon-pedigree iconfont"}),a("span",[t._v("\u4E0B\u7EA7")])]):t._e()])}),0):t._e(),t.deptJson.length>0?a("div",{staticClass:"deper-c-depart"},t._l(t.deptJson,function(o){return a("div",{key:o.uniqueId,staticClass:"depart-item"},[a("label",{staticClass:"depart-left",class:{isNoDelete:o.isNoDelete}},[a("input",{directives:[{name:"show",rawName:"v-show",value:t.isShowDept,expression:"isShowDept"},{name:"model",rawName:"v-model",value:o.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:o.isDisabled||o.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(o.checked)?t._i(o.checked,null)>-1:o.checked},on:{change:[function(u){var p=o.checked,f=u.target,v=!!f.checked;if(Array.isArray(p)){var m=null,C=t._i(p,m);f.checked?C<0&&t.$set(o,"checked",p.concat([m])):C>-1&&t.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else t.$set(o,"checked",v)},function(u){return t.handleCheckbox(u,o)}]}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v(t._s(o.name))]),o.num>0?a("div",{staticClass:"number"},[t._v("("),a("label",{staticClass:"label"},[t._v(t._s(o.num)+"/"+t._s(o.counts))]),t._v(")")]):a("div",{staticClass:"number"},[t._v("("+t._s(o.counts)+")")])])]),o.counts>0?a("div",{staticClass:"depart-right",class:{isdisabled:o.isLevel},on:{click:function(u){return t.handleLevel(o)}}},[a("i",{staticClass:"icon-pedigree iconfont"}),a("span",[t._v("\u4E0B\u7EA7")])]):t._e()])}),0):t._e(),t.userJson.length>0?a("div",{staticClass:"deper-c-user"},t._l(t.userJson,function(o){return a("label",{key:o.uniqueId,staticClass:"user-item",class:{isNoDelete:o.isNoDelete}},[a("input",{directives:[{name:"model",rawName:"v-model",value:o.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:o.isDisabled||o.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(o.checked)?t._i(o.checked,null)>-1:o.checked},on:{change:[function(u){var p=o.checked,f=u.target,v=!!f.checked;if(Array.isArray(p)){var m=null,C=t._i(p,m);f.checked?C<0&&t.$set(o,"checked",p.concat([m])):C>-1&&t.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else t.$set(o,"checked",v)},function(u){return t.handleCheckbox(u,o)}]}}),a("div",{staticClass:"user-icon"},[o.avatar.length<1?a("span",[t._v(t._s(o.iconName))]):a("img",{attrs:{src:o.avatar}})]),a("div",{staticClass:"user-name"},[a("div",{staticClass:"span"},[t._v(t._s(o.name))]),a("div",{staticClass:"phone"},[t._v(t._s(o.phone))])])])}),0):t._e()]):a("div",{staticClass:"deper-search",style:{height:t.getSearchHight}},[t._e(),a("div",{staticClass:"deper-search-section"},[t._e(),a("div",{staticClass:"search-user"},[a("div",{staticClass:"search-title"},[t._v("\u8054\u7CFB\u4EBA")]),t._l(t.userJson,function(o){return a("label",{key:o.uniqueId,staticClass:"user-item"},[a("input",{directives:[{name:"model",rawName:"v-model",value:o.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:o.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(o.checked)?t._i(o.checked,null)>-1:o.checked},on:{change:[function(u){var p=o.checked,f=u.target,v=!!f.checked;if(Array.isArray(p)){var m=null,C=t._i(p,m);f.checked?C<0&&t.$set(o,"checked",p.concat([m])):C>-1&&t.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else t.$set(o,"checked",v)},function(u){return t.handleCheckbox(u,o)}]}}),a("div",{staticClass:"user-icon"},[a("span",[t._v(t._s(o.iconName))])]),a("div",{staticClass:"user-name"},[a("div",{staticClass:"span"},[t._v(t._s(o.name))]),a("div",{staticClass:"phone"},[t._v(t._s(o.phone))]),a("div",{staticClass:"txt"},[t._v(t._s(o.ancestorNames))])])])})],2)])]),t.isDept?a("div",{staticClass:"deper-son"},[a("span",[t._v("\u5305\u542B\u5B50\u7EA7")]),a("dc-switch",{attrs:{modelValue:t.isSon,name:"isSone"},on:{"update:modelValue":function(o){t.isSon=o},"update:model-value":function(o){t.isSon=o}}})],1):t._e(),a("div",{staticClass:"deper-bottom"},[a("div",{staticClass:"deper-b-checked",on:{click:function(o){t.isShowChecked=!0}}},[a("span",[t._v(t._s(t.checkedNumber))]),t.checkedNumber.length>0?a("i",{staticClass:"icon-jiantouyou iconfont"}):t._e()]),a("div",{staticClass:"deper-b-btn",on:{click:t.handleSubmit}},[t._v("\u786E\u5B9A")])]),a("checked",{attrs:{visible:t.isShowChecked,checkedJson:t.checkedJson},on:{"update:visible":function(o){t.isShowChecked=o},"update:checkedJson":function(o){t.checkedJson=o},"update:checked-json":function(o){t.checkedJson=o}},scopedSlots:t._u([{key:"user",fn:function(o){var u=o.item;return[t._t("checkedUser",null,{item:u})]}}],null,!0)}),t.isLoading?a("dcLoading"):t._e()],1)},pC=[function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"depart-item"},[a("label",{staticClass:"depart-left"},[a("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v("\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8")]),a("div",{staticClass:"number"},[t._v("("),a("label",[t._v("100/100")]),t._v(")")])])])])},function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"depart-item"},[a("label",{staticClass:"depart-left"},[a("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v("\u6280\u672F\u90E8")]),a("div",{staticClass:"number"},[t._v("(80)")])])])])},function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"depart-item"},[a("label",{staticClass:"depart-left"},[a("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v("\u5F00\u53D1\u90E8")]),a("div",{staticClass:"number"},[t._v("("),a("label",[t._v("100/100")]),t._v(")")])])])])}];const Xu={};var dC=yn(lC,uC,pC,!1,fC,null,null,null);function fC(t){for(let n in Xu)this[n]=Xu[n]}const hC=function(){return dC.exports}();s.departPerson=hC,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(ct,ct.exports);const vv={name:"TopSubmitPopup",components:{TopPopup:Re,TopDownSelect:Hc,PreviewImage:Na,departPerson:ct.exports.departPerson,TopTips:ot},props:{visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:"0",request:this.request,codeType:[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:""}},watch:{visible:{async handler(e,i){this.show=e,this.$emit("update:visible",this.show),this.handleOption()},immediate:!0},businessType:{handler(e,i){this.businessTypeData=e},immediate:!0},id:{handler(e,i){this.idData=e},immediate:!0},processName:{handler(e,i){this.processNameData=e},immediate:!0},title:{handler(e,i){this.titleData=e},immediate:!0},todoParameter:{handler(e,i){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,i){e&&e.length&&(this.option=e)},immediate:!0,deep:!0},resubmit:{handler(e,i){e&&this.getProcessInstance()}}},methods:{async handleOption(){this.selfList&&this.selfList.length||await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getAfferentParticipantNodeList(),this.getDiagramUrl())})},async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id)})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(i=>{i.code===200&&(this.firstPerson=i.data)})},async handleChange(e,i){this.handleTips("",!0,"loading"),this.checkedItem=e,await this.handlefirstNode(this.checkedItem.id),await this.getAfferentParticipantNodeList(),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",e,i),this.$refs.topTips.handleClose()},getAfferentParticipantNodeList(){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(i=>!this.firstPerson.some(s=>s.id==i.id))),this.$emit("change",this.checkedItem,e.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:[]},console.log(this.multiNodeParticipant[e.id]),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({uid:i.uid,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let i;e.routeTxt.departmentIds.map((s,r)=>{i=s.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:i,multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality)},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(s=>({uid:s.uid,type:s.type,deptId:i})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let i;e.routeTxt.companyIds.map((s,r)=>{i=s.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:i},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(s=>({uid:s.uid,type:s.type,deptId:this.handleLastStr(s.ancestors,s.subjectId),subjectName:s.ancestorNames.slice(0,s.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}},handleCallback(e){console.log("\u53C2\u6570::::",e),this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(i=>({uid:i.uid,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?i.ancestorNames.slice(0,i.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((i,s)=>{this.multiNodeParticipant[this.personObjId].push(i.uid),this.partNode[this.personObjId].push(i.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,i){return e.split(",")[e.split(",").length-1]!==i?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})},handleSongshen(){if(this.handleTips("",!0,"loading"),this.resubmit)this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")});else{let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};console.log("\u9A8C\u8BC1\u6761\u4EF6::",e,"this:::",this),this.request.post("/aws/pis/createAndStart",e).then(i=>{i.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):i.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(s=>{s.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(s.msg,!0,"error")}).catch(s=>{this.handleTips(s.msg,!0,"error")}):this.handleTips(i.msg,!0,"error")}).catch(i=>{this.handleTips(i.msg,!0,"error")})}},handleTips(e,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var mv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",[s("TopPopup",{ref:"TopPopup",attrs:{visible:e.show,titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},on:{"update:visible":function(r){return e.show=r,e.$emit("update:visible",r)}}},[s("TopDownSelect",{attrs:{option:e.option,defaultValue:e.selectDefaultValue},on:{change:e.handleChange}}),e.checkedItem.id?s("div",{staticClass:"viewTrack",on:{click:function(r){e.taskurlshow=!0}}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):e._e(),e.firstPerson&&e.firstPerson.length?s("div",{staticClass:"person-views"},e._l(e.firstPerson,function(r,c){return s("div",{staticClass:"views-items"},[s("div",{staticClass:"views-items-name"},[e._v(" "+e._s(r.name)+" "),s("span",{staticClass:"views-items-name--re"},[e._v("*")])]),s("div",{staticClass:"views-items-set"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",[e._l(e.partNode[r.id],function(l,d){return s("span",[e._v(" "+e._s(d>=3?"":d==0?l:`,${l}`)+" ")])}),e.partNode[r.id].length>3?s("span",[e._v("...\u7B49"+e._s(e.partNode[r.id].length)+"\u4EBA")]):e._e()],2):r.routeTxt&&r.routeTxt.userNames?s("div",[e._v(" "+e._s(r.routeTxt.userNames)+" ")]):s("div"),r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"?s("div",{staticClass:"views-items-set-btn",on:{click:function(l){return e.handleOpenPerson(r)}}},[e._v(" \u8BBE\u7F6E ")]):e._e()])])}),0):e._e(),e.personList&&e.personList.length?s("div",{staticClass:"person-views"},e._l(e.personList,function(r,c){return s("div",{staticClass:"views-items"},[s("div",{staticClass:"views-items-name"},[e._v(" "+e._s(r.name)+" ")]),s("div",{staticClass:"views-items-set"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",[e._l(e.partNode[r.id],function(l,d){return s("span",[e._v(" "+e._s(d>=3?"":d==0?l:`,${l}`)+" ")])}),e.partNode[r.id].length>3?s("span",[e._v("...\u7B49"+e._s(e.partNode[r.id].length)+"\u4EBA")]):e._e()],2):s("div"),s("div",{staticClass:"views-items-set-btn",on:{click:function(l){return e.handleOpenPerson(r)}}},[e._v(" \u8BBE\u7F6E ")])])])}),0):e._e(),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?s("div",{staticClass:"person-views-white"},[e._v(" \u65E0\u9700\u8BBE\u7F6E ")]):e._e(),s("div",{staticClass:"person-btn"},[s("div",{staticClass:"top-button",staticStyle:{"background-color":"#3c9cff",color:"#fff"},on:{click:e.handleSumbit}},[e._v(" \u9001\u5BA1 ")])])],1),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(r){return e.visiblePerson=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visiblePerson},on:{"update:visible":function(r){e.visiblePerson=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),s("PreviewImage",{attrs:{images:e.trackUrl,visible:e.taskurlshow,indexd:0,isOne:!0,isStyle:e.isStyle},on:{"update:visible":function(r){return e.taskurlshow=r}}}),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1)},gv=[];const IC="",Yc={};var Av=be(vv,mv,gv,!1,yv,"201e9721",null,null);function yv(e){for(let i in Yc)this[i]=Yc[i]}const Wc=function(){return Av.exports}(),Cv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQ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S28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",bv={name:"attchViews",components:{TopTips:ot,PreviewImage:Na,PreView:Bc,TopPopup:Re},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,i){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 Cv},del(){return _c},doc(){return Pc},file(){return Fc},image(){return Mc},pdf(){return Uc},xls(){return Vc},zip(){return Lc}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;",e.multiple=!0,e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e),typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1)})},methods:{handleClick(){if(this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(e,i){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const s=Array.from(e.target.files);let r=0,c=this.haveCount>s.length?s.length:this.haveCount;try{for(let l=0;l<c;l++)if(this.extension.includes(s[l].name.substring(s[l].name.lastIndexOf(".")+1))){const d=new FormData;d.append("file",s[l]);const h=await this.request.post("/file/upload",d,{headers:{"Content-Type":"multipart/form-data"}});if(h.code===200){if(this.filesArr.length>0){for(let g=0;g<this.filesArr.length;g++)if(h.originFileName==this.filesArr[g].originFileName&&r++,this.filesArr[g].originFileName.includes(`(${r})`)&&r++,r>0){let k=h.originFileName.lastIndexOf(".");h.originFileName=`${h.originFileName.substring(0,k)} (${r}) .${h.originFileName.substring(h.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(h.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${s[l].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,i){if(this.deletFn){if(this.deletFn(i)===!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,i){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(e.url)):e.url&&(this.visibleS=!0,this.fileUrl=e.url)},viewImage(){this.lists=[];let e=[];this.filesArr.map((i,s)=>{this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(i=>this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))),e.forEach((i,s)=>{this.lists.push(i.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var Iv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"attch-upload"},[e.buttonLoading?s("div",{staticClass:"attch-upload-mask"}):e._e(),s("div",{staticClass:"attch-upload-body"},[s("div",{staticClass:"upload-header"},[s("div",{staticClass:"upload-header-title"},[e._v(" \u9644\u4EF6 "),e.requires?s("span",{staticClass:"upload-header-title--re"},[e._v("*")]):e._e()]),s("div",{staticClass:"upload-header-upload"},[e.onlyShow?e._e():s("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:e.handleClick}},[s("img",{attrs:{src:e.addFile}}),e._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),s("div",{staticClass:"upload-body"},[e.filesArr.length>0?s("div",{staticClass:"upload-list"},e._l(e.filesArr,function(r,c){return s("div",{key:r.uuid,staticClass:"list-items"},[s("div",{staticClass:"list-items-icon"},[e.xlsIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:e.xls}}):e.imgIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:e.image}}):r.name.substring(r.name.lastIndexOf(".")+1)=="pdf"?s("img",{staticClass:"icon-img",attrs:{src:e.pdf}}):e.docIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:e.doc}}):e.zipIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:e.zip}}):s("img",{staticClass:"icon-img",attrs:{src:e.file}})]),s("div",{staticClass:"list-items-info"},[s("div",{staticClass:"info-name"},[e._v(" "+e._s(r.originFileName)+" ")]),s("div",{staticClass:"info-attribute"},[s("span",{staticClass:"info-attribute-size"},[e._v(e._s(r.fileSize<1024?r.fileSize:r.fileSize/1024>1024?parseFloat((r.fileSize/1024/1024).toFixed(2)):parseFloat((r.fileSize/1024).toFixed(2)))+e._s(r.fileSize<1024?"b":parseFloat((r.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),s("span",{staticClass:"info-attribute-views",on:{click:function(l){return e.viewFile(r,c)}}},[e._v(" \u9884\u89C8 ")])])]),e.onlyShow?e._e():s("div",{staticClass:"list-items-operation"},[s("div",{staticClass:"list-items-operation-img",on:{click:function(l){return e.handleDel(c,r)}}},[s("img",{attrs:{src:e.del}})])])])}),0):e._e()])]),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("PreviewImage",{attrs:{images:e.lists,visible:e.visible,indexd:e.indexd},on:{"update:visible":function(r){return e.visible=r}}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(r){return e.visibleS=r}}},[s("PreView",{attrs:{file:e.fileUrl}})],1)],1)},Ev=[];const EC="",Zc={};var kv=be(bv,Iv,Ev,!1,wv,"063c09b3",null,null);function wv(e){for(let i in Zc)this[i]=Zc[i]}const Pt=function(){return kv.exports}();var Nv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(d,h){return s("span",[e._v(" "+e._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&e.isOption(r.humanPerformerName)?[s("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(r.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(c,l){return s("span",[e._v(" "+e._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="5"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Tv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const kC="",xv={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?e=i:e=`${e} ${i}`}),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(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.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((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},zc={};var Dv=be(xv,Nv,Tv,!1,Ov,"fa2ba464",null,null);function Ov(e){for(let i in zc)this[i]=zc[i]}const Sv=function(){return Dv.exports}();var Bv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(d,h){return s("span",[e._v(" "+e._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&e.isOption(r.humanPerformerName)?[s("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(r.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(c,l){return s("span",[e._v(" "+e._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="1"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Qv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const wC="",_v={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?e=i:e=`${e} ${i}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.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((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Xc={};var Pv=be(_v,Bv,Qv,!1,Fv,"10c312f2",null,null);function Fv(e){for(let i in Xc)this[i]=Xc[i]}const Mv=function(){return Pv.exports}(),Uv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57Moq8MvuT9vY65DTrb3JGtwBJJQRjIopMM0bG/schmN/kLQuAiDFMo0jtwK+eeOy+519td82b9z7zzAAkBkisSRBgdi8cekgd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Do5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",NC="";var Vv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e.param.isDocument?s("div",{staticClass:"process-pc-label"},[e._v(" \u5FEB\u6377\u56DE\u590D ")]):e._e(),e.param.isDocument?s("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[s("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u540C\u610F"}}},[e._v(" \u540C\u610F ")]),s("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u5982\u62DF"}}},[e._v(" \u5982\u62DF ")]),s("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u5DF2\u9605"}}},[e._v(" \u5DF2\u9605 ")])]):e._e(),e._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",{staticClass:"process-pc-label"},[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[e._v(" "+e._s(e.partNode[r.id].join(","))+" ")])]):r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"?s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])]):r.routeTxt&&r.routeTxt.userNames?s("div",{staticClass:"process-pc-value--data"},[e._v(" "+e._s(r.routeTxt.userNames)+" ")]):e._e()])])]:r.type!="endEvent"?[s("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(r.userTaskModelDTO.name)+" ")])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){var c,l;return[e.outGatewayUserTaskModel.childNode&&e.outGatewayUserTaskModel.childNode.length?[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",{staticClass:"process-pc-label"},[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[e._v(" "+e._s(e.partNode[r.id].join(","))+" ")])]):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:r.type!="endEvent"?[s("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(r.userTaskModelDTO.name)+" ")])]:e._e()]:[s("div",{staticClass:"process-pc-label"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-radio"},e._l(r.childNode,function(d){return s("div",{staticClass:"process-radio-item",class:d.id==e.radioCheck?"process-radio-item--check":"",on:{click:function(h){return e.handleNode(d)}}},[s("span",[d.id==e.radioCheck?s("img",{staticClass:"process-radio-item-check",attrs:{src:e.check}}):e._e()]),e._v(" "+e._s(d.nodeName)+" ")])}),0)])]]}),e.radioCheck?[e.radioCheckChild&&e.radioCheckChild.length?e._l(e.radioCheckChild,function(r){return s("div",[s("div",{staticClass:"process-pc-label",on:{click:function(c){return e.handleSaveNode(r.id)}}},[s("div",{staticClass:"process-checkbox"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),s("br"),s("div",{staticClass:"process-checkbox-item"},[e._v(" "+e._s(r.nodeName)+" "),s("span",[e.radioCheckNameList.includes(r.id)?s("img",{staticClass:"process-checkbox-item-check",attrs:{src:e.checkS}}):e._e()])])])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return e.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[e._v(" "+e._s(e.partNode[r.id].join(","))+" ")])]):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])])}):[s("div",{staticClass:"process-pc-label"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ")]),s("div",{staticClass:"process-pc-value"},[e._v(" "+e._s(e.radioCheckName)+" ")])]]:e._e()]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="1"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Lv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u610F\u89C1 "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const TC="",Jv={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},computed:{check(){return Rc},checkS(){return Uv}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{}}},watch:{param:{handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,console.log("outGatewayUserTaskModel",this.outGatewayUserTaskModel),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(s=>{s.type!=="endEvent"&&(s.userTaskModelDTO={name:s.name,humanPerformer:{name:s.humanPerformerName}},s.humanPerformer={name:s.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?this.nextNodeData.map((s,r)=>{s.type!=="endEvent"&&s.userTaskModelDTO.participantList&&s.userTaskModelDTO.participantList.length&&s.userTaskModelDTO.participantList.map(c=>{this.multiNodeParticipant[s.id]||(this.multiNodeParticipant[s.id]=[]),this.partNode[s.id]||(this.partNode[s.id]=[]),this.multiNodeParticipant[s.id].includes(c.id)||this.multiNodeParticipant[s.id].push(c.id),this.partNode[s.id].includes(c.name)||this.partNode[s.id].push(c.name)})}):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((s,r)=>{s.type!=="endEvent"&&s.participantList&&s.participantList.length&&s.participantList.map(c=>{this.multiNodeParticipant[s.id]||(this.multiNodeParticipant[s.id]=[]),this.partNode[s.id]||(this.partNode[s.id]=[]),this.multiNodeParticipant[s.id].includes(c.id)||this.multiNodeParticipant[s.id].push(c.id),this.partNode[s.id].includes(c.name)||this.partNode[s.id].push(c.name)})}),console.log("userTaskModelDTO",this.multiNodeParticipant),console.log("outGatewayUserTaskModel",this.outGatewayUserTaskModel)},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(e){this.radioCheckNameList.includes(e)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e),1):this.radioCheckNameList.push(e)},handleNode(e){this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length&&(e={...e,...e.userTaskModelDTO}),console.log("partNode",this.partObjId,e),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let i,s=[];e.routeTxt.companyIds.map((r,c)=>{i=r.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((r,c)=>{s.push({type:3,uid:r})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:i,checkedArray:s}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let i,s=[];e.routeTxt.departmentIds.map((r,c)=>{i=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((r,c)=>{s.push({type:3,uid:r,deptId:i})}),console.log("multiNodeParticipant",this.multiNodeParticipant[e.id],s),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),deptCode:i,checkedArray:s}}else{let i=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,r)=>{i.push({type:3,uid:s})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:i},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let i=0;if(this.radioCheckNameList.map((s,r)=>{(!this.multiNodeParticipant[s]||!this.multiNodeParticipant[s].length)&&(i+=1),e[s]=this.multiNodeParticipant[s]}),i>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(i=>{if(i.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(i.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((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},$c={};var jv=be(Jv,Vv,Lv,!1,Gv,"5fe12edc",null,null);function Gv(e){for(let i in $c)this[i]=$c[i]}const Rv=function(){return jv.exports}();var qv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(d,h){return s("span",[e._v(" "+e._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&e.isOption(r.humanPerformerName)?[s("div",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(r.name)+" ")]),s("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:e.handleOpenPopup}},[s("div",{staticClass:"process-pc-value--people"},[e._v(" "+e._s(234)+" ")])])]:e._e()]})]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="\u62D2\u7EDD"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Kv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const xC="",Hv={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},el={};var Yv=be(Hv,qv,Kv,!1,Wv,"3708682b",null,null);function Wv(e){for(let i in el)this[i]=el[i]}const Zv=function(){return Yv.exports}();var zv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e._m(0),s("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[s("TopDownSelect",{attrs:{option:e.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:e.handleChange}})],1),e._m(1),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.labels=="\u9000\u56DE"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],1)},Xv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[e._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u9000\u56DE\u7406\u7531\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const DC="",$v={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson,TopDownSelect:Hc},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},tl={};var em=be($v,zv,Xv,!1,tm,"409b85c5",null,null);function tm(e){for(let i in tl)this[i]=tl[i]}const sm=function(){return em.exports}();var im=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(d,h){return s("span",[e._v(" "+e._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"?[s("div",[e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(c,l){return s("span",[e._v(" "+e._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="2"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},nm=[];const OC="",am={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?e=i:e=`${e} ${i}`}),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(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(i.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((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},sl={};var rm=be(am,im,nm,!1,om,"0ca36149",null,null);function om(e){for(let i in sl)this[i]=sl[i]}const cm=function(){return rm.exports}();var lm=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[[s("div",{staticClass:"process-pc-label"},[s("div",[e._v(" "+e._s(e.getFirstProcessNode.name)+" "),s("br"),e._m(0)])]),s("div",{staticClass:"process-pc-value",on:{click:function(r){return e.handleOpenPopup(e.getFirstProcessNode.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[e.getFirstProcessNode.id]&&e.partNode[e.getFirstProcessNode.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[e.getFirstProcessNode.id],function(r,c){return s("span",[e._v(" "+e._s(c==0?r:`,${r}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])],s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1)],2)},um=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",[e._v("\u5BA1\u6279\u4EBA"),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const SC="",pm={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(e,i){console.log("handler::::",e),this.getFirstProcessNode=e.getFirstProcessNode,e.getFirstProcessNode&&this.getFirstProcessNode&&(e.getFirstProcessNode.type=="userTask"||e.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.getFirstProcessNode.type=="ExclusiveGatewayModel"||e.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",e).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(i.msg,!0,"error")})},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},il={};var dm=be(pm,lm,um,!1,fm,"fcec156a",null,null);function fm(e){for(let i in il)this[i]=il[i]}const hm=function(){return dm.exports}(),vm={name:"TopProcess",components:{TopTab:ev,TopPopup:Re,TopTips:ot,TopSumbitPopup:Wc},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:()=>[]}},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:{}}},watch:{processInstId:{async handler(e,i){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(s=>{s.code==200&&(this.trackUrl=s.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(s=>{s.code==200&&(this.trackList=s.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(s=>{s.code==200&&(this.taskCommentList=s.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(s=>{s.code==200&&(this.ProcessInsObj=s.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(s=>{if(s.code==200)if(this.taskNode=s.data,this.taskNodeList=s.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(r=>{r.name=r.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0},restartData:{handler(e,i){this.restartDataS=e},immediate:!0,deep:!0}},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var s,r;let e=[],i=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(i&&!this.isView&&this.taskObj.completeButtonLabel){let c={};c.name=this.taskObj.completeButtonLabel,c.btnProps={type:"primary"},e.push(c),c.click=l=>{this.handleActionClose(),this.showOperation(Rv,l,this.request,this.taskObj.completeButtonAnnex)}}if(i&&!this.isView&&this.processStatus.currUserName){let c={};c.name="\u62D2\u7EDD",c.btnProps={type:"danger"},e.push(c),c.click=l=>{this.handleActionClose(),this.showOperation(Zv,l,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtn&&this.selfBtn.length&&this.selfBtn.map(c=>{let l={};l.name=c.name,l.btnProps={type:c.type},e.push(l),l.click=c.click}),i&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(c=>{if(c.label==="\u9000\u56DE"){let l={};l.name=c.label,l.btnProps={type:"danger"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(sm,d,this.request,this.taskObj.otherButtonAnnexList)}}}),i&&!this.isView&&this.taskObj.ccTaskButtonLabel){let c={};c.name=this.taskObj.ccTaskButtonLabel,c.btnProps={type:"default"},c.click=l=>{this.handleActionClose(),this.showOperation(cm,l,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(c)}if(i&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let c={};c.name=this.taskObj.delegateTaskButtonLabel,c.btnProps={type:"default"},c.click=l=>{this.handleActionClose(),this.showOperation(Mv,l,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(c)}if(i&&!this.isView&&this.taskObj.counterSignLabel){let c={};c.name=this.taskObj.counterSignLabel,c.btnProps={type:"primary"},c.click=l=>{this.handleActionClose(),this.showOperation(Sv,l,this.request,this.taskObj.counterSignButtonAnnex)},e.push(c)}if(this.processIntId&&this.processStatus.createTopUserId==this.user.userId&&((s=this.taskNode[0])==null?void 0:s.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let c={};c.name="\u50AC\u529E",c.btnProps={type:"default"},c.click=l=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=l,this.popupContext=`\u786E\u5B9A${l}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(c)}if(this.processIntId&&this.processStatus.createTopUserId==this.user.userId&&((r=this.taskNode[0])==null?void 0:r.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let c={};c.name="\u64A4\u9500",c.btnProps={type:"default"},c.click=l=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=l,this.popupContext=`\u786E\u5B9A${l}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(c)}return e},processCardHeight(){return`calc(100vh - ${210}px)`},processBtn(){}},methods:{handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let i={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},s=await this.request.post("/aws/tis/simulation",i);if(s.success){this.handleTips("",!1,"success"),this.nextNodeData=s.data;for(let r=0;r<this.nextNodeData.length;r++)this.approveNode=this.nextNodeData[r]}else{let r=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(r,"")}},async getOutgoingProcessNode(e,i){let s=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:i}});if(s.code==200){if(s.data)for(let r=0;r<s.data.length;r++){let c=s.data[r];if(c.type!="UserTaskModel"){let l=await this.getOutgoingProcessNode(e,c.id);await l.map((d,h)=>{d.nodeName=d.incomingConditionItemList[0].compareValue}),c.childNode=l}}return this.handleTips("",!1,"success"),s.data}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.$emit("processStatus",this.processStatus),this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,i,s,r){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let l;this.getVars&&(l=this.getVars()),await this.handleGetSimulation(l)}s&&(this.operationParam.request=s,this.annexlabel=r),this.titleText=i,this.operationCom=e,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=r,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=i,this.operationParam.formData=this.formData,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(l=>this.operationParam.actionComplete=l!=null&&l.isDefault?l.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(i=>{this.processBusiness=i.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(s=>{this.getFirstProcessNode=s.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(hm,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(s=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var mm=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",[s("div",{staticClass:"process-warp"},[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?s("div",{staticClass:"process-main"},[s("div",{staticClass:"process-ml-item border"},[s("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u72B6\u6001")]),s("div",{staticClass:"process-mli-name",on:{click:e.handleTestS}},[e._v("\u6D4B\u8BD5")]),s("div",{staticClass:"process-mli-value"},[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?s("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)}},[e._v(" "+e._s(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)+" ")]):e._e()])]),s("div",{staticClass:"process-ml-item border"},[s("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),s("div",{staticClass:"process-mli-value"},[s("span",[e._v(e._s(e.processStatus.createTime))])])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?s("div",{staticClass:"process-ml-item"},[s("div",{staticClass:"process-mli-name"},[e._v("\u5BA1\u6279\u8282\u70B9")]),s("div",{staticClass:"process-mli-value"},[s("span",{staticClass:"process-mliv-jd"},[e._v(e._s(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):e._e()]):e._e(),s("div",{staticClass:"process-card",style:{height:e.processCardHeight}},[s("TopTab",{attrs:{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList}},[e.selfTapList&&e.selfTapList.length?e._l(e.selfTapList,function(r,c){return s("div",{key:c,attrs:{slot:r.slot},slot:r.slot},[e._t(r.slot)],2)}):[s("div",{staticStyle:{},attrs:{slot:"default"},slot:"default"},[e._t("default")],2),e._l(e.tapList,function(r,c){return s("div",{key:c,staticStyle:{},attrs:{slot:r.slot},slot:r.slot},[e._t(r.slot)],2)})]],2)],1),s("div",{staticClass:"process-btn",style:{bottom:e.processBtn}},[e.isAdditional?s("div",{staticClass:"footBtnRow"},[e._t("btn",null,{data:e.processStatus})],2):[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?[s("div",{staticClass:"top-button",style:e.getBtnStyle("default")},[e._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[e.formData.currentState==="\u5DF2\u64A4\u9500"||e.formData.currentState==="\u5DF2\u9A73\u56DE"||e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"||e.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||e.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"?s("div",{staticClass:"top-button",style:e.getBtnStyle("default"),on:{click:e.handleTest}},[e._v(" \u91CD\u65B0\u63D0\u4EA4 ")]):e._l(e.operBtn,function(r,c){return[c<3?s("div",{key:r.name,staticClass:"top-button",style:e.getBtnStyle(r.btnProps.type.toString()),on:{click:function(l){return r.click(r.name)}}},[e._v(" "+e._s(r.name)+" ")]):e._e()]})]:e._e(),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?s("div",{staticClass:"elips",on:{click:e.handleActionOpen}},[s("div",{staticClass:"circle"}),s("div",{staticClass:"circle"}),s("div",{staticClass:"circle"})]):e._e()]]],2)]),s("TopPopup",{ref:"TopPopup1",attrs:{cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText}},[s(e.operationCom,{ref:"operationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosePopup1:e.handleClosePopup1}})],1),s("TopPopup",{ref:"TopPopup2",attrs:{titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig}}),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?s("div",{staticClass:"top-elips",style:e.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[e.taskNodeShow?e._l(e.taskNodeList,function(r){return s("div",{key:r.taskId,staticClass:"top-elips-items",on:{click:function(c){return e.handleGet(r)}}},[e._v(" "+e._s(r.name)+" ")])}):e._l(e.actionBtn,function(r){return s("div",{key:r.name,staticClass:"top-elips-items",on:{click:function(c){return r.click(r.name)}}},[e._v(" "+e._s(r.name)+" ")])}),s("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:e.handleActionClose}},[e._v(" \u53D6\u6D88 ")])],2):e._e(),s("div",{staticClass:"top-elips-mask",style:e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:e.handleActionClose}}),s("TopSumbitPopup",e._b({ref:"actionPop",attrs:{visible:e.visibleSong,request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0,selfList:e.selfList},on:{"update:visible":function(r){e.visibleSong=r},successFn:e.endFunction}},"TopSumbitPopup",e.restartDataS,!1))],1)},gm=[];const BC="",nl={};var Am=be(vm,mm,gm,!1,ym,"32f2baf8",null,null);function ym(e){for(let i in nl)this[i]=nl[i]}const Cm=function(){return Am.exports}();ft.TopProcess=Cm,ft.TopSumbitPopup=Wc,ft.ViewAttchList=jc,ft.attchViews=Pt,Object.defineProperties(ft,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
67
+ `,document.body.appendChild(this.mainContainer)}message(n={}){let a=sessionStorage.getItem(this.sessionStorageName),o=a?JSON.parse(a):null;if(n.againBtn&&n.content&&o&&Array.isArray(o)&&o.includes(n.content))return;const u=oC({type:n.type,content:n.content,duration:n.duration,delay:n.delay,againBtn:n.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(u.els),Nr(this.mainContainer),cC(u,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const lC={components:{checked:Hy,dcSwitch:$y,dcLoading:aC},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},orgType:{type:Array,default:()=>[0]},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((t,n)=>{t(!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(t,n){if(!t)return!1;U(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(t,n){let a=[];const o=this.checkedJson.map(u=>{const p=this.entityJson.findIndex(f=>f.id===u.id&&u.type==f.type&&u.type==2)>-1?t&&u.type==2?"4":u.type:u.orgRecordsType;return(p==4||u.type==1)&&a.push(u.id),{...u,orgRecordsType:p}});this.checkedJson=o.filter(u=>u.ancestors.split(",").findIndex(p=>a.indexOf(p)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(t,n){U(this.businessId)&&this.getCards()}}},computed:{queryImg(){return rC},entityJson(){const t=this.checkedJson;return this.jsonData.map(n=>{const a=U(n.ancestors)?"":n.ancestors,o=U(n.ancestorNames)?"":n.ancestorNames,u=a+n.id+"__"+n.type,p=t.find(O=>O.uniqueId===u),f=!U(p),v=f?!1:t.findIndex(O=>O.id===n.id&&n.subjectId===O.subjectId)>-1,m=f?n.type==1||p.orgRecordsType==4:!1,C=U(t)?0:m?n.counts:t.filter(O=>O.type!=1&&O.ancestors.indexOf(n.id)>-1).length,T=f?p.isNoDelete:!1;return{type:n.type,id:n.id,name:n.name,counts:U(n.counts)?0:n.counts,num:C,phone:Ly(n.phone),uid:n.uid,iconName:wr(n.name,2),checked:f,ancestors:a,ancestorNames:o,deptName:Jy(n.ancestorNames,"/",this.activeOrgType==0?"last":"find"),uniqueId:u,isDisabled:v,isLevel:m,subjectId:n.subjectId,sex:n.sex,avatar:U(n.avatar)?"":n.avatar,isNoDelete:T}})},companyJson(){return this.entityJson.filter(t=>t.type==1||t.type==5)},deptJson(){return this.entityJson.filter(t=>t.type==2)},userJson(){return this.entityJson.filter(t=>t.type==3||t.type==6)},checkedNumber(){const t=this.checkedJson.filter(p=>p.type==1).length,n=this.checkedJson.filter(p=>p.type==2).length,a=this.checkedJson.filter(p=>p.type==3||p.type==6).length,o=this.checkedJson.filter(p=>p.type==5).length;let u=[];return t>0&&u.push(t+"\u4E2A\u7EC4\u7EC7"),o>0&&u.push(o+"\u4E2A\u7FA4\u7EC4"),n>0&&u.push(n+"\u4E2A\u90E8\u95E8"),a>0&&u.push(a+"\u4E2A\u6210\u5458"),U(u)?"":"\u5DF2\u9009\u62E9"+u.join("\uFF0C")},breadcrumb_subjectId(){const t=this.breadcrumb.filter((n,a)=>n.value!=="-1");return U(t)?"":t[0].value},breadcrumb_level(){const t=this.breadcrumb.filter((n,a)=>n.value!=="-1");return{ancestors:t.map(n=>n.value).join(","),ancestorNames:t.map(n=>n.name).join("/")}},isDept(){return this.jsonData.findIndex(t=>t.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(t=>t==1||t==5)>-1},isShowDept(){return this.codeType.findIndex(t=>t==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(t=>t==3||t==6)>-1},getHight(){let t=194;return this.isShowQuery&&(t+=55),this.isDept&&(t+=45),this.orgType.length>1&&(t+=45),`calc(100% - ${t}px)`},getSearchHight(){let t=136;return this.orgType.length>1&&(t+=45),`calc(100% - ${t}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":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return U(this.checkedArray)?[]:this.checkedArray.filter(t=>t.isDeleteNo)},isOrgType(){return!!(U(this.orgType)||this.orgType.findIndex(t=>t===0)>-1)},isOrgGroup(){return this.orgType.findIndex(t=>t===1)>-1},showType(){if(this.activeOrgType===0)return this.codeType.findIndex(t=>t==3)>-1?3:this.codeType.findIndex(t=>t==2)>-1?2:this.codeType.findIndex(t=>t==1)>-1?1:-1;if(this.activeOrgType===1)return this.codeType.findIndex(t=>t==6)>-1?6:this.codeType.findIndex(t=>t==5)>-1?5:-1}},mounted(){document.title=this.getTitle,U(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const t=U(this.checkedJson)?[]:this.checkedJson.map(a=>({type:a.orgRecordsType,id:a.id,name:a.name,ancestors:a.ancestors,ancestorNames:a.ancestorNames,subjectId:a.subjectId,phone:U(a.phone)?"":a.phone,sex:a.sex,avatar:a.avatar,uid:U(a.uid)?"":a.uid}));if(U(this.businessId))return this.$emit("callback",t);const n={businessId:this.businessId,orgRecords:this.checkedJson.map(a=>({type:a.orgRecordsType,bizId:a.id,ancestors:a.ancestors,ancestorNames:a.ancestorNames,uid:a.uid}))};this.isLoading=!0,this.businessCallack(t).then(a=>{a&&this.request.post("/auth/component/org/save",n).then(o=>{o.code===200&&this.$emit("callback",t)}).finally(()=>{this.isLoading=!1})}).catch(a=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){switch(this.activeOrgType){case 0:this.itemId="";break;case 1:this.deptId=0,this.subjectId="";break}this.getSearch(()=>{this.isQuery=U(this.keyword)})},handleOrgType(t){this.activeOrgType=t,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(t){(this.isShowDept?this.entityJson:this.entityJson.filter(n=>n.type!=2)).forEach(n=>this.handleCheckbox(t,n))},handleCheckbox(t,n){if(n.isDisabled||n.isNoDelete||n.type==1&&!this.isShowSubject||n.type==2&&!this.isShowDept)return!1;if(t.currentTarget.checked){if(this.checkedJson.findIndex(f=>f.uniqueId===n.uniqueId)!=-1)return!1;const a=n.type==1?"0":n.ancestors,o=n.type==1?"":n.ancestorNames,u=this.isDept&&this.isSon&&n.type==2?"4":n.type,p={...n,ancestors:a,ancestorNames:o,orgRecordsType:u};return(n.type==1||u==4)&&(this.checkedJson=this.checkedJson.filter(f=>f.ancestors.indexOf(n.id)===-1)),this.getBoolChecked(n)?(t.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(t.currentTarget.checked=!1,new Tr().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(p):this.checkedJson=[p],!1)}this.checkedJson=this.checkedJson.filter(a=>a.uniqueId!==n.uniqueId)},handleBreadcrumb(t,n){if(t.disable||n+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=n===0?this.deptCode:n===1&&U(this.deptCode)?0:t.value,this.itemId="",this.subjectId=t.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=U(this.itemCode)?t.value==="-1"?"":t.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((a,o)=>o<n+1)})},handleLevel(t){if(t.isDisabled||t.isLevel)return!1;switch(t.type){case"1":this.deptId=0,this.subjectId=t.id,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break;case"2":this.deptId=t.id,this.subjectId=this.breadcrumb_subjectId,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break;case"5":this.deptId=0,this.subjectId="",this.itemId=t.id,this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break}},getBoolChecked(t){if(t.type!=3)return!1;const n=t.ancestors.split(","),a=this.checkedJson.filter(u=>u.type==2||u.type==1).find(u=>n.indexOf(u.id)>-1);let o=!1;return U(a)||(a.type==1&&(new Tr().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${a.name}\u3011\u5B58\u5728${t.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),o=!0),a.type==4&&(new Tr().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${a.name}\u3011\u5B58\u5728${t.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),o=!0)),o},defaultData(){this.deptId=this.deptCode,this.subjectId="",this.itemId=this.itemCode,this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1,this.activeOrgType=this.isOrgType?0:this.isOrgGroup?1:"",this.defaultBreadcrumb()},defaultBreadcrumb(){const t=this.activeOrgType===0?"\u7EC4\u7EC7":this.activeOrgType===1?"\u7FA4\u7EC4":"";this.breadcrumb=U(this.deptCode)&&U(this.itemCode)?[{name:t,value:"-1"}]:[]},defaultGet(){this.defaultData(),U(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const t=this.entityJson.filter(a=>a.type==2),n=this.checkedJson.filter(a=>a.type==2);this.isSon=n.findIndex(a=>t.findIndex(o=>o.id===a.id&&a.orgRecordsType==4)>-1)>-1},getCheckedAll(){const t=this.entityJson.findIndex(n=>this.checkedJson.findIndex(a=>a.type===n.type&&a.id===n.id&&n.subjectId===a.subjectId)===-1);this.checkedAll=t===-1},getSearch(t=()=>{}){const n={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:this.showType,orgType:this.activeOrgType,itemId:this.itemId};U(n.deptId)&&delete n.deptId,U(n.subjectId)&&delete n.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:n}).then(a=>{t(),this.jsonData=U(a.data)||a.code!==200?[]:a.data;const o=this.breadcrumb.filter(u=>u.value!=="-1");if(!U(this.jsonData)&&U(o)&&(!U(this.deptCode)||!U(this.itemCode)||!U(this.subjectName))){const u=a.data[0];let p=u.ancestors.split(",");U(this.itemCode)||p.pop(),this.breadcrumb=p.map((f,v)=>({value:f,name:u.ancestorNames.split("/")[v],disable:v!==p.length-1&&p.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(t=()=>{}){if(U(this.businessId))return t(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(a=>{this.checkedJson=U(a.data)||a.code!==200?[]:a.data.map(o=>{const u=o.type==4?"2":o.type,p=o.type==1?"":o.ancestors,f=p+o.bizId+"__"+u,v=this.isNoDelete.findIndex(m=>m.id===o.id||m.uid===o.uid)>-1;return{...o,ancestors:p,id:o.bizId,type:u,uniqueId:f,orgRecordsType:o.type,iconName:wr(o.name,2),sex:o.sex,uid:U(o.uid)?"":o.uid,avatar:U(o.avatar)?"":o.avatar,isNoDelete:v}}),t()})},getCards(t=()=>{}){if(U(this.checkedArray))return t(),this.checkedJson=[];const n=this.checkedArray.map(a=>({type:a.type,id:U(a.id)?null:a.id,uid:U(a.uid)?null:a.uid,subjectId:U(a.subjectId)?null:a.subjectId,deptId:U(a.deptId)?null:a.deptId,itemId:U(a.itemId)?null:a.itemId,orgIds:U(this.orgType)?[0]:this.orgType}));this.request.post("/auth/component/org/cards",{params:n}).then(a=>{this.checkedJson=U(a.data)||a.code!==200?[]:a.data.map(o=>{const u=o.type==4?"2":o.type,p=o.type==1?"":o.ancestors,f=o.type==1?"":o.ancestorNames,v=p+o.id+"__"+u,m=this.isNoDelete.findIndex(C=>C.id===o.id||C.uid===o.uid)>-1;return{...o,ancestors:p,ancestorNames:f,id:o.id,type:u,uniqueId:v,orgRecordsType:o.type,iconName:wr(o.name,2),sex:o.sex,uid:U(o.uid)?"":o.uid,avatar:U(o.avatar)?"":o.avatar,isNoDelete:m}}),t()})},getByName(t=()=>{}){const n={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:n}).then(a=>{console.log("getByName",a),a.code===200&&(this.subjectId=a.data,t())})}}};var uC=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("main",{staticClass:"departPerson-main"},[a("div",{staticClass:"deper-top"},[t.orgType.length>1?a("div",{staticClass:"deper-nav"},[t.isOrgType?a("div",{staticClass:"deper-n-item",class:{active:t.activeOrgType===0},on:{click:function(o){return t.handleOrgType(0)}}},[t._v("\u7EC4\u7EC7")]):t._e(),t.isOrgGroup?a("div",{staticClass:"deper-n-item",class:{active:t.activeOrgType===1},on:{click:function(o){return t.handleOrgType(1)}}},[t._v("\u7FA4\u7EC4")]):t._e()]):t._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[a("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(o){o.preventDefault()}}},[a("i",{staticClass:"icon-chaxun iconfont chaxun"}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:t.keyword},on:{keyup:function(o){return!o.type.indexOf("key")&&t._k(o.keyCode,"enter",13,o.key,"Enter")?null:t.handleQuery.apply(null,arguments)},input:function(o){o.target.composing||(t.keyword=o.target.value)}}}),t.keyword.length>0?a("i",{staticClass:"icon-error-fill iconfont close",on:{click:t.handleEmpty}}):t._e()])]),t.isQuery?a("div",{staticClass:"deper-breadcrumb"},t._l(t.breadcrumb,function(o,u){return a("div",{key:o.value,staticClass:"deper-b-item",class:{disable:o.disable},on:{click:function(p){return t.handleBreadcrumb(o,u)}}},[a("span",[t._v(t._s(o.name))]),a("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):t._e(),t.isQuery?a("div",{staticClass:"deper-all"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.checkedAll,expression:"checkedAll"}],staticClass:"deper-checkbox",attrs:{type:"checkbox",name:"deper-all",id:"deper-all"},domProps:{checked:Array.isArray(t.checkedAll)?t._i(t.checkedAll,null)>-1:t.checkedAll},on:{change:[function(o){var u=t.checkedAll,p=o.target,f=!!p.checked;if(Array.isArray(u)){var v=null,m=t._i(u,v);p.checked?m<0&&(t.checkedAll=u.concat([v])):m>-1&&(t.checkedAll=u.slice(0,m).concat(u.slice(m+1)))}else t.checkedAll=f},t.handleAllCheckbox]}}),a("label",{staticClass:"label",attrs:{for:"deper-all"}},[t._v("\u5168\u9009")])]):t._e()]),t.isQuery?a("div",{staticClass:"deper-center",style:{height:t.getHight}},[t.companyJson.length>0?a("div",{staticClass:"deper-c-depart"},t._l(t.companyJson,function(o){return a("div",{key:o.uniqueId,staticClass:"depart-item"},[a("label",{staticClass:"depart-left",class:{width:t.isNotLevel,isNoDelete:o.isNoDelete}},[a("input",{directives:[{name:"show",rawName:"v-show",value:t.isShowSubject,expression:"isShowSubject"},{name:"model",rawName:"v-model",value:o.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:o.isDisabled||o.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(o.checked)?t._i(o.checked,null)>-1:o.checked},on:{change:[function(u){var p=o.checked,f=u.target,v=!!f.checked;if(Array.isArray(p)){var m=null,C=t._i(p,m);f.checked?C<0&&t.$set(o,"checked",p.concat([m])):C>-1&&t.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else t.$set(o,"checked",v)},function(u){return t.handleCheckbox(u,o)}]}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v(t._s(o.name))]),o.num>0?a("div",{staticClass:"number"},[t._v("("),a("label",{staticClass:"label"},[t._v(t._s(o.num)+"/"+t._s(o.counts))]),t._v(")")]):a("div",{staticClass:"number"},[t._v("("+t._s(o.counts)+")")])])]),!t.isNotLevel&&o.counts>0?a("div",{staticClass:"depart-right",class:{isdisabled:o.isLevel},on:{click:function(u){return t.handleLevel(o)}}},[a("i",{staticClass:"icon-pedigree iconfont"}),a("span",[t._v("\u4E0B\u7EA7")])]):t._e()])}),0):t._e(),t.deptJson.length>0?a("div",{staticClass:"deper-c-depart"},t._l(t.deptJson,function(o){return a("div",{key:o.uniqueId,staticClass:"depart-item"},[a("label",{staticClass:"depart-left",class:{isNoDelete:o.isNoDelete}},[a("input",{directives:[{name:"show",rawName:"v-show",value:t.isShowDept,expression:"isShowDept"},{name:"model",rawName:"v-model",value:o.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:o.isDisabled||o.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(o.checked)?t._i(o.checked,null)>-1:o.checked},on:{change:[function(u){var p=o.checked,f=u.target,v=!!f.checked;if(Array.isArray(p)){var m=null,C=t._i(p,m);f.checked?C<0&&t.$set(o,"checked",p.concat([m])):C>-1&&t.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else t.$set(o,"checked",v)},function(u){return t.handleCheckbox(u,o)}]}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v(t._s(o.name))]),o.num>0?a("div",{staticClass:"number"},[t._v("("),a("label",{staticClass:"label"},[t._v(t._s(o.num)+"/"+t._s(o.counts))]),t._v(")")]):a("div",{staticClass:"number"},[t._v("("+t._s(o.counts)+")")])])]),o.counts>0?a("div",{staticClass:"depart-right",class:{isdisabled:o.isLevel},on:{click:function(u){return t.handleLevel(o)}}},[a("i",{staticClass:"icon-pedigree iconfont"}),a("span",[t._v("\u4E0B\u7EA7")])]):t._e()])}),0):t._e(),t.userJson.length>0?a("div",{staticClass:"deper-c-user"},t._l(t.userJson,function(o){return a("label",{key:o.uniqueId,staticClass:"user-item",class:{isNoDelete:o.isNoDelete}},[a("input",{directives:[{name:"model",rawName:"v-model",value:o.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:o.isDisabled||o.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(o.checked)?t._i(o.checked,null)>-1:o.checked},on:{change:[function(u){var p=o.checked,f=u.target,v=!!f.checked;if(Array.isArray(p)){var m=null,C=t._i(p,m);f.checked?C<0&&t.$set(o,"checked",p.concat([m])):C>-1&&t.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else t.$set(o,"checked",v)},function(u){return t.handleCheckbox(u,o)}]}}),a("div",{staticClass:"user-icon"},[o.avatar.length<1?a("span",[t._v(t._s(o.iconName))]):a("img",{attrs:{src:o.avatar}})]),a("div",{staticClass:"user-name"},[a("div",{staticClass:"span"},[t._v(t._s(o.name))]),a("div",{staticClass:"phone"},[t._v(t._s(o.phone))])])])}),0):t._e()]):a("div",{staticClass:"deper-search",style:{height:t.getSearchHight}},[t._e(),a("div",{staticClass:"deper-search-section"},[t._e(),a("div",{staticClass:"search-user"},[a("div",{staticClass:"search-title"},[t._v("\u8054\u7CFB\u4EBA")]),t._l(t.userJson,function(o){return a("label",{key:o.uniqueId,staticClass:"user-item"},[a("input",{directives:[{name:"model",rawName:"v-model",value:o.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:o.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(o.checked)?t._i(o.checked,null)>-1:o.checked},on:{change:[function(u){var p=o.checked,f=u.target,v=!!f.checked;if(Array.isArray(p)){var m=null,C=t._i(p,m);f.checked?C<0&&t.$set(o,"checked",p.concat([m])):C>-1&&t.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else t.$set(o,"checked",v)},function(u){return t.handleCheckbox(u,o)}]}}),a("div",{staticClass:"user-icon"},[a("span",[t._v(t._s(o.iconName))])]),a("div",{staticClass:"user-name"},[a("div",{staticClass:"span"},[t._v(t._s(o.name))]),a("div",{staticClass:"phone"},[t._v(t._s(o.phone))]),a("div",{staticClass:"txt"},[t._v(t._s(o.ancestorNames))])])])})],2)])]),t.isDept?a("div",{staticClass:"deper-son"},[a("span",[t._v("\u5305\u542B\u5B50\u7EA7")]),a("dc-switch",{attrs:{modelValue:t.isSon,name:"isSone"},on:{"update:modelValue":function(o){t.isSon=o},"update:model-value":function(o){t.isSon=o}}})],1):t._e(),a("div",{staticClass:"deper-bottom"},[a("div",{staticClass:"deper-b-checked",on:{click:function(o){t.isShowChecked=!0}}},[a("span",[t._v(t._s(t.checkedNumber))]),t.checkedNumber.length>0?a("i",{staticClass:"icon-jiantouyou iconfont"}):t._e()]),a("div",{staticClass:"deper-b-btn",on:{click:t.handleSubmit}},[t._v("\u786E\u5B9A")])]),a("checked",{attrs:{visible:t.isShowChecked,checkedJson:t.checkedJson},on:{"update:visible":function(o){t.isShowChecked=o},"update:checkedJson":function(o){t.checkedJson=o},"update:checked-json":function(o){t.checkedJson=o}},scopedSlots:t._u([{key:"user",fn:function(o){var u=o.item;return[t._t("checkedUser",null,{item:u})]}}],null,!0)}),t.isLoading?a("dcLoading"):t._e()],1)},pC=[function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"depart-item"},[a("label",{staticClass:"depart-left"},[a("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v("\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8")]),a("div",{staticClass:"number"},[t._v("("),a("label",[t._v("100/100")]),t._v(")")])])])])},function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"depart-item"},[a("label",{staticClass:"depart-left"},[a("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v("\u6280\u672F\u90E8")]),a("div",{staticClass:"number"},[t._v("(80)")])])])])},function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"depart-item"},[a("label",{staticClass:"depart-left"},[a("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[t._v("\u5F00\u53D1\u90E8")]),a("div",{staticClass:"number"},[t._v("("),a("label",[t._v("100/100")]),t._v(")")])])])])}];const Xu={};var dC=yn(lC,uC,pC,!1,fC,null,null,null);function fC(t){for(let n in Xu)this[n]=Xu[n]}const hC=function(){return dC.exports}();s.departPerson=hC,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(ct,ct.exports);const vv={name:"TopSubmitPopup",components:{TopPopup:Re,TopDownSelect:Hc,PreviewImage:Na,departPerson:ct.exports.departPerson,TopTips:ot},props:{visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:"0",request:this.request,codeType:[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:""}},watch:{visible:{async handler(e,i){this.show=e,this.$emit("update:visible",this.show),this.handleOption()},immediate:!0},businessType:{handler(e,i){this.businessTypeData=e},immediate:!0},id:{handler(e,i){this.idData=e},immediate:!0},processName:{handler(e,i){this.processNameData=e},immediate:!0},title:{handler(e,i){this.titleData=e},immediate:!0},todoParameter:{handler(e,i){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,i){e&&e.length&&(this.option=e)},immediate:!0,deep:!0},resubmit:{handler(e,i){e&&this.getProcessInstance()}}},methods:{async handleOption(){this.selfList&&this.selfList.length||await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getAfferentParticipantNodeList(),this.getDiagramUrl())})},async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id)})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(i=>{i.code===200&&(this.firstPerson=i.data)})},async handleChange(e,i){this.handleTips("",!0,"loading"),this.checkedItem=e,await this.handlefirstNode(this.checkedItem.id),await this.getAfferentParticipantNodeList(),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",e,i),this.$refs.topTips.handleClose()},getAfferentParticipantNodeList(){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(i=>!this.firstPerson.some(s=>s.id==i.id))),this.$emit("change",this.checkedItem,e.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:[]},console.log(this.multiNodeParticipant[e.id]),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({uid:i.uid,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let i;e.routeTxt.departmentIds.map((s,r)=>{i=s.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:i,multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality)},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(s=>({uid:s.uid,type:s.type,deptId:i})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let i;e.routeTxt.companyIds.map((s,r)=>{i=s.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:i},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(s=>({uid:s.uid,type:s.type,deptId:this.handleLastStr(s.ancestors,s.subjectId),subjectName:s.ancestorNames.slice(0,s.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}},handleCallback(e){console.log("\u53C2\u6570::::",e),this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(i=>({uid:i.uid,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?i.ancestorNames.slice(0,i.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((i,s)=>{this.multiNodeParticipant[this.personObjId].push(i.uid),this.partNode[this.personObjId].push(i.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,i){return e.split(",")[e.split(",").length-1]!==i?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})},handleSongshen(){if(this.handleTips("",!0,"loading"),this.resubmit)this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")});else{let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};console.log("\u9A8C\u8BC1\u6761\u4EF6::",e,"this:::",this),this.request.post("/aws/pis/createAndStart",e).then(i=>{i.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):i.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(s=>{s.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(s.msg,!0,"error")}).catch(s=>{this.handleTips(s.msg,!0,"error")}):this.handleTips(i.msg,!0,"error")}).catch(i=>{this.handleTips(i.msg,!0,"error")})}},handleTips(e,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var mv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",[s("TopPopup",{ref:"TopPopup",attrs:{visible:e.show,titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},on:{"update:visible":function(r){return e.show=r,e.$emit("update:visible",r)}}},[s("TopDownSelect",{attrs:{option:e.option,defaultValue:e.selectDefaultValue},on:{change:e.handleChange}}),e.checkedItem.id?s("div",{staticClass:"viewTrack",on:{click:function(r){e.taskurlshow=!0}}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):e._e(),e.firstPerson&&e.firstPerson.length?s("div",{staticClass:"person-views"},e._l(e.firstPerson,function(r,c){return s("div",{staticClass:"views-items"},[s("div",{staticClass:"views-items-name"},[e._v(" "+e._s(r.name)+" "),s("span",{staticClass:"views-items-name--re"},[e._v("*")])]),s("div",{staticClass:"views-items-set"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",[e._l(e.partNode[r.id],function(l,d){return s("span",[e._v(" "+e._s(d>=3?"":d==0?l:`,${l}`)+" ")])}),e.partNode[r.id].length>3?s("span",[e._v("...\u7B49"+e._s(e.partNode[r.id].length)+"\u4EBA")]):e._e()],2):r.routeTxt&&r.routeTxt.userNames?s("div",[e._v(" "+e._s(r.routeTxt.userNames)+" ")]):s("div"),r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"?s("div",{staticClass:"views-items-set-btn",on:{click:function(l){return e.handleOpenPerson(r)}}},[e._v(" \u8BBE\u7F6E ")]):e._e()])])}),0):e._e(),e.personList&&e.personList.length?s("div",{staticClass:"person-views"},e._l(e.personList,function(r,c){return s("div",{staticClass:"views-items"},[s("div",{staticClass:"views-items-name"},[e._v(" "+e._s(r.name)+" ")]),s("div",{staticClass:"views-items-set"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",[e._l(e.partNode[r.id],function(l,d){return s("span",[e._v(" "+e._s(d>=3?"":d==0?l:`,${l}`)+" ")])}),e.partNode[r.id].length>3?s("span",[e._v("...\u7B49"+e._s(e.partNode[r.id].length)+"\u4EBA")]):e._e()],2):s("div"),s("div",{staticClass:"views-items-set-btn",on:{click:function(l){return e.handleOpenPerson(r)}}},[e._v(" \u8BBE\u7F6E ")])])])}),0):e._e(),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?s("div",{staticClass:"person-views-white"},[e._v(" \u65E0\u9700\u8BBE\u7F6E ")]):e._e(),s("div",{staticClass:"person-btn"},[s("div",{staticClass:"top-button",staticStyle:{"background-color":"#3c9cff",color:"#fff"},on:{click:e.handleSumbit}},[e._v(" \u9001\u5BA1 ")])])],1),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(r){return e.visiblePerson=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visiblePerson},on:{"update:visible":function(r){e.visiblePerson=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),s("PreviewImage",{attrs:{images:e.trackUrl,visible:e.taskurlshow,indexd:0,isOne:!0,isStyle:e.isStyle},on:{"update:visible":function(r){return e.taskurlshow=r}}}),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1)},gv=[];const IC="",Yc={};var Av=be(vv,mv,gv,!1,yv,"201e9721",null,null);function yv(e){for(let i in Yc)this[i]=Yc[i]}const Wc=function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SzFdXwy0vwrN/dkDlpULSlWRaPrQwM9zCvetuUE1thXLbYEPnkqNtUa/hFOC04qLevBT1jkWddeDeUdQrJQYSY//pK76otyKLKcsQRGlRLzwQah7a/aLeYih3UBYusbC/qPJViJPGwL5JWbgUqHwSQzJKJDfpvQ3wP0vgP1/1P0sJQ2Qwxu6psvDi1RVZ266xgOZqBecneTkFrVAlGYLepaijhn5KjQXed+cq21wgNhYbSmMB39Tg7sBwy55rLJDKpKJWOJU32eE6wwUaztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",bv={name:"attchViews",components:{TopTips:ot,PreviewImage:Na,PreView:Bc,TopPopup:Re},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,i){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 Cv},del(){return _c},doc(){return Pc},file(){return Fc},image(){return Mc},pdf(){return Uc},xls(){return Vc},zip(){return Lc}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;",e.multiple=!0,e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e),typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1)})},methods:{handleClick(){if(this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(e,i){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const s=Array.from(e.target.files);let r=0,c=this.haveCount>s.length?s.length:this.haveCount;try{for(let l=0;l<c;l++)if(this.extension.includes(s[l].name.substring(s[l].name.lastIndexOf(".")+1))){const d=new FormData;d.append("file",s[l]);const h=await this.request.post("/file/upload",d,{headers:{"Content-Type":"multipart/form-data"}});if(h.code===200){if(this.filesArr.length>0){for(let g=0;g<this.filesArr.length;g++)if(h.originFileName==this.filesArr[g].originFileName&&r++,this.filesArr[g].originFileName.includes(`(${r})`)&&r++,r>0){let k=h.originFileName.lastIndexOf(".");h.originFileName=`${h.originFileName.substring(0,k)} (${r}) .${h.originFileName.substring(h.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(h.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${s[l].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,i){if(this.deletFn){if(this.deletFn(i)===!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,i){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(e.url)):e.url&&(this.visibleS=!0,this.fileUrl=e.url)},viewImage(){this.lists=[];let e=[];this.filesArr.map((i,s)=>{this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(i=>this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))),e.forEach((i,s)=>{this.lists.push(i.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var Iv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"attch-upload"},[e.buttonLoading?s("div",{staticClass:"attch-upload-mask"}):e._e(),s("div",{staticClass:"attch-upload-body"},[s("div",{staticClass:"upload-header"},[s("div",{staticClass:"upload-header-title"},[e._v(" \u9644\u4EF6 "),e.requires?s("span",{staticClass:"upload-header-title--re"},[e._v("*")]):e._e()]),s("div",{staticClass:"upload-header-upload"},[e.onlyShow?e._e():s("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:e.handleClick}},[s("img",{attrs:{src:e.addFile}}),e._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),s("div",{staticClass:"upload-body"},[e.filesArr.length>0?s("div",{staticClass:"upload-list"},e._l(e.filesArr,function(r,c){return s("div",{key:r.uuid,staticClass:"list-items"},[s("div",{staticClass:"list-items-icon"},[e.xlsIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:e.xls}}):e.imgIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:e.image}}):r.name.substring(r.name.lastIndexOf(".")+1)=="pdf"?s("img",{staticClass:"icon-img",attrs:{src:e.pdf}}):e.docIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:e.doc}}):e.zipIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:e.zip}}):s("img",{staticClass:"icon-img",attrs:{src:e.file}})]),s("div",{staticClass:"list-items-info"},[s("div",{staticClass:"info-name"},[e._v(" "+e._s(r.originFileName)+" ")]),s("div",{staticClass:"info-attribute"},[s("span",{staticClass:"info-attribute-size"},[e._v(e._s(r.fileSize<1024?r.fileSize:r.fileSize/1024>1024?parseFloat((r.fileSize/1024/1024).toFixed(2)):parseFloat((r.fileSize/1024).toFixed(2)))+e._s(r.fileSize<1024?"b":parseFloat((r.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),s("span",{staticClass:"info-attribute-views",on:{click:function(l){return e.viewFile(r,c)}}},[e._v(" \u9884\u89C8 ")])])]),e.onlyShow?e._e():s("div",{staticClass:"list-items-operation"},[s("div",{staticClass:"list-items-operation-img",on:{click:function(l){return e.handleDel(c,r)}}},[s("img",{attrs:{src:e.del}})])])])}),0):e._e()])]),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("PreviewImage",{attrs:{images:e.lists,visible:e.visible,indexd:e.indexd},on:{"update:visible":function(r){return e.visible=r}}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(r){return e.visibleS=r}}},[s("PreView",{attrs:{file:e.fileUrl}})],1)],1)},Ev=[];const EC="",Zc={};var kv=be(bv,Iv,Ev,!1,wv,"063c09b3",null,null);function wv(e){for(let i in Zc)this[i]=Zc[i]}const Pt=function(){return kv.exports}();var Nv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(d,h){return s("span",[e._v(" "+e._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&e.isOption(r.humanPerformerName)?[s("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(r.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(c,l){return s("span",[e._v(" "+e._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="5"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Tv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const kC="",xv={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?e=i:e=`${e} ${i}`}),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(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.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((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},zc={};var Dv=be(xv,Nv,Tv,!1,Ov,"fa2ba464",null,null);function Ov(e){for(let i in zc)this[i]=zc[i]}const Sv=function(){return Dv.exports}();var Bv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(d,h){return s("span",[e._v(" "+e._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&e.isOption(r.humanPerformerName)?[s("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(r.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(c,l){return s("span",[e._v(" "+e._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="1"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Qv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const wC="",_v={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?e=i:e=`${e} ${i}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.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((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Xc={};var Pv=be(_v,Bv,Qv,!1,Fv,"10c312f2",null,null);function Fv(e){for(let i in Xc)this[i]=Xc[i]}const Mv=function(){return Pv.exports}(),Uv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSm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ABH2SpO9LYeQEaBBDgSy7m863UB0jskwFG+gpM9rg+QXiEBjuRSznG/TkB6gwQ4cqq3gtf1AtILJMBRoYzztlg3IK0hAY68yq3kef2AtIIEOCqVcO42GoDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",NC="";var Vv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e.param.isDocument?s("div",{staticClass:"process-pc-label"},[e._v(" \u5FEB\u6377\u56DE\u590D ")]):e._e(),e.param.isDocument?s("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[s("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u540C\u610F"}}},[e._v(" \u540C\u610F ")]),s("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u5982\u62DF"}}},[e._v(" \u5982\u62DF ")]),s("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u5DF2\u9605"}}},[e._v(" \u5DF2\u9605 ")])]):e._e(),e._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",{staticClass:"process-pc-label"},[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[e._v(" "+e._s(e.partNode[r.id].join(","))+" ")])]):r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"?s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])]):r.routeTxt&&r.routeTxt.userNames?s("div",{staticClass:"process-pc-value--data"},[e._v(" "+e._s(r.routeTxt.userNames)+" ")]):e._e()])])]:r.type!="endEvent"?[s("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(r.userTaskModelDTO.name)+" ")])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){var c,l;return[e.outGatewayUserTaskModel.childNode&&e.outGatewayUserTaskModel.childNode.length?[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",{staticClass:"process-pc-label"},[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[e._v(" "+e._s(e.partNode[r.id].join(","))+" ")])]):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:r.type!="endEvent"?[s("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(r.userTaskModelDTO.name)+" ")])]:e._e()]:[s("div",{staticClass:"process-pc-label"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-radio"},e._l(r.childNode,function(d){return s("div",{staticClass:"process-radio-item",class:d.id==e.radioCheck?"process-radio-item--check":"",on:{click:function(h){return e.handleNode(d)}}},[s("span",[d.id==e.radioCheck?s("img",{staticClass:"process-radio-item-check",attrs:{src:e.check}}):e._e()]),e._v(" "+e._s(d.nodeName)+" ")])}),0)])]]}),e.radioCheck?[e.radioCheckChild&&e.radioCheckChild.length?e._l(e.radioCheckChild,function(r){return s("div",[s("div",{staticClass:"process-pc-label",on:{click:function(c){return e.handleSaveNode(r.id)}}},[s("div",{staticClass:"process-checkbox"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),s("br"),s("div",{staticClass:"process-checkbox-item"},[e._v(" "+e._s(r.nodeName)+" "),s("span",[e.radioCheckNameList.includes(r.id)?s("img",{staticClass:"process-checkbox-item-check",attrs:{src:e.checkS}}):e._e()])])])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return e.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[e._v(" "+e._s(e.partNode[r.id].join(","))+" ")])]):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])])}):[s("div",{staticClass:"process-pc-label"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ")]),s("div",{staticClass:"process-pc-value"},[e._v(" "+e._s(e.radioCheckName)+" ")])]]:e._e()]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="1"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Lv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u610F\u89C1 "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const TC="",Jv={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},computed:{check(){return Rc},checkS(){return Uv}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{}}},watch:{param:{handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,console.log("outGatewayUserTaskModel",this.outGatewayUserTaskModel),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(s=>{s.type!=="endEvent"&&(s.userTaskModelDTO={name:s.name,humanPerformer:{name:s.humanPerformerName}},s.humanPerformer={name:s.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?this.nextNodeData.map((s,r)=>{s.type!=="endEvent"&&s.userTaskModelDTO.participantList&&s.userTaskModelDTO.participantList.length&&s.userTaskModelDTO.participantList.map(c=>{this.multiNodeParticipant[s.id]||(this.multiNodeParticipant[s.id]=[]),this.partNode[s.id]||(this.partNode[s.id]=[]),this.multiNodeParticipant[s.id].includes(c.id)||this.multiNodeParticipant[s.id].push(c.id),this.partNode[s.id].includes(c.name)||this.partNode[s.id].push(c.name)})}):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((s,r)=>{s.type!=="endEvent"&&s.participantList&&s.participantList.length&&s.participantList.map(c=>{this.multiNodeParticipant[s.id]||(this.multiNodeParticipant[s.id]=[]),this.partNode[s.id]||(this.partNode[s.id]=[]),this.multiNodeParticipant[s.id].includes(c.id)||this.multiNodeParticipant[s.id].push(c.id),this.partNode[s.id].includes(c.name)||this.partNode[s.id].push(c.name)})}),console.log("userTaskModelDTO",this.multiNodeParticipant),console.log("outGatewayUserTaskModel",this.outGatewayUserTaskModel)},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(e){this.radioCheckNameList.includes(e)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e),1):this.radioCheckNameList.push(e)},handleNode(e){this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length&&(e={...e,...e.userTaskModelDTO}),console.log("partNode",this.partObjId,e),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let i,s=[];e.routeTxt.companyIds.map((r,c)=>{i=r.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((r,c)=>{s.push({type:3,uid:r})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:i,checkedArray:s}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let i,s=[];e.routeTxt.departmentIds.map((r,c)=>{i=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((r,c)=>{s.push({type:3,uid:r,deptId:i})}),console.log("multiNodeParticipant",this.multiNodeParticipant[e.id],s),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),deptCode:i,checkedArray:s}}else{let i=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,r)=>{i.push({type:3,uid:s})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:i},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let i=0;if(this.radioCheckNameList.map((s,r)=>{(!this.multiNodeParticipant[s]||!this.multiNodeParticipant[s].length)&&(i+=1),e[s]=this.multiNodeParticipant[s]}),i>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(i=>{if(i.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(i.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((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},$c={};var jv=be(Jv,Vv,Lv,!1,Gv,"5fe12edc",null,null);function Gv(e){for(let i in $c)this[i]=$c[i]}const Rv=function(){return jv.exports}();var qv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(d,h){return s("span",[e._v(" "+e._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&e.isOption(r.humanPerformerName)?[s("div",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(r.name)+" ")]),s("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:e.handleOpenPopup}},[s("div",{staticClass:"process-pc-value--people"},[e._v(" "+e._s(234)+" ")])])]:e._e()]})]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="\u62D2\u7EDD"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Kv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const xC="",Hv={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},el={};var Yv=be(Hv,qv,Kv,!1,Wv,"3708682b",null,null);function Wv(e){for(let i in el)this[i]=el[i]}const Zv=function(){return Yv.exports}();var zv=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e._m(0),s("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[s("TopDownSelect",{attrs:{option:e.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:e.handleChange}})],1),e._m(1),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:e.commentMsg},on:{input:function(r){r.target.composing||(e.commentMsg=r.target.value)}}})])]),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.labels=="\u9000\u56DE"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],1)},Xv=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[e._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-pc-label"},[e._v(" \u9000\u56DE\u7406\u7531\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const DC="",$v={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson,TopDownSelect:Hc},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},tl={};var em=be($v,zv,Xv,!1,tm,"409b85c5",null,null);function tm(e){for(let i in tl)this[i]=tl[i]}const sm=function(){return em.exports}();var im=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&e.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[e._v(" "+e._s(r.userTaskModelDTO.name)+" "),s("br"),e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(d,h){return s("span",[e._v(" "+e._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"?[s("div",[e._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return e.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[r.id]&&e.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[r.id],function(c,l){return s("span",[e._v(" "+e._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="2"?s("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},nm=[];const OC="",am={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,i){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?e=i:e=`${e} ${i}`}),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(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(i.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((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,r)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.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,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},sl={};var rm=be(am,im,nm,!1,om,"0ca36149",null,null);function om(e){for(let i in sl)this[i]=sl[i]}const cm=function(){return rm.exports}();var lm=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{staticClass:"process-popup-content"},[[s("div",{staticClass:"process-pc-label"},[s("div",[e._v(" "+e._s(e.getFirstProcessNode.name)+" "),s("br"),e._m(0)])]),s("div",{staticClass:"process-pc-value",on:{click:function(r){return e.handleOpenPopup(e.getFirstProcessNode.id)}}},[s("div",{staticClass:"process-pc-value--people"},[e.partNode[e.getFirstProcessNode.id]&&e.partNode[e.getFirstProcessNode.id].length?s("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[e.getFirstProcessNode.id],function(r,c){return s("span",[e._v(" "+e._s(c==0?r:`,${r}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])],s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),s("TopPopup",{attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return e.visible=r}}},[s("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(r){e.visible=r},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1)],2)},um=[function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",[e._v("\u5BA1\u6279\u4EBA"),s("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const SC="",pm={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:ot,attchViews:Pt,TopPopup:Re,departPerson:ct.exports.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(e,i){console.log("handler::::",e),this.getFirstProcessNode=e.getFirstProcessNode,e.getFirstProcessNode&&this.getFirstProcessNode&&(e.getFirstProcessNode.type=="userTask"||e.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.getFirstProcessNode.type=="ExclusiveGatewayModel"||e.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",e).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(i.msg,!0,"error")})},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},il={};var dm=be(pm,lm,um,!1,fm,"fcec156a",null,null);function fm(e){for(let i in il)this[i]=il[i]}const hm=function(){return dm.exports}(),vm={name:"TopProcess",components:{TopTab:ev,TopPopup:Re,TopTips:ot,TopSumbitPopup:Wc},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:()=>[]}},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:{}}},watch:{processInstId:{async handler(e,i){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(s=>{s.code==200&&(this.trackUrl=s.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(s=>{s.code==200&&(this.trackList=s.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(s=>{s.code==200&&(this.taskCommentList=s.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(s=>{s.code==200&&(this.ProcessInsObj=s.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(s=>{if(s.code==200)if(this.taskNode=s.data,this.taskNodeList=s.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(r=>{r.name=r.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0},restartData:{handler(e,i){this.restartDataS=e},immediate:!0,deep:!0}},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var s,r;let e=[],i=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(i&&!this.isView&&this.taskObj.completeButtonLabel){let c={};c.name=this.taskObj.completeButtonLabel,c.btnProps={type:"primary"},e.push(c),c.click=l=>{this.handleActionClose(),this.showOperation(Rv,l,this.request,this.taskObj.completeButtonAnnex)}}if(i&&!this.isView&&this.processStatus.currUserName){let c={};c.name="\u62D2\u7EDD",c.btnProps={type:"danger"},e.push(c),c.click=l=>{this.handleActionClose(),this.showOperation(Zv,l,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtn&&this.selfBtn.length&&this.selfBtn.map(c=>{let l={};l.name=c.name,l.btnProps={type:c.type},e.push(l),l.click=c.click}),i&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(c=>{if(c.label==="\u9000\u56DE"){let l={};l.name=c.label,l.btnProps={type:"danger"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(sm,d,this.request,this.taskObj.otherButtonAnnexList)}}}),i&&!this.isView&&this.taskObj.ccTaskButtonLabel){let c={};c.name=this.taskObj.ccTaskButtonLabel,c.btnProps={type:"default"},c.click=l=>{this.handleActionClose(),this.showOperation(cm,l,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(c)}if(i&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let c={};c.name=this.taskObj.delegateTaskButtonLabel,c.btnProps={type:"default"},c.click=l=>{this.handleActionClose(),this.showOperation(Mv,l,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(c)}if(i&&!this.isView&&this.taskObj.counterSignLabel){let c={};c.name=this.taskObj.counterSignLabel,c.btnProps={type:"primary"},c.click=l=>{this.handleActionClose(),this.showOperation(Sv,l,this.request,this.taskObj.counterSignButtonAnnex)},e.push(c)}if(this.processIntId&&this.processStatus.createTopUserId==this.user.userId&&((s=this.taskNode[0])==null?void 0:s.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let c={};c.name="\u50AC\u529E",c.btnProps={type:"default"},c.click=l=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=l,this.popupContext=`\u786E\u5B9A${l}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(c)}if(this.processIntId&&this.processStatus.createTopUserId==this.user.userId&&((r=this.taskNode[0])==null?void 0:r.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let c={};c.name="\u64A4\u9500",c.btnProps={type:"default"},c.click=l=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=l,this.popupContext=`\u786E\u5B9A${l}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(c)}return e},processCardHeight(){return`calc(100vh - ${210}px)`},processBtn(){}},methods:{handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let i={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},s=await this.request.post("/aws/tis/simulation",i);if(s.success){this.handleTips("",!1,"success"),this.nextNodeData=s.data;for(let r=0;r<this.nextNodeData.length;r++)this.approveNode=this.nextNodeData[r]}else{let r=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(r,"")}},async getOutgoingProcessNode(e,i){let s=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:i}});if(s.code==200){if(s.data)for(let r=0;r<s.data.length;r++){let c=s.data[r];if(c.type!="UserTaskModel"){let l=await this.getOutgoingProcessNode(e,c.id);await l.map((d,h)=>{d.nodeName=d.incomingConditionItemList[0].compareValue}),c.childNode=l}}return this.handleTips("",!1,"success"),s.data}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.$emit("processStatus",this.processStatus),this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,i,s,r){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let l;this.getVars&&(l=this.getVars()),await this.handleGetSimulation(l)}s&&(this.operationParam.request=s,this.annexlabel=r),this.titleText=i,this.operationCom=e,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=r,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=i,this.operationParam.formData=this.formData,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(l=>this.operationParam.actionComplete=l!=null&&l.isDefault?l.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(i=>{this.processBusiness=i.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(s=>{this.getFirstProcessNode=s.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(hm,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(s=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,i,s){this.textTips=e,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var mm=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",[s("div",{staticClass:"process-warp"},[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?s("div",{staticClass:"process-main"},[s("div",{staticClass:"process-ml-item border"},[s("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u72B6\u6001")]),s("div",{staticClass:"process-mli-value"},[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?s("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)}},[e._v(" "+e._s(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)+" ")]):e._e()])]),s("div",{staticClass:"process-ml-item border"},[s("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),s("div",{staticClass:"process-mli-value"},[s("span",[e._v(e._s(e.processStatus.createTime))])])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?s("div",{staticClass:"process-ml-item"},[s("div",{staticClass:"process-mli-name"},[e._v("\u5BA1\u6279\u8282\u70B9")]),s("div",{staticClass:"process-mli-value"},[s("span",{staticClass:"process-mliv-jd"},[e._v(e._s(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):e._e()]):e._e(),s("div",{staticClass:"process-card",style:{height:e.processCardHeight}},[s("TopTab",{attrs:{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList}},[e.selfTapList&&e.selfTapList.length?e._l(e.selfTapList,function(r,c){return s("div",{key:c,attrs:{slot:r.slot},slot:r.slot},[e._t(r.slot)],2)}):[s("div",{staticStyle:{},attrs:{slot:"default"},slot:"default"},[e._t("default")],2),e._l(e.tapList,function(r,c){return s("div",{key:c,staticStyle:{},attrs:{slot:r.slot},slot:r.slot},[e._t(r.slot)],2)})]],2)],1),s("div",{staticClass:"process-btn",style:{bottom:e.processBtn}},[e.isAdditional?s("div",{staticClass:"footBtnRow"},[e._t("btn",null,{data:e.processStatus})],2):[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?[s("div",{staticClass:"top-button",style:e.getBtnStyle("default")},[e._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[e.formData.currentState==="\u5DF2\u64A4\u9500"||e.formData.currentState==="\u5DF2\u9A73\u56DE"||e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"||e.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||e.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"?s("div",{staticClass:"top-button",style:e.getBtnStyle("default"),on:{click:e.handleTest}},[e._v(" \u91CD\u65B0\u63D0\u4EA4 ")]):e._l(e.operBtn,function(r,c){return[c<3?s("div",{key:r.name,staticClass:"top-button",style:e.getBtnStyle(r.btnProps.type.toString()),on:{click:function(l){return r.click(r.name)}}},[e._v(" "+e._s(r.name)+" ")]):e._e()]})]:e._e(),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?s("div",{staticClass:"elips",on:{click:e.handleActionOpen}},[s("div",{staticClass:"circle"}),s("div",{staticClass:"circle"}),s("div",{staticClass:"circle"})]):e._e()]]],2)]),s("TopPopup",{ref:"TopPopup1",attrs:{cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText}},[s(e.operationCom,{ref:"operationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosePopup1:e.handleClosePopup1}})],1),s("TopPopup",{ref:"TopPopup2",attrs:{titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig}}),s("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?s("div",{staticClass:"top-elips",style:e.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[e.taskNodeShow?e._l(e.taskNodeList,function(r){return s("div",{key:r.taskId,staticClass:"top-elips-items",on:{click:function(c){return e.handleGet(r)}}},[e._v(" "+e._s(r.name)+" ")])}):e._l(e.actionBtn,function(r){return s("div",{key:r.name,staticClass:"top-elips-items",on:{click:function(c){return r.click(r.name)}}},[e._v(" "+e._s(r.name)+" ")])}),s("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:e.handleActionClose}},[e._v(" \u53D6\u6D88 ")])],2):e._e(),s("div",{staticClass:"top-elips-mask",style:e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:e.handleActionClose}}),s("TopSumbitPopup",e._b({ref:"actionPop",attrs:{visible:e.visibleSong,request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0,selfList:e.selfList},on:{"update:visible":function(r){e.visibleSong=r},successFn:e.endFunction}},"TopSumbitPopup",e.restartDataS,!1))],1)},gm=[];const BC="",nl={};var Am=be(vm,mm,gm,!1,ym,"135437a1",null,null);function ym(e){for(let i in nl)this[i]=nl[i]}const Cm=function(){return Am.exports}();ft.TopProcess=Cm,ft.TopSumbitPopup=Wc,ft.ViewAttchList=jc,ft.attchViews=Pt,Object.defineProperties(ft,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});